We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 14, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 14, 2026 by Pulumi
Creates a snapshot of a DB instance.
Create DbSnapshot Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DbSnapshot(name: string, args: DbSnapshotArgs, opts?: CustomResourceOptions);@overload
def DbSnapshot(resource_name: str,
args: DbSnapshotArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DbSnapshot(resource_name: str,
opts: Optional[ResourceOptions] = None,
db_instance_identifier: Optional[str] = None,
db_snapshot_identifier: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)func NewDbSnapshot(ctx *Context, name string, args DbSnapshotArgs, opts ...ResourceOption) (*DbSnapshot, error)public DbSnapshot(string name, DbSnapshotArgs args, CustomResourceOptions? opts = null)
public DbSnapshot(String name, DbSnapshotArgs args)
public DbSnapshot(String name, DbSnapshotArgs args, CustomResourceOptions options)
type: aws-native:rds:DbSnapshot
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_rds_db_snapshot" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args DbSnapshotArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DbSnapshotArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DbSnapshotArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DbSnapshotArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DbSnapshotArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DbSnapshot Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DbSnapshot resource accepts the following input properties:
- Db
Instance stringIdentifier - The identifier of the DB instance that you want to create the snapshot of.
- Db
Snapshot stringIdentifier - 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.
-
List<Pulumi.
Aws Native. Inputs. Tag> - The tags to be assigned to the DB snapshot.
- Db
Instance stringIdentifier - The identifier of the DB instance that you want to create the snapshot of.
- Db
Snapshot stringIdentifier - 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.
-
Tag
Args - The tags to be assigned to the DB snapshot.
- db_
instance_ stringidentifier - The identifier of the DB instance that you want to create the snapshot of.
- db_
snapshot_ stringidentifier - 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.
- list(object)
- The tags to be assigned to the DB snapshot.
- db
Instance StringIdentifier - The identifier of the DB instance that you want to create the snapshot of.
- db
Snapshot StringIdentifier - 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.
- List<Tag>
- The tags to be assigned to the DB snapshot.
- db
Instance stringIdentifier - The identifier of the DB instance that you want to create the snapshot of.
- db
Snapshot stringIdentifier - 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.
- Tag[]
- The tags to be assigned to the DB snapshot.
- db_
instance_ stridentifier - The identifier of the DB instance that you want to create the snapshot of.
- db_
snapshot_ stridentifier - 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.
-
Sequence[Tag
Args] - The tags to be assigned to the DB snapshot.
- db
Instance StringIdentifier - The identifier of the DB instance that you want to create the snapshot of.
- db
Snapshot StringIdentifier - 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.
- List<Property Map>
- The tags to be assigned to the DB snapshot.
Outputs
All input properties are implicitly available as output properties. Additionally, the DbSnapshot resource produces the following output properties:
- Allocated
Storage int - The allocated storage size in gibibytes (GiB).
- Availability
Zone string - The name of the Availability Zone the DB instance was located in at the time of the DB snapshot.
- Db
Snapshot stringArn - The Amazon Resource Name (ARN) for the DB snapshot.
- Dbi
Resource stringId - The identifier for the source DB instance, which is unique to an AWS Region.
- Encrypted bool
- Indicates whether the DB snapshot is encrypted.
- Engine string
- The name of the database engine.
- Engine
Version string - The version of the database engine.
- Iam
Database boolAuthentication Enabled - Indicates whether mapping of AWS IAM accounts to database accounts is enabled.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Create stringTime - The time when the DB instance was created, in UTC.
- Iops int
- The Provisioned IOPS value of the DB instance at the time of the snapshot.
- Kms
Key stringId - If Encrypted is true, the AWS KMS key identifier for the encrypted DB snapshot.
- License
Model string - License model information for the restored DB instance.
- Master
Username string - The master username for the DB snapshot.
- Option
Group stringName - The option group name for the DB snapshot.
- Original
Snapshot stringCreate Time - The time of the CreateDBSnapshot operation in UTC. Doesn't change when the snapshot is copied.
- Port int
- The port that the database engine was listening on at the time of the snapshot.
- Snapshot
Create stringTime - The time when the snapshot was taken, in UTC.
- Snapshot
Type string - The type of the DB snapshot.
- Status string
- The status of this DB snapshot.
- Storage
Throughput int - The storage throughput for the DB snapshot.
- Storage
Type string - The storage type associated with the DB snapshot.
- Vpc
Id string - The VPC ID associated with the DB snapshot.
- Allocated
Storage int - The allocated storage size in gibibytes (GiB).
- Availability
Zone string - The name of the Availability Zone the DB instance was located in at the time of the DB snapshot.
- Db
Snapshot stringArn - The Amazon Resource Name (ARN) for the DB snapshot.
- Dbi
Resource stringId - The identifier for the source DB instance, which is unique to an AWS Region.
- Encrypted bool
- Indicates whether the DB snapshot is encrypted.
- Engine string
- The name of the database engine.
- Engine
Version string - The version of the database engine.
- Iam
Database boolAuthentication Enabled - Indicates whether mapping of AWS IAM accounts to database accounts is enabled.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Create stringTime - The time when the DB instance was created, in UTC.
- Iops int
- The Provisioned IOPS value of the DB instance at the time of the snapshot.
- Kms
Key stringId - If Encrypted is true, the AWS KMS key identifier for the encrypted DB snapshot.
- License
Model string - License model information for the restored DB instance.
- Master
Username string - The master username for the DB snapshot.
- Option
Group stringName - The option group name for the DB snapshot.
- Original
Snapshot stringCreate Time - The time of the CreateDBSnapshot operation in UTC. Doesn't change when the snapshot is copied.
- Port int
- The port that the database engine was listening on at the time of the snapshot.
- Snapshot
Create stringTime - The time when the snapshot was taken, in UTC.
- Snapshot
Type string - The type of the DB snapshot.
- Status string
- The status of this DB snapshot.
- Storage
Throughput int - The storage throughput for the DB snapshot.
- Storage
Type string - The storage type associated with the DB snapshot.
- Vpc
Id string - The VPC ID associated with the DB snapshot.
- allocated_
storage number - The allocated storage size in gibibytes (GiB).
- availability_
zone string - The name of the Availability Zone the DB instance was located in at the time of the DB snapshot.
- db_
snapshot_ stringarn - The Amazon Resource Name (ARN) for the DB snapshot.
- dbi_
resource_ stringid - The identifier for the source DB instance, which is unique to an AWS Region.
- encrypted bool
- Indicates whether the DB snapshot is encrypted.
- engine string
- The name of the database engine.
- engine_
version string - The version of the database engine.
- iam_
database_ boolauthentication_ enabled - Indicates whether mapping of AWS IAM accounts to database accounts is enabled.
- id string
- The provider-assigned unique ID for this managed resource.
- instance_
create_ stringtime - The time when the DB instance was created, in UTC.
- iops number
- The Provisioned IOPS value of the DB instance at the time of the snapshot.
- kms_
key_ stringid - If Encrypted is true, the AWS KMS key identifier for the encrypted DB snapshot.
- license_
model string - License model information for the restored DB instance.
- master_
username string - The master username for the DB snapshot.
- option_
group_ stringname - The option group name for the DB snapshot.
- original_
snapshot_ stringcreate_ time - The time of the CreateDBSnapshot operation in UTC. Doesn't change when the snapshot is copied.
- port number
- The port that the database engine was listening on at the time of the snapshot.
- snapshot_
create_ stringtime - The time when the snapshot was taken, in UTC.
- snapshot_
type string - The type of the DB snapshot.
- status string
- The status of this DB snapshot.
- storage_
throughput number - The storage throughput for the DB snapshot.
- storage_
type string - The storage type associated with the DB snapshot.
- vpc_
id string - The VPC ID associated with the DB snapshot.
- allocated
Storage Integer - The allocated storage size in gibibytes (GiB).
- availability
Zone String - The name of the Availability Zone the DB instance was located in at the time of the DB snapshot.
- db
Snapshot StringArn - The Amazon Resource Name (ARN) for the DB snapshot.
- dbi
Resource StringId - The identifier for the source DB instance, which is unique to an AWS Region.
- encrypted Boolean
- Indicates whether the DB snapshot is encrypted.
- engine String
- The name of the database engine.
- engine
Version String - The version of the database engine.
- iam
Database BooleanAuthentication Enabled - Indicates whether mapping of AWS IAM accounts to database accounts is enabled.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Create StringTime - The time when the DB instance was created, in UTC.
- iops Integer
- The Provisioned IOPS value of the DB instance at the time of the snapshot.
- kms
Key StringId - If Encrypted is true, the AWS KMS key identifier for the encrypted DB snapshot.
- license
Model String - License model information for the restored DB instance.
- master
Username String - The master username for the DB snapshot.
- option
Group StringName - The option group name for the DB snapshot.
- original
Snapshot StringCreate Time - The time of the CreateDBSnapshot operation in UTC. Doesn't change when the snapshot is copied.
- port Integer
- The port that the database engine was listening on at the time of the snapshot.
- snapshot
Create StringTime - The time when the snapshot was taken, in UTC.
- snapshot
Type String - The type of the DB snapshot.
- status String
- The status of this DB snapshot.
- storage
Throughput Integer - The storage throughput for the DB snapshot.
- storage
Type String - The storage type associated with the DB snapshot.
- vpc
Id String - The VPC ID associated with the DB snapshot.
- allocated
Storage number - The allocated storage size in gibibytes (GiB).
- availability
Zone string - The name of the Availability Zone the DB instance was located in at the time of the DB snapshot.
- db
Snapshot stringArn - The Amazon Resource Name (ARN) for the DB snapshot.
- dbi
Resource stringId - The identifier for the source DB instance, which is unique to an AWS Region.
- encrypted boolean
- Indicates whether the DB snapshot is encrypted.
- engine string
- The name of the database engine.
- engine
Version string - The version of the database engine.
- iam
Database booleanAuthentication Enabled - Indicates whether mapping of AWS IAM accounts to database accounts is enabled.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Create stringTime - The time when the DB instance was created, in UTC.
- iops number
- The Provisioned IOPS value of the DB instance at the time of the snapshot.
- kms
Key stringId - If Encrypted is true, the AWS KMS key identifier for the encrypted DB snapshot.
- license
Model string - License model information for the restored DB instance.
- master
Username string - The master username for the DB snapshot.
- option
Group stringName - The option group name for the DB snapshot.
- original
Snapshot stringCreate Time - The time of the CreateDBSnapshot operation in UTC. Doesn't change when the snapshot is copied.
- port number
- The port that the database engine was listening on at the time of the snapshot.
- snapshot
Create stringTime - The time when the snapshot was taken, in UTC.
- snapshot
Type string - The type of the DB snapshot.
- status string
- The status of this DB snapshot.
- storage
Throughput number - The storage throughput for the DB snapshot.
- storage
Type string - The storage type associated with the DB snapshot.
- vpc
Id string - The VPC ID associated with the DB snapshot.
- allocated_
storage int - The allocated storage size in gibibytes (GiB).
- availability_
zone str - The name of the Availability Zone the DB instance was located in at the time of the DB snapshot.
- db_
snapshot_ strarn - The Amazon Resource Name (ARN) for the DB snapshot.
- dbi_
resource_ strid - The identifier for the source DB instance, which is unique to an AWS Region.
- encrypted bool
- Indicates whether the DB snapshot is encrypted.
- engine str
- The name of the database engine.
- engine_
version str - The version of the database engine.
- iam_
database_ boolauthentication_ enabled - Indicates whether mapping of AWS IAM accounts to database accounts is enabled.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
create_ strtime - The time when the DB instance was created, in UTC.
- iops int
- The Provisioned IOPS value of the DB instance at the time of the snapshot.
- kms_
key_ strid - If Encrypted is true, the AWS KMS key identifier for the encrypted DB snapshot.
- license_
model str - License model information for the restored DB instance.
- master_
username str - The master username for the DB snapshot.
- option_
group_ strname - The option group name for the DB snapshot.
- original_
snapshot_ strcreate_ time - The time of the CreateDBSnapshot operation in UTC. Doesn't change when the snapshot is copied.
- port int
- The port that the database engine was listening on at the time of the snapshot.
- snapshot_
create_ strtime - The time when the snapshot was taken, in UTC.
- snapshot_
type str - The type of the DB snapshot.
- status str
- The status of this DB snapshot.
- storage_
throughput int - The storage throughput for the DB snapshot.
- storage_
type str - The storage type associated with the DB snapshot.
- vpc_
id str - The VPC ID associated with the DB snapshot.
- allocated
Storage Number - The allocated storage size in gibibytes (GiB).
- availability
Zone String - The name of the Availability Zone the DB instance was located in at the time of the DB snapshot.
- db
Snapshot StringArn - The Amazon Resource Name (ARN) for the DB snapshot.
- dbi
Resource StringId - The identifier for the source DB instance, which is unique to an AWS Region.
- encrypted Boolean
- Indicates whether the DB snapshot is encrypted.
- engine String
- The name of the database engine.
- engine
Version String - The version of the database engine.
- iam
Database BooleanAuthentication Enabled - Indicates whether mapping of AWS IAM accounts to database accounts is enabled.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Create StringTime - The time when the DB instance was created, in UTC.
- iops Number
- The Provisioned IOPS value of the DB instance at the time of the snapshot.
- kms
Key StringId - If Encrypted is true, the AWS KMS key identifier for the encrypted DB snapshot.
- license
Model String - License model information for the restored DB instance.
- master
Username String - The master username for the DB snapshot.
- option
Group StringName - The option group name for the DB snapshot.
- original
Snapshot StringCreate Time - The time of the CreateDBSnapshot operation in UTC. Doesn't change when the snapshot is copied.
- port Number
- The port that the database engine was listening on at the time of the snapshot.
- snapshot
Create StringTime - The time when the snapshot was taken, in UTC.
- snapshot
Type String - The type of the DB snapshot.
- status String
- The status of this DB snapshot.
- storage
Throughput Number - The storage throughput for the DB snapshot.
- storage
Type String - The storage type associated with the DB snapshot.
- vpc
Id String - The VPC ID associated with the DB snapshot.
Supporting Types
Tag, TagArgs
A set of tags to apply to the resource.Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 14, 2026 by Pulumi