-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: correctly normalize json types (#147)
Some properties in aws-native are Json types, meaning that their values are sent to CloudControl as is. For all other types we do some conversion between the CloudControl type and the pulumi type. An example of this is any policy documents, such as the `AWS::S3::AccessPoint.Policy` property. The pulumi type is `pulumi.json#/Any`. In the below example, you can see the property keys within `policy` have their first character uppercase. ```ts new aws.s3.AccessPoint('access-point', { policy: { Version: '2012-10-17', Statement: [ { Action: ['s3:GetObject'], ... } ] } }); ``` In order to handle these types in the `normalize` function I've added a utility to parse the aws-native `metadata.json` schema and lookup the types. I've also removed the `cfn` mappings that exist in order to handle the json mappings and the existing tests cover it. closes #127
- Loading branch information
Showing
13 changed files
with
215,134 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,4 @@ export * from './output'; | |
|
||
import * as interop from './interop'; | ||
export { interop }; | ||
export * from './types'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.