Try AWS Native preview for resources not in the classic version.
aws.lakeformation.LfTag
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
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 15.
Example Usage
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/v5/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());
}
}
import pulumi
import pulumi_aws as aws
example = aws.lakeformation.LfTag("example",
key="module",
values=[
"Orders",
"Sales",
"Customers",
])
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",
],
});
resources:
example:
type: aws:lakeformation:LfTag
properties:
key: module
values:
- Orders
- Sales
- Customers
Create LfTag Resource
new LfTag(name: string, args: LfTagArgs, opts?: CustomResourceOptions);
@overload
def LfTag(resource_name: str,
opts: Optional[ResourceOptions] = None,
catalog_id: Optional[str] = None,
key: Optional[str] = None,
values: Optional[Sequence[str]] = None)
@overload
def LfTag(resource_name: str,
args: LfTagArgs,
opts: Optional[ResourceOptions] = None)
func NewLfTag(ctx *Context, name string, args LfTagArgs, opts ...ResourceOption) (*LfTag, error)
public LfTag(string name, LfTagArgs args, CustomResourceOptions? opts = null)
type: aws:lakeformation:LfTag
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LfTagArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args LfTagArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args LfTagArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LfTagArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LfTagArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
LfTag Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The LfTag resource accepts the following input properties:
- key str
Key-name for the tag.
- values Sequence[str]
List of possible values an attribute can take.
- catalog_
id str ID of the Data Catalog to create the tag in. If omitted, this defaults to the AWS Account ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the LfTag resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing LfTag Resource
Get an existing LfTag resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: LfTagState, opts?: CustomResourceOptions): LfTag
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
catalog_id: Optional[str] = None,
key: Optional[str] = None,
values: Optional[Sequence[str]] = None) -> LfTag
func GetLfTag(ctx *Context, name string, id IDInput, state *LfTagState, opts ...ResourceOption) (*LfTag, error)
public static LfTag Get(string name, Input<string> id, LfTagState? state, CustomResourceOptions? opts = null)
public static LfTag get(String name, Output<String> id, LfTagState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- catalog_
id str ID of the Data Catalog to create the tag in. If omitted, this defaults to the AWS Account ID.
- key str
Key-name for the tag.
- values Sequence[str]
List of possible values an attribute can take.
Import
Lake Formation LF-Tags can be imported using the catalog_id:key
. If you have not set a Catalog ID specify the AWS Account ID that the database is in, e.g.
$ pulumi import aws:lakeformation/lfTag:LfTag example 123456789012:some_key
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.