com.pulumi.aws.apigatewayv2.kotlin.VpcLinkArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.apigatewayv2.kotlin
import com.pulumi.aws.apigatewayv2.VpcLinkArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* 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
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.apigatewayv2.VpcLink("example", {
* name: "example",
* securityGroupIds: [exampleAwsSecurityGroup.id],
* subnetIds: exampleAwsSubnets.ids,
* tags: {
* Usage: "example",
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.apigatewayv2.VpcLink("example",
* name="example",
* security_group_ids=[example_aws_security_group["id"]],
* subnet_ids=example_aws_subnets["ids"],
* tags={
* "Usage": "example",
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.ApiGatewayV2.VpcLink("example", new()
* {
* Name = "example",
* SecurityGroupIds = new[]
* {
* exampleAwsSecurityGroup.Id,
* },
* SubnetIds = exampleAwsSubnets.Ids,
* Tags =
* {
* { "Usage", "example" },
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/apigatewayv2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := apigatewayv2.NewVpcLink(ctx, "example", &apigatewayv2.VpcLinkArgs{
* Name: pulumi.String("example"),
* SecurityGroupIds: pulumi.StringArray{
* exampleAwsSecurityGroup.Id,
* },
* SubnetIds: pulumi.Any(exampleAwsSubnets.Ids),
* Tags: pulumi.StringMap{
* "Usage": pulumi.String("example"),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* 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()
* .name("example")
* .securityGroupIds(exampleAwsSecurityGroup.id())
* .subnetIds(exampleAwsSubnets.ids())
* .tags(Map.of("Usage", "example"))
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:apigatewayv2:VpcLink
* properties:
* name: example
* securityGroupIds:
* - ${exampleAwsSecurityGroup.id}
* subnetIds: ${exampleAwsSubnets.ids}
* tags:
* Usage: example
* ```
*
* ## Import
* Using `pulumi import`, import `aws_apigatewayv2_vpc_link` using the VPC Link identifier. For example:
* ```sh
* $ pulumi import aws:apigatewayv2/vpcLink:VpcLink example aabbccddee
* ```
* @property name Name of the VPC Link. Must be between 1 and 128 characters in length.
* @property securityGroupIds Security group IDs for the VPC Link.
* @property subnetIds Subnet IDs for the VPC Link.
* @property tags 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.
*/
public data class VpcLinkArgs(
public val name: Output? = null,
public val securityGroupIds: Output>? = null,
public val subnetIds: Output>? = null,
public val tags: Output
© 2015 - 2024 Weber Informatics LLC | Privacy Policy