Class CfnBucket.ReplicationConfigurationProperty
A container for replication rules.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.Lib.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. The latest version of the replication configuration XML is V2. For more information about XML V2 replication configurations, see Replication configuration in the Amazon S3 User Guide .
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;
var 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 .
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.