2026/11/16 - Amazon Elastic Container Registry - 2 updated api methods
Changes ECR feature support for replicating image deletion and untagging.
{'replicationConfiguration': {'rules': {'deleteReplication': {'enabled': 'boolean'}}}}
Describes the settings for a registry. The replication configuration for a repository can be created or updated with the PutReplicationConfiguration API action.
See also: AWS API Documentation
Request Syntax
client.describe_registry()
dict
Response Syntax
{
'registryId': 'string',
'replicationConfiguration': {
'rules': [
{
'destinations': [
{
'region': 'string',
'registryId': 'string'
},
],
'repositoryFilters': [
{
'filter': 'string',
'filterType': 'PREFIX_MATCH'
},
],
'deleteReplication': {
'enabled': True|False
}
},
]
}
}
Response Structure
(dict) --
registryId (string) --
The registry ID associated with the request.
replicationConfiguration (dict) --
The replication configuration for the registry.
rules (list) --
An array of objects representing the replication destinations and repository filters for a replication configuration.
(dict) --
An array of objects representing the replication destinations and repository filters for a replication configuration.
destinations (list) --
An array of objects representing the destination for a replication rule.
(dict) --
An array of objects representing the destination for a replication rule.
region (string) --
The Region to replicate to.
registryId (string) --
The Amazon Web Services account ID of the Amazon ECR private registry to replicate to. When configuring cross-Region replication within your own registry, specify your own account ID.
repositoryFilters (list) --
An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.
(dict) --
The filter settings used with image replication. Specifying a repository filter to a replication rule provides a method for controlling which repositories in a private registry are replicated. If no filters are added, the contents of all repositories are replicated.
filter (string) --
The repository filter details. When the PREFIX_MATCH filter type is specified, this value is required and should be the repository name prefix to configure replication for.
filterType (string) --
The repository filter type. The only supported value is PREFIX_MATCH, which is a repository name prefix specified with the filter parameter.
deleteReplication (dict) --
The delete replication settings for the replication rule. When delete replication is enabled, the service replicates image deletions and image tag removals from the source registry to the replication destinations. If you do not specify this parameter, the service does not replicate image deletions or image tag removals for the replication rule.
enabled (boolean) --
Specifies whether delete replication is enabled. If set to true, the service replicates image deletions and image tag removals from the source registry to each replication destination. If set to false, the service does not replicate image deletions or image tag removals.
{'replicationConfiguration': {'rules': {'deleteReplication': {'enabled': 'boolean'}}}}
Creates or updates the replication configuration for a registry. The existing replication configuration for a repository can be retrieved with the DescribeRegistry API action. The first time the PutReplicationConfiguration API is called, 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. For more information on the custom role for replication, see Creating an IAM role for replication.
See also: AWS API Documentation
Request Syntax
client.put_replication_configuration(
replicationConfiguration={
'rules': [
{
'destinations': [
{
'region': 'string',
'registryId': 'string'
},
],
'repositoryFilters': [
{
'filter': 'string',
'filterType': 'PREFIX_MATCH'
},
],
'deleteReplication': {
'enabled': True|False
}
},
]
}
)
dict
[REQUIRED]
An object representing the replication configuration for a registry.
rules (list) -- [REQUIRED]
An array of objects representing the replication destinations and repository filters for a replication configuration.
(dict) --
An array of objects representing the replication destinations and repository filters for a replication configuration.
destinations (list) -- [REQUIRED]
An array of objects representing the destination for a replication rule.
(dict) --
An array of objects representing the destination for a replication rule.
region (string) -- [REQUIRED]
The Region to replicate to.
registryId (string) -- [REQUIRED]
The Amazon Web Services account ID of the Amazon ECR private registry to replicate to. When configuring cross-Region replication within your own registry, specify your own account ID.
repositoryFilters (list) --
An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.
(dict) --
The filter settings used with image replication. Specifying a repository filter to a replication rule provides a method for controlling which repositories in a private registry are replicated. If no filters are added, the contents of all repositories are replicated.
filter (string) -- [REQUIRED]
The repository filter details. When the PREFIX_MATCH filter type is specified, this value is required and should be the repository name prefix to configure replication for.
filterType (string) -- [REQUIRED]
The repository filter type. The only supported value is PREFIX_MATCH, which is a repository name prefix specified with the filter parameter.
deleteReplication (dict) --
The delete replication settings for the replication rule. When delete replication is enabled, the service replicates image deletions and image tag removals from the source registry to the replication destinations. If you do not specify this parameter, the service does not replicate image deletions or image tag removals for the replication rule.
enabled (boolean) -- [REQUIRED]
Specifies whether delete replication is enabled. If set to true, the service replicates image deletions and image tag removals from the source registry to each replication destination. If set to false, the service does not replicate image deletions or image tag removals.
dict
Response Syntax
{
'replicationConfiguration': {
'rules': [
{
'destinations': [
{
'region': 'string',
'registryId': 'string'
},
],
'repositoryFilters': [
{
'filter': 'string',
'filterType': 'PREFIX_MATCH'
},
],
'deleteReplication': {
'enabled': True|False
}
},
]
}
}
Response Structure
(dict) --
replicationConfiguration (dict) --
The contents of the replication configuration for the registry.
rules (list) --
An array of objects representing the replication destinations and repository filters for a replication configuration.
(dict) --
An array of objects representing the replication destinations and repository filters for a replication configuration.
destinations (list) --
An array of objects representing the destination for a replication rule.
(dict) --
An array of objects representing the destination for a replication rule.
region (string) --
The Region to replicate to.
registryId (string) --
The Amazon Web Services account ID of the Amazon ECR private registry to replicate to. When configuring cross-Region replication within your own registry, specify your own account ID.
repositoryFilters (list) --
An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.
(dict) --
The filter settings used with image replication. Specifying a repository filter to a replication rule provides a method for controlling which repositories in a private registry are replicated. If no filters are added, the contents of all repositories are replicated.
filter (string) --
The repository filter details. When the PREFIX_MATCH filter type is specified, this value is required and should be the repository name prefix to configure replication for.
filterType (string) --
The repository filter type. The only supported value is PREFIX_MATCH, which is a repository name prefix specified with the filter parameter.
deleteReplication (dict) --
The delete replication settings for the replication rule. When delete replication is enabled, the service replicates image deletions and image tag removals from the source registry to the replication destinations. If you do not specify this parameter, the service does not replicate image deletions or image tag removals for the replication rule.
enabled (boolean) --
Specifies whether delete replication is enabled. If set to true, the service replicates image deletions and image tag removals from the source registry to each replication destination. If set to false, the service does not replicate image deletions or image tag removals.