Skip to content

Commit

Permalink
Add support for MAC enum for resource google_kms_crypto_key (#6218) (#…
Browse files Browse the repository at this point in the history
…12046)

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Jul 7, 2022
1 parent d72562f commit 0f32c2c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .changelog/6218.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug

```
4 changes: 2 additions & 2 deletions google/resource_kms_crypto_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ If not specified at creation time, the default duration is 24 hours.`,
Type: schema.TypeString,
Optional: true,
ForceNew: true,
ValidateFunc: validateEnum([]string{"ENCRYPT_DECRYPT", "ASYMMETRIC_SIGN", "ASYMMETRIC_DECRYPT", ""}),
ValidateFunc: validateEnum([]string{"ENCRYPT_DECRYPT", "ASYMMETRIC_SIGN", "ASYMMETRIC_DECRYPT", "MAC", ""}),
Description: `The immutable purpose of this CryptoKey. See the
[purpose reference](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKeyPurpose)
for possible inputs. Default value: "ENCRYPT_DECRYPT" Possible values: ["ENCRYPT_DECRYPT", "ASYMMETRIC_SIGN", "ASYMMETRIC_DECRYPT"]`,
for possible inputs. Default value: "ENCRYPT_DECRYPT" Possible values: ["ENCRYPT_DECRYPT", "ASYMMETRIC_SIGN", "ASYMMETRIC_DECRYPT", "MAC"]`,
Default: "ENCRYPT_DECRYPT",
},
"rotation_period": {
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/kms_crypto_key.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ The following arguments are supported:
[purpose reference](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKeyPurpose)
for possible inputs.
Default value is `ENCRYPT_DECRYPT`.
Possible values are `ENCRYPT_DECRYPT`, `ASYMMETRIC_SIGN`, and `ASYMMETRIC_DECRYPT`.
Possible values are `ENCRYPT_DECRYPT`, `ASYMMETRIC_SIGN`, `ASYMMETRIC_DECRYPT`, and `MAC`.

* `rotation_period` -
(Optional)
Expand Down

0 comments on commit 0f32c2c

Please sign in to comment.