Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-amplify/graphql-transformer-interfaces

Package Overview
Dependencies
Maintainers
10
Versions
322
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-amplify/graphql-transformer-interfaces - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1-no-internal-synth.0

lib/asset-provider.d.ts

196

API.md

@@ -9,18 +9,5 @@ ## API Report File for "@aws-amplify/graphql-transformer-interfaces"

import { BaseDataSource } from 'aws-cdk-lib/aws-appsync';
import { CfnApiKey } from 'aws-cdk-lib/aws-appsync';
import { CfnDataSource } from 'aws-cdk-lib/aws-appsync';
import { CfnDomain } from 'aws-cdk-lib/aws-elasticsearch';
import { CfnEventSourceMapping } from 'aws-cdk-lib/aws-lambda';
import { CfnFunction } from 'aws-cdk-lib/aws-lambda';
import { CfnFunctionConfiguration } from 'aws-cdk-lib/aws-appsync';
import { CfnGraphQLApi } from 'aws-cdk-lib/aws-appsync';
import { CfnGraphQLSchema } from 'aws-cdk-lib/aws-appsync';
import { CfnParameter } from 'aws-cdk-lib';
import { CfnParameterProps } from 'aws-cdk-lib';
import { CfnPolicy } from 'aws-cdk-lib/aws-iam';
import { CfnResolver } from 'aws-cdk-lib/aws-appsync';
import { CfnResource } from 'aws-cdk-lib';
import { CfnRole } from 'aws-cdk-lib/aws-iam';
import { CfnStack } from 'aws-cdk-lib';
import { CfnTable } from 'aws-cdk-lib/aws-dynamodb';
import { Construct } from 'constructs';

@@ -66,22 +53,2 @@ import { DirectiveDefinitionNode } from 'graphql';

