CatalogDatabase

Provides a Glue Catalog Database Resource. You can refer to the Glue Developer Guide for a full explanation of the Glue Data Catalog functionality

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var awsGlueCatalogDatabase = new Aws.Glue.CatalogDatabase("awsGlueCatalogDatabase", new Aws.Glue.CatalogDatabaseArgs
        {
            Name = "MyCatalogDatabase",
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/glue"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := glue.NewCatalogDatabase(ctx, "awsGlueCatalogDatabase", &glue.CatalogDatabaseArgs{
            Name: pulumi.String("MyCatalogDatabase"),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

aws_glue_catalog_database = aws.glue.CatalogDatabase("awsGlueCatalogDatabase", name="MyCatalogDatabase")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const awsGlueCatalogDatabase = new aws.glue.CatalogDatabase("aws_glue_catalog_database", {
    name: "MyCatalogDatabase",
});

Create a CatalogDatabase Resource

def CatalogDatabase(resource_name, opts=None, catalog_id=None, description=None, location_uri=None, name=None, parameters=None, __props__=None);
public CatalogDatabase(string name, CatalogDatabaseArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args CatalogDatabaseArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args CatalogDatabaseArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args CatalogDatabaseArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

CatalogDatabase Resource Properties

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

Inputs

The CatalogDatabase resource accepts the following input properties:

CatalogId string

ID of the Glue Catalog to create the database in. If omitted, this defaults to the AWS Account ID.

Description string

Description of the database.

LocationUri string

The location of the database (for example, an HDFS path).

Name string

The name of the database.

Parameters Dictionary<string, string>

A list of key-value pairs that define parameters and properties of the database.

CatalogId string

ID of the Glue Catalog to create the database in. If omitted, this defaults to the AWS Account ID.

Description string

Description of the database.

LocationUri string

The location of the database (for example, an HDFS path).

Name string

The name of the database.

Parameters map[string]string

A list of key-value pairs that define parameters and properties of the database.

catalogId string

ID of the Glue Catalog to create the database in. If omitted, this defaults to the AWS Account ID.

description string

Description of the database.

locationUri string

The location of the database (for example, an HDFS path).

name string

The name of the database.

parameters {[key: string]: string}

A list of key-value pairs that define parameters and properties of the database.

catalog_id str

ID of the Glue Catalog to create the database in. If omitted, this defaults to the AWS Account ID.

description str

Description of the database.

location_uri str

The location of the database (for example, an HDFS path).

name str

The name of the database.

parameters Dict[str, str]

A list of key-value pairs that define parameters and properties of the database.

Outputs

All input properties are implicitly available as output properties. Additionally, the CatalogDatabase resource produces the following output properties:

Arn string

The ARN of the Glue Catalog Database.

Id string
The provider-assigned unique ID for this managed resource.
Arn string

The ARN of the Glue Catalog Database.

Id string
The provider-assigned unique ID for this managed resource.
arn string

The ARN of the Glue Catalog Database.

id string
The provider-assigned unique ID for this managed resource.
arn str

The ARN of the Glue Catalog Database.

id str
The provider-assigned unique ID for this managed resource.

Look up an Existing CatalogDatabase Resource

Get an existing CatalogDatabase 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?: CatalogDatabaseState, opts?: CustomResourceOptions): CatalogDatabase
static get(resource_name, id, opts=None, arn=None, catalog_id=None, description=None, location_uri=None, name=None, parameters=None, __props__=None);
func GetCatalogDatabase(ctx *Context, name string, id IDInput, state *CatalogDatabaseState, opts ...ResourceOption) (*CatalogDatabase, error)
public static CatalogDatabase Get(string name, Input<string> id, CatalogDatabaseState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

Arn string

The ARN of the Glue Catalog Database.

CatalogId string

ID of the Glue Catalog to create the database in. If omitted, this defaults to the AWS Account ID.

Description string

Description of the database.

LocationUri string

The location of the database (for example, an HDFS path).

Name string

The name of the database.

Parameters Dictionary<string, string>

A list of key-value pairs that define parameters and properties of the database.

Arn string

The ARN of the Glue Catalog Database.

CatalogId string

ID of the Glue Catalog to create the database in. If omitted, this defaults to the AWS Account ID.

Description string

Description of the database.

LocationUri string

The location of the database (for example, an HDFS path).

Name string

The name of the database.

Parameters map[string]string

A list of key-value pairs that define parameters and properties of the database.

arn string

The ARN of the Glue Catalog Database.

catalogId string

ID of the Glue Catalog to create the database in. If omitted, this defaults to the AWS Account ID.

description string

Description of the database.

locationUri string

The location of the database (for example, an HDFS path).

name string

The name of the database.

parameters {[key: string]: string}

A list of key-value pairs that define parameters and properties of the database.

arn str

The ARN of the Glue Catalog Database.

catalog_id str

ID of the Glue Catalog to create the database in. If omitted, this defaults to the AWS Account ID.

description str

Description of the database.

location_uri str

The location of the database (for example, an HDFS path).

name str

The name of the database.

parameters Dict[str, str]

A list of key-value pairs that define parameters and properties of the database.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.