pub struct ListSecurityPolicies { /* private fields */ }
Expand description
Fluent builder constructing a request to ListSecurityPolicies
.
Returns information about configured OpenSearch Serverless security policies.
Implementations§
source§impl ListSecurityPolicies
impl ListSecurityPolicies
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<ListSecurityPolicies, AwsResponseRetryClassifier>, SdkError<ListSecurityPoliciesError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<ListSecurityPolicies, AwsResponseRetryClassifier>, SdkError<ListSecurityPoliciesError>>
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<ListSecurityPoliciesOutput, SdkError<ListSecurityPoliciesError>>
pub async fn send(
self
) -> Result<ListSecurityPoliciesOutput, SdkError<ListSecurityPoliciesError>>
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) -> ListSecurityPoliciesPaginator
pub fn into_paginator(self) -> ListSecurityPoliciesPaginator
Create a paginator for this request
Paginators are used by calling send().await
which returns a Stream
.
sourcepub fn type(self, input: SecurityPolicyType) -> Self
pub fn type(self, input: SecurityPolicyType) -> Self
The type of policy.
sourcepub fn set_type(self, input: Option<SecurityPolicyType>) -> Self
pub fn set_type(self, input: Option<SecurityPolicyType>) -> Self
The type of policy.
sourcepub fn resource(self, input: impl Into<String>) -> Self
pub fn resource(self, input: impl Into<String>) -> Self
Appends an item to resource
.
To override the contents of this collection use set_resource
.
Resource filters (can be collection or indexes) that policies can apply to.
sourcepub fn set_resource(self, input: Option<Vec<String>>) -> Self
pub fn set_resource(self, input: Option<Vec<String>>) -> Self
Resource filters (can be collection or indexes) that policies can apply to.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
If your initial ListSecurityPolicies
operation returns a nextToken
, you can include the returned nextToken
in subsequent ListSecurityPolicies
operations, which returns results in the next page.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
If your initial ListSecurityPolicies
operation returns a nextToken
, you can include the returned nextToken
in subsequent ListSecurityPolicies
operations, which returns results in the next page.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
An optional parameter that specifies the maximum number of results to return. You can use nextToken
to get the next page of results. The default is 20.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
An optional parameter that specifies the maximum number of results to return. You can use nextToken
to get the next page of results. The default is 20.
Trait Implementations§
source§impl Clone for ListSecurityPolicies
impl Clone for ListSecurityPolicies
source§fn clone(&self) -> ListSecurityPolicies
fn clone(&self) -> ListSecurityPolicies
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more