You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: "Key usage. Keys with a usage set to 'symmetric_encryption' can encrypt and decrypt data using the AES-256-GCM key algorithm. Possible values: symmetric_encryption, asymmetric_encryption, asymmetric_signing.",
37
+
Deprecated: "Use usage_symmetric_encryption, usage_asymmetric_encryption, or usage_asymmetric_signing instead",
38
+
Description: "DEPRECATED: Use usage_symmetric_encryption, usage_asymmetric_encryption, or usage_asymmetric_signing instead. Key usage. Possible values: symmetric_encryption, asymmetric_encryption, asymmetric_signing.",
39
+
ExactlyOneOf: []string{
40
+
"usage",
41
+
"usage_symmetric_encryption",
42
+
"usage_asymmetric_encryption",
43
+
"usage_asymmetric_signing",
44
+
},
37
45
},
38
-
"algorithm": {
39
-
Type: schema.TypeString,
40
-
Optional: true,
41
-
Computed: true,
42
-
Description: "Algorithm for the key. If not specified, a default algorithm is chosen based on usage. See Key Manager documentation for supported algorithms.",
46
+
"usage_symmetric_encryption": {
47
+
Type: schema.TypeString,
48
+
Optional: true,
49
+
ValidateFunc: validation.StringInSlice([]string{
50
+
"aes_256_gcm",
51
+
}, false),
52
+
Description: "Algorithm for symmetric encryption. Possible values: aes_256_gcm",
53
+
ExactlyOneOf: []string{
54
+
"usage",
55
+
"usage_symmetric_encryption",
56
+
"usage_asymmetric_encryption",
57
+
"usage_asymmetric_signing",
58
+
},
59
+
},
60
+
"usage_asymmetric_encryption": {
61
+
Type: schema.TypeString,
62
+
Optional: true,
63
+
ValidateFunc: validation.StringInSlice([]string{
64
+
"rsa_oaep_2048_sha256",
65
+
"rsa_oaep_3072_sha256",
66
+
"rsa_oaep_4096_sha256",
67
+
}, false),
68
+
Description: "Algorithm for asymmetric encryption. Possible values: rsa_oaep_2048_sha256, rsa_oaep_3072_sha256, rsa_oaep_4096_sha256",
69
+
ExactlyOneOf: []string{
70
+
"usage",
71
+
"usage_symmetric_encryption",
72
+
"usage_asymmetric_encryption",
73
+
"usage_asymmetric_signing",
74
+
},
75
+
},
76
+
"usage_asymmetric_signing": {
77
+
Type: schema.TypeString,
78
+
Optional: true,
79
+
ValidateFunc: validation.StringInSlice([]string{
80
+
"ec_p256_sha256",
81
+
"rsa_pss_2048_sha256",
82
+
"rsa_pkcs1_2048_sha256",
83
+
}, false),
84
+
Description: "Algorithm for asymmetric signing. Possible values: ec_p256_sha256, rsa_pss_2048_sha256, rsa_pkcs1_2048_sha256",
85
+
ExactlyOneOf: []string{
86
+
"usage",
87
+
"usage_symmetric_encryption",
88
+
"usage_asymmetric_encryption",
89
+
"usage_asymmetric_signing",
90
+
},
43
91
},
44
92
"description": {
45
93
Type: schema.TypeString,
@@ -122,8 +170,7 @@ func resourceKeyManagerKeyCreate(ctx context.Context, d *schema.ResourceData, m
0 commit comments