@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:45.513Z") public class CfnDatabase extends CfnResource implements IInspectable
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 .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.glue.*; Object parameters; CfnDatabase cfnDatabase = CfnDatabase.Builder.create(this, "MyCfnDatabase") .catalogId("catalogId") .databaseInput(DatabaseInputProperty.builder() .createTableDefaultPermissions(List.of(PrincipalPrivilegesProperty.builder() .permissions(List.of("permissions")) .principal(DataLakePrincipalProperty.builder() .dataLakePrincipalIdentifier("dataLakePrincipalIdentifier") .build()) .build())) .description("description") .locationUri("locationUri") .name("name") .parameters(parameters) .targetDatabase(DatabaseIdentifierProperty.builder() .catalogId("catalogId") .databaseName("databaseName") .build()) .build()) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnDatabase.Builder
A fluent builder for
CfnDatabase . |
static interface |
CfnDatabase.DatabaseIdentifierProperty
A structure that describes a target database for resource linking.
|
static interface |
CfnDatabase.DatabaseInputProperty
The structure used to create or update a database.
|
static interface |
CfnDatabase.DataLakePrincipalProperty
The AWS Lake Formation principal.
|
static interface |
CfnDatabase.PrincipalPrivilegesProperty
the permissions granted to a principal.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnDatabase(Construct scope,
java.lang.String id,
CfnDatabaseProps props)
Create a new `AWS::Glue::Database`.
|
protected |
CfnDatabase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnDatabase(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCatalogId()
The AWS account ID for the account in which to create the catalog object.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.Object |
getDatabaseInput()
The metadata for the database.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setCatalogId(java.lang.String value)
The AWS account ID for the account in which to create the catalog object.
|
void |
setDatabaseInput(CfnDatabase.DatabaseInputProperty value)
The metadata for the database.
|
void |
setDatabaseInput(IResolvable value)
The metadata for the database.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnDatabase(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnDatabase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnDatabase(Construct scope, java.lang.String id, CfnDatabaseProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getCatalogId()
To specify the account ID, you can use the
Ref
intrinsic function with theAWS::AccountId
pseudo parameter. For example:!Ref AWS::AccountId
public void setCatalogId(java.lang.String value)
To specify the account ID, you can use the
Ref
intrinsic function with theAWS::AccountId
pseudo parameter. For example:!Ref AWS::AccountId
public java.lang.Object getDatabaseInput()
public void setDatabaseInput(IResolvable value)
public void setDatabaseInput(CfnDatabase.DatabaseInputProperty value)