com.pulumi.aws.glue.CatalogDatabase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.glue;
import com.pulumi.aws.Utilities;
import com.pulumi.aws.glue.CatalogDatabaseArgs;
import com.pulumi.aws.glue.inputs.CatalogDatabaseState;
import com.pulumi.aws.glue.outputs.CatalogDatabaseCreateTableDefaultPermission;
import com.pulumi.aws.glue.outputs.CatalogDatabaseFederatedDatabase;
import com.pulumi.aws.glue.outputs.CatalogDatabaseTargetDatabase;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Provides a Glue Catalog Database Resource. You can refer to the [Glue Developer Guide](http://docs.aws.amazon.com/glue/latest/dg/populate-data-catalog.html) for a full explanation of the Glue Data Catalog functionality
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.glue.CatalogDatabase;
* import com.pulumi.aws.glue.CatalogDatabaseArgs;
* 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 CatalogDatabase("example", CatalogDatabaseArgs.builder()
* .name("MyCatalogDatabase")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Create Table Default Permissions
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.glue.CatalogDatabase;
* import com.pulumi.aws.glue.CatalogDatabaseArgs;
* import com.pulumi.aws.glue.inputs.CatalogDatabaseCreateTableDefaultPermissionArgs;
* import com.pulumi.aws.glue.inputs.CatalogDatabaseCreateTableDefaultPermissionPrincipalArgs;
* 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 CatalogDatabase("example", CatalogDatabaseArgs.builder()
* .name("MyCatalogDatabase")
* .createTableDefaultPermissions(CatalogDatabaseCreateTableDefaultPermissionArgs.builder()
* .permissions("SELECT")
* .principal(CatalogDatabaseCreateTableDefaultPermissionPrincipalArgs.builder()
* .dataLakePrincipalIdentifier("IAM_ALLOWED_PRINCIPALS")
* .build())
* .build())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* Using `pulumi import`, import Glue Catalog Databases using the `catalog_id:name`. If you have not set a Catalog ID specify the AWS Account ID that the database is in. For example:
*
* ```sh
* $ pulumi import aws:glue/catalogDatabase:CatalogDatabase database 123456789012:my_database
* ```
*
*/
@ResourceType(type="aws:glue/catalogDatabase:CatalogDatabase")
public class CatalogDatabase extends com.pulumi.resources.CustomResource {
/**
* ARN of the Glue Catalog Database.
*
*/
@Export(name="arn", refs={String.class}, tree="[0]")
private Output arn;
/**
* @return ARN of the Glue Catalog Database.
*
*/
public Output arn() {
return this.arn;
}
/**
* ID of the Glue Catalog to create the database in. If omitted, this defaults to the AWS Account ID.
*
*/
@Export(name="catalogId", refs={String.class}, tree="[0]")
private Output catalogId;
/**
* @return ID of the Glue Catalog to create the database in. If omitted, this defaults to the AWS Account ID.
*
*/
public Output catalogId() {
return this.catalogId;
}
/**
* Creates a set of default permissions on the table for principals. See `create_table_default_permission` below.
*
*/
@Export(name="createTableDefaultPermissions", refs={List.class,CatalogDatabaseCreateTableDefaultPermission.class}, tree="[0,1]")
private Output> createTableDefaultPermissions;
/**
* @return Creates a set of default permissions on the table for principals. See `create_table_default_permission` below.
*
*/
public Output> createTableDefaultPermissions() {
return this.createTableDefaultPermissions;
}
/**
* Description of the database.
*
*/
@Export(name="description", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> description;
/**
* @return Description of the database.
*
*/
public Output> description() {
return Codegen.optional(this.description);
}
/**
* Configuration block that references an entity outside the AWS Glue Data Catalog. See `federated_database` below.
*
*/
@Export(name="federatedDatabase", refs={CatalogDatabaseFederatedDatabase.class}, tree="[0]")
private Output* @Nullable */ CatalogDatabaseFederatedDatabase> federatedDatabase;
/**
* @return Configuration block that references an entity outside the AWS Glue Data Catalog. See `federated_database` below.
*
*/
public Output> federatedDatabase() {
return Codegen.optional(this.federatedDatabase);
}
/**
* Location of the database (for example, an HDFS path).
*
*/
@Export(name="locationUri", refs={String.class}, tree="[0]")
private Output locationUri;
/**
* @return Location of the database (for example, an HDFS path).
*
*/
public Output locationUri() {
return this.locationUri;
}
/**
* Name of the database. The acceptable characters are lowercase letters, numbers, and the underscore character.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Name of the database. The acceptable characters are lowercase letters, numbers, and the underscore character.
*
*/
public Output name() {
return this.name;
}
/**
* List of key-value pairs that define parameters and properties of the database.
*
*/
@Export(name="parameters", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> parameters;
/**
* @return List of key-value pairs that define parameters and properties of the database.
*
*/
public Output>> parameters() {
return Codegen.optional(this.parameters);
}
/**
* Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
@Export(name="tagsAll", refs={Map.class,String.class}, tree="[0,1,1]")
private Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy