Interface CloudWatchLogsConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CloudWatchLogsConfiguration.Builder,,CloudWatchLogsConfiguration> SdkBuilder<CloudWatchLogsConfiguration.Builder,,CloudWatchLogsConfiguration> SdkPojo
- Enclosing class:
CloudWatchLogsConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionspansLogGroupKmsKeyId(String spansLogGroupKmsKeyId) The ARN of an AWS Key Management Service (AWS KMS) key that you create and manage, in the same account and Region, used to encrypt theaws/spanslog group.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
spansLogGroupKmsKeyId
The ARN of an AWS Key Management Service (AWS KMS) key that you create and manage, in the same account and Region, used to encrypt the
aws/spanslog group. Key IDs and alias ARNs are not supported.X-Ray applies the key only when it creates
aws/spans. If the account already has anaws/spanslog group, X-Ray fails the request with anInvalidRequestExceptionand does not change the log group. To enable Transaction Search with the existing log group as it is, callUpdateTraceSegmentDestinationagain withoutSpansLogGroupKmsKeyId. To set or change the key of the existing log group, use the CloudWatch LogsAssociateKmsKeyoperation.You need
kms:DescribeKeypermission on the key, and the key policy must allow CloudWatch Logs to use the key. For more information, see Encrypt log data in CloudWatch Logs using AWS Key Management Service.- Parameters:
spansLogGroupKmsKeyId- The ARN of an AWS Key Management Service (AWS KMS) key that you create and manage, in the same account and Region, used to encrypt theaws/spanslog group. Key IDs and alias ARNs are not supported.X-Ray applies the key only when it creates
aws/spans. If the account already has anaws/spanslog group, X-Ray fails the request with anInvalidRequestExceptionand does not change the log group. To enable Transaction Search with the existing log group as it is, callUpdateTraceSegmentDestinationagain withoutSpansLogGroupKmsKeyId. To set or change the key of the existing log group, use the CloudWatch LogsAssociateKmsKeyoperation.You need
kms:DescribeKeypermission on the key, and the key policy must allow CloudWatch Logs to use the key. For more information, see Encrypt log data in CloudWatch Logs using AWS Key Management Service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-