tms

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.2

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 Tags

type Tags struct {
	pulumi.CustomResourceState

	// Specifies an array of one or more predefined tags. The tags object
	// structure is documented below. Changing this will create a new resource.
	Tags TagsTagArrayOutput `pulumi:"tags"`
}

Manages TMS tags resource within HuaweiCloud.

## Example Usage

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Tms"
"github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Tms"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Tms.NewTags(ctx, "test", &Tms.TagsArgs{
			Tags: tms.TagsTagArray{
				&tms.TagsTagArgs{
					Key:   pulumi.String("foo"),
					Value: pulumi.String("bar"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetTags

func GetTags(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TagsState, opts ...pulumi.ResourceOption) (*Tags, error)

GetTags gets an existing Tags resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewTags

func NewTags(ctx *pulumi.Context,
	name string, args *TagsArgs, opts ...pulumi.ResourceOption) (*Tags, error)

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

func (*Tags) ElementType

func (*Tags) ElementType() reflect.Type

func (*Tags) ToTagsOutput

func (i *Tags) ToTagsOutput() TagsOutput

func (*Tags) ToTagsOutputWithContext

func (i *Tags) ToTagsOutputWithContext(ctx context.Context) TagsOutput

type TagsArgs

type TagsArgs struct {
	// Specifies an array of one or more predefined tags. The tags object
	// structure is documented below. Changing this will create a new resource.
	Tags TagsTagArrayInput
}

The set of arguments for constructing a Tags resource.

func (TagsArgs) ElementType

func (TagsArgs) ElementType() reflect.Type

type TagsArray

type TagsArray []TagsInput

func (TagsArray) ElementType

func (TagsArray) ElementType() reflect.Type

func (TagsArray) ToTagsArrayOutput

func (i TagsArray) ToTagsArrayOutput() TagsArrayOutput

func (TagsArray) ToTagsArrayOutputWithContext

func (i TagsArray) ToTagsArrayOutputWithContext(ctx context.Context) TagsArrayOutput

type TagsArrayInput

type TagsArrayInput interface {
	pulumi.Input

	ToTagsArrayOutput() TagsArrayOutput
	ToTagsArrayOutputWithContext(context.Context) TagsArrayOutput
}

TagsArrayInput is an input type that accepts TagsArray and TagsArrayOutput values. You can construct a concrete instance of `TagsArrayInput` via:

TagsArray{ TagsArgs{...} }

type TagsArrayOutput

type TagsArrayOutput struct{ *pulumi.OutputState }

func (TagsArrayOutput) ElementType

func (TagsArrayOutput) ElementType() reflect.Type

func (TagsArrayOutput) Index

func (TagsArrayOutput) ToTagsArrayOutput

func (o TagsArrayOutput) ToTagsArrayOutput() TagsArrayOutput

func (TagsArrayOutput) ToTagsArrayOutputWithContext

func (o TagsArrayOutput) ToTagsArrayOutputWithContext(ctx context.Context) TagsArrayOutput

type TagsInput

type TagsInput interface {
	pulumi.Input

	ToTagsOutput() TagsOutput
	ToTagsOutputWithContext(ctx context.Context) TagsOutput
}

type TagsMap

type TagsMap map[string]TagsInput

func (TagsMap) ElementType

func (TagsMap) ElementType() reflect.Type

func (TagsMap) ToTagsMapOutput

func (i TagsMap) ToTagsMapOutput() TagsMapOutput

func (TagsMap) ToTagsMapOutputWithContext

func (i TagsMap) ToTagsMapOutputWithContext(ctx context.Context) TagsMapOutput

type TagsMapInput

type TagsMapInput interface {
	pulumi.Input

	ToTagsMapOutput() TagsMapOutput
	ToTagsMapOutputWithContext(context.Context) TagsMapOutput
}

TagsMapInput is an input type that accepts TagsMap and TagsMapOutput values. You can construct a concrete instance of `TagsMapInput` via:

TagsMap{ "key": TagsArgs{...} }

type TagsMapOutput

type TagsMapOutput struct{ *pulumi.OutputState }

func (TagsMapOutput) ElementType

func (TagsMapOutput) ElementType() reflect.Type

func (TagsMapOutput) MapIndex

func (TagsMapOutput) ToTagsMapOutput

func (o TagsMapOutput) ToTagsMapOutput() TagsMapOutput

func (TagsMapOutput) ToTagsMapOutputWithContext

func (o TagsMapOutput) ToTagsMapOutputWithContext(ctx context.Context) TagsMapOutput

type TagsOutput

type TagsOutput struct{ *pulumi.OutputState }

func (TagsOutput) ElementType

func (TagsOutput) ElementType() reflect.Type

func (TagsOutput) Tags

func (o TagsOutput) Tags() TagsTagArrayOutput

Specifies an array of one or more predefined tags. The tags object structure is documented below. Changing this will create a new resource.

func (TagsOutput) ToTagsOutput

func (o TagsOutput) ToTagsOutput() TagsOutput

func (TagsOutput) ToTagsOutputWithContext

func (o TagsOutput) ToTagsOutputWithContext(ctx context.Context) TagsOutput

type TagsState

type TagsState struct {
	// Specifies an array of one or more predefined tags. The tags object
	// structure is documented below. Changing this will create a new resource.
	Tags TagsTagArrayInput
}

func (TagsState) ElementType

func (TagsState) ElementType() reflect.Type

type TagsTag

type TagsTag struct {
	// Specifies the tag key. The value can contain up to 36 characters.
	// Only letters, digits, hyphens (-), underscores (_), and Unicode characters from \u4e00 to \u9fff are allowed.
	// Changing this will create a new resource.
	Key string `pulumi:"key"`
	// Specifies the tag value. The value can contain up to 43 characters.
	// Only letters, digits, periods (.), hyphens (-), and underscores (_), and Unicode characters from \u4e00 to \u9fff
	// are allowed. Changing this will create a new resource.
	Value string `pulumi:"value"`
}

type TagsTagArgs

type TagsTagArgs struct {
	// Specifies the tag key. The value can contain up to 36 characters.
	// Only letters, digits, hyphens (-), underscores (_), and Unicode characters from \u4e00 to \u9fff are allowed.
	// Changing this will create a new resource.
	Key pulumi.StringInput `pulumi:"key"`
	// Specifies the tag value. The value can contain up to 43 characters.
	// Only letters, digits, periods (.), hyphens (-), and underscores (_), and Unicode characters from \u4e00 to \u9fff
	// are allowed. Changing this will create a new resource.
	Value pulumi.StringInput `pulumi:"value"`
}

func (TagsTagArgs) ElementType

func (TagsTagArgs) ElementType() reflect.Type

func (TagsTagArgs) ToTagsTagOutput

func (i TagsTagArgs) ToTagsTagOutput() TagsTagOutput

func (TagsTagArgs) ToTagsTagOutputWithContext

func (i TagsTagArgs) ToTagsTagOutputWithContext(ctx context.Context) TagsTagOutput

type TagsTagArray

type TagsTagArray []TagsTagInput

func (TagsTagArray) ElementType

func (TagsTagArray) ElementType() reflect.Type

func (TagsTagArray) ToTagsTagArrayOutput

func (i TagsTagArray) ToTagsTagArrayOutput() TagsTagArrayOutput

func (TagsTagArray) ToTagsTagArrayOutputWithContext

func (i TagsTagArray) ToTagsTagArrayOutputWithContext(ctx context.Context) TagsTagArrayOutput

type TagsTagArrayInput

type TagsTagArrayInput interface {
	pulumi.Input

	ToTagsTagArrayOutput() TagsTagArrayOutput
	ToTagsTagArrayOutputWithContext(context.Context) TagsTagArrayOutput
}

TagsTagArrayInput is an input type that accepts TagsTagArray and TagsTagArrayOutput values. You can construct a concrete instance of `TagsTagArrayInput` via:

TagsTagArray{ TagsTagArgs{...} }

type TagsTagArrayOutput

type TagsTagArrayOutput struct{ *pulumi.OutputState }

func (TagsTagArrayOutput) ElementType

func (TagsTagArrayOutput) ElementType() reflect.Type

func (TagsTagArrayOutput) Index

func (TagsTagArrayOutput) ToTagsTagArrayOutput

func (o TagsTagArrayOutput) ToTagsTagArrayOutput() TagsTagArrayOutput

func (TagsTagArrayOutput) ToTagsTagArrayOutputWithContext

func (o TagsTagArrayOutput) ToTagsTagArrayOutputWithContext(ctx context.Context) TagsTagArrayOutput

type TagsTagInput

type TagsTagInput interface {
	pulumi.Input

	ToTagsTagOutput() TagsTagOutput
	ToTagsTagOutputWithContext(context.Context) TagsTagOutput
}

TagsTagInput is an input type that accepts TagsTagArgs and TagsTagOutput values. You can construct a concrete instance of `TagsTagInput` via:

TagsTagArgs{...}

type TagsTagOutput

type TagsTagOutput struct{ *pulumi.OutputState }

func (TagsTagOutput) ElementType

func (TagsTagOutput) ElementType() reflect.Type

func (TagsTagOutput) Key

Specifies the tag key. The value can contain up to 36 characters. Only letters, digits, hyphens (-), underscores (_), and Unicode characters from \u4e00 to \u9fff are allowed. Changing this will create a new resource.

func (TagsTagOutput) ToTagsTagOutput

func (o TagsTagOutput) ToTagsTagOutput() TagsTagOutput

func (TagsTagOutput) ToTagsTagOutputWithContext

func (o TagsTagOutput) ToTagsTagOutputWithContext(ctx context.Context) TagsTagOutput

func (TagsTagOutput) Value

func (o TagsTagOutput) Value() pulumi.StringOutput

Specifies the tag value. The value can contain up to 43 characters. Only letters, digits, periods (.), hyphens (-), and underscores (_), and Unicode characters from \u4e00 to \u9fff are allowed. Changing this will create a new resource.

Jump to

Keyboard shortcuts

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