Class Snapshot
Manages an RDS database instance snapshot. For managing RDS database cluster snapshots, see the aws.rds.ClusterSnapshot resource.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var bar = new Aws.Rds.Instance("bar", new Aws.Rds.InstanceArgs
{
AllocatedStorage = 10,
BackupRetentionPeriod = 0,
Engine = "MySQL",
EngineVersion = "5.6.21",
InstanceClass = "db.t2.micro",
MaintenanceWindow = "Fri:09:00-Fri:09:30",
Name = "baz",
ParameterGroupName = "default.mysql5.6",
Password = "barbarbarbar",
Username = "foo",
});
var test = new Aws.Rds.Snapshot("test", new Aws.Rds.SnapshotArgs
{
DbInstanceIdentifier = bar.Id,
DbSnapshotIdentifier = "testsnapshot1234",
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Rds
Assembly: Pulumi.Aws.dll
Syntax
public class Snapshot : CustomResource
Constructors
View SourceSnapshot(String, SnapshotArgs, CustomResourceOptions)
Create a Snapshot resource with the given unique name, arguments, and options.
Declaration
public Snapshot(string name, SnapshotArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| SnapshotArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAllocatedStorage
Specifies the allocated storage size in gigabytes (GB).
Declaration
public Output<int> AllocatedStorage { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
AvailabilityZone
Specifies the name of the Availability Zone the DB instance was located in at the time of the DB snapshot.
Declaration
public Output<string> AvailabilityZone { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DbInstanceIdentifier
The DB Instance Identifier from which to take the snapshot.
Declaration
public Output<string> DbInstanceIdentifier { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DbSnapshotArn
The Amazon Resource Name (ARN) for the DB snapshot.
Declaration
public Output<string> DbSnapshotArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DbSnapshotIdentifier
The Identifier for the snapshot.
Declaration
public Output<string> DbSnapshotIdentifier { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Encrypted
Specifies whether the DB snapshot is encrypted.
Declaration
public Output<bool> Encrypted { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
Engine
Specifies the name of the database engine.
Declaration
public Output<string> Engine { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
EngineVersion
Specifies the version of the database engine.
Declaration
public Output<string> EngineVersion { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Iops
Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot.
Declaration
public Output<int> Iops { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
KmsKeyId
The ARN for the KMS encryption key.
Declaration
public Output<string> KmsKeyId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
LicenseModel
License model information for the restored DB instance.
Declaration
public Output<string> LicenseModel { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
OptionGroupName
Provides the option group name for the DB snapshot.
Declaration
public Output<string> OptionGroupName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Port
Declaration
public Output<int> Port { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
SnapshotType
Declaration
public Output<string> SnapshotType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SourceDbSnapshotIdentifier
The DB snapshot Arn that the DB snapshot was copied from. It only has value in case of cross customer or cross region copy.
Declaration
public Output<string> SourceDbSnapshotIdentifier { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SourceRegion
The region that the DB snapshot was created in or copied from.
Declaration
public Output<string> SourceRegion { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Status
Specifies the status of this DB snapshot.
Declaration
public Output<string> Status { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
StorageType
Specifies the storage type associated with DB snapshot.
Declaration
public Output<string> StorageType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tags
Key-value map of resource tags
Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
VpcId
Specifies the storage type associated with DB snapshot.
Declaration
public Output<string> VpcId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, SnapshotState, CustomResourceOptions)
Get an existing Snapshot resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Snapshot Get(string name, Input<string> id, SnapshotState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| SnapshotState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Snapshot |