AWS Native

v0.29.0 published on Thursday, Sep 8, 2022 by Pulumi

getInternetGateway

Resource Type definition for AWS::EC2::InternetGateway

Using getInternetGateway

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getInternetGateway(args: GetInternetGatewayArgs, opts?: InvokeOptions): Promise<GetInternetGatewayResult>
function getInternetGatewayOutput(args: GetInternetGatewayOutputArgs, opts?: InvokeOptions): Output<GetInternetGatewayResult>
def get_internet_gateway(internet_gateway_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetInternetGatewayResult
def get_internet_gateway_output(internet_gateway_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetInternetGatewayResult]
func LookupInternetGateway(ctx *Context, args *LookupInternetGatewayArgs, opts ...InvokeOption) (*LookupInternetGatewayResult, error)
func LookupInternetGatewayOutput(ctx *Context, args *LookupInternetGatewayOutputArgs, opts ...InvokeOption) LookupInternetGatewayResultOutput

> Note: This function is named LookupInternetGateway in the Go SDK.

public static class GetInternetGateway 
{
    public static Task<GetInternetGatewayResult> InvokeAsync(GetInternetGatewayArgs args, InvokeOptions? opts = null)
    public static Output<GetInternetGatewayResult> Invoke(GetInternetGatewayInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetInternetGatewayResult> getInternetGateway(GetInternetGatewayArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws-native:ec2:getInternetGateway
  Arguments:
    # Arguments dictionary

The following arguments are supported:

InternetGatewayId string

ID of internet gateway.

InternetGatewayId string

ID of internet gateway.

internetGatewayId String

ID of internet gateway.

internetGatewayId string

ID of internet gateway.

internet_gateway_id str

ID of internet gateway.

internetGatewayId String

ID of internet gateway.

getInternetGateway Result

The following output properties are available:

InternetGatewayId string

ID of internet gateway.

Tags List<Pulumi.AwsNative.EC2.Outputs.InternetGatewayTag>

Any tags to assign to the internet gateway.

InternetGatewayId string

ID of internet gateway.

Tags []InternetGatewayTag

Any tags to assign to the internet gateway.

internetGatewayId String

ID of internet gateway.

tags List<InternetGatewayTag>

Any tags to assign to the internet gateway.

internetGatewayId string

ID of internet gateway.

tags InternetGatewayTag[]

Any tags to assign to the internet gateway.

internet_gateway_id str

ID of internet gateway.

tags Sequence[InternetGatewayTag]

Any tags to assign to the internet gateway.

internetGatewayId String

ID of internet gateway.

tags List<Property Map>

Any tags to assign to the internet gateway.

Supporting Types

InternetGatewayTag

Key string
Value string
Key string
Value string
key String
value String
key string
value string
key str
value str
key String
value String

Package Details

Repository
https://github.com/pulumi/pulumi-aws-native
License
Apache-2.0