#[non_exhaustive]pub struct GetKeyPolicyInput {
pub key_id: Option<String>,
pub policy_name: 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>Identifies the KMS key whose key policy you want to get.
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.
policy_name: Option<String>Specifies the name of the key policy. If no policy name is specified, the default value is default. Valid values are default and AWS_RAM. Use AWS_RAM to get the key policy that RAM manages for a KMS key that you share through RAM. If the KMS key doesn't have an AWS_RAM key policy, the request fails with a NotFoundException. To get the names of key policies, use ListKeyPolicies.
Implementations§
Source§impl GetKeyPolicyInput
impl GetKeyPolicyInput
Sourcepub fn key_id(&self) -> Option<&str>
pub fn key_id(&self) -> Option<&str>
Identifies the KMS key whose key policy you want to get.
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 policy_name(&self) -> Option<&str>
pub fn policy_name(&self) -> Option<&str>
Specifies the name of the key policy. If no policy name is specified, the default value is default. Valid values are default and AWS_RAM. Use AWS_RAM to get the key policy that RAM manages for a KMS key that you share through RAM. If the KMS key doesn't have an AWS_RAM key policy, the request fails with a NotFoundException. To get the names of key policies, use ListKeyPolicies.
Source§impl GetKeyPolicyInput
impl GetKeyPolicyInput
Sourcepub fn builder() -> GetKeyPolicyInputBuilder
pub fn builder() -> GetKeyPolicyInputBuilder
Creates a new builder-style object to manufacture GetKeyPolicyInput.
Source§impl GetKeyPolicyInput
impl GetKeyPolicyInput
Sourcepub fn deserialize(
deserializer: &mut dyn ShapeDeserializer,
) -> Result<Self, SerdeError>
pub fn deserialize( deserializer: &mut dyn ShapeDeserializer, ) -> Result<Self, SerdeError>
Deserializes this structure from a [ShapeDeserializer].
Trait Implementations§
Source§impl Clone for GetKeyPolicyInput
impl Clone for GetKeyPolicyInput
Source§fn clone(&self) -> GetKeyPolicyInput
fn clone(&self) -> GetKeyPolicyInput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GetKeyPolicyInput
impl Debug for GetKeyPolicyInput
Source§impl PartialEq for GetKeyPolicyInput
impl PartialEq for GetKeyPolicyInput
Source§impl SerializableStruct for GetKeyPolicyInput
impl SerializableStruct for GetKeyPolicyInput
Source§fn schema(&self) -> &Schema<'_>
fn schema(&self) -> &Schema<'_>
Source§fn serialize_members(
&self,
ser: &mut dyn ShapeSerializer,
) -> Result<(), SerdeError>
fn serialize_members( &self, ser: &mut dyn ShapeSerializer, ) -> Result<(), SerdeError>
impl StructuralPartialEq for GetKeyPolicyInput
Auto Trait Implementations§
impl Freeze for GetKeyPolicyInput
impl RefUnwindSafe for GetKeyPolicyInput
impl Send for GetKeyPolicyInput
impl Sync for GetKeyPolicyInput
impl Unpin for GetKeyPolicyInput
impl UnsafeUnpin for GetKeyPolicyInput
impl UnwindSafe for GetKeyPolicyInput
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