|
131 | 131 | }, |
132 | 132 | { |
133 | 133 | "key": "prefix", |
134 | | - "required": true |
| 134 | + "required": true, |
| 135 | + "value_constraints": [ |
| 136 | + { |
| 137 | + "type": "regex", |
| 138 | + "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.", |
| 139 | + "value": "^$|^__NULL__$|^[a-z](?!.*--)(?:[a-z0-9-]{0,14}[a-z0-9])?$" |
| 140 | + } |
| 141 | + ] |
135 | 142 | }, |
136 | 143 | { |
137 | 144 | "key": "service_plan", |
|
247 | 254 | "key": "kms_encryption_enabled" |
248 | 255 | }, |
249 | 256 | { |
250 | | - "key": "existing_kms_instance_crn" |
| 257 | + "key": "existing_kms_instance_crn", |
| 258 | + "value_constraints": [ |
| 259 | + { |
| 260 | + "type": "regex", |
| 261 | + "description": "The value provided for 'existing_kms_instance_crn' is not valid.", |
| 262 | + "value": "^__NULL__$|^crn:(.*:){3}(kms|hs-crypto):(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$" |
| 263 | + } |
| 264 | + ] |
251 | 265 | }, |
252 | 266 | { |
253 | | - "key": "existing_secrets_manager_kms_key_crn" |
| 267 | + "key": "existing_secrets_manager_kms_key_crn", |
| 268 | + "value_constraints": [ |
| 269 | + { |
| 270 | + "type": "regex", |
| 271 | + "description": "The value provided for 'existing_secrets_manager_kms_key_crn' is not valid.", |
| 272 | + "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}$" |
| 273 | + } |
| 274 | + ] |
254 | 275 | }, |
255 | 276 | { |
256 | 277 | "key": "skip_secrets_manager_kms_iam_auth_policy" |
|
286 | 307 | "key": "event_notifications_reply_to_email" |
287 | 308 | }, |
288 | 309 | { |
289 | | - "key": "existing_event_notifications_instance_crn" |
| 310 | + "key": "existing_event_notifications_instance_crn", |
| 311 | + "value_constraints": [ |
| 312 | + { |
| 313 | + "type": "regex", |
| 314 | + "description": "The value provided for 'existing_event_notifications_instance_crn' is not valid.", |
| 315 | + "value": "^__NULL__$|^crn:(.*:){3}event-notifications:(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$" |
| 316 | + } |
| 317 | + ] |
290 | 318 | }, |
291 | 319 | { |
292 | 320 | "key": "skip_secrets_manager_event_notifications_iam_auth_policy" |
|
313 | 341 | } |
314 | 342 | }, |
315 | 343 | { |
316 | | - "key": "existing_secrets_manager_crn" |
| 344 | + "key": "existing_secrets_manager_crn", |
| 345 | + "value_constraints": [ |
| 346 | + { |
| 347 | + "type": "regex", |
| 348 | + "description": "The value provided for 'existing_secrets_manager_crn' is not valid.", |
| 349 | + "value": "^__NULL__$|^crn:(.*:){3}secrets-manager:(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$" |
| 350 | + } |
| 351 | + ] |
317 | 352 | } |
318 | 353 | ], |
319 | 354 | "iam_permissions": [ |
|
638 | 673 | }, |
639 | 674 | { |
640 | 675 | "key": "prefix", |
641 | | - "required": true |
| 676 | + "required": true, |
| 677 | + "value_constraints": [ |
| 678 | + { |
| 679 | + "type": "regex", |
| 680 | + "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.", |
| 681 | + "value": "^$|^__NULL__$|^[a-z](?!.*--)(?:[a-z0-9-]{0,14}[a-z0-9])?$" |
| 682 | + } |
| 683 | + ] |
642 | 684 | }, |
643 | 685 | { |
644 | 686 | "key": "service_plan", |
|
656 | 698 | }, |
657 | 699 | { |
658 | 700 | "key": "existing_kms_instance_crn", |
659 | | - "required": true |
| 701 | + "required": true, |
| 702 | + "value_constraints": [ |
| 703 | + { |
| 704 | + "type": "regex", |
| 705 | + "description": "The value provided for 'existing_kms_instance_crn' is not valid.", |
| 706 | + "value": "^__NULL__$|^crn:(.*:){3}(kms|hs-crypto):(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$" |
| 707 | + } |
| 708 | + ] |
660 | 709 | }, |
661 | 710 | { |
662 | 711 | "key": "existing_resource_group_name", |
|
687 | 736 | "key": "skip_secrets_manager_iam_auth_policy" |
688 | 737 | }, |
689 | 738 | { |
690 | | - "key": "existing_secrets_manager_kms_key_crn" |
| 739 | + "key": "existing_secrets_manager_kms_key_crn", |
| 740 | + "value_constraints": [ |
| 741 | + { |
| 742 | + "type": "regex", |
| 743 | + "description": "The value provided for 'existing_secrets_manager_kms_key_crn' is not valid.", |
| 744 | + "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}$" |
| 745 | + } |
| 746 | + ] |
691 | 747 | }, |
692 | 748 | { |
693 | 749 | "key": "skip_secrets_manager_kms_iam_auth_policy" |
|
719 | 775 | "key": "event_notifications_reply_to_email" |
720 | 776 | }, |
721 | 777 | { |
722 | | - "key": "existing_event_notifications_instance_crn" |
| 778 | + "key": "existing_event_notifications_instance_crn", |
| 779 | + "value_constraints": [ |
| 780 | + { |
| 781 | + "type": "regex", |
| 782 | + "description": "The value provided for 'existing_event_notifications_instance_crn' is not valid.", |
| 783 | + "value": "^__NULL__$|^crn:(.*:){3}event-notifications:(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$" |
| 784 | + } |
| 785 | + ] |
723 | 786 | }, |
724 | 787 | { |
725 | 788 | "key": "skip_secrets_manager_event_notifications_iam_auth_policy" |
|
746 | 809 | } |
747 | 810 | }, |
748 | 811 | { |
749 | | - "key": "existing_secrets_manager_crn" |
| 812 | + "key": "existing_secrets_manager_crn", |
| 813 | + "value_constraints": [ |
| 814 | + { |
| 815 | + "type": "regex", |
| 816 | + "description": "The value provided for 'existing_secrets_manager_crn' is not valid.", |
| 817 | + "value": "^__NULL__$|^crn:(.*:){3}secrets-manager:(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$" |
| 818 | + } |
| 819 | + ] |
750 | 820 | } |
751 | 821 | ], |
752 | 822 | "iam_permissions": [ |
|
0 commit comments