UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

82 lines 2.52 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getInstanceTypeOfferingsOutput = exports.getInstanceTypeOfferings = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Information about EC2 Instance Type Offerings. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.ec2.getInstanceTypeOfferings({ * filters: [ * { * name: "instance-type", * values: [ * "t2.micro", * "t3.micro", * ], * }, * { * name: "location", * values: ["usw2-az4"], * }, * ], * locationType: "availability-zone-id", * }); * ``` */ function getInstanceTypeOfferings(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:ec2/getInstanceTypeOfferings:getInstanceTypeOfferings", { "filters": args.filters, "locationType": args.locationType, "region": args.region, }, opts); } exports.getInstanceTypeOfferings = getInstanceTypeOfferings; /** * Information about EC2 Instance Type Offerings. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.ec2.getInstanceTypeOfferings({ * filters: [ * { * name: "instance-type", * values: [ * "t2.micro", * "t3.micro", * ], * }, * { * name: "location", * values: ["usw2-az4"], * }, * ], * locationType: "availability-zone-id", * }); * ``` */ function getInstanceTypeOfferingsOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:ec2/getInstanceTypeOfferings:getInstanceTypeOfferings", { "filters": args.filters, "locationType": args.locationType, "region": args.region, }, opts); } exports.getInstanceTypeOfferingsOutput = getInstanceTypeOfferingsOutput; //# sourceMappingURL=getInstanceTypeOfferings.js.map