Sha256: 2c7552333d8cdeb350099e419b927890ae92cc636f581f82d3170fe9fec8ea09
Contents?: true
Size: 460 Bytes
Versions: 33
Compression:
Stored size: 460 Bytes
Contents
require 'bundler/setup' require 'cfn_response' require 'jets/internal/app/functions/jets/base_path_mapping' STAGE_NAME = "<%= @stage_name %>" def lambda_handler(event:, context:) cfn = CfnResponse.new(event, context) cfn.response do mapping = BasePathMapping.new(event, STAGE_NAME) case event['RequestType'] when "Create", "Update" mapping.update when "Delete" mapping.delete(true) if mapping.should_delete? end end end
Version data entries
33 entries across 33 versions & 2 rubygems