Class: Aws::Bedrock::Types::DataRetentionStorageConfiguration

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb

Overview

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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#kms_key_arn ⇒ String

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:

  • (String)


4980
4981
4982
4983
4984
4985
4986
# File 'gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb', line 4980

class DataRetentionStorageConfiguration < Struct.new(
  :kms_key_arn,
  :s3_bucket_arn,
  :s3_bucket_owner)
  SENSITIVE = []
  include Aws::Structure
end

#s3_bucket_arn ⇒ String

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:

  • (String)


4980
4981
4982
4983
4984
4985
4986
# File 'gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb', line 4980

class DataRetentionStorageConfiguration < Struct.new(
  :kms_key_arn,
  :s3_bucket_arn,
  :s3_bucket_owner)
  SENSITIVE = []
  include Aws::Structure
end

#s3_bucket_owner ⇒ String

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:

  • (String)


4980
4981
4982
4983
4984
4985
4986
# File 'gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb', line 4980

class DataRetentionStorageConfiguration < Struct.new(
  :kms_key_arn,
  :s3_bucket_arn,
  :s3_bucket_owner)
  SENSITIVE = []
  include Aws::Structure
end