tctest

package
v0.0.0-...-9ab2e28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

A Pulumi package for creating and managing testing tencent cloud resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type Provider

type Provider struct {
	pulumi.ProviderResourceState

	// The root domain of the API request, Default is `tencentcloudapi.com`.
	Domain pulumi.StringPtrOutput `pulumi:"domain"`
	// The protocol of the API request. Valid values: `HTTP` and `HTTPS`. Default is `HTTPS`.
	Protocol pulumi.StringPtrOutput `pulumi:"protocol"`
	// 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.
	Region pulumi.StringPtrOutput `pulumi:"region"`
	// This is the TencentCloud access key. It must be provided, but it can also be sourced from the `TENCENTCLOUD_SECRET_ID`
	// environment variable.
	SecretId pulumi.StringPtrOutput `pulumi:"secretId"`
	// This is the TencentCloud secret key. It must be provided, but it can also be sourced from the `TENCENTCLOUD_SECRET_KEY`
	// environment variable.
	SecretKey pulumi.StringPtrOutput `pulumi:"secretKey"`
	// 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).
	SecurityToken pulumi.StringPtrOutput `pulumi:"securityToken"`
}

The provider type for the tctest package. By default, resources use package-wide configuration settings, however an explicit `Provider` instance may be created and passed during resource construction to achieve fine-grained programmatic control over provider settings. See the [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.

func NewProvider

func NewProvider(ctx *pulumi.Context,
	name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error)

NewProvider registers a new resource with the given unique name, arguments, and options.

func (*Provider) ElementType

func (*Provider) ElementType() reflect.Type

func (*Provider) ToProviderOutput

func (i *Provider) ToProviderOutput() ProviderOutput

func (*Provider) ToProviderOutputWithContext

func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

type ProviderArgs

type ProviderArgs struct {
	// The `assume_role` block. If provided, terraform will attempt to assume this role using the supplied credentials.
	AssumeRole ProviderAssumeRolePtrInput
	// The root domain of the API request, Default is `tencentcloudapi.com`.
	Domain pulumi.StringPtrInput
	// The protocol of the API request. Valid values: `HTTP` and `HTTPS`. Default is `HTTPS`.
	Protocol pulumi.StringPtrInput
	// 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.
	Region pulumi.StringPtrInput
	// This is the TencentCloud access key. It must be provided, but it can also be sourced from the `TENCENTCLOUD_SECRET_ID`
	// environment variable.
	SecretId pulumi.StringPtrInput
	// This is the TencentCloud secret key. It must be provided, but it can also be sourced from the `TENCENTCLOUD_SECRET_KEY`
	// environment variable.
	SecretKey pulumi.StringPtrInput
	// 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).
	SecurityToken pulumi.StringPtrInput
}

The set of arguments for constructing a Provider resource.

func (ProviderArgs) ElementType

func (ProviderArgs) ElementType() reflect.Type

type ProviderAssumeRole

type ProviderAssumeRole struct {
	Policy          *string `pulumi:"policy"`
	RoleArn         string  `pulumi:"roleArn"`
	SessionDuration int     `pulumi:"sessionDuration"`
	SessionName     string  `pulumi:"sessionName"`
}

type ProviderAssumeRoleArgs

type ProviderAssumeRoleArgs struct {
	Policy          pulumi.StringPtrInput `pulumi:"policy"`
	RoleArn         pulumi.StringInput    `pulumi:"roleArn"`
	SessionDuration pulumi.IntInput       `pulumi:"sessionDuration"`
	SessionName     pulumi.StringInput    `pulumi:"sessionName"`
}

func (ProviderAssumeRoleArgs) ElementType

func (ProviderAssumeRoleArgs) ElementType() reflect.Type

func (ProviderAssumeRoleArgs) ToProviderAssumeRoleOutput

func (i ProviderAssumeRoleArgs) ToProviderAssumeRoleOutput() ProviderAssumeRoleOutput

func (ProviderAssumeRoleArgs) ToProviderAssumeRoleOutputWithContext

func (i ProviderAssumeRoleArgs) ToProviderAssumeRoleOutputWithContext(ctx context.Context) ProviderAssumeRoleOutput

func (ProviderAssumeRoleArgs) ToProviderAssumeRolePtrOutput

func (i ProviderAssumeRoleArgs) ToProviderAssumeRolePtrOutput() ProviderAssumeRolePtrOutput

func (ProviderAssumeRoleArgs) ToProviderAssumeRolePtrOutputWithContext

func (i ProviderAssumeRoleArgs) ToProviderAssumeRolePtrOutputWithContext(ctx context.Context) ProviderAssumeRolePtrOutput

type ProviderAssumeRoleInput

type ProviderAssumeRoleInput interface {
	pulumi.Input

	ToProviderAssumeRoleOutput() ProviderAssumeRoleOutput
	ToProviderAssumeRoleOutputWithContext(context.Context) ProviderAssumeRoleOutput
}

ProviderAssumeRoleInput is an input type that accepts ProviderAssumeRoleArgs and ProviderAssumeRoleOutput values. You can construct a concrete instance of `ProviderAssumeRoleInput` via:

ProviderAssumeRoleArgs{...}

type ProviderAssumeRoleOutput

type ProviderAssumeRoleOutput struct{ *pulumi.OutputState }

func (ProviderAssumeRoleOutput) ElementType

func (ProviderAssumeRoleOutput) ElementType() reflect.Type

func (ProviderAssumeRoleOutput) Policy

func (ProviderAssumeRoleOutput) RoleArn

func (ProviderAssumeRoleOutput) SessionDuration

func (o ProviderAssumeRoleOutput) SessionDuration() pulumi.IntOutput

func (ProviderAssumeRoleOutput) SessionName

func (ProviderAssumeRoleOutput) ToProviderAssumeRoleOutput

func (o ProviderAssumeRoleOutput) ToProviderAssumeRoleOutput() ProviderAssumeRoleOutput

func (ProviderAssumeRoleOutput) ToProviderAssumeRoleOutputWithContext

func (o ProviderAssumeRoleOutput) ToProviderAssumeRoleOutputWithContext(ctx context.Context) ProviderAssumeRoleOutput

func (ProviderAssumeRoleOutput) ToProviderAssumeRolePtrOutput

func (o ProviderAssumeRoleOutput) ToProviderAssumeRolePtrOutput() ProviderAssumeRolePtrOutput

func (ProviderAssumeRoleOutput) ToProviderAssumeRolePtrOutputWithContext

func (o ProviderAssumeRoleOutput) ToProviderAssumeRolePtrOutputWithContext(ctx context.Context) ProviderAssumeRolePtrOutput

type ProviderAssumeRolePtrInput

type ProviderAssumeRolePtrInput interface {
	pulumi.Input

	ToProviderAssumeRolePtrOutput() ProviderAssumeRolePtrOutput
	ToProviderAssumeRolePtrOutputWithContext(context.Context) ProviderAssumeRolePtrOutput
}

ProviderAssumeRolePtrInput is an input type that accepts ProviderAssumeRoleArgs, ProviderAssumeRolePtr and ProviderAssumeRolePtrOutput values. You can construct a concrete instance of `ProviderAssumeRolePtrInput` via:

        ProviderAssumeRoleArgs{...}

or:

        nil

type ProviderAssumeRolePtrOutput

type ProviderAssumeRolePtrOutput struct{ *pulumi.OutputState }

func (ProviderAssumeRolePtrOutput) Elem

func (ProviderAssumeRolePtrOutput) ElementType

func (ProviderAssumeRolePtrOutput) Policy

func (ProviderAssumeRolePtrOutput) RoleArn

func (ProviderAssumeRolePtrOutput) SessionDuration

func (o ProviderAssumeRolePtrOutput) SessionDuration() pulumi.IntPtrOutput

func (ProviderAssumeRolePtrOutput) SessionName

func (ProviderAssumeRolePtrOutput) ToProviderAssumeRolePtrOutput

func (o ProviderAssumeRolePtrOutput) ToProviderAssumeRolePtrOutput() ProviderAssumeRolePtrOutput

func (ProviderAssumeRolePtrOutput) ToProviderAssumeRolePtrOutputWithContext

func (o ProviderAssumeRolePtrOutput) ToProviderAssumeRolePtrOutputWithContext(ctx context.Context) ProviderAssumeRolePtrOutput

type ProviderInput

type ProviderInput interface {
	pulumi.Input

	ToProviderOutput() ProviderOutput
	ToProviderOutputWithContext(ctx context.Context) ProviderOutput
}

type ProviderOutput

type ProviderOutput struct{ *pulumi.OutputState }

func (ProviderOutput) Domain

The root domain of the API request, Default is `tencentcloudapi.com`.

func (ProviderOutput) ElementType

func (ProviderOutput) ElementType() reflect.Type

func (ProviderOutput) Protocol

func (o ProviderOutput) Protocol() pulumi.StringPtrOutput

The protocol of the API request. Valid values: `HTTP` and `HTTPS`. Default is `HTTPS`.

func (ProviderOutput) Region

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 (ProviderOutput) SecretId

func (o ProviderOutput) SecretId() pulumi.StringPtrOutput

This is the TencentCloud access key. It must be provided, but it can also be sourced from the `TENCENTCLOUD_SECRET_ID` environment variable.

func (ProviderOutput) SecretKey

func (o ProviderOutput) SecretKey() pulumi.StringPtrOutput

This is the TencentCloud secret key. It must be provided, but it can also be sourced from the `TENCENTCLOUD_SECRET_KEY` environment variable.

func (ProviderOutput) SecurityToken

func (o ProviderOutput) SecurityToken() pulumi.StringPtrOutput

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 (ProviderOutput) ToProviderOutput

func (o ProviderOutput) ToProviderOutput() ProviderOutput

func (ProviderOutput) ToProviderOutputWithContext

func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL