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

@ -2105,7 +2105,7 @@ class SecurityGroup(TaggedEC2Resource, CloudFormationModel):
security_group.delete(region_name)
def delete(self, region_name):
""" Not exposed as part of the ELB API - used for CloudFormation. """
"""Not exposed as part of the ELB API - used for CloudFormation."""
self.ec2_backend.delete_security_group(group_id=self.id)
@property