Skip to main content

Initializer

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

&cdktn.CosBackendAssumeRole {
	RoleArn: *string,
	SessionDuration: *f64,
	SessionName: *string,
	Policy: interface{},
}

Properties

NameTypeDescription
RoleArn*string(Required) The ARN of the role to assume.
SessionDuration*f64(Required) The duration of the session when making the AssumeRole call.
SessionName*string(Required) The session name to use when making the AssumeRole call.
Policyinterface{}(Optional) A more restrictive policy when making the AssumeRole call.

RoleArnRequired

RoleArn *string
  • Type: *string
(Required) The ARN of the role to assume. It can be sourced from the TENCENTCLOUD_ASSUME_ROLE_ARN.

SessionDurationRequired

SessionDuration *f64
  • Type: *f64
(Required) The duration of the session when making the AssumeRole call. Its value ranges from 0 to 43200(seconds), and default is 7200 seconds. It can be sourced from the TENCENTCLOUD_ASSUME_ROLE_SESSION_DURATION.

SessionNameRequired

SessionName *string
  • Type: *string
(Required) The session name to use when making the AssumeRole call. It can be sourced from the TENCENTCLOUD_ASSUME_ROLE_SESSION_NAME.

PolicyOptional

Policy interface{}
  • Type: interface{}
(Optional) A more restrictive policy when making the AssumeRole call. Its content must not contains principal elements. Please refer to policies syntax logic.