#[non_exhaustive]pub struct ListKeyPoliciesInputBuilder { /* private fields */ }
Expand description
A builder for ListKeyPoliciesInput
.
Implementations§
source§impl ListKeyPoliciesInputBuilder
impl ListKeyPoliciesInputBuilder
sourcepub fn key_id(self, input: impl Into<String>) -> Self
pub fn key_id(self, input: impl Into<String>) -> Self
Gets the names of key policies for the specified KMS key.
Specify the key ID or key ARN of the KMS key.
For example:
-
Key ID:
1234abcd-12ab-34cd-56ef-1234567890ab
-
Key ARN:
arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
To get the key ID and key ARN for a KMS key, use ListKeys
or DescribeKey
.
sourcepub fn set_key_id(self, input: Option<String>) -> Self
pub fn set_key_id(self, input: Option<String>) -> Self
Gets the names of key policies for the specified KMS key.
Specify the key ID or key ARN of the KMS key.
For example:
-
Key ID:
1234abcd-12ab-34cd-56ef-1234567890ab
-
Key ARN:
arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
To get the key ID and key ARN for a KMS key, use ListKeys
or DescribeKey
.
sourcepub fn get_key_id(&self) -> &Option<String>
pub fn get_key_id(&self) -> &Option<String>
Gets the names of key policies for the specified KMS key.
Specify the key ID or key ARN of the KMS key.
For example:
-
Key ID:
1234abcd-12ab-34cd-56ef-1234567890ab
-
Key ARN:
arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
To get the key ID and key ARN for a KMS key, use ListKeys
or DescribeKey
.
sourcepub fn limit(self, input: i32) -> Self
pub fn limit(self, input: i32) -> Self
Use this parameter to specify the maximum number of items to return. When this value is present, KMS does not return more than the specified number of items, but it might return fewer.
This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do not include a value, it defaults to 100.
Only one policy can be attached to a key.
sourcepub fn set_limit(self, input: Option<i32>) -> Self
pub fn set_limit(self, input: Option<i32>) -> Self
Use this parameter to specify the maximum number of items to return. When this value is present, KMS does not return more than the specified number of items, but it might return fewer.
This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do not include a value, it defaults to 100.
Only one policy can be attached to a key.
sourcepub fn get_limit(&self) -> &Option<i32>
pub fn get_limit(&self) -> &Option<i32>
Use this parameter to specify the maximum number of items to return. When this value is present, KMS does not return more than the specified number of items, but it might return fewer.
This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do not include a value, it defaults to 100.
Only one policy can be attached to a key.
sourcepub fn marker(self, input: impl Into<String>) -> Self
pub fn marker(self, input: impl Into<String>) -> Self
Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker
from the truncated response you just received.
sourcepub fn set_marker(self, input: Option<String>) -> Self
pub fn set_marker(self, input: Option<String>) -> Self
Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker
from the truncated response you just received.
sourcepub fn get_marker(&self) -> &Option<String>
pub fn get_marker(&self) -> &Option<String>
Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker
from the truncated response you just received.
sourcepub fn build(self) -> Result<ListKeyPoliciesInput, BuildError>
pub fn build(self) -> Result<ListKeyPoliciesInput, BuildError>
Consumes the builder and constructs a ListKeyPoliciesInput
.
source§impl ListKeyPoliciesInputBuilder
impl ListKeyPoliciesInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ListKeyPoliciesOutput, SdkError<ListKeyPoliciesError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ListKeyPoliciesOutput, SdkError<ListKeyPoliciesError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ListKeyPoliciesInputBuilder
impl Clone for ListKeyPoliciesInputBuilder
source§fn clone(&self) -> ListKeyPoliciesInputBuilder
fn clone(&self) -> ListKeyPoliciesInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ListKeyPoliciesInputBuilder
impl Debug for ListKeyPoliciesInputBuilder
source§impl Default for ListKeyPoliciesInputBuilder
impl Default for ListKeyPoliciesInputBuilder
source§fn default() -> ListKeyPoliciesInputBuilder
fn default() -> ListKeyPoliciesInputBuilder
source§impl PartialEq for ListKeyPoliciesInputBuilder
impl PartialEq for ListKeyPoliciesInputBuilder
source§fn eq(&self, other: &ListKeyPoliciesInputBuilder) -> bool
fn eq(&self, other: &ListKeyPoliciesInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.