# CfnRegistryPolicyProps

Properties for defining a `CfnRegistryPolicy`.

Used as props by: [CfnRegistryPolicy](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecr.CfnRegistryPolicy.html)

- Source: Generated at build time

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
};
```

Golang:

```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

- `policyText`: any (required) — The JSON policy text for your registry.
