interface CfnDatabaseProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Glue.CfnDatabaseProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsglue#CfnDatabaseProps |
Java | software.amazon.awscdk.services.glue.CfnDatabaseProps |
Python | aws_cdk.aws_glue.CfnDatabaseProps |
TypeScript | aws-cdk-lib » aws_glue » CfnDatabaseProps |
Properties for defining a CfnDatabase
.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-database.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';
declare const parameters: any;
const cfnDatabaseProps: glue.CfnDatabaseProps = {
catalogId: 'catalogId',
databaseInput: {
createTableDefaultPermissions: [{
permissions: ['permissions'],
principal: {
dataLakePrincipalIdentifier: 'dataLakePrincipalIdentifier',
},
}],
description: 'description',
federatedDatabase: {
connectionName: 'connectionName',
identifier: 'identifier',
},
locationUri: 'locationUri',
name: 'name',
parameters: parameters,
targetDatabase: {
catalogId: 'catalogId',
databaseName: 'databaseName',
region: 'region',
},
},
// the properties below are optional
databaseName: 'databaseName',
};
Properties
Name | Type | Description |
---|---|---|
catalog | string | The AWS account ID for the account in which to create the catalog object. |
database | IResolvable | Database | The metadata for the database. |
database | string | The name of the catalog database. |
catalogId
Type:
string
The AWS account ID for the account in which to create the catalog object.
To specify the account ID, you can use the
Ref
intrinsic function with theAWS::AccountId
pseudo parameter. For example:!Ref AWS::AccountId
databaseInput
Type:
IResolvable
|
Database
The metadata for the database.
databaseName?
Type:
string
(optional)
The name of the catalog database.