Documentation
¶
Index ¶
- type Connector
- func (*Connector) ElementType() reflect.Type
- func (i *Connector) ToConnectorOutput() ConnectorOutput
- func (i *Connector) ToConnectorOutputWithContext(ctx context.Context) ConnectorOutput
- func (i *Connector) ToConnectorPtrOutput() ConnectorPtrOutput
- func (i *Connector) ToConnectorPtrOutputWithContext(ctx context.Context) ConnectorPtrOutput
- type ConnectorArgs
- type ConnectorArray
- type ConnectorArrayInput
- type ConnectorArrayOutput
- func (ConnectorArrayOutput) ElementType() reflect.Type
- func (o ConnectorArrayOutput) Index(i pulumi.IntInput) ConnectorOutput
- func (o ConnectorArrayOutput) ToConnectorArrayOutput() ConnectorArrayOutput
- func (o ConnectorArrayOutput) ToConnectorArrayOutputWithContext(ctx context.Context) ConnectorArrayOutput
- type ConnectorInput
- type ConnectorMap
- type ConnectorMapInput
- type ConnectorMapOutput
- type ConnectorOutput
- func (ConnectorOutput) ElementType() reflect.Type
- func (o ConnectorOutput) ToConnectorOutput() ConnectorOutput
- func (o ConnectorOutput) ToConnectorOutputWithContext(ctx context.Context) ConnectorOutput
- func (o ConnectorOutput) ToConnectorPtrOutput() ConnectorPtrOutput
- func (o ConnectorOutput) ToConnectorPtrOutputWithContext(ctx context.Context) ConnectorPtrOutput
- type ConnectorPtrInput
- type ConnectorPtrOutput
- type ConnectorState
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. If it is not provided, the provider region is used. 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/v4/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"), }) if err != nil { return err } return nil }) }
```
## Import
Connector can be imported using any of these accepted formats ¶
```sh
$ pulumi import gcp:vpcaccess/connector:Connector default projects/{{project}}/locations/{{region}}/connectors/{{name}}
```
```sh
$ pulumi import gcp:vpcaccess/connector:Connector default {{project}}/{{region}}/{{name}}
```
```sh
$ pulumi import gcp:vpcaccess/connector:Connector default {{region}}/{{name}}
```
```sh
$ pulumi import gcp:vpcaccess/connector:Connector default {{name}}
```
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.
func (*Connector) ElementType ¶ added in v4.4.0
func (*Connector) ToConnectorOutput ¶ added in v4.4.0
func (i *Connector) ToConnectorOutput() ConnectorOutput
func (*Connector) ToConnectorOutputWithContext ¶ added in v4.4.0
func (i *Connector) ToConnectorOutputWithContext(ctx context.Context) ConnectorOutput
func (*Connector) ToConnectorPtrOutput ¶ added in v4.11.1
func (i *Connector) ToConnectorPtrOutput() ConnectorPtrOutput
func (*Connector) ToConnectorPtrOutputWithContext ¶ added in v4.11.1
func (i *Connector) ToConnectorPtrOutputWithContext(ctx context.Context) ConnectorPtrOutput
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. If it is not provided, the provider region is used. Region pulumi.StringPtrInput }
The set of arguments for constructing a Connector resource.
func (ConnectorArgs) ElementType ¶
func (ConnectorArgs) ElementType() reflect.Type
type ConnectorArray ¶ added in v4.11.1
type ConnectorArray []ConnectorInput
func (ConnectorArray) ElementType ¶ added in v4.11.1
func (ConnectorArray) ElementType() reflect.Type
func (ConnectorArray) ToConnectorArrayOutput ¶ added in v4.11.1
func (i ConnectorArray) ToConnectorArrayOutput() ConnectorArrayOutput
func (ConnectorArray) ToConnectorArrayOutputWithContext ¶ added in v4.11.1
func (i ConnectorArray) ToConnectorArrayOutputWithContext(ctx context.Context) ConnectorArrayOutput
type ConnectorArrayInput ¶ added in v4.11.1
type ConnectorArrayInput interface { pulumi.Input ToConnectorArrayOutput() ConnectorArrayOutput ToConnectorArrayOutputWithContext(context.Context) ConnectorArrayOutput }
ConnectorArrayInput is an input type that accepts ConnectorArray and ConnectorArrayOutput values. You can construct a concrete instance of `ConnectorArrayInput` via:
ConnectorArray{ ConnectorArgs{...} }
type ConnectorArrayOutput ¶ added in v4.11.1
type ConnectorArrayOutput struct{ *pulumi.OutputState }
func (ConnectorArrayOutput) ElementType ¶ added in v4.11.1
func (ConnectorArrayOutput) ElementType() reflect.Type
func (ConnectorArrayOutput) Index ¶ added in v4.11.1
func (o ConnectorArrayOutput) Index(i pulumi.IntInput) ConnectorOutput
func (ConnectorArrayOutput) ToConnectorArrayOutput ¶ added in v4.11.1
func (o ConnectorArrayOutput) ToConnectorArrayOutput() ConnectorArrayOutput
func (ConnectorArrayOutput) ToConnectorArrayOutputWithContext ¶ added in v4.11.1
func (o ConnectorArrayOutput) ToConnectorArrayOutputWithContext(ctx context.Context) ConnectorArrayOutput
type ConnectorInput ¶ added in v4.4.0
type ConnectorInput interface { pulumi.Input ToConnectorOutput() ConnectorOutput ToConnectorOutputWithContext(ctx context.Context) ConnectorOutput }
type ConnectorMap ¶ added in v4.11.1
type ConnectorMap map[string]ConnectorInput
func (ConnectorMap) ElementType ¶ added in v4.11.1
func (ConnectorMap) ElementType() reflect.Type
func (ConnectorMap) ToConnectorMapOutput ¶ added in v4.11.1
func (i ConnectorMap) ToConnectorMapOutput() ConnectorMapOutput
func (ConnectorMap) ToConnectorMapOutputWithContext ¶ added in v4.11.1
func (i ConnectorMap) ToConnectorMapOutputWithContext(ctx context.Context) ConnectorMapOutput
type ConnectorMapInput ¶ added in v4.11.1
type ConnectorMapInput interface { pulumi.Input ToConnectorMapOutput() ConnectorMapOutput ToConnectorMapOutputWithContext(context.Context) ConnectorMapOutput }
ConnectorMapInput is an input type that accepts ConnectorMap and ConnectorMapOutput values. You can construct a concrete instance of `ConnectorMapInput` via:
ConnectorMap{ "key": ConnectorArgs{...} }
type ConnectorMapOutput ¶ added in v4.11.1
type ConnectorMapOutput struct{ *pulumi.OutputState }
func (ConnectorMapOutput) ElementType ¶ added in v4.11.1
func (ConnectorMapOutput) ElementType() reflect.Type
func (ConnectorMapOutput) MapIndex ¶ added in v4.11.1
func (o ConnectorMapOutput) MapIndex(k pulumi.StringInput) ConnectorOutput
func (ConnectorMapOutput) ToConnectorMapOutput ¶ added in v4.11.1
func (o ConnectorMapOutput) ToConnectorMapOutput() ConnectorMapOutput
func (ConnectorMapOutput) ToConnectorMapOutputWithContext ¶ added in v4.11.1
func (o ConnectorMapOutput) ToConnectorMapOutputWithContext(ctx context.Context) ConnectorMapOutput
type ConnectorOutput ¶ added in v4.4.0
type ConnectorOutput struct {
*pulumi.OutputState
}
func (ConnectorOutput) ElementType ¶ added in v4.4.0
func (ConnectorOutput) ElementType() reflect.Type
func (ConnectorOutput) ToConnectorOutput ¶ added in v4.4.0
func (o ConnectorOutput) ToConnectorOutput() ConnectorOutput
func (ConnectorOutput) ToConnectorOutputWithContext ¶ added in v4.4.0
func (o ConnectorOutput) ToConnectorOutputWithContext(ctx context.Context) ConnectorOutput
func (ConnectorOutput) ToConnectorPtrOutput ¶ added in v4.11.1
func (o ConnectorOutput) ToConnectorPtrOutput() ConnectorPtrOutput
func (ConnectorOutput) ToConnectorPtrOutputWithContext ¶ added in v4.11.1
func (o ConnectorOutput) ToConnectorPtrOutputWithContext(ctx context.Context) ConnectorPtrOutput
type ConnectorPtrInput ¶ added in v4.11.1
type ConnectorPtrInput interface { pulumi.Input ToConnectorPtrOutput() ConnectorPtrOutput ToConnectorPtrOutputWithContext(ctx context.Context) ConnectorPtrOutput }
type ConnectorPtrOutput ¶ added in v4.11.1
type ConnectorPtrOutput struct {
*pulumi.OutputState
}
func (ConnectorPtrOutput) ElementType ¶ added in v4.11.1
func (ConnectorPtrOutput) ElementType() reflect.Type
func (ConnectorPtrOutput) ToConnectorPtrOutput ¶ added in v4.11.1
func (o ConnectorPtrOutput) ToConnectorPtrOutput() ConnectorPtrOutput
func (ConnectorPtrOutput) ToConnectorPtrOutputWithContext ¶ added in v4.11.1
func (o ConnectorPtrOutput) ToConnectorPtrOutputWithContext(ctx context.Context) ConnectorPtrOutput
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. If it is not provided, the provider region is used. 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