@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AssociateKmsKeyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
AssociateKmsKeyRequest() |
Modifier and Type | Method and Description |
---|---|
AssociateKmsKeyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getKmsKeyId()
The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data.
|
String |
getLogGroupName()
The name of the log group.
|
String |
getResourceIdentifier()
Specifies the target for this operation.
|
int |
hashCode() |
void |
setKmsKeyId(String kmsKeyId)
The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data.
|
void |
setLogGroupName(String logGroupName)
The name of the log group.
|
void |
setResourceIdentifier(String resourceIdentifier)
Specifies the target for this operation.
|
String |
toString()
Returns a string representation of this object.
|
AssociateKmsKeyRequest |
withKmsKeyId(String kmsKeyId)
The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data.
|
AssociateKmsKeyRequest |
withLogGroupName(String logGroupName)
The name of the log group.
|
AssociateKmsKeyRequest |
withResourceIdentifier(String resourceIdentifier)
Specifies the target for this operation.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setLogGroupName(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.
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.
public String getLogGroupName()
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 AssociateKmsKeyRequest withLogGroupName(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.
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.
public void setKmsKeyId(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.
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 String getKmsKeyId()
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 AssociateKmsKeyRequest withKmsKeyId(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.
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 void setResourceIdentifier(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.
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.
public String getResourceIdentifier()
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 withResourceIdentifier(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.
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.
public String toString()
toString
in class Object
Object.toString()
public AssociateKmsKeyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()