Show / Hide Table of Contents

Class GetInstanceTypeOfferings

Inheritance
System.Object
GetInstanceTypeOfferings
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.Ec2
Assembly: Pulumi.Aws.dll
Syntax
public static class GetInstanceTypeOfferings

Methods

View Source

InvokeAsync(GetInstanceTypeOfferingsArgs, InvokeOptions)

Information about EC2 Instance Type Offerings.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var example = Output.Create(Aws.Ec2.GetInstanceTypeOfferings.InvokeAsync(new Aws.Ec2.GetInstanceTypeOfferingsArgs
    {
        Filters = 
        {
            new Aws.Ec2.Inputs.GetInstanceTypeOfferingsFilterArgs
            {
                Name = "instance-type",
                Values = 
                {
                    "t2.micro",
                    "t3.micro",
                },
            },
            new Aws.Ec2.Inputs.GetInstanceTypeOfferingsFilterArgs
            {
                Name = "location",
                Values = 
                {
                    "usw2-az4",
                },
            },
        },
        LocationType = "availability-zone-id",
    }));
}

}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetInstanceTypeOfferingsResult> InvokeAsync(GetInstanceTypeOfferingsArgs args = null, InvokeOptions options = null)
Parameters
Type Name Description
GetInstanceTypeOfferingsArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetInstanceTypeOfferingsResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.