interface PolicyReference
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Interfaces.IAM.PolicyReference |
Go | github.com/aws/aws-cdk-go/awscdk/v2/interfaces/awsiam#PolicyReference |
Java | software.amazon.awscdk.interfaces.iam.PolicyReference |
Python | aws_cdk.interfaces.aws_iam.PolicyReference |
TypeScript | aws-cdk-lib » interfaces » 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 interfaces_iam } from 'aws-cdk-lib/interfaces';
const policyReference: interfaces_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