LfTag

class LfTag : KotlinCustomResource

Creates an LF-Tag with the specified name and values. Each key must have at least one value. The maximum number of values permitted is 1000.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.lakeformation.LfTag("example", {
key: "module",
values: [
"Orders",
"Sales",
"Customers",
],
});
import pulumi
import pulumi_aws as aws
example = aws.lakeformation.LfTag("example",
key="module",
values=[
"Orders",
"Sales",
"Customers",
])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.LakeFormation.LfTag("example", new()
{
Key = "module",
Values = new[]
{
"Orders",
"Sales",
"Customers",
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/lakeformation"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := lakeformation.NewLfTag(ctx, "example", &lakeformation.LfTagArgs{
Key: pulumi.String("module"),
Values: pulumi.StringArray{
pulumi.String("Orders"),
pulumi.String("Sales"),
pulumi.String("Customers"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lakeformation.LfTag;
import com.pulumi.aws.lakeformation.LfTagArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new LfTag("example", LfTagArgs.builder()
.key("module")
.values(
"Orders",
"Sales",
"Customers")
.build());
}
}
resources:
example:
type: aws:lakeformation:LfTag
properties:
key: module
values:
- Orders
- Sales
- Customers

Import

Using pulumi import, import Lake Formation LF-Tags using the catalog_id:key. If you have not set a Catalog ID specify the AWS Account ID that the database is in. For example:

$ pulumi import aws:lakeformation/lfTag:LfTag example 123456789012:some_key

Properties

Link copied to clipboard
val catalogId: Output<String>

ID of the Data Catalog to create the tag in. If omitted, this defaults to the AWS Account ID.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val key: Output<String>

Key-name for the tag.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val values: Output<List<String>>

List of possible values an attribute can take.