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<GetEbsVolumesFilterArgs>

Custom filter block as described below.

Tags Dictionary<string, string>

A map of tags, each pair of which must exactly match a pair on the desired volumes.

Filters []GetEbsVolumesFilter

Custom filter block as described below.

Tags map[string]string

A map of tags, each pair of which must exactly match a pair on the desired volumes.

filters GetEbsVolumesFilter[]

Custom filter block as described below.

tags {[key: string]: string}

A map of tags, each pair of which must exactly match a pair on the desired volumes.

filters List[GetEbsVolumesFilter]

Custom filter block as described below.

tags 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<GetEbsVolumesFilter>
Tags Dictionary<string, string>
Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A set of all the EBS Volume IDs found. This data source will fail if no volumes match the provided criteria.

Filters []GetEbsVolumesFilter
Tags map[string]string
id string

The provider-assigned unique ID for this managed resource.

ids string[]

A set of all the EBS Volume IDs found. This data source will fail if no volumes match the provided criteria.

filters GetEbsVolumesFilter[]
tags {[key: string]: string}
id str

The provider-assigned unique ID for this managed resource.

ids List[str]

A set of all the EBS Volume IDs found. This data source will fail if no volumes match the provided criteria.

filters List[GetEbsVolumesFilter]
tags Dict[str, str]

Supporting Types

GetEbsVolumesFilter

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Name string

The name of the field to filter by, as defined by the underlying AWS API. For example, if matching against the size filter, 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 size filter, 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 size filter, 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 size filter, 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 aws Terraform Provider.