AttachmentAccepter

class AttachmentAccepter : KotlinCustomResource

Resource for managing an AWS Network Manager Attachment Accepter.

Example Usage

Example with VPC attachment

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.networkmanager.AttachmentAccepter("test", {
attachmentId: vpc.id,
attachmentType: vpc.attachmentType,
});
import pulumi
import pulumi_aws as aws
test = aws.networkmanager.AttachmentAccepter("test",
attachment_id=vpc["id"],
attachment_type=vpc["attachmentType"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = new Aws.NetworkManager.AttachmentAccepter("test", new()
{
AttachmentId = vpc.Id,
AttachmentType = vpc.AttachmentType,
});
});
package main
import (
"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.NewAttachmentAccepter(ctx, "test", &networkmanager.AttachmentAccepterArgs{
AttachmentId: pulumi.Any(vpc.Id),
AttachmentType: pulumi.Any(vpc.AttachmentType),
})
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.AttachmentAccepter;
import com.pulumi.aws.networkmanager.AttachmentAccepterArgs;
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 AttachmentAccepter("test", AttachmentAccepterArgs.builder()
.attachmentId(vpc.id())
.attachmentType(vpc.attachmentType())
.build());
}
}
resources:
test:
type: aws:networkmanager:AttachmentAccepter
properties:
attachmentId: ${vpc.id}
attachmentType: ${vpc.attachmentType}

Example with site-to-site VPN attachment

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.networkmanager.AttachmentAccepter("test", {
attachmentId: vpn.id,
attachmentType: vpn.attachmentType,
});
import pulumi
import pulumi_aws as aws
test = aws.networkmanager.AttachmentAccepter("test",
attachment_id=vpn["id"],
attachment_type=vpn["attachmentType"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = new Aws.NetworkManager.AttachmentAccepter("test", new()
{
AttachmentId = vpn.Id,
AttachmentType = vpn.AttachmentType,
});
});
package main
import (
"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.NewAttachmentAccepter(ctx, "test", &networkmanager.AttachmentAccepterArgs{
AttachmentId: pulumi.Any(vpn.Id),
AttachmentType: pulumi.Any(vpn.AttachmentType),
})
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.AttachmentAccepter;
import com.pulumi.aws.networkmanager.AttachmentAccepterArgs;
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 AttachmentAccepter("test", AttachmentAccepterArgs.builder()
.attachmentId(vpn.id())
.attachmentType(vpn.attachmentType())
.build());
}
}
resources:
test:
type: aws:networkmanager:AttachmentAccepter
properties:
attachmentId: ${vpn.id}
attachmentType: ${vpn.attachmentType}

Properties

Link copied to clipboard
val attachmentId: Output<String>

The ID of the attachment.

Link copied to clipboard

The policy rule number associated with the attachment.

Link copied to clipboard
val attachmentType: Output<String>

The type of attachment. Valid values can be found in the AWS Documentation

Link copied to clipboard
val coreNetworkArn: Output<String>

The ARN of a core network.

Link copied to clipboard
val coreNetworkId: Output<String>

The id of a core network.

Link copied to clipboard
val edgeLocation: Output<String>

The Region where the edge is located. This is returned for all attachment types except a Direct Connect gateway attachment, which instead returns edge_locations.

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

The edge locations that the Direct Connect gateway is associated with. This is returned only for Direct Connect gateway attachments. All other attachment types return edge_location

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

The 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 resourceArn: Output<String>

The attachment resource ARN.

Link copied to clipboard
val segmentName: Output<String>

The name of the segment attachment.

Link copied to clipboard
val state: Output<String>

The state of the attachment.

Link copied to clipboard
val urn: Output<String>