getConnector

Get a Serverless VPC Access connector. To get more information about Connector, see:

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.vpcaccess.VpcaccessFunctions;
import com.pulumi.gcp.vpcaccess.inputs.GetConnectorArgs;
import com.pulumi.gcp.vpcaccess.Connector;
import com.pulumi.gcp.vpcaccess.ConnectorArgs;
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 sample = VpcaccessFunctions.getConnector(GetConnectorArgs.builder()
.name("vpc-con")
.build());
var connector = new Connector("connector", ConnectorArgs.builder()
.ipCidrRange("10.8.0.0/28")
.network("default")
.region("us-central1")
.build());
}
}

Return

A collection of values returned by getConnector.

Parameters

argument

A collection of arguments for invoking getConnector.


suspend fun getConnector(name: String, project: String? = null, region: String? = null): GetConnectorResult

Return

A collection of values returned by getConnector.

Parameters

name

Name of the resource.

project

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

region

The region in which the resource belongs. If it is not provided, the provider region is used.

See also


Return

A collection of values returned by getConnector.

Parameters

argument

Builder for com.pulumi.gcp.vpcaccess.kotlin.inputs.GetConnectorPlainArgs.

See also