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.
When configuring cross-account replication, the destination account must grant the
source account permission to replicate. This permission is controlled using a
registry permissions policy. For more information, see PutRegistryPolicy.
Example
Use a bare-bones client and the command you need to make an API call.
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.
When configuring cross-account replication, the destination account must grant the source account permission to replicate. This permission is controlled using a registry permissions policy. For more information, see PutRegistryPolicy.
Example
Use a bare-bones client and the command you need to make an API call.
See
input
shape.response
shape.config
shape.Throws
InvalidParameterException (client fault)
The specified parameter is invalid. Review the available parameters for the API request.
Throws
ServerException (server fault)
These errors are usually caused by a server-side issue.
Throws
ValidationException (client fault)
There was an exception validating this request.