Remove pulumi/coconut#141 workaround
@@ -79,11 +79,7 @@ export class API {
version: "1.0",
},
paths: {
- },
- };
- // BUGBUG[pulumi/coconut#141]: this property assignment should become part of the above object literal when
- // we support computed properties.
- body.paths[this.path] = {
+ [this.path]: {
"x-amazon-apigateway-any-method": {
responses: {},
"x-amazon-apigateway-integration": {
@@ -92,6 +88,8 @@ export class API {
uri: runtime.aws.getLambdaAPIInvokeURI(lambdaFunc),
},
},
+ },
+ },
};
// Create a Rest API at the desired path with a single deployment / stage.
