Class HostedTransitVirtualInterfaceAcceptor
Provides a resource to manage the accepter's side of a Direct Connect hosted transit virtual interface. This resource accepts ownership of a transit virtual interface created by another AWS account.
NOTE: AWS allows a Direct Connect hosted transit virtual interface to be deleted from either the allocator's or accepter's side. However, this provider only allows the Direct Connect hosted transit virtual interface to be deleted from the allocator's side by removing the corresponding
aws.directconnect.HostedTransitVirtualInterfaceresource from your configuration. Removing aaws.directconnect.HostedTransitVirtualInterfaceAcceptorresource from your configuration will remove it from your statefile and management, but will not delete the Direct Connect virtual interface.
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.HostedTransitVirtualInterface("creator", new Aws.DirectConnect.HostedTransitVirtualInterfaceArgs
{
AddressFamily = "ipv4",
BgpAsn = 65352,
ConnectionId = "dxcon-zzzzzzzz",
OwnerAccountId = accepterCallerIdentity.Apply(accepterCallerIdentity => accepterCallerIdentity.AccountId),
Vlan = 4094,
});
// Accepter's side of the VIF.
var example = new Aws.DirectConnect.Gateway("example", new Aws.DirectConnect.GatewayArgs
{
AmazonSideAsn = 64512,
});
var accepterHostedTransitVirtualInterfaceAcceptor = new Aws.DirectConnect.HostedTransitVirtualInterfaceAcceptor("accepterHostedTransitVirtualInterfaceAcceptor", new Aws.DirectConnect.HostedTransitVirtualInterfaceAcceptorArgs
{
DxGatewayId = example.Id,
Tags =
{
{ "Side", "Accepter" },
},
VirtualInterfaceId = creator.Id,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.DirectConnect
Assembly: Pulumi.Aws.dll
Syntax
public class HostedTransitVirtualInterfaceAcceptor : CustomResource
Constructors
View SourceHostedTransitVirtualInterfaceAcceptor(String, HostedTransitVirtualInterfaceAcceptorArgs, CustomResourceOptions)
Create a HostedTransitVirtualInterfaceAcceptor resource with the given unique name, arguments, and options.
Declaration
public HostedTransitVirtualInterfaceAcceptor(string name, HostedTransitVirtualInterfaceAcceptorArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| HostedTransitVirtualInterfaceAcceptorArgs | 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> |
Methods
View SourceGet(String, Input<String>, HostedTransitVirtualInterfaceAcceptorState, CustomResourceOptions)
Get an existing HostedTransitVirtualInterfaceAcceptor resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static HostedTransitVirtualInterfaceAcceptor Get(string name, Input<string> id, HostedTransitVirtualInterfaceAcceptorState 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. |
| HostedTransitVirtualInterfaceAcceptorState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| HostedTransitVirtualInterfaceAcceptor |