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

Version Path
jets-3.2.1 lib/jets/internal/app/functions/jets/base_path.rb
jets.benforeva-3.0.17.pre.mount.pre.fix lib/jets/internal/app/functions/jets/base_path.rb
jets-3.2.0 lib/jets/internal/app/functions/jets/base_path.rb
jets-3.1.5 lib/jets/internal/app/functions/jets/base_path.rb
jets-3.1.4 lib/jets/internal/app/functions/jets/base_path.rb
jets-3.1.3 lib/jets/internal/app/functions/jets/base_path.rb
jets-3.1.2 lib/jets/internal/app/functions/jets/base_path.rb
jets-3.1.1 lib/jets/internal/app/functions/jets/base_path.rb
jets-3.1.0 lib/jets/internal/app/functions/jets/base_path.rb
jets-3.0.23 lib/jets/internal/app/functions/jets/base_path.rb
jets-3.0.22 lib/jets/internal/app/functions/jets/base_path.rb
jets-3.0.21 lib/jets/internal/app/functions/jets/base_path.rb
jets-3.0.20 lib/jets/internal/app/functions/jets/base_path.rb
jets-3.0.19 lib/jets/internal/app/functions/jets/base_path.rb
jets-3.0.18 lib/jets/internal/app/functions/jets/base_path.rb
jets-3.0.17 lib/jets/internal/app/functions/jets/base_path.rb
jets-3.0.16 lib/jets/internal/app/functions/jets/base_path.rb
jets-3.0.15 lib/jets/internal/app/functions/jets/base_path.rb
jets-3.0.14 lib/jets/internal/app/functions/jets/base_path.rb
jets-3.0.13 lib/jets/internal/app/functions/jets/base_path.rb