Interface CfnBucket.IReplicationConfigurationProperty
A container for replication rules.
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.AWS.S3.dll
Syntax (csharp)
public interface IReplicationConfigurationProperty
Syntax (vb)
Public Interface IReplicationConfigurationProperty
Remarks
You can add up to 1,000 rules. The maximum size of a replication configuration is 2 MB.
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
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. |
Properties
Role
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that Amazon S3 assumes when replicating objects.
string Role { get; }
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.
object Rules { get; }
Property Value
System.Object
Remarks
A replication configuration must have at least one rule and can contain a maximum of 1,000 rules.