memcache

package
v5.26.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	pulumi.CustomResourceState

	// The full name of the GCE network to connect the instance to.  If not provided,
	// 'default' will be used.
	AuthorizedNetwork pulumi.StringOutput `pulumi:"authorizedNetwork"`
	// Creation timestamp in RFC3339 text format.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// Endpoint for Discovery API
	DiscoveryEndpoint pulumi.StringOutput `pulumi:"discoveryEndpoint"`
	// A user-visible name for the instance.
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// Resource labels to represent user-provided metadata.
	Labels pulumi.StringMapOutput `pulumi:"labels"`
	// The full version of memcached server running on this instance.
	MemcacheFullVersion pulumi.StringOutput `pulumi:"memcacheFullVersion"`
	// Additional information about the instance state, if available.
	MemcacheNodes InstanceMemcacheNodeArrayOutput `pulumi:"memcacheNodes"`
	// User-specified parameters for this memcache instance.
	// Structure is documented below.
	MemcacheParameters InstanceMemcacheParametersPtrOutput `pulumi:"memcacheParameters"`
	// The major version of Memcached software. If not provided, latest supported version will be used.
	// Currently the latest supported major version is MEMCACHE_1_5. The minor version will be automatically
	// determined by our system based on the latest supported minor version.
	// Default value is `MEMCACHE_1_5`.
	// Possible values are `MEMCACHE_1_5`.
	MemcacheVersion pulumi.StringPtrOutput `pulumi:"memcacheVersion"`
	// The resource name of the instance.
	Name pulumi.StringOutput `pulumi:"name"`
	// Configuration for memcache nodes.
	// Structure is documented below.
	NodeConfig InstanceNodeConfigOutput `pulumi:"nodeConfig"`
	// Number of nodes in the memcache instance.
	NodeCount pulumi.IntOutput `pulumi:"nodeCount"`
	// 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"`
	// The region of the Memcache instance. If it is not provided, the provider region is used.
	Region pulumi.StringOutput `pulumi:"region"`
	// Zones where memcache nodes should be provisioned.  If not
	// provided, all zones will be used.
	Zones pulumi.StringArrayOutput `pulumi:"zones"`
}

A Google Cloud Memcache instance.

To get more information about Instance, see:

* [API documentation](https://cloud.google.com/memorystore/docs/memcached/reference/rest/v1/projects.locations.instances) * How-to Guides

## Example Usage ### Memcache Instance Basic

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/compute"
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/memcache"
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/servicenetworking"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		memcacheNetwork, err := compute.LookupNetwork(ctx, &compute.LookupNetworkArgs{
			Name: "test-network",
		}, nil)
		if err != nil {
			return err
		}
		serviceRange, err := compute.NewGlobalAddress(ctx, "serviceRange", &compute.GlobalAddressArgs{
			Purpose:      pulumi.String("VPC_PEERING"),
			AddressType:  pulumi.String("INTERNAL"),
			PrefixLength: pulumi.Int(16),
			Network:      pulumi.String(memcacheNetwork.Id),
		})
		if err != nil {
			return err
		}
		privateServiceConnection, err := servicenetworking.NewConnection(ctx, "privateServiceConnection", &servicenetworking.ConnectionArgs{
			Network: pulumi.String(memcacheNetwork.Id),
			Service: pulumi.String("servicenetworking.googleapis.com"),
			ReservedPeeringRanges: pulumi.StringArray{
				serviceRange.Name,
			},
		})
		if err != nil {
			return err
		}
		_, err = memcache.NewInstance(ctx, "instance", &memcache.InstanceArgs{
			AuthorizedNetwork: privateServiceConnection.Network,
			NodeConfig: &memcache.InstanceNodeConfigArgs{
				CpuCount:     pulumi.Int(1),
				MemorySizeMb: pulumi.Int(1024),
			},
			NodeCount:       pulumi.Int(1),
			MemcacheVersion: pulumi.String("MEMCACHE_1_5"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Instance can be imported using any of these accepted formats

```sh

$ pulumi import gcp:memcache/instance:Instance default projects/{{project}}/locations/{{region}}/instances/{{name}}

```

```sh

$ pulumi import gcp:memcache/instance:Instance default {{project}}/{{region}}/{{name}}

```

```sh

$ pulumi import gcp:memcache/instance:Instance default {{region}}/{{name}}

```

```sh

$ pulumi import gcp:memcache/instance:Instance default {{name}}

```

func GetInstance

func GetInstance(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *InstanceState, opts ...pulumi.ResourceOption) (*Instance, error)

GetInstance gets an existing Instance 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 NewInstance

func NewInstance(ctx *pulumi.Context,
	name string, args *InstanceArgs, opts ...pulumi.ResourceOption) (*Instance, error)

NewInstance registers a new resource with the given unique name, arguments, and options.

func (*Instance) ElementType

func (*Instance) ElementType() reflect.Type

func (*Instance) ToInstanceOutput

func (i *Instance) ToInstanceOutput() InstanceOutput

func (*Instance) ToInstanceOutputWithContext

func (i *Instance) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput

func (*Instance) ToInstancePtrOutput

func (i *Instance) ToInstancePtrOutput() InstancePtrOutput

func (*Instance) ToInstancePtrOutputWithContext

func (i *Instance) ToInstancePtrOutputWithContext(ctx context.Context) InstancePtrOutput

type InstanceArgs

type InstanceArgs struct {
	// The full name of the GCE network to connect the instance to.  If not provided,
	// 'default' will be used.
	AuthorizedNetwork pulumi.StringPtrInput
	// A user-visible name for the instance.
	DisplayName pulumi.StringPtrInput
	// Resource labels to represent user-provided metadata.
	Labels pulumi.StringMapInput
	// User-specified parameters for this memcache instance.
	// Structure is documented below.
	MemcacheParameters InstanceMemcacheParametersPtrInput
	// The major version of Memcached software. If not provided, latest supported version will be used.
	// Currently the latest supported major version is MEMCACHE_1_5. The minor version will be automatically
	// determined by our system based on the latest supported minor version.
	// Default value is `MEMCACHE_1_5`.
	// Possible values are `MEMCACHE_1_5`.
	MemcacheVersion pulumi.StringPtrInput
	// The resource name of the instance.
	Name pulumi.StringPtrInput
	// Configuration for memcache nodes.
	// Structure is documented below.
	NodeConfig InstanceNodeConfigInput
	// Number of nodes in the memcache instance.
	NodeCount pulumi.IntInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringPtrInput
	// The region of the Memcache instance. If it is not provided, the provider region is used.
	Region pulumi.StringPtrInput
	// Zones where memcache nodes should be provisioned.  If not
	// provided, all zones will be used.
	Zones pulumi.StringArrayInput
}

The set of arguments for constructing a Instance resource.

func (InstanceArgs) ElementType

func (InstanceArgs) ElementType() reflect.Type

type InstanceArray

type InstanceArray []InstanceInput

func (InstanceArray) ElementType

func (InstanceArray) ElementType() reflect.Type

func (InstanceArray) ToInstanceArrayOutput

func (i InstanceArray) ToInstanceArrayOutput() InstanceArrayOutput

func (InstanceArray) ToInstanceArrayOutputWithContext

func (i InstanceArray) ToInstanceArrayOutputWithContext(ctx context.Context) InstanceArrayOutput

type InstanceArrayInput

type InstanceArrayInput interface {
	pulumi.Input

	ToInstanceArrayOutput() InstanceArrayOutput
	ToInstanceArrayOutputWithContext(context.Context) InstanceArrayOutput
}

InstanceArrayInput is an input type that accepts InstanceArray and InstanceArrayOutput values. You can construct a concrete instance of `InstanceArrayInput` via:

InstanceArray{ InstanceArgs{...} }

type InstanceArrayOutput

type InstanceArrayOutput struct{ *pulumi.OutputState }

func (InstanceArrayOutput) ElementType

func (InstanceArrayOutput) ElementType() reflect.Type

func (InstanceArrayOutput) Index

func (InstanceArrayOutput) ToInstanceArrayOutput

func (o InstanceArrayOutput) ToInstanceArrayOutput() InstanceArrayOutput

func (InstanceArrayOutput) ToInstanceArrayOutputWithContext

func (o InstanceArrayOutput) ToInstanceArrayOutputWithContext(ctx context.Context) InstanceArrayOutput

type InstanceInput

type InstanceInput interface {
	pulumi.Input

	ToInstanceOutput() InstanceOutput
	ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
}

type InstanceMap

type InstanceMap map[string]InstanceInput

func (InstanceMap) ElementType

func (InstanceMap) ElementType() reflect.Type

func (InstanceMap) ToInstanceMapOutput

func (i InstanceMap) ToInstanceMapOutput() InstanceMapOutput

func (InstanceMap) ToInstanceMapOutputWithContext

func (i InstanceMap) ToInstanceMapOutputWithContext(ctx context.Context) InstanceMapOutput

type InstanceMapInput

type InstanceMapInput interface {
	pulumi.Input

	ToInstanceMapOutput() InstanceMapOutput
	ToInstanceMapOutputWithContext(context.Context) InstanceMapOutput
}

InstanceMapInput is an input type that accepts InstanceMap and InstanceMapOutput values. You can construct a concrete instance of `InstanceMapInput` via:

InstanceMap{ "key": InstanceArgs{...} }

type InstanceMapOutput

type InstanceMapOutput struct{ *pulumi.OutputState }

func (InstanceMapOutput) ElementType

func (InstanceMapOutput) ElementType() reflect.Type

func (InstanceMapOutput) MapIndex

func (InstanceMapOutput) ToInstanceMapOutput

func (o InstanceMapOutput) ToInstanceMapOutput() InstanceMapOutput

func (InstanceMapOutput) ToInstanceMapOutputWithContext

func (o InstanceMapOutput) ToInstanceMapOutputWithContext(ctx context.Context) InstanceMapOutput

type InstanceMemcacheNode

type InstanceMemcacheNode struct {
	Host   *string `pulumi:"host"`
	NodeId *string `pulumi:"nodeId"`
	Port   *int    `pulumi:"port"`
	State  *string `pulumi:"state"`
	Zone   *string `pulumi:"zone"`
}

type InstanceMemcacheNodeArgs

type InstanceMemcacheNodeArgs struct {
	Host   pulumi.StringPtrInput `pulumi:"host"`
	NodeId pulumi.StringPtrInput `pulumi:"nodeId"`
	Port   pulumi.IntPtrInput    `pulumi:"port"`
	State  pulumi.StringPtrInput `pulumi:"state"`
	Zone   pulumi.StringPtrInput `pulumi:"zone"`
}

func (InstanceMemcacheNodeArgs) ElementType

func (InstanceMemcacheNodeArgs) ElementType() reflect.Type

func (InstanceMemcacheNodeArgs) ToInstanceMemcacheNodeOutput

func (i InstanceMemcacheNodeArgs) ToInstanceMemcacheNodeOutput() InstanceMemcacheNodeOutput

func (InstanceMemcacheNodeArgs) ToInstanceMemcacheNodeOutputWithContext

func (i InstanceMemcacheNodeArgs) ToInstanceMemcacheNodeOutputWithContext(ctx context.Context) InstanceMemcacheNodeOutput

type InstanceMemcacheNodeArray

type InstanceMemcacheNodeArray []InstanceMemcacheNodeInput

func (InstanceMemcacheNodeArray) ElementType

func (InstanceMemcacheNodeArray) ElementType() reflect.Type

func (InstanceMemcacheNodeArray) ToInstanceMemcacheNodeArrayOutput

func (i InstanceMemcacheNodeArray) ToInstanceMemcacheNodeArrayOutput() InstanceMemcacheNodeArrayOutput

func (InstanceMemcacheNodeArray) ToInstanceMemcacheNodeArrayOutputWithContext

func (i InstanceMemcacheNodeArray) ToInstanceMemcacheNodeArrayOutputWithContext(ctx context.Context) InstanceMemcacheNodeArrayOutput

type InstanceMemcacheNodeArrayInput

type InstanceMemcacheNodeArrayInput interface {
	pulumi.Input

	ToInstanceMemcacheNodeArrayOutput() InstanceMemcacheNodeArrayOutput
	ToInstanceMemcacheNodeArrayOutputWithContext(context.Context) InstanceMemcacheNodeArrayOutput
}

InstanceMemcacheNodeArrayInput is an input type that accepts InstanceMemcacheNodeArray and InstanceMemcacheNodeArrayOutput values. You can construct a concrete instance of `InstanceMemcacheNodeArrayInput` via:

InstanceMemcacheNodeArray{ InstanceMemcacheNodeArgs{...} }

type InstanceMemcacheNodeArrayOutput

type InstanceMemcacheNodeArrayOutput struct{ *pulumi.OutputState }

func (InstanceMemcacheNodeArrayOutput) ElementType

func (InstanceMemcacheNodeArrayOutput) Index

func (InstanceMemcacheNodeArrayOutput) ToInstanceMemcacheNodeArrayOutput

func (o InstanceMemcacheNodeArrayOutput) ToInstanceMemcacheNodeArrayOutput() InstanceMemcacheNodeArrayOutput

func (InstanceMemcacheNodeArrayOutput) ToInstanceMemcacheNodeArrayOutputWithContext

func (o InstanceMemcacheNodeArrayOutput) ToInstanceMemcacheNodeArrayOutputWithContext(ctx context.Context) InstanceMemcacheNodeArrayOutput

type InstanceMemcacheNodeInput

type InstanceMemcacheNodeInput interface {
	pulumi.Input

	ToInstanceMemcacheNodeOutput() InstanceMemcacheNodeOutput
	ToInstanceMemcacheNodeOutputWithContext(context.Context) InstanceMemcacheNodeOutput
}

InstanceMemcacheNodeInput is an input type that accepts InstanceMemcacheNodeArgs and InstanceMemcacheNodeOutput values. You can construct a concrete instance of `InstanceMemcacheNodeInput` via:

InstanceMemcacheNodeArgs{...}

type InstanceMemcacheNodeOutput

type InstanceMemcacheNodeOutput struct{ *pulumi.OutputState }

func (InstanceMemcacheNodeOutput) ElementType

func (InstanceMemcacheNodeOutput) ElementType() reflect.Type

func (InstanceMemcacheNodeOutput) Host

func (InstanceMemcacheNodeOutput) NodeId

func (InstanceMemcacheNodeOutput) Port

func (InstanceMemcacheNodeOutput) State

func (InstanceMemcacheNodeOutput) ToInstanceMemcacheNodeOutput

func (o InstanceMemcacheNodeOutput) ToInstanceMemcacheNodeOutput() InstanceMemcacheNodeOutput

func (InstanceMemcacheNodeOutput) ToInstanceMemcacheNodeOutputWithContext

func (o InstanceMemcacheNodeOutput) ToInstanceMemcacheNodeOutputWithContext(ctx context.Context) InstanceMemcacheNodeOutput

func (InstanceMemcacheNodeOutput) Zone

type InstanceMemcacheParameters

type InstanceMemcacheParameters struct {
	// -
	// This is a unique ID associated with this set of parameters.
	Id *string `pulumi:"id"`
	// User-defined set of parameters to use in the memcache process.
	Params map[string]string `pulumi:"params"`
}

type InstanceMemcacheParametersArgs

type InstanceMemcacheParametersArgs struct {
	// -
	// This is a unique ID associated with this set of parameters.
	Id pulumi.StringPtrInput `pulumi:"id"`
	// User-defined set of parameters to use in the memcache process.
	Params pulumi.StringMapInput `pulumi:"params"`
}

func (InstanceMemcacheParametersArgs) ElementType

func (InstanceMemcacheParametersArgs) ToInstanceMemcacheParametersOutput

func (i InstanceMemcacheParametersArgs) ToInstanceMemcacheParametersOutput() InstanceMemcacheParametersOutput

func (InstanceMemcacheParametersArgs) ToInstanceMemcacheParametersOutputWithContext

func (i InstanceMemcacheParametersArgs) ToInstanceMemcacheParametersOutputWithContext(ctx context.Context) InstanceMemcacheParametersOutput

func (InstanceMemcacheParametersArgs) ToInstanceMemcacheParametersPtrOutput

func (i InstanceMemcacheParametersArgs) ToInstanceMemcacheParametersPtrOutput() InstanceMemcacheParametersPtrOutput

func (InstanceMemcacheParametersArgs) ToInstanceMemcacheParametersPtrOutputWithContext

func (i InstanceMemcacheParametersArgs) ToInstanceMemcacheParametersPtrOutputWithContext(ctx context.Context) InstanceMemcacheParametersPtrOutput

type InstanceMemcacheParametersInput

type InstanceMemcacheParametersInput interface {
	pulumi.Input

	ToInstanceMemcacheParametersOutput() InstanceMemcacheParametersOutput
	ToInstanceMemcacheParametersOutputWithContext(context.Context) InstanceMemcacheParametersOutput
}

InstanceMemcacheParametersInput is an input type that accepts InstanceMemcacheParametersArgs and InstanceMemcacheParametersOutput values. You can construct a concrete instance of `InstanceMemcacheParametersInput` via:

InstanceMemcacheParametersArgs{...}

type InstanceMemcacheParametersOutput

type InstanceMemcacheParametersOutput struct{ *pulumi.OutputState }

func (InstanceMemcacheParametersOutput) ElementType

func (InstanceMemcacheParametersOutput) Id

- This is a unique ID associated with this set of parameters.

func (InstanceMemcacheParametersOutput) Params

User-defined set of parameters to use in the memcache process.

func (InstanceMemcacheParametersOutput) ToInstanceMemcacheParametersOutput

func (o InstanceMemcacheParametersOutput) ToInstanceMemcacheParametersOutput() InstanceMemcacheParametersOutput

func (InstanceMemcacheParametersOutput) ToInstanceMemcacheParametersOutputWithContext

func (o InstanceMemcacheParametersOutput) ToInstanceMemcacheParametersOutputWithContext(ctx context.Context) InstanceMemcacheParametersOutput

func (InstanceMemcacheParametersOutput) ToInstanceMemcacheParametersPtrOutput

func (o InstanceMemcacheParametersOutput) ToInstanceMemcacheParametersPtrOutput() InstanceMemcacheParametersPtrOutput

func (InstanceMemcacheParametersOutput) ToInstanceMemcacheParametersPtrOutputWithContext

func (o InstanceMemcacheParametersOutput) ToInstanceMemcacheParametersPtrOutputWithContext(ctx context.Context) InstanceMemcacheParametersPtrOutput

type InstanceMemcacheParametersPtrInput

type InstanceMemcacheParametersPtrInput interface {
	pulumi.Input

	ToInstanceMemcacheParametersPtrOutput() InstanceMemcacheParametersPtrOutput
	ToInstanceMemcacheParametersPtrOutputWithContext(context.Context) InstanceMemcacheParametersPtrOutput
}

InstanceMemcacheParametersPtrInput is an input type that accepts InstanceMemcacheParametersArgs, InstanceMemcacheParametersPtr and InstanceMemcacheParametersPtrOutput values. You can construct a concrete instance of `InstanceMemcacheParametersPtrInput` via:

        InstanceMemcacheParametersArgs{...}

or:

        nil

type InstanceMemcacheParametersPtrOutput

type InstanceMemcacheParametersPtrOutput struct{ *pulumi.OutputState }

func (InstanceMemcacheParametersPtrOutput) Elem

func (InstanceMemcacheParametersPtrOutput) ElementType

func (InstanceMemcacheParametersPtrOutput) Id

- This is a unique ID associated with this set of parameters.

func (InstanceMemcacheParametersPtrOutput) Params

User-defined set of parameters to use in the memcache process.

func (InstanceMemcacheParametersPtrOutput) ToInstanceMemcacheParametersPtrOutput

func (o InstanceMemcacheParametersPtrOutput) ToInstanceMemcacheParametersPtrOutput() InstanceMemcacheParametersPtrOutput

func (InstanceMemcacheParametersPtrOutput) ToInstanceMemcacheParametersPtrOutputWithContext

func (o InstanceMemcacheParametersPtrOutput) ToInstanceMemcacheParametersPtrOutputWithContext(ctx context.Context) InstanceMemcacheParametersPtrOutput

type InstanceNodeConfig

type InstanceNodeConfig struct {
	// Number of CPUs per node.
	CpuCount int `pulumi:"cpuCount"`
	// Memory size in Mebibytes for each memcache node.
	MemorySizeMb int `pulumi:"memorySizeMb"`
}

type InstanceNodeConfigArgs

type InstanceNodeConfigArgs struct {
	// Number of CPUs per node.
	CpuCount pulumi.IntInput `pulumi:"cpuCount"`
	// Memory size in Mebibytes for each memcache node.
	MemorySizeMb pulumi.IntInput `pulumi:"memorySizeMb"`
}

func (InstanceNodeConfigArgs) ElementType

func (InstanceNodeConfigArgs) ElementType() reflect.Type

func (InstanceNodeConfigArgs) ToInstanceNodeConfigOutput

func (i InstanceNodeConfigArgs) ToInstanceNodeConfigOutput() InstanceNodeConfigOutput

func (InstanceNodeConfigArgs) ToInstanceNodeConfigOutputWithContext

func (i InstanceNodeConfigArgs) ToInstanceNodeConfigOutputWithContext(ctx context.Context) InstanceNodeConfigOutput

func (InstanceNodeConfigArgs) ToInstanceNodeConfigPtrOutput

func (i InstanceNodeConfigArgs) ToInstanceNodeConfigPtrOutput() InstanceNodeConfigPtrOutput

func (InstanceNodeConfigArgs) ToInstanceNodeConfigPtrOutputWithContext

func (i InstanceNodeConfigArgs) ToInstanceNodeConfigPtrOutputWithContext(ctx context.Context) InstanceNodeConfigPtrOutput

type InstanceNodeConfigInput

type InstanceNodeConfigInput interface {
	pulumi.Input

	ToInstanceNodeConfigOutput() InstanceNodeConfigOutput
	ToInstanceNodeConfigOutputWithContext(context.Context) InstanceNodeConfigOutput
}

InstanceNodeConfigInput is an input type that accepts InstanceNodeConfigArgs and InstanceNodeConfigOutput values. You can construct a concrete instance of `InstanceNodeConfigInput` via:

InstanceNodeConfigArgs{...}

type InstanceNodeConfigOutput

type InstanceNodeConfigOutput struct{ *pulumi.OutputState }

func (InstanceNodeConfigOutput) CpuCount

Number of CPUs per node.

func (InstanceNodeConfigOutput) ElementType

func (InstanceNodeConfigOutput) ElementType() reflect.Type

func (InstanceNodeConfigOutput) MemorySizeMb

func (o InstanceNodeConfigOutput) MemorySizeMb() pulumi.IntOutput

Memory size in Mebibytes for each memcache node.

func (InstanceNodeConfigOutput) ToInstanceNodeConfigOutput

func (o InstanceNodeConfigOutput) ToInstanceNodeConfigOutput() InstanceNodeConfigOutput

func (InstanceNodeConfigOutput) ToInstanceNodeConfigOutputWithContext

func (o InstanceNodeConfigOutput) ToInstanceNodeConfigOutputWithContext(ctx context.Context) InstanceNodeConfigOutput

func (InstanceNodeConfigOutput) ToInstanceNodeConfigPtrOutput

func (o InstanceNodeConfigOutput) ToInstanceNodeConfigPtrOutput() InstanceNodeConfigPtrOutput

func (InstanceNodeConfigOutput) ToInstanceNodeConfigPtrOutputWithContext

func (o InstanceNodeConfigOutput) ToInstanceNodeConfigPtrOutputWithContext(ctx context.Context) InstanceNodeConfigPtrOutput

type InstanceNodeConfigPtrInput

type InstanceNodeConfigPtrInput interface {
	pulumi.Input

	ToInstanceNodeConfigPtrOutput() InstanceNodeConfigPtrOutput
	ToInstanceNodeConfigPtrOutputWithContext(context.Context) InstanceNodeConfigPtrOutput
}

InstanceNodeConfigPtrInput is an input type that accepts InstanceNodeConfigArgs, InstanceNodeConfigPtr and InstanceNodeConfigPtrOutput values. You can construct a concrete instance of `InstanceNodeConfigPtrInput` via:

        InstanceNodeConfigArgs{...}

or:

        nil

type InstanceNodeConfigPtrOutput

type InstanceNodeConfigPtrOutput struct{ *pulumi.OutputState }

func (InstanceNodeConfigPtrOutput) CpuCount

Number of CPUs per node.

func (InstanceNodeConfigPtrOutput) Elem

func (InstanceNodeConfigPtrOutput) ElementType

func (InstanceNodeConfigPtrOutput) MemorySizeMb

Memory size in Mebibytes for each memcache node.

func (InstanceNodeConfigPtrOutput) ToInstanceNodeConfigPtrOutput

func (o InstanceNodeConfigPtrOutput) ToInstanceNodeConfigPtrOutput() InstanceNodeConfigPtrOutput

func (InstanceNodeConfigPtrOutput) ToInstanceNodeConfigPtrOutputWithContext

func (o InstanceNodeConfigPtrOutput) ToInstanceNodeConfigPtrOutputWithContext(ctx context.Context) InstanceNodeConfigPtrOutput

type InstanceOutput

type InstanceOutput struct{ *pulumi.OutputState }

func (InstanceOutput) ElementType

func (InstanceOutput) ElementType() reflect.Type

func (InstanceOutput) ToInstanceOutput

func (o InstanceOutput) ToInstanceOutput() InstanceOutput

func (InstanceOutput) ToInstanceOutputWithContext

func (o InstanceOutput) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput

func (InstanceOutput) ToInstancePtrOutput

func (o InstanceOutput) ToInstancePtrOutput() InstancePtrOutput

func (InstanceOutput) ToInstancePtrOutputWithContext

func (o InstanceOutput) ToInstancePtrOutputWithContext(ctx context.Context) InstancePtrOutput

type InstancePtrInput

type InstancePtrInput interface {
	pulumi.Input

	ToInstancePtrOutput() InstancePtrOutput
	ToInstancePtrOutputWithContext(ctx context.Context) InstancePtrOutput
}

type InstancePtrOutput

type InstancePtrOutput struct{ *pulumi.OutputState }

func (InstancePtrOutput) Elem added in v5.21.0

func (InstancePtrOutput) ElementType

func (InstancePtrOutput) ElementType() reflect.Type

func (InstancePtrOutput) ToInstancePtrOutput

func (o InstancePtrOutput) ToInstancePtrOutput() InstancePtrOutput

func (InstancePtrOutput) ToInstancePtrOutputWithContext

func (o InstancePtrOutput) ToInstancePtrOutputWithContext(ctx context.Context) InstancePtrOutput

type InstanceState

type InstanceState struct {
	// The full name of the GCE network to connect the instance to.  If not provided,
	// 'default' will be used.
	AuthorizedNetwork pulumi.StringPtrInput
	// Creation timestamp in RFC3339 text format.
	CreateTime pulumi.StringPtrInput
	// Endpoint for Discovery API
	DiscoveryEndpoint pulumi.StringPtrInput
	// A user-visible name for the instance.
	DisplayName pulumi.StringPtrInput
	// Resource labels to represent user-provided metadata.
	Labels pulumi.StringMapInput
	// The full version of memcached server running on this instance.
	MemcacheFullVersion pulumi.StringPtrInput
	// Additional information about the instance state, if available.
	MemcacheNodes InstanceMemcacheNodeArrayInput
	// User-specified parameters for this memcache instance.
	// Structure is documented below.
	MemcacheParameters InstanceMemcacheParametersPtrInput
	// The major version of Memcached software. If not provided, latest supported version will be used.
	// Currently the latest supported major version is MEMCACHE_1_5. The minor version will be automatically
	// determined by our system based on the latest supported minor version.
	// Default value is `MEMCACHE_1_5`.
	// Possible values are `MEMCACHE_1_5`.
	MemcacheVersion pulumi.StringPtrInput
	// The resource name of the instance.
	Name pulumi.StringPtrInput
	// Configuration for memcache nodes.
	// Structure is documented below.
	NodeConfig InstanceNodeConfigPtrInput
	// Number of nodes in the memcache instance.
	NodeCount pulumi.IntPtrInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringPtrInput
	// The region of the Memcache instance. If it is not provided, the provider region is used.
	Region pulumi.StringPtrInput
	// Zones where memcache nodes should be provisioned.  If not
	// provided, all zones will be used.
	Zones pulumi.StringArrayInput
}

func (InstanceState) ElementType

func (InstanceState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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