aws-sdk-cloudwatchlogs 0.32.0

AWS SDK for Amazon CloudWatch Logs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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): <p>Use this parameter to limit the returned policies to only the policies that match the policy type that you specify. Currently, the only valid value is <code>DATA_PROTECTION_POLICY</code>.</p>
    ///   - [`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): <p>Use this parameter to limit the returned policies to only the policy with the name that you specify.</p>
    ///   - [`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): <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>
    /// - 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>
    /// - 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())
    }
}