Class CfnDBSnapshot
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.rds.CfnDBSnapshot
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IDBSnapshotRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:17.313Z")
@Stability(Stable)
public class CfnDBSnapshot
extends CfnResource
implements IInspectable, IDBSnapshotRef, ITaggableV2
Creates a snapshot of a DB instance.
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.rds.*;
CfnDBSnapshot cfnDBSnapshot = CfnDBSnapshot.Builder.create(this, "MyCfnDBSnapshot")
.dbInstanceIdentifier("dbInstanceIdentifier")
.dbSnapshotIdentifier("dbSnapshotIdentifier")
// the properties below are optional
.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.rds.IDBSnapshotRef
IDBSnapshotRef.Jsii$Default, IDBSnapshotRef.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
ConstructorsModifierConstructorDescriptionprotectedCfnDBSnapshot(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDBSnapshot(software.amazon.jsii.JsiiObjectRef objRef) CfnDBSnapshot(software.constructs.Construct scope, String id, CfnDBSnapshotProps props) Create a newAWS::RDS::DBSnapshot. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForDBSnapshot(IDBSnapshotRef resource) The allocated storage size in gibibytes (GiB).The name of the Availability Zone the DB instance was located in at the time of the DB snapshot.The identifier for the source DB instance, which is unique to an AWS Region.The Amazon Resource Name (ARN) for the DB snapshot.Indicates whether the DB snapshot is encrypted.The name of the database engine.The version of the database engine.Indicates whether mapping of AWS IAM accounts to database accounts is enabled.The time when the DB instance was created, in UTC.The Provisioned IOPS value of the DB instance at the time of the snapshot.If Encrypted is true, the AWS KMS key identifier for the encrypted DB snapshot.License model information for the restored DB instance.The master username for the DB snapshot.The option group name for the DB snapshot.The time of the CreateDBSnapshot operation in UTC.The port that the database engine was listening on at the time of the snapshot.The time when the snapshot was taken, in UTC.The type of the DB snapshot.The status of this DB snapshot.The storage throughput for the DB snapshot.The storage type associated with the DB snapshot.The VPC ID associated with the DB snapshot.Tag Manager which manages the tags for this resource.The identifier of the DB instance that you want to create the snapshot of.The identifier for the DB snapshot.A reference to a DBSnapshot resource.getTags()The tags to be assigned to the DB snapshot.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnDBSnapshot.renderProperties(Map<String, Object> props) voidsetDbInstanceIdentifier(String value) The identifier of the DB instance that you want to create the snapshot of.voidsetDbSnapshotIdentifier(String value) The identifier for the DB snapshot.voidThe tags to be assigned to the DB snapshot.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods 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
getNode, withMethods 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
-
CfnDBSnapshot
protected CfnDBSnapshot(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDBSnapshot
protected CfnDBSnapshot(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDBSnapshot
@Stability(Stable) public CfnDBSnapshot(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnDBSnapshotProps props) Create a newAWS::RDS::DBSnapshot.- 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
-
arnForDBSnapshot
- Parameters:
resource- This parameter is required.
-
isCfnDBSnapshot
Checks whether the given object is a CfnDBSnapshot.- 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.
-
getAttrAllocatedStorage
The allocated storage size in gibibytes (GiB). -
getAttrAvailabilityZone
The name of the Availability Zone the DB instance was located in at the time of the DB snapshot. -
getAttrDbiResourceId
The identifier for the source DB instance, which is unique to an AWS Region. -
getAttrDbSnapshotArn
The Amazon Resource Name (ARN) for the DB snapshot. -
getAttrEncrypted
Indicates whether the DB snapshot is encrypted. -
getAttrEngine
The name of the database engine. -
getAttrEngineVersion
The version of the database engine. -
getAttrIamDatabaseAuthenticationEnabled
Indicates whether mapping of AWS IAM accounts to database accounts is enabled. -
getAttrInstanceCreateTime
The time when the DB instance was created, in UTC. -
getAttrIops
The Provisioned IOPS value of the DB instance at the time of the snapshot. -
getAttrKmsKeyId
If Encrypted is true, the AWS KMS key identifier for the encrypted DB snapshot. -
getAttrLicenseModel
License model information for the restored DB instance. -
getAttrMasterUsername
The master username for the DB snapshot. -
getAttrOptionGroupName
The option group name for the DB snapshot. -
getAttrOriginalSnapshotCreateTime
The time of the CreateDBSnapshot operation in UTC.Doesn't change when the snapshot is copied.
-
getAttrPort
The port that the database engine was listening on at the time of the snapshot. -
getAttrSnapshotCreateTime
The time when the snapshot was taken, in UTC. -
getAttrSnapshotType
The type of the DB snapshot. -
getAttrStatus
The status of this DB snapshot. -
getAttrStorageThroughput
The storage throughput for the DB snapshot. -
getAttrStorageType
The storage type associated with the DB snapshot. -
getAttrVpcId
The VPC ID associated with the DB snapshot. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getDbSnapshotRef
A reference to a DBSnapshot resource.- Specified by:
getDbSnapshotRefin interfaceIDBSnapshotRef
-
getDbInstanceIdentifier
The identifier of the DB instance that you want to create the snapshot of. -
setDbInstanceIdentifier
The identifier of the DB instance that you want to create the snapshot of. -
getDbSnapshotIdentifier
The identifier for the DB snapshot. -
setDbSnapshotIdentifier
The identifier for the DB snapshot. -
getTags
The tags to be assigned to the DB snapshot. -
setTags
The tags to be assigned to the DB snapshot.
-