pulumi / pulumi-cdk

Pulumi/CDK Interop Library
Apache License 2.0
61 stars 5 forks source link

Automatically map properties with Json types #127

Closed corymhall closed 1 month ago

corymhall commented 4 months ago

Hello!

Issue details

When we map the CloudFormation resources to the aws-native resources we have to manually map any resource that has any properties that are Json type. For example the AWS::S3::AccessPoint resource has a Policy property that accepts Json.

We need a way of knowing that this property is a json property and if it is then don't transform any of the Json keys.

It's possible that we could pull this information from the aws-native schema

"aws-native:s3:AccessPoint": {
            "description": "The AWS::S3::AccessPoint resource is an Amazon S3 resource type that you can use to access buckets.",
            "properties": {
                "policy": {
                    "$ref": "pulumi.json#/Any",
                    "description": "The Access Point Policy you want to apply to this access point.\n\nSearch the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::S3::AccessPoint` for more information about the expected schema for this property."
                },
},

Affected area/feature