interface RolePolicyReference
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Interfaces.IAM.RolePolicyReference |
Go | github.com/aws/aws-cdk-go/awscdk/v2/interfaces/awsiam#RolePolicyReference |
Java | software.amazon.awscdk.interfaces.iam.RolePolicyReference |
Python | aws_cdk.interfaces.aws_iam.RolePolicyReference |
TypeScript | aws-cdk-lib » interfaces » aws_iam » RolePolicyReference |
A reference to a RolePolicy 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_aws_iam } from 'aws-cdk-lib/interfaces';
const rolePolicyReference: interfaces_aws_iam.RolePolicyReference = {
policyName: 'policyName',
roleName: 'roleName',
};
Properties
| Name | Type | Description |
|---|---|---|
| policy | string | The PolicyName of the RolePolicy resource. |
| role | string | The RoleName of the RolePolicy resource. |
policyName
Type:
string
The PolicyName of the RolePolicy resource.
roleName
Type:
string
The RoleName of the RolePolicy resource.

.NET
Go
Java
Python
TypeScript