Class CfnReplicationConfiguration
The AWS::ECR::ReplicationConfiguration
resource creates or updates the replication configuration for a private registry.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.ECR
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnReplicationConfiguration : CfnResource, IInspectable
Syntax (vb)
Public Class CfnReplicationConfiguration
Inherits CfnResource
Implements IInspectable
Remarks
The first time a replication configuration is applied to a private registry, a service-linked IAM role is created in your account for the replication process. For more information, see Using Service-Linked Roles for Amazon ECR in the Amazon Elastic Container Registry User Guide .
When configuring cross-account replication, the destination account must grant the source account permission to replicate. This permission is controlled using a private registry permissions policy. For more information, see AWS::ECR::RegistryPolicy
.
CloudformationResource: AWS::ECR::ReplicationConfiguration
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.ECR;
var cfnReplicationConfiguration = new CfnReplicationConfiguration(this, "MyCfnReplicationConfiguration", new CfnReplicationConfigurationProps {
ReplicationConfiguration = new ReplicationConfigurationProperty {
Rules = new [] { new ReplicationRuleProperty {
Destinations = new [] { new ReplicationDestinationProperty {
Region = "region",
RegistryId = "registryId"
} },
// the properties below are optional
RepositoryFilters = new [] { new RepositoryFilterProperty {
Filter = "filter",
FilterType = "filterType"
} }
} }
}
});
Synopsis
Constructors
CfnReplicationConfiguration(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnReplicationConfiguration(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnReplicationConfiguration(Construct, String, ICfnReplicationConfigurationProps) |
Properties
AttrRegistryId | The account ID of the destination registry. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
ReplicationConfiguration | The replication configuration for a registry. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnReplicationConfiguration(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnReplicationConfiguration(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnReplicationConfiguration(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnReplicationConfiguration(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnReplicationConfiguration(Construct, String, ICfnReplicationConfigurationProps)
public CfnReplicationConfiguration(Construct scope, string id, ICfnReplicationConfigurationProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnReplicationConfigurationProps
Resource properties.
Properties
AttrRegistryId
The account ID of the destination registry.
public virtual string AttrRegistryId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: RegistryId
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
ReplicationConfiguration
The replication configuration for a registry.
public virtual object ReplicationConfiguration { get; set; }
Property Value
System.Object
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>