@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-22T10:27:17.787Z") @Stability(value=Stable) public class CfnDatabase extends CfnResource implements IInspectable
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
Example:
|
static interface |
CfnDatabase.DatabaseInputProperty
Example:
|
static interface |
CfnDatabase.DataLakePrincipalProperty
Example:
|
static interface |
CfnDatabase.PrincipalPrivilegesProperty
Example:
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnDatabase(software.constructs.Construct scope,
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 |
|---|---|
String |
getCatalogId()
`AWS::Glue::Database.CatalogId`.
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getDatabaseInput()
`AWS::Glue::Database.DatabaseInput`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setCatalogId(String value)
`AWS::Glue::Database.CatalogId`.
|
void |
setDatabaseInput(CfnDatabase.DatabaseInputProperty value)
`AWS::Glue::Database.DatabaseInput`.
|
void |
setDatabaseInput(IResolvable value)
`AWS::Glue::Database.DatabaseInput`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnDatabase(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnDatabase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnDatabase(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
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.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getCatalogId()
@Stability(value=Stable)
public void setCatalogId(@NotNull
String value)
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public Object getDatabaseInput()
@Stability(value=Stable)
public void setDatabaseInput(@NotNull
CfnDatabase.DatabaseInputProperty value)
@Stability(value=Stable)
public void setDatabaseInput(@NotNull
IResolvable value)
Copyright © 2021. All rights reserved.