We recommend new projects start with resources from the AWS provider.
aws-native.athena.DataCatalog
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource schema for AWS::Athena::DataCatalog
Example Usage
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() => 
{
    var myAthenaDataCatalog = new AwsNative.Athena.DataCatalog("myAthenaDataCatalog", new()
    {
        Name = "MyCustomDataCatalog",
        Type = AwsNative.Athena.DataCatalogType.Hive,
        Description = "Custom Hive Catalog Description",
        Tags = new[]
        {
            new AwsNative.Inputs.TagArgs
            {
                Key = "key1",
                Value = "value1",
            },
            new AwsNative.Inputs.TagArgs
            {
                Key = "key2",
                Value = "value2",
            },
        },
        Parameters = 
        {
            { "metadata-function", "arn:aws:lambda:us-west-2:111122223333:function:lambdaname" },
        },
    });
});
package main
import (
	awsnative "github.com/pulumi/pulumi-aws-native/sdk/go/aws"
	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/athena"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := athena.NewDataCatalog(ctx, "myAthenaDataCatalog", &athena.DataCatalogArgs{
			Name:        pulumi.String("MyCustomDataCatalog"),
			Type:        athena.DataCatalogTypeHive,
			Description: pulumi.String("Custom Hive Catalog Description"),
			Tags: aws.TagArray{
				&aws.TagArgs{
					Key:   pulumi.String("key1"),
					Value: pulumi.String("value1"),
				},
				&aws.TagArgs{
					Key:   pulumi.String("key2"),
					Value: pulumi.String("value2"),
				},
			},
			Parameters: pulumi.StringMap{
				"metadata-function": pulumi.String("arn:aws:lambda:us-west-2:111122223333:function:lambdaname"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const myAthenaDataCatalog = new aws_native.athena.DataCatalog("myAthenaDataCatalog", {
    name: "MyCustomDataCatalog",
    type: aws_native.athena.DataCatalogType.Hive,
    description: "Custom Hive Catalog Description",
    tags: [
        {
            key: "key1",
            value: "value1",
        },
        {
            key: "key2",
            value: "value2",
        },
    ],
    parameters: {
        "metadata-function": "arn:aws:lambda:us-west-2:111122223333:function:lambdaname",
    },
});
import pulumi
import pulumi_aws_native as aws_native
my_athena_data_catalog = aws_native.athena.DataCatalog("myAthenaDataCatalog",
    name="MyCustomDataCatalog",
    type=aws_native.athena.DataCatalogType.HIVE,
    description="Custom Hive Catalog Description",
    tags=[
        {
            "key": "key1",
            "value": "value1",
        },
        {
            "key": "key2",
            "value": "value2",
        },
    ],
    parameters={
        "metadata-function": "arn:aws:lambda:us-west-2:111122223333:function:lambdaname",
    })
Coming soon!
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() => 
{
    var myAthenaDataCatalog = new AwsNative.Athena.DataCatalog("myAthenaDataCatalog", new()
    {
        Name = "MyCustomDataCatalog",
        Type = AwsNative.Athena.DataCatalogType.Hive,
        Description = "Custom Hive Catalog Description",
        Tags = new[]
        {
            new AwsNative.Inputs.TagArgs
            {
                Key = "key1",
                Value = "value1",
            },
            new AwsNative.Inputs.TagArgs
            {
                Key = "key2",
                Value = "value2",
            },
        },
        Parameters = 
        {
            { "metadata-function", "arn:aws:lambda:us-west-2:111122223333:function:lambdaname" },
        },
    });
});
package main
import (
	awsnative "github.com/pulumi/pulumi-aws-native/sdk/go/aws"
	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/athena"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := athena.NewDataCatalog(ctx, "myAthenaDataCatalog", &athena.DataCatalogArgs{
			Name:        pulumi.String("MyCustomDataCatalog"),
			Type:        athena.DataCatalogTypeHive,
			Description: pulumi.String("Custom Hive Catalog Description"),
			Tags: aws.TagArray{
				&aws.TagArgs{
					Key:   pulumi.String("key1"),
					Value: pulumi.String("value1"),
				},
				&aws.TagArgs{
					Key:   pulumi.String("key2"),
					Value: pulumi.String("value2"),
				},
			},
			Parameters: pulumi.StringMap{
				"metadata-function": pulumi.String("arn:aws:lambda:us-west-2:111122223333:function:lambdaname"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const myAthenaDataCatalog = new aws_native.athena.DataCatalog("myAthenaDataCatalog", {
    name: "MyCustomDataCatalog",
    type: aws_native.athena.DataCatalogType.Hive,
    description: "Custom Hive Catalog Description",
    tags: [
        {
            key: "key1",
            value: "value1",
        },
        {
            key: "key2",
            value: "value2",
        },
    ],
    parameters: {
        "metadata-function": "arn:aws:lambda:us-west-2:111122223333:function:lambdaname",
    },
});
import pulumi
import pulumi_aws_native as aws_native
my_athena_data_catalog = aws_native.athena.DataCatalog("myAthenaDataCatalog",
    name="MyCustomDataCatalog",
    type=aws_native.athena.DataCatalogType.HIVE,
    description="Custom Hive Catalog Description",
    tags=[
        {
            "key": "key1",
            "value": "value1",
        },
        {
            "key": "key2",
            "value": "value2",
        },
    ],
    parameters={
        "metadata-function": "arn:aws:lambda:us-west-2:111122223333:function:lambdaname",
    })
Coming soon!
Create DataCatalog Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DataCatalog(name: string, args: DataCatalogArgs, opts?: CustomResourceOptions);@overload
def DataCatalog(resource_name: str,
                args: DataCatalogArgs,
                opts: Optional[ResourceOptions] = None)
@overload
def DataCatalog(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                type: Optional[DataCatalogType] = None,
                connection_type: Optional[str] = None,
                description: Optional[str] = None,
                error: Optional[str] = None,
                name: Optional[str] = None,
                parameters: Optional[Mapping[str, str]] = None,
                status: Optional[DataCatalogStatus] = None,
                tags: Optional[Sequence[_root_inputs.TagArgs]] = None)func NewDataCatalog(ctx *Context, name string, args DataCatalogArgs, opts ...ResourceOption) (*DataCatalog, error)public DataCatalog(string name, DataCatalogArgs args, CustomResourceOptions? opts = null)
public DataCatalog(String name, DataCatalogArgs args)
public DataCatalog(String name, DataCatalogArgs args, CustomResourceOptions options)
type: aws-native:athena:DataCatalog
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 DataCatalogArgs
- 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 DataCatalogArgs
- 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 DataCatalogArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DataCatalogArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DataCatalogArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DataCatalog 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 DataCatalog resource accepts the following input properties:
- Type
Pulumi.Aws Native. Athena. Data Catalog Type 
- The type of data catalog to create: LAMBDA for a federated catalog, GLUE for AWS Glue Catalog, or HIVE for an external hive metastore. FEDERATED is a federated catalog for which Athena creates the connection and the Lambda function for you based on the parameters that you pass.
- ConnectionType string
- The type of connection for a FEDERATED data catalog
- Description string
- A description of the data catalog to be created.
- Error string
- Text of the error that occurred during data catalog creation or deletion.
- Name string
- The name of the data catalog to create. The catalog name must be unique for the AWS account and can use a maximum of 128 alphanumeric, underscore, at sign, or hyphen characters.
- Parameters Dictionary<string, string>
- Specifies the Lambda function or functions to use for creating the data catalog. This is a mapping whose values depend on the catalog type.
- Status
Pulumi.Aws Native. Athena. Data Catalog Status 
- The status of the creation or deletion of the data catalog. LAMBDA, GLUE, and HIVE data catalog types are created synchronously. Their status is either CREATE_COMPLETE or CREATE_FAILED. The FEDERATED data catalog type is created asynchronously.
- 
List<Pulumi.Aws Native. Inputs. Tag> 
- A list of comma separated tags to add to the data catalog that is created.
- Type
DataCatalog Type 
- The type of data catalog to create: LAMBDA for a federated catalog, GLUE for AWS Glue Catalog, or HIVE for an external hive metastore. FEDERATED is a federated catalog for which Athena creates the connection and the Lambda function for you based on the parameters that you pass.
- ConnectionType string
- The type of connection for a FEDERATED data catalog
- Description string
- A description of the data catalog to be created.
- Error string
- Text of the error that occurred during data catalog creation or deletion.
- Name string
- The name of the data catalog to create. The catalog name must be unique for the AWS account and can use a maximum of 128 alphanumeric, underscore, at sign, or hyphen characters.
- Parameters map[string]string
- Specifies the Lambda function or functions to use for creating the data catalog. This is a mapping whose values depend on the catalog type.
- Status
DataCatalog Status 
- The status of the creation or deletion of the data catalog. LAMBDA, GLUE, and HIVE data catalog types are created synchronously. Their status is either CREATE_COMPLETE or CREATE_FAILED. The FEDERATED data catalog type is created asynchronously.
- 
TagArgs 
- A list of comma separated tags to add to the data catalog that is created.
- type
DataCatalog Type 
- The type of data catalog to create: LAMBDA for a federated catalog, GLUE for AWS Glue Catalog, or HIVE for an external hive metastore. FEDERATED is a federated catalog for which Athena creates the connection and the Lambda function for you based on the parameters that you pass.
- connectionType String
- The type of connection for a FEDERATED data catalog
- description String
- A description of the data catalog to be created.
- error String
- Text of the error that occurred during data catalog creation or deletion.
- name String
- The name of the data catalog to create. The catalog name must be unique for the AWS account and can use a maximum of 128 alphanumeric, underscore, at sign, or hyphen characters.
- parameters Map<String,String>
- Specifies the Lambda function or functions to use for creating the data catalog. This is a mapping whose values depend on the catalog type.
- status
DataCatalog Status 
- The status of the creation or deletion of the data catalog. LAMBDA, GLUE, and HIVE data catalog types are created synchronously. Their status is either CREATE_COMPLETE or CREATE_FAILED. The FEDERATED data catalog type is created asynchronously.
- List<Tag>
- A list of comma separated tags to add to the data catalog that is created.
- type
DataCatalog Type 
- The type of data catalog to create: LAMBDA for a federated catalog, GLUE for AWS Glue Catalog, or HIVE for an external hive metastore. FEDERATED is a federated catalog for which Athena creates the connection and the Lambda function for you based on the parameters that you pass.
- connectionType string
- The type of connection for a FEDERATED data catalog
- description string
- A description of the data catalog to be created.
- error string
- Text of the error that occurred during data catalog creation or deletion.
- name string
- The name of the data catalog to create. The catalog name must be unique for the AWS account and can use a maximum of 128 alphanumeric, underscore, at sign, or hyphen characters.
- parameters {[key: string]: string}
- Specifies the Lambda function or functions to use for creating the data catalog. This is a mapping whose values depend on the catalog type.
- status
DataCatalog Status 
- The status of the creation or deletion of the data catalog. LAMBDA, GLUE, and HIVE data catalog types are created synchronously. Their status is either CREATE_COMPLETE or CREATE_FAILED. The FEDERATED data catalog type is created asynchronously.
- Tag[]
- A list of comma separated tags to add to the data catalog that is created.
- type
DataCatalog Type 
- The type of data catalog to create: LAMBDA for a federated catalog, GLUE for AWS Glue Catalog, or HIVE for an external hive metastore. FEDERATED is a federated catalog for which Athena creates the connection and the Lambda function for you based on the parameters that you pass.
- connection_type str
- The type of connection for a FEDERATED data catalog
- description str
- A description of the data catalog to be created.
- error str
- Text of the error that occurred during data catalog creation or deletion.
- name str
- The name of the data catalog to create. The catalog name must be unique for the AWS account and can use a maximum of 128 alphanumeric, underscore, at sign, or hyphen characters.
- parameters Mapping[str, str]
- Specifies the Lambda function or functions to use for creating the data catalog. This is a mapping whose values depend on the catalog type.
- status
DataCatalog Status 
- The status of the creation or deletion of the data catalog. LAMBDA, GLUE, and HIVE data catalog types are created synchronously. Their status is either CREATE_COMPLETE or CREATE_FAILED. The FEDERATED data catalog type is created asynchronously.
- 
Sequence[TagArgs] 
- A list of comma separated tags to add to the data catalog that is created.
- type "LAMBDA" | "GLUE" | "HIVE" | "FEDERATED"
- The type of data catalog to create: LAMBDA for a federated catalog, GLUE for AWS Glue Catalog, or HIVE for an external hive metastore. FEDERATED is a federated catalog for which Athena creates the connection and the Lambda function for you based on the parameters that you pass.
- connectionType String
- The type of connection for a FEDERATED data catalog
- description String
- A description of the data catalog to be created.
- error String
- Text of the error that occurred during data catalog creation or deletion.
- name String
- The name of the data catalog to create. The catalog name must be unique for the AWS account and can use a maximum of 128 alphanumeric, underscore, at sign, or hyphen characters.
- parameters Map<String>
- Specifies the Lambda function or functions to use for creating the data catalog. This is a mapping whose values depend on the catalog type.
- status "CREATE_IN_PROGRESS" | "CREATE_COMPLETE" | "CREATE_FAILED" | "CREATE_FAILED_CLEANUP_IN_PROGRESS" | "CREATE_FAILED_CLEANUP_COMPLETE" | "CREATE_FAILED_CLEANUP_FAILED" | "DELETE_IN_PROGRESS" | "DELETE_COMPLETE" | "DELETE_FAILED"
- The status of the creation or deletion of the data catalog. LAMBDA, GLUE, and HIVE data catalog types are created synchronously. Their status is either CREATE_COMPLETE or CREATE_FAILED. The FEDERATED data catalog type is created asynchronously.
- List<Property Map>
- A list of comma separated tags to add to the data catalog that is created.
Outputs
All input properties are implicitly available as output properties. Additionally, the DataCatalog 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.
Supporting Types
DataCatalogStatus, DataCatalogStatusArgs      
- CreateIn Progress 
- CREATE_IN_PROGRESS
- CreateComplete 
- CREATE_COMPLETE
- CreateFailed 
- CREATE_FAILED
- CreateFailed Cleanup In Progress 
- CREATE_FAILED_CLEANUP_IN_PROGRESS
- CreateFailed Cleanup Complete 
- CREATE_FAILED_CLEANUP_COMPLETE
- CreateFailed Cleanup Failed 
- CREATE_FAILED_CLEANUP_FAILED
- DeleteIn Progress 
- DELETE_IN_PROGRESS
- DeleteComplete 
- DELETE_COMPLETE
- DeleteFailed 
- DELETE_FAILED
- DataCatalog Status Create In Progress 
- CREATE_IN_PROGRESS
- DataCatalog Status Create Complete 
- CREATE_COMPLETE
- DataCatalog Status Create Failed 
- CREATE_FAILED
- DataCatalog Status Create Failed Cleanup In Progress 
- CREATE_FAILED_CLEANUP_IN_PROGRESS
- DataCatalog Status Create Failed Cleanup Complete 
- CREATE_FAILED_CLEANUP_COMPLETE
- DataCatalog Status Create Failed Cleanup Failed 
- CREATE_FAILED_CLEANUP_FAILED
- DataCatalog Status Delete In Progress 
- DELETE_IN_PROGRESS
- DataCatalog Status Delete Complete 
- DELETE_COMPLETE
- DataCatalog Status Delete Failed 
- DELETE_FAILED
- CreateIn Progress 
- CREATE_IN_PROGRESS
- CreateComplete 
- CREATE_COMPLETE
- CreateFailed 
- CREATE_FAILED
- CreateFailed Cleanup In Progress 
- CREATE_FAILED_CLEANUP_IN_PROGRESS
- CreateFailed Cleanup Complete 
- CREATE_FAILED_CLEANUP_COMPLETE
- CreateFailed Cleanup Failed 
- CREATE_FAILED_CLEANUP_FAILED
- DeleteIn Progress 
- DELETE_IN_PROGRESS
- DeleteComplete 
- DELETE_COMPLETE
- DeleteFailed 
- DELETE_FAILED
- CreateIn Progress 
- CREATE_IN_PROGRESS
- CreateComplete 
- CREATE_COMPLETE
- CreateFailed 
- CREATE_FAILED
- CreateFailed Cleanup In Progress 
- CREATE_FAILED_CLEANUP_IN_PROGRESS
- CreateFailed Cleanup Complete 
- CREATE_FAILED_CLEANUP_COMPLETE
- CreateFailed Cleanup Failed 
- CREATE_FAILED_CLEANUP_FAILED
- DeleteIn Progress 
- DELETE_IN_PROGRESS
- DeleteComplete 
- DELETE_COMPLETE
- DeleteFailed 
- DELETE_FAILED
- CREATE_IN_PROGRESS
- CREATE_IN_PROGRESS
- CREATE_COMPLETE
- CREATE_COMPLETE
- CREATE_FAILED
- CREATE_FAILED
- CREATE_FAILED_CLEANUP_IN_PROGRESS
- CREATE_FAILED_CLEANUP_IN_PROGRESS
- CREATE_FAILED_CLEANUP_COMPLETE
- CREATE_FAILED_CLEANUP_COMPLETE
- CREATE_FAILED_CLEANUP_FAILED
- CREATE_FAILED_CLEANUP_FAILED
- DELETE_IN_PROGRESS
- DELETE_IN_PROGRESS
- DELETE_COMPLETE
- DELETE_COMPLETE
- DELETE_FAILED
- DELETE_FAILED
- "CREATE_IN_PROGRESS"
- CREATE_IN_PROGRESS
- "CREATE_COMPLETE"
- CREATE_COMPLETE
- "CREATE_FAILED"
- CREATE_FAILED
- "CREATE_FAILED_CLEANUP_IN_PROGRESS"
- CREATE_FAILED_CLEANUP_IN_PROGRESS
- "CREATE_FAILED_CLEANUP_COMPLETE"
- CREATE_FAILED_CLEANUP_COMPLETE
- "CREATE_FAILED_CLEANUP_FAILED"
- CREATE_FAILED_CLEANUP_FAILED
- "DELETE_IN_PROGRESS"
- DELETE_IN_PROGRESS
- "DELETE_COMPLETE"
- DELETE_COMPLETE
- "DELETE_FAILED"
- DELETE_FAILED
DataCatalogType, DataCatalogTypeArgs      
- Lambda
- LAMBDA
- Glue
- GLUE
- Hive
- HIVE
- Federated
- FEDERATED
- DataCatalog Type Lambda 
- LAMBDA
- DataCatalog Type Glue 
- GLUE
- DataCatalog Type Hive 
- HIVE
- DataCatalog Type Federated 
- FEDERATED
- Lambda
- LAMBDA
- Glue
- GLUE
- Hive
- HIVE
- Federated
- FEDERATED
- Lambda
- LAMBDA
- Glue
- GLUE
- Hive
- HIVE
- Federated
- FEDERATED
- LAMBDA_
- LAMBDA
- GLUE
- GLUE
- HIVE
- HIVE
- FEDERATED
- FEDERATED
- "LAMBDA"
- LAMBDA
- "GLUE"
- GLUE
- "HIVE"
- HIVE
- "FEDERATED"
- FEDERATED
Tag, TagArgs  
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.