// @public (undocumented)
export interface AmplifyApiGraphQlResourceStackTemplate {
// Warning: (ae-forgotten-export) The symbol "AppsyncApiStack" needs to be exported by the entry point index.d.ts
//
// (undocumented)
api?: Partial<AppsyncApiStack>;
// (undocumented)
function?: Partial<FunctionDirectiveStack & AppsyncStackCommon>;
// (undocumented)
http?: Partial<HttpsDirectiveStack & AppsyncStackCommon>;
// (undocumented)
models?: Partial<Record<string, ModelDirectiveStack>>;
// (undocumented)
opensearch?: Partial<OpenSearchDirectiveStack & AppsyncStackCommon>;
// Warning: (ae-forgotten-export) The symbol "PredictionsDirectiveStack" needs to be exported by the entry point index.d.ts
//
// (undocumented)
predictions?: Partial<PredictionsDirectiveStack & AppsyncStackCommon>;
}
// @public (undocumented)
export interface APIIAMResourceProvider {

@@ -164,7 +131,12 @@ // (undocumented)

// @public (undocumented)
export type AppsyncStackCommon = {
resolvers?: Record<string, CfnResolver>;
appsyncFunctions?: Record<string, CfnFunctionConfiguration>;
export type AssetProps = {
readonly fileContent: string;
readonly fileName: string;
};
// @public (undocumented)
export type AssetProvider = {
provide: (scope: Construct, name: string, props: AssetProps) => S3Asset;
};
// Warning: (ae-forgotten-export) The symbol "NoneDataSourceProvider" needs to be exported by the entry point index.d.ts

@@ -188,8 +160,2 @@ //

// @public (undocumented)
export interface DeploymentResources extends ResolversFunctionsAndSchema, NestedStacks {
// (undocumented)
stackMapping: StackMapping;
}
// @public (undocumented)
export interface DynamoDbDataSourceOptions extends DataSourceOptions {

@@ -207,12 +173,2 @@ // (undocumented)

// @public (undocumented)
export interface FunctionDirectiveStack {
// (undocumented)
lambdaDataSource: Record<string, CfnDataSource>;
// (undocumented)
lambdaDataSourceRole: Record<string, CfnRole>;
// (undocumented)
lambdaDataSourceServiceRoleDefaultPolicy: Record<string, CfnPolicy>;
}
// @public (undocumented)
export interface GraphQLAPIProvider extends IConstruct {

@@ -240,12 +196,2 @@ // (undocumented)

// @public (undocumented)
export interface HttpsDirectiveStack {
// (undocumented)
httpDataSourceServiceRole?: Record<string, CfnRole>;
// (undocumented)
httpDataSourceServiceRoleDefaultPolicy?: Record<string, CfnPolicy>;
// (undocumented)
httpsDataSource?: Record<string, CfnDataSource>;
}
// @public (undocumented)
export interface InlineMappingTemplateProvider {

@@ -271,8 +217,3 @@ // (undocumented)

// Warning: (ae-forgotten-export) The symbol "DDBModelDirectiveStack" needs to be exported by the entry point index.d.ts
//
// @public (undocumented)
export type ModelDirectiveStack = AppsyncStackCommon & DDBModelDirectiveStack;
// @public (undocumented)
export type ModelFieldMap = {

@@ -296,34 +237,7 @@ addMappedField: (entry: FieldMapEntry) => ModelFieldMap;

// @public (undocumented)
export interface NestedStacks {
// (undocumented)
rootStack: Template;
// (undocumented)
stackMapping: Record<string, string>;
// (undocumented)
stacks: Record<string, Template>;
}
export type NestedStackProvider = {
provide: (scope: Construct, name: string) => Stack;
};
// @public (undocumented)
export interface OpenSearchDirectiveStack {
// (undocumented)
CloudwatchLogsAccess?: CfnPolicy;
// (undocumented)
OpenSearchAccessIAMRole?: CfnRole;
// (undocumented)
OpenSearchAccessIAMRoleDefaultPolicy?: CfnPolicy;
// (undocumented)
OpenSearchDataSource?: CfnDataSource;
// (undocumented)
OpenSearchDomain?: CfnDomain;
// (undocumented)
OpenSearchModelLambdaMapping?: Record<string, CfnEventSourceMapping>;
// (undocumented)
OpenSearchStreamingLambdaFunction?: CfnFunction;
// (undocumented)
OpenSearchStreamingLambdaIAMRole?: CfnRole;
// (undocumented)
OpenSearchStreamingLambdaIAMRoleDefaultPolicy?: CfnPolicy;
}
// @public (undocumented)
export enum QueryFieldType {

@@ -357,14 +271,9 @@ // (undocumented)

// @public (undocumented)
export interface ResolversFunctionsAndSchema {
// (undocumented)
functions: Record<string, string>;
// (undocumented)
pipelineFunctions: Record<string, string>;
// (undocumented)
resolvers: Record<string, string>;
// (undocumented)
schema: string;
// (undocumented)
userOverriddenSlots: string[];
}
export type S3Asset = {
assetHash: string;
httpUrl: string;
s3BucketName: string;
s3ObjectKey: string;
s3ObjectUrl: string;
};

@@ -398,24 +307,14 @@ // @public (undocumented)

// (undocumented)
addParameter: (name: string, props: CfnParameterProps) => CfnParameter;
// (undocumented)
createStack: (stackName: string) => Stack;
// (undocumented)
getParameter: (name: string) => CfnParameter | void;
getScopeFor: (resourceId: string, defaultStackName?: string) => Construct;
// (undocumented)
getStack: (stackName: string) => Stack;
// (undocumented)
getStackFor: (resourceId: string, defaultStackName?: string) => Stack;
// (undocumented)
hasStack: (stackName: string) => boolean;
// (undocumented)
readonly rootStack: Stack;
readonly scope: Construct;
}
// @public (undocumented)
export interface StackMapping {
// (undocumented)
[resourceId: string]: string;
}
// @public (undocumented)
export enum SubscriptionFieldType {

@@ -431,26 +330,9 @@ // (undocumented)

// @public (undocumented)
export interface Template {
// (undocumented)
AWSTemplateFormatVersion?: string;
// (undocumented)
Conditions?: Record<string, any>;
// (undocumented)
Description?: string;
// (undocumented)
Mappings?: {
[key: string]: {
[key: string]: Record<string, string | number | string[]>;
};
};
// (undocumented)
Metadata?: Record<string, any>;
// (undocumented)
Outputs?: Record<string, any>;
// (undocumented)
Parameters?: Record<string, any>;
// (undocumented)
Resources?: Record<string, any>;
// (undocumented)
Transform?: any;
}
export type SynthParameters = {
amplifyEnvironmentName: string;
apiName: string;
authenticatedUserRoleName?: string;
unauthenticatedUserRoleName?: string;
userPoolId?: string;
};

@@ -461,3 +343,3 @@ // @public (undocumented)

// @public (undocumented)
export type TransformerBeforeStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'modelToDatasourceMap' | 'transformParameters' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'authConfig' | 'stackManager'>;
export type TransformerBeforeStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'modelToDatasourceMap' | 'transformParameters' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'authConfig' | 'stackManager' | 'synthParameters'>;

@@ -561,2 +443,4 @@ // @public (undocumented)

// (undocumented)
synthParameters: SynthParameters;
// (undocumented)
transformParameters: TransformParameters;

@@ -746,3 +630,3 @@ }

// (undocumented)
mapToStack: (stack: Stack) => void;
setScope: (scope: Construct) => void;
// (undocumented)

@@ -816,3 +700,3 @@ synthesize: (context: TransformerContextProvider, api: GraphQLAPIProvider) => void;

// @public (undocumented)
export type TransformerValidationStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'modelToDatasourceMap' | 'output' | 'providerRegistry' | 'dataSources' | 'transformParameters' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'metadata' | 'authConfig' | 'resourceHelper' | 'resolvers' | 'stackManager'>;
export type TransformerValidationStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'modelToDatasourceMap' | 'output' | 'providerRegistry' | 'dataSources' | 'transformParameters' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'metadata' | 'authConfig' | 'resourceHelper' | 'resolvers' | 'stackManager' | 'synthParameters'>;

@@ -822,19 +706,19 @@ // @public (undocumented)

// (undocumented)
addAppSyncFunction: (name: string, requestMappingTemplate: MappingTemplateProvider, responseMappingTemplate: MappingTemplateProvider, dataSourceName: string, stack?: Stack) => AppSyncFunctionConfigurationProvider;
addAppSyncFunction: (name: string, requestMappingTemplate: MappingTemplateProvider, responseMappingTemplate: MappingTemplateProvider, dataSourceName: string, scope?: Construct) => AppSyncFunctionConfigurationProvider;
// (undocumented)
addDynamoDbDataSource(name: string, table: ITable, options?: DynamoDbDataSourceOptions, stack?: Stack): DynamoDbDataSource;
addDynamoDbDataSource(name: string, table: ITable, options?: DynamoDbDataSourceOptions, scope?: Construct): DynamoDbDataSource;
// (undocumented)
addHttpDataSource(name: string, endpoint: string, options?: DataSourceOptions, stack?: Stack): HttpDataSource;
addHttpDataSource(name: string, endpoint: string, options?: DataSourceOptions, scope?: Construct): HttpDataSource;
// (undocumented)
addLambdaDataSource(name: string, lambdaFunction: IFunction, options?: DataSourceOptions, stack?: Stack): LambdaDataSource;
addLambdaDataSource(name: string, lambdaFunction: IFunction, options?: DataSourceOptions, scope?: Construct): LambdaDataSource;
// (undocumented)
addLambdaFunction: (functionName: string, functionKey: string, handlerName: string, filePath: string, runtime: Runtime, layers?: ILayerVersion[], role?: IRole, environment?: {
[key: string]: string;
}, timeout?: Duration, stack?: Stack, vpc?: VpcConfig) => IFunction;
}, timeout?: Duration, scope?: Construct, vpc?: VpcConfig) => IFunction;
// (undocumented)
addNoneDataSource(name: string, options?: DataSourceOptions, stack?: Stack): NoneDataSource;
addNoneDataSource(name: string, options?: DataSourceOptions, scope?: Construct): NoneDataSource;
// (undocumented)
addResolver: (typeName: string, fieldName: string, requestMappingTemplate: MappingTemplateProvider, responseMappingTemplate: MappingTemplateProvider, resolverLogicalId?: string, dataSourceName?: string, pipelineConfig?: string[], stack?: Stack) => CfnResolver;
addResolver: (typeName: string, fieldName: string, requestMappingTemplate: MappingTemplateProvider, responseMappingTemplate: MappingTemplateProvider, resolverLogicalId?: string, dataSourceName?: string, pipelineConfig?: string[], scope?: Construct) => CfnResolver;
// (undocumented)
addSearchableDataSource(name: string, endpoint: string, region: string, options?: SearchableDataSourceOptions, stack?: Stack): BaseDataSource;
addSearchableDataSource(name: string, endpoint: string, region: string, options?: SearchableDataSourceOptions, scope?: Construct): BaseDataSource;
// (undocumented)

@@ -841,0 +725,0 @@ getDataSource: (name: string) => BaseDataSource | void;

@@ -6,2 +6,6 @@ # Change Log

## [2.3.1-no-internal-synth.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@2.3.0...@aws-amplify/graphql-transformer-interfaces@2.3.1-no-internal-synth.0) (2023-08-08)
**Note:** Version bump only for package @aws-amplify/graphql-transformer-interfaces
# [2.3.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@2.2.5...@aws-amplify/graphql-transformer-interfaces@2.3.0) (2023-07-21)

@@ -8,0 +12,0 @@

@@ -6,6 +6,6 @@ export * from './transformer-context';

export { TransformHostProvider, DynamoDbDataSourceOptions } from './transform-host-provider';
export { DeploymentResources, NestedStacks, ResolversFunctionsAndSchema, StackMapping, Template } from './deployment-resources';
export { TransformerLog, TransformerLogLevel } from './transformer-log';
export { AmplifyApiGraphQlResourceStackTemplate, AppsyncStackCommon, FunctionDirectiveStack, HttpsDirectiveStack, ModelDirectiveStack, OpenSearchDirectiveStack, } from './amplify-api-resource-stack-types';
export type { TransformParameters } from './transformer-context/transform-parameters';
export type { NestedStackProvider } from './nested-stack-provider';
export type { AssetProps, AssetProvider, S3Asset } from './asset-provider';
//# sourceMappingURL=index.d.ts.map

@@ -1,2 +0,2 @@

import { Duration, Stack } from 'aws-cdk-lib';
import { Duration } from 'aws-cdk-lib';
import { BaseDataSource, DynamoDbDataSource, GraphqlApiBase, HttpDataSource, LambdaDataSource, NoneDataSource } from 'aws-cdk-lib/aws-appsync';

@@ -7,2 +7,3 @@ import { CfnResolver } from 'aws-cdk-lib/aws-appsync';

import { IRole } from 'aws-cdk-lib/aws-iam';
import { Construct } from 'constructs';
import { AppSyncFunctionConfigurationProvider, DataSourceOptions, SearchableDataSourceOptions, MappingTemplateProvider, VpcConfig } from './graphql-api-provider';

@@ -14,12 +15,12 @@ export interface DynamoDbDataSourceOptions extends DataSourceOptions {

setAPI(api: GraphqlApiBase): void;
addHttpDataSource(name: string, endpoint: string, options?: DataSourceOptions, stack?: Stack): HttpDataSource;
addDynamoDbDataSource(name: string, table: ITable, options?: DynamoDbDataSourceOptions, stack?: Stack): DynamoDbDataSource;
addNoneDataSource(name: string, options?: DataSourceOptions, stack?: Stack): NoneDataSource;
addLambdaDataSource(name: string, lambdaFunction: IFunction, options?: DataSourceOptions, stack?: Stack): LambdaDataSource;
addSearchableDataSource(name: string, endpoint: string, region: string, options?: SearchableDataSourceOptions, stack?: Stack): BaseDataSource;
addAppSyncFunction: (name: string, requestMappingTemplate: MappingTemplateProvider, responseMappingTemplate: MappingTemplateProvider, dataSourceName: string, stack?: Stack) => AppSyncFunctionConfigurationProvider;
addResolver: (typeName: string, fieldName: string, requestMappingTemplate: MappingTemplateProvider, responseMappingTemplate: MappingTemplateProvider, resolverLogicalId?: string, dataSourceName?: string, pipelineConfig?: string[], stack?: Stack) => CfnResolver;
addHttpDataSource(name: string, endpoint: string, options?: DataSourceOptions, scope?: Construct): HttpDataSource;
addDynamoDbDataSource(name: string, table: ITable, options?: DynamoDbDataSourceOptions, scope?: Construct): DynamoDbDataSource;
addNoneDataSource(name: string, options?: DataSourceOptions, scope?: Construct): NoneDataSource;
addLambdaDataSource(name: string, lambdaFunction: IFunction, options?: DataSourceOptions, scope?: Construct): LambdaDataSource;
addSearchableDataSource(name: string, endpoint: string, region: string, options?: SearchableDataSourceOptions, scope?: Construct): BaseDataSource;
addAppSyncFunction: (name: string, requestMappingTemplate: MappingTemplateProvider, responseMappingTemplate: MappingTemplateProvider, dataSourceName: string, scope?: Construct) => AppSyncFunctionConfigurationProvider;
addResolver: (typeName: string, fieldName: string, requestMappingTemplate: MappingTemplateProvider, responseMappingTemplate: MappingTemplateProvider, resolverLogicalId?: string, dataSourceName?: string, pipelineConfig?: string[], scope?: Construct) => CfnResolver;
addLambdaFunction: (functionName: string, functionKey: string, handlerName: string, filePath: string, runtime: Runtime, layers?: ILayerVersion[], role?: IRole, environment?: {
[key: string]: string;
}, timeout?: Duration, stack?: Stack, vpc?: VpcConfig) => IFunction;
}, timeout?: Duration, scope?: Construct, vpc?: VpcConfig) => IFunction;
getDataSource: (name: string) => BaseDataSource | void;

@@ -26,0 +27,0 @@ hasDataSource: (name: string) => boolean;

@@ -10,2 +10,3 @@ export { DataSourceProvider, TransformerDataSourceManagerProvider, AppSyncDataSourceType, DataSourceInstance, } from './transformer-datasource-provider';

export { StackManagerProvider } from './stack-manager-provider';
export { SynthParameters } from './synth-parameters';
//# sourceMappingURL=index.d.ts.map

@@ -1,11 +0,10 @@

import { CfnParameter, CfnParameterProps, Stack } from 'aws-cdk-lib';
import { Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
export interface StackManagerProvider {
readonly rootStack: Stack;
readonly scope: Construct;
getStack: (stackName: string) => Stack;
createStack: (stackName: string) => Stack;
hasStack: (stackName: string) => boolean;
getStackFor: (resourceId: string, defaultStackName?: string) => Stack;
addParameter: (name: string, props: CfnParameterProps) => CfnParameter;
getParameter: (name: string) => CfnParameter | void;
getScopeFor: (resourceId: string, defaultStackName?: string) => Construct;
}
//# sourceMappingURL=stack-manager-provider.d.ts.map

@@ -10,2 +10,3 @@ import { DocumentNode } from 'graphql';

import { TransformerResolversManagerProvider } from './transformer-resolver-provider';
import { SynthParameters } from './synth-parameters';
export interface TransformerContextMetadataProvider {

@@ -33,2 +34,3 @@ set<T>(key: string, value: T): void;

transformParameters: TransformParameters;
synthParameters: SynthParameters;
isProjectUsingDataStore(): boolean;

@@ -39,7 +41,7 @@ getResolverConfig<ResolverConfig>(): ResolverConfig | undefined;

}
export type TransformerBeforeStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'modelToDatasourceMap' | 'transformParameters' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'authConfig' | 'stackManager'>;
export type TransformerBeforeStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'modelToDatasourceMap' | 'transformParameters' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'authConfig' | 'stackManager' | 'synthParameters'>;
export type TransformerSchemaVisitStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'modelToDatasourceMap' | 'output' | 'providerRegistry' | 'transformParameters' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'metadata' | 'authConfig' | 'resourceHelper'>;
export type TransformerValidationStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'modelToDatasourceMap' | 'output' | 'providerRegistry' | 'dataSources' | 'transformParameters' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'metadata' | 'authConfig' | 'resourceHelper' | 'resolvers' | 'stackManager'>;
export type TransformerValidationStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'modelToDatasourceMap' | 'output' | 'providerRegistry' | 'dataSources' | 'transformParameters' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'metadata' | 'authConfig' | 'resourceHelper' | 'resolvers' | 'stackManager' | 'synthParameters'>;
export type TransformerPrepareStepContextProvider = TransformerValidationStepContextProvider;
export type TransformerTransformSchemaStepContextProvider = TransformerValidationStepContextProvider;
//# sourceMappingURL=transformer-context-provider.d.ts.map

@@ -1,2 +0,2 @@

import { Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import { GraphQLAPIProvider, MappingTemplateProvider } from '../graphql-api-provider';

@@ -8,3 +8,3 @@ import { DataSourceProvider } from './transformer-datasource-provider';

synthesize: (context: TransformerContextProvider, api: GraphQLAPIProvider) => void;
mapToStack: (stack: Stack) => void;
setScope: (scope: Construct) => void;
}

@@ -11,0 +11,0 @@ export interface TransformerResolversManagerProvider {

{
"name": "@aws-amplify/graphql-transformer-interfaces",
"version": "2.3.0",
"version": "2.3.1-no-internal-synth.0",
"description": "Amplify GraphQL transformer interface definitions",

@@ -52,3 +52,3 @@ "repository": {

},
"gitHead": "28a89d960eaf3be3b729af567c83442e374e2443"
"gitHead": "30702c5c4cfabbd99cd7cbc74afd667f0a8b0f13"
}

@@ -35,12 +35,5 @@ export * from './transformer-context';

export { TransformHostProvider, DynamoDbDataSourceOptions } from './transform-host-provider';
export { DeploymentResources, NestedStacks, ResolversFunctionsAndSchema, StackMapping, Template } from './deployment-resources';
export { TransformerLog, TransformerLogLevel } from './transformer-log';
export {
AmplifyApiGraphQlResourceStackTemplate,
AppsyncStackCommon,
FunctionDirectiveStack,
HttpsDirectiveStack,
ModelDirectiveStack,
OpenSearchDirectiveStack,
} from './amplify-api-resource-stack-types';
export type { TransformParameters } from './transformer-context/transform-parameters';
export type { NestedStackProvider } from './nested-stack-provider';
export type { AssetProps, AssetProvider, S3Asset } from './asset-provider';

@@ -1,2 +0,2 @@

import { Duration, Stack } from 'aws-cdk-lib';
import { Duration } from 'aws-cdk-lib';
import {

@@ -14,2 +14,3 @@ BaseDataSource,

import { IRole } from 'aws-cdk-lib/aws-iam';
import { Construct } from 'constructs';
import {

@@ -33,6 +34,6 @@ AppSyncFunctionConfigurationProvider,

addHttpDataSource(name: string, endpoint: string, options?: DataSourceOptions, stack?: Stack): HttpDataSource;
addDynamoDbDataSource(name: string, table: ITable, options?: DynamoDbDataSourceOptions, stack?: Stack): DynamoDbDataSource;
addNoneDataSource(name: string, options?: DataSourceOptions, stack?: Stack): NoneDataSource;
addLambdaDataSource(name: string, lambdaFunction: IFunction, options?: DataSourceOptions, stack?: Stack): LambdaDataSource;
addHttpDataSource(name: string, endpoint: string, options?: DataSourceOptions, scope?: Construct): HttpDataSource;
addDynamoDbDataSource(name: string, table: ITable, options?: DynamoDbDataSourceOptions, scope?: Construct): DynamoDbDataSource;
addNoneDataSource(name: string, options?: DataSourceOptions, scope?: Construct): NoneDataSource;
addLambdaDataSource(name: string, lambdaFunction: IFunction, options?: DataSourceOptions, scope?: Construct): LambdaDataSource;
addSearchableDataSource(

@@ -43,3 +44,3 @@ name: string,

options?: SearchableDataSourceOptions,
stack?: Stack,
scope?: Construct,
): BaseDataSource;

@@ -52,3 +53,3 @@

dataSourceName: string,
stack?: Stack,
scope?: Construct,
) => AppSyncFunctionConfigurationProvider;

@@ -64,3 +65,3 @@

pipelineConfig?: string[],
stack?: Stack,
scope?: Construct,
) => CfnResolver;

@@ -78,3 +79,3 @@

timeout?: Duration,
stack?: Stack,
scope?: Construct,
vpc?: VpcConfig,

@@ -81,0 +82,0 @@ ) => IFunction;

@@ -23,1 +23,2 @@ export {

export { StackManagerProvider } from './stack-manager-provider';
export { SynthParameters } from './synth-parameters';

@@ -1,11 +0,10 @@

import { CfnParameter, CfnParameterProps, Stack } from 'aws-cdk-lib';
import { Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
export interface StackManagerProvider {
readonly rootStack: Stack;
readonly scope: Construct;
getStack: (stackName: string) => Stack;
createStack: (stackName: string) => Stack;
hasStack: (stackName: string) => boolean;
getStackFor: (resourceId: string, defaultStackName?: string) => Stack;
addParameter: (name: string, props: CfnParameterProps) => CfnParameter;
getParameter: (name: string) => CfnParameter | void;
getScopeFor: (resourceId: string, defaultStackName?: string) => Construct;
}

@@ -10,2 +10,3 @@ import { DocumentNode } from 'graphql';

import { TransformerResolversManagerProvider } from './transformer-resolver-provider';
import { SynthParameters } from './synth-parameters';

@@ -35,2 +36,3 @@ export interface TransformerContextMetadataProvider {

transformParameters: TransformParameters;
synthParameters: SynthParameters;

@@ -52,2 +54,3 @@ isProjectUsingDataStore(): boolean;

| 'stackManager'
| 'synthParameters'
>;

@@ -84,2 +87,3 @@

| 'stackManager'
| 'synthParameters'
>;

@@ -86,0 +90,0 @@

@@ -1,2 +0,2 @@

import { Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import { GraphQLAPIProvider, MappingTemplateProvider } from '../graphql-api-provider';

@@ -14,3 +14,3 @@ import { DataSourceProvider } from './transformer-datasource-provider';

synthesize: (context: TransformerContextProvider, api: GraphQLAPIProvider) => void;
mapToStack: (stack: Stack) => void;
setScope: (scope: Construct) => void;
}

@@ -17,0 +17,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc