|
153 | 153 | }, |
154 | 154 | { |
155 | 155 | "key": "prefix", |
156 | | - "required": true |
| 156 | + "required": true, |
| 157 | + "value_constraints": [ |
| 158 | + { |
| 159 | + "type": "regex", |
| 160 | + "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.", |
| 161 | + "value": "^$|^__NULL__$|^[a-z](?!.*--)(?:[a-z0-9-]{0,14}[a-z0-9])?$" |
| 162 | + } |
| 163 | + ] |
157 | 164 | }, |
158 | 165 | { |
159 | 166 | "key": "key_protect_plan", |
|
197 | 204 | "config_constraints": { |
198 | 205 | "identifier": "rg_name" |
199 | 206 | } |
200 | | - } |
| 207 | + }, |
| 208 | + "default_value": "Default", |
| 209 | + "description": "The name of an existing resource group to provision the resources." |
201 | 210 | }, |
202 | 211 | { |
203 | 212 | "key": "key_protect_instance_name" |
204 | 213 | }, |
205 | 214 | { |
206 | | - "key": "existing_kms_instance_crn" |
| 215 | + "key": "existing_kms_instance_crn", |
| 216 | + "value_constraints": [ |
| 217 | + { |
| 218 | + "type": "regex", |
| 219 | + "description": "The value provided for 'existing_kms_instance_crn' is not valid.", |
| 220 | + "value": "^__NULL__$|^crn:(.*:){3}(kms|hs-crypto):(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$" |
| 221 | + } |
| 222 | + ] |
207 | 223 | }, |
208 | 224 | { |
209 | 225 | "key": "keys", |
|
430 | 446 | }, |
431 | 447 | { |
432 | 448 | "key": "prefix", |
433 | | - "required": true |
| 449 | + "required": true, |
| 450 | + "value_constraints": [ |
| 451 | + { |
| 452 | + "type": "regex", |
| 453 | + "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.", |
| 454 | + "value": "^$|^__NULL__$|^[a-z](?!.*--)(?:[a-z0-9-]{0,14}[a-z0-9])?$" |
| 455 | + } |
| 456 | + ] |
434 | 457 | }, |
435 | 458 | { |
436 | 459 | "key": "key_protect_plan", |
|
456 | 479 | "config_constraints": { |
457 | 480 | "identifier": "rg_name" |
458 | 481 | } |
459 | | - } |
| 482 | + }, |
| 483 | + "default_value": "Default", |
| 484 | + "description": "The name of an existing resource group to provision the resources." |
460 | 485 | }, |
461 | 486 | { |
462 | 487 | "key": "key_protect_instance_name" |
463 | 488 | }, |
464 | 489 | { |
465 | | - "key": "existing_kms_instance_crn" |
| 490 | + "key": "existing_kms_instance_crn", |
| 491 | + "value_constraints": [ |
| 492 | + { |
| 493 | + "type": "regex", |
| 494 | + "description": "The value provided for 'existing_kms_instance_crn' is not valid.", |
| 495 | + "value": "^__NULL__$|^crn:(.*:){3}(kms|hs-crypto):(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$" |
| 496 | + } |
| 497 | + ] |
466 | 498 | }, |
467 | 499 | { |
468 | 500 | "key": "keys", |
|
0 commit comments