Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.23.0 published on Wednesday, Jul 6, 2022 by Pulumi

getMetaTags

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

NOTE: Available in v1.169.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var @default = Output.Create(AliCloud.Tag.GetMetaTags.InvokeAsync(new AliCloud.Tag.GetMetaTagsArgs
        {
            KeyName = "example_value",
        }));
        this.TagMetaTagDefault1 = @default.Apply(@default => @default.Tags?.ValueName);
    }

    [Output("tagMetaTagDefault1")]
    public Output<string> TagMetaTagDefault1 { get; set; }
}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/tag"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

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
	})
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

default = alicloud.tag.get_meta_tags(key_name="example_value")
pulumi.export("tagMetaTagDefault1", default.tags.value_name)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const default = alicloud.tag.getMetaTags({
    keyName: "example_value",
});
export const tagMetaTagDefault1 = _default.then(_default => _default.tags?.valueName);

Coming soon!

Using getMetaTags

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getMetaTags(args: GetMetaTagsArgs, opts?: InvokeOptions): Promise<GetMetaTagsResult>
function getMetaTagsOutput(args: GetMetaTagsOutputArgs, opts?: InvokeOptions): Output<GetMetaTagsResult>
def get_meta_tags(key_name: Optional[str] = None,
                  output_file: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetMetaTagsResult
def get_meta_tags_output(key_name: Optional[pulumi.Input[str]] = None,
                  output_file: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetMetaTagsResult]
func GetMetaTags(ctx *Context, args *GetMetaTagsArgs, opts ...InvokeOption) (*GetMetaTagsResult, error)
func GetMetaTagsOutput(ctx *Context, args *GetMetaTagsOutputArgs, opts ...InvokeOption) GetMetaTagsResultOutput

> Note: This function is named GetMetaTags in the Go SDK.

public static class GetMetaTags 
{
    public static Task<GetMetaTagsResult> InvokeAsync(GetMetaTagsArgs args, InvokeOptions? opts = null)
    public static Output<GetMetaTagsResult> Invoke(GetMetaTagsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMetaTagsResult> getMetaTags(GetMetaTagsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: alicloud:tag/getMetaTags:getMetaTags
  Arguments:
    # Arguments dictionary

The following arguments are supported:

KeyName string

The name of the key.

OutputFile string
KeyName string

The name of the key.

OutputFile string
keyName String

The name of the key.

outputFile String
keyName string

The name of the key.

outputFile string
key_name str

The name of the key.

output_file str
keyName String

The name of the key.

outputFile String

getMetaTags Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Tags List<Pulumi.AliCloud.Tag.Outputs.GetMetaTagsTag>
KeyName string
OutputFile string
Id string

The provider-assigned unique ID for this managed resource.

Tags []GetMetaTagsTag
KeyName string
OutputFile string
id String

The provider-assigned unique ID for this managed resource.

tags List<GetMetaTagsTag>
keyName String
outputFile String
id string

The provider-assigned unique ID for this managed resource.

tags GetMetaTagsTag[]
keyName string
outputFile string
id str

The provider-assigned unique ID for this managed resource.

tags Sequence[GetMetaTagsTag]
key_name str
output_file str
id String

The provider-assigned unique ID for this managed resource.

tags List<Property Map>
keyName String
outputFile String

Supporting Types

GetMetaTagsTag

Category string

The type of the resource tags.

KeyName string

The name of the key.

ValueName string

The name of the value.

Category string

The type of the resource tags.

KeyName string

The name of the key.

ValueName string

The name of the value.

category String

The type of the resource tags.

keyName String

The name of the key.

valueName String

The name of the value.

category string

The type of the resource tags.

keyName string

The name of the key.

valueName string

The name of the value.

category str

The type of the resource tags.

key_name str

The name of the key.

value_name str

The name of the value.

category String

The type of the resource tags.

keyName String

The name of the key.

valueName String

The name of the value.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.