Documentation ¶
Index ¶
- type Connector
- 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) IpCidrRange() pulumi.StringPtrOutput
- func (o ConnectorOutput) MachineType() pulumi.StringPtrOutput
- func (o ConnectorOutput) MaxInstances() pulumi.IntOutput
- func (o ConnectorOutput) MaxThroughput() pulumi.IntPtrOutput
- func (o ConnectorOutput) MinInstances() pulumi.IntOutput
- func (o ConnectorOutput) MinThroughput() pulumi.IntPtrOutput
- func (o ConnectorOutput) Name() pulumi.StringOutput
- func (o ConnectorOutput) Network() pulumi.StringOutput
- func (o ConnectorOutput) Project() pulumi.StringOutput
- func (o ConnectorOutput) Region() pulumi.StringOutput
- func (o ConnectorOutput) SelfLink() pulumi.StringOutput
- func (o ConnectorOutput) State() pulumi.StringOutput
- func (o ConnectorOutput) Subnet() ConnectorSubnetPtrOutput
- func (o ConnectorOutput) ToConnectorOutput() ConnectorOutput
- func (o ConnectorOutput) ToConnectorOutputWithContext(ctx context.Context) ConnectorOutput
- type ConnectorState
- type ConnectorSubnet
- type ConnectorSubnetArgs
- func (ConnectorSubnetArgs) ElementType() reflect.Type
- func (i ConnectorSubnetArgs) ToConnectorSubnetOutput() ConnectorSubnetOutput
- func (i ConnectorSubnetArgs) ToConnectorSubnetOutputWithContext(ctx context.Context) ConnectorSubnetOutput
- func (i ConnectorSubnetArgs) ToConnectorSubnetPtrOutput() ConnectorSubnetPtrOutput
- func (i ConnectorSubnetArgs) ToConnectorSubnetPtrOutputWithContext(ctx context.Context) ConnectorSubnetPtrOutput
- type ConnectorSubnetInput
- type ConnectorSubnetOutput
- func (ConnectorSubnetOutput) ElementType() reflect.Type
- func (o ConnectorSubnetOutput) Name() pulumi.StringPtrOutput
- func (o ConnectorSubnetOutput) ProjectId() pulumi.StringPtrOutput
- func (o ConnectorSubnetOutput) ToConnectorSubnetOutput() ConnectorSubnetOutput
- func (o ConnectorSubnetOutput) ToConnectorSubnetOutputWithContext(ctx context.Context) ConnectorSubnetOutput
- func (o ConnectorSubnetOutput) ToConnectorSubnetPtrOutput() ConnectorSubnetPtrOutput
- func (o ConnectorSubnetOutput) ToConnectorSubnetPtrOutputWithContext(ctx context.Context) ConnectorSubnetPtrOutput
- type ConnectorSubnetPtrInput
- type ConnectorSubnetPtrOutput
- func (o ConnectorSubnetPtrOutput) Elem() ConnectorSubnetOutput
- func (ConnectorSubnetPtrOutput) ElementType() reflect.Type
- func (o ConnectorSubnetPtrOutput) Name() pulumi.StringPtrOutput
- func (o ConnectorSubnetPtrOutput) ProjectId() pulumi.StringPtrOutput
- func (o ConnectorSubnetPtrOutput) ToConnectorSubnetPtrOutput() ConnectorSubnetPtrOutput
- func (o ConnectorSubnetPtrOutput) ToConnectorSubnetPtrOutputWithContext(ctx context.Context) ConnectorSubnetPtrOutput
- type GetConnectorSubnet
- type GetConnectorSubnetArgs
- type GetConnectorSubnetArray
- type GetConnectorSubnetArrayInput
- type GetConnectorSubnetArrayOutput
- func (GetConnectorSubnetArrayOutput) ElementType() reflect.Type
- func (o GetConnectorSubnetArrayOutput) Index(i pulumi.IntInput) GetConnectorSubnetOutput
- func (o GetConnectorSubnetArrayOutput) ToGetConnectorSubnetArrayOutput() GetConnectorSubnetArrayOutput
- func (o GetConnectorSubnetArrayOutput) ToGetConnectorSubnetArrayOutputWithContext(ctx context.Context) GetConnectorSubnetArrayOutput
- type GetConnectorSubnetInput
- type GetConnectorSubnetOutput
- func (GetConnectorSubnetOutput) ElementType() reflect.Type
- func (o GetConnectorSubnetOutput) Name() pulumi.StringOutput
- func (o GetConnectorSubnetOutput) ProjectId() pulumi.StringOutput
- func (o GetConnectorSubnetOutput) ToGetConnectorSubnetOutput() GetConnectorSubnetOutput
- func (o GetConnectorSubnetOutput) ToGetConnectorSubnetOutputWithContext(ctx context.Context) GetConnectorSubnetOutput
- type LookupConnectorArgs
- type LookupConnectorOutputArgs
- type LookupConnectorResult
- type LookupConnectorResultOutput
- func (LookupConnectorResultOutput) ElementType() reflect.Type
- func (o LookupConnectorResultOutput) Id() pulumi.StringOutput
- func (o LookupConnectorResultOutput) IpCidrRange() pulumi.StringOutput
- func (o LookupConnectorResultOutput) MachineType() pulumi.StringOutput
- func (o LookupConnectorResultOutput) MaxInstances() pulumi.IntOutput
- func (o LookupConnectorResultOutput) MaxThroughput() pulumi.IntOutput
- func (o LookupConnectorResultOutput) MinInstances() pulumi.IntOutput
- func (o LookupConnectorResultOutput) MinThroughput() pulumi.IntOutput
- func (o LookupConnectorResultOutput) Name() pulumi.StringOutput
- func (o LookupConnectorResultOutput) Network() pulumi.StringOutput
- func (o LookupConnectorResultOutput) Project() pulumi.StringPtrOutput
- func (o LookupConnectorResultOutput) Region() pulumi.StringPtrOutput
- func (o LookupConnectorResultOutput) SelfLink() pulumi.StringOutput
- func (o LookupConnectorResultOutput) State() pulumi.StringOutput
- func (o LookupConnectorResultOutput) Subnets() GetConnectorSubnetArrayOutput
- func (o LookupConnectorResultOutput) ToLookupConnectorResultOutput() LookupConnectorResultOutput
- func (o LookupConnectorResultOutput) ToLookupConnectorResultOutputWithContext(ctx context.Context) LookupConnectorResultOutput
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.StringPtrOutput `pulumi:"ipCidrRange"` // Machine type of VM Instance underlying connector. Default is e2-micro MachineType pulumi.StringPtrOutput `pulumi:"machineType"` // Maximum value of instances in autoscaling group underlying the connector. MaxInstances pulumi.IntOutput `pulumi:"maxInstances"` // Maximum throughput of the connector in Mbps, must be greater than `minThroughput`. Default is 300. MaxThroughput pulumi.IntPtrOutput `pulumi:"maxThroughput"` // Minimum value of instances in autoscaling group underlying the connector. MinInstances pulumi.IntOutput `pulumi:"minInstances"` // Minimum throughput of the connector in Mbps. Default and min is 200. MinThroughput pulumi.IntPtrOutput `pulumi:"minThroughput"` // 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}" Name pulumi.StringOutput `pulumi:"name"` // Name or selfLink of the VPC network. Required if `ipCidrRange` is set. 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"` // The subnet in which to house the connector // Structure is documented below. Subnet ConnectorSubnetPtrOutput `pulumi:"subnet"` }
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/v6/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 }) }
``` ### VPC Access Connector Shared VPC
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/compute" "github.com/pulumi/pulumi-gcp/sdk/v6/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 }) }
```
## 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 ¶
func (*Connector) ToConnectorOutput ¶
func (i *Connector) ToConnectorOutput() ConnectorOutput
func (*Connector) ToConnectorOutputWithContext ¶
func (i *Connector) ToConnectorOutputWithContext(ctx context.Context) ConnectorOutput
type ConnectorArgs ¶
type ConnectorArgs struct { // The range of internal addresses that follows RFC 4632 notation. Example: `10.132.0.0/28`. IpCidrRange pulumi.StringPtrInput // Machine type of VM Instance underlying connector. Default is e2-micro MachineType pulumi.StringPtrInput // Maximum value of instances in autoscaling group underlying the connector. MaxInstances pulumi.IntPtrInput // Maximum throughput of the connector in Mbps, must be greater than `minThroughput`. Default is 300. MaxThroughput pulumi.IntPtrInput // Minimum value of instances in autoscaling group underlying the connector. MinInstances pulumi.IntPtrInput // Minimum throughput of the connector in Mbps. Default and min is 200. MinThroughput pulumi.IntPtrInput // 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}" Name pulumi.StringPtrInput // Name or selfLink of the VPC network. Required if `ipCidrRange` is set. 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 subnet in which to house the connector // Structure is documented below. Subnet ConnectorSubnetPtrInput }
The set of arguments for constructing a Connector resource.
func (ConnectorArgs) ElementType ¶
func (ConnectorArgs) ElementType() reflect.Type
type ConnectorArray ¶
type ConnectorArray []ConnectorInput
func (ConnectorArray) ElementType ¶
func (ConnectorArray) ElementType() reflect.Type
func (ConnectorArray) ToConnectorArrayOutput ¶
func (i ConnectorArray) ToConnectorArrayOutput() ConnectorArrayOutput
func (ConnectorArray) ToConnectorArrayOutputWithContext ¶
func (i ConnectorArray) ToConnectorArrayOutputWithContext(ctx context.Context) ConnectorArrayOutput
type ConnectorArrayInput ¶
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 ¶
type ConnectorArrayOutput struct{ *pulumi.OutputState }
func (ConnectorArrayOutput) ElementType ¶
func (ConnectorArrayOutput) ElementType() reflect.Type
func (ConnectorArrayOutput) Index ¶
func (o ConnectorArrayOutput) Index(i pulumi.IntInput) ConnectorOutput
func (ConnectorArrayOutput) ToConnectorArrayOutput ¶
func (o ConnectorArrayOutput) ToConnectorArrayOutput() ConnectorArrayOutput
func (ConnectorArrayOutput) ToConnectorArrayOutputWithContext ¶
func (o ConnectorArrayOutput) ToConnectorArrayOutputWithContext(ctx context.Context) ConnectorArrayOutput
type ConnectorInput ¶
type ConnectorInput interface { pulumi.Input ToConnectorOutput() ConnectorOutput ToConnectorOutputWithContext(ctx context.Context) ConnectorOutput }
type ConnectorMap ¶
type ConnectorMap map[string]ConnectorInput
func (ConnectorMap) ElementType ¶
func (ConnectorMap) ElementType() reflect.Type
func (ConnectorMap) ToConnectorMapOutput ¶
func (i ConnectorMap) ToConnectorMapOutput() ConnectorMapOutput
func (ConnectorMap) ToConnectorMapOutputWithContext ¶
func (i ConnectorMap) ToConnectorMapOutputWithContext(ctx context.Context) ConnectorMapOutput
type ConnectorMapInput ¶
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 ¶
type ConnectorMapOutput struct{ *pulumi.OutputState }
func (ConnectorMapOutput) ElementType ¶
func (ConnectorMapOutput) ElementType() reflect.Type
func (ConnectorMapOutput) MapIndex ¶
func (o ConnectorMapOutput) MapIndex(k pulumi.StringInput) ConnectorOutput
func (ConnectorMapOutput) ToConnectorMapOutput ¶
func (o ConnectorMapOutput) ToConnectorMapOutput() ConnectorMapOutput
func (ConnectorMapOutput) ToConnectorMapOutputWithContext ¶
func (o ConnectorMapOutput) ToConnectorMapOutputWithContext(ctx context.Context) ConnectorMapOutput
type ConnectorOutput ¶
type ConnectorOutput struct{ *pulumi.OutputState }
func (ConnectorOutput) ElementType ¶
func (ConnectorOutput) ElementType() reflect.Type
func (ConnectorOutput) IpCidrRange ¶ added in v6.23.0
func (o ConnectorOutput) IpCidrRange() pulumi.StringPtrOutput
The range of internal addresses that follows RFC 4632 notation. Example: `10.132.0.0/28`.
func (ConnectorOutput) MachineType ¶ added in v6.23.0
func (o ConnectorOutput) MachineType() pulumi.StringPtrOutput
Machine type of VM Instance underlying connector. Default is e2-micro
func (ConnectorOutput) MaxInstances ¶ added in v6.23.0
func (o ConnectorOutput) MaxInstances() pulumi.IntOutput
Maximum value of instances in autoscaling group underlying the connector.
func (ConnectorOutput) MaxThroughput ¶ added in v6.23.0
func (o ConnectorOutput) MaxThroughput() pulumi.IntPtrOutput
Maximum throughput of the connector in Mbps, must be greater than `minThroughput`. Default is 300.
func (ConnectorOutput) MinInstances ¶ added in v6.23.0
func (o ConnectorOutput) MinInstances() pulumi.IntOutput
Minimum value of instances in autoscaling group underlying the connector.
func (ConnectorOutput) MinThroughput ¶ added in v6.23.0
func (o ConnectorOutput) MinThroughput() pulumi.IntPtrOutput
Minimum throughput of the connector in Mbps. Default and min is 200.
func (ConnectorOutput) Name ¶ added in v6.23.0
func (o ConnectorOutput) Name() pulumi.StringOutput
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}"
func (ConnectorOutput) Network ¶ added in v6.23.0
func (o ConnectorOutput) Network() pulumi.StringOutput
Name or selfLink of the VPC network. Required if `ipCidrRange` is set.
func (ConnectorOutput) Project ¶ added in v6.23.0
func (o ConnectorOutput) Project() pulumi.StringOutput
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
func (ConnectorOutput) Region ¶ added in v6.23.0
func (o ConnectorOutput) Region() pulumi.StringOutput
Region where the VPC Access connector resides. If it is not provided, the provider region is used.
func (ConnectorOutput) SelfLink ¶ added in v6.23.0
func (o ConnectorOutput) SelfLink() pulumi.StringOutput
The fully qualified name of this VPC connector
func (ConnectorOutput) State ¶ added in v6.23.0
func (o ConnectorOutput) State() pulumi.StringOutput
State of the VPC access connector.
func (ConnectorOutput) Subnet ¶ added in v6.23.0
func (o ConnectorOutput) Subnet() ConnectorSubnetPtrOutput
The subnet in which to house the connector Structure is documented below.
func (ConnectorOutput) ToConnectorOutput ¶
func (o ConnectorOutput) ToConnectorOutput() ConnectorOutput
func (ConnectorOutput) ToConnectorOutputWithContext ¶
func (o ConnectorOutput) ToConnectorOutputWithContext(ctx context.Context) ConnectorOutput
type ConnectorState ¶
type ConnectorState struct { // The range of internal addresses that follows RFC 4632 notation. Example: `10.132.0.0/28`. IpCidrRange pulumi.StringPtrInput // Machine type of VM Instance underlying connector. Default is e2-micro MachineType pulumi.StringPtrInput // Maximum value of instances in autoscaling group underlying the connector. MaxInstances pulumi.IntPtrInput // Maximum throughput of the connector in Mbps, must be greater than `minThroughput`. Default is 300. MaxThroughput pulumi.IntPtrInput // Minimum value of instances in autoscaling group underlying the connector. MinInstances pulumi.IntPtrInput // Minimum throughput of the connector in Mbps. Default and min is 200. MinThroughput pulumi.IntPtrInput // 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}" Name pulumi.StringPtrInput // Name or selfLink of the VPC network. Required if `ipCidrRange` is set. 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 // The subnet in which to house the connector // Structure is documented below. Subnet ConnectorSubnetPtrInput }
func (ConnectorState) ElementType ¶
func (ConnectorState) ElementType() reflect.Type
type ConnectorSubnet ¶
type ConnectorSubnet struct { // 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}" Name *string `pulumi:"name"` // 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. ProjectId *string `pulumi:"projectId"` }
type ConnectorSubnetArgs ¶
type ConnectorSubnetArgs struct { // 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}" Name pulumi.StringPtrInput `pulumi:"name"` // 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. ProjectId pulumi.StringPtrInput `pulumi:"projectId"` }
func (ConnectorSubnetArgs) ElementType ¶
func (ConnectorSubnetArgs) ElementType() reflect.Type
func (ConnectorSubnetArgs) ToConnectorSubnetOutput ¶
func (i ConnectorSubnetArgs) ToConnectorSubnetOutput() ConnectorSubnetOutput
func (ConnectorSubnetArgs) ToConnectorSubnetOutputWithContext ¶
func (i ConnectorSubnetArgs) ToConnectorSubnetOutputWithContext(ctx context.Context) ConnectorSubnetOutput
func (ConnectorSubnetArgs) ToConnectorSubnetPtrOutput ¶
func (i ConnectorSubnetArgs) ToConnectorSubnetPtrOutput() ConnectorSubnetPtrOutput
func (ConnectorSubnetArgs) ToConnectorSubnetPtrOutputWithContext ¶
func (i ConnectorSubnetArgs) ToConnectorSubnetPtrOutputWithContext(ctx context.Context) ConnectorSubnetPtrOutput
type ConnectorSubnetInput ¶
type ConnectorSubnetInput interface { pulumi.Input ToConnectorSubnetOutput() ConnectorSubnetOutput ToConnectorSubnetOutputWithContext(context.Context) ConnectorSubnetOutput }
ConnectorSubnetInput is an input type that accepts ConnectorSubnetArgs and ConnectorSubnetOutput values. You can construct a concrete instance of `ConnectorSubnetInput` via:
ConnectorSubnetArgs{...}
type ConnectorSubnetOutput ¶
type ConnectorSubnetOutput struct{ *pulumi.OutputState }
func (ConnectorSubnetOutput) ElementType ¶
func (ConnectorSubnetOutput) ElementType() reflect.Type
func (ConnectorSubnetOutput) Name ¶
func (o ConnectorSubnetOutput) Name() pulumi.StringPtrOutput
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}"
func (ConnectorSubnetOutput) ProjectId ¶
func (o ConnectorSubnetOutput) ProjectId() pulumi.StringPtrOutput
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.
func (ConnectorSubnetOutput) ToConnectorSubnetOutput ¶
func (o ConnectorSubnetOutput) ToConnectorSubnetOutput() ConnectorSubnetOutput
func (ConnectorSubnetOutput) ToConnectorSubnetOutputWithContext ¶
func (o ConnectorSubnetOutput) ToConnectorSubnetOutputWithContext(ctx context.Context) ConnectorSubnetOutput
func (ConnectorSubnetOutput) ToConnectorSubnetPtrOutput ¶
func (o ConnectorSubnetOutput) ToConnectorSubnetPtrOutput() ConnectorSubnetPtrOutput
func (ConnectorSubnetOutput) ToConnectorSubnetPtrOutputWithContext ¶
func (o ConnectorSubnetOutput) ToConnectorSubnetPtrOutputWithContext(ctx context.Context) ConnectorSubnetPtrOutput
type ConnectorSubnetPtrInput ¶
type ConnectorSubnetPtrInput interface { pulumi.Input ToConnectorSubnetPtrOutput() ConnectorSubnetPtrOutput ToConnectorSubnetPtrOutputWithContext(context.Context) ConnectorSubnetPtrOutput }
ConnectorSubnetPtrInput is an input type that accepts ConnectorSubnetArgs, ConnectorSubnetPtr and ConnectorSubnetPtrOutput values. You can construct a concrete instance of `ConnectorSubnetPtrInput` via:
ConnectorSubnetArgs{...} or: nil
func ConnectorSubnetPtr ¶
func ConnectorSubnetPtr(v *ConnectorSubnetArgs) ConnectorSubnetPtrInput
type ConnectorSubnetPtrOutput ¶
type ConnectorSubnetPtrOutput struct{ *pulumi.OutputState }
func (ConnectorSubnetPtrOutput) Elem ¶
func (o ConnectorSubnetPtrOutput) Elem() ConnectorSubnetOutput
func (ConnectorSubnetPtrOutput) ElementType ¶
func (ConnectorSubnetPtrOutput) ElementType() reflect.Type
func (ConnectorSubnetPtrOutput) Name ¶
func (o ConnectorSubnetPtrOutput) Name() pulumi.StringPtrOutput
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}"
func (ConnectorSubnetPtrOutput) ProjectId ¶
func (o ConnectorSubnetPtrOutput) ProjectId() pulumi.StringPtrOutput
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.
func (ConnectorSubnetPtrOutput) ToConnectorSubnetPtrOutput ¶
func (o ConnectorSubnetPtrOutput) ToConnectorSubnetPtrOutput() ConnectorSubnetPtrOutput
func (ConnectorSubnetPtrOutput) ToConnectorSubnetPtrOutputWithContext ¶
func (o ConnectorSubnetPtrOutput) ToConnectorSubnetPtrOutputWithContext(ctx context.Context) ConnectorSubnetPtrOutput
type GetConnectorSubnet ¶ added in v6.41.0
type GetConnectorSubnetArgs ¶ added in v6.41.0
type GetConnectorSubnetArgs struct { // Name of the resource. Name pulumi.StringInput `pulumi:"name"` ProjectId pulumi.StringInput `pulumi:"projectId"` }
func (GetConnectorSubnetArgs) ElementType ¶ added in v6.41.0
func (GetConnectorSubnetArgs) ElementType() reflect.Type
func (GetConnectorSubnetArgs) ToGetConnectorSubnetOutput ¶ added in v6.41.0
func (i GetConnectorSubnetArgs) ToGetConnectorSubnetOutput() GetConnectorSubnetOutput
func (GetConnectorSubnetArgs) ToGetConnectorSubnetOutputWithContext ¶ added in v6.41.0
func (i GetConnectorSubnetArgs) ToGetConnectorSubnetOutputWithContext(ctx context.Context) GetConnectorSubnetOutput
type GetConnectorSubnetArray ¶ added in v6.41.0
type GetConnectorSubnetArray []GetConnectorSubnetInput
func (GetConnectorSubnetArray) ElementType ¶ added in v6.41.0
func (GetConnectorSubnetArray) ElementType() reflect.Type
func (GetConnectorSubnetArray) ToGetConnectorSubnetArrayOutput ¶ added in v6.41.0
func (i GetConnectorSubnetArray) ToGetConnectorSubnetArrayOutput() GetConnectorSubnetArrayOutput
func (GetConnectorSubnetArray) ToGetConnectorSubnetArrayOutputWithContext ¶ added in v6.41.0
func (i GetConnectorSubnetArray) ToGetConnectorSubnetArrayOutputWithContext(ctx context.Context) GetConnectorSubnetArrayOutput
type GetConnectorSubnetArrayInput ¶ added in v6.41.0
type GetConnectorSubnetArrayInput interface { pulumi.Input ToGetConnectorSubnetArrayOutput() GetConnectorSubnetArrayOutput ToGetConnectorSubnetArrayOutputWithContext(context.Context) GetConnectorSubnetArrayOutput }
GetConnectorSubnetArrayInput is an input type that accepts GetConnectorSubnetArray and GetConnectorSubnetArrayOutput values. You can construct a concrete instance of `GetConnectorSubnetArrayInput` via:
GetConnectorSubnetArray{ GetConnectorSubnetArgs{...} }
type GetConnectorSubnetArrayOutput ¶ added in v6.41.0
type GetConnectorSubnetArrayOutput struct{ *pulumi.OutputState }
func (GetConnectorSubnetArrayOutput) ElementType ¶ added in v6.41.0
func (GetConnectorSubnetArrayOutput) ElementType() reflect.Type
func (GetConnectorSubnetArrayOutput) Index ¶ added in v6.41.0
func (o GetConnectorSubnetArrayOutput) Index(i pulumi.IntInput) GetConnectorSubnetOutput
func (GetConnectorSubnetArrayOutput) ToGetConnectorSubnetArrayOutput ¶ added in v6.41.0
func (o GetConnectorSubnetArrayOutput) ToGetConnectorSubnetArrayOutput() GetConnectorSubnetArrayOutput
func (GetConnectorSubnetArrayOutput) ToGetConnectorSubnetArrayOutputWithContext ¶ added in v6.41.0
func (o GetConnectorSubnetArrayOutput) ToGetConnectorSubnetArrayOutputWithContext(ctx context.Context) GetConnectorSubnetArrayOutput
type GetConnectorSubnetInput ¶ added in v6.41.0
type GetConnectorSubnetInput interface { pulumi.Input ToGetConnectorSubnetOutput() GetConnectorSubnetOutput ToGetConnectorSubnetOutputWithContext(context.Context) GetConnectorSubnetOutput }
GetConnectorSubnetInput is an input type that accepts GetConnectorSubnetArgs and GetConnectorSubnetOutput values. You can construct a concrete instance of `GetConnectorSubnetInput` via:
GetConnectorSubnetArgs{...}
type GetConnectorSubnetOutput ¶ added in v6.41.0
type GetConnectorSubnetOutput struct{ *pulumi.OutputState }
func (GetConnectorSubnetOutput) ElementType ¶ added in v6.41.0
func (GetConnectorSubnetOutput) ElementType() reflect.Type
func (GetConnectorSubnetOutput) Name ¶ added in v6.41.0
func (o GetConnectorSubnetOutput) Name() pulumi.StringOutput
Name of the resource.
func (GetConnectorSubnetOutput) ProjectId ¶ added in v6.41.0
func (o GetConnectorSubnetOutput) ProjectId() pulumi.StringOutput
func (GetConnectorSubnetOutput) ToGetConnectorSubnetOutput ¶ added in v6.41.0
func (o GetConnectorSubnetOutput) ToGetConnectorSubnetOutput() GetConnectorSubnetOutput
func (GetConnectorSubnetOutput) ToGetConnectorSubnetOutputWithContext ¶ added in v6.41.0
func (o GetConnectorSubnetOutput) ToGetConnectorSubnetOutputWithContext(ctx context.Context) GetConnectorSubnetOutput
type LookupConnectorArgs ¶ added in v6.41.0
type LookupConnectorArgs struct { // Name of the resource. Name string `pulumi:"name"` // The ID of the project in which the resource belongs. If it // is not provided, the provider project is used. Project *string `pulumi:"project"` // The region in which the resource belongs. If it // is not provided, the provider region is used. Region *string `pulumi:"region"` }
A collection of arguments for invoking getConnector.
type LookupConnectorOutputArgs ¶ added in v6.41.0
type LookupConnectorOutputArgs struct { // Name of the resource. Name pulumi.StringInput `pulumi:"name"` // The ID of the project in which the resource belongs. If it // is not provided, the provider project is used. Project pulumi.StringPtrInput `pulumi:"project"` // The region in which the resource belongs. If it // is not provided, the provider region is used. Region pulumi.StringPtrInput `pulumi:"region"` }
A collection of arguments for invoking getConnector.
func (LookupConnectorOutputArgs) ElementType ¶ added in v6.41.0
func (LookupConnectorOutputArgs) ElementType() reflect.Type
type LookupConnectorResult ¶ added in v6.41.0
type LookupConnectorResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` IpCidrRange string `pulumi:"ipCidrRange"` MachineType string `pulumi:"machineType"` MaxInstances int `pulumi:"maxInstances"` MaxThroughput int `pulumi:"maxThroughput"` MinInstances int `pulumi:"minInstances"` MinThroughput int `pulumi:"minThroughput"` Name string `pulumi:"name"` Network string `pulumi:"network"` Project *string `pulumi:"project"` Region *string `pulumi:"region"` SelfLink string `pulumi:"selfLink"` State string `pulumi:"state"` Subnets []GetConnectorSubnet `pulumi:"subnets"` }
A collection of values returned by getConnector.
func LookupConnector ¶ added in v6.41.0
func LookupConnector(ctx *pulumi.Context, args *LookupConnectorArgs, opts ...pulumi.InvokeOption) (*LookupConnectorResult, error)
Get a Serverless VPC Access connector.
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
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/vpcaccess" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err = vpcaccess.LookupConnector(ctx, &vpcaccess.LookupConnectorArgs{ Name: "vpc-con", }, nil) if err != nil { return err } _, 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 }) }
```
type LookupConnectorResultOutput ¶ added in v6.41.0
type LookupConnectorResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getConnector.
func LookupConnectorOutput ¶ added in v6.41.0
func LookupConnectorOutput(ctx *pulumi.Context, args LookupConnectorOutputArgs, opts ...pulumi.InvokeOption) LookupConnectorResultOutput
func (LookupConnectorResultOutput) ElementType ¶ added in v6.41.0
func (LookupConnectorResultOutput) ElementType() reflect.Type
func (LookupConnectorResultOutput) Id ¶ added in v6.41.0
func (o LookupConnectorResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupConnectorResultOutput) IpCidrRange ¶ added in v6.41.0
func (o LookupConnectorResultOutput) IpCidrRange() pulumi.StringOutput
func (LookupConnectorResultOutput) MachineType ¶ added in v6.41.0
func (o LookupConnectorResultOutput) MachineType() pulumi.StringOutput
func (LookupConnectorResultOutput) MaxInstances ¶ added in v6.41.0
func (o LookupConnectorResultOutput) MaxInstances() pulumi.IntOutput
func (LookupConnectorResultOutput) MaxThroughput ¶ added in v6.41.0
func (o LookupConnectorResultOutput) MaxThroughput() pulumi.IntOutput
func (LookupConnectorResultOutput) MinInstances ¶ added in v6.41.0
func (o LookupConnectorResultOutput) MinInstances() pulumi.IntOutput
func (LookupConnectorResultOutput) MinThroughput ¶ added in v6.41.0
func (o LookupConnectorResultOutput) MinThroughput() pulumi.IntOutput
func (LookupConnectorResultOutput) Name ¶ added in v6.41.0
func (o LookupConnectorResultOutput) Name() pulumi.StringOutput
func (LookupConnectorResultOutput) Network ¶ added in v6.41.0
func (o LookupConnectorResultOutput) Network() pulumi.StringOutput
func (LookupConnectorResultOutput) Project ¶ added in v6.41.0
func (o LookupConnectorResultOutput) Project() pulumi.StringPtrOutput
func (LookupConnectorResultOutput) Region ¶ added in v6.41.0
func (o LookupConnectorResultOutput) Region() pulumi.StringPtrOutput
func (LookupConnectorResultOutput) SelfLink ¶ added in v6.41.0
func (o LookupConnectorResultOutput) SelfLink() pulumi.StringOutput
func (LookupConnectorResultOutput) State ¶ added in v6.41.0
func (o LookupConnectorResultOutput) State() pulumi.StringOutput
func (LookupConnectorResultOutput) Subnets ¶ added in v6.41.0
func (o LookupConnectorResultOutput) Subnets() GetConnectorSubnetArrayOutput
func (LookupConnectorResultOutput) ToLookupConnectorResultOutput ¶ added in v6.41.0
func (o LookupConnectorResultOutput) ToLookupConnectorResultOutput() LookupConnectorResultOutput
func (LookupConnectorResultOutput) ToLookupConnectorResultOutputWithContext ¶ added in v6.41.0
func (o LookupConnectorResultOutput) ToLookupConnectorResultOutputWithContext(ctx context.Context) LookupConnectorResultOutput