Class CfnDatabaseSnapshot
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.lightsail.CfnDatabaseSnapshot
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IDatabaseSnapshotRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.126.0 (build 206d44b)",
date="2026-02-09T14:39:13.863Z")
@Stability(Stable)
public class CfnDatabaseSnapshot
extends CfnResource
implements IInspectable, IDatabaseSnapshotRef, ITaggableV2
Resource Type definition for AWS::Lightsail::DatabaseSnapshot.
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.lightsail.*;
CfnDatabaseSnapshot cfnDatabaseSnapshot = CfnDatabaseSnapshot.Builder.create(this, "MyCfnDatabaseSnapshot")
.relationalDatabaseName("relationalDatabaseName")
.relationalDatabaseSnapshotName("relationalDatabaseSnapshotName")
// the properties below are optional
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnDatabaseSnapshot.static interfaceThe Region name and Availability Zone where the database snapshot is located.Nested 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.lightsail.IDatabaseSnapshotRef
IDatabaseSnapshotRef.Jsii$Default, IDatabaseSnapshotRef.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.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnDatabaseSnapshot(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDatabaseSnapshot(software.amazon.jsii.JsiiObjectRef objRef) CfnDatabaseSnapshot(software.constructs.Construct scope, String id, CfnDatabaseSnapshotProps props) Create a newAWS::Lightsail::DatabaseSnapshot. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForDatabaseSnapshot(IDatabaseSnapshotRef resource) The Amazon Resource Name (ARN) of the database snapshot.The timestamp when the database snapshot was created.The software of the database snapshot (for example, MySQL).The database engine version for the database snapshot (for example, 5.7.23).The Amazon Resource Name (ARN) of the database from which the database snapshot was created.The blueprint ID of the database from which the database snapshot was created.The bundle ID of the database from which the database snapshot was created.The name of the source database from which the database snapshot was created.The Region name and Availability Zone where the database snapshot is located.The name of the database snapshot.The Lightsail resource type.The size of the disk in GB (for example, 32) for the database snapshot.The state of the database snapshot.The support code for the database snapshot.Tag Manager which manages the tags for this resource.A reference to a DatabaseSnapshot resource.The name of the database on which to base your new snapshot.The name for your new database snapshot.getTags()An array of key-value pairs to apply to this resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnDatabaseSnapshot.renderProperties(Map<String, Object> props) voidsetRelationalDatabaseName(String value) The name of the database on which to base your new snapshot.voidThe name for your new database snapshot.voidAn array of key-value pairs to apply to this resource.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
-
CfnDatabaseSnapshot
protected CfnDatabaseSnapshot(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDatabaseSnapshot
protected CfnDatabaseSnapshot(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDatabaseSnapshot
@Stability(Stable) public CfnDatabaseSnapshot(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnDatabaseSnapshotProps props) Create a newAWS::Lightsail::DatabaseSnapshot.- 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. This parameter is required.
-
-
Method Details
-
arnForDatabaseSnapshot
@Stability(Stable) @NotNull public static String arnForDatabaseSnapshot(@NotNull IDatabaseSnapshotRef resource) - Parameters:
resource- This parameter is required.
-
isCfnDatabaseSnapshot
Checks whether the given object is a CfnDatabaseSnapshot.- 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
The Amazon Resource Name (ARN) of the database snapshot. -
getAttrCreatedAt
The timestamp when the database snapshot was created. -
getAttrEngine
The software of the database snapshot (for example, MySQL). -
getAttrEngineVersion
The database engine version for the database snapshot (for example, 5.7.23). -
getAttrFromRelationalDatabaseArn
The Amazon Resource Name (ARN) of the database from which the database snapshot was created. -
getAttrFromRelationalDatabaseBlueprintId
The blueprint ID of the database from which the database snapshot was created.A blueprint describes the major engine version of a database.
-
getAttrFromRelationalDatabaseBundleId
The bundle ID of the database from which the database snapshot was created. -
getAttrFromRelationalDatabaseName
The name of the source database from which the database snapshot was created. -
getAttrLocation
The Region name and Availability Zone where the database snapshot is located. -
getAttrName
The name of the database snapshot. -
getAttrResourceType
The Lightsail resource type. -
getAttrSizeInGb
The size of the disk in GB (for example, 32) for the database snapshot. -
getAttrState
The state of the database snapshot. -
getAttrSupportCode
The support code for the database snapshot.Include this code in your email to support when you have questions about a database snapshot in Lightsail. This code enables our support team to look up your Lightsail information more easily.
-
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getDatabaseSnapshotRef
A reference to a DatabaseSnapshot resource.- Specified by:
getDatabaseSnapshotRefin interfaceIDatabaseSnapshotRef
-
getRelationalDatabaseName
The name of the database on which to base your new snapshot. -
setRelationalDatabaseName
The name of the database on which to base your new snapshot. -
getRelationalDatabaseSnapshotName
The name for your new database snapshot. -
setRelationalDatabaseSnapshotName
The name for your new database snapshot. -
getTags
An array of key-value pairs to apply to this resource. -
setTags
An array of key-value pairs to apply to this resource.
-