Class GetInstanceTypeOffering
Inheritance
System.Object
GetInstanceTypeOffering
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 GetInstanceTypeOffering
Methods
View SourceInvokeAsync(GetInstanceTypeOfferingArgs, InvokeOptions)
Information about single EC2 Instance Type Offering.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Aws.Ec2.GetInstanceTypeOffering.InvokeAsync(new Aws.Ec2.GetInstanceTypeOfferingArgs
{
Filters =
{
new Aws.Ec2.Inputs.GetInstanceTypeOfferingFilterArgs
{
Name = "instance-type",
Values =
{
"t1.micro",
"t2.micro",
"t3.micro",
},
},
},
PreferredInstanceTypes =
{
"t3.micro",
"t2.micro",
"t1.micro",
},
}));
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetInstanceTypeOfferingResult> InvokeAsync(GetInstanceTypeOfferingArgs args = null, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetInstanceTypeOfferingArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetInstanceTypeOfferingResult> |