You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

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

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing Destination as input to an Aws::Client method, you can use a vanilla 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.

Returned by:

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.

Returns:

#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)

    The account ID of the destination bucket.

#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)

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

#encryption_configurationTypes::EncryptionConfiguration

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

Returns:

#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.

Possible values:

  • STANDARD
  • REDUCED_REDUNDANCY
  • STANDARD_IA
  • ONEZONE_IA
  • INTELLIGENT_TIERING
  • GLACIER

Returns:

  • (String)

    The class of storage used to store the object.