We recommend new projects start with resources from the AWS provider.
aws-native.lightsail.InstanceSnapshot
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::Lightsail::InstanceSnapshot
Create InstanceSnapshot Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InstanceSnapshot(name: string, args: InstanceSnapshotArgs, opts?: CustomResourceOptions);
@overload
def InstanceSnapshot(resource_name: str,
args: InstanceSnapshotArgs,
opts: Optional[ResourceOptions] = None)
@overload
def InstanceSnapshot(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_name: Optional[str] = None,
instance_snapshot_name: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
func NewInstanceSnapshot(ctx *Context, name string, args InstanceSnapshotArgs, opts ...ResourceOption) (*InstanceSnapshot, error)
public InstanceSnapshot(string name, InstanceSnapshotArgs args, CustomResourceOptions? opts = null)
public InstanceSnapshot(String name, InstanceSnapshotArgs args)
public InstanceSnapshot(String name, InstanceSnapshotArgs args, CustomResourceOptions options)
type: aws-native:lightsail:InstanceSnapshot
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 InstanceSnapshotArgs
- 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 InstanceSnapshotArgs
- 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 InstanceSnapshotArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceSnapshotArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceSnapshotArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
InstanceSnapshot 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 InstanceSnapshot resource accepts the following input properties:
- Instance
Name string - The instance from which the snapshot was created.
- Instance
Snapshot stringName - The name of the snapshot.
- List<Pulumi.
Aws Native. Inputs. Tag> - An array of key-value pairs to apply to this resource.
- Instance
Name string - The instance from which the snapshot was created.
- Instance
Snapshot stringName - The name of the snapshot.
- Tag
Args - An array of key-value pairs to apply to this resource.
- instance
Name String - The instance from which the snapshot was created.
- instance
Snapshot StringName - The name of the snapshot.
- List<Tag>
- An array of key-value pairs to apply to this resource.
- instance
Name string - The instance from which the snapshot was created.
- instance
Snapshot stringName - The name of the snapshot.
- Tag[]
- An array of key-value pairs to apply to this resource.
- instance_
name str - The instance from which the snapshot was created.
- instance_
snapshot_ strname - The name of the snapshot.
- Sequence[Tag
Args] - An array of key-value pairs to apply to this resource.
- instance
Name String - The instance from which the snapshot was created.
- instance
Snapshot StringName - The name of the 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 InstanceSnapshot resource produces the following output properties:
- Arn string
- The Amazon Resource Name (ARN) of the snapshot.
- From
Instance stringArn - The Amazon Resource Name (ARN) of the instance from which the snapshot was created.
- From
Instance stringName - The instance from which the 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. Instance Snapshot Location - Resource
Type string - The type of resource (usually InstanceSnapshot).
- Size
In intGb - The size in GB of the SSD
- State string
- The state the snapshot is in.
- Support
Code string - Support code to help identify any issues
- Arn string
- The Amazon Resource Name (ARN) of the snapshot.
- From
Instance stringArn - The Amazon Resource Name (ARN) of the instance from which the snapshot was created.
- From
Instance stringName - The instance from which the 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
Instance
Snapshot Location - Resource
Type string - The type of resource (usually InstanceSnapshot).
- Size
In intGb - The size in GB of the SSD
- State string
- The state the snapshot is in.
- Support
Code string - Support code to help identify any issues
- arn String
- The Amazon Resource Name (ARN) of the snapshot.
- from
Instance StringArn - The Amazon Resource Name (ARN) of the instance from which the snapshot was created.
- from
Instance StringName - The instance from which the 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
Instance
Snapshot Location - resource
Type String - The type of resource (usually InstanceSnapshot).
- size
In IntegerGb - The size in GB of the SSD
- state String
- The state the snapshot is in.
- support
Code String - Support code to help identify any issues
- arn string
- The Amazon Resource Name (ARN) of the snapshot.
- from
Instance stringArn - The Amazon Resource Name (ARN) of the instance from which the snapshot was created.
- from
Instance stringName - The instance from which the 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
Instance
Snapshot Location - resource
Type string - The type of resource (usually InstanceSnapshot).
- size
In numberGb - The size in GB of the SSD
- state string
- The state the snapshot is in.
- support
Code string - Support code to help identify any issues
- arn str
- The Amazon Resource Name (ARN) of the snapshot.
- from_
instance_ strarn - The Amazon Resource Name (ARN) of the instance from which the snapshot was created.
- from_
instance_ strname - The instance from which the 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
Instance
Snapshot Location - resource_
type str - The type of resource (usually InstanceSnapshot).
- size_
in_ intgb - The size in GB of the SSD
- state str
- The state the snapshot is in.
- support_
code str - Support code to help identify any issues
- arn String
- The Amazon Resource Name (ARN) of the snapshot.
- from
Instance StringArn - The Amazon Resource Name (ARN) of the instance from which the snapshot was created.
- from
Instance StringName - The instance from which the 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
- resource
Type String - The type of resource (usually InstanceSnapshot).
- size
In NumberGb - The size in GB of the SSD
- state String
- The state the snapshot is in.
- support
Code String - Support code to help identify any issues
Supporting Types
InstanceSnapshotLocation, InstanceSnapshotLocationArgs
- Availability
Zone string - The Availability Zone. Follows the format us-east-2a (case-sensitive).
- Region
Name string - The AWS Region name.
- Availability
Zone string - The Availability Zone. Follows the format us-east-2a (case-sensitive).
- Region
Name string - The AWS Region name.
- availability
Zone String - The Availability Zone. Follows the format us-east-2a (case-sensitive).
- region
Name String - The AWS Region name.
- availability
Zone string - The Availability Zone. Follows the format us-east-2a (case-sensitive).
- region
Name string - The AWS Region name.
- availability_
zone str - The Availability Zone. Follows the format us-east-2a (case-sensitive).
- region_
name str - The AWS Region name.
- availability
Zone String - The Availability Zone. Follows the format us-east-2a (case-sensitive).
- region
Name String - The AWS Region name.
Tag, TagArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.