Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.directconnect.kotlin
import com.pulumi.aws.directconnect.PrivateVirtualInterfaceArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Provides a Direct Connect private virtual interface resource.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const foo = new aws.directconnect.PrivateVirtualInterface("foo", {
* connectionId: "dxcon-zzzzzzzz",
* name: "vif-foo",
* vlan: 4094,
* addressFamily: "ipv4",
* bgpAsn: 65352,
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* foo = aws.directconnect.PrivateVirtualInterface("foo",
* connection_id="dxcon-zzzzzzzz",
* name="vif-foo",
* vlan=4094,
* address_family="ipv4",
* bgp_asn=65352)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var foo = new Aws.DirectConnect.PrivateVirtualInterface("foo", new()
* {
* ConnectionId = "dxcon-zzzzzzzz",
* Name = "vif-foo",
* Vlan = 4094,
* AddressFamily = "ipv4",
* BgpAsn = 65352,
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/directconnect"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := directconnect.NewPrivateVirtualInterface(ctx, "foo", &directconnect.PrivateVirtualInterfaceArgs{
* ConnectionId: pulumi.String("dxcon-zzzzzzzz"),
* Name: pulumi.String("vif-foo"),
* Vlan: pulumi.Int(4094),
* AddressFamily: pulumi.String("ipv4"),
* BgpAsn: pulumi.Int(65352),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.directconnect.PrivateVirtualInterface;
* import com.pulumi.aws.directconnect.PrivateVirtualInterfaceArgs;
* 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 foo = new PrivateVirtualInterface("foo", PrivateVirtualInterfaceArgs.builder()
* .connectionId("dxcon-zzzzzzzz")
* .name("vif-foo")
* .vlan(4094)
* .addressFamily("ipv4")
* .bgpAsn(65352)
* .build());
* }
* }
* ```
* ```yaml
* resources:
* foo:
* type: aws:directconnect:PrivateVirtualInterface
* properties:
* connectionId: dxcon-zzzzzzzz
* name: vif-foo
* vlan: 4094
* addressFamily: ipv4
* bgpAsn: 65352
* ```
*
* ## Import
* Using `pulumi import`, import Direct Connect private virtual interfaces using the VIF `id`. For example:
* ```sh
* $ pulumi import aws:directconnect/privateVirtualInterface:PrivateVirtualInterface test dxvif-33cc44dd
* ```
* @property addressFamily The address family for the BGP peer. `ipv4 ` or `ipv6`.
* @property amazonAddress The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.
* @property bgpAsn The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
* @property bgpAuthKey The authentication key for BGP configuration.
* @property connectionId The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.
* @property customerAddress The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.
* @property dxGatewayId The ID of the Direct Connect gateway to which to connect the virtual interface.
* @property mtu The maximum transmission unit (MTU) is the size, in bytes, of the largest permissible packet that can be passed over the connection.
* The MTU of a virtual private interface can be either `1500` or `9001` (jumbo frames). Default is `1500`.
* @property name The name for the virtual interface.
* @property sitelinkEnabled Indicates whether to enable or disable SiteLink.
* @property tags A map of tags to assign to the resource. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
* @property vlan The VLAN ID.
* @property vpnGatewayId The ID of the virtual private gateway to which to connect the virtual interface.
*/
public data class PrivateVirtualInterfaceArgs(
public val addressFamily: Output? = null,
public val amazonAddress: Output? = null,
public val bgpAsn: Output? = null,
public val bgpAuthKey: Output? = null,
public val connectionId: Output? = null,
public val customerAddress: Output? = null,
public val dxGatewayId: Output? = null,
public val mtu: Output? = null,
public val name: Output? = null,
public val sitelinkEnabled: Output? = null,
public val tags: Output