Class HostedPublicVirtualInterfaceAccepter
Provides a resource to manage the accepter's side of a Direct Connect hosted public virtual interface. This resource accepts ownership of a public 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.HostedPublicVirtualInterface("creator", new Aws.DirectConnect.HostedPublicVirtualInterfaceArgs
{
AddressFamily = "ipv4",
AmazonAddress = "175.45.176.2/30",
BgpAsn = 65352,
ConnectionId = "dxcon-zzzzzzzz",
CustomerAddress = "175.45.176.1/30",
OwnerAccountId = accepterCallerIdentity.Apply(accepterCallerIdentity => accepterCallerIdentity.AccountId),
RouteFilterPrefixes =
{
"210.52.109.0/24",
"175.45.176.0/22",
},
Vlan = 4094,
});
// Accepter's side of the VIF.
var accepterHostedPublicVirtualInterfaceAccepter = new Aws.DirectConnect.HostedPublicVirtualInterfaceAccepter("accepterHostedPublicVirtualInterfaceAccepter", new Aws.DirectConnect.HostedPublicVirtualInterfaceAccepterArgs
{
Tags =
{
{ "Side", "Accepter" },
},
VirtualInterfaceId = creator.Id,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.DirectConnect
Assembly: Pulumi.Aws.dll
Syntax
public class HostedPublicVirtualInterfaceAccepter : CustomResource
Constructors
View SourceHostedPublicVirtualInterfaceAccepter(String, HostedPublicVirtualInterfaceAccepterArgs, CustomResourceOptions)
Create a HostedPublicVirtualInterfaceAccepter resource with the given unique name, arguments, and options.
Declaration
public HostedPublicVirtualInterfaceAccepter(string name, HostedPublicVirtualInterfaceAccepterArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| HostedPublicVirtualInterfaceAccepterArgs | 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> |
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>, HostedPublicVirtualInterfaceAccepterState, CustomResourceOptions)
Get an existing HostedPublicVirtualInterfaceAccepter resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static HostedPublicVirtualInterfaceAccepter Get(string name, Input<string> id, HostedPublicVirtualInterfaceAccepterState 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. |
| HostedPublicVirtualInterfaceAccepterState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| HostedPublicVirtualInterfaceAccepter |