getVpcLink

Use this data source to get the id of a VPC Link in API Gateway. To fetch the VPC Link you must provide a name to match against. As there is no unique name constraint on API Gateway VPC Links this data source will error if there is more than one match.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.apigateway.ApigatewayFunctions;
import com.pulumi.aws.apigateway.inputs.GetVpcLinkArgs;
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) {
final var myApiGatewayVpcLink = ApigatewayFunctions.getVpcLink(GetVpcLinkArgs.builder()
.name("my-vpc-link")
.build());
}
}

Return

A collection of values returned by getVpcLink.

Parameters

argument

A collection of arguments for invoking getVpcLink.


suspend fun getVpcLink(name: String, tags: Map<String, String>? = null): GetVpcLinkResult

Return

A collection of values returned by getVpcLink.

Parameters

name

Name of the API Gateway VPC Link to look up. If no API Gateway VPC Link is found with this name, an error will be returned. If multiple API Gateway VPC Links are found with this name, an error will be returned.

tags

Key-value map of resource tags

See also


suspend fun getVpcLink(argument: suspend GetVpcLinkPlainArgsBuilder.() -> Unit): GetVpcLinkResult

Return

A collection of values returned by getVpcLink.

Parameters

argument

Builder for com.pulumi.aws.apigateway.kotlin.inputs.GetVpcLinkPlainArgs.

See also