CustomerGatewayArgs

data class CustomerGatewayArgs(val bgpAsn: Output<String>? = null, val bgpAsnExtended: Output<String>? = null, val certificateArn: Output<String>? = null, val deviceName: Output<String>? = null, val ipAddress: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val type: Output<String>? = null) : ConvertibleToJava<CustomerGatewayArgs>

Provides a customer gateway inside a VPC. These objects can be connected to VPN gateways via VPN connections, and allow you to establish tunnels between your network and the VPC.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const main = new aws.ec2.CustomerGateway("main", {
bgpAsn: "65000",
ipAddress: "172.83.124.10",
type: "ipsec.1",
tags: {
Name: "main-customer-gateway",
},
});
import pulumi
import pulumi_aws as aws
main = aws.ec2.CustomerGateway("main",
bgp_asn="65000",
ip_address="172.83.124.10",
type="ipsec.1",
tags={
"Name": "main-customer-gateway",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var main = new Aws.Ec2.CustomerGateway("main", new()
{
BgpAsn = "65000",
IpAddress = "172.83.124.10",
Type = "ipsec.1",
Tags =
{
{ "Name", "main-customer-gateway" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ec2.NewCustomerGateway(ctx, "main", &ec2.CustomerGatewayArgs{
BgpAsn: pulumi.String("65000"),
IpAddress: pulumi.String("172.83.124.10"),
Type: pulumi.String("ipsec.1"),
Tags: pulumi.StringMap{
"Name": pulumi.String("main-customer-gateway"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.CustomerGateway;
import com.pulumi.aws.ec2.CustomerGatewayArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var main = new CustomerGateway("main", CustomerGatewayArgs.builder()
.bgpAsn(65000)
.ipAddress("172.83.124.10")
.type("ipsec.1")
.tags(Map.of("Name", "main-customer-gateway"))
.build());
}
}
resources:
main:
type: aws:ec2:CustomerGateway
properties:
bgpAsn: 65000
ipAddress: 172.83.124.10
type: ipsec.1
tags:
Name: main-customer-gateway

Import

Using pulumi import, import Customer Gateways using the id. For example:

$ pulumi import aws:ec2/customerGateway:CustomerGateway main cgw-b4dc3961

Constructors

Link copied to clipboard
constructor(bgpAsn: Output<String>? = null, bgpAsnExtended: Output<String>? = null, certificateArn: Output<String>? = null, deviceName: Output<String>? = null, ipAddress: Output<String>? = null, tags: Output<Map<String, String>>? = null, type: Output<String>? = null)

Properties

Link copied to clipboard
val bgpAsn: Output<String>? = null

The gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN). Valid values are from 1 to 2147483647. Conflicts with bgp_asn_extended.

Link copied to clipboard
val bgpAsnExtended: Output<String>? = null

The gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN). Valid values are from 2147483648 to 4294967295 Conflicts with bgp_asn.

Link copied to clipboard
val certificateArn: Output<String>? = null

The Amazon Resource Name (ARN) for the customer gateway certificate.

Link copied to clipboard
val deviceName: Output<String>? = null

A name for the customer gateway device.

Link copied to clipboard
val ipAddress: Output<String>? = null

The IPv4 address for the customer gateway device's outside interface.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Tags to apply to the gateway. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val type: Output<String>? = null

The type of customer gateway. The only type AWS supports at this time is "ipsec.1".

Functions

Link copied to clipboard
open override fun toJava(): CustomerGatewayArgs