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

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.getVpnConnection

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

    Resource Type definition for AWS::EC2::VPNConnection

    Using getVpnConnection

    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 getVpnConnection(args: GetVpnConnectionArgs, opts?: InvokeOptions): Promise<GetVpnConnectionResult>
    function getVpnConnectionOutput(args: GetVpnConnectionOutputArgs, opts?: InvokeOptions): Output<GetVpnConnectionResult>
    def get_vpn_connection(vpn_connection_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetVpnConnectionResult
    def get_vpn_connection_output(vpn_connection_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetVpnConnectionResult]
    func LookupVpnConnection(ctx *Context, args *LookupVpnConnectionArgs, opts ...InvokeOption) (*LookupVpnConnectionResult, error)
    func LookupVpnConnectionOutput(ctx *Context, args *LookupVpnConnectionOutputArgs, opts ...InvokeOption) LookupVpnConnectionResultOutput

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

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

    The following arguments are supported:

    VpnConnectionId string
    The provider-assigned unique ID for this managed resource
    VpnConnectionId string
    The provider-assigned unique ID for this managed resource
    vpnConnectionId String
    The provider-assigned unique ID for this managed resource
    vpnConnectionId string
    The provider-assigned unique ID for this managed resource
    vpn_connection_id str
    The provider-assigned unique ID for this managed resource
    vpnConnectionId String
    The provider-assigned unique ID for this managed resource

    getVpnConnection Result

    The following output properties are available:

    Tags List<Pulumi.AwsNative.Outputs.Tag>
    Any tags assigned to the VPN connection.
    VpnConnectionId string
    The provider-assigned unique ID for this managed resource
    Tags Tag
    Any tags assigned to the VPN connection.
    VpnConnectionId string
    The provider-assigned unique ID for this managed resource
    tags List<Tag>
    Any tags assigned to the VPN connection.
    vpnConnectionId String
    The provider-assigned unique ID for this managed resource
    tags Tag[]
    Any tags assigned to the VPN connection.
    vpnConnectionId string
    The provider-assigned unique ID for this managed resource
    tags Sequence[root_Tag]
    Any tags assigned to the VPN connection.
    vpn_connection_id str
    The provider-assigned unique ID for this managed resource
    tags List<Property Map>
    Any tags assigned to the VPN connection.
    vpnConnectionId String
    The provider-assigned unique ID for this managed resource

    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