Class HostedPrivateVirtualInterfaceAccepter
Provides a resource to manage the accepter's side of a Direct Connect hosted private virtual interface. This resource accepts ownership of a private virtual interface created by another AWS account.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var accepter = new Aws.Provider("accepter", new Aws.ProviderArgs
{
});
var accepterCallerIdentity = Output.Create(Aws.GetCallerIdentity.InvokeAsync());
// Creator's side of the VIF
var creator = new Aws.DirectConnect.HostedPrivateVirtualInterface("creator", new Aws.DirectConnect.HostedPrivateVirtualInterfaceArgs
{
AddressFamily = "ipv4",
BgpAsn = 65352,
ConnectionId = "dxcon-zzzzzzzz",
OwnerAccountId = accepterCallerIdentity.Apply(accepterCallerIdentity => accepterCallerIdentity.AccountId),
Vlan = 4094,
});
// Accepter's side of the VIF.
var vpnGw = new Aws.Ec2.VpnGateway("vpnGw", new Aws.Ec2.VpnGatewayArgs
{
});
var accepterHostedPrivateVirtualInterfaceAccepter = new Aws.DirectConnect.HostedPrivateVirtualInterfaceAccepter("accepterHostedPrivateVirtualInterfaceAccepter", new Aws.DirectConnect.HostedPrivateVirtualInterfaceAccepterArgs
{
Tags =
{
{ "Side", "Accepter" },
},
VirtualInterfaceId = creator.Id,
VpnGatewayId = vpnGw.Id,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.DirectConnect
Assembly: Pulumi.Aws.dll
Syntax
public class HostedPrivateVirtualInterfaceAccepter : CustomResource
Constructors
View SourceHostedPrivateVirtualInterfaceAccepter(String, HostedPrivateVirtualInterfaceAccepterArgs, CustomResourceOptions)
Create a HostedPrivateVirtualInterfaceAccepter resource with the given unique name, arguments, and options.
Declaration
public HostedPrivateVirtualInterfaceAccepter(string name, HostedPrivateVirtualInterfaceAccepterArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| HostedPrivateVirtualInterfaceAccepterArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceArn
The ARN of the virtual interface.
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DxGatewayId
The ID of the Direct Connect gateway to which to connect the virtual interface.
Declaration
public Output<string> DxGatewayId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tags
A map of tags to assign to the resource.
Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
VirtualInterfaceId
The ID of the Direct Connect virtual interface to accept.
Declaration
public Output<string> VirtualInterfaceId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
VpnGatewayId
The ID of the virtual private gateway to which to connect the virtual interface.
Declaration
public Output<string> VpnGatewayId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, HostedPrivateVirtualInterfaceAccepterState, CustomResourceOptions)
Get an existing HostedPrivateVirtualInterfaceAccepter resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static HostedPrivateVirtualInterfaceAccepter Get(string name, Input<string> id, HostedPrivateVirtualInterfaceAccepterState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| HostedPrivateVirtualInterfaceAccepterState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| HostedPrivateVirtualInterfaceAccepter |