# Cloud Key Management Service (KMS) V1 API - Module Google::Cloud::Kms::V1::AutokeyConfig::KeyProjectResolutionMode (v1.13.0)

1.13.0 (latest) 1.12.1 1.11.0 1.10.0 1.9.2 1.8.0 1.7.0 1.6.0 1.5.1 1.4.0 1.3.2 1.2.1 1.1.0 1.0.2 0.27.0 0.26.0 0.25.1 0.24.3 0.23.0 0.22.1 0.21.0 0.20.0 0.19.0 0.18.1 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.2 Reference documentation and code samples for the Cloud Key Management Service (KMS) V1 API module Google::Cloud::Kms::V1::AutokeyConfig::KeyProjectResolutionMode.

Defines the resolution mode enum for the key project.
The
[KeyProjectResolutionMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-AutokeyConfig-KeyProjectResolutionMode "Google::Cloud::Kms::V1::AutokeyConfig::KeyProjectResolutionMode (module)")
determines the mechanism by which
[AutokeyConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-AutokeyConfig "Google::Cloud::Kms::V1::AutokeyConfig (class)") identifies a
[key_project](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-AutokeyConfig#Google__Cloud__Kms__V1__AutokeyConfig_key_project_instance_ "Google::Cloud::Kms::V1::AutokeyConfig#key_project (method)") at its
specific configuration node. This parameter also determines if Autokey can
be used within this project or folder.

## Constants

### KEY_PROJECT_RESOLUTION_MODE_UNSPECIFIED

**value:** 0  
Default value. KeyProjectResolutionMode when not specified will act as
`DEDICATED_KEY_PROJECT`.

### DEDICATED_KEY_PROJECT

**value:** 1  
Keys are created in a dedicated project specified by `key_project`.

### RESOURCE_PROJECT

**value:** 2  
Keys are created in the same project as the resource requesting the key.
The `key_project` must not be set when this mode is used.

### DISABLED

**value:** 3  
Disables the AutokeyConfig. When this mode is set, any AutokeyConfig
from higher levels in the resource hierarchy are ignored for this
resource and its descendants. This setting can be overridden
by a more specific configuration at a lower level. For example,
if Autokey is disabled on a folder, it can be re-enabled on a sub-folder
or project within that folder by setting a different mode (e.g.,
DEDICATED_KEY_PROJECT or RESOURCE_PROJECT).