vpcaccess

package
v7.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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

	// List of projects using the connector.
	ConnectedProjects pulumi.StringArrayOutput `pulumi:"connectedProjects"`
	// 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. Value must be between 3 and 10, inclusive. Must be
	// higher than the value specified by min_instances.
	MaxInstances pulumi.IntOutput `pulumi:"maxInstances"`
	// Maximum throughput of the connector in Mbps, must be greater than `minThroughput`. Default is 300. Refers to the expected throughput
	// when using an e2-micro machine type. Value must be a multiple of 100 from 300 through 1000. Must be higher than the value specified by
	// min_throughput. If both maxThroughput and maxInstances are provided, maxInstances takes precedence over max_throughput. The use of
	// maxThroughput is discouraged in favor of max_instances.
	MaxThroughput pulumi.IntPtrOutput `pulumi:"maxThroughput"`
	// Minimum value of instances in autoscaling group underlying the connector. Value must be between 2 and 9, inclusive. Must be
	// lower than the value specified by max_instances.
	MinInstances pulumi.IntOutput `pulumi:"minInstances"`
	// Minimum throughput of the connector in Mbps. Default and min is 200. Refers to the expected throughput when using an e2-micro machine type.
	// Value must be a multiple of 100 from 200 through 900. Must be lower than the value specified by max_throughput. If both minThroughput and
	// minInstances are provided, minInstances takes precedence over min_throughput. The use of minThroughput is discouraged in favor of min_instances.
	MinThroughput pulumi.IntPtrOutput `pulumi:"minThroughput"`
	// The name of the resource (Max 25 characters).
	//
	// ***
	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

## Example Usage

