Documentation
¶
Index ¶
- func GetAssumeRole(ctx *pulumi.Context) string
- func GetDomain(ctx *pulumi.Context) string
- func GetProfile(ctx *pulumi.Context) string
- func GetProtocol(ctx *pulumi.Context) string
- func GetRegion(ctx *pulumi.Context) string
- func GetSecretId(ctx *pulumi.Context) string
- func GetSecretKey(ctx *pulumi.Context) string
- func GetSecurityToken(ctx *pulumi.Context) string
- func GetSharedCredentialsDir(ctx *pulumi.Context) string
- type AssumeRole
- type AssumeRoleArgs
- type AssumeRoleInput
- type AssumeRoleOutput
- func (AssumeRoleOutput) ElementType() reflect.Type
- func (o AssumeRoleOutput) Policy() pulumi.StringPtrOutput
- func (o AssumeRoleOutput) RoleArn() pulumi.StringOutput
- func (o AssumeRoleOutput) SessionDuration() pulumi.IntOutput
- func (o AssumeRoleOutput) SessionName() pulumi.StringOutput
- func (o AssumeRoleOutput) ToAssumeRoleOutput() AssumeRoleOutput
- func (o AssumeRoleOutput) ToAssumeRoleOutputWithContext(ctx context.Context) AssumeRoleOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAssumeRole ¶
func GetProfile ¶ added in v0.1.8
The profile name as set in the shared credentials. It can also be sourced from the `TENCENTCLOUD_PROFILE` environment variable. If not set, the default profile created with `tccli configure` will be used.
func GetProtocol ¶
The protocol of the API request. Valid values: `HTTP` and `HTTPS`. Default is `HTTPS`.
func GetRegion ¶
This is the TencentCloud region. It must be provided, but it can also be sourced from the `TENCENTCLOUD_REGION` environment variables. The default input value is ap-guangzhou.
func GetSecretId ¶
This is the TencentCloud access key. It must be provided, but it can also be sourced from the `TENCENTCLOUD_SECRET_ID` environment variable.
func GetSecretKey ¶
This is the TencentCloud secret key. It must be provided, but it can also be sourced from the `TENCENTCLOUD_SECRET_KEY` environment variable.
func GetSecurityToken ¶
TencentCloud Security Token of temporary access credentials. It can be sourced from the `TENCENTCLOUD_SECURITY_TOKEN` environment variable. Notice: for supported products, please refer to: [temporary key supported products](https://intl.cloud.tencent.com/document/product/598/10588).
func GetSharedCredentialsDir ¶ added in v0.1.8
The directory of the shared credentials. It can also be sourced from the `TENCENTCLOUD_SHARED_CREDENTIALS_DIR` environment variable. If not set this defaults to ~/.tccli.
Types ¶
type AssumeRole ¶
type AssumeRole struct { // A more restrictive policy when making the AssumeRole call. Its content must not contains `principal` elements. Notice: more syntax references, please refer to: [policies syntax logic](https://intl.cloud.tencent.com/document/product/598/10603). Policy *string `pulumi:"policy"` // The ARN of the role to assume. It can be sourced from the `TENCENTCLOUD_ASSUME_ROLE_ARN`. RoleArn string `pulumi:"roleArn"` // 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`. SessionDuration int `pulumi:"sessionDuration"` // The session name to use when making the AssumeRole call. It can be sourced from the `TENCENTCLOUD_ASSUME_ROLE_SESSION_NAME`. SessionName string `pulumi:"sessionName"` }
type AssumeRoleArgs ¶
type AssumeRoleArgs struct { // A more restrictive policy when making the AssumeRole call. Its content must not contains `principal` elements. Notice: more syntax references, please refer to: [policies syntax logic](https://intl.cloud.tencent.com/document/product/598/10603). Policy pulumi.StringPtrInput `pulumi:"policy"` // The ARN of the role to assume. It can be sourced from the `TENCENTCLOUD_ASSUME_ROLE_ARN`. RoleArn pulumi.StringInput `pulumi:"roleArn"` // 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`. SessionDuration pulumi.IntInput `pulumi:"sessionDuration"` // The session name to use when making the AssumeRole call. It can be sourced from the `TENCENTCLOUD_ASSUME_ROLE_SESSION_NAME`. SessionName pulumi.StringInput `pulumi:"sessionName"` }
func (AssumeRoleArgs) ElementType ¶
func (AssumeRoleArgs) ElementType() reflect.Type
func (AssumeRoleArgs) ToAssumeRoleOutput ¶
func (i AssumeRoleArgs) ToAssumeRoleOutput() AssumeRoleOutput
func (AssumeRoleArgs) ToAssumeRoleOutputWithContext ¶
func (i AssumeRoleArgs) ToAssumeRoleOutputWithContext(ctx context.Context) AssumeRoleOutput
type AssumeRoleInput ¶
type AssumeRoleInput interface { pulumi.Input ToAssumeRoleOutput() AssumeRoleOutput ToAssumeRoleOutputWithContext(context.Context) AssumeRoleOutput }
AssumeRoleInput is an input type that accepts AssumeRoleArgs and AssumeRoleOutput values. You can construct a concrete instance of `AssumeRoleInput` via:
AssumeRoleArgs{...}
type AssumeRoleOutput ¶
type AssumeRoleOutput struct{ *pulumi.OutputState }
func (AssumeRoleOutput) ElementType ¶
func (AssumeRoleOutput) ElementType() reflect.Type
func (AssumeRoleOutput) Policy ¶
func (o AssumeRoleOutput) Policy() pulumi.StringPtrOutput
A more restrictive policy when making the AssumeRole call. Its content must not contains `principal` elements. Notice: more syntax references, please refer to: [policies syntax logic](https://intl.cloud.tencent.com/document/product/598/10603).
func (AssumeRoleOutput) RoleArn ¶
func (o AssumeRoleOutput) RoleArn() pulumi.StringOutput
The ARN of the role to assume. It can be sourced from the `TENCENTCLOUD_ASSUME_ROLE_ARN`.
func (AssumeRoleOutput) SessionDuration ¶
func (o AssumeRoleOutput) SessionDuration() pulumi.IntOutput
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`.
func (AssumeRoleOutput) SessionName ¶
func (o AssumeRoleOutput) SessionName() pulumi.StringOutput
The session name to use when making the AssumeRole call. It can be sourced from the `TENCENTCLOUD_ASSUME_ROLE_SESSION_NAME`.
func (AssumeRoleOutput) ToAssumeRoleOutput ¶
func (o AssumeRoleOutput) ToAssumeRoleOutput() AssumeRoleOutput
func (AssumeRoleOutput) ToAssumeRoleOutputWithContext ¶
func (o AssumeRoleOutput) ToAssumeRoleOutputWithContext(ctx context.Context) AssumeRoleOutput