Class CfnDatabaseProps
Properties for defining a CfnDatabase
.
Inheritance
System.Object
CfnDatabaseProps
Implements
Namespace: Amazon.CDK.AWS.Glue
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnDatabaseProps : Object, ICfnDatabaseProps
Syntax (vb)
Public Class CfnDatabaseProps
Inherits Object
Implements ICfnDatabaseProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-database.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Glue;
var parameters;
var cfnDatabaseProps = new CfnDatabaseProps {
CatalogId = "catalogId",
DatabaseInput = new DatabaseInputProperty {
CreateTableDefaultPermissions = new [] { new PrincipalPrivilegesProperty {
Permissions = new [] { "permissions" },
Principal = new DataLakePrincipalProperty {
DataLakePrincipalIdentifier = "dataLakePrincipalIdentifier"
}
} },
Description = "description",
FederatedDatabase = new FederatedDatabaseProperty {
ConnectionName = "connectionName",
Identifier = "identifier"
},
LocationUri = "locationUri",
Name = "name",
Parameters = parameters,
TargetDatabase = new DatabaseIdentifierProperty {
CatalogId = "catalogId",
DatabaseName = "databaseName",
Region = "region"
}
},
// the properties below are optional
DatabaseName = "databaseName"
};
Synopsis
Constructors
CfnDatabaseProps() |
Properties
CatalogId | The AWS account ID for the account in which to create the catalog object. |
DatabaseInput | The metadata for the database. |
DatabaseName | The name of the catalog database. |
Constructors
CfnDatabaseProps()
public CfnDatabaseProps()
Properties
CatalogId
The AWS account ID for the account in which to create the catalog object.
public string CatalogId { get; set; }
Property Value
System.String
Remarks
To specify the account ID, you can use the Ref
intrinsic function with the AWS::AccountId
pseudo parameter. For example: !Ref AWS::AccountId
DatabaseInput
The metadata for the database.
public object DatabaseInput { get; set; }
Property Value
System.Object
Remarks
DatabaseName
The name of the catalog database.
public string DatabaseName { get; set; }
Property Value
System.String