Class Connector
Serverless VPC Access connector resource.
To get more information about Connector, see:
- API documentation
- How-to Guides
- Configuring Serverless VPC Access
Example Usage - VPC Access Connector
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var connector = new Gcp.VpcAccess.Connector("connector", new Gcp.VpcAccess.ConnectorArgs
{
IpCidrRange = "10.8.0.0/28",
Network = "default",
Region = "us-central1",
});
}
}
Inherited Members
Namespace: Pulumi.Gcp.VpcAccess
Assembly: Pulumi.Gcp.dll
Syntax
public class Connector : CustomResource
Constructors
View SourceConnector(String, ConnectorArgs, CustomResourceOptions)
Create a Connector resource with the given unique name, arguments, and options.
Declaration
public Connector(string name, ConnectorArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ConnectorArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceIpCidrRange
The range of internal addresses that follows RFC 4632 notation. Example: 10.132.0.0/28.
Declaration
public Output<string> IpCidrRange { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
MaxThroughput
Maximum throughput of the connector in Mbps, must be greater than min_throughput. Default is 1000.
Declaration
public Output<int?> MaxThroughput { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
MinThroughput
Minimum throughput of the connector in Mbps. Default and min is 200.
Declaration
public Output<int?> MinThroughput { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
Name
The name of the resource (Max 25 characters).
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Network
Name of a VPC network.
Declaration
public Output<string> Network { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Project
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Declaration
public Output<string> Project { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Region
Region where the VPC Access connector resides
Declaration
public Output<string> Region { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SelfLink
The fully qualified name of this VPC connector
Declaration
public Output<string> SelfLink { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
State
State of the VPC access connector.
Declaration
public Output<string> State { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ConnectorState, CustomResourceOptions)
Get an existing Connector resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Connector Get(string name, Input<string> id, ConnectorState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ConnectorState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Connector |