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
To enable CMEK for the bucket, set this field to a valid kmsKeyName for which the associated service account has the required cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key.
20
+
The Cloud KMS key used by the bucket can be updated by changing the kmsKeyName to a new valid key name. Encryption operations that are in progress will be completed with the key that was in use when they started. Decryption operations will be completed using the key that was used at the time of encryption unless access to that key has been revoked.
21
+
See [Enabling CMEK for Logging Buckets](https://cloud.google.com/logging/docs/routing/managed-encryption-storage) for more information.`,
22
+
},
23
+
"kms_key_version_name": {
24
+
Type: schema.TypeString,
25
+
Computed: true,
26
+
Description: `The CryptoKeyVersion resource name for the configured Cloud KMS key.
This is a read-only field used to convey the specific configured CryptoKeyVersion of kms_key that has been configured. It will be populated in cases where the CMEK settings are bound to a single key version.`,
32
+
},
33
+
"name": {
34
+
Type: schema.TypeString,
35
+
Computed: true,
36
+
Description: `The resource name of the CMEK settings.`,
37
+
},
38
+
"service_account_id": {
39
+
Type: schema.TypeString,
40
+
Computed: true,
41
+
Description: `The service account associated with a project for which CMEK will apply.
42
+
Before enabling CMEK for a logging bucket, you must first assign the cloudkms.cryptoKeyEncrypterDecrypter role to the service account associated with the project for which CMEK will apply. Use [v2.getCmekSettings](https://cloud.google.com/logging/docs/reference/v2/rest/v2/TopLevel/getCmekSettings#google.logging.v2.ConfigServiceV2.GetCmekSettings) to obtain the service account ID.
43
+
See [Enabling CMEK for Logging Buckets](https://cloud.google.com/logging/docs/routing/managed-encryption-storage) for more information.`,
Copy file name to clipboardExpand all lines: google/resource_logging_bucket_config.go
+89
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,48 @@ var loggingBucketConfigSchema = map[string]*schema.Schema{
44
44
Computed: true,
45
45
Description: `The bucket's lifecycle such as active or deleted.`,
46
46
},
47
+
"cmek_settings": {
48
+
Type: schema.TypeList,
49
+
MaxItems: 1,
50
+
Optional: true,
51
+
Description: `The CMEK settings of the log bucket. If present, new log entries written to this log bucket are encrypted using the CMEK key provided in this configuration. If a log bucket has CMEK settings, the CMEK settings cannot be disabled later by updating the log bucket. Changing the KMS key is allowed.`,
52
+
Elem: &schema.Resource{
53
+
Schema: map[string]*schema.Schema{
54
+
"name": {
55
+
Type: schema.TypeString,
56
+
Computed: true,
57
+
Description: `The resource name of the CMEK settings.`,
58
+
},
59
+
"kms_key_name": {
60
+
Type: schema.TypeString,
61
+
Required: true,
62
+
Description: `The resource name for the configured Cloud KMS key.
To enable CMEK for the bucket, set this field to a valid kmsKeyName for which the associated service account has the required cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key.
66
+
The Cloud KMS key used by the bucket can be updated by changing the kmsKeyName to a new valid key name. Encryption operations that are in progress will be completed with the key that was in use when they started. Decryption operations will be completed using the key that was used at the time of encryption unless access to that key has been revoked.
67
+
See [Enabling CMEK for Logging Buckets](https://cloud.google.com/logging/docs/routing/managed-encryption-storage) for more information.`,
68
+
},
69
+
"kms_key_version_name": {
70
+
Type: schema.TypeString,
71
+
Computed: true,
72
+
Description: `The CryptoKeyVersion resource name for the configured Cloud KMS key.
This is a read-only field used to convey the specific configured CryptoKeyVersion of kms_key that has been configured. It will be populated in cases where the CMEK settings are bound to a single key version.`,
78
+
},
79
+
"service_account_id": {
80
+
Type: schema.TypeString,
81
+
Computed: true,
82
+
Description: `The service account associated with a project for which CMEK will apply.
83
+
Before enabling CMEK for a logging bucket, you must first assign the cloudkms.cryptoKeyEncrypterDecrypter role to the service account associated with the project for which CMEK will apply. Use [v2.getCmekSettings](https://cloud.google.com/logging/docs/reference/v2/rest/v2/TopLevel/getCmekSettings#google.logging.v2.ConfigServiceV2.GetCmekSettings) to obtain the service account ID.
84
+
See [Enabling CMEK for Logging Buckets](https://cloud.google.com/logging/docs/routing/managed-encryption-storage) for more information.`,
0 commit comments