CfnPullThroughCacheRuleProps Struct
Properties for defining a CfnPullThroughCacheRule.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecr as ecr } from 'aws-cdk-lib';
const cfnPullThroughCacheRuleProps: ecr.CfnPullThroughCacheRuleProps = {
credentialArn: 'credentialArn',
customRoleArn: 'customRoleArn',
ecrRepositoryPrefix: 'ecrRepositoryPrefix',
upstreamRegistry: 'upstreamRegistry',
upstreamRegistryUrl: 'upstreamRegistryUrl',
upstreamRepositoryPrefix: 'upstreamRepositoryPrefix',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ecr as ecr
cfn_pull_through_cache_rule_props = ecr.CfnPullThroughCacheRuleProps(
credential_arn="credentialArn",
custom_role_arn="customRoleArn",
ecr_repository_prefix="ecrRepositoryPrefix",
upstream_registry="upstreamRegistry",
upstream_registry_url="upstreamRegistryUrl",
upstream_repository_prefix="upstreamRepositoryPrefix"
)
java
// 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.*;
CfnPullThroughCacheRuleProps cfnPullThroughCacheRuleProps = CfnPullThroughCacheRuleProps.builder()
.credentialArn("credentialArn")
.customRoleArn("customRoleArn")
.ecrRepositoryPrefix("ecrRepositoryPrefix")
.upstreamRegistry("upstreamRegistry")
.upstreamRegistryUrl("upstreamRegistryUrl")
.upstreamRepositoryPrefix("upstreamRepositoryPrefix")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 cfnPullThroughCacheRuleProps = new CfnPullThroughCacheRuleProps {
CredentialArn = "credentialArn",
CustomRoleArn = "customRoleArn",
EcrRepositoryPrefix = "ecrRepositoryPrefix",
UpstreamRegistry = "upstreamRegistry",
UpstreamRegistryUrl = "upstreamRegistryUrl",
UpstreamRepositoryPrefix = "upstreamRepositoryPrefix"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnPullThroughCacheRuleProps := &CfnPullThroughCacheRuleProps{
CredentialArn: jsii.String("credentialArn"),
CustomRoleArn: jsii.String("customRoleArn"),
EcrRepositoryPrefix: jsii.String("ecrRepositoryPrefix"),
UpstreamRegistry: jsii.String("upstreamRegistry"),
UpstreamRegistryUrl: jsii.String("upstreamRegistryUrl"),
UpstreamRepositoryPrefix: jsii.String("upstreamRepositoryPrefix"),
}
Properties
credentialArnoptionalstringcredential_arnoptionalstrcredentialArnoptionalStringCredentialArnoptionalstringCredentialArnoptional*string #The ARN of the Secrets Manager secret associated with the pull through cache rule.
customRoleArnoptionalstringcustom_role_arnoptionalstrcustomRoleArnoptionalStringCustomRoleArnoptionalstringCustomRoleArnoptional*string #The ARN of the IAM role associated with the pull through cache rule.
ecrRepositoryPrefixoptionalstringecr_repository_prefixoptionalstrecrRepositoryPrefixoptionalStringEcrRepositoryPrefixoptionalstringEcrRepositoryPrefixoptional*string #The Amazon ECR repository prefix associated with the pull through cache rule.
upstreamRegistryoptionalstringupstream_registryoptionalstrupstreamRegistryoptionalStringUpstreamRegistryoptionalstringUpstreamRegistryoptional*string #The name of the upstream source registry associated with the pull through cache rule.
upstreamRegistryUrloptionalstringupstream_registry_urloptionalstrupstreamRegistryUrloptionalStringUpstreamRegistryUrloptionalstringUpstreamRegistryUrloptional*string #The upstream registry URL associated with the pull through cache rule.
upstreamRepositoryPrefixoptionalstringupstream_repository_prefixoptionalstrupstreamRepositoryPrefixoptionalStringUpstreamRepositoryPrefixoptionalstringUpstreamRepositoryPrefixoptional*string #The upstream repository prefix associated with the pull through cache rule.