class CfnManagedPolicyPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.IAM.Mixins.CfnManagedPolicyPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsiam/mixins#CfnManagedPolicyPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.iam.mixins.CfnManagedPolicyPropsMixin |
Python | aws_cdk.mixins_preview.aws_iam.mixins.CfnManagedPolicyPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_iam » mixins » CfnManagedPolicyPropsMixin |
Implements
IMixin
Extends
Mixin
Creates a new managed policy for your AWS account .
This operation creates a policy version with a version identifier of v1 and sets v1 as the policy's default version. For more information about policy versions, see Versioning for managed policies in the IAM User Guide .
As a best practice, you can validate your IAM policies. To learn more, see Validating IAM policies in the IAM User Guide .
For more information about managed policies in general, see Managed policies and inline policies in the IAM User Guide .
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as iam_mixins } from '@aws-cdk/mixins-preview/aws-iam';
declare const policyDocument: any;
const cfnManagedPolicyPropsMixin = new iam_mixins.CfnManagedPolicyPropsMixin({
description: 'description',
groups: ['groups'],
managedPolicyName: 'managedPolicyName',
path: 'path',
policyDocument: policyDocument,
roles: ['roles'],
users: ['users'],
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnManagedPolicyPropsMixin(props: CfnManagedPolicyMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Managed Policy Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::IAM::ManagedPolicy.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript