aws_sdk_iot/client/
get_effective_policies.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetEffectivePolicies`](crate::operation::get_effective_policies::builders::GetEffectivePoliciesFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`principal(impl Into<String>)`](crate::operation::get_effective_policies::builders::GetEffectivePoliciesFluentBuilder::principal) / [`set_principal(Option<String>)`](crate::operation::get_effective_policies::builders::GetEffectivePoliciesFluentBuilder::set_principal):<br>required: **false**<br><p>The principal. Valid principals are CertificateArn (arn:aws:iot:<i>region</i>:<i>accountId</i>:cert/<i>certificateId</i>), thingGroupArn (arn:aws:iot:<i>region</i>:<i>accountId</i>:thinggroup/<i>groupName</i>) and CognitoId (<i>region</i>:<i>id</i>).</p><br>
7    ///   - [`cognito_identity_pool_id(impl Into<String>)`](crate::operation::get_effective_policies::builders::GetEffectivePoliciesFluentBuilder::cognito_identity_pool_id) / [`set_cognito_identity_pool_id(Option<String>)`](crate::operation::get_effective_policies::builders::GetEffectivePoliciesFluentBuilder::set_cognito_identity_pool_id):<br>required: **false**<br><p>The Cognito identity pool ID.</p><br>
8    ///   - [`thing_name(impl Into<String>)`](crate::operation::get_effective_policies::builders::GetEffectivePoliciesFluentBuilder::thing_name) / [`set_thing_name(Option<String>)`](crate::operation::get_effective_policies::builders::GetEffectivePoliciesFluentBuilder::set_thing_name):<br>required: **false**<br><p>The thing name.</p><br>
9    /// - On success, responds with [`GetEffectivePoliciesOutput`](crate::operation::get_effective_policies::GetEffectivePoliciesOutput) with field(s):
10    ///   - [`effective_policies(Option<Vec::<EffectivePolicy>>)`](crate::operation::get_effective_policies::GetEffectivePoliciesOutput::effective_policies): <p>The effective policies.</p>
11    /// - On failure, responds with [`SdkError<GetEffectivePoliciesError>`](crate::operation::get_effective_policies::GetEffectivePoliciesError)
12    pub fn get_effective_policies(&self) -> crate::operation::get_effective_policies::builders::GetEffectivePoliciesFluentBuilder {
13        crate::operation::get_effective_policies::builders::GetEffectivePoliciesFluentBuilder::new(self.handle.clone())
14    }
15}