@aws-amplify/graphql-transformer-core
Version:
A framework to transform from GraphQL SDL to AWS CloudFormation.
48 lines • 1.4 kB
TypeScript
export interface TransformMigrationConfig {
V1?: {
Resources: string[];
};
}
export declare const enum ConflictHandlerType {
OPTIMISTIC = "OPTIMISTIC_CONCURRENCY",
AUTOMERGE = "AUTOMERGE",
LAMBDA = "LAMBDA"
}
export type ConflictDetectionType = 'VERSION' | 'NONE';
export type SyncConfigOptimistic = {
ConflictDetection: ConflictDetectionType;
ConflictHandler: ConflictHandlerType.OPTIMISTIC;
};
export type SyncConfigServer = {
ConflictDetection: ConflictDetectionType;
ConflictHandler: ConflictHandlerType.AUTOMERGE;
};
export type SyncConfigLambda = {
ConflictDetection: ConflictDetectionType;
ConflictHandler: ConflictHandlerType.LAMBDA;
LambdaConflictHandler: LambdaConflictHandler;
};
export type LambdaConflictHandler = {
name: string;
region?: string;
lambdaArn?: any;
};
export type SyncConfig = SyncConfigOptimistic | SyncConfigServer | SyncConfigLambda;
export type ResolverConfig = {
project?: SyncConfig;
models?: Record<string, SyncConfig>;
};
export interface TransformConfig {
StackMapping?: {
[resourceId: string]: string;
};
TransformerOptions?: {
[transformer: string]: {
[option: string]: any;
};
};
transformers?: string[];
NodeToNodeEncryption?: boolean;
DisableResolverDeduping?: boolean;
}
//# sourceMappingURL=transformer-config.d.ts.map