aws-cloudformation / cloudformation-cli

The CloudFormation Provider Development Toolkit allows you to author your own resource providers and modules that can be used by CloudFormation.
Apache License 2.0
316 stars 157 forks source link

Validate typename prefix is valid when creating ListType request whil… #1022

Closed Brianwithay21 closed 9 months ago

Brianwithay21 commented 9 months ago

…e resolving hook target names

Issue #, if available:

Description of changes: Updated the TypeNameResolver to validate that the type name prefix used with the TypeFilters field is correct and matches expected regex for parameter

Error message:

botocore.exceptions.ClientError: An error occurred (ValidationError) when calling the ListTypes operation: 1 validation error detected: Value 'A' at 'filters.typeNamePrefix' failed to satisfy constraint: Member must satisfy regular expression pattern: ([A-Za-z0-9]{2,64}::){0,2}([A-Za-z0-9]{2,64}:?){0,1}(:[A-Za-z0-9:]{2,64}){0,1}

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.