Show / Hide Table of Contents

Class CfnUserPolicyPropsMixin

Adds or updates an inline policy document that is embedded in the specified IAM user.

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

An IAM user can also have a managed policy attached to it. To attach a managed policy to a user, use AWS::IAM::User . To create a new managed policy, use AWS::IAM::ManagedPolicy . For information about policies, see Managed policies and inline policies in the IAM User Guide .

For information about the maximum number of inline policies that you can embed in a user, see IAM and AWS STS quotas in the IAM User Guide .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-userpolicy.html

CloudformationResource: AWS::IAM::UserPolicy

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 cfnUserPolicyPropsMixin = new CfnUserPolicyPropsMixin(new CfnUserPolicyMixinProps {
                 PolicyDocument = policyDocument,
                 PolicyName = "policyName",
                 UserName = "userName"
             }, new CfnPropertyMixinOptions {
                 Strategy = mergeStrategy
             });

Synopsis

Constructors

CfnUserPolicyPropsMixin(ICfnUserPolicyMixinProps, ICfnPropertyMixinOptions?)

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

Properties

CFN_PROPERTY_KEYS

Adds or updates an inline policy document that is embedded in the specified IAM user.

Props

Adds or updates an inline policy document that is embedded in the specified IAM user.

Strategy

Adds or updates an inline policy document that is embedded in the specified IAM user.

Methods

ApplyTo(IConstruct)

Apply the mixin properties to the construct.

Supports(IConstruct)

Check if this mixin supports the given construct.

Constructors

CfnUserPolicyPropsMixin(ICfnUserPolicyMixinProps, ICfnPropertyMixinOptions?)

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

public CfnUserPolicyPropsMixin(ICfnUserPolicyMixinProps props, ICfnPropertyMixinOptions? options = null)
Parameters
props ICfnUserPolicyMixinProps

L1 properties to apply.

options ICfnPropertyMixinOptions

Mixin options.

Remarks

An IAM user can also have a managed policy attached to it. To attach a managed policy to a user, use AWS::IAM::User . To create a new managed policy, use AWS::IAM::ManagedPolicy . For information about policies, see Managed policies and inline policies in the IAM User Guide .

For information about the maximum number of inline policies that you can embed in a user, see IAM and AWS STS quotas in the IAM User Guide .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-userpolicy.html

CloudformationResource: AWS::IAM::UserPolicy

Mixin: true

ExampleMetadata: fixture=_generated

Properties

CFN_PROPERTY_KEYS

Adds or updates an inline policy document that is embedded in the specified IAM user.

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

string[]

Remarks

An IAM user can also have a managed policy attached to it. To attach a managed policy to a user, use AWS::IAM::User . To create a new managed policy, use AWS::IAM::ManagedPolicy . For information about policies, see Managed policies and inline policies in the IAM User Guide .

For information about the maximum number of inline policies that you can embed in a user, see IAM and AWS STS quotas in the IAM User Guide .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-userpolicy.html

CloudformationResource: AWS::IAM::UserPolicy

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 cfnUserPolicyPropsMixin = new CfnUserPolicyPropsMixin(new CfnUserPolicyMixinProps {
                 PolicyDocument = policyDocument,
                 PolicyName = "policyName",
                 UserName = "userName"
             }, new CfnPropertyMixinOptions {
                 Strategy = mergeStrategy
             });

Props

Adds or updates an inline policy document that is embedded in the specified IAM user.

protected virtual ICfnUserPolicyMixinProps Props { get; }
Property Value

ICfnUserPolicyMixinProps

Remarks

An IAM user can also have a managed policy attached to it. To attach a managed policy to a user, use AWS::IAM::User . To create a new managed policy, use AWS::IAM::ManagedPolicy . For information about policies, see Managed policies and inline policies in the IAM User Guide .

For information about the maximum number of inline policies that you can embed in a user, see IAM and AWS STS quotas in the IAM User Guide .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-userpolicy.html

CloudformationResource: AWS::IAM::UserPolicy

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 cfnUserPolicyPropsMixin = new CfnUserPolicyPropsMixin(new CfnUserPolicyMixinProps {
                 PolicyDocument = policyDocument,
                 PolicyName = "policyName",
                 UserName = "userName"
             }, new CfnPropertyMixinOptions {
                 Strategy = mergeStrategy
             });

Strategy

Adds or updates an inline policy document that is embedded in the specified IAM user.

protected virtual IMergeStrategy Strategy { get; }
Property Value

IMergeStrategy

Remarks

An IAM user can also have a managed policy attached to it. To attach a managed policy to a user, use AWS::IAM::User . To create a new managed policy, use AWS::IAM::ManagedPolicy . For information about policies, see Managed policies and inline policies in the IAM User Guide .

For information about the maximum number of inline policies that you can embed in a user, see IAM and AWS STS quotas in the IAM User Guide .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-userpolicy.html

CloudformationResource: AWS::IAM::UserPolicy

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 cfnUserPolicyPropsMixin = new CfnUserPolicyPropsMixin(new CfnUserPolicyMixinProps {
                 PolicyDocument = policyDocument,
                 PolicyName = "policyName",
                 UserName = "userName"
             }, 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

An IAM user can also have a managed policy attached to it. To attach a managed policy to a user, use AWS::IAM::User . To create a new managed policy, use AWS::IAM::ManagedPolicy . For information about policies, see Managed policies and inline policies in the IAM User Guide .

For information about the maximum number of inline policies that you can embed in a user, see IAM and AWS STS quotas in the IAM User Guide .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-userpolicy.html

CloudformationResource: AWS::IAM::UserPolicy

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

An IAM user can also have a managed policy attached to it. To attach a managed policy to a user, use AWS::IAM::User . To create a new managed policy, use AWS::IAM::ManagedPolicy . For information about policies, see Managed policies and inline policies in the IAM User Guide .

For information about the maximum number of inline policies that you can embed in a user, see IAM and AWS STS quotas in the IAM User Guide .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-userpolicy.html

CloudformationResource: AWS::IAM::UserPolicy

Mixin: true

ExampleMetadata: fixture=_generated

Implements

Constructs.IMixin
Back to top Generated by DocFX