GetEbsVolumes
aws.ebs.getEbsVolumes provides identifying information for EBS volumes matching given criteria.
This data source can be useful for getting a list of volume IDs with (for example) matching tags.
Using GetEbsVolumes
function getEbsVolumes(args: GetEbsVolumesArgs, opts?: InvokeOptions): Promise<GetEbsVolumesResult>function get_ebs_volumes(filters=None, tags=None, opts=None)func GetEbsVolumes(ctx *Context, args *GetEbsVolumesArgs, opts ...InvokeOption) (*GetEbsVolumesResult, error)public static class GetEbsVolumes {
public static Task<GetEbsVolumesResult> InvokeAsync(GetEbsVolumesArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Filters
List<Get
Ebs Volumes Filter Args> Custom filter block as described below.
- Dictionary<string, string>
A map of tags, each pair of which must exactly match a pair on the desired volumes.
- Filters
[]Get
Ebs Volumes Filter Custom filter block as described below.
- map[string]string
A map of tags, each pair of which must exactly match a pair on the desired volumes.
- filters
Get
Ebs Volumes Filter[] Custom filter block as described below.
- {[key: string]: string}
A map of tags, each pair of which must exactly match a pair on the desired volumes.
- filters
List[Get
Ebs Volumes Filter] Custom filter block as described below.
- Dict[str, str]
A map of tags, each pair of which must exactly match a pair on the desired volumes.
GetEbsVolumes Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
A set of all the EBS Volume IDs found. This data source will fail if no volumes match the provided criteria.
- Filters
List<Get
Ebs Volumes Filter> - Dictionary<string, string>
Supporting Types
GetEbsVolumesFilter
- Name string
The name of the field to filter by, as defined by the underlying AWS API. For example, if matching against the
sizefilter, use:- Values List<string>
Set of values that are accepted for the given field. EBS Volume IDs will be selected if any one of the given values match.
- Name string
The name of the field to filter by, as defined by the underlying AWS API. For example, if matching against the
sizefilter, use:- Values []string
Set of values that are accepted for the given field. EBS Volume IDs will be selected if any one of the given values match.
- name string
The name of the field to filter by, as defined by the underlying AWS API. For example, if matching against the
sizefilter, use:- values string[]
Set of values that are accepted for the given field. EBS Volume IDs will be selected if any one of the given values match.
- name str
The name of the field to filter by, as defined by the underlying AWS API. For example, if matching against the
sizefilter, use:- values List[str]
Set of values that are accepted for the given field. EBS Volume IDs will be selected if any one of the given values match.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.