import { SpecDatabase } from '@aws-cdk/service-spec-types'; import { ProblemReport } from '../report'; import { SamTemplateSchema } from '../types'; export interface SamResourcesOptions { readonly db: SpecDatabase; readonly samSchema: SamTemplateSchema; readonly report: ProblemReport; } /** * Read SAM resources from a JSON schema that specifies an entire CloudFormation template * * We do this by finding the type definitions for AWS::Serverless::* resources * and converting them into something that looks like the CloudFormation Registry Schema * and reusing the loader function for that. */ export declare class SamResources { private readonly options; private readonly resolve; private readonly regions; private readonly db; private readonly defaultTransform; constructor(options: SamResourcesOptions); import(): void; private samService; private findSamResources; /** * Return the resource type of the resource schema, or undefined * * The schema definition here will represent a possible resource with a * fixed Type. For example: * * ``` * "Type": { * "enum": ["AWS::ACMPCA::Certificate"], * "type": "string" * } * ``` */ private resourceType; private resourceDefinitionToRegistrySchema; private cloudFormationTransform; }