DxGatewayAttachment

class DxGatewayAttachment : KotlinCustomResource

Resource for managing an AWS Network Manager Direct Connect (DX) Gateway Attachment.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.networkmanager.DxGatewayAttachment("test", {
coreNetworkId: testAwsNetworkmanagerCoreNetworkPolicyAttachment.coreNetworkId,
directConnectGatewayArn: `arn:aws:directconnect::${current.accountId}:dx-gateway/${testAwsDxGateway.id}`,
edgeLocations: [currentAwsRegion.name],
});
import pulumi
import pulumi_aws as aws
test = aws.networkmanager.DxGatewayAttachment("test",
core_network_id=test_aws_networkmanager_core_network_policy_attachment["coreNetworkId"],
direct_connect_gateway_arn=f"arn:aws:directconnect::{current['accountId']}:dx-gateway/{test_aws_dx_gateway['id']}",
edge_locations=[current_aws_region["name"]])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = new Aws.NetworkManager.DxGatewayAttachment("test", new()
{
CoreNetworkId = testAwsNetworkmanagerCoreNetworkPolicyAttachment.CoreNetworkId,
DirectConnectGatewayArn = $"arn:aws:directconnect::{current.AccountId}:dx-gateway/{testAwsDxGateway.Id}",
EdgeLocations = new[]
{
currentAwsRegion.Name,
},
});
});
package main
import (
"fmt"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/networkmanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := networkmanager.NewDxGatewayAttachment(ctx, "test", &networkmanager.DxGatewayAttachmentArgs{
CoreNetworkId: pulumi.Any(testAwsNetworkmanagerCoreNetworkPolicyAttachment.CoreNetworkId),
DirectConnectGatewayArn: pulumi.Sprintf("arn:aws:directconnect::%v:dx-gateway/%v", current.AccountId, testAwsDxGateway.Id),
EdgeLocations: pulumi.StringArray{
currentAwsRegion.Name,
},
})
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.networkmanager.DxGatewayAttachment;
import com.pulumi.aws.networkmanager.DxGatewayAttachmentArgs;
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 test = new DxGatewayAttachment("test", DxGatewayAttachmentArgs.builder()
.coreNetworkId(testAwsNetworkmanagerCoreNetworkPolicyAttachment.coreNetworkId())
.directConnectGatewayArn(String.format("arn:aws:directconnect::%s:dx-gateway/%s", current.accountId(),testAwsDxGateway.id()))
.edgeLocations(currentAwsRegion.name())
.build());
}
}
resources:
test:
type: aws:networkmanager:DxGatewayAttachment
properties:
coreNetworkId: ${testAwsNetworkmanagerCoreNetworkPolicyAttachment.coreNetworkId}
directConnectGatewayArn: arn:aws:directconnect::${current.accountId}:dx-gateway/${testAwsDxGateway.id}
edgeLocations:
- ${currentAwsRegion.name}

Import

Using pulumi import, import Network Manager DX Gateway Attachment using the id. For example:

$ pulumi import aws:networkmanager/dxGatewayAttachment:DxGatewayAttachment example attachment-1a2b3c4d5e6f7g

Properties

Link copied to clipboard
val arn: Output<String>
Link copied to clipboard

Policy rule number associated with the attachment.

Link copied to clipboard
val attachmentType: Output<String>

Type of attachment.

Link copied to clipboard
val coreNetworkArn: Output<String>

ARN of the core network for the attachment.

Link copied to clipboard
val coreNetworkId: Output<String>

ID of the Cloud WAN core network to which the Direct Connect gateway attachment should be attached.

Link copied to clipboard

ARN of the Direct Connect gateway attachment.

Link copied to clipboard
val edgeLocations: Output<List<String>>

One or more core network edge locations to associate with the Direct Connect gateway attachment. The following arguments are optional:

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val ownerAccountId: Output<String>

ID of the attachment account owner.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val segmentName: Output<String>

Name of the segment attachment.

Link copied to clipboard
val state: Output<String>

State of the attachment.

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

Key-value tags for the attachment. 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 tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
Link copied to clipboard
val urn: Output<String>