Class CfnPullThroughCacheRule
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.ecr.CfnPullThroughCacheRule
- All Implemented Interfaces:
IInspectable,IPullThroughCacheRuleRef,IEnvironmentAware,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:09.378Z")
@Stability(Stable)
public class CfnPullThroughCacheRule
extends CfnResource
implements IInspectable, IPullThroughCacheRuleRef
The
AWS::ECR::PullThroughCacheRule resource creates or updates a pull through cache rule.
A pull through cache rule provides a way to cache images from an upstream registry in your Amazon ECR private registry.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecr.*;
CfnPullThroughCacheRule cfnPullThroughCacheRule = CfnPullThroughCacheRule.Builder.create(this, "MyCfnPullThroughCacheRule")
.credentialArn("credentialArn")
.customRoleArn("customRoleArn")
.ecrRepositoryPrefix("ecrRepositoryPrefix")
.upstreamRegistry("upstreamRegistry")
.upstreamRegistryUrl("upstreamRegistryUrl")
.upstreamRepositoryPrefix("upstreamRepositoryPrefix")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnPullThroughCacheRule.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.ecr.IPullThroughCacheRuleRef
IPullThroughCacheRuleRef.Jsii$Default, IPullThroughCacheRuleRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnPullThroughCacheRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnPullThroughCacheRule(software.amazon.jsii.JsiiObjectRef objRef) CfnPullThroughCacheRule(software.constructs.Construct scope, String id) Create a newAWS::ECR::PullThroughCacheRule.CfnPullThroughCacheRule(software.constructs.Construct scope, String id, CfnPullThroughCacheRuleProps props) Create a newAWS::ECR::PullThroughCacheRule. -
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the Secrets Manager secret associated with the pull through cache rule.The ARN of the IAM role associated with the pull through cache rule.The Amazon ECR repository prefix associated with the pull through cache rule.A reference to a PullThroughCacheRule resource.The name of the upstream source registry associated with the pull through cache rule.The upstream registry URL associated with the pull through cache rule.The upstream repository prefix associated with the pull through cache rule.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnPullThroughCacheRule.renderProperties(Map<String, Object> props) voidsetCredentialArn(String value) The ARN of the Secrets Manager secret associated with the pull through cache rule.voidsetCustomRoleArn(String value) The ARN of the IAM role associated with the pull through cache rule.voidsetEcrRepositoryPrefix(String value) The Amazon ECR repository prefix associated with the pull through cache rule.voidsetUpstreamRegistry(String value) The name of the upstream source registry associated with the pull through cache rule.voidsetUpstreamRegistryUrl(String value) The upstream registry URL associated with the pull through cache rule.voidThe upstream repository prefix associated with the pull through cache rule.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnPullThroughCacheRule
protected CfnPullThroughCacheRule(software.amazon.jsii.JsiiObjectRef objRef) -
CfnPullThroughCacheRule
protected CfnPullThroughCacheRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnPullThroughCacheRule
@Stability(Stable) public CfnPullThroughCacheRule(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnPullThroughCacheRuleProps props) Create a newAWS::ECR::PullThroughCacheRule.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties.
-
CfnPullThroughCacheRule
@Stability(Stable) public CfnPullThroughCacheRule(@NotNull software.constructs.Construct scope, @NotNull String id) Create a newAWS::ECR::PullThroughCacheRule.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.
-
-
Method Details
-
isCfnPullThroughCacheRule
Checks whether the given object is a CfnPullThroughCacheRule.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getPullThroughCacheRuleRef
A reference to a PullThroughCacheRule resource.- Specified by:
getPullThroughCacheRuleRefin interfaceIPullThroughCacheRuleRef
-
getCredentialArn
The ARN of the Secrets Manager secret associated with the pull through cache rule. -
setCredentialArn
The ARN of the Secrets Manager secret associated with the pull through cache rule. -
getCustomRoleArn
The ARN of the IAM role associated with the pull through cache rule. -
setCustomRoleArn
The ARN of the IAM role associated with the pull through cache rule. -
getEcrRepositoryPrefix
The Amazon ECR repository prefix associated with the pull through cache rule. -
setEcrRepositoryPrefix
The Amazon ECR repository prefix associated with the pull through cache rule. -
getUpstreamRegistry
The name of the upstream source registry associated with the pull through cache rule. -
setUpstreamRegistry
The name of the upstream source registry associated with the pull through cache rule. -
getUpstreamRegistryUrl
The upstream registry URL associated with the pull through cache rule. -
setUpstreamRegistryUrl
The upstream registry URL associated with the pull through cache rule. -
getUpstreamRepositoryPrefix
The upstream repository prefix associated with the pull through cache rule. -
setUpstreamRepositoryPrefix
The upstream repository prefix associated with the pull through cache rule.
-