aws_sdk_cloudwatchlogs/client/
describe_account_policies.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DescribeAccountPolicies`](crate::operation::describe_account_policies::builders::DescribeAccountPoliciesFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`policy_type(PolicyType)`](crate::operation::describe_account_policies::builders::DescribeAccountPoliciesFluentBuilder::policy_type) / [`set_policy_type(Option<PolicyType>)`](crate::operation::describe_account_policies::builders::DescribeAccountPoliciesFluentBuilder::set_policy_type):<br>required: **true**<br><p>Use this parameter to limit the returned policies to only the policies that match the policy type that you specify.</p><br>
    ///   - [`policy_name(impl Into<String>)`](crate::operation::describe_account_policies::builders::DescribeAccountPoliciesFluentBuilder::policy_name) / [`set_policy_name(Option<String>)`](crate::operation::describe_account_policies::builders::DescribeAccountPoliciesFluentBuilder::set_policy_name):<br>required: **false**<br><p>Use this parameter to limit the returned policies to only the policy with the name that you specify.</p><br>
    ///   - [`account_identifiers(impl Into<String>)`](crate::operation::describe_account_policies::builders::DescribeAccountPoliciesFluentBuilder::account_identifiers) / [`set_account_identifiers(Option<Vec::<String>>)`](crate::operation::describe_account_policies::builders::DescribeAccountPoliciesFluentBuilder::set_account_identifiers):<br>required: **false**<br><p>If you are using an account that is set up as a monitoring account for CloudWatch unified cross-account observability, you can use this to specify the account ID of a source account. If you do, the operation returns the account policy for the specified account. Currently, you can specify only one account ID in this parameter.</p> <p>If you omit this parameter, only the policy in the current account is returned.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::describe_account_policies::builders::DescribeAccountPoliciesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::describe_account_policies::builders::DescribeAccountPoliciesFluentBuilder::set_next_token):<br>required: **false**<br><p>The token for the next set of items to return. (You received this token from a previous call.)</p><br>
    /// - On success, responds with [`DescribeAccountPoliciesOutput`](crate::operation::describe_account_policies::DescribeAccountPoliciesOutput) with field(s):
    ///   - [`account_policies(Option<Vec::<AccountPolicy>>)`](crate::operation::describe_account_policies::DescribeAccountPoliciesOutput::account_policies): <p>An array of structures that contain information about the CloudWatch Logs account policies that match the specified filters.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::describe_account_policies::DescribeAccountPoliciesOutput::next_token): <p>The token to use when requesting the next set of items. The token expires after 24 hours.</p>
    /// - On failure, responds with [`SdkError<DescribeAccountPoliciesError>`](crate::operation::describe_account_policies::DescribeAccountPoliciesError)
    pub fn describe_account_policies(&self) -> crate::operation::describe_account_policies::builders::DescribeAccountPoliciesFluentBuilder {
        crate::operation::describe_account_policies::builders::DescribeAccountPoliciesFluentBuilder::new(self.handle.clone())
    }
}