1. Packages
  2. AWS
  3. API Docs
  4. lakeformation
  5. LfTagExpression
AWS v7.8.0 published on Tuesday, Oct 7, 2025 by Pulumi

aws.lakeformation.LfTagExpression

Explore with Pulumi AI

aws logo
AWS v7.8.0 published on Tuesday, Oct 7, 2025 by Pulumi

    Resource for managing an AWS Lake Formation LF Tag Expression.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.lakeformation.LfTag("example", {
        key: "example",
        values: ["value"],
    });
    const exampleLfTagExpression = new aws.lakeformation.LfTagExpression("example", {
        name: "example",
        expressions: [{
            tagKey: example.key,
            tagValues: example.values,
        }],
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.lakeformation.LfTag("example",
        key="example",
        values=["value"])
    example_lf_tag_expression = aws.lakeformation.LfTagExpression("example",
        name="example",
        expressions=[{
            "tag_key": example.key,
            "tag_values": example.values,
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/lakeformation"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := lakeformation.NewLfTag(ctx, "example", &lakeformation.LfTagArgs{
    			Key: pulumi.String("example"),
    			Values: pulumi.StringArray{
    				pulumi.String("value"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = lakeformation.NewLfTagExpression(ctx, "example", &lakeformation.LfTagExpressionArgs{
    			Name: pulumi.String("example"),
    			Expressions: lakeformation.LfTagExpressionExpressionArray{
    				&lakeformation.LfTagExpressionExpressionArgs{
    					TagKey:    example.Key,
    					TagValues: example.Values,
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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 = "example",
            Values = new[]
            {
                "value",
            },
        });
    
        var exampleLfTagExpression = new Aws.LakeFormation.LfTagExpression("example", new()
        {
            Name = "example",
            Expressions = new[]
            {
                new Aws.LakeFormation.Inputs.LfTagExpressionExpressionArgs
                {
                    TagKey = example.Key,
                    TagValues = example.Values,
                },
            },
        });
    
    });
    
    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 com.pulumi.aws.lakeformation.LfTagExpression;
    import com.pulumi.aws.lakeformation.LfTagExpressionArgs;
    import com.pulumi.aws.lakeformation.inputs.LfTagExpressionExpressionArgs;
    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("example")
                .values("value")
                .build());
    
            var exampleLfTagExpression = new LfTagExpression("exampleLfTagExpression", LfTagExpressionArgs.builder()
                .name("example")
                .expressions(LfTagExpressionExpressionArgs.builder()
                    .tagKey(example.key())
                    .tagValues(example.values())
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:lakeformation:LfTag
        properties:
          key: example
          values:
            - value
      exampleLfTagExpression:
        type: aws:lakeformation:LfTagExpression
        name: example
        properties:
          name: example
          expressions:
            - tagKey: ${example.key}
              tagValues: ${example.values}
    

    Create LfTagExpression Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LfTagExpression(name: string, args?: LfTagExpressionArgs, opts?: CustomResourceOptions);
    @overload
    def LfTagExpression(resource_name: str,
                        args: Optional[LfTagExpressionArgs] = None,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def LfTagExpression(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        catalog_id: Optional[str] = None,
                        description: Optional[str] = None,
                        expressions: Optional[Sequence[LfTagExpressionExpressionArgs]] = None,
                        name: Optional[str] = None,
                        region: Optional[str] = None)
    func NewLfTagExpression(ctx *Context, name string, args *LfTagExpressionArgs, opts ...ResourceOption) (*LfTagExpression, error)
    public LfTagExpression(string name, LfTagExpressionArgs? args = null, CustomResourceOptions? opts = null)
    public LfTagExpression(String name, LfTagExpressionArgs args)
    public LfTagExpression(String name, LfTagExpressionArgs args, CustomResourceOptions options)
    
    type: aws:lakeformation:LfTagExpression
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args LfTagExpressionArgs
    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 LfTagExpressionArgs
    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 LfTagExpressionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LfTagExpressionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LfTagExpressionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var lfTagExpressionResource = new Aws.LakeFormation.LfTagExpression("lfTagExpressionResource", new()
    {
        CatalogId = "string",
        Description = "string",
        Expressions = new[]
        {
            new Aws.LakeFormation.Inputs.LfTagExpressionExpressionArgs
            {
                TagKey = "string",
                TagValues = new[]
                {
                    "string",
                },
            },
        },
        Name = "string",
        Region = "string",
    });
    
    example, err := lakeformation.NewLfTagExpression(ctx, "lfTagExpressionResource", &lakeformation.LfTagExpressionArgs{
    	CatalogId:   pulumi.String("string"),
    	Description: pulumi.String("string"),
    	Expressions: lakeformation.LfTagExpressionExpressionArray{
    		&lakeformation.LfTagExpressionExpressionArgs{
    			TagKey: pulumi.String("string"),
    			TagValues: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	Name:   pulumi.String("string"),
    	Region: pulumi.String("string"),
    })
    
    var lfTagExpressionResource = new LfTagExpression("lfTagExpressionResource", LfTagExpressionArgs.builder()
        .catalogId("string")
        .description("string")
        .expressions(LfTagExpressionExpressionArgs.builder()
            .tagKey("string")
            .tagValues("string")
            .build())
        .name("string")
        .region("string")
        .build());
    
    lf_tag_expression_resource = aws.lakeformation.LfTagExpression("lfTagExpressionResource",
        catalog_id="string",
        description="string",
        expressions=[{
            "tag_key": "string",
            "tag_values": ["string"],
        }],
        name="string",
        region="string")
    
    const lfTagExpressionResource = new aws.lakeformation.LfTagExpression("lfTagExpressionResource", {
        catalogId: "string",
        description: "string",
        expressions: [{
            tagKey: "string",
            tagValues: ["string"],
        }],
        name: "string",
        region: "string",
    });
    
    type: aws:lakeformation:LfTagExpression
    properties:
        catalogId: string
        description: string
        expressions:
            - tagKey: string
              tagValues:
                - string
        name: string
        region: string
    

    LfTagExpression Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The LfTagExpression resource accepts the following input properties:

    CatalogId string
    ID of the Data Catalog. Defaults to the account ID if not specified.
    Description string
    Description of the LF-Tag Expression.
    Expressions List<LfTagExpressionExpression>

    A list of LF-Tag conditions (key-value pairs). See expression for more details.

    The following arguments are optional:

    Name string
    Name of the LF-Tag Expression.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    CatalogId string
    ID of the Data Catalog. Defaults to the account ID if not specified.
    Description string
    Description of the LF-Tag Expression.
    Expressions []LfTagExpressionExpressionArgs

    A list of LF-Tag conditions (key-value pairs). See expression for more details.

    The following arguments are optional:

    Name string
    Name of the LF-Tag Expression.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    catalogId String
    ID of the Data Catalog. Defaults to the account ID if not specified.
    description String
    Description of the LF-Tag Expression.
    expressions List<LfTagExpressionExpression>

    A list of LF-Tag conditions (key-value pairs). See expression for more details.

    The following arguments are optional:

    name String
    Name of the LF-Tag Expression.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    catalogId string
    ID of the Data Catalog. Defaults to the account ID if not specified.
    description string
    Description of the LF-Tag Expression.
    expressions LfTagExpressionExpression[]

    A list of LF-Tag conditions (key-value pairs). See expression for more details.

    The following arguments are optional:

    name string
    Name of the LF-Tag Expression.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    catalog_id str
    ID of the Data Catalog. Defaults to the account ID if not specified.
    description str
    Description of the LF-Tag Expression.
    expressions Sequence[LfTagExpressionExpressionArgs]

    A list of LF-Tag conditions (key-value pairs). See expression for more details.

    The following arguments are optional:

    name str
    Name of the LF-Tag Expression.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    catalogId String
    ID of the Data Catalog. Defaults to the account ID if not specified.
    description String
    Description of the LF-Tag Expression.
    expressions List<Property Map>

    A list of LF-Tag conditions (key-value pairs). See expression for more details.

    The following arguments are optional:

    name String
    Name of the LF-Tag Expression.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LfTagExpression 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 LfTagExpression Resource

    Get an existing LfTagExpression 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?: LfTagExpressionState, opts?: CustomResourceOptions): LfTagExpression
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            catalog_id: Optional[str] = None,
            description: Optional[str] = None,
            expressions: Optional[Sequence[LfTagExpressionExpressionArgs]] = None,
            name: Optional[str] = None,
            region: Optional[str] = None) -> LfTagExpression
    func GetLfTagExpression(ctx *Context, name string, id IDInput, state *LfTagExpressionState, opts ...ResourceOption) (*LfTagExpression, error)
    public static LfTagExpression Get(string name, Input<string> id, LfTagExpressionState? state, CustomResourceOptions? opts = null)
    public static LfTagExpression get(String name, Output<String> id, LfTagExpressionState state, CustomResourceOptions options)
    resources:  _:    type: aws:lakeformation:LfTagExpression    get:      id: ${id}
    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.
    The following state arguments are supported:
    CatalogId string
    ID of the Data Catalog. Defaults to the account ID if not specified.
    Description string
    Description of the LF-Tag Expression.
    Expressions List<LfTagExpressionExpression>

    A list of LF-Tag conditions (key-value pairs). See expression for more details.

    The following arguments are optional:

    Name string
    Name of the LF-Tag Expression.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    CatalogId string
    ID of the Data Catalog. Defaults to the account ID if not specified.
    Description string
    Description of the LF-Tag Expression.
    Expressions []LfTagExpressionExpressionArgs

    A list of LF-Tag conditions (key-value pairs). See expression for more details.

    The following arguments are optional:

    Name string
    Name of the LF-Tag Expression.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    catalogId String
    ID of the Data Catalog. Defaults to the account ID if not specified.
    description String
    Description of the LF-Tag Expression.
    expressions List<LfTagExpressionExpression>

    A list of LF-Tag conditions (key-value pairs). See expression for more details.

    The following arguments are optional:

    name String
    Name of the LF-Tag Expression.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    catalogId string
    ID of the Data Catalog. Defaults to the account ID if not specified.
    description string
    Description of the LF-Tag Expression.
    expressions LfTagExpressionExpression[]

    A list of LF-Tag conditions (key-value pairs). See expression for more details.

    The following arguments are optional:

    name string
    Name of the LF-Tag Expression.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    catalog_id str
    ID of the Data Catalog. Defaults to the account ID if not specified.
    description str
    Description of the LF-Tag Expression.
    expressions Sequence[LfTagExpressionExpressionArgs]

    A list of LF-Tag conditions (key-value pairs). See expression for more details.

    The following arguments are optional:

    name str
    Name of the LF-Tag Expression.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    catalogId String
    ID of the Data Catalog. Defaults to the account ID if not specified.
    description String
    Description of the LF-Tag Expression.
    expressions List<Property Map>

    A list of LF-Tag conditions (key-value pairs). See expression for more details.

    The following arguments are optional:

    name String
    Name of the LF-Tag Expression.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.

    Supporting Types

    LfTagExpressionExpression, LfTagExpressionExpressionArgs

    TagKey string
    The key-name for the LF-Tag.
    TagValues List<string>
    A list of possible values for the LF-Tag
    TagKey string
    The key-name for the LF-Tag.
    TagValues []string
    A list of possible values for the LF-Tag
    tagKey String
    The key-name for the LF-Tag.
    tagValues List<String>
    A list of possible values for the LF-Tag
    tagKey string
    The key-name for the LF-Tag.
    tagValues string[]
    A list of possible values for the LF-Tag
    tag_key str
    The key-name for the LF-Tag.
    tag_values Sequence[str]
    A list of possible values for the LF-Tag
    tagKey String
    The key-name for the LF-Tag.
    tagValues List<String>
    A list of possible values for the LF-Tag

    Import

    Using pulumi import, import Lake Formation LF Tag Expression using the name,catalog_id. For example:

    $ pulumi import aws:lakeformation/lfTagExpression:LfTagExpression example example-tag-expression,123456789012
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v7.8.0 published on Tuesday, Oct 7, 2025 by Pulumi
      AI Agentic Workflows: Register now