Class CfnRolePropsMixin
Creates a new role for your AWS account .
Implements
Inherited Members
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 |
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
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
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
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
Overrides
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