VpcAttachmentArgs

data class VpcAttachmentArgs(val coreNetworkId: Output<String>? = null, val options: Output<VpcAttachmentOptionsArgs>? = null, val subnetArns: Output<List<String>>? = null, val tags: Output<Map<String, String>>? = null, val vpcArn: Output<String>? = null) : ConvertibleToJava<VpcAttachmentArgs>

Resource for managing an AWS NetworkManager VpcAttachment.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.networkmanager.VpcAttachment;
import com.pulumi.aws.networkmanager.VpcAttachmentArgs;
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 example = new VpcAttachment("example", VpcAttachmentArgs.builder()
.subnetArns(aws_subnet.example().arn())
.coreNetworkId(awscc_networkmanager_core_network.example().id())
.vpcArn(aws_vpc.example().arn())
.build());
}
}

Import

aws_networkmanager_vpc_attachment can be imported using the attachment ID, e.g.

$ pulumi import aws:networkmanager/vpcAttachment:VpcAttachment example attachment-0f8fa60d2238d1bd8

Constructors

Link copied to clipboard
constructor(coreNetworkId: Output<String>? = null, options: Output<VpcAttachmentOptionsArgs>? = null, subnetArns: Output<List<String>>? = null, tags: Output<Map<String, String>>? = null, vpcArn: Output<String>? = null)

Properties

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

The ID of a core network for the VPC attachment.

Link copied to clipboard
val options: Output<VpcAttachmentOptionsArgs>? = null

Options for the VPC attachment.

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

The subnet ARN of the VPC attachment.

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

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 vpcArn: Output<String>? = null

The ARN of the VPC. The following arguments are optional:

Functions

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