CfnPullThroughCacheRuleProps

class aws_cdk.aws_ecr.CfnPullThroughCacheRuleProps(*, ecr_repository_prefix=None, upstream_registry_url=None)

Bases: object

Properties for defining a CfnPullThroughCacheRule.

Parameters
  • ecr_repository_prefix (Optional[str]) – The Amazon ECR repository prefix associated with the pull through cache rule.

  • upstream_registry_url (Optional[str]) – The upstream registry URL associated with the pull through cache rule.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-pullthroughcacherule.html

ExampleMetadata

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ecr as ecr

cfn_pull_through_cache_rule_props = ecr.CfnPullThroughCacheRuleProps(
    ecr_repository_prefix="ecrRepositoryPrefix",
    upstream_registry_url="upstreamRegistryUrl"
)

Attributes

ecr_repository_prefix

The Amazon ECR repository prefix associated with the pull through cache rule.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-pullthroughcacherule.html#cfn-ecr-pullthroughcacherule-ecrrepositoryprefix

Return type

Optional[str]

upstream_registry_url

The upstream registry URL associated with the pull through cache rule.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-pullthroughcacherule.html#cfn-ecr-pullthroughcacherule-upstreamregistryurl

Return type

Optional[str]