Class GetSnapshotIds
Inheritance
System.Object
GetSnapshotIds
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 GetSnapshotIds
Methods
View SourceInvokeAsync(GetSnapshotIdsArgs, InvokeOptions)
Use this data source to get a list of EBS Snapshot IDs matching the specified criteria.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var ebsVolumes = Output.Create(Aws.Ebs.GetSnapshotIds.InvokeAsync(new Aws.Ebs.GetSnapshotIdsArgs
{
Filters =
{
new Aws.Ebs.Inputs.GetSnapshotIdsFilterArgs
{
Name = "volume-size",
Values =
{
"40",
},
},
new Aws.Ebs.Inputs.GetSnapshotIdsFilterArgs
{
Name = "tag:Name",
Values =
{
"Example",
},
},
},
Owners =
{
"self",
},
}));
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetSnapshotIdsResult> InvokeAsync(GetSnapshotIdsArgs args = null, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetSnapshotIdsArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetSnapshotIdsResult> |