interface PolicyReference
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.IAM.PolicyReference |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsiam#PolicyReference |
Java | software.amazon.awscdk.services.iam.PolicyReference |
Python | aws_cdk.aws_iam.PolicyReference |
TypeScript | aws-cdk-lib » aws_iam » PolicyReference |
A reference to a Policy resource.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iam as iam } from 'aws-cdk-lib';
const policyReference: iam.PolicyReference = {
policyId: 'policyId',
};
Properties
| Name | Type | Description |
|---|---|---|
| policy | string | The Id of the Policy resource. |
policyId
Type:
string
The Id of the Policy resource.

.NET
Go
Java
Python
TypeScript