Skip to content

Commit 4d1ecaf

Browse files
feat: Add regex UI validation (#514)
1 parent e6f58b6 commit 4d1ecaf

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

ibm_catalog.json

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,24 @@
280280
"description": "The pricing plan to use when provisioning a Secrets Manager instance. Possible values: `standard`, `trial`. You can create only one Trial instance of Secrets Manager per account. Before you can create a new Trial instance, you must delete the existing Trial instance and its reclamation. [Learn more](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-create-instance&interface=ui#upgrade-instance-standard)."
281281
},
282282
{
283-
"key": "existing_secrets_manager_instance_crn"
283+
"key": "existing_secrets_manager_instance_crn",
284+
"value_constraints": [
285+
{
286+
"type": "regex",
287+
"description": "The value provided for 'existing_secrets_manager_instance_crn' is not valid.",
288+
"value": "^crn:(.*:){3}secrets-manager:(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$"
289+
}
290+
]
284291
},
285292
{
286-
"key": "existing_secrets_manager_cert_crn"
293+
"key": "existing_secrets_manager_cert_crn",
294+
"value_constraints": [
295+
{
296+
"type": "regex",
297+
"description": "The value provided for 'existing_secrets_manager_cert_crn' is not valid.",
298+
"value": "^__NULL__$|^crn:(.*:){3}secrets-manager:(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}:secret:[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"
299+
}
300+
]
287301
},
288302
{
289303
"key": "root_ca_name",
@@ -411,7 +425,14 @@
411425
"key": "vpn_route_action"
412426
},
413427
{
414-
"key": "existing_vpc_crn"
428+
"key": "existing_vpc_crn",
429+
"value_constraints": [
430+
{
431+
"type": "regex",
432+
"description": "The value provided for 'existing_vpc_crn' is not valid.",
433+
"value": "^crn:(.*:){3}is:(.*:){2}:vpc:[0-9a-z]{4}-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
434+
}
435+
]
415436
},
416437
{
417438
"key": "vpn_zone_1"

0 commit comments

Comments
 (0)