CfnDBSnapshotProps
- class aws_cdk.aws_rds.CfnDBSnapshotProps(*, db_instance_identifier, db_snapshot_identifier, tags=None)
Bases:
objectProperties for defining a
CfnDBSnapshot.- Parameters:
db_instance_identifier (
str) – The identifier of the DB instance that you want to create the snapshot of.db_snapshot_identifier (
str) – The identifier for the DB snapshot. Must contain from 1 to 255 letters, numbers, or hyphens. First character must be a letter. Can’t end with a hyphen or contain two consecutive hyphens.tags (
Optional[Sequence[Union[CfnTag,Dict[str,Any]]]]) – The tags to be assigned to the DB snapshot.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsnapshot.html
- ExampleMetadata:
fixture=_generated
Example:
from aws_cdk import CfnTag # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_rds as rds cfn_db_snapshot_props = rds.CfnDBSnapshotProps( db_instance_identifier="dbInstanceIdentifier", db_snapshot_identifier="dbSnapshotIdentifier", # the properties below are optional tags=[CfnTag( key="key", value="value" )] )
Attributes
- db_instance_identifier
The identifier of the DB instance that you want to create the snapshot of.
- db_snapshot_identifier
The identifier for the DB snapshot.
Must contain from 1 to 255 letters, numbers, or hyphens. First character must be a letter. Can’t end with a hyphen or contain two consecutive hyphens.
- tags
The tags to be assigned to the DB snapshot.