PullThroughCacheRuleArgs constructor

const PullThroughCacheRuleArgs({
  1. Input<String?>? credentialArn,
  2. Input<String?>? customRoleArn,
  3. required Input<String> ecrRepositoryPrefix,
  4. Input<String?>? region,
  5. required Input<String> upstreamRegistryUrl,
  6. Input<String?>? upstreamRepositoryPrefix,
})

Creates a new PullThroughCacheRuleArgs. credentialArn ARN of the Secret which will be used to authenticate against the registry. customRoleArn The ARN of the IAM role associated with the pull through cache rule. Must be specified if the upstream registry is a cross-account ECR private registry. See AWS Document - Setting up permissions for cross-account ECR to ECR PTC. ecrRepositoryPrefix The repository name prefix to use when caching images from the source registry. Use ROOT as the prefix to apply a template to all repositories in your registry that don't have an associated pull through cache rule. region Region where this resource will be managed. Defaults to the Region set in the provider configuration. upstreamRegistryUrl The registry URL of the upstream registry to use as the source. upstreamRepositoryPrefix The upstream repository prefix associated with the pull through cache rule. Used if the upstream registry is an ECR private registry. If not specified, it's set to ROOT, which allows matching with any upstream repository. See AWS Document - Customizing repository prefixes for ECR to ECR pull through cache.

Implementation

const PullThroughCacheRuleArgs({
  this.credentialArn,
  this.customRoleArn,
  required this.ecrRepositoryPrefix,
  this.region,
  required this.upstreamRegistryUrl,
  this.upstreamRepositoryPrefix,
});