@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:41.456Z") @Stability(value=Stable) public class CfnPullThroughCacheRule extends CfnResource implements IInspectable
Creates a pull through cache rule. A pull through cache rule provides a way to cache images from an external public 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") .ecrRepositoryPrefix("ecrRepositoryPrefix") .upstreamRegistryUrl("upstreamRegistryUrl") .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnPullThroughCacheRule.Builder
A fluent builder for
CfnPullThroughCacheRule . |
software.amazon.jsii.JsiiObject.InitializationMode
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnPullThroughCacheRule(Construct scope,
String id)
Create a new `AWS::ECR::PullThroughCacheRule`.
|
|
CfnPullThroughCacheRule(Construct scope,
String id,
CfnPullThroughCacheRuleProps props)
Create a new `AWS::ECR::PullThroughCacheRule`.
|
protected |
CfnPullThroughCacheRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnPullThroughCacheRule(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
protected Map<String,Object> |
getCfnProperties() |
String |
getEcrRepositoryPrefix()
The Amazon ECR repository prefix associated with the pull through cache rule.
|
String |
getUpstreamRegistryUrl()
The upstream registry URL associated with the pull through cache rule.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setEcrRepositoryPrefix(String value)
The Amazon ECR repository prefix associated with the pull through cache rule.
|
void |
setUpstreamRegistryUrl(String value)
The upstream registry URL associated with the pull through cache rule.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnPullThroughCacheRule(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnPullThroughCacheRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) public CfnPullThroughCacheRule(@NotNull Construct scope, @NotNull String id, @Nullable CfnPullThroughCacheRuleProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties.@Stability(value=Stable) public CfnPullThroughCacheRule(@NotNull Construct scope, @NotNull String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.@Stability(value=Stable) public void inspect(@NotNull TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties
in class CfnResource
@Stability(value=Stable) @Nullable public String getEcrRepositoryPrefix()
@Stability(value=Stable) public void setEcrRepositoryPrefix(@Nullable String value)
@Stability(value=Stable) @Nullable public String getUpstreamRegistryUrl()
@Stability(value=Stable) public void setUpstreamRegistryUrl(@Nullable String value)
Copyright © 2023. All rights reserved.