Show / Hide Table of Contents

Class GetInternetGateway

Inheritance
System.Object
GetInternetGateway
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 GetInternetGateway

Methods

View Source

InvokeAsync(GetInternetGatewayArgs, InvokeOptions)

aws.ec2.InternetGateway provides details about a specific Internet Gateway.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var config = new Config();
    var vpcId = config.RequireObject<dynamic>("vpcId");
    var @default = Output.Create(Aws.Ec2.GetInternetGateway.InvokeAsync(new Aws.Ec2.GetInternetGatewayArgs
    {
        Filters = 
        {
            new Aws.Ec2.Inputs.GetInternetGatewayFilterArgs
            {
                Name = "attachment.vpc-id",
                Values = 
                {
                    vpcId,
                },
            },
        },
    }));
}

}

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

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