#[non_exhaustive]pub struct ListKeyRotationsInputBuilder { /* private fields */ }Expand description
A builder for ListKeyRotationsInput.
Implementations§
Source§impl ListKeyRotationsInputBuilder
impl ListKeyRotationsInputBuilder
Sourcepub fn key_id(self, input: impl Into<String>) -> Self
pub fn key_id(self, input: impl Into<String>) -> Self
Gets the key rotations 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 key rotations 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 key rotations 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 include_key_material(self, input: IncludeKeyMaterial) -> Self
pub fn include_key_material(self, input: IncludeKeyMaterial) -> Self
Use this optional parameter to control which key materials associated with this key are listed in the response. The default value of this parameter is ROTATIONS_ONLY. If you omit this parameter, KMS returns information on the key materials created by automatic or on-demand key rotation. When you specify a value of ALL_KEY_MATERIAL, KMS adds the first key material and any imported key material pending rotation to the response. This parameter can only be used with KMS keys that support automatic or on-demand key rotation.
Sourcepub fn set_include_key_material(self, input: Option<IncludeKeyMaterial>) -> Self
pub fn set_include_key_material(self, input: Option<IncludeKeyMaterial>) -> Self
Use this optional parameter to control which key materials associated with this key are listed in the response. The default value of this parameter is ROTATIONS_ONLY. If you omit this parameter, KMS returns information on the key materials created by automatic or on-demand key rotation. When you specify a value of ALL_KEY_MATERIAL, KMS adds the first key material and any imported key material pending rotation to the response. This parameter can only be used with KMS keys that support automatic or on-demand key rotation.
Sourcepub fn get_include_key_material(&self) -> &Option<IncludeKeyMaterial>
pub fn get_include_key_material(&self) -> &Option<IncludeKeyMaterial>
Use this optional parameter to control which key materials associated with this key are listed in the response. The default value of this parameter is ROTATIONS_ONLY. If you omit this parameter, KMS returns information on the key materials created by automatic or on-demand key rotation. When you specify a value of ALL_KEY_MATERIAL, KMS adds the first key material and any imported key material pending rotation to the response. This parameter can only be used with KMS keys that support automatic or on-demand key rotation.
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.
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.
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.
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<ListKeyRotationsInput, BuildError>
pub fn build(self) -> Result<ListKeyRotationsInput, BuildError>
Consumes the builder and constructs a ListKeyRotationsInput.
Source§impl ListKeyRotationsInputBuilder
impl ListKeyRotationsInputBuilder
Sourcepub async fn send_with(
self,
client: &Client,
) -> Result<ListKeyRotationsOutput, SdkError<ListKeyRotationsError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<ListKeyRotationsOutput, SdkError<ListKeyRotationsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
Source§impl Clone for ListKeyRotationsInputBuilder
impl Clone for ListKeyRotationsInputBuilder
Source§fn clone(&self) -> ListKeyRotationsInputBuilder
fn clone(&self) -> ListKeyRotationsInputBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ListKeyRotationsInputBuilder
impl Debug for ListKeyRotationsInputBuilder
Source§impl Default for ListKeyRotationsInputBuilder
impl Default for ListKeyRotationsInputBuilder
Source§fn default() -> ListKeyRotationsInputBuilder
fn default() -> ListKeyRotationsInputBuilder
Source§impl PartialEq for ListKeyRotationsInputBuilder
impl PartialEq for ListKeyRotationsInputBuilder
Source§fn eq(&self, other: &ListKeyRotationsInputBuilder) -> bool
fn eq(&self, other: &ListKeyRotationsInputBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ListKeyRotationsInputBuilder
Auto Trait Implementations§
impl Freeze for ListKeyRotationsInputBuilder
impl RefUnwindSafe for ListKeyRotationsInputBuilder
impl Send for ListKeyRotationsInputBuilder
impl Sync for ListKeyRotationsInputBuilder
impl Unpin for ListKeyRotationsInputBuilder
impl UnwindSafe for ListKeyRotationsInputBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more