Fixed validation on custom-resource in applicationautoscaling (#4026)

* Added ResourceTypeExceptions

* Added test for custom-resource

Co-authored-by: Phil Sheets <p.sheets@fetchrewards.com>
This commit is contained in:
psheets 2021-06-23 11:57:09 -04:00 committed by GitHub
commit b9a42816bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 29 additions and 15 deletions

View file

@ -244,6 +244,11 @@ def test_register_scalable_target_resource_id_variations():
"keyspace/mykeyspace/table/mytable",
"cassandra:table:ReadCapacityUnits",
),
(
"custom-resource",
"https://test-endpoint.amazon.com/ScalableDimension/test-resource",
"custom-resource:ResourceType:Property",
),
]
client = boto3.client("application-autoscaling", region_name=DEFAULT_REGION)