Skip to content

Put Replication Configuration

ecr_put_replication_configuration R Documentation

Creates or updates the replication configuration for a registry

Description

Creates or updates the replication configuration for a registry. The existing replication configuration for a repository can be retrieved with the describe_registry 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.

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 put_registry_policy.

Usage

ecr_put_replication_configuration(replicationConfiguration)

Arguments

replicationConfiguration

[required] An object representing the replication configuration for a registry.

Value

A list with the following syntax:

list(
  replicationConfiguration = list(
    rules = list(
      list(
        destinations = list(
          list(
            region = "string",
            registryId = "string"
          )
        ),
        repositoryFilters = list(
          list(
            filter = "string",
            filterType = "PREFIX_MATCH"
          )
        )
      )
    )
  )
)

Request syntax

svc$put_replication_configuration(
  replicationConfiguration = list(
    rules = list(
      list(
        destinations = list(
          list(
            region = "string",
            registryId = "string"
          )
        ),
        repositoryFilters = list(
          list(
            filter = "string",
            filterType = "PREFIX_MATCH"
          )
        )
      )
    )
  )
)