1. Packages
  2. AWS Native
  3. API Docs
  4. ec2
  5. getVpnGateway

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.109.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws-native.ec2.getVpnGateway

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.109.0 published on Wednesday, Jun 26, 2024 by Pulumi

    Specifies a virtual private gateway. A virtual private gateway is the endpoint on the VPC side of your VPN connection. You can create a virtual private gateway before creating the VPC itself. For more information, see in the User Guide.

    Using getVpnGateway

    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 getVpnGateway(args: GetVpnGatewayArgs, opts?: InvokeOptions): Promise<GetVpnGatewayResult>
    function getVpnGatewayOutput(args: GetVpnGatewayOutputArgs, opts?: InvokeOptions): Output<GetVpnGatewayResult>
    def get_vpn_gateway(vpn_gateway_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetVpnGatewayResult
    def get_vpn_gateway_output(vpn_gateway_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetVpnGatewayResult]
    func LookupVpnGateway(ctx *Context, args *LookupVpnGatewayArgs, opts ...InvokeOption) (*LookupVpnGatewayResult, error)
    func LookupVpnGatewayOutput(ctx *Context, args *LookupVpnGatewayOutputArgs, opts ...InvokeOption) LookupVpnGatewayResultOutput

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

    public static class GetVpnGateway 
    {
        public static Task<GetVpnGatewayResult> InvokeAsync(GetVpnGatewayArgs args, InvokeOptions? opts = null)
        public static Output<GetVpnGatewayResult> Invoke(GetVpnGatewayInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVpnGatewayResult> getVpnGateway(GetVpnGatewayArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws-native:ec2:getVpnGateway
      arguments:
        # arguments dictionary

    The following arguments are supported:

    VpnGatewayId string
    The ID of the VPN gateway.
    VpnGatewayId string
    The ID of the VPN gateway.
    vpnGatewayId String
    The ID of the VPN gateway.
    vpnGatewayId string
    The ID of the VPN gateway.
    vpn_gateway_id str
    The ID of the VPN gateway.
    vpnGatewayId String
    The ID of the VPN gateway.

    getVpnGateway Result

    The following output properties are available:

    Tags List<Pulumi.AwsNative.Outputs.Tag>
    Any tags assigned to the virtual private gateway.
    VpnGatewayId string
    The ID of the VPN gateway.
    Tags Tag
    Any tags assigned to the virtual private gateway.
    VpnGatewayId string
    The ID of the VPN gateway.
    tags List<Tag>
    Any tags assigned to the virtual private gateway.
    vpnGatewayId String
    The ID of the VPN gateway.
    tags Tag[]
    Any tags assigned to the virtual private gateway.
    vpnGatewayId string
    The ID of the VPN gateway.
    tags Sequence[root_Tag]
    Any tags assigned to the virtual private gateway.
    vpn_gateway_id str
    The ID of the VPN gateway.
    tags List<Property Map>
    Any tags assigned to the virtual private gateway.
    vpnGatewayId String
    The ID of the VPN gateway.

    Supporting Types

    Tag

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.109.0 published on Wednesday, Jun 26, 2024 by Pulumi