Attachment Accepter
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,
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
test = aws.networkmanager.AttachmentAccepter("test",
attachment_id=vpc["id"],
attachment_type=vpc["attachmentType"])
Content copied to clipboard
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,
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
resources:
test:
type: aws:networkmanager:AttachmentAccepter
properties:
attachmentId: ${vpc.id}
attachmentType: ${vpc.attachmentType}
Content copied to clipboard
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,
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
test = aws.networkmanager.AttachmentAccepter("test",
attachment_id=vpn["id"],
attachment_type=vpn["attachmentType"])
Content copied to clipboard
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,
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
resources:
test:
type: aws:networkmanager:AttachmentAccepter
properties:
attachmentId: ${vpn.id}
attachmentType: ${vpn.attachmentType}
Content copied to clipboard
Properties
Link copied to clipboard
The ID of the attachment.
Link copied to clipboard
The policy rule number associated with the attachment.
Link copied to clipboard
The type of attachment. Valid values can be found in the AWS Documentation
Link copied to clipboard
The ARN of a core network.
Link copied to clipboard
The id of a core network.
Link copied to clipboard
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
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
The ID of the attachment account owner.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The attachment resource ARN.
Link copied to clipboard
The name of the segment attachment.