Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.3.0 published on Tuesday, Aug 16, 2022 by Pulumi

Metastore

This resource provides the Metastore resource in Oracle Cloud Infrastructure Data Catalog service.

Creates a new metastore.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testMetastore = new Oci.DataCatalog.Metastore("testMetastore", new Oci.DataCatalog.MetastoreArgs
        {
            CompartmentId = @var.Compartment_id,
            DefaultExternalTableLocation = @var.Metastore_default_external_table_location,
            DefaultManagedTableLocation = @var.Metastore_default_managed_table_location,
            DefinedTags = 
            {
                { "foo-namespace.bar-key", "value" },
            },
            DisplayName = @var.Metastore_display_name,
            FreeformTags = 
            {
                { "bar-key", "value" },
            },
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/DataCatalog"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := DataCatalog.NewMetastore(ctx, "testMetastore", &DataCatalog.MetastoreArgs{
			CompartmentId:                pulumi.Any(_var.Compartment_id),
			DefaultExternalTableLocation: pulumi.Any(_var.Metastore_default_external_table_location),
			DefaultManagedTableLocation:  pulumi.Any(_var.Metastore_default_managed_table_location),
			DefinedTags: pulumi.AnyMap{
				"foo-namespace.bar-key": pulumi.Any("value"),
			},
			DisplayName: pulumi.Any(_var.Metastore_display_name),
			FreeformTags: pulumi.AnyMap{
				"bar-key": pulumi.Any("value"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_metastore = oci.data_catalog.Metastore("testMetastore",
    compartment_id=var["compartment_id"],
    default_external_table_location=var["metastore_default_external_table_location"],
    default_managed_table_location=var["metastore_default_managed_table_location"],
    defined_tags={
        "foo-namespace.bar-key": "value",
    },
    display_name=var["metastore_display_name"],
    freeform_tags={
        "bar-key": "value",
    })
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testMetastore = new oci.datacatalog.Metastore("testMetastore", {
    compartmentId: _var.compartment_id,
    defaultExternalTableLocation: _var.metastore_default_external_table_location,
    defaultManagedTableLocation: _var.metastore_default_managed_table_location,
    definedTags: {
        "foo-namespace.bar-key": "value",
    },
    displayName: _var.metastore_display_name,
    freeformTags: {
        "bar-key": "value",
    },
});

Coming soon!

Create a Metastore Resource

new Metastore(name: string, args: MetastoreArgs, opts?: CustomResourceOptions);
@overload
def Metastore(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              compartment_id: Optional[str] = None,
              default_external_table_location: Optional[str] = None,
              default_managed_table_location: Optional[str] = None,
              defined_tags: Optional[Mapping[str, Any]] = None,
              display_name: Optional[str] = None,
              freeform_tags: Optional[Mapping[str, Any]] = None)
@overload
def Metastore(resource_name: str,
              args: MetastoreArgs,
              opts: Optional[ResourceOptions] = None)
func NewMetastore(ctx *Context, name string, args MetastoreArgs, opts ...ResourceOption) (*Metastore, error)
public Metastore(string name, MetastoreArgs args, CustomResourceOptions? opts = null)
public Metastore(String name, MetastoreArgs args)
public Metastore(String name, MetastoreArgs args, CustomResourceOptions options)
type: oci:DataCatalog:Metastore
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

Metastore 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 Metastore resource accepts the following input properties:

CompartmentId string

(Updatable) OCID of the compartment which holds the metastore.

DefaultExternalTableLocation string

Location under which external tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

DefaultManagedTableLocation string

Location under which managed tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

DefinedTags Dictionary<string, object>

(Updatable) Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"foo-namespace.bar-key": "value"}

DisplayName string

(Updatable) Mutable name of the metastore.

FreeformTags Dictionary<string, object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

CompartmentId string

(Updatable) OCID of the compartment which holds the metastore.

DefaultExternalTableLocation string

Location under which external tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

DefaultManagedTableLocation string

Location under which managed tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

DefinedTags map[string]interface{}

(Updatable) Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"foo-namespace.bar-key": "value"}

DisplayName string

(Updatable) Mutable name of the metastore.

FreeformTags map[string]interface{}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

compartmentId String

(Updatable) OCID of the compartment which holds the metastore.

defaultExternalTableLocation String

Location under which external tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

defaultManagedTableLocation String

Location under which managed tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

definedTags Map<String,Object>

(Updatable) Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"foo-namespace.bar-key": "value"}

displayName String

(Updatable) Mutable name of the metastore.

freeformTags Map<String,Object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

compartmentId string

(Updatable) OCID of the compartment which holds the metastore.

defaultExternalTableLocation string

Location under which external tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

defaultManagedTableLocation string

Location under which managed tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

definedTags {[key: string]: any}

(Updatable) Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"foo-namespace.bar-key": "value"}

