Show / Hide Table of Contents

Class CfnRolePropsMixin

Creates a new role for your AWS account .

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

For more information about roles, see IAM roles in the IAM User Guide . For information about quotas for role names and the number of roles you can create, see IAM and AWS STS quotas in the IAM User Guide .

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

CloudformationResource: AWS::IAM::Role

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;

             var assumeRolePolicyDocument;
             IMergeStrategy mergeStrategy;
             var policyDocument;

             var cfnRolePropsMixin = new CfnRolePropsMixin(new CfnRoleMixinProps {
                 AssumeRolePolicyDocument = assumeRolePolicyDocument,
                 Description = "description",
                 ManagedPolicyArns = new [] { "managedPolicyArns" },
                 MaxSessionDuration = 123,
                 Path = "path",
                 PermissionsBoundary = "permissionsBoundary",
                 Policies = new [] { new PolicyProperty {
                     PolicyDocument = policyDocument,
                     PolicyName = "policyName"
                 } },
                 RoleName = "roleName",
                 Tags = new [] { new CfnTag {
                     Key = "key",
                     Value = "value"
                 } }
             }, new CfnPropertyMixinOptions {
                 Strategy = mergeStrategy
             });

Synopsis

Constructors

CfnRolePropsMixin(ICfnRoleMixinProps, ICfnPropertyMixinOptions?)

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

Properties

CFN_PROPERTY_KEYS

Creates a new role for your AWS account .

Props

Creates a new role for your AWS account .

Strategy

Creates a new role 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

CfnRolePropsMixin(ICfnRoleMixinProps, ICfnPropertyMixinOptions?)

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

public CfnRolePropsMixin(ICfnRoleMixinProps props, ICfnPropertyMixinOptions? options = null)
Parameters
props ICfnRoleMixinProps

L1 properties to apply.

options ICfnPropertyMixinOptions

Mixin options.

Remarks

For more information about roles, see IAM roles in the IAM User Guide . For information about quotas for role names and the number of roles you can create, see IAM and AWS STS quotas in the IAM User Guide .

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

CloudformationResource: AWS::IAM::Role

Mixin: true

ExampleMetadata: fixture=_generated

Properties

CFN_PROPERTY_KEYS

Creates a new role for your AWS account .

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

string[]

Remarks

For more information about roles, see IAM roles in the IAM User Guide . For information about quotas for role names and the number of roles you can create, see IAM and AWS STS quotas in the IAM User Guide .

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

CloudformationResource: AWS::IAM::Role

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;

             var assumeRolePolicyDocument;
             IMergeStrategy mergeStrategy;
             var policyDocument;

             var cfnRolePropsMixin = new CfnRolePropsMixin(new CfnRoleMixinProps {
                 AssumeRolePolicyDocument = assumeRolePolicyDocument,
                 Description = "description",
                 ManagedPolicyArns = new [] { "managedPolicyArns" },
                 MaxSessionDuration = 123,
                 Path = "path",
                 PermissionsBoundary = "permissionsBoundary",
                 Policies = new [] { new PolicyProperty {
                     PolicyDocument = policyDocument,
                     PolicyName = "policyName"
                 } },
                 RoleName = "roleName",
                 Tags = new [] { new CfnTag {
                     Key = "key",
                     Value = "value"
                 } }
             }, new CfnPropertyMixinOptions {
                 Strategy = mergeStrategy
             });

Props

Creates a new role for your AWS account .

protected virtual ICfnRoleMixinProps Props { get; }
Property Value

ICfnRoleMixinProps

Remarks

For more information about roles, see IAM roles in the IAM User Guide . For information about quotas for role names and the number of roles you can create, see IAM and AWS STS quotas in the IAM User Guide .

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

CloudformationResource: AWS::IAM::Role

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;

             var assumeRolePolicyDocument;
             IMergeStrategy mergeStrategy;
             var policyDocument;

             var cfnRolePropsMixin = new CfnRolePropsMixin(new CfnRoleMixinProps {
                 AssumeRolePolicyDocument = assumeRolePolicyDocument,
                 Description = "description",
                 ManagedPolicyArns = new [] { "managedPolicyArns" },
                 MaxSessionDuration = 123,
                 Path = "path",
                 PermissionsBoundary = "permissionsBoundary",
                 Policies = new [] { new PolicyProperty {
                     PolicyDocument = policyDocument,
                     PolicyName = "policyName"
                 } },
                 RoleName = "roleName",
                 Tags = new [] { new CfnTag {
                     Key = "key",
                     Value = "value"
                 } }
             }, new CfnPropertyMixinOptions {
                 Strategy = mergeStrategy
             });

Strategy

Creates a new role for your AWS account .

protected virtual IMergeStrategy Strategy { get; }
Property Value

IMergeStrategy

Remarks

For more information about roles, see IAM roles in the IAM User Guide . For information about quotas for role names and the number of roles you can create, see IAM and AWS STS quotas in the IAM User Guide .

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

CloudformationResource: AWS::IAM::Role

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;

             var assumeRolePolicyDocument;
             IMergeStrategy mergeStrategy;
             var policyDocument;

             var cfnRolePropsMixin = new CfnRolePropsMixin(new CfnRoleMixinProps {
                 AssumeRolePolicyDocument = assumeRolePolicyDocument,
                 Description = "description",
                 ManagedPolicyArns = new [] { "managedPolicyArns" },
                 MaxSessionDuration = 123,
                 Path = "path",
                 PermissionsBoundary = "permissionsBoundary",
                 Policies = new [] { new PolicyProperty {
                     PolicyDocument = policyDocument,
                     PolicyName = "policyName"
                 } },
                 RoleName = "roleName",
                 Tags = new [] { new CfnTag {
                     Key = "key",
                     Value = "value"
                 } }
             }, 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

For more information about roles, see IAM roles in the IAM User Guide . For information about quotas for role names and the number of roles you can create, see IAM and AWS STS quotas in the IAM User Guide .

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

CloudformationResource: AWS::IAM::Role

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

For more information about roles, see IAM roles in the IAM User Guide . For information about quotas for role names and the number of roles you can create, see IAM and AWS STS quotas in the IAM User Guide .

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

CloudformationResource: AWS::IAM::Role

Mixin: true

ExampleMetadata: fixture=_generated

Implements

Constructs.IMixin
Back to top Generated by DocFX