aws-cdk-lib.aws_iam.CfnUser.PolicyProperty

interface PolicyProperty

LanguageType name
.NETAmazon.CDK.AWS.IAM.CfnUser.PolicyProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsiam#CfnUser_PolicyProperty
Javasoftware.amazon.awscdk.services.iam.CfnUser.PolicyProperty
Pythonaws_cdk.aws_iam.CfnUser.PolicyProperty
TypeScript aws-cdk-lib » aws_iam » CfnUser » PolicyProperty

Contains information about an attached policy.

An attached policy is a managed policy that has been attached to a user, group, or role.

For more information about managed policies, refer to Managed Policies and Inline Policies in the IAM User Guide .

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';

declare const policyDocument: any;
const policyProperty: iam.CfnUser.PolicyProperty = {
  policyDocument: policyDocument,
  policyName: 'policyName',
};

Properties

NameTypeDescription
policyDocumentanyThe entire contents of the policy that defines permissions.
policyNamestringThe friendly name (not ARN) identifying the policy.

policyDocument

Type: any

The entire contents of the policy that defines permissions.

For more information, see Overview of JSON policies .


policyName

Type: string

The friendly name (not ARN) identifying the policy.