# Memorystore V1 API - Module Google::Cloud::Memorystore::V1::CrossInstanceReplicationConfig::InstanceRole (v1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Memorystore V1 API module Google::Cloud::Memorystore::V1::CrossInstanceReplicationConfig::InstanceRole.

The role of the instance in cross instance replication.

## Constants

### INSTANCE_ROLE_UNSPECIFIED

**value:** 0  
instance role is not set.
The behavior is equivalent to NONE.

### NONE

**value:** 1  
This instance does not participate in cross instance replication. It is
an independent instance and does not replicate to or from any other
instances.

### PRIMARY

**value:** 2  
A instance that allows both reads and writes. Any data written to this
instance is also replicated to the attached secondary instances.

### SECONDARY

**value:** 3  
A instance that allows only reads and replicates data from a primary
instance.