Created
January 7, 2019 22:37
-
-
Save robzhu/2714d1c5183be9e620beba8b0d567544 to your computer and use it in GitHub Desktop.
aws-sdk patch for WebSocket API
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
require('aws-sdk/lib/node_loader'); | |
var AWS = require('aws-sdk/lib/core'); | |
var Service = AWS.Service; | |
var apiLoader = AWS.apiLoader; | |
apiLoader.services['apigatewaymanagementapi'] = {}; | |
AWS.ApiGatewayManagementApi = Service.defineService('apigatewaymanagementapi', ['2018-11-29']); | |
Object.defineProperty(apiLoader.services['apigatewaymanagementapi'], '2018-11-29', { | |
get: function get() { | |
var model = { | |
"metadata": { | |
"apiVersion": "2018-11-29", | |
"endpointPrefix": "execute-api", | |
"signingName": "execute-api", | |
"serviceFullName": "AmazonApiGatewayManagementApi", | |
"serviceId": "ApiGatewayManagementApi", | |
"protocol": "rest-json", | |
"jsonVersion": "1.1", | |
"uid": "apigatewaymanagementapi-2018-11-29", | |
"signatureVersion": "v4" | |
}, | |
"operations": { | |
"PostToConnection": { | |
"http": { | |
"requestUri": "/@connections/{connectionId}", | |
"responseCode": 200 | |
}, | |
"input": { | |
"type": "structure", | |
"members": { | |
"Data": { | |
"type": "blob" | |
}, | |
"ConnectionId": { | |
"location": "uri", | |
"locationName": "connectionId" | |
} | |
}, | |
"required": [ | |
"ConnectionId", | |
"Data" | |
], | |
"payload": "Data" | |
} | |
} | |
}, | |
"shapes": {} | |
} | |
model.paginators = { | |
"pagination": {} | |
} | |
return model; | |
}, | |
enumerable: true, | |
configurable: true | |
}); | |
module.exports = AWS.ApiGatewayManagementApi; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment