INNER CODE UNIT · JavaScript
eventsWithAlias
davidgf/serverless-plugin-canary-deployments · serverless-plugin-canary-deployments.js:225
const eventsWithAlias = functionEventsEntries.map(([logicalName, event]) => {
const evt = replaceAliasStrategy[event.Type](event, functionAlias, functionName)
return { [logicalName]: evt }
})
return eventsWithAlias
}
getEventsFor (functionName) {
const apiGatewayMethods = this.getApiGatewayMethodsFor(functionName)
const apiGatewayV2Methods = this.getApiGatewayV2MethodsFor(functionName)
const apiGatewayV2Authorizers = this.getApiGatewayV2AuthorizersFor(functionName)
const eventSourceMappings = this.getEventSourceMappingsFor(functionName)
const snsTopics = this.getSnsTopicsFor(functionName)
const snsSubscriptions = this.getSnsSubscriptionsFor(functionName)
const s3Events = this.getS3EventsFor(functionName)
const cloudWatchEvents = this.getCloudWatchEventsFor(functionName)
const cloudWatchLogs = this.getCloudWatchLogsFor(functionName)
const iotTopicRules = this.getIotTopicRulesFor(functionName)