@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.582Z") @Stability(value=Stable) public class CfnDatabase extends CfnResource implements IInspectable
Creates a new Timestream database. If the AWS KMS key is not specified, the database will be encrypted with a Timestream managed AWS KMS key located in your account. Refer to AWS managed AWS KMS keys for more info. Service quotas apply . See code sample for details.
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.timestream.*;
CfnDatabase cfnDatabase = CfnDatabase.Builder.create(this, "MyCfnDatabase")
.databaseName("databaseName")
.kmsKeyId("kmsKeyId")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnDatabase.Builder
A fluent builder for
CfnDatabase. |
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)
Create a new `AWS::Timestream::Database`.
|
|
CfnDatabase(software.constructs.Construct scope,
String id,
CfnDatabaseProps props)
Create a new `AWS::Timestream::Database`.
|
protected |
CfnDatabase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnDatabase(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrArn()
The `arn` of the database.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDatabaseName()
The name of the Timestream database.
|
String |
getKmsKeyId()
The identifier of the AWS KMS key used to encrypt the data stored in the database.
|
TagManager |
getTags()
The tags to add to the database.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDatabaseName(String value)
The name of the Timestream database.
|
void |
setKmsKeyId(String value)
The identifier of the AWS KMS key used to encrypt the data stored in the database.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, 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,
@Nullable
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.@Stability(value=Stable)
public CfnDatabase(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. 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 getAttrArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @Nullable public String getDatabaseName()
Length Constraints : Minimum length of 3 bytes. Maximum length of 256 bytes.
@Stability(value=Stable)
public void setDatabaseName(@Nullable
String value)
Length Constraints : Minimum length of 3 bytes. Maximum length of 256 bytes.
@Stability(value=Stable) @Nullable public String getKmsKeyId()
@Stability(value=Stable)
public void setKmsKeyId(@Nullable
String value)
Copyright © 2022. All rights reserved.