Class DataRetentionStorageConfiguration
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DataRetentionStorageConfiguration.Builder,DataRetentionStorageConfiguration>
You provide the Amazon S3 destination and AWS Key Management Service (AWS KMS) key for retained data.
Before saving a customer-managed destination, Amazon Bedrock validates that you can use the bucket and key and that their resource policies permit the required Amazon Bedrock access. If validation fails, Amazon Bedrock rejects the configuration without saving it.
You need s3:PutObject, s3:GetObject, kms:GenerateDataKey, and
kms:Decrypt permissions. The Amazon S3 bucket policy must allow the Amazon Bedrock service principal,
bedrock.amazonaws.com, to put, get, and delete objects with conditions appropriate to the configuration
scope.
Use aws:SourceAccount for account scope, aws:SourceOrgID for organization scope, and both
aws:SourceAccount and the project's aws:SourceArn for project scope. Validation rejects
resource policies that allow the service principal to access the destination without the required scope conditions.
The key policy must permit kms:GenerateDataKey and kms:Decrypt for both uses of the key:
direct use by Amazon Bedrock with the scope conditions, and use through Amazon S3 with a kms:ViaService
condition for the bucket's Region and kms:EncryptionContext:aws:s3:arn scoped to the bucket.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringThe Amazon Resource Name (ARN) of the customer managed AWS Key Management Service (AWS KMS) key you use to encrypt retained data.final StringThe Amazon Resource Name (ARN) of the Amazon S3 bucket that receives retained data.final StringThe AWS account ID of the destination bucket's owner.static Class<? extends DataRetentionStorageConfiguration.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
kmsKeyArn
The Amazon Resource Name (ARN) of the customer managed AWS Key Management Service (AWS KMS) key you use to encrypt retained data. Specify an enabled symmetric encryption key in the AWS Region where you register the configuration. You cannot specify a key alias.
- Returns:
- The Amazon Resource Name (ARN) of the customer managed AWS Key Management Service (AWS KMS) key you use to encrypt retained data. Specify an enabled symmetric encryption key in the AWS Region where you register the configuration. You cannot specify a key alias.
-
s3BucketArn
The Amazon Resource Name (ARN) of the Amazon S3 bucket that receives retained data. The bucket must be in the AWS Region where you register the configuration.
- Returns:
- The Amazon Resource Name (ARN) of the Amazon S3 bucket that receives retained data. The bucket must be in the AWS Region where you register the configuration.
-
s3BucketOwner
The AWS account ID of the destination bucket's owner. You must specify the owner, even when the bucket belongs to another account. Amazon Bedrock uses this ID to verify bucket ownership for each delivery request.
- Returns:
- The AWS account ID of the destination bucket's owner. You must specify the owner, even when the bucket belongs to another account. Amazon Bedrock uses this ID to verify bucket ownership for each delivery request.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<DataRetentionStorageConfiguration.Builder,DataRetentionStorageConfiguration> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-