vpn

package
v7.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetConnectionArgs

type GetConnectionArgs struct {
	// Configuration block(s) for filtering. Detailed below.
	Filters []GetConnectionFilter `pulumi:"filters"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region *string `pulumi:"region"`
	// Identifier of the EC2 VPN Connection.
	VpnConnectionId *string `pulumi:"vpnConnectionId"`
}

A collection of arguments for invoking getConnection.

type GetConnectionFilter

type GetConnectionFilter struct {
	// Name of the filter field. Valid values can be found in the [EC2 `DescribeVPNConnections` API Reference](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpnConnections.html).
	Name string `pulumi:"name"`
	// Set of values that are accepted for the given filter field. Results will be selected if any given value matches.
	Values []string `pulumi:"values"`
}

type GetConnectionFilterArgs

type GetConnectionFilterArgs struct {
	// Name of the filter field. Valid values can be found in the [EC2 `DescribeVPNConnections` API Reference](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpnConnections.html).
	Name pulumi.StringInput `pulumi:"name"`
	// Set of values that are accepted for the given filter field. Results will be selected if any given value matches.
	Values pulumi.StringArrayInput `pulumi:"values"`
}

func (GetConnectionFilterArgs) ElementType

func (GetConnectionFilterArgs) ElementType() reflect.Type

func (GetConnectionFilterArgs) ToGetConnectionFilterOutput

func (i GetConnectionFilterArgs) ToGetConnectionFilterOutput() GetConnectionFilterOutput

func (GetConnectionFilterArgs) ToGetConnectionFilterOutputWithContext

func (i GetConnectionFilterArgs) ToGetConnectionFilterOutputWithContext(ctx context.Context) GetConnectionFilterOutput

type GetConnectionFilterArray

type GetConnectionFilterArray []GetConnectionFilterInput

func (GetConnectionFilterArray) ElementType

func (GetConnectionFilterArray) ElementType() reflect.Type

func (GetConnectionFilterArray) ToGetConnectionFilterArrayOutput

func (i GetConnectionFilterArray) ToGetConnectionFilterArrayOutput() GetConnectionFilterArrayOutput

func (GetConnectionFilterArray) ToGetConnectionFilterArrayOutputWithContext

func (i GetConnectionFilterArray) ToGetConnectionFilterArrayOutputWithContext(ctx context.Context) GetConnectionFilterArrayOutput

type GetConnectionFilterArrayInput

type GetConnectionFilterArrayInput interface {
	pulumi.Input

	ToGetConnectionFilterArrayOutput() GetConnectionFilterArrayOutput
	ToGetConnectionFilterArrayOutputWithContext(context.Context) GetConnectionFilterArrayOutput
}

GetConnectionFilterArrayInput is an input type that accepts GetConnectionFilterArray and GetConnectionFilterArrayOutput values. You can construct a concrete instance of `GetConnectionFilterArrayInput` via:

GetConnectionFilterArray{ GetConnectionFilterArgs{...} }

type GetConnectionFilterArrayOutput

type GetConnectionFilterArrayOutput struct{ *pulumi.OutputState }

func (GetConnectionFilterArrayOutput) ElementType

func (GetConnectionFilterArrayOutput) Index

func (GetConnectionFilterArrayOutput) ToGetConnectionFilterArrayOutput

func (o GetConnectionFilterArrayOutput) ToGetConnectionFilterArrayOutput() GetConnectionFilterArrayOutput

func (GetConnectionFilterArrayOutput) ToGetConnectionFilterArrayOutputWithContext

func (o GetConnectionFilterArrayOutput) ToGetConnectionFilterArrayOutputWithContext(ctx context.Context) GetConnectionFilterArrayOutput

type GetConnectionFilterInput

type GetConnectionFilterInput interface {
	pulumi.Input

	ToGetConnectionFilterOutput() GetConnectionFilterOutput
	ToGetConnectionFilterOutputWithContext(context.Context) GetConnectionFilterOutput
}

GetConnectionFilterInput is an input type that accepts GetConnectionFilterArgs and GetConnectionFilterOutput values. You can construct a concrete instance of `GetConnectionFilterInput` via:

GetConnectionFilterArgs{...}

type GetConnectionFilterOutput

type GetConnectionFilterOutput struct{ *pulumi.OutputState }

func (GetConnectionFilterOutput) ElementType

func (GetConnectionFilterOutput) ElementType() reflect.Type

func (GetConnectionFilterOutput) Name

Name of the filter field. Valid values can be found in the [EC2 `DescribeVPNConnections` API Reference](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpnConnections.html).

func (GetConnectionFilterOutput) ToGetConnectionFilterOutput

func (o GetConnectionFilterOutput) ToGetConnectionFilterOutput() GetConnectionFilterOutput

func (GetConnectionFilterOutput) ToGetConnectionFilterOutputWithContext

func (o GetConnectionFilterOutput) ToGetConnectionFilterOutputWithContext(ctx context.Context) GetConnectionFilterOutput

func (GetConnectionFilterOutput) Values

Set of values that are accepted for the given filter field. Results will be selected if any given value matches.

type GetConnectionOutputArgs

type GetConnectionOutputArgs struct {
	// Configuration block(s) for filtering. Detailed below.
	Filters GetConnectionFilterArrayInput `pulumi:"filters"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput `pulumi:"region"`
	// Identifier of the EC2 VPN Connection.
	VpnConnectionId pulumi.StringPtrInput `pulumi:"vpnConnectionId"`
}

