gcp.vpcaccess.Connector
Explore with Pulumi AI
Serverless VPC Access connector resource.
To get more information about Connector, see:
- API documentation
- How-to Guides
Example Usage
Vpc Access Connector
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var connector = new Gcp.VpcAccess.Connector("connector", new()
{
IpCidrRange = "10.8.0.0/28",
Network = "default",
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/vpcaccess"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vpcaccess.NewConnector(ctx, "connector", &vpcaccess.ConnectorArgs{
IpCidrRange: pulumi.String("10.8.0.0/28"),
Network: pulumi.String("default"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
var connector = new Connector("connector", ConnectorArgs.builder()
.ipCidrRange("10.8.0.0/28")
.network("default")
.build());
}
}
import pulumi
import pulumi_gcp as gcp
connector = gcp.vpcaccess.Connector("connector",
ip_cidr_range="10.8.0.0/28",
network="default")
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const connector = new gcp.vpcaccess.Connector("connector", {
ipCidrRange: "10.8.0.0/28",
network: "default",
});
resources:
connector:
type: gcp:vpcaccess:Connector
properties:
ipCidrRange: 10.8.0.0/28
network: default
Vpc Access Connector Shared Vpc
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var customTestNetwork = new Gcp.Compute.Network("customTestNetwork", new()
{
AutoCreateSubnetworks = false,
});
var customTestSubnetwork = new Gcp.Compute.Subnetwork("customTestSubnetwork", new()
{
IpCidrRange = "10.2.0.0/28",
Region = "us-central1",
Network = customTestNetwork.Id,
});
var connector = new Gcp.VpcAccess.Connector("connector", new()
{
Subnet = new Gcp.VpcAccess.Inputs.ConnectorSubnetArgs
{
Name = customTestSubnetwork.Name,
},
MachineType = "e2-standard-4",
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/vpcaccess"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
customTestNetwork, err := compute.NewNetwork(ctx, "customTestNetwork", &compute.NetworkArgs{
AutoCreateSubnetworks: pulumi.Bool(false),
})
if err != nil {
return err
}
customTestSubnetwork, err := compute.NewSubnetwork(ctx, "customTestSubnetwork", &compute.SubnetworkArgs{
IpCidrRange: pulumi.String("10.2.0.0/28"),
Region: pulumi.String("us-central1"),
Network: customTestNetwork.ID(),
})
if err != nil {
return err
}
_, err = vpcaccess.NewConnector(ctx, "connector", &vpcaccess.ConnectorArgs{
Subnet: &vpcaccess.ConnectorSubnetArgs{
Name: customTestSubnetwork.Name,
},
MachineType: pulumi.String("e2-standard-4"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.Network;
import com.pulumi.gcp.compute.NetworkArgs;
import com.pulumi.gcp.compute.Subnetwork;
import com.pulumi.gcp.compute.SubnetworkArgs;
import com.pulumi.gcp.vpcaccess.Connector;
import com.pulumi.gcp.vpcaccess.ConnectorArgs;
import com.pulumi.gcp.vpcaccess.inputs.ConnectorSubnetArgs;
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 customTestNetwork = new Network("customTestNetwork", NetworkArgs.builder()
.autoCreateSubnetworks(false)
.build());
var customTestSubnetwork = new Subnetwork("customTestSubnetwork", SubnetworkArgs.builder()
.ipCidrRange("10.2.0.0/28")
.region("us-central1")
.network(customTestNetwork.id())
.build());
var connector = new Connector("connector", ConnectorArgs.builder()
.subnet(ConnectorSubnetArgs.builder()
.name(customTestSubnetwork.name())
.build())
.machineType("e2-standard-4")
.build());
}
}
import pulumi
import pulumi_gcp as gcp
custom_test_network = gcp.compute.Network("customTestNetwork", auto_create_subnetworks=False)
custom_test_subnetwork = gcp.compute.Subnetwork("customTestSubnetwork",
ip_cidr_range="10.2.0.0/28",
region="us-central1",
network=custom_test_network.id)
connector = gcp.vpcaccess.Connector("connector",
subnet=gcp.vpcaccess.ConnectorSubnetArgs(
name=custom_test_subnetwork.name,
),
machine_type="e2-standard-4")
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const customTestNetwork = new gcp.compute.Network("customTestNetwork", {autoCreateSubnetworks: false});
const customTestSubnetwork = new gcp.compute.Subnetwork("customTestSubnetwork", {
ipCidrRange: "10.2.0.0/28",
region: "us-central1",
network: customTestNetwork.id,
});
const connector = new gcp.vpcaccess.Connector("connector", {
subnet: {
name: customTestSubnetwork.name,
},
machineType: "e2-standard-4",
});
resources:
connector:
type: gcp:vpcaccess:Connector
properties:
subnet:
name: ${customTestSubnetwork.name}
machineType: e2-standard-4
customTestSubnetwork:
type: gcp:compute:Subnetwork
properties:
ipCidrRange: 10.2.0.0/28
region: us-central1
network: ${customTestNetwork.id}
customTestNetwork:
type: gcp:compute:Network
properties:
autoCreateSubnetworks: false
Create Connector Resource
new Connector(name: string, args?: ConnectorArgs, opts?: CustomResourceOptions);
@overload
def Connector(resource_name: str,
opts: Optional[ResourceOptions] = None,
ip_cidr_range: Optional[str] = None,
machine_type: Optional[str] = None,
max_instances: Optional[int] = None,
max_throughput: Optional[int] = None,
min_instances: Optional[int] = None,
min_throughput: Optional[int] = None,
name: Optional[str] = None,
network: Optional[str] = None,
project: Optional[str] = None,
region: Optional[str] = None,
subnet: Optional[ConnectorSubnetArgs] = None)
@overload
def Connector(resource_name: str,
args: Optional[ConnectorArgs] = None,
opts: Optional[ResourceOptions] = None)
func NewConnector(ctx *Context, name string, args *ConnectorArgs, opts ...ResourceOption) (*Connector, error)
public Connector(string name, ConnectorArgs? args = null, CustomResourceOptions? opts = null)
public Connector(String name, ConnectorArgs args)
public Connector(String name, ConnectorArgs args, CustomResourceOptions options)
type: gcp:vpcaccess:Connector
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConnectorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ConnectorArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ConnectorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConnectorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConnectorArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Connector Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Connector resource accepts the following input properties:
- Ip
Cidr stringRange The range of internal addresses that follows RFC 4632 notation. Example:
10.132.0.0/28
.- Machine
Type string Machine type of VM Instance underlying connector. Default is e2-micro
- Max
Instances int Maximum value of instances in autoscaling group underlying the connector.
- Max
Throughput int Maximum throughput of the connector in Mbps, must be greater than
min_throughput
. Default is 300.- Min
Instances int Minimum value of instances in autoscaling group underlying the connector.
- Min
Throughput int Minimum throughput of the connector in Mbps. Default and min is 200.
- Name string
The name of the resource (Max 25 characters).
- Network string
Name or self_link of the VPC network. Required if
ip_cidr_range
is set.- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
Region where the VPC Access connector resides. If it is not provided, the provider region is used.
- Subnet
Connector
Subnet The subnet in which to house the connector Structure is documented below.
- Ip
Cidr stringRange The range of internal addresses that follows RFC 4632 notation. Example:
10.132.0.0/28
.- Machine
Type string Machine type of VM Instance underlying connector. Default is e2-micro
- Max
Instances int Maximum value of instances in autoscaling group underlying the connector.
- Max
Throughput int Maximum throughput of the connector in Mbps, must be greater than
min_throughput
. Default is 300.- Min
Instances int Minimum value of instances in autoscaling group underlying the connector.
- Min
Throughput int Minimum throughput of the connector in Mbps. Default and min is 200.
- Name string
The name of the resource (Max 25 characters).
- Network string
Name or self_link of the VPC network. Required if
ip_cidr_range
is set.- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
Region where the VPC Access connector resides. If it is not provided, the provider region is used.
- Subnet
Connector
Subnet Args The subnet in which to house the connector Structure is documented below.
- ip
Cidr StringRange The range of internal addresses that follows RFC 4632 notation. Example:
10.132.0.0/28
.- machine
Type String Machine type of VM Instance underlying connector. Default is e2-micro
- max
Instances Integer Maximum value of instances in autoscaling group underlying the connector.
- max
Throughput Integer Maximum throughput of the connector in Mbps, must be greater than
min_throughput
. Default is 300.- min
Instances Integer Minimum value of instances in autoscaling group underlying the connector.
- min
Throughput Integer Minimum throughput of the connector in Mbps. Default and min is 200.
- name String
The name of the resource (Max 25 characters).
- network String
Name or self_link of the VPC network. Required if
ip_cidr_range
is set.- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region String
Region where the VPC Access connector resides. If it is not provided, the provider region is used.
- subnet
Connector
Subnet The subnet in which to house the connector Structure is documented below.
- ip
Cidr stringRange The range of internal addresses that follows RFC 4632 notation. Example:
10.132.0.0/28
.- machine
Type string Machine type of VM Instance underlying connector. Default is e2-micro
- max
Instances number Maximum value of instances in autoscaling group underlying the connector.
- max
Throughput number Maximum throughput of the connector in Mbps, must be greater than
min_throughput
. Default is 300.- min
Instances number Minimum value of instances in autoscaling group underlying the connector.
- min
Throughput number Minimum throughput of the connector in Mbps. Default and min is 200.
- name string
The name of the resource (Max 25 characters).
- network string
Name or self_link of the VPC network. Required if
ip_cidr_range
is set.- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region string
Region where the VPC Access connector resides. If it is not provided, the provider region is used.
- subnet
Connector
Subnet The subnet in which to house the connector Structure is documented below.
- ip_
cidr_ strrange The range of internal addresses that follows RFC 4632 notation. Example:
10.132.0.0/28
.- machine_
type str Machine type of VM Instance underlying connector. Default is e2-micro
- max_
instances int Maximum value of instances in autoscaling group underlying the connector.
- max_
throughput int Maximum throughput of the connector in Mbps, must be greater than
min_throughput
. Default is 300.- min_
instances int Minimum value of instances in autoscaling group underlying the connector.
- min_
throughput int Minimum throughput of the connector in Mbps. Default and min is 200.
- name str
The name of the resource (Max 25 characters).
- network str
Name or self_link of the VPC network. Required if
ip_cidr_range
is set.- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region str
Region where the VPC Access connector resides. If it is not provided, the provider region is used.
- subnet
Connector
Subnet Args The subnet in which to house the connector Structure is documented below.
- ip
Cidr StringRange The range of internal addresses that follows RFC 4632 notation. Example:
10.132.0.0/28
.- machine
Type String Machine type of VM Instance underlying connector. Default is e2-micro
- max
Instances Number Maximum value of instances in autoscaling group underlying the connector.
- max
Throughput Number Maximum throughput of the connector in Mbps, must be greater than
min_throughput
. Default is 300.- min
Instances Number Minimum value of instances in autoscaling group underlying the connector.
- min
Throughput Number Minimum throughput of the connector in Mbps. Default and min is 200.
- name String
The name of the resource (Max 25 characters).
- network String
Name or self_link of the VPC network. Required if
ip_cidr_range
is set.- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region String
Region where the VPC Access connector resides. If it is not provided, the provider region is used.
- subnet Property Map
The subnet in which to house the connector Structure is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the Connector resource produces the following output properties:
- Connected
Projects List<string> List of projects using the connector.
- Id string
The provider-assigned unique ID for this managed resource.
- Self
Link string The fully qualified name of this VPC connector
- State string
State of the VPC access connector.
- Connected
Projects []string List of projects using the connector.
- Id string
The provider-assigned unique ID for this managed resource.
- Self
Link string The fully qualified name of this VPC connector
- State string
State of the VPC access connector.
- connected
Projects List<String> List of projects using the connector.
- id String
The provider-assigned unique ID for this managed resource.
- self
Link String The fully qualified name of this VPC connector
- state String
State of the VPC access connector.
- connected
Projects string[] List of projects using the connector.
- id string
The provider-assigned unique ID for this managed resource.
- self
Link string The fully qualified name of this VPC connector
- state string
State of the VPC access connector.
- connected_
projects Sequence[str] List of projects using the connector.
- id str
The provider-assigned unique ID for this managed resource.
- self_
link str The fully qualified name of this VPC connector
- state str
State of the VPC access connector.
- connected
Projects List<String> List of projects using the connector.
- id String
The provider-assigned unique ID for this managed resource.
- self
Link String The fully qualified name of this VPC connector
- state String
State of the VPC access connector.
Look up Existing Connector Resource
Get an existing Connector resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ConnectorState, opts?: CustomResourceOptions): Connector
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
connected_projects: Optional[Sequence[str]] = None,
ip_cidr_range: Optional[str] = None,
machine_type: Optional[str] = None,
max_instances: Optional[int] = None,
max_throughput: Optional[int] = None,
min_instances: Optional[int] = None,
min_throughput: Optional[int] = None,
name: Optional[str] = None,
network: Optional[str] = None,
project: Optional[str] = None,
region: Optional[str] = None,
self_link: Optional[str] = None,
state: Optional[str] = None,
subnet: Optional[ConnectorSubnetArgs] = None) -> Connector
func GetConnector(ctx *Context, name string, id IDInput, state *ConnectorState, opts ...ResourceOption) (*Connector, error)
public static Connector Get(string name, Input<string> id, ConnectorState? state, CustomResourceOptions? opts = null)
public static Connector get(String name, Output<String> id, ConnectorState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Connected
Projects List<string> List of projects using the connector.
- Ip
Cidr stringRange The range of internal addresses that follows RFC 4632 notation. Example:
10.132.0.0/28
.- Machine
Type string Machine type of VM Instance underlying connector. Default is e2-micro
- Max
Instances int Maximum value of instances in autoscaling group underlying the connector.
- Max
Throughput int Maximum throughput of the connector in Mbps, must be greater than
min_throughput
. Default is 300.- Min
Instances int Minimum value of instances in autoscaling group underlying the connector.
- Min
Throughput int Minimum throughput of the connector in Mbps. Default and min is 200.
- Name string
The name of the resource (Max 25 characters).
- Network string
Name or self_link of the VPC network. Required if
ip_cidr_range
is set.- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
Region where the VPC Access connector resides. If it is not provided, the provider region is used.
- Self
Link string The fully qualified name of this VPC connector
- State string
State of the VPC access connector.
- Subnet
Connector
Subnet The subnet in which to house the connector Structure is documented below.
- Connected
Projects []string List of projects using the connector.
- Ip
Cidr stringRange The range of internal addresses that follows RFC 4632 notation. Example:
10.132.0.0/28
.- Machine
Type string Machine type of VM Instance underlying connector. Default is e2-micro
- Max
Instances int Maximum value of instances in autoscaling group underlying the connector.
- Max
Throughput int Maximum throughput of the connector in Mbps, must be greater than
min_throughput
. Default is 300.- Min
Instances int Minimum value of instances in autoscaling group underlying the connector.
- Min
Throughput int Minimum throughput of the connector in Mbps. Default and min is 200.
- Name string
The name of the resource (Max 25 characters).
- Network string
Name or self_link of the VPC network. Required if
ip_cidr_range
is set.- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
Region where the VPC Access connector resides. If it is not provided, the provider region is used.
- Self
Link string The fully qualified name of this VPC connector
- State string
State of the VPC access connector.
- Subnet
Connector
Subnet Args The subnet in which to house the connector Structure is documented below.
- connected
Projects List<String> List of projects using the connector.
- ip
Cidr StringRange The range of internal addresses that follows RFC 4632 notation. Example:
10.132.0.0/28
.- machine
Type String Machine type of VM Instance underlying connector. Default is e2-micro
- max
Instances Integer Maximum value of instances in autoscaling group underlying the connector.
- max
Throughput Integer Maximum throughput of the connector in Mbps, must be greater than
min_throughput
. Default is 300.- min
Instances Integer Minimum value of instances in autoscaling group underlying the connector.
- min
Throughput Integer Minimum throughput of the connector in Mbps. Default and min is 200.
- name String
The name of the resource (Max 25 characters).
- network String
Name or self_link of the VPC network. Required if
ip_cidr_range
is set.- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region String
Region where the VPC Access connector resides. If it is not provided, the provider region is used.
- self
Link String The fully qualified name of this VPC connector
- state String
State of the VPC access connector.
- subnet
Connector
Subnet The subnet in which to house the connector Structure is documented below.
- connected
Projects string[] List of projects using the connector.
- ip
Cidr stringRange The range of internal addresses that follows RFC 4632 notation. Example:
10.132.0.0/28
.- machine
Type string Machine type of VM Instance underlying connector. Default is e2-micro
- max
Instances number Maximum value of instances in autoscaling group underlying the connector.
- max
Throughput number Maximum throughput of the connector in Mbps, must be greater than
min_throughput
. Default is 300.- min
Instances number Minimum value of instances in autoscaling group underlying the connector.
- min
Throughput number Minimum throughput of the connector in Mbps. Default and min is 200.
- name string
The name of the resource (Max 25 characters).
- network string
Name or self_link of the VPC network. Required if
ip_cidr_range
is set.- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region string
Region where the VPC Access connector resides. If it is not provided, the provider region is used.
- self
Link string The fully qualified name of this VPC connector
- state string
State of the VPC access connector.
- subnet
Connector
Subnet The subnet in which to house the connector Structure is documented below.
- connected_
projects Sequence[str] List of projects using the connector.
- ip_
cidr_ strrange The range of internal addresses that follows RFC 4632 notation. Example:
10.132.0.0/28
.- machine_
type str Machine type of VM Instance underlying connector. Default is e2-micro
- max_
instances int Maximum value of instances in autoscaling group underlying the connector.
- max_
throughput int Maximum throughput of the connector in Mbps, must be greater than
min_throughput
. Default is 300.- min_
instances int Minimum value of instances in autoscaling group underlying the connector.
- min_
throughput int Minimum throughput of the connector in Mbps. Default and min is 200.
- name str
The name of the resource (Max 25 characters).
- network str
Name or self_link of the VPC network. Required if
ip_cidr_range
is set.- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region str
Region where the VPC Access connector resides. If it is not provided, the provider region is used.
- self_
link str The fully qualified name of this VPC connector
- state str
State of the VPC access connector.
- subnet
Connector
Subnet Args The subnet in which to house the connector Structure is documented below.
- connected
Projects List<String> List of projects using the connector.
- ip
Cidr StringRange The range of internal addresses that follows RFC 4632 notation. Example:
10.132.0.0/28
.- machine
Type String Machine type of VM Instance underlying connector. Default is e2-micro
- max
Instances Number Maximum value of instances in autoscaling group underlying the connector.
- max
Throughput Number Maximum throughput of the connector in Mbps, must be greater than
min_throughput
. Default is 300.- min
Instances Number Minimum value of instances in autoscaling group underlying the connector.
- min
Throughput Number Minimum throughput of the connector in Mbps. Default and min is 200.
- name String
The name of the resource (Max 25 characters).
- network String
Name or self_link of the VPC network. Required if
ip_cidr_range
is set.- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region String
Region where the VPC Access connector resides. If it is not provided, the provider region is used.
- self
Link String The fully qualified name of this VPC connector
- state String
State of the VPC access connector.
- subnet Property Map
The subnet in which to house the connector Structure is documented below.
Supporting Types
ConnectorSubnet, ConnectorSubnetArgs
- Name string
Subnet name (relative, not fully qualified). E.g. if the full subnet selfLink is https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName} the correct input for this field would be {subnetName}"
- Project
Id string Project in which the subnet exists. If not set, this project is assumed to be the project for which the connector create request was issued.
- Name string
Subnet name (relative, not fully qualified). E.g. if the full subnet selfLink is https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName} the correct input for this field would be {subnetName}"
- Project
Id string Project in which the subnet exists. If not set, this project is assumed to be the project for which the connector create request was issued.
- name String
Subnet name (relative, not fully qualified). E.g. if the full subnet selfLink is https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName} the correct input for this field would be {subnetName}"
- project
Id String Project in which the subnet exists. If not set, this project is assumed to be the project for which the connector create request was issued.
- name string
Subnet name (relative, not fully qualified). E.g. if the full subnet selfLink is https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName} the correct input for this field would be {subnetName}"
- project
Id string Project in which the subnet exists. If not set, this project is assumed to be the project for which the connector create request was issued.
- name str
Subnet name (relative, not fully qualified). E.g. if the full subnet selfLink is https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName} the correct input for this field would be {subnetName}"
- project_
id str Project in which the subnet exists. If not set, this project is assumed to be the project for which the connector create request was issued.
- name String
Subnet name (relative, not fully qualified). E.g. if the full subnet selfLink is https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName} the correct input for this field would be {subnetName}"
- project
Id String Project in which the subnet exists. If not set, this project is assumed to be the project for which the connector create request was issued.
Import
Connector can be imported using any of these accepted formats* projects/{{project}}/locations/{{region}}/connectors/{{name}}
* {{project}}/{{region}}/{{name}}
* {{region}}/{{name}}
* {{name}}
In Terraform v1.5.0 and later, use an import
block to import Connector using one of the formats above. For exampletf import {
id = “projects/{{project}}/locations/{{region}}/connectors/{{name}}”
to = google_vpc_access_connector.default }
$ pulumi import gcp:vpcaccess/connector:Connector When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), Connector can be imported using one of the formats above. For example
$ pulumi import gcp:vpcaccess/connector:Connector default projects/{{project}}/locations/{{region}}/connectors/{{name}}
$ pulumi import gcp:vpcaccess/connector:Connector default {{project}}/{{region}}/{{name}}
$ pulumi import gcp:vpcaccess/connector:Connector default {{region}}/{{name}}
$ pulumi import gcp:vpcaccess/connector:Connector default {{name}}
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
google-beta
Terraform Provider.