INNER CODE UNIT · JavaScript

findByAwsService

serverless/serverless · packages/serverless/lib/plugins/agent/lib/registry/index.js:101

function findByAwsService(token) {
  const canonical = resolveAwsServiceAlias(token)
  return REGISTRY_ENTRIES.filter((entry) => entry.awsService === canonical)
}

/**
 * Looks up every registry entry for a given category flag (e.g.
 * 'functions', 'api', 'events', 'iam', 'storage'). Returns an empty array
 * for unknown/unsupported categories.
 */
function findByCategory(category) {
  return REGISTRY_ENTRIES.filter((entry) => entry.category === category)
}

/**
 * Looks up the single registry entry for a CloudFormation resource type.
 * Returns undefined when the type isn't in the registry (e.g. `other`
 * bucket types, or types not yet wired up).

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…