@Generated(value="software.amazon.awssdk:codegen") public final class AssociateKmsKeyRequest extends CloudWatchLogsRequest implements ToCopyableBuilder<AssociateKmsKeyRequest.Builder,AssociateKmsKeyRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
AssociateKmsKeyRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static AssociateKmsKeyRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
kmsKeyId()
The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data.
|
String |
logGroupName()
The name of the log group.
|
String |
resourceIdentifier()
Specifies the target for this operation.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AssociateKmsKeyRequest.Builder> |
serializableBuilderClass() |
AssociateKmsKeyRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String logGroupName()
The name of the log group.
In your AssociateKmsKey operation, you must specify either the resourceIdentifier
parameter or the logGroup parameter, but you can't specify both.
In your AssociateKmsKey operation, you must specify either the
resourceIdentifier parameter or the logGroup parameter, but you can't specify
both.
public final String kmsKeyId()
The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data. This must be a symmetric KMS key. For more information, see Amazon Resource Names and Using Symmetric and Asymmetric Keys.
public final String resourceIdentifier()
Specifies the target for this operation. You must specify one of the following:
Specify the following ARN to have future GetQueryResults operations in this account encrypt the results with the specified KMS key. Replace REGION and ACCOUNT_ID with your Region and account ID.
arn:aws:logs:REGION:ACCOUNT_ID:query-result:*
Specify the ARN of a log group to have CloudWatch Logs use the KMS key to encrypt log events that are ingested and stored by that log group. 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
In your AssociateKmsKey operation, you must specify either the resourceIdentifier
parameter or the logGroup parameter, but you can't specify both.
Specify the following ARN to have future GetQueryResults operations in this account encrypt the results with the specified KMS key. Replace REGION and ACCOUNT_ID with your Region and account ID.
arn:aws:logs:REGION:ACCOUNT_ID:query-result:*
Specify the ARN of a log group to have CloudWatch Logs use the KMS key to encrypt log events that are ingested and stored by that log group. 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
In your AssociateKmsKey operation, you must specify either the
resourceIdentifier parameter or the logGroup parameter, but you can't specify
both.
public AssociateKmsKeyRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AssociateKmsKeyRequest.Builder,AssociateKmsKeyRequest>toBuilder in class CloudWatchLogsRequestpublic static AssociateKmsKeyRequest.Builder builder()
public static Class<? extends AssociateKmsKeyRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.