Skip to content

Update Pull Through Cache Rule

ecr_update_pull_through_cache_rule R Documentation

Updates an existing pull through cache rule

Description

Updates an existing pull through cache rule.

Usage

ecr_update_pull_through_cache_rule(registryId, ecrRepositoryPrefix,
  credentialArn, customRoleArn)

Arguments

registryId

The Amazon Web Services account ID associated with the registry associated with the pull through cache rule. If you do not specify a registry, the default registry is assumed.

ecrRepositoryPrefix

[required] The repository name prefix to use when caching images from the source registry.

credentialArn

The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that identifies the credentials to authenticate to the upstream registry.

customRoleArn

Amazon Resource Name (ARN) of the IAM role to be assumed by Amazon ECR to authenticate to the ECR upstream registry. This role must be in the same account as the registry that you are configuring.

Value

A list with the following syntax:

list(
  ecrRepositoryPrefix = "string",
  registryId = "string",
  updatedAt = as.POSIXct(
    "2015-01-01"
  ),
  credentialArn = "string",
  customRoleArn = "string",
  upstreamRepositoryPrefix = "string"
)

Request syntax

svc$update_pull_through_cache_rule(
  registryId = "string",
  ecrRepositoryPrefix = "string",
  credentialArn = "string",
  customRoleArn = "string"
)