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
  access_control_translation: {
    owner: "Destination", # required, accepts Destination
  },
  encryption_configuration: {
    replica_kms_key_id: "ReplicaKmsKeyID",
  },
}

Container for replication destination information.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#access_control_translationTypes::AccessControlTranslation

Container for information regarding the access control for replicas.

Use only in a cross-account scenario, where source and destination bucket owners are not the same, when you want 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

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 tell Amazon S3 to change replica ownership to the AWS account that owns the destination bucket by adding the AccessControlTranslation element, this is the account ID of the destination bucket owner.

Returns:

  • (String)

    Account ID of the destination bucket.

#bucketString

Amazon resource name (ARN) of the bucket where you want Amazon S3 to store replicas of the object identified by the rule.

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

Returns:

  • (String)

    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

Container that provides encryption-related information. You must specify this element if the SourceSelectionCriteria is specified.

Returns:

#storage_classString

The class of storage used to store the object.

Possible values:

  • STANDARD
  • REDUCED_REDUNDANCY
  • STANDARD_IA
  • ONEZONE_IA

Returns:

  • (String)

    The class of storage used to store the object.