pub struct ListProjectPolicies { /* private fields */ }Expand description
Fluent builder constructing a request to ListProjectPolicies.
Gets a list of the project policies attached to a project.
To attach a project policy to a project, call PutProjectPolicy. To remove a project policy from a project, call DeleteProjectPolicy.
Implementations
sourceimpl ListProjectPolicies
impl ListProjectPolicies
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<ListProjectPolicies, AwsResponseRetryClassifier>, SdkError<ListProjectPoliciesError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<ListProjectPolicies, AwsResponseRetryClassifier>, SdkError<ListProjectPoliciesError>>
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<ListProjectPoliciesOutput, SdkError<ListProjectPoliciesError>>
pub async fn send(
self
) -> Result<ListProjectPoliciesOutput, SdkError<ListProjectPoliciesError>>
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 into_paginator(self) -> ListProjectPoliciesPaginator
pub fn into_paginator(self) -> ListProjectPoliciesPaginator
Create a paginator for this request
Paginators are used by calling send().await which returns a Stream.
sourcepub fn project_arn(self, input: impl Into<String>) -> Self
pub fn project_arn(self, input: impl Into<String>) -> Self
The ARN of the project for which you want to list the project policies.
sourcepub fn set_project_arn(self, input: Option<String>) -> Self
pub fn set_project_arn(self, input: Option<String>) -> Self
The ARN of the project for which you want to list the project policies.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
If the previous response was incomplete (because there is more results to retrieve), Amazon Rekognition Custom Labels returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
If the previous response was incomplete (because there is more results to retrieve), Amazon Rekognition Custom Labels returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of results to return per paginated call. The largest value you can specify is 5. If you specify a value greater than 5, a ValidationException error occurs. The default value is 5.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of results to return per paginated call. The largest value you can specify is 5. If you specify a value greater than 5, a ValidationException error occurs. The default value is 5.
Trait Implementations
sourceimpl Clone for ListProjectPolicies
impl Clone for ListProjectPolicies
sourcefn clone(&self) -> ListProjectPolicies
fn clone(&self) -> ListProjectPolicies
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more