### Vpc Access Connector

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v7/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{
			Name:        pulumi.String("vpc-con"),
			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/v7/go/gcp/compute"
"github.com/pulumi/pulumi-gcp/sdk/v7/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, "custom_test", &compute.NetworkArgs{
			Name:                  pulumi.String("vpc-con"),
			AutoCreateSubnetworks: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		customTest, err := compute.NewSubnetwork(ctx, "custom_test", &compute.SubnetworkArgs{
			Name:        pulumi.String("vpc-con"),
			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{
			Name: pulumi.String("vpc-con"),
			Subnet: &vpcaccess.ConnectorSubnetArgs{
				Name: customTest.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:

* `projects/{{project}}/locations/{{region}}/connectors/{{name}}`

* `{{project}}/{{region}}/{{name}}`

* `{{region}}/{{name}}`

* `{{name}}`

When using the `pulumi import` command, Connector can be imported using one of the formats above. For example:

```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) ElementType() reflect.Type

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. Value must be between 3 and 10, inclusive. Must be
	// higher than the value specified by min_instances.
	MaxInstances pulumi.IntPtrInput
	// Maximum throughput of the connector in Mbps, must be greater than `minThroughput`. Default is 300. Refers to the expected throughput
	// when using an e2-micro machine type. Value must be a multiple of 100 from 300 through 1000. Must be higher than the value specified by
	// min_throughput. If both maxThroughput and maxInstances are provided, maxInstances takes precedence over max_throughput. The use of
	// maxThroughput is discouraged in favor of max_instances.
	MaxThroughput pulumi.IntPtrInput
	// Minimum value of instances in autoscaling group underlying the connector. Value must be between 2 and 9, inclusive. Must be
	// lower than the value specified by max_instances.
	MinInstances pulumi.IntPtrInput
	// Minimum throughput of the connector in Mbps. Default and min is 200. Refers to the expected throughput when using an e2-micro machine type.
	// Value must be a multiple of 100 from 200 through 900. Must be lower than the value specified by max_throughput. If both minThroughput and
	// minInstances are provided, minInstances takes precedence over min_throughput. The use of minThroughput is discouraged in favor of min_instances.
	MinThroughput pulumi.IntPtrInput
	// The name of the resource (Max 25 characters).
	//
	// ***
	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 (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 (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) ConnectedProjects

func (o ConnectorOutput) ConnectedProjects() pulumi.StringArrayOutput

List of projects using the connector.

func (ConnectorOutput) ElementType

func (ConnectorOutput) ElementType() reflect.Type

func (ConnectorOutput) IpCidrRange

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

func (o ConnectorOutput) MachineType() pulumi.StringPtrOutput

Machine type of VM Instance underlying connector. Default is e2-micro

func (ConnectorOutput) MaxInstances

func (o ConnectorOutput) MaxInstances() pulumi.IntOutput

Maximum value of instances in autoscaling group underlying the connector. Value must be between 3 and 10, inclusive. Must be higher than the value specified by min_instances.

func (ConnectorOutput) MaxThroughput

func (o ConnectorOutput) MaxThroughput() pulumi.IntPtrOutput

Maximum throughput of the connector in Mbps, must be greater than `minThroughput`. Default is 300. Refers to the expected throughput when using an e2-micro machine type. Value must be a multiple of 100 from 300 through 1000. Must be higher than the value specified by min_throughput. If both maxThroughput and maxInstances are provided, maxInstances takes precedence over max_throughput. The use of maxThroughput is discouraged in favor of max_instances.

func (ConnectorOutput) MinInstances

func (o ConnectorOutput) MinInstances() pulumi.IntOutput

Minimum value of instances in autoscaling group underlying the connector. Value must be between 2 and 9, inclusive. Must be lower than the value specified by max_instances.

func (ConnectorOutput) MinThroughput

func (o ConnectorOutput) MinThroughput() pulumi.IntPtrOutput

Minimum throughput of the connector in Mbps. Default and min is 200. Refers to the expected throughput when using an e2-micro machine type. Value must be a multiple of 100 from 200 through 900. Must be lower than the value specified by max_throughput. If both minThroughput and minInstances are provided, minInstances takes precedence over min_throughput. The use of minThroughput is discouraged in favor of min_instances.

func (ConnectorOutput) Name

The name of the resource (Max 25 characters).

***

func (ConnectorOutput) Network

func (o ConnectorOutput) Network() pulumi.StringOutput

Name or selfLink of the VPC network. Required if `ipCidrRange` is set.

func (ConnectorOutput) Project

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

func (o ConnectorOutput) Region() pulumi.StringOutput

Region where the VPC Access connector resides. If it is not provided, the provider region is used.

func (o ConnectorOutput) SelfLink() pulumi.StringOutput

The fully qualified name of this VPC connector

func (ConnectorOutput) State

State of the VPC access connector.

func (ConnectorOutput) Subnet

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 {
	// List of projects using the connector.
	ConnectedProjects pulumi.StringArrayInput
	// 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. Value must be between 3 and 10, inclusive. Must be
	// higher than the value specified by min_instances.
	MaxInstances pulumi.IntPtrInput
	// Maximum throughput of the connector in Mbps, must be greater than `minThroughput`. Default is 300. Refers to the expected throughput
	// when using an e2-micro machine type. Value must be a multiple of 100 from 300 through 1000. Must be higher than the value specified by
	// min_throughput. If both maxThroughput and maxInstances are provided, maxInstances takes precedence over max_throughput. The use of
	// maxThroughput is discouraged in favor of max_instances.
	MaxThroughput pulumi.IntPtrInput
	// Minimum value of instances in autoscaling group underlying the connector. Value must be between 2 and 9, inclusive. Must be
	// lower than the value specified by max_instances.
	MinInstances pulumi.IntPtrInput
	// Minimum throughput of the connector in Mbps. Default and min is 200. Refers to the expected throughput when using an e2-micro machine type.
	// Value must be a multiple of 100 from 200 through 900. Must be lower than the value specified by max_throughput. If both minThroughput and
	// minInstances are provided, minInstances takes precedence over min_throughput. The use of minThroughput is discouraged in favor of min_instances.
	MinThroughput pulumi.IntPtrInput
	// The name of the resource (Max 25 characters).
	//
	// ***
	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

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

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

type ConnectorSubnetPtrOutput

type ConnectorSubnetPtrOutput struct{ *pulumi.OutputState }

func (ConnectorSubnetPtrOutput) Elem

func (ConnectorSubnetPtrOutput) ElementType

func (ConnectorSubnetPtrOutput) ElementType() reflect.Type

func (ConnectorSubnetPtrOutput) Name

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

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

type GetConnectorSubnet struct {
	// Name of the resource.
	//
	// ***
	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 GetConnectorSubnetArgs

type GetConnectorSubnetArgs struct {
	// Name of the resource.
	//
	// ***
	Name pulumi.StringInput `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.StringInput `pulumi:"projectId"`
}

func (GetConnectorSubnetArgs) ElementType

func (GetConnectorSubnetArgs) ElementType() reflect.Type

func (GetConnectorSubnetArgs) ToGetConnectorSubnetOutput

func (i GetConnectorSubnetArgs) ToGetConnectorSubnetOutput() GetConnectorSubnetOutput

func (GetConnectorSubnetArgs) ToGetConnectorSubnetOutputWithContext

func (i GetConnectorSubnetArgs) ToGetConnectorSubnetOutputWithContext(ctx context.Context) GetConnectorSubnetOutput

type GetConnectorSubnetArray

type GetConnectorSubnetArray []GetConnectorSubnetInput

func (GetConnectorSubnetArray) ElementType

func (GetConnectorSubnetArray) ElementType() reflect.Type

func (GetConnectorSubnetArray) ToGetConnectorSubnetArrayOutput

func (i GetConnectorSubnetArray) ToGetConnectorSubnetArrayOutput() GetConnectorSubnetArrayOutput

func (GetConnectorSubnetArray) ToGetConnectorSubnetArrayOutputWithContext

func (i GetConnectorSubnetArray) ToGetConnectorSubnetArrayOutputWithContext(ctx context.Context) GetConnectorSubnetArrayOutput

type GetConnectorSubnetArrayInput

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

type GetConnectorSubnetArrayOutput struct{ *pulumi.OutputState }

func (GetConnectorSubnetArrayOutput) ElementType

func (GetConnectorSubnetArrayOutput) Index

func (GetConnectorSubnetArrayOutput) ToGetConnectorSubnetArrayOutput

func (o GetConnectorSubnetArrayOutput) ToGetConnectorSubnetArrayOutput() GetConnectorSubnetArrayOutput

func (GetConnectorSubnetArrayOutput) ToGetConnectorSubnetArrayOutputWithContext

func (o GetConnectorSubnetArrayOutput) ToGetConnectorSubnetArrayOutputWithContext(ctx context.Context) GetConnectorSubnetArrayOutput

type GetConnectorSubnetInput

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

type GetConnectorSubnetOutput struct{ *pulumi.OutputState }

func (GetConnectorSubnetOutput) ElementType

func (GetConnectorSubnetOutput) ElementType() reflect.Type

func (GetConnectorSubnetOutput) Name

Name of the resource.

***

func (GetConnectorSubnetOutput) ProjectId

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 (GetConnectorSubnetOutput) ToGetConnectorSubnetOutput

func (o GetConnectorSubnetOutput) ToGetConnectorSubnetOutput() GetConnectorSubnetOutput

func (GetConnectorSubnetOutput) ToGetConnectorSubnetOutputWithContext

func (o GetConnectorSubnetOutput) ToGetConnectorSubnetOutputWithContext(ctx context.Context) GetConnectorSubnetOutput

type LookupConnectorArgs

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

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

func (LookupConnectorOutputArgs) ElementType() reflect.Type

type LookupConnectorResult

type LookupConnectorResult struct {
	ConnectedProjects []string `pulumi:"connectedProjects"`
	// 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

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

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v7/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{
			Name:        pulumi.String("vpc-con"),
			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

type LookupConnectorResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getConnector.

func (LookupConnectorResultOutput) ConnectedProjects

func (LookupConnectorResultOutput) ElementType

func (LookupConnectorResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupConnectorResultOutput) IpCidrRange

func (LookupConnectorResultOutput) MachineType

func (LookupConnectorResultOutput) MaxInstances

func (o LookupConnectorResultOutput) MaxInstances() pulumi.IntOutput

func (LookupConnectorResultOutput) MaxThroughput

func (o LookupConnectorResultOutput) MaxThroughput() pulumi.IntOutput

func (LookupConnectorResultOutput) MinInstances

func (o LookupConnectorResultOutput) MinInstances() pulumi.IntOutput

func (LookupConnectorResultOutput) MinThroughput

func (o LookupConnectorResultOutput) MinThroughput() pulumi.IntOutput

func (LookupConnectorResultOutput) Name

func (LookupConnectorResultOutput) Network

func (LookupConnectorResultOutput) Project

func (LookupConnectorResultOutput) Region

func (LookupConnectorResultOutput) State

func (LookupConnectorResultOutput) Subnets

func (LookupConnectorResultOutput) ToLookupConnectorResultOutput

func (o LookupConnectorResultOutput) ToLookupConnectorResultOutput() LookupConnectorResultOutput

func (LookupConnectorResultOutput) ToLookupConnectorResultOutputWithContext

func (o LookupConnectorResultOutput) ToLookupConnectorResultOutputWithContext(ctx context.Context) LookupConnectorResultOutput

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL