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
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
minimal schema, schema with oneOf, schema with anyOf, schema with allOf
checks that definesProperty correctly returns true or false depending on the whether the property exists
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
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.