gcp.memcache.Instance
Explore with Pulumi AI
A Google Cloud Memcache instance.
To get more information about Instance, see:
- API documentation
- How-to Guides
Example Usage
Memcache Instance Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
// This example assumes this network already exists.
// The API creates a tenant network per network authorized for a
// Memcache instance and that network is not deleted when the user-created
// network (authorized_network) is deleted, so this prevents issues
// with tenant network quota.
// If this network hasn't been created and you are using this example in your
// config, add an additional network resource or change
// this from "data"to "resource"
const memcacheNetwork = new gcp.compute.Network("memcache_network", {name: "test-network"});
const serviceRange = new gcp.compute.GlobalAddress("service_range", {
name: "address",
purpose: "VPC_PEERING",
addressType: "INTERNAL",
prefixLength: 16,
network: memcacheNetwork.id,
});
const privateServiceConnection = new gcp.servicenetworking.Connection("private_service_connection", {
network: memcacheNetwork.id,
service: "servicenetworking.googleapis.com",
reservedPeeringRanges: [serviceRange.name],
});
const instance = new gcp.memcache.Instance("instance", {
name: "test-instance",
authorizedNetwork: privateServiceConnection.network,
labels: {
env: "test",
},
nodeConfig: {
cpuCount: 1,
memorySizeMb: 1024,
},
nodeCount: 1,
memcacheVersion: "MEMCACHE_1_5",
maintenancePolicy: {
weeklyMaintenanceWindows: [{
day: "SATURDAY",
duration: "14400s",
startTime: {
hours: 0,
minutes: 30,
seconds: 0,
nanos: 0,
},
}],
},
});
import pulumi
import pulumi_gcp as gcp
# This example assumes this network already exists.
# The API creates a tenant network per network authorized for a
# Memcache instance and that network is not deleted when the user-created
# network (authorized_network) is deleted, so this prevents issues
# with tenant network quota.
# If this network hasn't been created and you are using this example in your
# config, add an additional network resource or change
# this from "data"to "resource"
memcache_network = gcp.compute.Network("memcache_network", name="test-network")
service_range = gcp.compute.GlobalAddress("service_range",
name="address",
purpose="VPC_PEERING",
address_type="INTERNAL",
prefix_length=16,
network=memcache_network.id)
private_service_connection = gcp.servicenetworking.Connection("private_service_connection",
network=memcache_network.id,
service="servicenetworking.googleapis.com",
reserved_peering_ranges=[service_range.name])
instance = gcp.memcache.Instance("instance",
name="test-instance",
authorized_network=private_service_connection.network,
labels={
"env": "test",
},
node_config=gcp.memcache.InstanceNodeConfigArgs(
cpu_count=1,
memory_size_mb=1024,
),
node_count=1,
memcache_version="MEMCACHE_1_5",
maintenance_policy=gcp.memcache.InstanceMaintenancePolicyArgs(
weekly_maintenance_windows=[gcp.memcache.InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs(
day="SATURDAY",
duration="14400s",
start_time=gcp.memcache.InstanceMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs(
hours=0,
minutes=30,
seconds=0,
nanos=0,
),
)],
))
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/memcache"
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/servicenetworking"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// This example assumes this network already exists.
// The API creates a tenant network per network authorized for a
// Memcache instance and that network is not deleted when the user-created
// network (authorized_network) is deleted, so this prevents issues
// with tenant network quota.
// If this network hasn't been created and you are using this example in your
// config, add an additional network resource or change
// this from "data"to "resource"
memcacheNetwork, err := compute.NewNetwork(ctx, "memcache_network", &compute.NetworkArgs{
Name: pulumi.String("test-network"),
})
if err != nil {
return err
}
serviceRange, err := compute.NewGlobalAddress(ctx, "service_range", &compute.GlobalAddressArgs{
Name: pulumi.String("address"),
Purpose: pulumi.String("VPC_PEERING"),
AddressType: pulumi.String("INTERNAL"),
PrefixLength: pulumi.Int(16),
Network: memcacheNetwork.ID(),
})
if err != nil {
return err
}
privateServiceConnection, err := servicenetworking.NewConnection(ctx, "private_service_connection", &servicenetworking.ConnectionArgs{
Network: 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{
Name: pulumi.String("test-instance"),
AuthorizedNetwork: privateServiceConnection.Network,
Labels: pulumi.StringMap{
"env": pulumi.String("test"),
},
NodeConfig: &memcache.InstanceNodeConfigArgs{
CpuCount: pulumi.Int(1),
MemorySizeMb: pulumi.Int(1024),
},
NodeCount: pulumi.Int(1),
MemcacheVersion: pulumi.String("MEMCACHE_1_5"),
MaintenancePolicy: &memcache.InstanceMaintenancePolicyArgs{
WeeklyMaintenanceWindows: memcache.InstanceMaintenancePolicyWeeklyMaintenanceWindowArray{
&memcache.InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs{
Day: pulumi.String("SATURDAY"),
Duration: pulumi.String("14400s"),
StartTime: &memcache.InstanceMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs{
Hours: pulumi.Int(0),
Minutes: pulumi.Int(30),
Seconds: pulumi.Int(0),
Nanos: pulumi.Int(0),
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
// This example assumes this network already exists.
// The API creates a tenant network per network authorized for a
// Memcache instance and that network is not deleted when the user-created
// network (authorized_network) is deleted, so this prevents issues
// with tenant network quota.
// If this network hasn't been created and you are using this example in your
// config, add an additional network resource or change
// this from "data"to "resource"
var memcacheNetwork = new Gcp.Compute.Network("memcache_network", new()
{
Name = "test-network",
});
var serviceRange = new Gcp.Compute.GlobalAddress("service_range", new()
{
Name = "address",
Purpose = "VPC_PEERING",
AddressType = "INTERNAL",
PrefixLength = 16,
Network = memcacheNetwork.Id,
});
var privateServiceConnection = new Gcp.ServiceNetworking.Connection("private_service_connection", new()
{
Network = memcacheNetwork.Id,
Service = "servicenetworking.googleapis.com",
ReservedPeeringRanges = new[]
{
serviceRange.Name,
},
});
var instance = new Gcp.Memcache.Instance("instance", new()
{
Name = "test-instance",
AuthorizedNetwork = privateServiceConnection.Network,
Labels =
{
{ "env", "test" },
},
NodeConfig = new Gcp.Memcache.Inputs.InstanceNodeConfigArgs
{
CpuCount = 1,
MemorySizeMb = 1024,
},
NodeCount = 1,
MemcacheVersion = "MEMCACHE_1_5",
MaintenancePolicy = new Gcp.Memcache.Inputs.InstanceMaintenancePolicyArgs
{
WeeklyMaintenanceWindows = new[]
{
new Gcp.Memcache.Inputs.InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs
{
Day = "SATURDAY",
Duration = "14400s",
StartTime = new Gcp.Memcache.Inputs.InstanceMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs
{
Hours = 0,
Minutes = 30,
Seconds = 0,
Nanos = 0,
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.Network;
import com.pulumi.gcp.compute.NetworkArgs;
import com.pulumi.gcp.compute.GlobalAddress;
import com.pulumi.gcp.compute.GlobalAddressArgs;
import com.pulumi.gcp.servicenetworking.Connection;
import com.pulumi.gcp.servicenetworking.ConnectionArgs;
import com.pulumi.gcp.memcache.Instance;
import com.pulumi.gcp.memcache.InstanceArgs;
import com.pulumi.gcp.memcache.inputs.InstanceNodeConfigArgs;
import com.pulumi.gcp.memcache.inputs.InstanceMaintenancePolicyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
// This example assumes this network already exists.
// The API creates a tenant network per network authorized for a
// Memcache instance and that network is not deleted when the user-created
// network (authorized_network) is deleted, so this prevents issues
// with tenant network quota.
// If this network hasn't been created and you are using this example in your
// config, add an additional network resource or change
// this from "data"to "resource"
var memcacheNetwork = new Network("memcacheNetwork", NetworkArgs.builder()
.name("test-network")
.build());
var serviceRange = new GlobalAddress("serviceRange", GlobalAddressArgs.builder()
.name("address")
.purpose("VPC_PEERING")
.addressType("INTERNAL")
.prefixLength(16)
.network(memcacheNetwork.id())
.build());
var privateServiceConnection = new Connection("privateServiceConnection", ConnectionArgs.builder()
.network(memcacheNetwork.id())
.service("servicenetworking.googleapis.com")
.reservedPeeringRanges(serviceRange.name())
.build());
var instance = new Instance("instance", InstanceArgs.builder()
.name("test-instance")
.authorizedNetwork(privateServiceConnection.network())
.labels(Map.of("env", "test"))
.nodeConfig(InstanceNodeConfigArgs.builder()
.cpuCount(1)
.memorySizeMb(1024)
.build())
.nodeCount(1)
.memcacheVersion("MEMCACHE_1_5")
.maintenancePolicy(InstanceMaintenancePolicyArgs.builder()
.weeklyMaintenanceWindows(InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs.builder()
.day("SATURDAY")
.duration("14400s")
.startTime(InstanceMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs.builder()
.hours(0)
.minutes(30)
.seconds(0)
.nanos(0)
.build())
.build())
.build())
.build());
}
}
resources:
# This example assumes this network already exists.
# // The API creates a tenant network per network authorized for a
# // Memcache instance and that network is not deleted when the user-created
# // network (authorized_network) is deleted, so this prevents issues
# // with tenant network quota.
# // If this network hasn't been created and you are using this example in your
# // config, add an additional network resource or change
# // this from "data"to "resource"
memcacheNetwork:
type: gcp:compute:Network
name: memcache_network
properties:
name: test-network
serviceRange:
type: gcp:compute:GlobalAddress
name: service_range
properties:
name: address
purpose: VPC_PEERING
addressType: INTERNAL
prefixLength: 16
network: ${memcacheNetwork.id}
privateServiceConnection:
type: gcp:servicenetworking:Connection
name: private_service_connection
properties:
network: ${memcacheNetwork.id}
service: servicenetworking.googleapis.com
reservedPeeringRanges:
- ${serviceRange.name}
instance:
type: gcp:memcache:Instance
properties:
name: test-instance
authorizedNetwork: ${privateServiceConnection.network}
labels:
env: test
nodeConfig:
cpuCount: 1
memorySizeMb: 1024
nodeCount: 1
memcacheVersion: MEMCACHE_1_5
maintenancePolicy:
weeklyMaintenanceWindows:
- day: SATURDAY
duration: 14400s
startTime:
hours: 0
minutes: 30
seconds: 0
nanos: 0
Create Instance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);
@overload
def Instance(resource_name: str,
args: InstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Instance(resource_name: str,
opts: Optional[ResourceOptions] = None,
node_config: Optional[InstanceNodeConfigArgs] = None,
node_count: Optional[int] = None,
name: Optional[str] = None,
maintenance_policy: Optional[InstanceMaintenancePolicyArgs] = None,
memcache_parameters: Optional[InstanceMemcacheParametersArgs] = None,
memcache_version: Optional[str] = None,
authorized_network: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
display_name: Optional[str] = None,
project: Optional[str] = None,
region: Optional[str] = None,
reserved_ip_range_ids: Optional[Sequence[str]] = None,
zones: Optional[Sequence[str]] = None)
func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)
public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)
public Instance(String name, InstanceArgs args)
public Instance(String name, InstanceArgs args, CustomResourceOptions options)
type: gcp:memcache:Instance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleinstanceResourceResourceFromMemcacheinstance = new Gcp.Memcache.Instance("exampleinstanceResourceResourceFromMemcacheinstance", new()
{
NodeConfig = new Gcp.Memcache.Inputs.InstanceNodeConfigArgs
{
CpuCount = 0,
MemorySizeMb = 0,
},
NodeCount = 0,
Name = "string",
MaintenancePolicy = new Gcp.Memcache.Inputs.InstanceMaintenancePolicyArgs
{
WeeklyMaintenanceWindows = new[]
{
new Gcp.Memcache.Inputs.InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs
{
Day = "string",
Duration = "string",
StartTime = new Gcp.Memcache.Inputs.InstanceMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs
{
Hours = 0,
Minutes = 0,
Nanos = 0,
Seconds = 0,
},
},
},
CreateTime = "string",
Description = "string",
UpdateTime = "string",
},
MemcacheParameters = new Gcp.Memcache.Inputs.InstanceMemcacheParametersArgs
{
Id = "string",
Params =
{
{ "string", "string" },
},
},
MemcacheVersion = "string",
AuthorizedNetwork = "string",
Labels =
{
{ "string", "string" },
},
DisplayName = "string",
Project = "string",
Region = "string",
ReservedIpRangeIds = new[]
{
"string",
},
Zones = new[]
{
"string",
},
});
example, err := memcache.NewInstance(ctx, "exampleinstanceResourceResourceFromMemcacheinstance", &memcache.InstanceArgs{
NodeConfig: &memcache.InstanceNodeConfigArgs{
CpuCount: pulumi.Int(0),
MemorySizeMb: pulumi.Int(0),
},
NodeCount: pulumi.Int(0),
Name: pulumi.String("string"),
MaintenancePolicy: &memcache.InstanceMaintenancePolicyArgs{
WeeklyMaintenanceWindows: memcache.InstanceMaintenancePolicyWeeklyMaintenanceWindowArray{
&memcache.InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs{
Day: pulumi.String("string"),
Duration: pulumi.String("string"),
StartTime: &memcache.InstanceMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs{
Hours: pulumi.Int(0),
Minutes: pulumi.Int(0),
Nanos: pulumi.Int(0),
Seconds: pulumi.Int(0),
},
},
},
CreateTime: pulumi.String("string"),
Description: pulumi.String("string"),
UpdateTime: pulumi.String("string"),
},
MemcacheParameters: &memcache.InstanceMemcacheParametersArgs{
Id: pulumi.String("string"),
Params: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
MemcacheVersion: pulumi.String("string"),
AuthorizedNetwork: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
DisplayName: pulumi.String("string"),
Project: pulumi.String("string"),
Region: pulumi.String("string"),
ReservedIpRangeIds: pulumi.StringArray{
pulumi.String("string"),
},
Zones: pulumi.StringArray{
pulumi.String("string"),
},
})
var exampleinstanceResourceResourceFromMemcacheinstance = new Instance("exampleinstanceResourceResourceFromMemcacheinstance", InstanceArgs.builder()
.nodeConfig(InstanceNodeConfigArgs.builder()
.cpuCount(0)
.memorySizeMb(0)
.build())
.nodeCount(0)
.name("string")
.maintenancePolicy(InstanceMaintenancePolicyArgs.builder()
.weeklyMaintenanceWindows(InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs.builder()
.day("string")
.duration("string")
.startTime(InstanceMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs.builder()
.hours(0)
.minutes(0)
.nanos(0)
.seconds(0)
.build())
.build())
.createTime("string")
.description("string")
.updateTime("string")
.build())
.memcacheParameters(InstanceMemcacheParametersArgs.builder()
.id("string")
.params(Map.of("string", "string"))
.build())
.memcacheVersion("string")
.authorizedNetwork("string")
.labels(Map.of("string", "string"))
.displayName("string")
.project("string")
.region("string")
.reservedIpRangeIds("string")
.zones("string")
.build());
exampleinstance_resource_resource_from_memcacheinstance = gcp.memcache.Instance("exampleinstanceResourceResourceFromMemcacheinstance",
node_config=gcp.memcache.InstanceNodeConfigArgs(
cpu_count=0,
memory_size_mb=0,
),
node_count=0,
name="string",
maintenance_policy=gcp.memcache.InstanceMaintenancePolicyArgs(
weekly_maintenance_windows=[gcp.memcache.InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs(
day="string",
duration="string",
start_time=gcp.memcache.InstanceMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs(
hours=0,
minutes=0,
nanos=0,
seconds=0,
),
)],
create_time="string",
description="string",
update_time="string",
),
memcache_parameters=gcp.memcache.InstanceMemcacheParametersArgs(
id="string",
params={
"string": "string",
},
),
memcache_version="string",
authorized_network="string",
labels={
"string": "string",
},
display_name="string",
project="string",
region="string",
reserved_ip_range_ids=["string"],
zones=["string"])
const exampleinstanceResourceResourceFromMemcacheinstance = new gcp.memcache.Instance("exampleinstanceResourceResourceFromMemcacheinstance", {
nodeConfig: {
cpuCount: 0,
memorySizeMb: 0,
},
nodeCount: 0,
name: "string",
maintenancePolicy: {
weeklyMaintenanceWindows: [{
day: "string",
duration: "string",
startTime: {
hours: 0,
minutes: 0,
nanos: 0,
seconds: 0,
},
}],
createTime: "string",
description: "string",
updateTime: "string",
},
memcacheParameters: {
id: "string",
params: {
string: "string",
},
},
memcacheVersion: "string",
authorizedNetwork: "string",
labels: {
string: "string",
},
displayName: "string",
project: "string",
region: "string",
reservedIpRangeIds: ["string"],
zones: ["string"],
});
type: gcp:memcache:Instance
properties:
authorizedNetwork: string
displayName: string
labels:
string: string
maintenancePolicy:
createTime: string
description: string
updateTime: string
weeklyMaintenanceWindows:
- day: string
duration: string
startTime:
hours: 0
minutes: 0
nanos: 0
seconds: 0
memcacheParameters:
id: string
params:
string: string
memcacheVersion: string
name: string
nodeConfig:
cpuCount: 0
memorySizeMb: 0
nodeCount: 0
project: string
region: string
reservedIpRangeIds:
- string
zones:
- string
Instance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Instance resource accepts the following input properties:
- Node
Config InstanceNode Config - Configuration for memcache nodes. Structure is documented below.
- Node
Count int - Number of nodes in the memcache instance.
- string
- The full name of the GCE network to connect the instance to. If not provided, 'default' will be used.
- Display
Name string - A user-visible name for the instance.
- Labels Dictionary<string, string>
- Resource labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
- Maintenance
Policy InstanceMaintenance Policy - Maintenance policy for an instance.
- Memcache
Parameters InstanceMemcache Parameters - User-specified parameters for this memcache instance.
- Memcache
Version string - 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: "MEMCACHE_1_5" Possible values: ["MEMCACHE_1_5", "MEMCACHE_1_6_15"]
- Name string
- The resource name of the instance.
- Project string
- Region string
- The region of the Memcache instance. If it is not provided, the provider region is used.
- Reserved
Ip List<string>Range Ids - Contains the name of allocated IP address ranges associated with the private service access connection for example, "test-default" associated with IP range 10.0.0.0/29.
- Zones List<string>
- Zones where memcache nodes should be provisioned. If not provided, all zones will be used.
- Node
Config InstanceNode Config Args - Configuration for memcache nodes. Structure is documented below.
- Node
Count int - Number of nodes in the memcache instance.
- string
- The full name of the GCE network to connect the instance to. If not provided, 'default' will be used.
- Display
Name string - A user-visible name for the instance.
- Labels map[string]string
- Resource labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
- Maintenance
Policy InstanceMaintenance Policy Args - Maintenance policy for an instance.
- Memcache
Parameters InstanceMemcache Parameters Args - User-specified parameters for this memcache instance.
- Memcache
Version string - 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: "MEMCACHE_1_5" Possible values: ["MEMCACHE_1_5", "MEMCACHE_1_6_15"]
- Name string
- The resource name of the instance.
- Project string
- Region string
- The region of the Memcache instance. If it is not provided, the provider region is used.
- Reserved
Ip []stringRange Ids - Contains the name of allocated IP address ranges associated with the private service access connection for example, "test-default" associated with IP range 10.0.0.0/29.
- Zones []string
- Zones where memcache nodes should be provisioned. If not provided, all zones will be used.
- node
Config InstanceNode Config - Configuration for memcache nodes. Structure is documented below.
- node
Count Integer - Number of nodes in the memcache instance.
- String
- The full name of the GCE network to connect the instance to. If not provided, 'default' will be used.
- display
Name String - A user-visible name for the instance.
- labels Map<String,String>
- Resource labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
- maintenance
Policy InstanceMaintenance Policy - Maintenance policy for an instance.
- memcache
Parameters InstanceMemcache Parameters - User-specified parameters for this memcache instance.
- memcache
Version String - 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: "MEMCACHE_1_5" Possible values: ["MEMCACHE_1_5", "MEMCACHE_1_6_15"]
- name String
- The resource name of the instance.
- project String
- region String
- The region of the Memcache instance. If it is not provided, the provider region is used.
- reserved
Ip List<String>Range Ids - Contains the name of allocated IP address ranges associated with the private service access connection for example, "test-default" associated with IP range 10.0.0.0/29.
- zones List<String>
- Zones where memcache nodes should be provisioned. If not provided, all zones will be used.
- node
Config InstanceNode Config - Configuration for memcache nodes. Structure is documented below.
- node
Count number - Number of nodes in the memcache instance.
- string
- The full name of the GCE network to connect the instance to. If not provided, 'default' will be used.
- display
Name string - A user-visible name for the instance.
- labels {[key: string]: string}
- Resource labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
- maintenance
Policy InstanceMaintenance Policy - Maintenance policy for an instance.
- memcache
Parameters InstanceMemcache Parameters - User-specified parameters for this memcache instance.
- memcache
Version string - 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: "MEMCACHE_1_5" Possible values: ["MEMCACHE_1_5", "MEMCACHE_1_6_15"]
- name string
- The resource name of the instance.
- project string
- region string
- The region of the Memcache instance. If it is not provided, the provider region is used.
- reserved
Ip string[]Range Ids - Contains the name of allocated IP address ranges associated with the private service access connection for example, "test-default" associated with IP range 10.0.0.0/29.
- zones string[]
- Zones where memcache nodes should be provisioned. If not provided, all zones will be used.
- node_
config InstanceNode Config Args - Configuration for memcache nodes. Structure is documented below.
- node_
count int - Number of nodes in the memcache instance.
- str
- The full name of the GCE network to connect the instance to. If not provided, 'default' will be used.
- display_
name str - A user-visible name for the instance.
- labels Mapping[str, str]
- Resource labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
- maintenance_
policy InstanceMaintenance Policy Args - Maintenance policy for an instance.
- memcache_
parameters InstanceMemcache Parameters Args - User-specified parameters for this memcache instance.
- memcache_
version str - 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: "MEMCACHE_1_5" Possible values: ["MEMCACHE_1_5", "MEMCACHE_1_6_15"]
- name str
- The resource name of the instance.
- project str
- region str
- The region of the Memcache instance. If it is not provided, the provider region is used.
- reserved_
ip_ Sequence[str]range_ ids - Contains the name of allocated IP address ranges associated with the private service access connection for example, "test-default" associated with IP range 10.0.0.0/29.
- zones Sequence[str]
- Zones where memcache nodes should be provisioned. If not provided, all zones will be used.
- node
Config Property Map - Configuration for memcache nodes. Structure is documented below.
- node
Count Number - Number of nodes in the memcache instance.
- String
- The full name of the GCE network to connect the instance to. If not provided, 'default' will be used.
- display
Name String - A user-visible name for the instance.
- labels Map<String>
- Resource labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
- maintenance
Policy Property Map - Maintenance policy for an instance.
- memcache
Parameters Property Map - User-specified parameters for this memcache instance.
- memcache
Version String - 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: "MEMCACHE_1_5" Possible values: ["MEMCACHE_1_5", "MEMCACHE_1_6_15"]
- name String
- The resource name of the instance.
- project String
- region String
- The region of the Memcache instance. If it is not provided, the provider region is used.
- reserved
Ip List<String>Range Ids - Contains the name of allocated IP address ranges associated with the private service access connection for example, "test-default" associated with IP range 10.0.0.0/29.
- zones List<String>
- Zones where memcache nodes should be provisioned. If not provided, all zones will be used.
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:
- Create
Time string - Creation timestamp in RFC3339 text format.
- Discovery
Endpoint string - Endpoint for Discovery API
- Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
- The provider-assigned unique ID for this managed resource.
- Maintenance
Schedules List<InstanceMaintenance Schedule> - Output only. Published maintenance schedule. Structure is documented below.
- Memcache
Full stringVersion - The full version of memcached server running on this instance.
- Memcache
Nodes List<InstanceMemcache Node> - Additional information about the instance state, if available. Structure is documented below.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Create
Time string - Creation timestamp in RFC3339 text format.
- Discovery
Endpoint string - Endpoint for Discovery API
- Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
- The provider-assigned unique ID for this managed resource.
- Maintenance
Schedules []InstanceMaintenance Schedule - Output only. Published maintenance schedule. Structure is documented below.
- Memcache
Full stringVersion - The full version of memcached server running on this instance.
- Memcache
Nodes []InstanceMemcache Node - Additional information about the instance state, if available. Structure is documented below.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- create
Time String - Creation timestamp in RFC3339 text format.
- discovery
Endpoint String - Endpoint for Discovery API
- effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
- The provider-assigned unique ID for this managed resource.
- maintenance
Schedules List<InstanceMaintenance Schedule> - Output only. Published maintenance schedule. Structure is documented below.
- memcache
Full StringVersion - The full version of memcached server running on this instance.
- memcache
Nodes List<InstanceMemcache Node> - Additional information about the instance state, if available. Structure is documented below.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- create
Time string - Creation timestamp in RFC3339 text format.
- discovery
Endpoint string - Endpoint for Discovery API
- effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id string
- The provider-assigned unique ID for this managed resource.
- maintenance
Schedules InstanceMaintenance Schedule[] - Output only. Published maintenance schedule. Structure is documented below.
- memcache
Full stringVersion - The full version of memcached server running on this instance.
- memcache
Nodes InstanceMemcache Node[] - Additional information about the instance state, if available. Structure is documented below.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- create_
time str - Creation timestamp in RFC3339 text format.
- discovery_
endpoint str - Endpoint for Discovery API
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id str
- The provider-assigned unique ID for this managed resource.
- maintenance_
schedules Sequence[InstanceMaintenance Schedule] - Output only. Published maintenance schedule. Structure is documented below.
- memcache_
full_ strversion - The full version of memcached server running on this instance.
- memcache_
nodes Sequence[InstanceMemcache Node] - Additional information about the instance state, if available. Structure is documented below.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- create
Time String - Creation timestamp in RFC3339 text format.
- discovery
Endpoint String - Endpoint for Discovery API
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
- The provider-assigned unique ID for this managed resource.
- maintenance
Schedules List<Property Map> - Output only. Published maintenance schedule. Structure is documented below.
- memcache
Full StringVersion - The full version of memcached server running on this instance.
- memcache
Nodes List<Property Map> - Additional information about the instance state, if available. Structure is documented below.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
Look up Existing Instance Resource
Get an existing Instance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: InstanceState, opts?: CustomResourceOptions): Instance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
authorized_network: Optional[str] = None,
create_time: Optional[str] = None,
discovery_endpoint: Optional[str] = None,
display_name: Optional[str] = None,
effective_labels: Optional[Mapping[str, str]] = None,
labels: Optional[Mapping[str, str]] = None,
maintenance_policy: Optional[InstanceMaintenancePolicyArgs] = None,
maintenance_schedules: Optional[Sequence[InstanceMaintenanceScheduleArgs]] = None,
memcache_full_version: Optional[str] = None,
memcache_nodes: Optional[Sequence[InstanceMemcacheNodeArgs]] = None,
memcache_parameters: Optional[InstanceMemcacheParametersArgs] = None,
memcache_version: Optional[str] = None,
name: Optional[str] = None,
node_config: Optional[InstanceNodeConfigArgs] = None,
node_count: Optional[int] = None,
project: Optional[str] = None,
pulumi_labels: Optional[Mapping[str, str]] = None,
region: Optional[str] = None,
reserved_ip_range_ids: Optional[Sequence[str]] = None,
zones: Optional[Sequence[str]] = None) -> Instance
func GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)
public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)
public static Instance get(String name, Output<String> id, InstanceState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- string
- The full name of the GCE network to connect the instance to. If not provided, 'default' will be used.
- Create
Time string - Creation timestamp in RFC3339 text format.
- Discovery
Endpoint string - Endpoint for Discovery API
- Display
Name string - A user-visible name for the instance.
- Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Labels Dictionary<string, string>
- Resource labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
- Maintenance
Policy InstanceMaintenance Policy - Maintenance policy for an instance.
- Maintenance
Schedules List<InstanceMaintenance Schedule> - Output only. Published maintenance schedule. Structure is documented below.
- Memcache
Full stringVersion - The full version of memcached server running on this instance.
- Memcache
Nodes List<InstanceMemcache Node> - Additional information about the instance state, if available. Structure is documented below.
- Memcache
Parameters InstanceMemcache Parameters - User-specified parameters for this memcache instance.
- Memcache
Version string - 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: "MEMCACHE_1_5" Possible values: ["MEMCACHE_1_5", "MEMCACHE_1_6_15"]
- Name string
- The resource name of the instance.
- Node
Config InstanceNode Config - Configuration for memcache nodes. Structure is documented below.
- Node
Count int - Number of nodes in the memcache instance.
- Project string
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Region string
- The region of the Memcache instance. If it is not provided, the provider region is used.
- Reserved
Ip List<string>Range Ids - Contains the name of allocated IP address ranges associated with the private service access connection for example, "test-default" associated with IP range 10.0.0.0/29.
- Zones List<string>
- Zones where memcache nodes should be provisioned. If not provided, all zones will be used.
- string
- The full name of the GCE network to connect the instance to. If not provided, 'default' will be used.
- Create
Time string - Creation timestamp in RFC3339 text format.
- Discovery
Endpoint string - Endpoint for Discovery API
- Display
Name string - A user-visible name for the instance.
- Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Labels map[string]string
- Resource labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
- Maintenance
Policy InstanceMaintenance Policy Args - Maintenance policy for an instance.
- Maintenance
Schedules []InstanceMaintenance Schedule Args - Output only. Published maintenance schedule. Structure is documented below.
- Memcache
Full stringVersion - The full version of memcached server running on this instance.
- Memcache
Nodes []InstanceMemcache Node Args - Additional information about the instance state, if available. Structure is documented below.
- Memcache
Parameters InstanceMemcache Parameters Args - User-specified parameters for this memcache instance.
- Memcache
Version string - 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: "MEMCACHE_1_5" Possible values: ["MEMCACHE_1_5", "MEMCACHE_1_6_15"]
- Name string
- The resource name of the instance.
- Node
Config InstanceNode Config Args - Configuration for memcache nodes. Structure is documented below.
- Node
Count int - Number of nodes in the memcache instance.
- Project string
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Region string
- The region of the Memcache instance. If it is not provided, the provider region is used.
- Reserved
Ip []stringRange Ids - Contains the name of allocated IP address ranges associated with the private service access connection for example, "test-default" associated with IP range 10.0.0.0/29.
- Zones []string
- Zones where memcache nodes should be provisioned. If not provided, all zones will be used.
- String
- The full name of the GCE network to connect the instance to. If not provided, 'default' will be used.
- create
Time String - Creation timestamp in RFC3339 text format.
- discovery
Endpoint String - Endpoint for Discovery API
- display
Name String - A user-visible name for the instance.
- effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels Map<String,String>
- Resource labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
- maintenance
Policy InstanceMaintenance Policy - Maintenance policy for an instance.
- maintenance
Schedules List<InstanceMaintenance Schedule> - Output only. Published maintenance schedule. Structure is documented below.
- memcache
Full StringVersion - The full version of memcached server running on this instance.
- memcache
Nodes List<InstanceMemcache Node> - Additional information about the instance state, if available. Structure is documented below.
- memcache
Parameters InstanceMemcache Parameters - User-specified parameters for this memcache instance.
- memcache
Version String - 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: "MEMCACHE_1_5" Possible values: ["MEMCACHE_1_5", "MEMCACHE_1_6_15"]
- name String
- The resource name of the instance.
- node
Config InstanceNode Config - Configuration for memcache nodes. Structure is documented below.
- node
Count Integer - Number of nodes in the memcache instance.
- project String
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- region String
- The region of the Memcache instance. If it is not provided, the provider region is used.
- reserved
Ip List<String>Range Ids - Contains the name of allocated IP address ranges associated with the private service access connection for example, "test-default" associated with IP range 10.0.0.0/29.
- zones List<String>
- Zones where memcache nodes should be provisioned. If not provided, all zones will be used.
- string
- The full name of the GCE network to connect the instance to. If not provided, 'default' will be used.
- create
Time string - Creation timestamp in RFC3339 text format.
- discovery
Endpoint string - Endpoint for Discovery API
- display
Name string - A user-visible name for the instance.
- effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels {[key: string]: string}
- Resource labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
- maintenance
Policy InstanceMaintenance Policy - Maintenance policy for an instance.
- maintenance
Schedules InstanceMaintenance Schedule[] - Output only. Published maintenance schedule. Structure is documented below.
- memcache
Full stringVersion - The full version of memcached server running on this instance.
- memcache
Nodes InstanceMemcache Node[] - Additional information about the instance state, if available. Structure is documented below.
- memcache
Parameters InstanceMemcache Parameters - User-specified parameters for this memcache instance.
- memcache
Version string - 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: "MEMCACHE_1_5" Possible values: ["MEMCACHE_1_5", "MEMCACHE_1_6_15"]
- name string
- The resource name of the instance.
- node
Config InstanceNode Config - Configuration for memcache nodes. Structure is documented below.
- node
Count number - Number of nodes in the memcache instance.
- project string
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- region string
- The region of the Memcache instance. If it is not provided, the provider region is used.
- reserved
Ip string[]Range Ids - Contains the name of allocated IP address ranges associated with the private service access connection for example, "test-default" associated with IP range 10.0.0.0/29.
- zones string[]
- Zones where memcache nodes should be provisioned. If not provided, all zones will be used.
- str
- The full name of the GCE network to connect the instance to. If not provided, 'default' will be used.
- create_
time str - Creation timestamp in RFC3339 text format.
- discovery_
endpoint str - Endpoint for Discovery API
- display_
name str - A user-visible name for the instance.
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels Mapping[str, str]
- Resource labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
- maintenance_
policy InstanceMaintenance Policy Args - Maintenance policy for an instance.
- maintenance_
schedules Sequence[InstanceMaintenance Schedule Args] - Output only. Published maintenance schedule. Structure is documented below.
- memcache_
full_ strversion - The full version of memcached server running on this instance.
- memcache_
nodes Sequence[InstanceMemcache Node Args] - Additional information about the instance state, if available. Structure is documented below.
- memcache_
parameters InstanceMemcache Parameters Args - User-specified parameters for this memcache instance.
- memcache_
version str - 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: "MEMCACHE_1_5" Possible values: ["MEMCACHE_1_5", "MEMCACHE_1_6_15"]
- name str
- The resource name of the instance.
- node_
config InstanceNode Config Args - Configuration for memcache nodes. Structure is documented below.
- node_
count int - Number of nodes in the memcache instance.
- project str
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- region str
- The region of the Memcache instance. If it is not provided, the provider region is used.
- reserved_
ip_ Sequence[str]range_ ids - Contains the name of allocated IP address ranges associated with the private service access connection for example, "test-default" associated with IP range 10.0.0.0/29.
- zones Sequence[str]
- Zones where memcache nodes should be provisioned. If not provided, all zones will be used.
- String
- The full name of the GCE network to connect the instance to. If not provided, 'default' will be used.
- create
Time String - Creation timestamp in RFC3339 text format.
- discovery
Endpoint String - Endpoint for Discovery API
- display
Name String - A user-visible name for the instance.
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels Map<String>
- Resource labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
- maintenance
Policy Property Map - Maintenance policy for an instance.
- maintenance
Schedules List<Property Map> - Output only. Published maintenance schedule. Structure is documented below.
- memcache
Full StringVersion - The full version of memcached server running on this instance.
- memcache
Nodes List<Property Map> - Additional information about the instance state, if available. Structure is documented below.
- memcache
Parameters Property Map - User-specified parameters for this memcache instance.
- memcache
Version String - 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: "MEMCACHE_1_5" Possible values: ["MEMCACHE_1_5", "MEMCACHE_1_6_15"]
- name String
- The resource name of the instance.
- node
Config Property Map - Configuration for memcache nodes. Structure is documented below.
- node
Count Number - Number of nodes in the memcache instance.
- project String
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- region String
- The region of the Memcache instance. If it is not provided, the provider region is used.
- reserved
Ip List<String>Range Ids - Contains the name of allocated IP address ranges associated with the private service access connection for example, "test-default" associated with IP range 10.0.0.0/29.
- zones List<String>
- Zones where memcache nodes should be provisioned. If not provided, all zones will be used.
Supporting Types
InstanceMaintenancePolicy, InstanceMaintenancePolicyArgs
- Weekly
Maintenance List<InstanceWindows Maintenance Policy Weekly Maintenance Window> - Required. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one. Structure is documented below.
- Create
Time string - (Output) Output only. The time when the policy was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits
- Description string
- Optional. Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.
- Update
Time string - (Output) Output only. The time when the policy was updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- Weekly
Maintenance []InstanceWindows Maintenance Policy Weekly Maintenance Window - Required. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one. Structure is documented below.
- Create
Time string - (Output) Output only. The time when the policy was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits
- Description string
- Optional. Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.
- Update
Time string - (Output) Output only. The time when the policy was updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- weekly
Maintenance List<InstanceWindows Maintenance Policy Weekly Maintenance Window> - Required. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one. Structure is documented below.
- create
Time String - (Output) Output only. The time when the policy was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits
- description String
- Optional. Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.
- update
Time String - (Output) Output only. The time when the policy was updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- weekly
Maintenance InstanceWindows Maintenance Policy Weekly Maintenance Window[] - Required. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one. Structure is documented below.
- create
Time string - (Output) Output only. The time when the policy was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits
- description string
- Optional. Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.
- update
Time string - (Output) Output only. The time when the policy was updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- weekly_
maintenance_ Sequence[Instancewindows Maintenance Policy Weekly Maintenance Window] - Required. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one. Structure is documented below.
- create_
time str - (Output) Output only. The time when the policy was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits
- description str
- Optional. Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.
- update_
time str - (Output) Output only. The time when the policy was updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- weekly
Maintenance List<Property Map>Windows - Required. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one. Structure is documented below.
- create
Time String - (Output) Output only. The time when the policy was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits
- description String
- Optional. Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.
- update
Time String - (Output) Output only. The time when the policy was updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
InstanceMaintenancePolicyWeeklyMaintenanceWindow, InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs
- Day string
- Required. The day of week that maintenance updates occur.
- DAY_OF_WEEK_UNSPECIFIED: The day of the week is unspecified.
- MONDAY: Monday
- TUESDAY: Tuesday
- WEDNESDAY: Wednesday
- THURSDAY: Thursday
- FRIDAY: Friday
- SATURDAY: Saturday
- SUNDAY: Sunday
Possible values are:
DAY_OF_WEEK_UNSPECIFIED
,MONDAY
,TUESDAY
,WEDNESDAY
,THURSDAY
,FRIDAY
,SATURDAY
,SUNDAY
.
- Duration string
- Required. The length of the maintenance window, ranging from 3 hours to 8 hours. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- Start
Time InstanceMaintenance Policy Weekly Maintenance Window Start Time - Required. Start time of the window in UTC time. Structure is documented below.
- Day string
- Required. The day of week that maintenance updates occur.
- DAY_OF_WEEK_UNSPECIFIED: The day of the week is unspecified.
- MONDAY: Monday
- TUESDAY: Tuesday
- WEDNESDAY: Wednesday
- THURSDAY: Thursday
- FRIDAY: Friday
- SATURDAY: Saturday
- SUNDAY: Sunday
Possible values are:
DAY_OF_WEEK_UNSPECIFIED
,MONDAY
,TUESDAY
,WEDNESDAY
,THURSDAY
,FRIDAY
,SATURDAY
,SUNDAY
.
- Duration string
- Required. The length of the maintenance window, ranging from 3 hours to 8 hours. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- Start
Time InstanceMaintenance Policy Weekly Maintenance Window Start Time - Required. Start time of the window in UTC time. Structure is documented below.
- day String
- Required. The day of week that maintenance updates occur.
- DAY_OF_WEEK_UNSPECIFIED: The day of the week is unspecified.
- MONDAY: Monday
- TUESDAY: Tuesday
- WEDNESDAY: Wednesday
- THURSDAY: Thursday
- FRIDAY: Friday
- SATURDAY: Saturday
- SUNDAY: Sunday
Possible values are:
DAY_OF_WEEK_UNSPECIFIED
,MONDAY
,TUESDAY
,WEDNESDAY
,THURSDAY
,FRIDAY
,SATURDAY
,SUNDAY
.
- duration String
- Required. The length of the maintenance window, ranging from 3 hours to 8 hours. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- start
Time InstanceMaintenance Policy Weekly Maintenance Window Start Time - Required. Start time of the window in UTC time. Structure is documented below.
- day string
- Required. The day of week that maintenance updates occur.
- DAY_OF_WEEK_UNSPECIFIED: The day of the week is unspecified.
- MONDAY: Monday
- TUESDAY: Tuesday
- WEDNESDAY: Wednesday
- THURSDAY: Thursday
- FRIDAY: Friday
- SATURDAY: Saturday
- SUNDAY: Sunday
Possible values are:
DAY_OF_WEEK_UNSPECIFIED
,MONDAY
,TUESDAY
,WEDNESDAY
,THURSDAY
,FRIDAY
,SATURDAY
,SUNDAY
.
- duration string
- Required. The length of the maintenance window, ranging from 3 hours to 8 hours. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- start
Time InstanceMaintenance Policy Weekly Maintenance Window Start Time - Required. Start time of the window in UTC time. Structure is documented below.
- day str
- Required. The day of week that maintenance updates occur.
- DAY_OF_WEEK_UNSPECIFIED: The day of the week is unspecified.
- MONDAY: Monday
- TUESDAY: Tuesday
- WEDNESDAY: Wednesday
- THURSDAY: Thursday
- FRIDAY: Friday
- SATURDAY: Saturday
- SUNDAY: Sunday
Possible values are:
DAY_OF_WEEK_UNSPECIFIED
,MONDAY
,TUESDAY
,WEDNESDAY
,THURSDAY
,FRIDAY
,SATURDAY
,SUNDAY
.
- duration str
- Required. The length of the maintenance window, ranging from 3 hours to 8 hours. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- start_
time InstanceMaintenance Policy Weekly Maintenance Window Start Time - Required. Start time of the window in UTC time. Structure is documented below.
- day String
- Required. The day of week that maintenance updates occur.
- DAY_OF_WEEK_UNSPECIFIED: The day of the week is unspecified.
- MONDAY: Monday
- TUESDAY: Tuesday
- WEDNESDAY: Wednesday
- THURSDAY: Thursday
- FRIDAY: Friday
- SATURDAY: Saturday
- SUNDAY: Sunday
Possible values are:
DAY_OF_WEEK_UNSPECIFIED
,MONDAY
,TUESDAY
,WEDNESDAY
,THURSDAY
,FRIDAY
,SATURDAY
,SUNDAY
.
- duration String
- Required. The length of the maintenance window, ranging from 3 hours to 8 hours. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- start
Time Property Map - Required. Start time of the window in UTC time. Structure is documented below.
InstanceMaintenancePolicyWeeklyMaintenanceWindowStartTime, InstanceMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs
- Hours int
- Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
- Minutes int
- Minutes of hour of day. Must be from 0 to 59.
- Nanos int
- Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
- Seconds int
- Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
- Hours int
- Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
- Minutes int
- Minutes of hour of day. Must be from 0 to 59.
- Nanos int
- Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
- Seconds int
- Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
- hours Integer
- Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
- minutes Integer
- Minutes of hour of day. Must be from 0 to 59.
- nanos Integer
- Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
- seconds Integer
- Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
- hours number
- Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
- minutes number
- Minutes of hour of day. Must be from 0 to 59.
- nanos number
- Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
- seconds number
- Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
- hours int
- Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
- minutes int
- Minutes of hour of day. Must be from 0 to 59.
- nanos int
- Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
- seconds int
- Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
- hours Number
- Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
- minutes Number
- Minutes of hour of day. Must be from 0 to 59.
- nanos Number
- Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
- seconds Number
- Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
InstanceMaintenanceSchedule, InstanceMaintenanceScheduleArgs
- End
Time string - (Output) Output only. The end time of any upcoming scheduled maintenance for this instance. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- Schedule
Deadline stringTime - (Output) Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- Start
Time string - (Output) Output only. The start time of any upcoming scheduled maintenance for this instance. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- End
Time string - (Output) Output only. The end time of any upcoming scheduled maintenance for this instance. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- Schedule
Deadline stringTime - (Output) Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- Start
Time string - (Output) Output only. The start time of any upcoming scheduled maintenance for this instance. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- end
Time String - (Output) Output only. The end time of any upcoming scheduled maintenance for this instance. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- schedule
Deadline StringTime - (Output) Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- start
Time String - (Output) Output only. The start time of any upcoming scheduled maintenance for this instance. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- end
Time string - (Output) Output only. The end time of any upcoming scheduled maintenance for this instance. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- schedule
Deadline stringTime - (Output) Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- start
Time string - (Output) Output only. The start time of any upcoming scheduled maintenance for this instance. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- end_
time str - (Output) Output only. The end time of any upcoming scheduled maintenance for this instance. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- schedule_
deadline_ strtime - (Output) Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- start_
time str - (Output) Output only. The start time of any upcoming scheduled maintenance for this instance. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- end
Time String - (Output) Output only. The end time of any upcoming scheduled maintenance for this instance. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- schedule
Deadline StringTime - (Output) Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- start
Time String - (Output) Output only. The start time of any upcoming scheduled maintenance for this instance. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
InstanceMemcacheNode, InstanceMemcacheNodeArgs
- Host string
- (Output) Hostname or IP address of the Memcached node used by the clients to connect to the Memcached server on this node.
- Node
Id string - (Output) Identifier of the Memcached node. The node id does not include project or location like the Memcached instance name.
- Port int
- (Output) The port number of the Memcached server on this node.
- State string
- (Output) Current state of the Memcached node.
- Zone string
- (Output) Location (GCP Zone) for the Memcached node.
- Host string
- (Output) Hostname or IP address of the Memcached node used by the clients to connect to the Memcached server on this node.
- Node
Id string - (Output) Identifier of the Memcached node. The node id does not include project or location like the Memcached instance name.
- Port int
- (Output) The port number of the Memcached server on this node.
- State string
- (Output) Current state of the Memcached node.
- Zone string
- (Output) Location (GCP Zone) for the Memcached node.
- host String
- (Output) Hostname or IP address of the Memcached node used by the clients to connect to the Memcached server on this node.
- node
Id String - (Output) Identifier of the Memcached node. The node id does not include project or location like the Memcached instance name.
- port Integer
- (Output) The port number of the Memcached server on this node.
- state String
- (Output) Current state of the Memcached node.
- zone String
- (Output) Location (GCP Zone) for the Memcached node.
- host string
- (Output) Hostname or IP address of the Memcached node used by the clients to connect to the Memcached server on this node.
- node
Id string - (Output) Identifier of the Memcached node. The node id does not include project or location like the Memcached instance name.
- port number
- (Output) The port number of the Memcached server on this node.
- state string
- (Output) Current state of the Memcached node.
- zone string
- (Output) Location (GCP Zone) for the Memcached node.
- host str
- (Output) Hostname or IP address of the Memcached node used by the clients to connect to the Memcached server on this node.
- node_
id str - (Output) Identifier of the Memcached node. The node id does not include project or location like the Memcached instance name.
- port int
- (Output) The port number of the Memcached server on this node.
- state str
- (Output) Current state of the Memcached node.
- zone str
- (Output) Location (GCP Zone) for the Memcached node.
- host String
- (Output) Hostname or IP address of the Memcached node used by the clients to connect to the Memcached server on this node.
- node
Id String - (Output) Identifier of the Memcached node. The node id does not include project or location like the Memcached instance name.
- port Number
- (Output) The port number of the Memcached server on this node.
- state String
- (Output) Current state of the Memcached node.
- zone String
- (Output) Location (GCP Zone) for the Memcached node.
InstanceMemcacheParameters, InstanceMemcacheParametersArgs
InstanceNodeConfig, InstanceNodeConfigArgs
- Cpu
Count int - Number of CPUs per node.
- Memory
Size intMb - Memory size in Mebibytes for each memcache node.
- Cpu
Count int - Number of CPUs per node.
- Memory
Size intMb - Memory size in Mebibytes for each memcache node.
- cpu
Count Integer - Number of CPUs per node.
- memory
Size IntegerMb - Memory size in Mebibytes for each memcache node.
- cpu
Count number - Number of CPUs per node.
- memory
Size numberMb - Memory size in Mebibytes for each memcache node.
- cpu_
count int - Number of CPUs per node.
- memory_
size_ intmb - Memory size in Mebibytes for each memcache node.
- cpu
Count Number - Number of CPUs per node.
- memory
Size NumberMb - Memory size in Mebibytes for each memcache node.
Import
Instance can be imported using any of these accepted formats:
projects/{{project}}/locations/{{region}}/instances/{{name}}
{{project}}/{{region}}/{{name}}
{{region}}/{{name}}
{{name}}
When using the pulumi import
command, Instance can be imported using one of the formats above. For example:
$ pulumi import gcp:memcache/instance:Instance default projects/{{project}}/locations/{{region}}/instances/{{name}}
$ pulumi import gcp:memcache/instance:Instance default {{project}}/{{region}}/{{name}}
$ pulumi import gcp:memcache/instance:Instance default {{region}}/{{name}}
$ pulumi import gcp:memcache/instance:Instance default {{name}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.