CarrierGatewayArgs

data class CarrierGatewayArgs(val tags: Output<Map<String, String>>? = null, val vpcId: Output<String>? = null) : ConvertibleToJava<CarrierGatewayArgs>

Manages an EC2 Carrier Gateway. See the AWS documentation for more information.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.CarrierGateway;
import com.pulumi.aws.ec2.CarrierGatewayArgs;
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 CarrierGateway("example", CarrierGatewayArgs.builder()
.vpcId(aws_vpc.example().id())
.tags(Map.of("Name", "example-carrier-gateway"))
.build());
}
}

Import

aws_ec2_carrier_gateway can be imported using the carrier gateway's ID, e.g.,

$ pulumi import aws:ec2/carrierGateway:CarrierGateway example cgw-12345

Constructors

Link copied to clipboard
constructor(tags: Output<Map<String, String>>? = null, vpcId: Output<String>? = null)

Properties

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

A map of tags to assign to the resource. 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 vpcId: Output<String>? = null

The ID of the VPC to associate with the carrier gateway.

Functions

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