This page documents the language specification for the gcp package. If you're looking for help working with the inputs, outputs, or functions of gcp resources in a Pulumi program, please see the resource documentation for examples and API reference.

memcache

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-gcp repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-google repo.

class pulumi_gcp.memcache.Instance(resource_name, opts=None, authorized_network=None, display_name=None, labels=None, memcache_parameters=None, name=None, node_config=None, node_count=None, project=None, region=None, zones=None, __props__=None, __name__=None, __opts__=None)

Create a Instance resource with the given unique name, props, and options. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] authorized_network: The full name of the GCE network to connect the instance to. If not provided,

‘default’ will be used.

Parameters
  • display_name (pulumi.Input[str]) – A user-visible name for the instance.

  • labels (pulumi.Input[dict]) – Resource labels to represent user-provided metadata.

  • memcache_parameters (pulumi.Input[dict]) – User-specified parameters for this memcache instance. Structure is documented below.

  • name (pulumi.Input[str]) – The resource name of the instance.

  • node_config (pulumi.Input[dict]) – Configuration for memcache nodes. Structure is documented below.

  • node_count (pulumi.Input[float]) – Number of nodes in the memcache instance.

  • project (pulumi.Input[str]) – The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

  • region (pulumi.Input[str]) – The name of the Memcache region of the instance.

  • zones (pulumi.Input[list]) – Zones where memcache nodes should be provisioned. If not provided, all zones will be used.

The memcache_parameters object supports the following:

  • id (pulumi.Input[str]) - - This is a unique ID associated with this set of parameters.

  • params (pulumi.Input[dict]) - User-defined set of parameters to use in the memcache process.

The node_config object supports the following:

  • cpuCount (pulumi.Input[float]) - Number of CPUs per node.

  • memorySizeMb (pulumi.Input[float]) - Memory size in Mebibytes for each memcache node.

authorized_network: pulumi.Output[str] = None

The full name of the GCE network to connect the instance to. If not provided, ‘default’ will be used.

create_time: pulumi.Output[str] = None

Creation timestamp in RFC3339 text format.

display_name: pulumi.Output[str] = None

A user-visible name for the instance.

labels: pulumi.Output[dict] = None

Resource labels to represent user-provided metadata.

memcache_parameters: pulumi.Output[dict] = None

User-specified parameters for this memcache instance. Structure is documented below.

  • id (str) - - This is a unique ID associated with this set of parameters.

  • params (dict) - User-defined set of parameters to use in the memcache process.

name: pulumi.Output[str] = None

The resource name of the instance.

node_config: pulumi.Output[dict] = None

Configuration for memcache nodes. Structure is documented below.

  • cpuCount (float) - Number of CPUs per node.

  • memorySizeMb (float) - Memory size in Mebibytes for each memcache node.

node_count: pulumi.Output[float] = None

Number of nodes in the memcache instance.

project: pulumi.Output[str] = None

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

region: pulumi.Output[str] = None

The name of the Memcache region of the instance.

zones: pulumi.Output[list] = None

Zones where memcache nodes should be provisioned. If not provided, all zones will be used.

static get(resource_name, id, opts=None, authorized_network=None, create_time=None, display_name=None, labels=None, memcache_parameters=None, name=None, node_config=None, node_count=None, project=None, region=None, zones=None)

Get an existing Instance resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • authorized_network (pulumi.Input[str]) – The full name of the GCE network to connect the instance to. If not provided, ‘default’ will be used.

  • create_time (pulumi.Input[str]) – Creation timestamp in RFC3339 text format.

  • display_name (pulumi.Input[str]) – A user-visible name for the instance.

  • labels (pulumi.Input[dict]) – Resource labels to represent user-provided metadata.

  • memcache_parameters (pulumi.Input[dict]) – User-specified parameters for this memcache instance. Structure is documented below.

  • name (pulumi.Input[str]) – The resource name of the instance.

  • node_config (pulumi.Input[dict]) – Configuration for memcache nodes. Structure is documented below.

  • node_count (pulumi.Input[float]) – Number of nodes in the memcache instance.

  • project (pulumi.Input[str]) – The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

  • region (pulumi.Input[str]) – The name of the Memcache region of the instance.

  • zones (pulumi.Input[list]) – Zones where memcache nodes should be provisioned. If not provided, all zones will be used.

The memcache_parameters object supports the following:

  • id (pulumi.Input[str]) - - This is a unique ID associated with this set of parameters.

  • params (pulumi.Input[dict]) - User-defined set of parameters to use in the memcache process.

The node_config object supports the following:

  • cpuCount (pulumi.Input[float]) - Number of CPUs per node.

  • memorySizeMb (pulumi.Input[float]) - Memory size in Mebibytes for each memcache node.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str