Smaws_Client_CloudWatchLogs.DisassociateKmsKeyDisassociates the specified KMS key from the specified log group or from all CloudWatch Logs Insights query results in the account.
When you use DisassociateKmsKey, you specify either the logGroupName parameter or the resourceIdentifier parameter. You can't specify both of those parameters in the same operation.
logGroupName parameter to stop using the KMS key to encrypt future log events ingested and stored in the log group. Instead, they will be encrypted with the default CloudWatch Logs method. The log events that were ingested while the key was associated with the log group are still encrypted with that key. Therefore, CloudWatch Logs will need permissions for the key whenever that data is accessed.resourceIdentifier parameter with the query-result resource to stop using the KMS key to encrypt the results of all future StartQuery operations in the account. They will instead be encrypted with the default CloudWatch Logs method. The results from queries that ran while the key was associated with the account are still encrypted with that key. Therefore, CloudWatch Logs will need permissions for the key whenever that data is accessed.It can take up to 5 minutes for this operation to take effect.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `InvalidParameterException of Types.invalid_parameter_exception
| `OperationAbortedException of Types.operation_aborted_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ServiceUnavailableException of Types.service_unavailable_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.disassociate_kms_key_request ->
(Smaws_Lib.Smithy_api.Types.unit_,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidParameterException of Types.invalid_parameter_exception
| `OperationAbortedException of Types.operation_aborted_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ServiceUnavailableException of Types.service_unavailable_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.disassociate_kms_key_request ->
(Smaws_Lib.Smithy_api.Types.unit_ Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidParameterException of Types.invalid_parameter_exception
| `OperationAbortedException of Types.operation_aborted_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ServiceUnavailableException of Types.service_unavailable_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result