Instance
Create a Instance Resource
new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);def 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);func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
Instance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Instance resource accepts the following input properties:
- Node
Config InstanceNode Config Args Configuration for memcache nodes. Structure is documented below.
- Node
Count int Number of nodes in the memcache instance.
- Region string
The name of the Memcache region of the 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.
- Memcache
Parameters InstanceMemcache Parameters Args User-specified parameters for this memcache instance. Structure is documented below.
- Name string
The resource name of the instance.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- 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 int Number of nodes in the memcache instance.
- Region string
The name of the Memcache region of the 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.
- Memcache
Parameters InstanceMemcache Parameters User-specified parameters for this memcache instance. Structure is documented below.
- Name string
The resource name of the instance.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- 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 number Number of nodes in the memcache instance.
- region string
The name of the Memcache region of the 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.
- memcache
Parameters InstanceMemcache Parameters User-specified parameters for this memcache instance. Structure is documented below.
- name string
The resource name of the instance.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- zones string[]
Zones where memcache nodes should be provisioned. If not provided, all zones will be used.
- node_
config Dict[InstanceNode Config] Configuration for memcache nodes. Structure is documented below.
- node_
count float Number of nodes in the memcache instance.
- region str
The name of the Memcache region of the 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 Dict[str, str]
Resource labels to represent user-provided metadata.
- memcache_
parameters Dict[InstanceMemcache Parameters] User-specified parameters for this memcache instance. Structure is documented below.
- name str
The resource name of the instance.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- zones List[str]
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.
- Id string
- The provider-assigned unique ID for this managed resource.
- Create
Time string Creation timestamp in RFC3339 text format.
- Id string
- The provider-assigned unique ID for this managed resource.
- create
Time string Creation timestamp in RFC3339 text format.
- id string
- The provider-assigned unique ID for this managed resource.
- create_
time str Creation timestamp in RFC3339 text format.
- id str
- The provider-assigned unique ID for this managed resource.
Look up an 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): Instancestatic 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, __props__=None);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)- 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.
The following state arguments are supported:
- 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.
- Display
Name string A user-visible name for the instance.
- Labels Dictionary<string, string>
Resource labels to represent user-provided metadata.
- Memcache
Parameters InstanceMemcache Parameters Args User-specified parameters for this memcache instance. Structure is documented below.
- 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
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
The name of the Memcache region of the instance.
- 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.
- Display
Name string A user-visible name for the instance.
- Labels map[string]string
Resource labels to represent user-provided metadata.
- Memcache
Parameters InstanceMemcache Parameters User-specified parameters for this memcache instance. Structure is documented below.
- 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
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
The name of the Memcache region of the instance.
- 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.
- display
Name string A user-visible name for the instance.
- labels {[key: string]: string}
Resource labels to represent user-provided metadata.
- memcache
Parameters InstanceMemcache Parameters User-specified parameters for this memcache instance. Structure is documented below.
- 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
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region string
The name of the Memcache region of the instance.
- 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.
- display_
name str A user-visible name for the instance.
- labels Dict[str, str]
Resource labels to represent user-provided metadata.
- memcache_
parameters Dict[InstanceMemcache Parameters] User-specified parameters for this memcache instance. Structure is documented below.
- name str
The resource name of the instance.
- node_
config Dict[InstanceNode Config] Configuration for memcache nodes. Structure is documented below.
- node_
count float Number of nodes in the memcache instance.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region str
The name of the Memcache region of the instance.
- zones List[str]
Zones where memcache nodes should be provisioned. If not provided, all zones will be used.
Supporting Types
InstanceMemcacheParameters
InstanceNodeConfig
- 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 number Number of CPUs per node.
- memory
Size numberMb Memory size in Mebibytes for each memcache node.
- cpu
Count float Number of CPUs per node.
- memory
Size floatMb Memory size in Mebibytes for each memcache node.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.