#[non_exhaustive]pub struct ListPermissionsInputBuilder { /* private fields */ }Expand description
A builder for ListPermissionsInput.
Implementations§
source§impl ListPermissionsInputBuilder
impl ListPermissionsInputBuilder
sourcepub fn resource_type(self, input: impl Into<String>) -> Self
pub fn resource_type(self, input: impl Into<String>) -> Self
Specifies that you want to list only those permissions that apply to the specified resource type. This parameter is not case sensitive.
For example, to list only permissions that apply to Amazon EC2 subnets, specify ec2:subnet. You can use the ListResourceTypes operation to get the specific string required.
sourcepub fn set_resource_type(self, input: Option<String>) -> Self
pub fn set_resource_type(self, input: Option<String>) -> Self
Specifies that you want to list only those permissions that apply to the specified resource type. This parameter is not case sensitive.
For example, to list only permissions that apply to Amazon EC2 subnets, specify ec2:subnet. You can use the ListResourceTypes operation to get the specific string required.
sourcepub fn get_resource_type(&self) -> &Option<String>
pub fn get_resource_type(&self) -> &Option<String>
Specifies that you want to list only those permissions that apply to the specified resource type. This parameter is not case sensitive.
For example, to list only permissions that apply to Amazon EC2 subnets, specify ec2:subnet. You can use the ListResourceTypes operation to get the specific string required.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.
sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.
sourcepub fn get_max_results(&self) -> &Option<i32>
pub fn get_max_results(&self) -> &Option<i32>
Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.
sourcepub fn permission_type(self, input: PermissionTypeFilter) -> Self
pub fn permission_type(self, input: PermissionTypeFilter) -> Self
Specifies that you want to list only permissions of this type:
-
AWS– returns only Amazon Web Services managed permissions. -
LOCAL– returns only customer managed permissions -
ALL– returns both Amazon Web Services managed permissions and customer managed permissions.
If you don't specify this parameter, the default is All.
sourcepub fn set_permission_type(self, input: Option<PermissionTypeFilter>) -> Self
pub fn set_permission_type(self, input: Option<PermissionTypeFilter>) -> Self
Specifies that you want to list only permissions of this type:
-
AWS– returns only Amazon Web Services managed permissions. -
LOCAL– returns only customer managed permissions -
ALL– returns both Amazon Web Services managed permissions and customer managed permissions.
If you don't specify this parameter, the default is All.
sourcepub fn get_permission_type(&self) -> &Option<PermissionTypeFilter>
pub fn get_permission_type(&self) -> &Option<PermissionTypeFilter>
Specifies that you want to list only permissions of this type:
-
AWS– returns only Amazon Web Services managed permissions. -
LOCAL– returns only customer managed permissions -
ALL– returns both Amazon Web Services managed permissions and customer managed permissions.
If you don't specify this parameter, the default is All.
sourcepub fn build(self) -> Result<ListPermissionsInput, BuildError>
pub fn build(self) -> Result<ListPermissionsInput, BuildError>
Consumes the builder and constructs a ListPermissionsInput.
source§impl ListPermissionsInputBuilder
impl ListPermissionsInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ListPermissionsOutput, SdkError<ListPermissionsError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ListPermissionsOutput, SdkError<ListPermissionsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ListPermissionsInputBuilder
impl Clone for ListPermissionsInputBuilder
source§fn clone(&self) -> ListPermissionsInputBuilder
fn clone(&self) -> ListPermissionsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ListPermissionsInputBuilder
impl Debug for ListPermissionsInputBuilder
source§impl Default for ListPermissionsInputBuilder
impl Default for ListPermissionsInputBuilder
source§fn default() -> ListPermissionsInputBuilder
fn default() -> ListPermissionsInputBuilder
source§impl PartialEq for ListPermissionsInputBuilder
impl PartialEq for ListPermissionsInputBuilder
source§fn eq(&self, other: &ListPermissionsInputBuilder) -> bool
fn eq(&self, other: &ListPermissionsInputBuilder) -> bool
self and other values to be equal, and is used
by ==.