/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace CloudWatchLogs { namespace Model { /** */ class DisassociateKmsKeyRequest : public CloudWatchLogsRequest { public: AWS_CLOUDWATCHLOGS_API DisassociateKmsKeyRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DisassociateKmsKey"; } AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override; AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

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.

*/ inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; } /** *

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.

*/ inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; } /** *

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.

*/ inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; } /** *

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.

*/ inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); } /** *

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.

*/ inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); } /** *

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.

*/ inline DisassociateKmsKeyRequest& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;} /** *

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.

*/ inline DisassociateKmsKeyRequest& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;} /** *

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.

*/ inline DisassociateKmsKeyRequest& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;} /** *

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.

*/ inline const Aws::String& GetResourceIdentifier() const{ return m_resourceIdentifier; } /** *

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.

*/ inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; } /** *

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.

*/ inline void SetResourceIdentifier(const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = value; } /** *

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.

*/ inline void SetResourceIdentifier(Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::move(value); } /** *

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.

*/ inline void SetResourceIdentifier(const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.assign(value); } /** *

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.

*/ inline DisassociateKmsKeyRequest& WithResourceIdentifier(const Aws::String& value) { SetResourceIdentifier(value); return *this;} /** *

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.

*/ inline DisassociateKmsKeyRequest& WithResourceIdentifier(Aws::String&& value) { SetResourceIdentifier(std::move(value)); return *this;} /** *

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.

*/ inline DisassociateKmsKeyRequest& WithResourceIdentifier(const char* value) { SetResourceIdentifier(value); return *this;} private: Aws::String m_logGroupName; bool m_logGroupNameHasBeenSet = false; Aws::String m_resourceIdentifier; bool m_resourceIdentifierHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws