Class CfnPullThroughCacheRule
The AWS::ECR::PullThroughCacheRule
resource creates or updates a pull through cache rule.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.ECR
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnPullThroughCacheRule : CfnResource, IInspectable
Syntax (vb)
Public Class CfnPullThroughCacheRule
Inherits CfnResource
Implements IInspectable
Remarks
A pull through cache rule provides a way to cache images from an upstream registry in your Amazon ECR private registry.
CloudformationResource: AWS::ECR::PullThroughCacheRule
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECR;
var cfnPullThroughCacheRule = new CfnPullThroughCacheRule(this, "MyCfnPullThroughCacheRule", new CfnPullThroughCacheRuleProps {
CredentialArn = "credentialArn",
EcrRepositoryPrefix = "ecrRepositoryPrefix",
UpstreamRegistry = "upstreamRegistry",
UpstreamRegistryUrl = "upstreamRegistryUrl"
});
Synopsis
Constructors
CfnPullThroughCacheRule(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnPullThroughCacheRule(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnPullThroughCacheRule(Construct, String, ICfnPullThroughCacheRuleProps) |
Properties
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
CredentialArn | The ARN of the Secrets Manager secret associated with the pull through cache rule. |
EcrRepositoryPrefix | The Amazon ECR repository prefix associated with the pull through cache rule. |
UpstreamRegistry | The name of the upstream source registry associated with the pull through cache rule. |
UpstreamRegistryUrl | The upstream registry URL associated with the pull through cache rule. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnPullThroughCacheRule(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnPullThroughCacheRule(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnPullThroughCacheRule(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnPullThroughCacheRule(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnPullThroughCacheRule(Construct, String, ICfnPullThroughCacheRuleProps)
public CfnPullThroughCacheRule(Construct scope, string id, ICfnPullThroughCacheRuleProps props = null)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnPullThroughCacheRuleProps
Resource properties.
Properties
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
CredentialArn
The ARN of the Secrets Manager secret associated with the pull through cache rule.
public virtual string CredentialArn { get; set; }
Property Value
System.String
EcrRepositoryPrefix
The Amazon ECR repository prefix associated with the pull through cache rule.
public virtual string EcrRepositoryPrefix { get; set; }
Property Value
System.String
UpstreamRegistry
The name of the upstream source registry associated with the pull through cache rule.
public virtual string UpstreamRegistry { get; set; }
Property Value
System.String
UpstreamRegistryUrl
The upstream registry URL associated with the pull through cache rule.
public virtual string UpstreamRegistryUrl { get; set; }
Property Value
System.String
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>