RoleOptions

class aws_cdk.RoleOptions(*, assume_role_arn, assume_role_external_id=None)

Bases: object

Options for specifying a role.

Parameters:
  • assume_role_arn (str) – ARN of the role to assume.

  • assume_role_external_id (Optional[str]) – External ID to use when assuming the role. Default: - No external ID

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk

role_options = cdk.RoleOptions(
    assume_role_arn="assumeRoleArn",

    # the properties below are optional
    assume_role_external_id="assumeRoleExternalId"
)

Attributes

assume_role_arn

ARN of the role to assume.

assume_role_external_id

External ID to use when assuming the role.

Default:
  • No external ID