Show / Hide Table of Contents

Class GetVolume

Inheritance
System.Object
GetVolume
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 GetVolume

Methods

View Source

InvokeAsync(GetVolumeArgs, InvokeOptions)

Use this data source to get information about an EBS volume for use in other resources.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var ebsVolume = Output.Create(Aws.Ebs.GetVolume.InvokeAsync(new Aws.Ebs.GetVolumeArgs
    {
        Filters = 
        {
            new Aws.Ebs.Inputs.GetVolumeFilterArgs
            {
                Name = "volume-type",
                Values = 
                {
                    "gp2",
                },
            },
            new Aws.Ebs.Inputs.GetVolumeFilterArgs
            {
                Name = "tag:Name",
                Values = 
                {
                    "Example",
                },
            },
        },
        MostRecent = true,
    }));
}

}

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

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