We recommend new projects start with resources from the AWS provider.
aws-native.lightsail.DiskSnapshot
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::Lightsail::DiskSnapshot
Create DiskSnapshot Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DiskSnapshot(name: string, args: DiskSnapshotArgs, opts?: CustomResourceOptions);@overload
def DiskSnapshot(resource_name: str,
args: DiskSnapshotArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DiskSnapshot(resource_name: str,
opts: Optional[ResourceOptions] = None,
disk_name: Optional[str] = None,
disk_snapshot_name: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)func NewDiskSnapshot(ctx *Context, name string, args DiskSnapshotArgs, opts ...ResourceOption) (*DiskSnapshot, error)public DiskSnapshot(string name, DiskSnapshotArgs args, CustomResourceOptions? opts = null)
public DiskSnapshot(String name, DiskSnapshotArgs args)
public DiskSnapshot(String name, DiskSnapshotArgs args, CustomResourceOptions options)
type: aws-native:lightsail:DiskSnapshot
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DiskSnapshotArgs
- 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 DiskSnapshotArgs
- 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 DiskSnapshotArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DiskSnapshotArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DiskSnapshotArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DiskSnapshot 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 DiskSnapshot resource accepts the following input properties:
- Disk
Name string - The name of the source disk from which the snapshot was created.
- Disk
Snapshot stringName - The name of the disk snapshot (e.g., my-disk-snapshot).
-
List<Pulumi.
Aws Native. Inputs. Tag> - An array of key-value pairs to apply to this resource.
- Disk
Name string - The name of the source disk from which the snapshot was created.
- Disk
Snapshot stringName - The name of the disk snapshot (e.g., my-disk-snapshot).
-
Tag
Args - An array of key-value pairs to apply to this resource.
- disk
Name String - The name of the source disk from which the snapshot was created.
- disk
Snapshot StringName - The name of the disk snapshot (e.g., my-disk-snapshot).
- List<Tag>
- An array of key-value pairs to apply to this resource.
- disk
Name string - The name of the source disk from which the snapshot was created.
- disk
Snapshot stringName - The name of the disk snapshot (e.g., my-disk-snapshot).
- Tag[]
- An array of key-value pairs to apply to this resource.
- disk_
name str - The name of the source disk from which the snapshot was created.
- disk_
snapshot_ strname - The name of the disk snapshot (e.g., my-disk-snapshot).
-
Sequence[Tag
Args] - An array of key-value pairs to apply to this resource.
- disk
Name String - The name of the source disk from which the snapshot was created.
- disk
Snapshot StringName - The name of the disk snapshot (e.g., my-disk-snapshot).
- List<Property Map>
- An array of key-value pairs to apply to this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the DiskSnapshot resource produces the following output properties:
- Created
At string - The timestamp when the disk snapshot was created.
- Disk
Snapshot stringArn - The Amazon Resource Name (ARN) of the disk snapshot.
- From
Disk stringName - The name of the source disk from which the disk snapshot was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
From boolAuto Snapshot - A Boolean value indicating whether the snapshot was created from an automatic snapshot.
- Location
Pulumi.
Aws Native. Lightsail. Outputs. Location Properties - The AWS Region and Availability Zone where the disk snapshot was created.
- Progress string
- The progress of the disk snapshot creation operation.
- Resource
Type Pulumi.Aws Native. Lightsail. Disk Snapshot Resource Type - The Lightsail resource type (DiskSnapshot).
- Size
In intGb - The size of the disk snapshot in GB.
- State
Pulumi.
Aws Native. Lightsail. Disk Snapshot State - The status of the disk snapshot operation.
- Support
Code string - The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail.
- Created
At string - The timestamp when the disk snapshot was created.
- Disk
Snapshot stringArn - The Amazon Resource Name (ARN) of the disk snapshot.
- From
Disk stringName - The name of the source disk from which the disk snapshot was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
From boolAuto Snapshot - A Boolean value indicating whether the snapshot was created from an automatic snapshot.
- Location
Location
Properties - The AWS Region and Availability Zone where the disk snapshot was created.
- Progress string
- The progress of the disk snapshot creation operation.
- Resource
Type DiskSnapshot Resource Type - The Lightsail resource type (DiskSnapshot).
- Size
In intGb - The size of the disk snapshot in GB.
- State
Disk
Snapshot State Enum - The status of the disk snapshot operation.
- Support
Code string - The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail.
- created
At String - The timestamp when the disk snapshot was created.
- disk
Snapshot StringArn - The Amazon Resource Name (ARN) of the disk snapshot.
- from
Disk StringName - The name of the source disk from which the disk snapshot was created.
- id String
- The provider-assigned unique ID for this managed resource.
- is
From BooleanAuto Snapshot - A Boolean value indicating whether the snapshot was created from an automatic snapshot.
- location
Location
Properties - The AWS Region and Availability Zone where the disk snapshot was created.
- progress String
- The progress of the disk snapshot creation operation.
- resource
Type DiskSnapshot Resource Type - The Lightsail resource type (DiskSnapshot).
- size
In IntegerGb - The size of the disk snapshot in GB.
- state
Disk
Snapshot State - The status of the disk snapshot operation.
- support
Code String - The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail.
- created
At string - The timestamp when the disk snapshot was created.
- disk
Snapshot stringArn - The Amazon Resource Name (ARN) of the disk snapshot.
- from
Disk stringName - The name of the source disk from which the disk snapshot was created.
- id string
- The provider-assigned unique ID for this managed resource.
- is
From booleanAuto Snapshot - A Boolean value indicating whether the snapshot was created from an automatic snapshot.
- location
Location
Properties - The AWS Region and Availability Zone where the disk snapshot was created.
- progress string
- The progress of the disk snapshot creation operation.
- resource
Type DiskSnapshot Resource Type - The Lightsail resource type (DiskSnapshot).
- size
In numberGb - The size of the disk snapshot in GB.
- state
Disk
Snapshot State - The status of the disk snapshot operation.
- support
Code string - The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail.
- created_
at str - The timestamp when the disk snapshot was created.
- disk_
snapshot_ strarn - The Amazon Resource Name (ARN) of the disk snapshot.
- from_
disk_ strname - The name of the source disk from which the disk snapshot was created.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
from_ boolauto_ snapshot - A Boolean value indicating whether the snapshot was created from an automatic snapshot.
- location
Location
Properties - The AWS Region and Availability Zone where the disk snapshot was created.
- progress str
- The progress of the disk snapshot creation operation.
- resource_
type DiskSnapshot Resource Type - The Lightsail resource type (DiskSnapshot).
- size_
in_ intgb - The size of the disk snapshot in GB.
- state
Disk
Snapshot State - The status of the disk snapshot operation.
- support_
code str - The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail.
- created
At String - The timestamp when the disk snapshot was created.
- disk
Snapshot StringArn - The Amazon Resource Name (ARN) of the disk snapshot.
- from
Disk StringName - The name of the source disk from which the disk snapshot was created.
- id String
- The provider-assigned unique ID for this managed resource.
- is
From BooleanAuto Snapshot - A Boolean value indicating whether the snapshot was created from an automatic snapshot.
- location Property Map
- The AWS Region and Availability Zone where the disk snapshot was created.
- progress String
- The progress of the disk snapshot creation operation.
- resource
Type "DiskSnapshot" - The Lightsail resource type (DiskSnapshot).
- size
In NumberGb - The size of the disk snapshot in GB.
- state "pending" | "completed" | "error" | "unknown"
- The status of the disk snapshot operation.
- support
Code String - The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail.
Supporting Types
DiskSnapshotResourceType, DiskSnapshotResourceTypeArgs
- Disk
Snapshot - DiskSnapshot
- Disk
Snapshot Resource Type Disk Snapshot - DiskSnapshot
- Disk
Snapshot - DiskSnapshot
- Disk
Snapshot - DiskSnapshot
- DISK_SNAPSHOT
- DiskSnapshot
- "Disk
Snapshot" - DiskSnapshot
DiskSnapshotState, DiskSnapshotStateArgs
- Pending
- pending
- Completed
- completed
- Error
- error
- Unknown
- unknown
- Disk
Snapshot State Pending - pending
- Disk
Snapshot State Completed - completed
- Disk
Snapshot State Error - error
- Disk
Snapshot State Unknown - unknown
- Pending
- pending
- Completed
- completed
- Error
- error
- Unknown
- unknown
- Pending
- pending
- Completed
- completed
- Error
- error
- Unknown
- unknown
- PENDING
- pending
- COMPLETED
- completed
- ERROR
- error
- UNKNOWN
- unknown
- "pending"
- pending
- "completed"
- completed
- "error"
- error
- "unknown"
- unknown
LocationProperties, LocationPropertiesArgs
The AWS Region and Availability Zone where the disk snapshot was created.- Availability
Zone string - The Availability Zone where the disk snapshot was created.
- Region
Name string - The AWS Region where the disk snapshot was created.
- Availability
Zone string - The Availability Zone where the disk snapshot was created.
- Region
Name string - The AWS Region where the disk snapshot was created.
- availability
Zone String - The Availability Zone where the disk snapshot was created.
- region
Name String - The AWS Region where the disk snapshot was created.
- availability
Zone string - The Availability Zone where the disk snapshot was created.
- region
Name string - The AWS Region where the disk snapshot was created.
- availability_
zone str - The Availability Zone where the disk snapshot was created.
- region_
name str - The AWS Region where the disk snapshot was created.
- availability
Zone String - The Availability Zone where the disk snapshot was created.
- region
Name String - The AWS Region where the disk snapshot was created.
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.