displayName string

(Updatable) Mutable name of the metastore.

freeformTags {[key: string]: any}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

compartment_id str

(Updatable) OCID of the compartment which holds the metastore.

default_external_table_location str

Location under which external tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

default_managed_table_location str

Location under which managed tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

defined_tags Mapping[str, Any]

(Updatable) Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"foo-namespace.bar-key": "value"}

display_name str

(Updatable) Mutable name of the metastore.

freeform_tags Mapping[str, Any]

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

compartmentId String

(Updatable) OCID of the compartment which holds the metastore.

defaultExternalTableLocation String

Location under which external tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

defaultManagedTableLocation String

Location under which managed tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

definedTags Map<Any>

(Updatable) Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"foo-namespace.bar-key": "value"}

displayName String

(Updatable) Mutable name of the metastore.

freeformTags Map<Any>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

LifecycleDetails string

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

State string

The current state of the metastore.

TimeCreated string

Time at which the metastore was created. An RFC3339 formatted datetime string.

TimeUpdated string

Time at which the metastore was last modified. An RFC3339 formatted datetime string.

Id string

The provider-assigned unique ID for this managed resource.

LifecycleDetails string

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

State string

The current state of the metastore.

TimeCreated string

Time at which the metastore was created. An RFC3339 formatted datetime string.

TimeUpdated string

Time at which the metastore was last modified. An RFC3339 formatted datetime string.

id String

The provider-assigned unique ID for this managed resource.

lifecycleDetails String

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

state String

The current state of the metastore.

timeCreated String

Time at which the metastore was created. An RFC3339 formatted datetime string.

timeUpdated String

Time at which the metastore was last modified. An RFC3339 formatted datetime string.

id string

The provider-assigned unique ID for this managed resource.

lifecycleDetails string

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

state string

The current state of the metastore.

timeCreated string

Time at which the metastore was created. An RFC3339 formatted datetime string.

timeUpdated string

Time at which the metastore was last modified. An RFC3339 formatted datetime string.

id str

The provider-assigned unique ID for this managed resource.

lifecycle_details str

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

state str

The current state of the metastore.

time_created str

Time at which the metastore was created. An RFC3339 formatted datetime string.

time_updated str

Time at which the metastore was last modified. An RFC3339 formatted datetime string.

id String

The provider-assigned unique ID for this managed resource.

lifecycleDetails String

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

state String

The current state of the metastore.

timeCreated String

Time at which the metastore was created. An RFC3339 formatted datetime string.

timeUpdated String

Time at which the metastore was last modified. An RFC3339 formatted datetime string.

Look up an Existing Metastore Resource

Get an existing Metastore 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?: MetastoreState, opts?: CustomResourceOptions): Metastore
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        compartment_id: Optional[str] = None,
        default_external_table_location: Optional[str] = None,
        default_managed_table_location: Optional[str] = None,
        defined_tags: Optional[Mapping[str, Any]] = None,
        display_name: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, Any]] = None,
        lifecycle_details: Optional[str] = None,
        state: Optional[str] = None,
        time_created: Optional[str] = None,
        time_updated: Optional[str] = None) -> Metastore
