vpcaccess

package
v4.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: Apache-2.0 Imports: 4 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

	// 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

## 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"),
			Region:      pulumi.String("us-central1"),
		})
		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) ElementType() reflect.Type

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

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 ConnectorInput added in v4.4.0

type ConnectorInput interface {
	pulumi.Input

	ToConnectorOutput() ConnectorOutput
	ToConnectorOutputWithContext(ctx context.Context) ConnectorOutput
}

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

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

Jump to

Keyboard shortcuts

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