Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.vpcaccess/v1beta1.Connector
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a Serverless VPC Access connector, returns an operation.
Create Connector Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Connector(name: string, args: ConnectorArgs, opts?: CustomResourceOptions);
@overload
def Connector(resource_name: str,
args: ConnectorArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Connector(resource_name: str,
opts: Optional[ResourceOptions] = None,
connector_id: Optional[str] = None,
ip_cidr_range: Optional[str] = None,
location: 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,
subnet: Optional[SubnetArgs] = None)
func NewConnector(ctx *Context, name string, args ConnectorArgs, opts ...ResourceOption) (*Connector, error)
public Connector(string name, ConnectorArgs args, CustomResourceOptions? opts = null)
public Connector(String name, ConnectorArgs args)
public Connector(String name, ConnectorArgs args, CustomResourceOptions options)
type: google-native:vpcaccess/v1beta1:Connector
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleconnectorResourceResourceFromVpcaccessv1beta1 = new GoogleNative.VPCAccess.V1Beta1.Connector("exampleconnectorResourceResourceFromVpcaccessv1beta1", new()
{
ConnectorId = "string",
IpCidrRange = "string",
Location = "string",
MachineType = "string",
MaxInstances = 0,
MaxThroughput = 0,
MinInstances = 0,
MinThroughput = 0,
Name = "string",
Network = "string",
Project = "string",
Subnet = new GoogleNative.VPCAccess.V1Beta1.Inputs.SubnetArgs
{
Name = "string",
Project = "string",
},
});
example, err := vpcaccessv1beta1.NewConnector(ctx, "exampleconnectorResourceResourceFromVpcaccessv1beta1", &vpcaccessv1beta1.ConnectorArgs{
ConnectorId: pulumi.String("string"),
IpCidrRange: pulumi.String("string"),
Location: pulumi.String("string"),
MachineType: pulumi.String("string"),
MaxInstances: pulumi.Int(0),
MaxThroughput: pulumi.Int(0),
MinInstances: pulumi.Int(0),
MinThroughput: pulumi.Int(0),
Name: pulumi.String("string"),
Network: pulumi.String("string"),
Project: pulumi.String("string"),
Subnet: &vpcaccess.SubnetArgs{
Name: pulumi.String("string"),
Project: pulumi.String("string"),
},
})
var exampleconnectorResourceResourceFromVpcaccessv1beta1 = new Connector("exampleconnectorResourceResourceFromVpcaccessv1beta1", ConnectorArgs.builder()
.connectorId("string")
.ipCidrRange("string")
.location("string")
.machineType("string")
.maxInstances(0)
.maxThroughput(0)
.minInstances(0)
.minThroughput(0)
.name("string")
.network("string")
.project("string")
.subnet(SubnetArgs.builder()
.name("string")
.project("string")
.build())
.build());
exampleconnector_resource_resource_from_vpcaccessv1beta1 = google_native.vpcaccess.v1beta1.Connector("exampleconnectorResourceResourceFromVpcaccessv1beta1",
connector_id="string",
ip_cidr_range="string",
location="string",
machine_type="string",
max_instances=0,
max_throughput=0,
min_instances=0,
min_throughput=0,
name="string",
network="string",
project="string",
subnet=google_native.vpcaccess.v1beta1.SubnetArgs(
name="string",
project="string",
))
const exampleconnectorResourceResourceFromVpcaccessv1beta1 = new google_native.vpcaccess.v1beta1.Connector("exampleconnectorResourceResourceFromVpcaccessv1beta1", {
connectorId: "string",
ipCidrRange: "string",
location: "string",
machineType: "string",
maxInstances: 0,
maxThroughput: 0,
minInstances: 0,
minThroughput: 0,
name: "string",
network: "string",
project: "string",
subnet: {
name: "string",
project: "string",
},
});
type: google-native:vpcaccess/v1beta1:Connector
properties:
connectorId: string
ipCidrRange: string
location: string
machineType: string
maxInstances: 0
maxThroughput: 0
minInstances: 0
minThroughput: 0
name: string
network: string
project: string
subnet:
name: string
project: string
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:
- Connector
Id string - Required. The ID to use for this connector.
- Ip
Cidr stringRange - The range of internal addresses that follows RFC 4632 notation. Example:
10.132.0.0/28
. - Location string
- 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. Default is 300, max is 1000. If both max-throughput and max-instances are provided, max-instances takes precedence over max-throughput.
- 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. If both min-throughput and min-instances are provided, min-instances takes precedence over min-throughput.
- Name string
- The resource name in the format
projects/*/locations/*/connectors/*
. - Network string
- Name of a VPC network.
- Project string
- Subnet
Pulumi.
Google Native. VPCAccess. V1Beta1. Inputs. Subnet - The subnet in which to house the VPC Access Connector.
- Connector
Id string - Required. The ID to use for this connector.
- Ip
Cidr stringRange - The range of internal addresses that follows RFC 4632 notation. Example:
10.132.0.0/28
. - Location string
- 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. Default is 300, max is 1000. If both max-throughput and max-instances are provided, max-instances takes precedence over max-throughput.
- 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. If both min-throughput and min-instances are provided, min-instances takes precedence over min-throughput.
- Name string
- The resource name in the format
projects/*/locations/*/connectors/*
. - Network string
- Name of a VPC network.
- Project string
- Subnet
Subnet
Args - The subnet in which to house the VPC Access Connector.
- connector
Id String - Required. The ID to use for this connector.
- ip
Cidr StringRange - The range of internal addresses that follows RFC 4632 notation. Example:
10.132.0.0/28
. - location String
- 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. Default is 300, max is 1000. If both max-throughput and max-instances are provided, max-instances takes precedence over max-throughput.
- 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. If both min-throughput and min-instances are provided, min-instances takes precedence over min-throughput.
- name String
- The resource name in the format
projects/*/locations/*/connectors/*
. - network String
- Name of a VPC network.
- project String
- subnet Subnet
- The subnet in which to house the VPC Access Connector.
- connector
Id string - Required. The ID to use for this connector.
- ip
Cidr stringRange - The range of internal addresses that follows RFC 4632 notation. Example:
10.132.0.0/28
. - location string
- 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. Default is 300, max is 1000. If both max-throughput and max-instances are provided, max-instances takes precedence over max-throughput.
- 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. If both min-throughput and min-instances are provided, min-instances takes precedence over min-throughput.
- name string
- The resource name in the format
projects/*/locations/*/connectors/*
. - network string
- Name of a VPC network.
- project string
- subnet Subnet
- The subnet in which to house the VPC Access Connector.
- connector_
id str - Required. The ID to use for this connector.
- ip_
cidr_ strrange - The range of internal addresses that follows RFC 4632 notation. Example:
10.132.0.0/28
. - location str
- 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. Default is 300, max is 1000. If both max-throughput and max-instances are provided, max-instances takes precedence over max-throughput.
- 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. If both min-throughput and min-instances are provided, min-instances takes precedence over min-throughput.
- name str
- The resource name in the format
projects/*/locations/*/connectors/*
. - network str
- Name of a VPC network.
- project str
- subnet
Subnet
Args - The subnet in which to house the VPC Access Connector.
- connector
Id String - Required. The ID to use for this connector.
- ip
Cidr StringRange - The range of internal addresses that follows RFC 4632 notation. Example:
10.132.0.0/28
. - location String
- 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. Default is 300, max is 1000. If both max-throughput and max-instances are provided, max-instances takes precedence over max-throughput.
- 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. If both min-throughput and min-instances are provided, min-instances takes precedence over min-throughput.
- name String
- The resource name in the format
projects/*/locations/*/connectors/*
. - network String
- Name of a VPC network.
- project String
- subnet Property Map
- The subnet in which to house the VPC Access Connector.
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.
- 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.
- 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.
- 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.
- 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.
- 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.
- state String
- State of the VPC access connector.
Supporting Types
Subnet, SubnetArgs
- 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 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 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 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 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 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 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.
SubnetResponse, SubnetResponseArgs
- 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 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 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 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 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 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 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.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.