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

.NET
Go
Java
Python
TypeScript