CfnRegistryPolicyProps Struct
Properties for defining a CfnRegistryPolicy.
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';
declare const policyText: any;
const cfnRegistryPolicyProps: ecr.CfnRegistryPolicyProps = {
policyText: policyText,
};
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
# policy_text: Any
cfn_registry_policy_props = ecr.CfnRegistryPolicyProps(
policy_text=policy_text
)
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.*;
Object policyText;
CfnRegistryPolicyProps cfnRegistryPolicyProps = CfnRegistryPolicyProps.builder()
.policyText(policyText)
.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 policyText;
var cfnRegistryPolicyProps = new CfnRegistryPolicyProps {
PolicyText = policyText
};
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"
var policyText interface{}
cfnRegistryPolicyProps := &CfnRegistryPolicyProps{
PolicyText: policyText,
}
Properties
The JSON policy text for your registry.