Package com.pulumi.aws.ecr
Class PullThroughCacheRuleArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.ecr.PullThroughCacheRuleArgs.Builder
-
- Enclosing class:
- PullThroughCacheRuleArgs
public static final class PullThroughCacheRuleArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(PullThroughCacheRuleArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PullThroughCacheRuleArgsbuild()PullThroughCacheRuleArgs.BuildercredentialArn(com.pulumi.core.Output<java.lang.String> credentialArn)PullThroughCacheRuleArgs.BuildercredentialArn(java.lang.String credentialArn)PullThroughCacheRuleArgs.BuildercustomRoleArn(com.pulumi.core.Output<java.lang.String> customRoleArn)PullThroughCacheRuleArgs.BuildercustomRoleArn(java.lang.String customRoleArn)PullThroughCacheRuleArgs.BuilderecrRepositoryPrefix(com.pulumi.core.Output<java.lang.String> ecrRepositoryPrefix)PullThroughCacheRuleArgs.BuilderecrRepositoryPrefix(java.lang.String ecrRepositoryPrefix)PullThroughCacheRuleArgs.Builderregion(com.pulumi.core.Output<java.lang.String> region)PullThroughCacheRuleArgs.Builderregion(java.lang.String region)PullThroughCacheRuleArgs.BuilderupstreamRegistryUrl(com.pulumi.core.Output<java.lang.String> upstreamRegistryUrl)PullThroughCacheRuleArgs.BuilderupstreamRegistryUrl(java.lang.String upstreamRegistryUrl)PullThroughCacheRuleArgs.BuilderupstreamRepositoryPrefix(com.pulumi.core.Output<java.lang.String> upstreamRepositoryPrefix)PullThroughCacheRuleArgs.BuilderupstreamRepositoryPrefix(java.lang.String upstreamRepositoryPrefix)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(PullThroughCacheRuleArgs defaults)
-
-
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
-
build
public PullThroughCacheRuleArgs build()
-
-