INNER CODE UNIT · JavaScript
findByCategory
serverless/serverless · packages/serverless/lib/plugins/agent/lib/registry/index.js:111
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).
*/
function findByCfnType(cfnType) {
return registryByCfnType.get(cfnType)
}
export {
REGISTRY_ENTRIES,
AWS_SERVICE_ALIASES,
resolveAwsServiceAlias,
findByAwsService,