Class: Aws::S3::Types::ReplicationRule

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 ReplicationRule data as a hash:

{
  id: "ID",
  prefix: "Prefix", # required
  status: "Enabled", # required, accepts Enabled, Disabled
  source_selection_criteria: {
    sse_kms_encrypted_objects: {
      status: "Enabled", # required, accepts Enabled, Disabled
    },
  },
  destination: { # required
    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 information about a particular replication rule.

Instance Attribute Summary collapse

Instance Attribute Details

#destinationTypes::Destination

Container for replication destination information.

Returns:



7390
7391
7392
7393
7394
7395
7396
7397
# File 'lib/aws-sdk-s3/types.rb', line 7390

class ReplicationRule < Struct.new(
  :id,
  :prefix,
  :status,
  :source_selection_criteria,
  :destination)
  include Aws::Structure
end

#idString

Unique identifier for the rule. The value cannot be longer than 255 characters.

Returns:

  • (String)


7390
7391
7392
7393
7394
7395
7396
7397
# File 'lib/aws-sdk-s3/types.rb', line 7390

class ReplicationRule < Struct.new(
  :id,
  :prefix,
  :status,
  :source_selection_criteria,
  :destination)
  include Aws::Structure
end

#prefixString

Object keyname prefix identifying one or more objects to which the rule applies. Maximum prefix length can be up to 1,024 characters. Overlapping prefixes are not supported.

Returns:

  • (String)


7390
7391
7392
7393
7394
7395
7396
7397
# File 'lib/aws-sdk-s3/types.rb', line 7390

class ReplicationRule < Struct.new(
  :id,
  :prefix,
  :status,
  :source_selection_criteria,
  :destination)
  include Aws::Structure
end

#source_selection_criteriaTypes::SourceSelectionCriteria

Container for filters that define which source objects should be replicated.



7390
7391
7392
7393
7394
7395
7396
7397
# File 'lib/aws-sdk-s3/types.rb', line 7390

class ReplicationRule < Struct.new(
  :id,
  :prefix,
  :status,
  :source_selection_criteria,
  :destination)
  include Aws::Structure
end

#statusString

The rule is ignored if status is not Enabled.

Returns:

  • (String)


7390
7391
7392
7393
7394
7395
7396
7397
# File 'lib/aws-sdk-s3/types.rb', line 7390

class ReplicationRule < Struct.new(
  :id,
  :prefix,
  :status,
  :source_selection_criteria,
  :destination)
  include Aws::Structure
end