interface PolicyProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.IAM.CfnUserPropsMixin.PolicyProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsiam#CfnUserPropsMixin_PolicyProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.iam.CfnUserPropsMixin.PolicyProperty |
Python | aws_cdk.cfn_property_mixins.aws_iam.CfnUserPropsMixin.PolicyProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_iam » CfnUserPropsMixin » 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 .
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user-policy.html
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/cfn-property-mixins';
declare const policyDocument: any;
const policyProperty: iam.CfnUserPropsMixin.PolicyProperty = {
policyDocument: policyDocument,
policyName: 'policyName',
};
Properties
| Name | Type | Description |
|---|---|---|
| policy | any | The entire contents of the policy that defines permissions. |
| policy | string | The friendly name (not ARN) identifying the policy. |
policyDocument?
Type:
any
(optional)
The entire contents of the policy that defines permissions.
For more information, see Overview of JSON policies .
policyName?
Type:
string
(optional)
The friendly name (not ARN) identifying the policy.

.NET
Go
Java
Python
TypeScript