Class CfnPullThroughCacheRule.Builder
java.lang.Object
software.amazon.awscdk.services.ecr.CfnPullThroughCacheRule.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPullThroughCacheRule>
- Enclosing class:
CfnPullThroughCacheRule
@Stability(Stable)
public static final class CfnPullThroughCacheRule.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPullThroughCacheRule>
A fluent builder for
CfnPullThroughCacheRule
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
ecrRepositoryPrefix
(String ecrRepositoryPrefix) The Amazon ECR repository prefix associated with the pull through cache rule.upstreamRegistryUrl
(String upstreamRegistryUrl) The upstream registry URL associated with the pull through cache rule.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnPullThroughCacheRule.Builder
.
-
ecrRepositoryPrefix
@Stability(Stable) public CfnPullThroughCacheRule.Builder ecrRepositoryPrefix(String ecrRepositoryPrefix) The Amazon ECR repository prefix associated with the pull through cache rule.- Parameters:
ecrRepositoryPrefix
- The Amazon ECR repository prefix associated with the pull through cache rule. This parameter is required.- Returns:
this
-
upstreamRegistryUrl
@Stability(Stable) public CfnPullThroughCacheRule.Builder upstreamRegistryUrl(String upstreamRegistryUrl) The upstream registry URL associated with the pull through cache rule.- Parameters:
upstreamRegistryUrl
- The upstream registry URL associated with the pull through cache rule. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPullThroughCacheRule>
- Returns:
- a newly built instance of
CfnPullThroughCacheRule
.
-