Package com.pulumi.aws.lakeformation
Class ResourceLfTags
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.lakeformation.ResourceLfTags
-
public class ResourceLfTags extends com.pulumi.resources.CustomResourceManages an attachment between one or more existing LF-tags and an existing Lake Formation resource. ## Example Usage ### Database Example
### Multiple Tags Examplepackage 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.ResourceLfTags; import com.pulumi.aws.lakeformation.ResourceLfTagsArgs; import com.pulumi.aws.lakeformation.inputs.ResourceLfTagsDatabaseArgs; import com.pulumi.aws.lakeformation.inputs.ResourceLfTagsLfTagArgs; import java.util.ArrayList; import java.util.Arrays; 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("right") .values( "abbey", "village", "luffield", "woodcote", "copse", "chapel", "stowe", "club") .build()); var exampleResourceLfTags = new ResourceLfTags("exampleResourceLfTags", ResourceLfTagsArgs.builder() .database(ResourceLfTagsDatabaseArgs.builder() .name(exampleAwsGlueCatalogDatabase.name()) .build()) .lfTags(ResourceLfTagsLfTagArgs.builder() .key(example.key()) .value("stowe") .build()) .build()); } }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.ResourceLfTags; import com.pulumi.aws.lakeformation.ResourceLfTagsArgs; import com.pulumi.aws.lakeformation.inputs.ResourceLfTagsDatabaseArgs; import com.pulumi.aws.lakeformation.inputs.ResourceLfTagsLfTagArgs; import java.util.ArrayList; import java.util.Arrays; 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("right") .values( "abbey", "village", "luffield", "woodcote", "copse", "chapel", "stowe", "club") .build()); var example2 = new LfTag("example2", LfTagArgs.builder() .key("left") .values( "farm", "theloop", "aintree", "brooklands", "maggotts", "becketts", "vale") .build()); var exampleResourceLfTags = new ResourceLfTags("exampleResourceLfTags", ResourceLfTagsArgs.builder() .database(ResourceLfTagsDatabaseArgs.builder() .name(exampleAwsGlueCatalogDatabase.name()) .build()) .lfTags( ResourceLfTagsLfTagArgs.builder() .key("right") .value("luffield") .build(), ResourceLfTagsLfTagArgs.builder() .key("left") .value("aintree") .build()) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description ResourceLfTags(java.lang.String name)ResourceLfTags(java.lang.String name, ResourceLfTagsArgs args)ResourceLfTags(java.lang.String name, ResourceLfTagsArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>catalogId()com.pulumi.core.Output<ResourceLfTagsDatabase>database()static ResourceLfTagsget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, ResourceLfTagsState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.util.List<ResourceLfTagsLfTag>>lfTags()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<ResourceLfTagsTable>table()com.pulumi.core.Output<ResourceLfTagsTableWithColumns>tableWithColumns()
-
-
-
Constructor Detail
-
ResourceLfTags
public ResourceLfTags(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
ResourceLfTags
public ResourceLfTags(java.lang.String name, ResourceLfTagsArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
ResourceLfTags
public ResourceLfTags(java.lang.String name, ResourceLfTagsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
catalogId
public com.pulumi.core.Output<java.lang.String> catalogId()
- Returns:
- Identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.
-
database
public com.pulumi.core.Output<ResourceLfTagsDatabase> database()
- Returns:
- Configuration block for a database resource. See below.
-
lfTags
public com.pulumi.core.Output<java.util.List<ResourceLfTagsLfTag>> lfTags()
- Returns:
- Set of LF-tags to attach to the resource. See below. Exactly one of the following is required:
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
table
public com.pulumi.core.Output<ResourceLfTagsTable> table()
- Returns:
- Configuration block for a table resource. See below.
-
tableWithColumns
public com.pulumi.core.Output<ResourceLfTagsTableWithColumns> tableWithColumns()
- Returns:
- Configuration block for a table with columns resource. See below. The following arguments are optional:
-
get
public static ResourceLfTags get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable ResourceLfTagsState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-