|
72 | 72 | }, |
73 | 73 | { |
74 | 74 | "key": "prefix", |
75 | | - "required": true |
| 75 | + "required": true, |
| 76 | + "value_constraints": [ |
| 77 | + { |
| 78 | + "type": "regex", |
| 79 | + "description": "Prefix must begin with a lowercase letter and may contain only lowercase letters, digits, and hyphens '-'. It must not end with a hyphen('-'), and cannot contain consecutive hyphens ('--'). It should not exceed 16 characters.", |
| 80 | + "value": "^$|^__NULL__$|^[a-z](?!.*--)(?:[a-z0-9-]{0,14}[a-z0-9])?$" |
| 81 | + } |
| 82 | + ] |
76 | 83 | }, |
77 | 84 | { |
78 | 85 | "key": "region", |
|
122 | 129 | }, |
123 | 130 | { |
124 | 131 | "key": "existing_kms_instance_crn", |
125 | | - "required": true |
| 132 | + "required": true, |
| 133 | + "value_constraints": [ |
| 134 | + { |
| 135 | + "type": "regex", |
| 136 | + "description": "The value provided for 'existing_kms_instance_crn' is not valid.", |
| 137 | + "value": "^__NULL__$|^crn:(.*:){3}(kms|hs-crypto):(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$" |
| 138 | + } |
| 139 | + ] |
126 | 140 | }, |
127 | 141 | { |
128 | 142 | "key": "kms_endpoint_url", |
|
143 | 157 | "description": "The name of an existing resource group to provision the resources." |
144 | 158 | }, |
145 | 159 | { |
146 | | - "key": "existing_monitoring_crn" |
| 160 | + "key": "existing_monitoring_crn", |
| 161 | + "value_constraints": [ |
| 162 | + { |
| 163 | + "type": "regex", |
| 164 | + "description": "The value provided for 'existing_monitoring_crn' is not valid.", |
| 165 | + "value": "^__NULL__$|^crn:(.*:){3}sysdig-monitor:(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$" |
| 166 | + } |
| 167 | + ] |
147 | 168 | }, |
148 | 169 | { |
149 | 170 | "key": "event_notifications_instance_name" |
|
152 | 173 | "key": "event_notifications_resource_tags" |
153 | 174 | }, |
154 | 175 | { |
155 | | - "key": "existing_kms_root_key_crn" |
| 176 | + "key": "existing_kms_root_key_crn", |
| 177 | + "value_constraints": [ |
| 178 | + { |
| 179 | + "type": "regex", |
| 180 | + "description": "The value provided for 'existing_kms_root_key_crn' is not valid.", |
| 181 | + "value": "^__NULL__$|^crn:(.*:){3}(kms|hs-crypto):(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}:key:[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$" |
| 182 | + } |
| 183 | + ] |
156 | 184 | }, |
157 | 185 | { |
158 | 186 | "key": "event_notifications_key_ring_name" |
|
170 | 198 | "key": "ibmcloud_kms_api_key" |
171 | 199 | }, |
172 | 200 | { |
173 | | - "key": "existing_cos_instance_crn" |
| 201 | + "key": "existing_cos_instance_crn", |
| 202 | + "value_constraints": [ |
| 203 | + { |
| 204 | + "type": "regex", |
| 205 | + "description": "The value provided for 'existing_cos_instance_crn' is not valid.", |
| 206 | + "value": "^crn:(.*:){3}cloud-object-storage:(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$" |
| 207 | + } |
| 208 | + ] |
174 | 209 | }, |
175 | 210 | { |
176 | 211 | "key": "cos_bucket_name" |
|
204 | 239 | "key": "cos_bucket_region" |
205 | 240 | }, |
206 | 241 | { |
207 | | - "key": "existing_secrets_manager_instance_crn" |
| 242 | + "key": "existing_secrets_manager_instance_crn", |
| 243 | + "value_constraints": [ |
| 244 | + { |
| 245 | + "type": "regex", |
| 246 | + "description": "The value provided for 'existing_secrets_manager_instance_crn' is not valid.", |
| 247 | + "value": "^__NULL__$|^crn:(.*:){3}secrets-manager:(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$" |
| 248 | + } |
| 249 | + ] |
208 | 250 | }, |
209 | 251 | { |
210 | 252 | "key": "skip_event_notifications_secrets_manager_auth_policy" |
|
222 | 264 | "key": "service_credential_names" |
223 | 265 | }, |
224 | 266 | { |
225 | | - "key": "existing_event_notifications_instance_crn" |
| 267 | + "key": "existing_event_notifications_instance_crn", |
| 268 | + "value_constraints": [ |
| 269 | + { |
| 270 | + "type": "regex", |
| 271 | + "description": "The value provided for 'existing_event_notifications_instance_crn' is not valid.", |
| 272 | + "value": "^__NULL__$|^crn:(.*:){3}event-notifications:(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$" |
| 273 | + } |
| 274 | + ] |
226 | 275 | }, |
227 | 276 | { |
228 | 277 | "key": "cbr_rules", |
|
325 | 374 | }, |
326 | 375 | { |
327 | 376 | "key": "prefix", |
328 | | - "required": true |
| 377 | + "required": true, |
| 378 | + "value_constraints": [ |
| 379 | + { |
| 380 | + "type": "regex", |
| 381 | + "description": "Prefix must begin with a lowercase letter and may contain only lowercase letters, digits, and hyphens '-'. It must not end with a hyphen('-'), and cannot contain consecutive hyphens ('--'). It should not exceed 16 characters.", |
| 382 | + "value": "^$|^__NULL__$|^[a-z](?!.*--)(?:[a-z0-9-]{0,14}[a-z0-9])?$" |
| 383 | + } |
| 384 | + ] |
329 | 385 | }, |
330 | 386 | { |
331 | 387 | "key": "region", |
|
410 | 466 | "description": "The name of an existing resource group to provision the resources." |
411 | 467 | }, |
412 | 468 | { |
413 | | - "key": "existing_monitoring_crn" |
| 469 | + "key": "existing_monitoring_crn", |
| 470 | + "value_constraints": [ |
| 471 | + { |
| 472 | + "type": "regex", |
| 473 | + "description": "The value provided for 'existing_monitoring_crn' is not valid.", |
| 474 | + "value": "^__NULL__$|^crn:(.*:){3}sysdig-monitor:(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$" |
| 475 | + } |
| 476 | + ] |
414 | 477 | }, |
415 | 478 | { |
416 | 479 | "key": "event_notifications_instance_name" |
|
439 | 502 | "key": "event_notifications_access_tags" |
440 | 503 | }, |
441 | 504 | { |
442 | | - "key": "existing_event_notifications_instance_crn" |
| 505 | + "key": "existing_event_notifications_instance_crn", |
| 506 | + "value_constraints": [ |
| 507 | + { |
| 508 | + "type": "regex", |
| 509 | + "description": "The value provided for 'existing_event_notifications_instance_crn' is not valid.", |
| 510 | + "value": "^__NULL__$|^crn:(.*:){3}event-notifications:(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$" |
| 511 | + } |
| 512 | + ] |
443 | 513 | }, |
444 | 514 | { |
445 | 515 | "key": "kms_encryption_enabled" |
446 | 516 | }, |
447 | 517 | { |
448 | | - "key": "existing_kms_instance_crn" |
| 518 | + "key": "existing_kms_instance_crn", |
| 519 | + "value_constraints": [ |
| 520 | + { |
| 521 | + "type": "regex", |
| 522 | + "description": "The value provided for 'existing_kms_instance_crn' is not valid.", |
| 523 | + "value": "^__NULL__$|^crn:(.*:){3}(kms|hs-crypto):(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$" |
| 524 | + } |
| 525 | + ] |
449 | 526 | }, |
450 | 527 | { |
451 | 528 | "key": "kms_endpoint_url" |
452 | 529 | }, |
453 | 530 | { |
454 | | - "key": "existing_kms_root_key_crn" |
| 531 | + "key": "existing_kms_root_key_crn", |
| 532 | + "value_constraints": [ |
| 533 | + { |
| 534 | + "type": "regex", |
| 535 | + "description": "The value provided for 'existing_kms_root_key_crn' is not valid.", |
| 536 | + "value": "^__NULL__$|^crn:(.*:){3}(kms|hs-crypto):(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}:key:[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$" |
| 537 | + } |
| 538 | + ] |
455 | 539 | }, |
456 | 540 | { |
457 | 541 | "key": "kms_endpoint_type", |
|
504 | 588 | "key": "enable_collecting_failed_events" |
505 | 589 | }, |
506 | 590 | { |
507 | | - "key": "existing_cos_instance_crn" |
| 591 | + "key": "existing_cos_instance_crn", |
| 592 | + "value_constraints": [ |
| 593 | + { |
| 594 | + "type": "regex", |
| 595 | + "description": "The value provided for 'existing_cos_instance_crn' is not valid.", |
| 596 | + "value": "^crn:(.*:){3}cloud-object-storage:(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$" |
| 597 | + } |
| 598 | + ] |
508 | 599 | }, |
509 | 600 | { |
510 | 601 | "key": "cos_bucket_name" |
|
545 | 636 | ] |
546 | 637 | }, |
547 | 638 | { |
548 | | - "key": "existing_secrets_manager_instance_crn" |
| 639 | + "key": "existing_secrets_manager_instance_crn", |
| 640 | + "value_constraints": [ |
| 641 | + { |
| 642 | + "type": "regex", |
| 643 | + "description": "The value provided for 'existing_secrets_manager_instance_crn' is not valid.", |
| 644 | + "value": "^__NULL__$|^crn:(.*:){3}secrets-manager:(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$" |
| 645 | + } |
| 646 | + ] |
549 | 647 | }, |
550 | 648 | { |
551 | 649 | "key": "existing_secrets_manager_endpoint_type", |
|
0 commit comments