@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:40.227Z") 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 . |
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)
Create a new `AWS::Timestream::Database`.
|
|
CfnDatabase(Construct scope,
java.lang.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 |
---|---|
java.lang.String |
getAttrArn()
The `arn` of the database.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getDatabaseName()
The name of the Timestream database.
|
java.lang.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 java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setDatabaseName(java.lang.String value)
The name of the Timestream database.
|
void |
setKmsKeyId(java.lang.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, 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.public CfnDatabase(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. 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.public java.lang.String getAttrArn()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
public java.lang.String getDatabaseName()
Length Constraints : Minimum length of 3 bytes. Maximum length of 256 bytes.
public void setDatabaseName(java.lang.String value)
Length Constraints : Minimum length of 3 bytes. Maximum length of 256 bytes.
public java.lang.String getKmsKeyId()
public void setKmsKeyId(java.lang.String value)