getInstanceTypeOfferings

Information about EC2 Instance Type Offerings.

Example Usage

Coming soon!

Coming soon!

Coming soon!

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.ec2.getInstanceTypeOfferings({
    filters: [
        {
            name: "instance-type",
            values: [
                "t2.micro",
                "t3.micro",
            ],
        },
        {
            name: "location",
            values: ["usw2-az4"],
        },
    ],
    locationType: "availability-zone-id",
}, { async: true }));

Using getInstanceTypeOfferings

function getInstanceTypeOfferings(args: GetInstanceTypeOfferingsArgs, opts?: InvokeOptions): Promise<GetInstanceTypeOfferingsResult>
def get_instance_type_offerings(filters: Optional[Sequence[GetInstanceTypeOfferingsFilter]] = None,
                                location_type: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetInstanceTypeOfferingsResult
func GetInstanceTypeOfferings(ctx *Context, args *GetInstanceTypeOfferingsArgs, opts ...InvokeOption) (*GetInstanceTypeOfferingsResult, error)

Note: This function is named GetInstanceTypeOfferings in the Go SDK.

public static class GetInstanceTypeOfferings {
    public static Task<GetInstanceTypeOfferingsResult> InvokeAsync(GetInstanceTypeOfferingsArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Filters List<GetInstanceTypeOfferingsFilter>
One or more configuration blocks containing name-values filters. See the EC2 API Reference for supported filters. Detailed below.
LocationType string
Location type. Defaults to region. Valid values: availability-zone, availability-zone-id, and region.
Filters []GetInstanceTypeOfferingsFilter
One or more configuration blocks containing name-values filters. See the EC2 API Reference for supported filters. Detailed below.
LocationType string
Location type. Defaults to region. Valid values: availability-zone, availability-zone-id, and region.
filters GetInstanceTypeOfferingsFilter[]
One or more configuration blocks containing name-values filters. See the EC2 API Reference for supported filters. Detailed below.
locationType string
Location type. Defaults to region. Valid values: availability-zone, availability-zone-id, and region.
filters Sequence[GetInstanceTypeOfferingsFilter]
One or more configuration blocks containing name-values filters. See the EC2 API Reference for supported filters. Detailed below.
location_type str
Location type. Defaults to region. Valid values: availability-zone, availability-zone-id, and region.

getInstanceTypeOfferings Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
InstanceTypes List<string>
Set of EC2 Instance Types.
Filters List<GetInstanceTypeOfferingsFilter>
LocationType string
Id string
The provider-assigned unique ID for this managed resource.
InstanceTypes []string
Set of EC2 Instance Types.
Filters []GetInstanceTypeOfferingsFilter
LocationType string
id string
The provider-assigned unique ID for this managed resource.
instanceTypes string[]
Set of EC2 Instance Types.
filters GetInstanceTypeOfferingsFilter[]
locationType string
id str
The provider-assigned unique ID for this managed resource.
instance_types Sequence[str]
Set of EC2 Instance Types.
filters Sequence[GetInstanceTypeOfferingsFilter]
location_type str

Supporting Types

GetInstanceTypeOfferingsFilter

Name string
Name of the filter. The location filter depends on the top-level location_type argument and if not specified, defaults to the current region.
Values List<string>
List of one or more values for the filter.
Name string
Name of the filter. The location filter depends on the top-level location_type argument and if not specified, defaults to the current region.
Values []string
List of one or more values for the filter.
name string
Name of the filter. The location filter depends on the top-level location_type argument and if not specified, defaults to the current region.
values string[]
List of one or more values for the filter.
name str
Name of the filter. The location filter depends on the top-level location_type argument and if not specified, defaults to the current region.
values Sequence[str]
List of one or more values for the filter.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.