Struct aws_sdk_cloudwatchlogs::operation::disassociate_kms_key::builders::DisassociateKmsKeyInputBuilder
source · #[non_exhaustive]pub struct DisassociateKmsKeyInputBuilder { /* private fields */ }
Expand description
A builder for DisassociateKmsKeyInput
.
Implementations§
source§impl DisassociateKmsKeyInputBuilder
impl DisassociateKmsKeyInputBuilder
sourcepub fn log_group_name(self, input: impl Into<String>) -> Self
pub fn log_group_name(self, input: impl Into<String>) -> Self
The name of the log group.
In your DisassociateKmsKey
operation, you must specify either the resourceIdentifier
parameter or the logGroup
parameter, but you can't specify both.
sourcepub fn set_log_group_name(self, input: Option<String>) -> Self
pub fn set_log_group_name(self, input: Option<String>) -> Self
The name of the log group.
In your DisassociateKmsKey
operation, you must specify either the resourceIdentifier
parameter or the logGroup
parameter, but you can't specify both.
sourcepub fn get_log_group_name(&self) -> &Option<String>
pub fn get_log_group_name(&self) -> &Option<String>
The name of the log group.
In your DisassociateKmsKey
operation, you must specify either the resourceIdentifier
parameter or the logGroup
parameter, but you can't specify both.
sourcepub fn resource_identifier(self, input: impl Into<String>) -> Self
pub fn resource_identifier(self, input: impl Into<String>) -> Self
Specifies the target for this operation. You must specify one of the following:
-
Specify the ARN of a log group to stop having CloudWatch Logs use the KMS key to encrypt log events that are ingested and stored by that log group. After you run this operation, CloudWatch Logs encrypts ingested log events with the default CloudWatch Logs method. The log group ARN must be in the following format. Replace REGION and ACCOUNT_ID with your Region and account ID.
arn:aws:logs:REGION:ACCOUNT_ID:log-group:LOG_GROUP_NAME
-
Specify the following ARN to stop using this key to encrypt the results of future StartQuery operations in this account. Replace REGION and ACCOUNT_ID with your Region and account ID.
arn:aws:logs:REGION:ACCOUNT_ID:query-result:*
In your DisssociateKmsKey
operation, you must specify either the resourceIdentifier
parameter or the logGroup
parameter, but you can't specify both.
sourcepub fn set_resource_identifier(self, input: Option<String>) -> Self
pub fn set_resource_identifier(self, input: Option<String>) -> Self
Specifies the target for this operation. You must specify one of the following:
-
Specify the ARN of a log group to stop having CloudWatch Logs use the KMS key to encrypt log events that are ingested and stored by that log group. After you run this operation, CloudWatch Logs encrypts ingested log events with the default CloudWatch Logs method. The log group ARN must be in the following format. Replace REGION and ACCOUNT_ID with your Region and account ID.
arn:aws:logs:REGION:ACCOUNT_ID:log-group:LOG_GROUP_NAME
-
Specify the following ARN to stop using this key to encrypt the results of future StartQuery operations in this account. Replace REGION and ACCOUNT_ID with your Region and account ID.
arn:aws:logs:REGION:ACCOUNT_ID:query-result:*
In your DisssociateKmsKey
operation, you must specify either the resourceIdentifier
parameter or the logGroup
parameter, but you can't specify both.
sourcepub fn get_resource_identifier(&self) -> &Option<String>
pub fn get_resource_identifier(&self) -> &Option<String>
Specifies the target for this operation. You must specify one of the following:
-
Specify the ARN of a log group to stop having CloudWatch Logs use the KMS key to encrypt log events that are ingested and stored by that log group. After you run this operation, CloudWatch Logs encrypts ingested log events with the default CloudWatch Logs method. The log group ARN must be in the following format. Replace REGION and ACCOUNT_ID with your Region and account ID.
arn:aws:logs:REGION:ACCOUNT_ID:log-group:LOG_GROUP_NAME
-
Specify the following ARN to stop using this key to encrypt the results of future StartQuery operations in this account. Replace REGION and ACCOUNT_ID with your Region and account ID.
arn:aws:logs:REGION:ACCOUNT_ID:query-result:*
In your DisssociateKmsKey
operation, you must specify either the resourceIdentifier
parameter or the logGroup
parameter, but you can't specify both.
sourcepub fn build(self) -> Result<DisassociateKmsKeyInput, BuildError>
pub fn build(self) -> Result<DisassociateKmsKeyInput, BuildError>
Consumes the builder and constructs a DisassociateKmsKeyInput
.
source§impl DisassociateKmsKeyInputBuilder
impl DisassociateKmsKeyInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<DisassociateKmsKeyOutput, SdkError<DisassociateKmsKeyError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<DisassociateKmsKeyOutput, SdkError<DisassociateKmsKeyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for DisassociateKmsKeyInputBuilder
impl Clone for DisassociateKmsKeyInputBuilder
source§fn clone(&self) -> DisassociateKmsKeyInputBuilder
fn clone(&self) -> DisassociateKmsKeyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DisassociateKmsKeyInputBuilder
impl Default for DisassociateKmsKeyInputBuilder
source§fn default() -> DisassociateKmsKeyInputBuilder
fn default() -> DisassociateKmsKeyInputBuilder
source§impl PartialEq for DisassociateKmsKeyInputBuilder
impl PartialEq for DisassociateKmsKeyInputBuilder
source§fn eq(&self, other: &DisassociateKmsKeyInputBuilder) -> bool
fn eq(&self, other: &DisassociateKmsKeyInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DisassociateKmsKeyInputBuilder
Auto Trait Implementations§
impl Freeze for DisassociateKmsKeyInputBuilder
impl RefUnwindSafe for DisassociateKmsKeyInputBuilder
impl Send for DisassociateKmsKeyInputBuilder
impl Sync for DisassociateKmsKeyInputBuilder
impl Unpin for DisassociateKmsKeyInputBuilder
impl UnwindSafe for DisassociateKmsKeyInputBuilder
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> 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