Struct aws_sdk_iot::operation::list_principal_policies::builders::ListPrincipalPoliciesFluentBuilder
source · pub struct ListPrincipalPoliciesFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to ListPrincipalPolicies
.
Lists the policies attached to the specified principal. If you use an Cognito identity, the ID must be in AmazonCognito Identity format.
Note: This action is deprecated and works as expected for backward compatibility, but we won't add enhancements. Use ListAttachedPolicies
instead.
Requires permission to access the ListPrincipalPolicies action.
Implementations§
source§impl ListPrincipalPoliciesFluentBuilder
impl ListPrincipalPoliciesFluentBuilder
sourcepub fn as_input(&self) -> &ListPrincipalPoliciesInputBuilder
pub fn as_input(&self) -> &ListPrincipalPoliciesInputBuilder
Access the ListPrincipalPolicies as a reference.
sourcepub async fn send(
self
) -> Result<ListPrincipalPoliciesOutput, SdkError<ListPrincipalPoliciesError, HttpResponse>>
pub async fn send( self ) -> Result<ListPrincipalPoliciesOutput, SdkError<ListPrincipalPoliciesError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<ListPrincipalPoliciesOutput, ListPrincipalPoliciesError, Self>
pub fn customize( self ) -> CustomizableOperation<ListPrincipalPoliciesOutput, ListPrincipalPoliciesError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn into_paginator(self) -> ListPrincipalPoliciesPaginator
pub fn into_paginator(self) -> ListPrincipalPoliciesPaginator
Create a paginator for this request
Paginators are used by calling send().await
which returns a PaginationStream
.
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 get_principal(&self) -> &Option<String>
pub fn get_principal(&self) -> &Option<String>
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_marker(self, input: Option<String>) -> Self
pub fn set_marker(self, input: Option<String>) -> Self
The marker for the next set of results.
sourcepub fn get_marker(&self) -> &Option<String>
pub fn get_marker(&self) -> &Option<String>
The marker for the next set of results.
sourcepub fn set_page_size(self, input: Option<i32>) -> Self
pub fn set_page_size(self, input: Option<i32>) -> Self
The result page size.
sourcepub fn get_page_size(&self) -> &Option<i32>
pub fn get_page_size(&self) -> &Option<i32>
The result page size.
sourcepub fn ascending_order(self, input: bool) -> Self
pub fn ascending_order(self, input: bool) -> Self
Specifies the order for results. If true, results are returned in ascending creation order.
sourcepub fn set_ascending_order(self, input: Option<bool>) -> Self
pub fn set_ascending_order(self, input: Option<bool>) -> Self
Specifies the order for results. If true, results are returned in ascending creation order.
sourcepub fn get_ascending_order(&self) -> &Option<bool>
pub fn get_ascending_order(&self) -> &Option<bool>
Specifies the order for results. If true, results are returned in ascending creation order.
Trait Implementations§
source§impl Clone for ListPrincipalPoliciesFluentBuilder
impl Clone for ListPrincipalPoliciesFluentBuilder
source§fn clone(&self) -> ListPrincipalPoliciesFluentBuilder
fn clone(&self) -> ListPrincipalPoliciesFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more