Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct { pulumi.CustomResourceState // The range of internal addresses that follows RFC 4632 notation. Example: `10.132.0.0/28`. IpCidrRange pulumi.StringOutput `pulumi:"ipCidrRange"` // Maximum throughput of the connector in Mbps, must be greater than `minThroughput`. Default is 1000. MaxThroughput pulumi.IntPtrOutput `pulumi:"maxThroughput"` // Minimum throughput of the connector in Mbps. Default and min is 200. MinThroughput pulumi.IntPtrOutput `pulumi:"minThroughput"` // The name of the resource (Max 25 characters). Name pulumi.StringOutput `pulumi:"name"` // Name of a VPC network. Network pulumi.StringOutput `pulumi:"network"` // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project pulumi.StringOutput `pulumi:"project"` // Region where the VPC Access connector resides Region pulumi.StringOutput `pulumi:"region"` // The fully qualified name of this VPC connector SelfLink pulumi.StringOutput `pulumi:"selfLink"` // State of the VPC access connector. State pulumi.StringOutput `pulumi:"state"` }
Serverless VPC Access connector resource.
To get more information about Connector, see:
* [API documentation](https://cloud.google.com/vpc/docs/reference/vpcaccess/rest/v1/projects.locations.connectors) * How-to Guides
- [Configuring Serverless VPC Access](https://cloud.google.com/vpc/docs/configure-serverless-vpc-access)
## Example Usage ### VPC Access Connector
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v3/go/gcp/vpcaccess" "github.com/pulumi/pulumi/sdk/v2/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"), Region: pulumi.String("us-central1"), }) if err != nil { return err } return nil }) }
```
func GetConnector ¶
func GetConnector(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ConnectorState, opts ...pulumi.ResourceOption) (*Connector, error)
GetConnector gets an existing Connector resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewConnector ¶
func NewConnector(ctx *pulumi.Context, name string, args *ConnectorArgs, opts ...pulumi.ResourceOption) (*Connector, error)
NewConnector registers a new resource with the given unique name, arguments, and options.
type ConnectorArgs ¶
type ConnectorArgs struct { // The range of internal addresses that follows RFC 4632 notation. Example: `10.132.0.0/28`. IpCidrRange pulumi.StringInput // Maximum throughput of the connector in Mbps, must be greater than `minThroughput`. Default is 1000. MaxThroughput pulumi.IntPtrInput // Minimum throughput of the connector in Mbps. Default and min is 200. MinThroughput pulumi.IntPtrInput // The name of the resource (Max 25 characters). Name pulumi.StringPtrInput // Name of a VPC network. Network pulumi.StringInput // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project pulumi.StringPtrInput // Region where the VPC Access connector resides Region pulumi.StringInput }
The set of arguments for constructing a Connector resource.
func (ConnectorArgs) ElementType ¶
func (ConnectorArgs) ElementType() reflect.Type
type ConnectorState ¶
type ConnectorState struct { // The range of internal addresses that follows RFC 4632 notation. Example: `10.132.0.0/28`. IpCidrRange pulumi.StringPtrInput // Maximum throughput of the connector in Mbps, must be greater than `minThroughput`. Default is 1000. MaxThroughput pulumi.IntPtrInput // Minimum throughput of the connector in Mbps. Default and min is 200. MinThroughput pulumi.IntPtrInput // The name of the resource (Max 25 characters). Name pulumi.StringPtrInput // Name of a VPC network. Network pulumi.StringPtrInput // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project pulumi.StringPtrInput // Region where the VPC Access connector resides Region pulumi.StringPtrInput // The fully qualified name of this VPC connector SelfLink pulumi.StringPtrInput // State of the VPC access connector. State pulumi.StringPtrInput }
func (ConnectorState) ElementType ¶
func (ConnectorState) ElementType() reflect.Type
Click to show internal directories.
Click to hide internal directories.