Class CfnDatabase
A CloudFormation AWS::Glue::Database
.
Inherited Members
Namespace: Amazon.CDK.AWS.Glue
Assembly: Amazon.CDK.AWS.Glue.dll
Syntax (csharp)
public class CfnDatabase : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnDatabase
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
The AWS::Glue::Database
resource specifies a logical grouping of tables in AWS Glue . For more information, see Defining a Database in Your Data Catalog and Database Structure in the AWS Glue Developer Guide .
CloudformationResource: AWS::Glue::Database
Link: 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 cfnDatabase = new CfnDatabase(this, "MyCfnDatabase", 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"
}
}
});
Synopsis
Constructors
CfnDatabase(Construct, String, ICfnDatabaseProps) | Create a new |
CfnDatabase(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnDatabase(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
CatalogId | The AWS account ID for the account in which to create the catalog object. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
DatabaseInput | The metadata for the database. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnDatabase(Construct, String, ICfnDatabaseProps)
Create a new AWS::Glue::Database
.
public CfnDatabase(Construct scope, string id, ICfnDatabaseProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnDatabaseProps
- resource properties.
CfnDatabase(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnDatabase(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnDatabase(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnDatabase(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
CatalogId
The AWS account ID for the account in which to create the catalog object.
public virtual 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
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
DatabaseInput
The metadata for the database.
public virtual object DatabaseInput { get; set; }
Property Value
System.Object
Remarks
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
- tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>