#[non_exhaustive]pub struct ListKeyPoliciesInput {
pub key_id: Option<String>,
pub limit: Option<i32>,
pub marker: Option<String>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.key_id: 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
.
limit: 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.
marker: 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.
Implementations§
source§impl ListKeyPoliciesInput
impl ListKeyPoliciesInput
sourcepub fn key_id(&self) -> Option<&str>
pub fn key_id(&self) -> Option<&str>
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) -> Option<i32>
pub fn 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.
source§impl ListKeyPoliciesInput
impl ListKeyPoliciesInput
sourcepub fn builder() -> ListKeyPoliciesInputBuilder
pub fn builder() -> ListKeyPoliciesInputBuilder
Creates a new builder-style object to manufacture ListKeyPoliciesInput
.
Trait Implementations§
source§impl Clone for ListKeyPoliciesInput
impl Clone for ListKeyPoliciesInput
source§fn clone(&self) -> ListKeyPoliciesInput
fn clone(&self) -> ListKeyPoliciesInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ListKeyPoliciesInput
impl Debug for ListKeyPoliciesInput
source§impl PartialEq for ListKeyPoliciesInput
impl PartialEq for ListKeyPoliciesInput
source§fn eq(&self, other: &ListKeyPoliciesInput) -> bool
fn eq(&self, other: &ListKeyPoliciesInput) -> bool
self
and other
values to be equal, and is used
by ==
.