Show / Hide Table of Contents

Class GetSnapshot

Inheritance
System.Object
GetSnapshot
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Ebs
Assembly: Pulumi.Aws.dll
Syntax
public static class GetSnapshot

Methods

View Source

InvokeAsync(GetSnapshotArgs, InvokeOptions)

Use this data source to get information about an EBS Snapshot for use when provisioning EBS Volumes

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var ebsVolume = Output.Create(Aws.Ebs.GetSnapshot.InvokeAsync(new Aws.Ebs.GetSnapshotArgs
    {
        Filters = 
        {
            new Aws.Ebs.Inputs.GetSnapshotFilterArgs
            {
                Name = "volume-size",
                Values = 
                {
                    "40",
                },
            },
            new Aws.Ebs.Inputs.GetSnapshotFilterArgs
            {
                Name = "tag:Name",
                Values = 
                {
                    "Example",
                },
            },
        },
        MostRecent = true,
        Owners = 
        {
            "self",
        },
    }));
}

}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetSnapshotResult> InvokeAsync(GetSnapshotArgs args = null, InvokeOptions options = null)
Parameters
Type Name Description
GetSnapshotArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetSnapshotResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.