UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

15 lines (14 loc) 798 B
import { IGraphQLApiRef, IApiRef, IFunctionConfigurationRef } from '../../../interfaces/generated/aws-appsync-interfaces.generated'; import { IApi } from '../api-base'; import { IGraphqlApi } from '../graphqlapi-base'; /** * Converts an IGraphQLApiRef to IGraphqlApi, validating that it implements the full interface */ export declare function toIGraphqlApi(api: IGraphQLApiRef): IGraphqlApi; /** * Converts an IApiRef to IApi, validating that it implements the full interface */ export declare function toIApi(api: IApiRef): IApi; export declare function extractApiIdFromApiRef(apiRef: IApiRef): string; export declare function extractApiIdFromGraphQLApiRef(apiRef: IGraphQLApiRef): string; export declare function extractFunctionIdFromFunctionRef(funcRef: IFunctionConfigurationRef): string;