# Class CreateInstanceRequest (2.22.0)

2.22.0 (latest) 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.1 2.15.5 2.14.0 2.13.1 2.12.1 2.11.1 2.10.0 2.9.3 2.8.1 2.7.1 2.6.0 2.5.1 2.4.1 2.3.0 2.2.4 2.1.1 2.0.0 1.0.2 0.4.0 0.3.0

    CreateInstanceRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Request for
CreateInstance.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `parent` | `str` Required. The resource name of the instance location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region. |
| `instance_id` | `str` Required. The logical name of the Redis instance in the customer project with the following restrictions: - Must contain only lowercase letters, numbers, and hyphens. - Must start with a letter. - Must be between 1-40 characters. - Must end with a number or a letter. - Must be unique within the customer project / location |
| `instance` | `https://docs.cloud.google.com/python/docs/reference/redis/latest/google.cloud.redis_v1.types.Instance` Required. A Redis \[Instance\] resource |