concept link in category aws

appears as: link, links, links
AI as a Service: Serverless machine learning with AWS

This is an excerpt from Manning's book AI as a Service: Serverless machine learning with AWS.

Your domain is now registered, but you haven’t told it what to do with incoming requests. Route 53 will automatically create a Hosted Zone for your registered domain. Click Hosted Zones in the Route 53 section of the Console and follow the link to the new hosted zone. You will find yourself on a page with two pre-created record sets:

const BUCKET_ROOT = '<YOUR BUCKET URL>'                            #1
const API_ROOT = 'https://chapter2api.<YOUR CUSTOM DOMAIN>/api/'   #2
 
function renderUrlList () {
  $.getJSON(API_ROOT + 'url/list', function (body) {
    ...                                                            #3
  })
}
 
function renderUrlDetail (url) {
  let list = ''
  let output = ''
  let wclist = []
 
  $.getJSON(API_ROOT + 'image/list?url=' + url, function (data) {
    ...                                                            #4
  })
}
 
 
$(function () {
  renderUrlList()
 
  $('#submit-url-button').on('click', function (e) {
    e.preventDefault()
    $.ajax({url: API_ROOT + 'url/analyze',                         #5
      type: 'post',
      data: JSON.stringify({url: $('#target-url').val()}),
      dataType: 'json',
      contentType: 'application/json',
      success: (data, stat) => {
      }
    })
  })
})

No further configuration is required. The default region is eu-west-1. If you want to specify a different region, provide it using the --region argument to the serverless deploy command: