#[non_exhaustive]pub struct GetKeyPolicyInputBuilder { /* private fields */ }
Expand description
A builder for GetKeyPolicyInput
.
Implementations§
source§impl GetKeyPolicyInputBuilder
impl GetKeyPolicyInputBuilder
sourcepub fn key_id(self, input: impl Into<String>) -> Self
pub fn key_id(self, input: impl Into<String>) -> Self
Gets the key policy 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 policy 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 policy 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 policy_name(self, input: impl Into<String>) -> Self
pub fn policy_name(self, input: impl Into<String>) -> Self
Specifies the name of the key policy. If no policy name is specified, the default value is default
. The only valid name is default
. To get the names of key policies, use ListKeyPolicies
.
sourcepub fn set_policy_name(self, input: Option<String>) -> Self
pub fn set_policy_name(self, input: Option<String>) -> Self
Specifies the name of the key policy. If no policy name is specified, the default value is default
. The only valid name is default
. To get the names of key policies, use ListKeyPolicies
.
sourcepub fn get_policy_name(&self) -> &Option<String>
pub fn get_policy_name(&self) -> &Option<String>
Specifies the name of the key policy. If no policy name is specified, the default value is default
. The only valid name is default
. To get the names of key policies, use ListKeyPolicies
.
sourcepub fn build(self) -> Result<GetKeyPolicyInput, BuildError>
pub fn build(self) -> Result<GetKeyPolicyInput, BuildError>
Consumes the builder and constructs a GetKeyPolicyInput
.
source§impl GetKeyPolicyInputBuilder
impl GetKeyPolicyInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<GetKeyPolicyOutput, SdkError<GetKeyPolicyError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<GetKeyPolicyOutput, SdkError<GetKeyPolicyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GetKeyPolicyInputBuilder
impl Clone for GetKeyPolicyInputBuilder
source§fn clone(&self) -> GetKeyPolicyInputBuilder
fn clone(&self) -> GetKeyPolicyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetKeyPolicyInputBuilder
impl Debug for GetKeyPolicyInputBuilder
source§impl Default for GetKeyPolicyInputBuilder
impl Default for GetKeyPolicyInputBuilder
source§fn default() -> GetKeyPolicyInputBuilder
fn default() -> GetKeyPolicyInputBuilder
source§impl PartialEq for GetKeyPolicyInputBuilder
impl PartialEq for GetKeyPolicyInputBuilder
source§fn eq(&self, other: &GetKeyPolicyInputBuilder) -> bool
fn eq(&self, other: &GetKeyPolicyInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.