@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.532Z") @Stability(value=Stable) public class CfnReplicationConfiguration extends CfnResource implements IInspectable
The AWS::ECR::ReplicationConfiguration resource creates or updates the replication configuration for a private registry. 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.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecr.*;
CfnReplicationConfiguration cfnReplicationConfiguration = CfnReplicationConfiguration.Builder.create(this, "MyCfnReplicationConfiguration")
.replicationConfiguration(ReplicationConfigurationProperty.builder()
.rules(List.of(ReplicationRuleProperty.builder()
.destinations(List.of(ReplicationDestinationProperty.builder()
.region("region")
.registryId("registryId")
.build()))
// the properties below are optional
.repositoryFilters(List.of(RepositoryFilterProperty.builder()
.filter("filter")
.filterType("filterType")
.build()))
.build()))
.build())
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnReplicationConfiguration.Builder
A fluent builder for
CfnReplicationConfiguration. |
static interface |
CfnReplicationConfiguration.ReplicationConfigurationProperty
The replication configuration for a registry.
|
static interface |
CfnReplicationConfiguration.ReplicationDestinationProperty
An array of objects representing the destination for a replication rule.
|
static interface |
CfnReplicationConfiguration.ReplicationRuleProperty
An array of objects representing the replication destinations and repository filters for a replication configuration.
|
static interface |
CfnReplicationConfiguration.RepositoryFilterProperty
The filter settings used with image replication.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnReplicationConfiguration(software.constructs.Construct scope,
String id,
CfnReplicationConfigurationProps props)
Create a new `AWS::ECR::ReplicationConfiguration`.
|
protected |
CfnReplicationConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnReplicationConfiguration(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrRegistryId()
The account ID of the destination registry.
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getReplicationConfiguration()
The replication configuration for a registry.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setReplicationConfiguration(CfnReplicationConfiguration.ReplicationConfigurationProperty value)
The replication configuration for a registry.
|
void |
setReplicationConfiguration(IResolvable value)
The replication configuration for a registry.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnReplicationConfiguration(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnReplicationConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnReplicationConfiguration(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnReplicationConfigurationProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrRegistryId()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public Object getReplicationConfiguration()
@Stability(value=Stable)
public void setReplicationConfiguration(@NotNull
CfnReplicationConfiguration.ReplicationConfigurationProperty value)
@Stability(value=Stable)
public void setReplicationConfiguration(@NotNull
IResolvable value)
Copyright © 2022. All rights reserved.