@aws-amplify/graphql-transformer-interfaces
Advanced tools
Comparing version 3.3.0-amplify-table-preview.0 to 3.3.0-construct-publish-test.0
29
API.md
@@ -158,2 +158,18 @@ ## API Report File for "@aws-amplify/graphql-transformer-interfaces" | ||
// @public (undocumented) | ||
export type DataSourceProvisionStrategy = DynamoDBProvisionStrategy; | ||
// @public (undocumented) | ||
export interface DataSourceType { | ||
// (undocumented) | ||
dbType: DBType; | ||
// (undocumented) | ||
provisionDB: boolean; | ||
// (undocumented) | ||
provisionStrategy: DataSourceProvisionStrategy; | ||
} | ||
// @public (undocumented) | ||
export type DBType = 'MySQL' | 'DDB'; | ||
// @public (undocumented) | ||
export interface DynamoDbDataSourceOptions extends DataSourceOptions { | ||
@@ -165,2 +181,10 @@ // (undocumented) | ||
// @public (undocumented) | ||
export const enum DynamoDBProvisionStrategy { | ||
// (undocumented) | ||
AMPLIFY_TABLE = "AMPLIFY_TABLE", | ||
// (undocumented) | ||
DEFAULT = "DEFAULT" | ||
} | ||
// @public (undocumented) | ||
export type FieldMapEntry = { | ||
@@ -421,6 +445,4 @@ originalFieldName: string; | ||
metadata: TransformerContextMetadataProvider; | ||
// Warning: (ae-forgotten-export) The symbol "DatasourceType" needs to be exported by the entry point index.d.ts | ||
// | ||
// (undocumented) | ||
modelToDatasourceMap: Map<string, DatasourceType>; | ||
modelToDatasourceMap: Map<string, DataSourceType>; | ||
// (undocumented) | ||
@@ -744,3 +766,2 @@ output: TransformerContextOutputProvider; | ||
sandboxModeEnabled: boolean; | ||
useAmplifyManagedTableResources: boolean; | ||
useSubUsernameForDefaultIdentityClaim: boolean; | ||
@@ -747,0 +768,0 @@ populateOwnerFieldForStaticGroupAuth: boolean; |
@@ -6,8 +6,14 @@ # Change Log | ||
# [3.3.0-amplify-table-preview.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@3.2.1...@aws-amplify/graphql-transformer-interfaces@3.3.0-amplify-table-preview.0) (2023-10-12) | ||
# [3.3.0-construct-publish-test.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@3.2.2...@aws-amplify/graphql-transformer-interfaces@3.3.0-construct-publish-test.0) (2023-11-08) | ||
### Features | ||
- bootstrap for adding amplify managed table ([#1849](https://github.com/aws-amplify/amplify-category-api/issues/1849)) ([d7d6740](https://github.com/aws-amplify/amplify-category-api/commit/d7d6740e7bc5291bc42eaefe208c0a5886b8a718)) | ||
- add managed table support in API construct ([#2024](https://github.com/aws-amplify/amplify-category-api/issues/2024)) ([96a0d94](https://github.com/aws-amplify/amplify-category-api/commit/96a0d94fa872a5329da120f53be139833449b815)), closes [#1849](https://github.com/aws-amplify/amplify-category-api/issues/1849) [#1903](https://github.com/aws-amplify/amplify-category-api/issues/1903) [#1940](https://github.com/aws-amplify/amplify-category-api/issues/1940) [#1971](https://github.com/aws-amplify/amplify-category-api/issues/1971) [#1973](https://github.com/aws-amplify/amplify-category-api/issues/1973) | ||
## [3.2.2](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@3.2.1...@aws-amplify/graphql-transformer-interfaces@3.2.2) (2023-11-02) | ||
### Bug Fixes | ||
- pass in and use correct lambda arn for lambdaauthorizers ([#2007](https://github.com/aws-amplify/amplify-category-api/issues/2007)) ([4114411](https://github.com/aws-amplify/amplify-category-api/commit/4114411ba6d086d46ac0e9967139cb287e3fc22b)) | ||
## [3.2.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@3.2.0...@aws-amplify/graphql-transformer-interfaces@3.2.1) (2023-10-05) | ||
@@ -14,0 +20,0 @@ |
@@ -47,2 +47,3 @@ import { CfnResource, IAsset } from 'aws-cdk-lib'; | ||
lambdaFunction: string; | ||
lambdaArn?: string; | ||
ttlSeconds?: number; | ||
@@ -49,0 +50,0 @@ } |
@@ -1,2 +0,2 @@ | ||
export { DataSourceProvider, TransformerDataSourceManagerProvider, AppSyncDataSourceType, DataSourceInstance, } from './transformer-datasource-provider'; | ||
export { DataSourceProvider, TransformerDataSourceManagerProvider, AppSyncDataSourceType, DataSourceInstance, DataSourceType, DBType, DataSourceProvisionStrategy, DynamoDBProvisionStrategy, } from './transformer-datasource-provider'; | ||
export { TransformerContextOutputProvider } from './transformer-context-output-provider'; | ||
@@ -3,0 +3,0 @@ export { TransformerProviderRegistry } from './transformer-provider-registry'; |
@@ -17,6 +17,7 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AppSyncDataSourceType = void 0; | ||
exports.DynamoDBProvisionStrategy = exports.AppSyncDataSourceType = void 0; | ||
var transformer_datasource_provider_1 = require("./transformer-datasource-provider"); | ||
Object.defineProperty(exports, "AppSyncDataSourceType", { enumerable: true, get: function () { return transformer_datasource_provider_1.AppSyncDataSourceType; } }); | ||
Object.defineProperty(exports, "DynamoDBProvisionStrategy", { enumerable: true, get: function () { return transformer_datasource_provider_1.DynamoDBProvisionStrategy; } }); | ||
__exportStar(require("./resource-resource-provider"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -6,3 +6,2 @@ export type TransformParameters = { | ||
sandboxModeEnabled: boolean; | ||
useAmplifyManagedTableResources: boolean; | ||
useSubUsernameForDefaultIdentityClaim: boolean; | ||
@@ -9,0 +8,0 @@ populateOwnerFieldForStaticGroupAuth: boolean; |
import { DocumentNode } from 'graphql'; | ||
import { AppSyncAuthConfiguration, GraphQLAPIProvider, RDSLayerMapping, VpcConfig } from '../graphql-api-provider'; | ||
import { TransformerDataSourceManagerProvider, DatasourceType } from './transformer-datasource-provider'; | ||
import { TransformerDataSourceManagerProvider, DataSourceType } from './transformer-datasource-provider'; | ||
import { TransformerProviderRegistry } from './transformer-provider-registry'; | ||
@@ -25,3 +25,3 @@ import { TransformerContextOutputProvider } from './transformer-context-output-provider'; | ||
inputDocument: DocumentNode; | ||
modelToDatasourceMap: Map<string, DatasourceType>; | ||
modelToDatasourceMap: Map<string, DataSourceType>; | ||
datasourceSecretParameterLocations: Map<string, TransformerSecrets>; | ||
@@ -28,0 +28,0 @@ output: TransformerContextOutputProvider; |
@@ -26,6 +26,12 @@ import { BackedDataSource, HttpDataSource } from 'aws-cdk-lib/aws-appsync'; | ||
export type DBType = 'MySQL' | 'DDB'; | ||
export interface DatasourceType { | ||
export declare const enum DynamoDBProvisionStrategy { | ||
DEFAULT = "DEFAULT", | ||
AMPLIFY_TABLE = "AMPLIFY_TABLE" | ||
} | ||
export type DataSourceProvisionStrategy = DynamoDBProvisionStrategy; | ||
export interface DataSourceType { | ||
dbType: DBType; | ||
provisionDB: boolean; | ||
provisionStrategy: DataSourceProvisionStrategy; | ||
} | ||
//# sourceMappingURL=transformer-datasource-provider.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AppSyncDataSourceType = void 0; | ||
exports.DynamoDBProvisionStrategy = exports.AppSyncDataSourceType = void 0; | ||
var AppSyncDataSourceType; | ||
@@ -13,2 +13,7 @@ (function (AppSyncDataSourceType) { | ||
})(AppSyncDataSourceType = exports.AppSyncDataSourceType || (exports.AppSyncDataSourceType = {})); | ||
var DynamoDBProvisionStrategy; | ||
(function (DynamoDBProvisionStrategy) { | ||
DynamoDBProvisionStrategy["DEFAULT"] = "DEFAULT"; | ||
DynamoDBProvisionStrategy["AMPLIFY_TABLE"] = "AMPLIFY_TABLE"; | ||
})(DynamoDBProvisionStrategy = exports.DynamoDBProvisionStrategy || (exports.DynamoDBProvisionStrategy = {})); | ||
//# sourceMappingURL=transformer-datasource-provider.js.map |
{ | ||
"name": "@aws-amplify/graphql-transformer-interfaces", | ||
"version": "3.3.0-amplify-table-preview.0", | ||
"version": "3.3.0-construct-publish-test.0", | ||
"description": "Amplify GraphQL transformer interface definitions", | ||
@@ -52,3 +52,3 @@ "repository": { | ||
}, | ||
"gitHead": "7d153ff268ff8e8fab43105b5e9ea6611adfc2dd" | ||
"gitHead": "834040d5d4ac7290aed664176ffbd4559cbbf8d2" | ||
} |
@@ -59,3 +59,16 @@ import { CfnResource, IAsset } from 'aws-cdk-lib'; | ||
export interface LambdaConfig { | ||
/** | ||
* Function name, excluding optional `-{env}` suffix. | ||
*/ | ||
lambdaFunction: string; | ||
/** | ||
* The ARN of an existing Lambda function. If provided, this will circumvent the ARN construction when building the API auth mode config. The ARN must refer to the same function | ||
* named in `lambdaFunction`. | ||
*/ | ||
lambdaArn?: string; | ||
/** | ||
* Optional auth response time to live. | ||
*/ | ||
ttlSeconds?: number; | ||
@@ -62,0 +75,0 @@ } |
@@ -6,2 +6,6 @@ export { | ||
DataSourceInstance, | ||
DataSourceType, | ||
DBType, | ||
DataSourceProvisionStrategy, | ||
DynamoDBProvisionStrategy, | ||
} from './transformer-datasource-provider'; | ||
@@ -8,0 +12,0 @@ export { TransformerContextOutputProvider } from './transformer-context-output-provider'; |
@@ -15,3 +15,2 @@ /** | ||
sandboxModeEnabled: boolean; | ||
useAmplifyManagedTableResources: boolean; // Used for CDK construct ONLY | ||
@@ -18,0 +17,0 @@ // Auth Params |
import { DocumentNode } from 'graphql'; | ||
import { AppSyncAuthConfiguration, GraphQLAPIProvider, RDSLayerMapping, VpcConfig } from '../graphql-api-provider'; | ||
import { TransformerDataSourceManagerProvider, DatasourceType } from './transformer-datasource-provider'; | ||
import { TransformerDataSourceManagerProvider, DataSourceType } from './transformer-datasource-provider'; | ||
import { TransformerProviderRegistry } from './transformer-provider-registry'; | ||
@@ -27,3 +27,3 @@ import { TransformerContextOutputProvider } from './transformer-context-output-provider'; | ||
inputDocument: DocumentNode; | ||
modelToDatasourceMap: Map<string, DatasourceType>; | ||
modelToDatasourceMap: Map<string, DataSourceType>; | ||
datasourceSecretParameterLocations: Map<string, TransformerSecrets>; | ||
@@ -30,0 +30,0 @@ output: TransformerContextOutputProvider; |
@@ -32,5 +32,20 @@ import { BackedDataSource, HttpDataSource } from 'aws-cdk-lib/aws-appsync'; | ||
export interface DatasourceType { | ||
export const enum DynamoDBProvisionStrategy { | ||
/** | ||
* Use default cloud formation resource of `AWS::DynamoDB::Table` | ||
*/ | ||
DEFAULT = 'DEFAULT', | ||
/** | ||
* Use custom resource type `Custom::AmplifyDynamoDBTable` | ||
*/ | ||
AMPLIFY_TABLE = 'AMPLIFY_TABLE', | ||
} | ||
// TODO: add strategy for the RDS | ||
export type DataSourceProvisionStrategy = DynamoDBProvisionStrategy; | ||
export interface DataSourceType { | ||
dbType: DBType; | ||
provisionDB: boolean; | ||
provisionStrategy: DataSourceProvisionStrategy; | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
531033
1684