import {writeFileSync} from 'fs'; import {resolve} from 'path'; const clients = require('../clients/all'); const metadata = require('../apis/metadata'); const api_loader = require('../lib/api_loader'); writeFileSync( resolve(__dirname, '..', 'SERVICES.md'), Object.keys(clients).reduce((serviceTable, clientId): string => { const cid = clientId.toLowerCase(); return serviceTable + Object.keys(api_loader.services[cid]).reverse() .map((version: string): string => { const model = api_loader(cid, version); return `${model.metadata.serviceFullName} | AWS.${clientId} | ${version} | ${metadata[cid].cors === true ? ':tada:' : ''} |`; }).join("\n") + "\n"; }, `The SDK currently supports the following services:

Note: Although all services are supported in the browser version of the SDK, not all of the services are available in the default hosted build (using the script tag provided above). Instructions on how to build a custom version of the SDK with individual services are provided in the "Building the SDK for Browsers" section of the SDK Developer Guide.

Service Name | Class Name | API Version | Allows CORS | ------------ | ---------- | ----------- | ----------- | `));