1. Packages
  2. AWS
  3. API Docs
  4. ebs
  5. FastSnapshotRestore
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

aws.ebs.FastSnapshotRestore

Explore with Pulumi AI

aws logo
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

    Resource for managing an EBS (Elastic Block Storage) Fast Snapshot Restore.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.ebs.FastSnapshotRestore("example", {
        availabilityZone: "us-west-2a",
        snapshotId: exampleAwsEbsSnapshot.id,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.ebs.FastSnapshotRestore("example",
        availability_zone="us-west-2a",
        snapshot_id=example_aws_ebs_snapshot["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ebs"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ebs.NewFastSnapshotRestore(ctx, "example", &ebs.FastSnapshotRestoreArgs{
    			AvailabilityZone: pulumi.String("us-west-2a"),
    			SnapshotId:       pulumi.Any(exampleAwsEbsSnapshot.Id),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.Ebs.FastSnapshotRestore("example", new()
        {
            AvailabilityZone = "us-west-2a",
            SnapshotId = exampleAwsEbsSnapshot.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.ebs.FastSnapshotRestore;
    import com.pulumi.aws.ebs.FastSnapshotRestoreArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new FastSnapshotRestore("example", FastSnapshotRestoreArgs.builder()
                .availabilityZone("us-west-2a")
                .snapshotId(exampleAwsEbsSnapshot.id())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:ebs:FastSnapshotRestore
        properties:
          availabilityZone: us-west-2a
          snapshotId: ${exampleAwsEbsSnapshot.id}
    

    Create FastSnapshotRestore Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new FastSnapshotRestore(name: string, args: FastSnapshotRestoreArgs, opts?: CustomResourceOptions);
    @overload
    def FastSnapshotRestore(resource_name: str,
                            args: FastSnapshotRestoreArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def FastSnapshotRestore(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            availability_zone: Optional[str] = None,
                            snapshot_id: Optional[str] = None,
                            timeouts: Optional[FastSnapshotRestoreTimeoutsArgs] = None)
    func NewFastSnapshotRestore(ctx *Context, name string, args FastSnapshotRestoreArgs, opts ...ResourceOption) (*FastSnapshotRestore, error)
    public FastSnapshotRestore(string name, FastSnapshotRestoreArgs args, CustomResourceOptions? opts = null)
    public FastSnapshotRestore(String name, FastSnapshotRestoreArgs args)
    public FastSnapshotRestore(String name, FastSnapshotRestoreArgs args, CustomResourceOptions options)
    
    type: aws:ebs:FastSnapshotRestore
    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 FastSnapshotRestoreArgs
    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 FastSnapshotRestoreArgs
    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 FastSnapshotRestoreArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FastSnapshotRestoreArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FastSnapshotRestoreArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var fastSnapshotRestoreResource = new Aws.Ebs.FastSnapshotRestore("fastSnapshotRestoreResource", new()
    {
        AvailabilityZone = "string",
        SnapshotId = "string",
        Timeouts = new Aws.Ebs.Inputs.FastSnapshotRestoreTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
    });
    
    example, err := ebs.NewFastSnapshotRestore(ctx, "fastSnapshotRestoreResource", &ebs.FastSnapshotRestoreArgs{
    	AvailabilityZone: pulumi.String("string"),
    	SnapshotId:       pulumi.String("string"),
    	Timeouts: &ebs.FastSnapshotRestoreTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    })
    
    var fastSnapshotRestoreResource = new FastSnapshotRestore("fastSnapshotRestoreResource", FastSnapshotRestoreArgs.builder()
        .availabilityZone("string")
        .snapshotId("string")
        .timeouts(FastSnapshotRestoreTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .build());
    
    fast_snapshot_restore_resource = aws.ebs.FastSnapshotRestore("fastSnapshotRestoreResource",
        availability_zone="string",
        snapshot_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
        })
    
    const fastSnapshotRestoreResource = new aws.ebs.FastSnapshotRestore("fastSnapshotRestoreResource", {
        availabilityZone: "string",
        snapshotId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
        },
    });
    
    type: aws:ebs:FastSnapshotRestore
    properties:
        availabilityZone: string
        snapshotId: string
        timeouts:
            create: string
            delete: string
    

    FastSnapshotRestore Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The FastSnapshotRestore resource accepts the following input properties:

    AvailabilityZone string
    Availability zone in which to enable fast snapshot restores.
    SnapshotId string
    ID of the snapshot.
    Timeouts FastSnapshotRestoreTimeouts
    AvailabilityZone string
    Availability zone in which to enable fast snapshot restores.
    SnapshotId string
    ID of the snapshot.
    Timeouts FastSnapshotRestoreTimeoutsArgs
    availabilityZone String
    Availability zone in which to enable fast snapshot restores.
    snapshotId String
    ID of the snapshot.
    timeouts FastSnapshotRestoreTimeouts
    availabilityZone string
    Availability zone in which to enable fast snapshot restores.
    snapshotId string
    ID of the snapshot.
    timeouts FastSnapshotRestoreTimeouts
    availability_zone str
    Availability zone in which to enable fast snapshot restores.
    snapshot_id str
    ID of the snapshot.
    timeouts FastSnapshotRestoreTimeoutsArgs
    availabilityZone String
    Availability zone in which to enable fast snapshot restores.
    snapshotId String
    ID of the snapshot.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the FastSnapshotRestore resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    State of fast snapshot restores. Valid values are enabling, optimizing, enabled, disabling, disabled.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    State of fast snapshot restores. Valid values are enabling, optimizing, enabled, disabling, disabled.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    State of fast snapshot restores. Valid values are enabling, optimizing, enabled, disabling, disabled.
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    State of fast snapshot restores. Valid values are enabling, optimizing, enabled, disabling, disabled.
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    State of fast snapshot restores. Valid values are enabling, optimizing, enabled, disabling, disabled.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    State of fast snapshot restores. Valid values are enabling, optimizing, enabled, disabling, disabled.

    Look up Existing FastSnapshotRestore Resource

    Get an existing FastSnapshotRestore resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: FastSnapshotRestoreState, opts?: CustomResourceOptions): FastSnapshotRestore
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            availability_zone: Optional[str] = None,
            snapshot_id: Optional[str] = None,
            state: Optional[str] = None,
            timeouts: Optional[FastSnapshotRestoreTimeoutsArgs] = None) -> FastSnapshotRestore
    func GetFastSnapshotRestore(ctx *Context, name string, id IDInput, state *FastSnapshotRestoreState, opts ...ResourceOption) (*FastSnapshotRestore, error)
    public static FastSnapshotRestore Get(string name, Input<string> id, FastSnapshotRestoreState? state, CustomResourceOptions? opts = null)
    public static FastSnapshotRestore get(String name, Output<String> id, FastSnapshotRestoreState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AvailabilityZone string
    Availability zone in which to enable fast snapshot restores.
    SnapshotId string
    ID of the snapshot.
    State string
    State of fast snapshot restores. Valid values are enabling, optimizing, enabled, disabling, disabled.
    Timeouts FastSnapshotRestoreTimeouts
    AvailabilityZone string
    Availability zone in which to enable fast snapshot restores.
    SnapshotId string
    ID of the snapshot.
    State string
    State of fast snapshot restores. Valid values are enabling, optimizing, enabled, disabling, disabled.
    Timeouts FastSnapshotRestoreTimeoutsArgs
    availabilityZone String
    Availability zone in which to enable fast snapshot restores.
    snapshotId String
    ID of the snapshot.
    state String
    State of fast snapshot restores. Valid values are enabling, optimizing, enabled, disabling, disabled.
    timeouts FastSnapshotRestoreTimeouts
    availabilityZone string
    Availability zone in which to enable fast snapshot restores.
    snapshotId string
    ID of the snapshot.
    state string
    State of fast snapshot restores. Valid values are enabling, optimizing, enabled, disabling, disabled.
    timeouts FastSnapshotRestoreTimeouts
    availability_zone str
    Availability zone in which to enable fast snapshot restores.
    snapshot_id str
    ID of the snapshot.
    state str
    State of fast snapshot restores. Valid values are enabling, optimizing, enabled, disabling, disabled.
    timeouts FastSnapshotRestoreTimeoutsArgs
    availabilityZone String
    Availability zone in which to enable fast snapshot restores.
    snapshotId String
    ID of the snapshot.
    state String
    State of fast snapshot restores. Valid values are enabling, optimizing, enabled, disabling, disabled.
    timeouts Property Map

    Supporting Types

    FastSnapshotRestoreTimeouts, FastSnapshotRestoreTimeoutsArgs

    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    create str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.

    Import

    Using pulumi import, import EC2 (Elastic Compute Cloud) EBS Fast Snapshot Restore using the id. For example:

    $ pulumi import aws:ebs/fastSnapshotRestore:FastSnapshotRestore example us-west-2a,snap-abcdef123456
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi