Skip to main content

Initializer

import "github.com/open-constructs/cdk-terrain-go/cdktn"

&cdktn.S3BackendAssumeRoleConfig {
	RoleArn: *string,
	Duration: *string,
	ExternalId: *string,
	Policy: *string,
	PolicyArns: *[]*string,
	SessionName: *string,
	SourceIdentity: *string,
	Tags: *map[string]*string,
	TransitiveTagKeys: *[]*string,
}

Properties

NameTypeDescription
RoleArn*string(Required) Amazon Resource Name (ARN) of the IAM Role to assume.
Duration*string(Optional) The duration individual credentials will be valid.
ExternalId*string(Optional) External identifier to use when assuming the role.
Policy*string(Optional) IAM Policy JSON describing further restricting permissions for the IAM Role being assumed.
PolicyArns*[]*string(Optional) Set of Amazon Resource Names (ARNs) of IAM Policies describing further restricting permissions for the IAM Role being assumed.
SessionName*string(Optional) Session name to use when assuming the role.
SourceIdentity*string(Optional) Source identity specified by the principal assuming the.
Tags*map[string]*string(Optional) Map of assume role session tags.
TransitiveTagKeys*[]*string(Optional) Set of assume role session tag keys to pass to any subsequent sessions.

RoleArnRequired

RoleArn *string
  • Type: *string
(Required) Amazon Resource Name (ARN) of the IAM Role to assume.

DurationOptional

Duration *string
  • Type: *string
(Optional) The duration individual credentials will be valid. Credentials are automatically renewed up to the maximum defined by the AWS account. Specified using the format < hours >h< minutes >m< seconds >s with any unit being optional. For example, an hour and a half can be specified as 1h30m or 90m. Must be between 15 minutes (15m) and 12 hours (12h).

ExternalIdOptional

ExternalId *string
  • Type: *string
(Optional) External identifier to use when assuming the role.

PolicyOptional

Policy *string
  • Type: *string
(Optional) IAM Policy JSON describing further restricting permissions for the IAM Role being assumed.

PolicyArnsOptional

PolicyArns *[]*string
  • Type: *[]*string
(Optional) Set of Amazon Resource Names (ARNs) of IAM Policies describing further restricting permissions for the IAM Role being assumed.

SessionNameOptional

SessionName *string
  • Type: *string
(Optional) Session name to use when assuming the role.

SourceIdentityOptional

SourceIdentity *string
  • Type: *string
(Optional) Source identity specified by the principal assuming the.

TagsOptional

Tags *map[string]*string
  • Type: *map[string]*string
(Optional) Map of assume role session tags.

TransitiveTagKeysOptional

TransitiveTagKeys *[]*string
  • Type: *[]*string
(Optional) Set of assume role session tag keys to pass to any subsequent sessions.