Show / Hide Table of Contents

Class CfnManagedPolicyPropsMixin

Creates a new managed policy for your AWS account .

Inheritance
object
Mixin
CfnManagedPolicyPropsMixin
Implements
IMixin
Inherited Members
Mixin.IsMixin(object)
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.IAM
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnManagedPolicyPropsMixin : Mixin, IMixin
Syntax (vb)
Public Class CfnManagedPolicyPropsMixin Inherits Mixin Implements IMixin
Remarks

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: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html

CloudformationResource: AWS::IAM::ManagedPolicy

Mixin: true

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.CfnPropertyMixins.AWS.IAM;
             using Amazon.CDK;

             IMergeStrategy mergeStrategy;
             var policyDocument;

             var cfnManagedPolicyPropsMixin = new CfnManagedPolicyPropsMixin(new CfnManagedPolicyMixinProps {
                 Description = "description",
                 Groups = new [] { "groups" },
                 ManagedPolicyName = "managedPolicyName",
                 Path = "path",
                 PolicyDocument = policyDocument,
                 Roles = new [] { "roles" },
                 Users = new [] { "users" }
             }, new CfnPropertyMixinOptions {
                 Strategy = mergeStrategy
             });

Synopsis

Constructors

CfnManagedPolicyPropsMixin(ICfnManagedPolicyMixinProps, ICfnPropertyMixinOptions?)

Create a mixin to apply properties to AWS::IAM::ManagedPolicy.

Properties

CFN_PROPERTY_KEYS

Creates a new managed policy for your AWS account .

Props

Creates a new managed policy for your AWS account .

Strategy

Creates a new managed policy for your AWS account .

Methods

ApplyTo(IConstruct)

Apply the mixin properties to the construct.

Supports(IConstruct)

Check if this mixin supports the given construct.

Constructors

CfnManagedPolicyPropsMixin(ICfnManagedPolicyMixinProps, ICfnPropertyMixinOptions?)

Create a mixin to apply properties to AWS::IAM::ManagedPolicy.

public CfnManagedPolicyPropsMixin(ICfnManagedPolicyMixinProps props, ICfnPropertyMixinOptions? options = null)
Parameters
props ICfnManagedPolicyMixinProps

L1 properties to apply.

options ICfnPropertyMixinOptions

Mixin options.

Remarks

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: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html

CloudformationResource: AWS::IAM::ManagedPolicy

Mixin: true

ExampleMetadata: fixture=_generated

Properties

CFN_PROPERTY_KEYS

Creates a new managed policy for your AWS account .

protected static string[] CFN_PROPERTY_KEYS { get; }
Property Value

string[]

Remarks

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: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html

CloudformationResource: AWS::IAM::ManagedPolicy

Mixin: true

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.CfnPropertyMixins.AWS.IAM;
             using Amazon.CDK;

             IMergeStrategy mergeStrategy;
             var policyDocument;

             var cfnManagedPolicyPropsMixin = new CfnManagedPolicyPropsMixin(new CfnManagedPolicyMixinProps {
                 Description = "description",
                 Groups = new [] { "groups" },
                 ManagedPolicyName = "managedPolicyName",
                 Path = "path",
                 PolicyDocument = policyDocument,
                 Roles = new [] { "roles" },
                 Users = new [] { "users" }
             }, new CfnPropertyMixinOptions {
                 Strategy = mergeStrategy
             });

Props

Creates a new managed policy for your AWS account .

protected virtual ICfnManagedPolicyMixinProps Props { get; }
Property Value

ICfnManagedPolicyMixinProps

Remarks

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: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html

CloudformationResource: AWS::IAM::ManagedPolicy

Mixin: true

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.CfnPropertyMixins.AWS.IAM;
             using Amazon.CDK;

             IMergeStrategy mergeStrategy;
             var policyDocument;

             var cfnManagedPolicyPropsMixin = new CfnManagedPolicyPropsMixin(new CfnManagedPolicyMixinProps {
                 Description = "description",
                 Groups = new [] { "groups" },
                 ManagedPolicyName = "managedPolicyName",
                 Path = "path",
                 PolicyDocument = policyDocument,
                 Roles = new [] { "roles" },
                 Users = new [] { "users" }
             }, new CfnPropertyMixinOptions {
                 Strategy = mergeStrategy
             });

Strategy

Creates a new managed policy for your AWS account .

protected virtual IMergeStrategy Strategy { get; }
Property Value

IMergeStrategy

Remarks

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: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html

CloudformationResource: AWS::IAM::ManagedPolicy

Mixin: true

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.CfnPropertyMixins.AWS.IAM;
             using Amazon.CDK;

             IMergeStrategy mergeStrategy;
             var policyDocument;

             var cfnManagedPolicyPropsMixin = new CfnManagedPolicyPropsMixin(new CfnManagedPolicyMixinProps {
                 Description = "description",
                 Groups = new [] { "groups" },
                 ManagedPolicyName = "managedPolicyName",
                 Path = "path",
                 PolicyDocument = policyDocument,
                 Roles = new [] { "roles" },
                 Users = new [] { "users" }
             }, new CfnPropertyMixinOptions {
                 Strategy = mergeStrategy
             });

Methods

ApplyTo(IConstruct)

Apply the mixin properties to the construct.

public override void ApplyTo(IConstruct construct)
Parameters
construct IConstruct
Overrides
Mixin.ApplyTo(IConstruct)
Remarks

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: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html

CloudformationResource: AWS::IAM::ManagedPolicy

Mixin: true

ExampleMetadata: fixture=_generated

Supports(IConstruct)

Check if this mixin supports the given construct.

public override bool Supports(IConstruct construct)
Parameters
construct IConstruct
Returns

bool

Overrides
Mixin.Supports(IConstruct)
Remarks

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: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html

CloudformationResource: AWS::IAM::ManagedPolicy

Mixin: true

ExampleMetadata: fixture=_generated

Implements

Constructs.IMixin
Back to top Generated by DocFX