aws-cloudformation / cloudformation-resource-schema

The CloudFormation Resource Schema defines the shape and semantic for resources provisioned by CloudFormation. It is used by provider developers using the CloudFormation RPDK.
Apache License 2.0
90 stars 38 forks source link

Fixed GetAtt when combining property is in schema #101

Closed cortez7 closed 3 years ago

cortez7 commented 3 years ago

When the schema contains a combining property such as "oneOf", GetAtt calls fail with the error message "Requested attribute [attribute] does not exist in schema for [typeName]".

This PR fixes the issue by changing ResourceTypeSchema's definesProperty method.

Tests

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