tag

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.1

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 GetMetaTagsArgs

type GetMetaTagsArgs struct {
	// The name of the key.
	KeyName    *string `pulumi:"keyName"`
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getMetaTags.

type GetMetaTagsOutputArgs

type GetMetaTagsOutputArgs struct {
	// The name of the key.
	KeyName    pulumi.StringPtrInput `pulumi:"keyName"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getMetaTags.

func (GetMetaTagsOutputArgs) ElementType

func (GetMetaTagsOutputArgs) ElementType() reflect.Type

type GetMetaTagsResult

type GetMetaTagsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string           `pulumi:"id"`
	KeyName    *string          `pulumi:"keyName"`
	OutputFile *string          `pulumi:"outputFile"`
	Tags       []GetMetaTagsTag `pulumi:"tags"`
}

A collection of values returned by getMetaTags.

func GetMetaTags

func GetMetaTags(ctx *pulumi.Context, args *GetMetaTagsArgs, opts ...pulumi.InvokeOption) (*GetMetaTagsResult, error)

This data source provides the Tag Meta Tags of the current Alibaba Cloud user.

> **NOTE:** Available in v1.169.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/tag"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/tag"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := tag.GetMetaTags(ctx, &tag.GetMetaTagsArgs{
			KeyName: pulumi.StringRef("example_value"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("tagMetaTagDefault1", _default.Tags.ValueName)
		return nil
	})
}

```

type GetMetaTagsResultOutput

type GetMetaTagsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getMetaTags.

func (GetMetaTagsResultOutput) ElementType

func (GetMetaTagsResultOutput) ElementType() reflect.Type

func (GetMetaTagsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetMetaTagsResultOutput) KeyName

func (GetMetaTagsResultOutput) OutputFile

func (GetMetaTagsResultOutput) Tags

func (GetMetaTagsResultOutput) ToGetMetaTagsResultOutput

func (o GetMetaTagsResultOutput) ToGetMetaTagsResultOutput() GetMetaTagsResultOutput

func (GetMetaTagsResultOutput) ToGetMetaTagsResultOutputWithContext

func (o GetMetaTagsResultOutput) ToGetMetaTagsResultOutputWithContext(ctx context.Context) GetMetaTagsResultOutput

type GetMetaTagsTag

type GetMetaTagsTag struct {
	// The type of the resource tags.
	Category string `pulumi:"category"`
	// The name of the key.
	KeyName string `pulumi:"keyName"`
	// The name of the value.
	ValueName string `pulumi:"valueName"`
}

type GetMetaTagsTagArgs

type GetMetaTagsTagArgs struct {
	// The type of the resource tags.
	Category pulumi.StringInput `pulumi:"category"`
	// The name of the key.
	KeyName pulumi.StringInput `pulumi:"keyName"`
	// The name of the value.
	ValueName pulumi.StringInput `pulumi:"valueName"`
}

func (GetMetaTagsTagArgs) ElementType

func (GetMetaTagsTagArgs) ElementType() reflect.Type

func (GetMetaTagsTagArgs) ToGetMetaTagsTagOutput

func (i GetMetaTagsTagArgs) ToGetMetaTagsTagOutput() GetMetaTagsTagOutput

func (GetMetaTagsTagArgs) ToGetMetaTagsTagOutputWithContext

func (i GetMetaTagsTagArgs) ToGetMetaTagsTagOutputWithContext(ctx context.Context) GetMetaTagsTagOutput

type GetMetaTagsTagArray

type GetMetaTagsTagArray []GetMetaTagsTagInput

func (GetMetaTagsTagArray) ElementType

func (GetMetaTagsTagArray) ElementType() reflect.Type

func (GetMetaTagsTagArray) ToGetMetaTagsTagArrayOutput

func (i GetMetaTagsTagArray) ToGetMetaTagsTagArrayOutput() GetMetaTagsTagArrayOutput

func (GetMetaTagsTagArray) ToGetMetaTagsTagArrayOutputWithContext

func (i GetMetaTagsTagArray) ToGetMetaTagsTagArrayOutputWithContext(ctx context.Context) GetMetaTagsTagArrayOutput

type GetMetaTagsTagArrayInput

type GetMetaTagsTagArrayInput interface {
	pulumi.Input

	ToGetMetaTagsTagArrayOutput() GetMetaTagsTagArrayOutput
	ToGetMetaTagsTagArrayOutputWithContext(context.Context) GetMetaTagsTagArrayOutput
}

GetMetaTagsTagArrayInput is an input type that accepts GetMetaTagsTagArray and GetMetaTagsTagArrayOutput values. You can construct a concrete instance of `GetMetaTagsTagArrayInput` via:

GetMetaTagsTagArray{ GetMetaTagsTagArgs{...} }

type GetMetaTagsTagArrayOutput

type GetMetaTagsTagArrayOutput struct{ *pulumi.OutputState }

func (GetMetaTagsTagArrayOutput) ElementType

func (GetMetaTagsTagArrayOutput) ElementType() reflect.Type

func (GetMetaTagsTagArrayOutput) Index

func (GetMetaTagsTagArrayOutput) ToGetMetaTagsTagArrayOutput

func (o GetMetaTagsTagArrayOutput) ToGetMetaTagsTagArrayOutput() GetMetaTagsTagArrayOutput

func (GetMetaTagsTagArrayOutput) ToGetMetaTagsTagArrayOutputWithContext

func (o GetMetaTagsTagArrayOutput) ToGetMetaTagsTagArrayOutputWithContext(ctx context.Context) GetMetaTagsTagArrayOutput

type GetMetaTagsTagInput

type GetMetaTagsTagInput interface {
	pulumi.Input

	ToGetMetaTagsTagOutput() GetMetaTagsTagOutput
	ToGetMetaTagsTagOutputWithContext(context.Context) GetMetaTagsTagOutput
}

GetMetaTagsTagInput is an input type that accepts GetMetaTagsTagArgs and GetMetaTagsTagOutput values. You can construct a concrete instance of `GetMetaTagsTagInput` via:

GetMetaTagsTagArgs{...}

type GetMetaTagsTagOutput

type GetMetaTagsTagOutput struct{ *pulumi.OutputState }

func (GetMetaTagsTagOutput) Category

The type of the resource tags.

func (GetMetaTagsTagOutput) ElementType

func (GetMetaTagsTagOutput) ElementType() reflect.Type

func (GetMetaTagsTagOutput) KeyName

The name of the key.

func (GetMetaTagsTagOutput) ToGetMetaTagsTagOutput

func (o GetMetaTagsTagOutput) ToGetMetaTagsTagOutput() GetMetaTagsTagOutput

func (GetMetaTagsTagOutput) ToGetMetaTagsTagOutputWithContext

func (o GetMetaTagsTagOutput) ToGetMetaTagsTagOutputWithContext(ctx context.Context) GetMetaTagsTagOutput

func (GetMetaTagsTagOutput) ValueName

The name of the value.

Jump to

Keyboard shortcuts

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