VpcLink

class VpcLink : KotlinCustomResource

Manages an Amazon API Gateway Version 2 VPC Link.

Note: Amazon API Gateway Version 2 VPC Links enable private integrations that connect HTTP APIs to private resources in a VPC. To enable private integration for REST APIs, use the Amazon API Gateway Version 1 VPC Link resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.apigatewayv2.VpcLink;
import com.pulumi.aws.apigatewayv2.VpcLinkArgs;
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 VpcLink("example", VpcLinkArgs.builder()
.securityGroupIds(data.aws_security_group().example().id())
.subnetIds(data.aws_subnet_ids().example().ids())
.tags(Map.of("Usage", "example"))
.build());
}
}

Import

aws_apigatewayv2_vpc_link can be imported by using the VPC Link identifier, e.g.,

$ pulumi import aws:apigatewayv2/vpcLink:VpcLink example aabbccddee

Properties

Link copied to clipboard
val arn: Output<String>

VPC Link ARN.

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

Name of the VPC Link. Must be between 1 and 128 characters in length.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Security group IDs for the VPC Link.

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

Subnet IDs for the VPC Link.

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

Map of tags to assign to the VPC Link. 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 tagsAll: Output<Map<String, String>>

Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>