Class: Aws::S3::Types::Destination

Inherits:
Struct
  • Object
show all
Includes:
Aws::Structure
Defined in:
lib/aws-sdk-s3/types.rb

Overview

Note:

When making an API call, you may pass Destination data as a hash:

{
  bucket: "BucketName", # required
  account: "AccountId",
  storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER
  access_control_translation: {
    owner: "Destination", # required, accepts Destination
  },
  encryption_configuration: {
    replica_kms_key_id: "ReplicaKmsKeyID",
  },
}

A container for information about the replication destination.

Instance Attribute Summary collapse

Instance Attribute Details

#access_control_translationTypes::AccessControlTranslation

A container for information about access control for replicas.

Use this element only in a cross-account scenario where source and destination bucket owners are not the same to change replica ownership to the AWS account that owns the destination bucket. If you don’t add this element to the replication configuration, the replicas are owned by same AWS account that owns the source object.



2232
2233
2234
2235
2236
2237
2238
2239
# File 'lib/aws-sdk-s3/types.rb', line 2232

class Destination < Struct.new(
  :bucket,
  :account,
  :storage_class,
  :access_control_translation,
  :encryption_configuration)
  include Aws::Structure
end

#accountString

The account ID of the destination bucket. Currently, Amazon S3 verifies this value only if Access Control Translation is enabled.

In a cross-account scenario, if you change replica ownership to the AWS account that owns the destination bucket by adding the ‘AccessControlTranslation` element, this is the account ID of the owner of the destination bucket.

Returns:

  • (String)


2232
2233
2234
2235
2236
2237
2238
2239
# File 'lib/aws-sdk-s3/types.rb', line 2232

class Destination < Struct.new(
  :bucket,
  :account,
  :storage_class,
  :access_control_translation,
  :encryption_configuration)
  include Aws::Structure
end

#bucketString

The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store replicas of the object identified by the rule.

If there are multiple rules in your replication configuration, all rules must specify the same bucket as the destination. A replication configuration can replicate objects to only one destination bucket.

Returns:

  • (String)


2232
2233
2234
2235
2236
2237
2238
2239
# File 'lib/aws-sdk-s3/types.rb', line 2232

class Destination < Struct.new(
  :bucket,
  :account,
  :storage_class,
  :access_control_translation,
  :encryption_configuration)
  include Aws::Structure
end

#encryption_configurationTypes::EncryptionConfiguration

A container that provides information about encryption. If ‘SourceSelectionCriteria` is specified, you must specify this element.



2232
2233
2234
2235
2236
2237
2238
2239
# File 'lib/aws-sdk-s3/types.rb', line 2232

class Destination < Struct.new(
  :bucket,
  :account,
  :storage_class,
  :access_control_translation,
  :encryption_configuration)
  include Aws::Structure
end

#storage_classString

The class of storage used to store the object. By default Amazon S3 uses storage class of the source object when creating a replica.

Returns:

  • (String)


2232
2233
2234
2235
2236
2237
2238
2239
# File 'lib/aws-sdk-s3/types.rb', line 2232

class Destination < Struct.new(
  :bucket,
  :account,
  :storage_class,
  :access_control_translation,
  :encryption_configuration)
  include Aws::Structure
end