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
Copy file name to clipboardExpand all lines: google-beta/services/vertexai/resource_vertex_ai_index.go
+66Lines changed: 66 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -195,6 +195,23 @@ then existing content of the Index will be replaced by the data from the content
195
195
Optional: true,
196
196
Description: `The description of the Index.`,
197
197
},
198
+
"encryption_spec": {
199
+
Type: schema.TypeList,
200
+
Optional: true,
201
+
ForceNew: true,
202
+
Description: `Customer-managed encryption key spec for an Index. If set, this Index and all sub-resources of this Index will be secured by this key.`,
203
+
MaxItems: 1,
204
+
Elem: &schema.Resource{
205
+
Schema: map[string]*schema.Schema{
206
+
"kms_key_name": {
207
+
Type: schema.TypeString,
208
+
Required: true,
209
+
ForceNew: true,
210
+
Description: `Required. The Cloud KMS resource identifier of the customer managed encryption key used to protect a resource. Has the form: 'projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key'. The key needs to be in the same region as where the compute resource is created.`,
211
+
},
212
+
},
213
+
},
214
+
},
198
215
"index_update_method": {
199
216
Type: schema.TypeString,
200
217
Optional: true,
@@ -338,6 +355,12 @@ func resourceVertexAIIndexCreate(d *schema.ResourceData, meta interface{}) error
@@ -151,6 +168,11 @@ The following arguments are supported:
151
168
* BATCH_UPDATE: user can call indexes.patch with files on Cloud Storage of datapoints to update.
152
169
* STREAM_UPDATE: user can call indexes.upsertDatapoints/DeleteDatapoints to update the Index and the updates will be applied in corresponding DeployedIndexes in nearly real-time.
153
170
171
+
*`encryption_spec` -
172
+
(Optional)
173
+
Customer-managed encryption key spec for an Index. If set, this Index and all sub-resources of this Index will be secured by this key.
174
+
Structure is [documented below](#nested_encryption_spec).
175
+
154
176
*`region` -
155
177
(Optional)
156
178
The region of the index. eg us-central1
@@ -248,6 +270,12 @@ The following arguments are supported:
248
270
The default percentage of leaf nodes that any query may be searched. Must be in
249
271
range 1-100, inclusive. The default value is 10 (means 10%) if not set.
Required. The Cloud KMS resource identifier of the customer managed encryption key used to protect a resource. Has the form: `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. The key needs to be in the same region as where the compute resource is created.
278
+
251
279
## Attributes Reference
252
280
253
281
In addition to the arguments listed above, the following computed attributes are exported:
0 commit comments