Class CfnDatabase
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.timestream.CfnDatabase
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IDatabaseRef,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-12-01T16:02:31.184Z")
@Stability(Stable)
public class CfnDatabase
extends CfnResource
implements IInspectable, IDatabaseRef, ITaggable
Creates a new Timestream database.
If the AWS key is not specified, the database will be encrypted with a Timestream managed AWS key located in your account. Refer to AWS managed AWS 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();
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.timestream.IDatabaseRef
IDatabaseRef.Jsii$Default, IDatabaseRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnDatabase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDatabase(software.amazon.jsii.JsiiObjectRef objRef) CfnDatabase(software.constructs.Construct scope, String id) Create a newAWS::Timestream::Database.CfnDatabase(software.constructs.Construct scope, String id, CfnDatabaseProps props) Create a newAWS::Timestream::Database. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForDatabase(IDatabaseRef resource) static IDatabaseReffromDatabaseArn(software.constructs.Construct scope, String id, String arn) Creates a new IDatabaseRef from an ARN.static IDatabaseReffromDatabaseName(software.constructs.Construct scope, String id, String databaseName) Creates a new IDatabaseRef from a databaseName.Thearnof the database.The name of the Timestream database.A reference to a Database resource.The identifier of the AWS key used to encrypt the data stored in the database.getTags()Tag Manager which manages the tags for this resource.The tags to add to the database.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnDatabase.renderProperties(Map<String, Object> props) voidsetDatabaseName(String value) The name of the Timestream database.voidsetKmsKeyId(String value) The identifier of the AWS key used to encrypt the data stored in the database.voidsetTagsRaw(List<CfnTag> value) The tags to add to the database.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnDatabase
protected CfnDatabase(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDatabase
protected CfnDatabase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDatabase
@Stability(Stable) public CfnDatabase(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnDatabaseProps props) Create a newAWS::Timestream::Database.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties.
-
CfnDatabase
@Stability(Stable) public CfnDatabase(@NotNull software.constructs.Construct scope, @NotNull String id) Create a newAWS::Timestream::Database.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.
-
-
Method Details
-
arnForDatabase
- Parameters:
resource- This parameter is required.
-
fromDatabaseArn
@Stability(Stable) @NotNull public static IDatabaseRef fromDatabaseArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IDatabaseRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromDatabaseName
@Stability(Stable) @NotNull public static IDatabaseRef fromDatabaseName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String databaseName) Creates a new IDatabaseRef from a databaseName.- Parameters:
scope- This parameter is required.id- This parameter is required.databaseName- This parameter is required.
-
isCfnDatabase
Checks whether the given object is a CfnDatabase.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
Thearnof the database. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getDatabaseRef
A reference to a Database resource.- Specified by:
getDatabaseRefin interfaceIDatabaseRef
-
getTags
Tag Manager which manages the tags for this resource. -
getDatabaseName
The name of the Timestream database. -
setDatabaseName
The name of the Timestream database. -
getKmsKeyId
The identifier of the AWS key used to encrypt the data stored in the database. -
setKmsKeyId
The identifier of the AWS key used to encrypt the data stored in the database. -
getTagsRaw
The tags to add to the database. -
setTagsRaw
The tags to add to the database.
-