Skip to content

Commit 10e3c1f

Browse files
Update the description of CryptoKeyVersion.state (#13238) (#21678)
[upstream:a301d0f8daea8806a8dbafc2d54b151b308450e5] Signed-off-by: Modular Magician <magic-modules@google.com>
1 parent 051a681 commit 10e3c1f

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changelog/13238.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
kms: clarified description of the `state` argument of `google_kms_crypto_key_version`
3+
```

google/services/kms/resource_kms_crypto_key_version.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ Format: ''projects/{{project}}/locations/{{location}}/keyRings/{{keyring}}/crypt
8484
Computed: true,
8585
Optional: true,
8686
ValidateFunc: verify.ValidateEnum([]string{"PENDING_GENERATION", "ENABLED", "DISABLED", "DESTROYED", "DESTROY_SCHEDULED", "PENDING_IMPORT", "IMPORT_FAILED", ""}),
87-
Description: `The current state of the CryptoKeyVersion. Possible values: ["PENDING_GENERATION", "ENABLED", "DISABLED", "DESTROYED", "DESTROY_SCHEDULED", "PENDING_IMPORT", "IMPORT_FAILED"]`,
87+
Description: `The current state of the CryptoKeyVersion. Note: you can only specify this field to manually 'ENABLE' or 'DISABLE' the CryptoKeyVersion,
88+
otherwise the value of this field is always retrieved automatically. Possible values: ["PENDING_GENERATION", "ENABLED", "DISABLED", "DESTROYED", "DESTROY_SCHEDULED", "PENDING_IMPORT", "IMPORT_FAILED"]`,
8889
},
8990
"algorithm": {
9091
Type: schema.TypeString,

website/docs/r/kms_crypto_key_version.html.markdown

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ The following arguments are supported:
6969

7070
* `state` -
7171
(Optional)
72-
The current state of the CryptoKeyVersion.
72+
The current state of the CryptoKeyVersion. Note: you can only specify this field to manually `ENABLE` or `DISABLE` the CryptoKeyVersion,
73+
otherwise the value of this field is always retrieved automatically.
7374
Possible values are: `PENDING_GENERATION`, `ENABLED`, `DISABLED`, `DESTROYED`, `DESTROY_SCHEDULED`, `PENDING_IMPORT`, `IMPORT_FAILED`.
7475

7576
* `external_protection_level_options` -

0 commit comments

Comments
 (0)