Struct aws_sdk_iot::client::fluent_builders::GetEffectivePolicies
source · pub struct GetEffectivePolicies { /* private fields */ }
Expand description
Fluent builder constructing a request to GetEffectivePolicies
.
Gets a list of the policies that have an effect on the authorization behavior of the specified device when it connects to the IoT device gateway.
Requires permission to access the GetEffectivePolicies action.
Implementations§
source§impl GetEffectivePolicies
impl GetEffectivePolicies
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<GetEffectivePolicies, AwsResponseRetryClassifier>, SdkError<GetEffectivePoliciesError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<GetEffectivePolicies, AwsResponseRetryClassifier>, SdkError<GetEffectivePoliciesError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<GetEffectivePoliciesOutput, SdkError<GetEffectivePoliciesError>>
pub async fn send(
self
) -> Result<GetEffectivePoliciesOutput, SdkError<GetEffectivePoliciesError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn principal(self, input: impl Into<String>) -> Self
pub fn principal(self, input: impl Into<String>) -> Self
The principal. Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id).
sourcepub fn set_principal(self, input: Option<String>) -> Self
pub fn set_principal(self, input: Option<String>) -> Self
The principal. Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id).
sourcepub fn cognito_identity_pool_id(self, input: impl Into<String>) -> Self
pub fn cognito_identity_pool_id(self, input: impl Into<String>) -> Self
The Cognito identity pool ID.
sourcepub fn set_cognito_identity_pool_id(self, input: Option<String>) -> Self
pub fn set_cognito_identity_pool_id(self, input: Option<String>) -> Self
The Cognito identity pool ID.
sourcepub fn thing_name(self, input: impl Into<String>) -> Self
pub fn thing_name(self, input: impl Into<String>) -> Self
The thing name.
sourcepub fn set_thing_name(self, input: Option<String>) -> Self
pub fn set_thing_name(self, input: Option<String>) -> Self
The thing name.
Trait Implementations§
source§impl Clone for GetEffectivePolicies
impl Clone for GetEffectivePolicies
source§fn clone(&self) -> GetEffectivePolicies
fn clone(&self) -> GetEffectivePolicies
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more