CfnRoleProps

class aws_cdk.aws_iam.CfnRoleProps(*, assume_role_policy_document, description=None, managed_policy_arns=None, max_session_duration=None, path=None, permissions_boundary=None, policies=None, role_name=None, tags=None)

Bases: object

__init__(*, assume_role_policy_document, description=None, managed_policy_arns=None, max_session_duration=None, path=None, permissions_boundary=None, policies=None, role_name=None, tags=None)

Properties for defining a AWS::IAM::Role.

Parameters
  • assume_role_policy_document (Any) – AWS::IAM::Role.AssumeRolePolicyDocument.

  • description (Optional[str]) – AWS::IAM::Role.Description.

  • managed_policy_arns (Optional[List[str]]) – AWS::IAM::Role.ManagedPolicyArns.

  • max_session_duration (Union[int, float, None]) – AWS::IAM::Role.MaxSessionDuration.

  • path (Optional[str]) – AWS::IAM::Role.Path.

  • permissions_boundary (Optional[str]) – AWS::IAM::Role.PermissionsBoundary.

  • policies (Union[IResolvable, List[Union[IResolvable, PolicyProperty]], None]) – AWS::IAM::Role.Policies.

  • role_name (Optional[str]) – AWS::IAM::Role.RoleName.

  • tags (Optional[List[CfnTag]]) – AWS::IAM::Role.Tags.

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

Return type

None

Attributes

assume_role_policy_document

AWS::IAM::Role.AssumeRolePolicyDocument.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-assumerolepolicydocument

Return type

Any

description

AWS::IAM::Role.Description.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-description

Return type

Optional[str]

managed_policy_arns

AWS::IAM::Role.ManagedPolicyArns.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-managepolicyarns

Return type

Optional[List[str]]

max_session_duration

AWS::IAM::Role.MaxSessionDuration.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-maxsessionduration

Return type

Union[int, float, None]

path

AWS::IAM::Role.Path.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-path

Return type

Optional[str]

permissions_boundary

AWS::IAM::Role.PermissionsBoundary.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-permissionsboundary

Return type

Optional[str]

policies

AWS::IAM::Role.Policies.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-policies

Return type

Union[IResolvable, List[Union[IResolvable, PolicyProperty]], None]

role_name

AWS::IAM::Role.RoleName.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-rolename

Return type

Optional[str]

tags

AWS::IAM::Role.Tags.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-tags

Return type

Optional[List[CfnTag]]