Interface CreatePullThroughCacheRuleRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreatePullThroughCacheRuleRequest.Builder,,CreatePullThroughCacheRuleRequest> EcrRequest.Builder,SdkBuilder<CreatePullThroughCacheRuleRequest.Builder,,CreatePullThroughCacheRuleRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreatePullThroughCacheRuleRequest
-
Method Summary
Modifier and TypeMethodDescriptioncredentialArn(String 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(String customRoleArn) The Amazon Resource Name (ARN) of the IAM role that Amazon ECR assumes to authenticate to the upstream registry.ecrRepositoryPrefix(String ecrRepositoryPrefix) The repository name prefix to use when caching images from the source registry.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.registryId(String registryId) The Amazon Web Services account ID associated with the registry to create the pull through cache rule for.upstreamRegistry(String upstreamRegistry) The name of the upstream registry.upstreamRegistry(UpstreamRegistry upstreamRegistry) The name of the upstream registry.upstreamRegistryUrl(String upstreamRegistryUrl) The registry URL of the upstream public registry to use as the source for the pull through cache rule.upstreamRepositoryPrefix(String upstreamRepositoryPrefix) The repository name prefix of the upstream registry to match with the upstream repository name.upstreamRoleArn(String upstreamRoleArn) The Amazon Resource Name (ARN) of the IAM role in theawspartition that Amazon ECR assumes throughcustomRoleArnto authenticate to the Amazon ECR Public Premium upstream registry.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ecr.model.EcrRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
ecrRepositoryPrefix
The repository name prefix to use when caching images from the source registry.
There is always an assumed
/applied to the end of the prefix. If you specifyecr-publicas the prefix, Amazon ECR treats that asecr-public/.- Parameters:
ecrRepositoryPrefix- The repository name prefix to use when caching images from the source registry.There is always an assumed
/applied to the end of the prefix. If you specifyecr-publicas the prefix, Amazon ECR treats that asecr-public/.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
upstreamRegistryUrl
The registry URL of the upstream public registry to use as the source for the pull through cache rule. The following is the syntax to use for each supported upstream registry.
-
Amazon ECR (
ecr) –<accountId>.dkr.ecr.<region>.amazonaws.com -
Amazon ECR Public (
ecr-public) –public.ecr.aws -
Amazon ECR Public Premium (
ecr-public-premium) –ecr-premium.aws.com, the registry endpoint for Amazon ECR Public Premium images -
Docker Hub (
docker-hub) –registry-1.docker.io -
GitHub Container Registry (
github-container-registry) –ghcr.io -
GitLab Container Registry (
gitlab-container-registry) –registry.gitlab.com -
Kubernetes (
k8s) –registry.k8s.io -
Microsoft Azure Container Registry (
azure-container-registry) –<custom>.azurecr.io -
Quay (
quay) –quay.io
- Parameters:
upstreamRegistryUrl- The registry URL of the upstream public registry to use as the source for the pull through cache rule. The following is the syntax to use for each supported upstream registry.-
Amazon ECR (
ecr) –<accountId>.dkr.ecr.<region>.amazonaws.com -
Amazon ECR Public (
ecr-public) –public.ecr.aws -
Amazon ECR Public Premium (
ecr-public-premium) –ecr-premium.aws.com, the registry endpoint for Amazon ECR Public Premium images -
Docker Hub (
docker-hub) –registry-1.docker.io -
GitHub Container Registry (
github-container-registry) –ghcr.io -
GitLab Container Registry (
gitlab-container-registry) –registry.gitlab.com -
Kubernetes (
k8s) –registry.k8s.io -
Microsoft Azure Container Registry (
azure-container-registry) –<custom>.azurecr.io -
Quay (
quay) –quay.io
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
registryId
The Amazon Web Services account ID associated with the registry to create the pull through cache rule for. If you do not specify a registry, the default registry is assumed.
- Parameters:
registryId- The Amazon Web Services account ID associated with the registry to create the pull through cache rule for. If you do not specify a registry, the default registry is assumed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
upstreamRegistry
The name of the upstream registry.
- Parameters:
upstreamRegistry- The name of the upstream registry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
upstreamRegistry
The name of the upstream registry.
- Parameters:
upstreamRegistry- The name of the upstream registry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
credentialArn
The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that identifies the credentials to authenticate to the upstream registry. You can't use this parameter with the Amazon ECR Public Premium upstream registry.
- Parameters:
credentialArn- The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that identifies the credentials to authenticate to the upstream registry. You can't use this parameter with the Amazon ECR Public Premium upstream registry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customRoleArn
The Amazon Resource Name (ARN) of the IAM role that Amazon ECR assumes to authenticate to the upstream registry. This role must be in the same account as the registry that you are configuring.
For an Amazon ECR Public Premium upstream registry, specify this role together with
upstreamRoleArn. If you specify neither role, Amazon ECR uses its service-linked role.- Parameters:
customRoleArn- The Amazon Resource Name (ARN) of the IAM role that Amazon ECR assumes to authenticate to the upstream registry. This role must be in the same account as the registry that you are configuring.For an Amazon ECR Public Premium upstream registry, specify this role together with
upstreamRoleArn. If you specify neither role, Amazon ECR uses its service-linked role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
upstreamRoleArn
The Amazon Resource Name (ARN) of the IAM role in the
awspartition that Amazon ECR assumes throughcustomRoleArnto authenticate to the Amazon ECR Public Premium upstream registry. You can use this parameter only for the Amazon ECR Public Premium upstream registry, and it requirescustomRoleArn.- Parameters:
upstreamRoleArn- The Amazon Resource Name (ARN) of the IAM role in theawspartition that Amazon ECR assumes throughcustomRoleArnto authenticate to the Amazon ECR Public Premium upstream registry. You can use this parameter only for the Amazon ECR Public Premium upstream registry, and it requirescustomRoleArn.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
upstreamRepositoryPrefix
The repository name prefix of the upstream registry to match with the upstream repository name. When this field isn't specified, Amazon ECR will use the
ROOT.- Parameters:
upstreamRepositoryPrefix- The repository name prefix of the upstream registry to match with the upstream repository name. When this field isn't specified, Amazon ECR will use theROOT.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreatePullThroughCacheRuleRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreatePullThroughCacheRuleRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-