AWS Native is in preview. AWS Classic is fully supported.
AWS Native v0.103.0 published on Monday, Apr 22, 2024 by Pulumi
aws-native.ec2.getInternetGateway
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
AWS Native v0.103.0 published on Monday, Apr 22, 2024 by Pulumi
Allocates an internet gateway for use with a VPC. After creating the Internet gateway, you then attach it to a VPC.
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:
- Internet
Gateway stringId
- Internet
Gateway stringId
- internet
Gateway StringId
- internet
Gateway stringId
- internet
Gateway StringId
getInternetGateway Result
The following output properties are available:
- Internet
Gateway stringId - List<Pulumi.
Aws Native. Outputs. Tag> - Any tags to assign to the internet gateway.
- Internet
Gateway stringId - Tag
- Any tags to assign to the internet gateway.
- internet
Gateway StringId - List<Tag>
- Any tags to assign to the internet gateway.
- internet
Gateway stringId - Tag[]
- Any tags to assign to the internet gateway.
- internet_
gateway_ strid - Sequence[root_Tag]
- Any tags to assign to the internet gateway.
- internet
Gateway StringId - List<Property Map>
- Any tags to assign to the internet gateway.
Supporting Types
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.
AWS Native v0.103.0 published on Monday, Apr 22, 2024 by Pulumi