Class PullThroughCacheRuleArgs.Builder

  • Enclosing class:
    PullThroughCacheRuleArgs

    public static final class PullThroughCacheRuleArgs.Builder
    extends java.lang.Object
    • Method Detail

      • credentialArn

        public PullThroughCacheRuleArgs.Builder credentialArn​(@Nullable
                                                              com.pulumi.core.Output<java.lang.String> credentialArn)
        Parameters:
        credentialArn - ARN of the Secret which will be used to authenticate against the registry.
        Returns:
        builder
      • credentialArn

        public PullThroughCacheRuleArgs.Builder credentialArn​(java.lang.String credentialArn)
        Parameters:
        credentialArn - ARN of the Secret which will be used to authenticate against the registry.
        Returns:
        builder
      • customRoleArn

        public PullThroughCacheRuleArgs.Builder customRoleArn​(@Nullable
                                                              com.pulumi.core.Output<java.lang.String> customRoleArn)
        Parameters:
        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](https://docs.aws.amazon.com/AmazonECR/latest/userguide/pull-through-cache-private.html).
        Returns:
        builder
      • customRoleArn

        public PullThroughCacheRuleArgs.Builder customRoleArn​(java.lang.String customRoleArn)
        Parameters:
        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](https://docs.aws.amazon.com/AmazonECR/latest/userguide/pull-through-cache-private.html).
        Returns:
        builder
      • ecrRepositoryPrefix

        public PullThroughCacheRuleArgs.Builder ecrRepositoryPrefix​(com.pulumi.core.Output<java.lang.String> ecrRepositoryPrefix)
        Parameters:
        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.
        Returns:
        builder
      • ecrRepositoryPrefix

        public PullThroughCacheRuleArgs.Builder ecrRepositoryPrefix​(java.lang.String ecrRepositoryPrefix)
        Parameters:
        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.
        Returns:
        builder
      • region

        public PullThroughCacheRuleArgs.Builder region​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • region

        public PullThroughCacheRuleArgs.Builder region​(java.lang.String region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • upstreamRegistryUrl

        public PullThroughCacheRuleArgs.Builder upstreamRegistryUrl​(com.pulumi.core.Output<java.lang.String> upstreamRegistryUrl)
        Parameters:
        upstreamRegistryUrl - The registry URL of the upstream registry to use as the source.
        Returns:
        builder
      • upstreamRegistryUrl

        public PullThroughCacheRuleArgs.Builder upstreamRegistryUrl​(java.lang.String upstreamRegistryUrl)
        Parameters:
        upstreamRegistryUrl - The registry URL of the upstream registry to use as the source.
        Returns:
        builder
      • upstreamRepositoryPrefix

        public PullThroughCacheRuleArgs.Builder upstreamRepositoryPrefix​(@Nullable
                                                                         com.pulumi.core.Output<java.lang.String> upstreamRepositoryPrefix)
        Parameters:
        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](https://docs.aws.amazon.com/AmazonECR/latest/userguide/pull-through-cache-private-wildcards.html).
        Returns:
        builder
      • upstreamRepositoryPrefix

        public PullThroughCacheRuleArgs.Builder upstreamRepositoryPrefix​(java.lang.String upstreamRepositoryPrefix)
        Parameters:
        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](https://docs.aws.amazon.com/AmazonECR/latest/userguide/pull-through-cache-private-wildcards.html).
        Returns:
        builder