A collection of arguments for invoking getConnection.

func (GetConnectionOutputArgs) ElementType

func (GetConnectionOutputArgs) ElementType() reflect.Type

type GetConnectionResult

type GetConnectionResult struct {
	// Category of the VPN connection. A value of VPN indicates an AWS VPN connection. A value of VPN-Classic indicates an AWS Classic VPN connection.
	Category string `pulumi:"category"`
	// ARN of the core network.
	CoreNetworkArn string `pulumi:"coreNetworkArn"`
	// ARN of the core network attachment.
	CoreNetworkAttachmentArn string `pulumi:"coreNetworkAttachmentArn"`
	// Configuration information for the VPN connection's customer gateway (in the native XML format).
	CustomerGatewayConfiguration string `pulumi:"customerGatewayConfiguration"`
	// ID of the customer gateway at your end of the VPN connection.
	CustomerGatewayId string                `pulumi:"customerGatewayId"`
	Filters           []GetConnectionFilter `pulumi:"filters"`
	// Current state of the gateway association.
	GatewayAssociationState string `pulumi:"gatewayAssociationState"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// (ARN) of the Secrets Manager secret storing the pre-shared key(s) for the VPN connection.
	PreSharedKeyArn string `pulumi:"preSharedKeyArn"`
	Region          string `pulumi:"region"`
	// List of static routes associated with the VPN connection.
	Routes []GetConnectionRoute `pulumi:"routes"`
	// Current state of the VPN connection.
	State string `pulumi:"state"`
	// Tags associated to the VPN Connection.
	Tags map[string]string `pulumi:"tags"`
	// ID of a transit gateway associated with the VPN connection.
	TransitGatewayId string `pulumi:"transitGatewayId"`
	// Type of VPN connection. Currently the only supported type is ipsec.1.
	Type string `pulumi:"type"`
	// List of objects containing information about the VPN tunnel.
	VgwTelemetries  []GetConnectionVgwTelemetry `pulumi:"vgwTelemetries"`
	VpnConnectionId string                      `pulumi:"vpnConnectionId"`
	// ID of a virtual private gateway associated with the VPN connection.
	VpnGatewayId string `pulumi:"vpnGatewayId"`
}

A collection of values returned by getConnection.

func GetConnection deprecated

func GetConnection(ctx *pulumi.Context, args *GetConnectionArgs, opts ...pulumi.InvokeOption) (*GetConnectionResult, error)

Fetches details of a Site-to-Site VPN connection. A Site-to-Site VPN connection is an Internet Protocol security (IPsec) VPN connection between a VPC and an on-premises network.

## Example Usage

### Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ec2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := ec2.LookupVpnConnection(ctx, &ec2.LookupVpnConnectionArgs{
			Filters: []ec2.GetVpnConnectionFilter{
				{
					Name: "customer-gateway-id",
					Values: []string{
						"cgw-1234567890",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("vpnConnectionId", example.VpnConnectionId)
		return nil
	})
}

```

### Find by VPN Connection ID

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ec2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := ec2.LookupVpnConnection(ctx, &ec2.LookupVpnConnectionArgs{
			VpnConnectionId: pulumi.StringRef("vpn-abcd1234567890"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("gatewayAssociationState", example.GatewayAssociationState)
		return nil
	})
}

```

Deprecated: aws.vpn/getconnection.getConnection has been deprecated in favor of aws.ec2/getvpnconnection.getVpnConnection

type GetConnectionResultOutput

type GetConnectionResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getConnection.

func (GetConnectionResultOutput) Category

Category of the VPN connection. A value of VPN indicates an AWS VPN connection. A value of VPN-Classic indicates an AWS Classic VPN connection.

func (GetConnectionResultOutput) CoreNetworkArn

func (o GetConnectionResultOutput) CoreNetworkArn() pulumi.StringOutput

ARN of the core network.

func (GetConnectionResultOutput) CoreNetworkAttachmentArn

func (o GetConnectionResultOutput) CoreNetworkAttachmentArn() pulumi.StringOutput

ARN of the core network attachment.

func (GetConnectionResultOutput) CustomerGatewayConfiguration

func (o GetConnectionResultOutput) CustomerGatewayConfiguration() pulumi.StringOutput

Configuration information for the VPN connection's customer gateway (in the native XML format).

func (GetConnectionResultOutput) CustomerGatewayId

func (o GetConnectionResultOutput) CustomerGatewayId() pulumi.StringOutput

ID of the customer gateway at your end of the VPN connection.

func (GetConnectionResultOutput) ElementType

func (GetConnectionResultOutput) ElementType() reflect.Type

func (GetConnectionResultOutput) Filters

func (GetConnectionResultOutput) GatewayAssociationState

func (o GetConnectionResultOutput) GatewayAssociationState() pulumi.StringOutput

Current state of the gateway association.

func (GetConnectionResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetConnectionResultOutput) PreSharedKeyArn

func (o GetConnectionResultOutput) PreSharedKeyArn() pulumi.StringOutput

(ARN) of the Secrets Manager secret storing the pre-shared key(s) for the VPN connection.

func (GetConnectionResultOutput) Region

func (GetConnectionResultOutput) Routes

List of static routes associated with the VPN connection.

func (GetConnectionResultOutput) State

Current state of the VPN connection.

func (GetConnectionResultOutput) Tags

Tags associated to the VPN Connection.

func (GetConnectionResultOutput) ToGetConnectionResultOutput

func (o GetConnectionResultOutput) ToGetConnectionResultOutput() GetConnectionResultOutput

func (GetConnectionResultOutput) ToGetConnectionResultOutputWithContext

func (o GetConnectionResultOutput) ToGetConnectionResultOutputWithContext(ctx context.Context) GetConnectionResultOutput

func (GetConnectionResultOutput) TransitGatewayId

func (o GetConnectionResultOutput) TransitGatewayId() pulumi.StringOutput

ID of a transit gateway associated with the VPN connection.

func (GetConnectionResultOutput) Type

Type of VPN connection. Currently the only supported type is ipsec.1.

func (GetConnectionResultOutput) VgwTelemetries

List of objects containing information about the VPN tunnel.

func (GetConnectionResultOutput) VpnConnectionId

func (o GetConnectionResultOutput) VpnConnectionId() pulumi.StringOutput

func (GetConnectionResultOutput) VpnGatewayId

ID of a virtual private gateway associated with the VPN connection.

type GetConnectionRoute

type GetConnectionRoute struct {
	DestinationCidrBlock string `pulumi:"destinationCidrBlock"`
	Source               string `pulumi:"source"`
	// Current state of the VPN connection.
	State string `pulumi:"state"`
}

type GetConnectionRouteArgs

type GetConnectionRouteArgs struct {
	DestinationCidrBlock pulumi.StringInput `pulumi:"destinationCidrBlock"`
	Source               pulumi.StringInput `pulumi:"source"`
	// Current state of the VPN connection.
	State pulumi.StringInput `pulumi:"state"`
}

func (GetConnectionRouteArgs) ElementType

func (GetConnectionRouteArgs) ElementType() reflect.Type

func (GetConnectionRouteArgs) ToGetConnectionRouteOutput

func (i GetConnectionRouteArgs) ToGetConnectionRouteOutput() GetConnectionRouteOutput

func (GetConnectionRouteArgs) ToGetConnectionRouteOutputWithContext

func (i GetConnectionRouteArgs) ToGetConnectionRouteOutputWithContext(ctx context.Context) GetConnectionRouteOutput

type GetConnectionRouteArray

type GetConnectionRouteArray []GetConnectionRouteInput

func (GetConnectionRouteArray) ElementType

func (GetConnectionRouteArray) ElementType() reflect.Type

func (GetConnectionRouteArray) ToGetConnectionRouteArrayOutput

func (i GetConnectionRouteArray) ToGetConnectionRouteArrayOutput() GetConnectionRouteArrayOutput

func (GetConnectionRouteArray) ToGetConnectionRouteArrayOutputWithContext

func (i GetConnectionRouteArray) ToGetConnectionRouteArrayOutputWithContext(ctx context.Context) GetConnectionRouteArrayOutput

type GetConnectionRouteArrayInput

type GetConnectionRouteArrayInput interface {
	pulumi.Input

	ToGetConnectionRouteArrayOutput() GetConnectionRouteArrayOutput
	ToGetConnectionRouteArrayOutputWithContext(context.Context) GetConnectionRouteArrayOutput
}

GetConnectionRouteArrayInput is an input type that accepts GetConnectionRouteArray and GetConnectionRouteArrayOutput values. You can construct a concrete instance of `GetConnectionRouteArrayInput` via:

GetConnectionRouteArray{ GetConnectionRouteArgs{...} }

type GetConnectionRouteArrayOutput

type GetConnectionRouteArrayOutput struct{ *pulumi.OutputState }

func (GetConnectionRouteArrayOutput) ElementType

func (GetConnectionRouteArrayOutput) Index

func (GetConnectionRouteArrayOutput) ToGetConnectionRouteArrayOutput

func (o GetConnectionRouteArrayOutput) ToGetConnectionRouteArrayOutput() GetConnectionRouteArrayOutput

func (GetConnectionRouteArrayOutput) ToGetConnectionRouteArrayOutputWithContext

func (o GetConnectionRouteArrayOutput) ToGetConnectionRouteArrayOutputWithContext(ctx context.Context) GetConnectionRouteArrayOutput

type GetConnectionRouteInput

type GetConnectionRouteInput interface {
	pulumi.Input

	ToGetConnectionRouteOutput() GetConnectionRouteOutput
	ToGetConnectionRouteOutputWithContext(context.Context) GetConnectionRouteOutput
}

GetConnectionRouteInput is an input type that accepts GetConnectionRouteArgs and GetConnectionRouteOutput values. You can construct a concrete instance of `GetConnectionRouteInput` via:

GetConnectionRouteArgs{...}

type GetConnectionRouteOutput

type GetConnectionRouteOutput struct{ *pulumi.OutputState }

func (GetConnectionRouteOutput) DestinationCidrBlock

func (o GetConnectionRouteOutput) DestinationCidrBlock() pulumi.StringOutput

func (GetConnectionRouteOutput) ElementType

func (GetConnectionRouteOutput) ElementType() reflect.Type

func (GetConnectionRouteOutput) Source

func (GetConnectionRouteOutput) State

Current state of the VPN connection.

func (GetConnectionRouteOutput) ToGetConnectionRouteOutput

func (o GetConnectionRouteOutput) ToGetConnectionRouteOutput() GetConnectionRouteOutput

func (GetConnectionRouteOutput) ToGetConnectionRouteOutputWithContext

func (o GetConnectionRouteOutput) ToGetConnectionRouteOutputWithContext(ctx context.Context) GetConnectionRouteOutput

type GetConnectionVgwTelemetry

type GetConnectionVgwTelemetry struct {
	AcceptedRouteCount int    `pulumi:"acceptedRouteCount"`
	LastStatusChange   string `pulumi:"lastStatusChange"`
	OutsideIpAddress   string `pulumi:"outsideIpAddress"`
	Status             string `pulumi:"status"`
	StatusMessage      string `pulumi:"statusMessage"`
}

type GetConnectionVgwTelemetryArgs

type GetConnectionVgwTelemetryArgs struct {
	AcceptedRouteCount pulumi.IntInput    `pulumi:"acceptedRouteCount"`
	LastStatusChange   pulumi.StringInput `pulumi:"lastStatusChange"`
	OutsideIpAddress   pulumi.StringInput `pulumi:"outsideIpAddress"`
	Status             pulumi.StringInput `pulumi:"status"`
	StatusMessage      pulumi.StringInput `pulumi:"statusMessage"`
}

func (GetConnectionVgwTelemetryArgs) ElementType

func (GetConnectionVgwTelemetryArgs) ToGetConnectionVgwTelemetryOutput

func (i GetConnectionVgwTelemetryArgs) ToGetConnectionVgwTelemetryOutput() GetConnectionVgwTelemetryOutput

func (GetConnectionVgwTelemetryArgs) ToGetConnectionVgwTelemetryOutputWithContext

func (i GetConnectionVgwTelemetryArgs) ToGetConnectionVgwTelemetryOutputWithContext(ctx context.Context) GetConnectionVgwTelemetryOutput

type GetConnectionVgwTelemetryArray

type GetConnectionVgwTelemetryArray []GetConnectionVgwTelemetryInput

func (GetConnectionVgwTelemetryArray) ElementType

func (GetConnectionVgwTelemetryArray) ToGetConnectionVgwTelemetryArrayOutput

func (i GetConnectionVgwTelemetryArray) ToGetConnectionVgwTelemetryArrayOutput() GetConnectionVgwTelemetryArrayOutput

func (GetConnectionVgwTelemetryArray) ToGetConnectionVgwTelemetryArrayOutputWithContext

func (i GetConnectionVgwTelemetryArray) ToGetConnectionVgwTelemetryArrayOutputWithContext(ctx context.Context) GetConnectionVgwTelemetryArrayOutput

type GetConnectionVgwTelemetryArrayInput

type GetConnectionVgwTelemetryArrayInput interface {
	pulumi.Input

	ToGetConnectionVgwTelemetryArrayOutput() GetConnectionVgwTelemetryArrayOutput
	ToGetConnectionVgwTelemetryArrayOutputWithContext(context.Context) GetConnectionVgwTelemetryArrayOutput
}

GetConnectionVgwTelemetryArrayInput is an input type that accepts GetConnectionVgwTelemetryArray and GetConnectionVgwTelemetryArrayOutput values. You can construct a concrete instance of `GetConnectionVgwTelemetryArrayInput` via:

GetConnectionVgwTelemetryArray{ GetConnectionVgwTelemetryArgs{...} }

type GetConnectionVgwTelemetryArrayOutput

type GetConnectionVgwTelemetryArrayOutput struct{ *pulumi.OutputState }

func (GetConnectionVgwTelemetryArrayOutput) ElementType

func (GetConnectionVgwTelemetryArrayOutput) Index

func (GetConnectionVgwTelemetryArrayOutput) ToGetConnectionVgwTelemetryArrayOutput

func (o GetConnectionVgwTelemetryArrayOutput) ToGetConnectionVgwTelemetryArrayOutput() GetConnectionVgwTelemetryArrayOutput

func (GetConnectionVgwTelemetryArrayOutput) ToGetConnectionVgwTelemetryArrayOutputWithContext

func (o GetConnectionVgwTelemetryArrayOutput) ToGetConnectionVgwTelemetryArrayOutputWithContext(ctx context.Context) GetConnectionVgwTelemetryArrayOutput

type GetConnectionVgwTelemetryInput

type GetConnectionVgwTelemetryInput interface {
	pulumi.Input

	ToGetConnectionVgwTelemetryOutput() GetConnectionVgwTelemetryOutput
	ToGetConnectionVgwTelemetryOutputWithContext(context.Context) GetConnectionVgwTelemetryOutput
}

GetConnectionVgwTelemetryInput is an input type that accepts GetConnectionVgwTelemetryArgs and GetConnectionVgwTelemetryOutput values. You can construct a concrete instance of `GetConnectionVgwTelemetryInput` via:

GetConnectionVgwTelemetryArgs{...}

type GetConnectionVgwTelemetryOutput

type GetConnectionVgwTelemetryOutput struct{ *pulumi.OutputState }

func (GetConnectionVgwTelemetryOutput) AcceptedRouteCount

func (o GetConnectionVgwTelemetryOutput) AcceptedRouteCount() pulumi.IntOutput

func (GetConnectionVgwTelemetryOutput) ElementType

func (GetConnectionVgwTelemetryOutput) LastStatusChange

func (GetConnectionVgwTelemetryOutput) OutsideIpAddress

func (GetConnectionVgwTelemetryOutput) Status

func (GetConnectionVgwTelemetryOutput) StatusMessage

func (GetConnectionVgwTelemetryOutput) ToGetConnectionVgwTelemetryOutput

func (o GetConnectionVgwTelemetryOutput) ToGetConnectionVgwTelemetryOutput() GetConnectionVgwTelemetryOutput

func (GetConnectionVgwTelemetryOutput) ToGetConnectionVgwTelemetryOutputWithContext

func (o GetConnectionVgwTelemetryOutput) ToGetConnectionVgwTelemetryOutputWithContext(ctx context.Context) GetConnectionVgwTelemetryOutput

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL