Method: BasePathMapping#delete
- Defined in:
- lib/jets/internal/app/functions/jets/base_path_mapping.rb
#delete(fail_silently = false) ⇒ Object
41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/jets/internal/app/functions/jets/base_path_mapping.rb', line 41 def delete(fail_silently=false) apigateway.delete_base_path_mapping( domain_name: domain_name, # required base_path: base_path.empty? ? '(none)' : base_path, ) # https://github.com/tongueroo/jets/issues/255 # Used to return: Aws::APIGateway::Errors::NotFoundException # Now returns: Aws::APIGateway::Errors::InternalFailure # So we'll use a more generic error rescue Aws::APIGateway::Errors::ServiceError => e raise(e) unless fail_silently end |