func GetMetastore(ctx *Context, name string, id IDInput, state *MetastoreState, opts ...ResourceOption) (*Metastore, error)
public static Metastore Get(string name, Input<string> id, MetastoreState? state, CustomResourceOptions? opts = null)
public static Metastore get(String name, Output<String> id, MetastoreState 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.
The following state arguments are supported:
CompartmentId string

(Updatable) OCID of the compartment which holds the metastore.

DefaultExternalTableLocation string

Location under which external tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

DefaultManagedTableLocation string

Location under which managed tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

DefinedTags Dictionary<string, object>

(Updatable) Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"foo-namespace.bar-key": "value"}

DisplayName string

(Updatable) Mutable name of the metastore.

FreeformTags Dictionary<string, object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

LifecycleDetails string

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

State string

The current state of the metastore.

TimeCreated string

Time at which the metastore was created. An RFC3339 formatted datetime string.

TimeUpdated string

Time at which the metastore was last modified. An RFC3339 formatted datetime string.

CompartmentId string

(Updatable) OCID of the compartment which holds the metastore.

DefaultExternalTableLocation string

Location under which external tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

DefaultManagedTableLocation string

Location under which managed tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

DefinedTags map[string]interface{}

(Updatable) Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"foo-namespace.bar-key": "value"}

DisplayName string

(Updatable) Mutable name of the metastore.

FreeformTags map[string]interface{}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

LifecycleDetails string

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

State string

The current state of the metastore.

TimeCreated string

Time at which the metastore was created. An RFC3339 formatted datetime string.

TimeUpdated string

Time at which the metastore was last modified. An RFC3339 formatted datetime string.

compartmentId String

(Updatable) OCID of the compartment which holds the metastore.

defaultExternalTableLocation String

Location under which external tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

defaultManagedTableLocation String

Location under which managed tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

definedTags Map<String,Object>

(Updatable) Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"foo-namespace.bar-key": "value"}

displayName String

(Updatable) Mutable name of the metastore.

freeformTags Map<String,Object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

lifecycleDetails String

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

state String

The current state of the metastore.

timeCreated String

Time at which the metastore was created. An RFC3339 formatted datetime string.

timeUpdated String

Time at which the metastore was last modified. An RFC3339 formatted datetime string.

compartmentId string

(Updatable) OCID of the compartment which holds the metastore.

defaultExternalTableLocation string

Location under which external tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

defaultManagedTableLocation string

Location under which managed tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

definedTags {[key: string]: any}

(Updatable) Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"foo-namespace.bar-key": "value"}

displayName string

(Updatable) Mutable name of the metastore.

freeformTags {[key: string]: any}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

lifecycleDetails string

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

state string

The current state of the metastore.

timeCreated string

Time at which the metastore was created. An RFC3339 formatted datetime string.

timeUpdated string

Time at which the metastore was last modified. An RFC3339 formatted datetime string.

compartment_id str

(Updatable) OCID of the compartment which holds the metastore.

default_external_table_location str

Location under which external tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

default_managed_table_location str

Location under which managed tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

defined_tags Mapping[str, Any]

(Updatable) Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"foo-namespace.bar-key": "value"}

display_name str

(Updatable) Mutable name of the metastore.

freeform_tags Mapping[str, Any]

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

lifecycle_details str

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

state str

The current state of the metastore.

time_created str

Time at which the metastore was created. An RFC3339 formatted datetime string.

time_updated str

Time at which the metastore was last modified. An RFC3339 formatted datetime string.

compartmentId String

(Updatable) OCID of the compartment which holds the metastore.

defaultExternalTableLocation String

Location under which external tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

defaultManagedTableLocation String

Location under which managed tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

definedTags Map<Any>

(Updatable) Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"foo-namespace.bar-key": "value"}

displayName String

(Updatable) Mutable name of the metastore.

freeformTags Map<Any>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

lifecycleDetails String

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

state String

The current state of the metastore.

timeCreated String

Time at which the metastore was created. An RFC3339 formatted datetime string.

timeUpdated String

Time at which the metastore was last modified. An RFC3339 formatted datetime string.

Import

Metastores can be imported using the id, e.g.

 $ pulumi import oci:DataCatalog/metastore:Metastore test_metastore "id"

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.