Skip to content

Commit

Permalink
update boto scripts to have upper exc
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong committed Nov 26, 2024
1 parent 12c214b commit f712484
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
15 changes: 6 additions & 9 deletions scripts/boto/update_schemas_from_boto.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
case_insensitive_services = [
"batch",
]
upper_case_paths = {
"ses": ["/definitions/EventDestination/properties/MatchingEventTypes/items"]
}


def configure_logging():
Expand Down Expand Up @@ -88,15 +91,9 @@ def build_resource_type_patches(
)
continue
if value:
if (
path
== (
"/definitions/EventDestination/"
"properties/MatchingEventTypes/items"
)
and patch.source[0] == "ses"
):
value = [v.upper() for v in value]
if patch.source[0] in upper_case_paths:
if path in upper_case_paths[patch.source[0]]:
value = [v.upper() for v in value]
if patch.source[0] in case_insensitive_services and field == "enum":
field = "enumCaseInsensitive"
value = [v.lower() for v in value]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@
"insertionOrder": false,
"items": {
"enum": [
"bounce",
"click",
"complaint",
"delivery",
"open",
"reject",
"renderingFailure",
"send"
"BOUNCE",
"CLICK",
"COMPLAINT",
"DELIVERY",
"OPEN",
"REJECT",
"RENDERINGFAILURE",
"SEND"
],
"type": "string"
},
Expand Down

0 comments on commit f712484

Please sign in to comment.