Show / Hide Table of Contents

Class CfnBucket.ReplicationConfigurationProperty

A container for replication rules.

Inheritance
System.Object
CfnBucket.ReplicationConfigurationProperty
Implements
CfnBucket.IReplicationConfigurationProperty
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.AWS.S3.dll
Syntax (csharp)
public class ReplicationConfigurationProperty : Object, CfnBucket.IReplicationConfigurationProperty
Syntax (vb)
Public Class ReplicationConfigurationProperty
    Inherits Object
    Implements CfnBucket.IReplicationConfigurationProperty
Remarks

You can add up to 1,000 rules. The maximum size of a replication configuration is 2 MB.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationconfiguration.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3;

ReplicationConfigurationProperty replicationConfigurationProperty = new ReplicationConfigurationProperty {
    Role = "role",
    Rules = new [] { new ReplicationRuleProperty {
        Destination = new ReplicationDestinationProperty {
            Bucket = "bucket",

            // the properties below are optional
            AccessControlTranslation = new AccessControlTranslationProperty {
                Owner = "owner"
            },
            Account = "account",
            EncryptionConfiguration = new EncryptionConfigurationProperty {
                ReplicaKmsKeyId = "replicaKmsKeyId"
            },
            Metrics = new MetricsProperty {
                Status = "status",

                // the properties below are optional
                EventThreshold = new ReplicationTimeValueProperty {
                    Minutes = 123
                }
            },
            ReplicationTime = new ReplicationTimeProperty {
                Status = "status",
                Time = new ReplicationTimeValueProperty {
                    Minutes = 123
                }
            },
            StorageClass = "storageClass"
        },
        Status = "status",

        // the properties below are optional
        DeleteMarkerReplication = new DeleteMarkerReplicationProperty {
            Status = "status"
        },
        Filter = new ReplicationRuleFilterProperty {
            And = new ReplicationRuleAndOperatorProperty {
                Prefix = "prefix",
                TagFilters = new [] { new TagFilterProperty {
                    Key = "key",
                    Value = "value"
                } }
            },
            Prefix = "prefix",
            TagFilter = new TagFilterProperty {
                Key = "key",
                Value = "value"
            }
        },
        Id = "id",
        Prefix = "prefix",
        Priority = 123,
        SourceSelectionCriteria = new SourceSelectionCriteriaProperty {
            ReplicaModifications = new ReplicaModificationsProperty {
                Status = "status"
            },
            SseKmsEncryptedObjects = new SseKmsEncryptedObjectsProperty {
                Status = "status"
            }
        }
    } }
};

Synopsis

Constructors

ReplicationConfigurationProperty()

Properties

Role

The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that Amazon S3 assumes when replicating objects.

Rules

A container for one or more replication rules.

Constructors

ReplicationConfigurationProperty()

public ReplicationConfigurationProperty()

Properties

Role

The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that Amazon S3 assumes when replicating objects.

public string Role { get; set; }
Property Value

System.String

Remarks

For more information, see How to Set Up Replication in the Amazon S3 User Guide .

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationconfiguration.html#cfn-s3-bucket-replicationconfiguration-role

Rules

A container for one or more replication rules.

public object Rules { get; set; }
Property Value

System.Object

Remarks

A replication configuration must have at least one rule and can contain a maximum of 1,000 rules.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationconfiguration.html#cfn-s3-bucket-replicationconfiguration-rules

Implements

CfnBucket.IReplicationConfigurationProperty
Back to top Generated by DocFX