AttachmentAccepterArgs

data class AttachmentAccepterArgs(val attachmentId: Output<String>? = null, val attachmentType: Output<String>? = null) : ConvertibleToJava<AttachmentAccepterArgs>

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}

Constructors

Link copied to clipboard
constructor(attachmentId: Output<String>? = null, attachmentType: Output<String>? = null)

Properties

Link copied to clipboard
val attachmentId: Output<String>? = null

The ID of the attachment.

Link copied to clipboard
val attachmentType: Output<String>? = null

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

Functions

Link copied to clipboard
open override fun toJava(): AttachmentAccepterArgs