@aws-amplify/graphql-api-construct 1.4.2 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +367 -278
- package/API.md +14 -3
- package/CHANGELOG.md +18 -0
- package/README.md +210 -20
- package/lib/amplify-dynamodb-table-wrapper.js +1 -1
- package/lib/amplify-graphql-api.d.ts +0 -7
- package/lib/amplify-graphql-api.js +18 -65
- package/lib/amplify-graphql-definition.d.ts +4 -15
- package/lib/amplify-graphql-definition.js +33 -30
- package/lib/index.d.ts +2 -1
- package/lib/index.js +16 -1
- package/lib/internal/data-source-config.d.ts +22 -9
- package/lib/internal/data-source-config.js +150 -39
- package/lib/internal/model-type-name.d.ts +3 -3
- package/lib/internal/model-type-name.js +7 -7
- package/lib/model-datasource-strategy-types.d.ts +122 -0
- package/lib/model-datasource-strategy-types.js +10 -0
- package/lib/sql-model-datasource-strategy.d.ts +1 -1
- package/lib/sql-model-datasource-strategy.js +4 -4
- package/lib/types.d.ts +12 -119
- package/lib/types.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +10 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js +6 -10
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/validations.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +16 -12
- package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +10 -0
- package/node_modules/@aws-amplify/graphql-default-value-transformer/lib/graphql-default-value-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-default-value-transformer/lib/graphql-default-value-transformer.js +2 -7
- package/node_modules/@aws-amplify/graphql-default-value-transformer/lib/graphql-default-value-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +13 -9
- package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +10 -0
- package/node_modules/@aws-amplify/graphql-function-transformer/lib/graphql-function-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-function-transformer/lib/graphql-function-transformer.js +7 -0
- package/node_modules/@aws-amplify/graphql-function-transformer/lib/graphql-function-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-function-transformer/package.json +11 -7
- package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +8 -0
- package/node_modules/@aws-amplify/graphql-http-transformer/package.json +11 -7
- package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +10 -0
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/graphql-primary-key-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/graphql-primary-key-transformer.js +4 -4
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/graphql-primary-key-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/resolvers.d.ts +3 -5
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/resolvers.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/resolvers.js +12 -34
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/resolvers.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/package.json +13 -9
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +10 -0
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/assets/mapping-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-maps-to-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-maps-to-transformer.js +3 -4
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-maps-to-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-refers-to-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-refers-to-transformer.js +3 -3
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-refers-to-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/package.json +16 -12
- package/node_modules/@aws-amplify/graphql-model-transformer/API.md +16 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +13 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.d.ts +1 -3
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.js +61 -68
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/index.d.ts +1 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/index.js +3 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-notification-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-patching-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.d.ts +8 -8
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.js +32 -36
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.d.ts +3 -2
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.js +70 -34
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/package.json +15 -10
- package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +8 -0
- package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
- package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +11 -7
- package/node_modules/@aws-amplify/graphql-relational-transformer/API.md +2 -2
- package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +12 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.js +14 -7
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-many-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-many-transformer.js +6 -6
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-many-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-one-transformer.js +6 -6
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-one-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-many-to-many-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-many-to-many-transformer.js +8 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-many-to-many-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-generator.js +5 -3
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator-factory.d.ts +2 -2
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator-factory.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator-factory.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.js +18 -6
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.d.ts +18 -18
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js +54 -54
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +14 -10
- package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +10 -0
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/graphql-searchable-transformer.js +1 -1
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/streaming-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-searchable-transformer/package.json +12 -8
- package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +12 -0
- package/node_modules/@aws-amplify/graphql-sql-transformer/lib/graphql-sql-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-sql-transformer/lib/graphql-sql-transformer.js +32 -12
- package/node_modules/@aws-amplify/graphql-sql-transformer/lib/graphql-sql-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +12 -8
- package/node_modules/@aws-amplify/graphql-transformer/API.md +4 -16
- package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +10 -0
- package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.d.ts +4 -13
- package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.js +8 -14
- package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer/package.json +20 -16
- package/node_modules/@aws-amplify/graphql-transformer/src/graphql-transformer.ts +30 -54
- package/node_modules/@aws-amplify/graphql-transformer-core/API.md +128 -31
- package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +13 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts +3 -3
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js +34 -16
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/index.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/index.js +4 -2
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/transform.d.ts +6 -12
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/transform.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/transform.js +16 -5
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/transform.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/types.d.ts +0 -8
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/types.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/utils.d.ts +12 -10
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/utils.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/utils.js +94 -39
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/utils.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/index.d.ts +18 -12
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/index.js +13 -15
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/import-appsync-api-types.d.ts +1 -4
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/import-appsync-api-types.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/import-appsync-api-types.js +1 -4
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/import-appsync-api-types.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/index.d.ts +2 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/index.js +16 -4
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/model-datasource-strategies.d.ts +7 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/model-datasource-strategies.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/model-datasource-strategies.js +15 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/model-datasource-strategies.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/types.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.d.ts +28 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.js +39 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.d.ts +5 -4
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.js +21 -12
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts +14 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.js +96 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.d.ts +0 -10
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.js +1 -58
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/resource-name.d.ts +22 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/resource-name.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/resource-name.js +28 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/resource-name.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/schema-utils.d.ts +2 -2
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/schema-utils.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/schema-utils.js +7 -6
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/schema-utils.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/package.json +9 -5
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/API.md +88 -40
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +10 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/graphql-api-provider.d.ts +0 -17
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/graphql-api-provider.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/graphql-api-provider.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/index.d.ts +2 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/index.js +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/index.d.ts +2 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/index.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/index.js +18 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/index.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts +59 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.js +3 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transform-host-provider.d.ts +2 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transform-host-provider.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/index.d.ts +2 -2
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/index.js +1 -3
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transformer-context-provider.d.ts +12 -17
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transformer-context-provider.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transformer-datasource-provider.d.ts +0 -15
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transformer-datasource-provider.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transformer-datasource-provider.js +1 -10
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transformer-datasource-provider.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/package.json +8 -3
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/graphql-api-provider.ts +1 -41
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/index.ts +1 -4
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/model-datasource/index.ts +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/model-datasource/types.ts +195 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transform-host-provider.ts +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/index.ts +4 -9
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/transformer-context-provider.ts +15 -23
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/transformer-datasource-provider.ts +0 -43
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/tsconfig.tsbuildinfo +1 -1
- package/node_modules/graphql-mapping-template/CHANGELOG.md +4 -0
- package/node_modules/graphql-mapping-template/LICENSE +201 -0
- package/node_modules/graphql-mapping-template/package.json +8 -3
- package/node_modules/graphql-transformer-common/API.md +0 -15
- package/node_modules/graphql-transformer-common/CHANGELOG.md +6 -0
- package/node_modules/graphql-transformer-common/lib/ResourceConstants.d.ts +0 -15
- package/node_modules/graphql-transformer-common/lib/ResourceConstants.d.ts.map +1 -1
- package/node_modules/graphql-transformer-common/lib/ResourceConstants.js +0 -15
- package/node_modules/graphql-transformer-common/lib/ResourceConstants.js.map +1 -1
- package/node_modules/graphql-transformer-common/package.json +7 -3
- package/package.json +24 -19
- package/src/amplify-graphql-api.ts +19 -76
- package/src/amplify-graphql-definition.ts +47 -30
- package/src/index.ts +2 -10
- package/src/internal/data-source-config.ts +195 -47
- package/src/internal/model-type-name.ts +5 -4
- package/src/model-datasource-strategy-types.ts +157 -0
- package/src/sql-model-datasource-strategy.ts +3 -3
- package/src/types.ts +13 -144
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/provision-strategy-utils.d.ts +0 -3
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/provision-strategy-utils.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/provision-strategy-utils.js +0 -15
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/provision-strategy-utils.js.map +0 -1
package/API.md
CHANGED
|
@@ -196,6 +196,13 @@ export interface CustomConflictResolutionStrategy extends ConflictResolutionStra
|
|
|
196
196
|
readonly handlerType: 'LAMBDA';
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
+
// @public
|
|
200
|
+
export interface CustomSqlDataSourceStrategy {
|
|
201
|
+
readonly fieldName: string;
|
|
202
|
+
readonly strategy: SQLLambdaModelDataSourceStrategy;
|
|
203
|
+
readonly typeName: 'Query' | 'Mutation';
|
|
204
|
+
}
|
|
205
|
+
|
|
199
206
|
// @public
|
|
200
207
|
export interface DefaultDynamoDbModelDataSourceStrategy {
|
|
201
208
|
// (undocumented)
|
|
@@ -230,6 +237,7 @@ export interface IAMAuthorizationConfig {
|
|
|
230
237
|
|
|
231
238
|
// @public
|
|
232
239
|
export interface IAmplifyGraphqlDefinition {
|
|
240
|
+
readonly customSqlDataSourceStrategies?: CustomSqlDataSourceStrategy[];
|
|
233
241
|
readonly dataSourceStrategies: Record<string, ModelDataSourceStrategy>;
|
|
234
242
|
readonly functionSlots: FunctionSlot[];
|
|
235
243
|
readonly referencedLambdaFunctions?: Record<string, IFunction>;
|
|
@@ -256,8 +264,11 @@ export interface LambdaAuthorizationConfig {
|
|
|
256
264
|
// @public
|
|
257
265
|
export type ModelDataSourceStrategy = DefaultDynamoDbModelDataSourceStrategy | AmplifyDynamoDbModelDataSourceStrategy | SQLLambdaModelDataSourceStrategy;
|
|
258
266
|
|
|
259
|
-
// @public
|
|
260
|
-
export type ModelDataSourceStrategyDbType = 'DYNAMODB';
|
|
267
|
+
// @public
|
|
268
|
+
export type ModelDataSourceStrategyDbType = 'DYNAMODB' | ModelDataSourceStrategySqlDbType;
|
|
269
|
+
|
|
270
|
+
// @public
|
|
271
|
+
export type ModelDataSourceStrategySqlDbType = 'MYSQL' | 'POSTGRES';
|
|
261
272
|
|
|
262
273
|
// @public
|
|
263
274
|
export interface MutationFunctionSlot extends FunctionSlotBase {
|
|
@@ -317,7 +328,7 @@ export interface QueryFunctionSlot extends FunctionSlotBase {
|
|
|
317
328
|
export interface SQLLambdaModelDataSourceStrategy {
|
|
318
329
|
readonly customSqlStatements?: Record<string, string>;
|
|
319
330
|
readonly dbConnectionConfig: SqlModelDataSourceDbConnectionConfig;
|
|
320
|
-
readonly dbType:
|
|
331
|
+
readonly dbType: ModelDataSourceStrategySqlDbType;
|
|
321
332
|
readonly name: string;
|
|
322
333
|
readonly sqlLambdaProvisionedConcurrencyConfig?: ProvisionedConcurrencyConfig;
|
|
323
334
|
readonly vpcConfiguration?: VpcConfig;
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.5.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-api-construct@1.4.3...@aws-amplify/graphql-api-construct@1.5.0) (2023-12-06)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- validate SSM paths in sql db connection config ([#2118](https://github.com/aws-amplify/amplify-category-api/issues/2118)) ([b9cd0d7](https://github.com/aws-amplify/amplify-category-api/commit/b9cd0d774be159763eac063781e06c35b3af7eb4))
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- combine heterogeneous data sources ([#2109](https://github.com/aws-amplify/amplify-category-api/issues/2109)) ([fd58bb5](https://github.com/aws-amplify/amplify-category-api/commit/fd58bb5af4249220d17c9751acf677955aed74ea))
|
|
15
|
+
- Remove experimental flags; add missing API construct types ([#2122](https://github.com/aws-amplify/amplify-category-api/issues/2122)) ([a00f4dc](https://github.com/aws-amplify/amplify-category-api/commit/a00f4dcb807871c68ae18b17dbe81bcf5a7a2823))
|
|
16
|
+
- Support custom SQL across definitions ([#2115](https://github.com/aws-amplify/amplify-category-api/issues/2115)) ([eab4820](https://github.com/aws-amplify/amplify-category-api/commit/eab4820c1c931fbdf804b2315b63773a376e0822))
|
|
17
|
+
|
|
18
|
+
## [1.4.3](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-api-construct@1.4.2...@aws-amplify/graphql-api-construct@1.4.3) (2023-11-22)
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
- Allow custom SQL statements without model declarations ([#2087](https://github.com/aws-amplify/amplify-category-api/issues/2087)) ([ea5b26c](https://github.com/aws-amplify/amplify-category-api/commit/ea5b26cd554f5c74b6431cbad6ccf60ab556478f))
|
|
23
|
+
|
|
6
24
|
## [1.4.2](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-api-construct@1.4.1...@aws-amplify/graphql-api-construct@1.4.2) (2023-11-18)
|
|
7
25
|
|
|
8
26
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -132,8 +132,6 @@ new AmplifyGraphqlApi(stack, 'MultiFileDefinition', {
|
|
|
132
132
|
});
|
|
133
133
|
```
|
|
134
134
|
|
|
135
|
-
> **NOTE** The 'dataSourceStrategies' configuration option is in preview and is not recommended to use with production systems.
|
|
136
|
-
|
|
137
135
|
# API Reference <a name="API Reference" id="api-reference"></a>
|
|
138
136
|
|
|
139
137
|
## Constructs <a name="Constructs" id="Constructs"></a>
|
|
@@ -1661,6 +1659,68 @@ For more information, refer to https://docs.aws.amazon.com/appsync/latest/devgui
|
|
|
1661
1659
|
|
|
1662
1660
|
---
|
|
1663
1661
|
|
|
1662
|
+
### CustomSqlDataSourceStrategy <a name="CustomSqlDataSourceStrategy" id="@aws-amplify/graphql-api-construct.CustomSqlDataSourceStrategy"></a>
|
|
1663
|
+
|
|
1664
|
+
The input type for defining a ModelDataSourceStrategy used to resolve a field annotated with a `@sql` directive.
|
|
1665
|
+
|
|
1666
|
+
Although this is a
|
|
1667
|
+
public type, you should rarely need to use this. The AmplifyGraphqlDefinition factory methods (e.g., `fromString`,
|
|
1668
|
+
`fromFilesAndStrategy`) will automatically construct this structure for you.
|
|
1669
|
+
|
|
1670
|
+
#### Initializer <a name="Initializer" id="@aws-amplify/graphql-api-construct.CustomSqlDataSourceStrategy.Initializer"></a>
|
|
1671
|
+
|
|
1672
|
+
```typescript
|
|
1673
|
+
import { CustomSqlDataSourceStrategy } from '@aws-amplify/graphql-api-construct'
|
|
1674
|
+
|
|
1675
|
+
const customSqlDataSourceStrategy: CustomSqlDataSourceStrategy = { ... }
|
|
1676
|
+
```
|
|
1677
|
+
|
|
1678
|
+
#### Properties <a name="Properties" id="Properties"></a>
|
|
1679
|
+
|
|
1680
|
+
| **Name** | **Type** | **Description** |
|
|
1681
|
+
| --- | --- | --- |
|
|
1682
|
+
| <code><a href="#@aws-amplify/graphql-api-construct.CustomSqlDataSourceStrategy.property.fieldName">fieldName</a></code> | <code>string</code> | The field name with which the custom SQL is associated. |
|
|
1683
|
+
| <code><a href="#@aws-amplify/graphql-api-construct.CustomSqlDataSourceStrategy.property.strategy">strategy</a></code> | <code><a href="#@aws-amplify/graphql-api-construct.SQLLambdaModelDataSourceStrategy">SQLLambdaModelDataSourceStrategy</a></code> | The strategy used to create the datasource that will resolve the custom SQL statement. |
|
|
1684
|
+
| <code><a href="#@aws-amplify/graphql-api-construct.CustomSqlDataSourceStrategy.property.typeName">typeName</a></code> | <code>string</code> | The built-in type (either "Query" or "Mutation") with which the custom SQL is associated. |
|
|
1685
|
+
|
|
1686
|
+
---
|
|
1687
|
+
|
|
1688
|
+
##### `fieldName`<sup>Required</sup> <a name="fieldName" id="@aws-amplify/graphql-api-construct.CustomSqlDataSourceStrategy.property.fieldName"></a>
|
|
1689
|
+
|
|
1690
|
+
```typescript
|
|
1691
|
+
public readonly fieldName: string;
|
|
1692
|
+
```
|
|
1693
|
+
|
|
1694
|
+
- *Type:* string
|
|
1695
|
+
|
|
1696
|
+
The field name with which the custom SQL is associated.
|
|
1697
|
+
|
|
1698
|
+
---
|
|
1699
|
+
|
|
1700
|
+
##### `strategy`<sup>Required</sup> <a name="strategy" id="@aws-amplify/graphql-api-construct.CustomSqlDataSourceStrategy.property.strategy"></a>
|
|
1701
|
+
|
|
1702
|
+
```typescript
|
|
1703
|
+
public readonly strategy: SQLLambdaModelDataSourceStrategy;
|
|
1704
|
+
```
|
|
1705
|
+
|
|
1706
|
+
- *Type:* <a href="#@aws-amplify/graphql-api-construct.SQLLambdaModelDataSourceStrategy">SQLLambdaModelDataSourceStrategy</a>
|
|
1707
|
+
|
|
1708
|
+
The strategy used to create the datasource that will resolve the custom SQL statement.
|
|
1709
|
+
|
|
1710
|
+
---
|
|
1711
|
+
|
|
1712
|
+
##### `typeName`<sup>Required</sup> <a name="typeName" id="@aws-amplify/graphql-api-construct.CustomSqlDataSourceStrategy.property.typeName"></a>
|
|
1713
|
+
|
|
1714
|
+
```typescript
|
|
1715
|
+
public readonly typeName: string;
|
|
1716
|
+
```
|
|
1717
|
+
|
|
1718
|
+
- *Type:* string
|
|
1719
|
+
|
|
1720
|
+
The built-in type (either "Query" or "Mutation") with which the custom SQL is associated.
|
|
1721
|
+
|
|
1722
|
+
---
|
|
1723
|
+
|
|
1664
1724
|
### DefaultDynamoDbModelDataSourceStrategy <a name="DefaultDynamoDbModelDataSourceStrategy" id="@aws-amplify/graphql-api-construct.DefaultDynamoDbModelDataSourceStrategy"></a>
|
|
1665
1725
|
|
|
1666
1726
|
Use default CloudFormation type 'AWS::DynamoDB::Table' to provision table.
|
|
@@ -2182,6 +2242,7 @@ const partialTranslationBehavior: PartialTranslationBehavior = { ... }
|
|
|
2182
2242
|
| <code><a href="#@aws-amplify/graphql-api-construct.PartialTranslationBehavior.property.enableSearchNodeToNodeEncryption">enableSearchNodeToNodeEncryption</a></code> | <code>boolean</code> | If enabled, set nodeToNodeEncryption on the searchable domain (if one exists). |
|
|
2183
2243
|
| <code><a href="#@aws-amplify/graphql-api-construct.PartialTranslationBehavior.property.enableTransformerCfnOutputs">enableTransformerCfnOutputs</a></code> | <code>boolean</code> | When enabled, internal cfn outputs which existed in Amplify-generated apps will continue to be emitted. |
|
|
2184
2244
|
| <code><a href="#@aws-amplify/graphql-api-construct.PartialTranslationBehavior.property.populateOwnerFieldForStaticGroupAuth">populateOwnerFieldForStaticGroupAuth</a></code> | <code>boolean</code> | Ensure that the owner field is still populated even if a static iam or group authorization applies. |
|
|
2245
|
+
| <code><a href="#@aws-amplify/graphql-api-construct.PartialTranslationBehavior.property.replaceTableUponGsiUpdate">replaceTableUponGsiUpdate</a></code> | <code>boolean</code> | This behavior will only come into effect when both "allowDestructiveGraphqlSchemaUpdates" and this value are set to true. |
|
|
2185
2246
|
| <code><a href="#@aws-amplify/graphql-api-construct.PartialTranslationBehavior.property.respectPrimaryKeyAttributesOnConnectionField">respectPrimaryKeyAttributesOnConnectionField</a></code> | <code>boolean</code> | Enable custom primary key support, there's no good reason to disable this unless trying not to update a legacy app. |
|
|
2186
2247
|
| <code><a href="#@aws-amplify/graphql-api-construct.PartialTranslationBehavior.property.sandboxModeEnabled">sandboxModeEnabled</a></code> | <code>boolean</code> | Enabling sandbox mode will enable api key auth on all models in the transformed schema. |
|
|
2187
2248
|
| <code><a href="#@aws-amplify/graphql-api-construct.PartialTranslationBehavior.property.secondaryKeyAsGSI">secondaryKeyAsGSI</a></code> | <code>boolean</code> | If disabled, generated. |
|
|
@@ -2283,6 +2344,22 @@ Ensure that the owner field is still populated even if a static iam or group aut
|
|
|
2283
2344
|
|
|
2284
2345
|
---
|
|
2285
2346
|
|
|
2347
|
+
##### `replaceTableUponGsiUpdate`<sup>Optional</sup> <a name="replaceTableUponGsiUpdate" id="@aws-amplify/graphql-api-construct.PartialTranslationBehavior.property.replaceTableUponGsiUpdate"></a>
|
|
2348
|
+
|
|
2349
|
+
```typescript
|
|
2350
|
+
public readonly replaceTableUponGsiUpdate: boolean;
|
|
2351
|
+
```
|
|
2352
|
+
|
|
2353
|
+
- *Type:* boolean
|
|
2354
|
+
- *Default:* false
|
|
2355
|
+
|
|
2356
|
+
This behavior will only come into effect when both "allowDestructiveGraphqlSchemaUpdates" and this value are set to true.
|
|
2357
|
+
|
|
2358
|
+
When enabled, any global secondary index update operation will replace the table instead of iterative deployment, which will WIPE ALL
|
|
2359
|
+
EXISTING DATA but cost much less time for deployment This will only affect DynamoDB tables with provision strategy "AMPLIFY_TABLE".
|
|
2360
|
+
|
|
2361
|
+
---
|
|
2362
|
+
|
|
2286
2363
|
##### `respectPrimaryKeyAttributesOnConnectionField`<sup>Optional</sup> <a name="respectPrimaryKeyAttributesOnConnectionField" id="@aws-amplify/graphql-api-construct.PartialTranslationBehavior.property.respectPrimaryKeyAttributesOnConnectionField"></a>
|
|
2287
2364
|
|
|
2288
2365
|
```typescript
|
|
@@ -2363,6 +2440,40 @@ Ensure that oidc and userPool auth use the `sub` field in the for the username f
|
|
|
2363
2440
|
|
|
2364
2441
|
---
|
|
2365
2442
|
|
|
2443
|
+
### ProvisionedConcurrencyConfig <a name="ProvisionedConcurrencyConfig" id="@aws-amplify/graphql-api-construct.ProvisionedConcurrencyConfig"></a>
|
|
2444
|
+
|
|
2445
|
+
The configuration for the provisioned concurrency of the Lambda.
|
|
2446
|
+
|
|
2447
|
+
#### Initializer <a name="Initializer" id="@aws-amplify/graphql-api-construct.ProvisionedConcurrencyConfig.Initializer"></a>
|
|
2448
|
+
|
|
2449
|
+
```typescript
|
|
2450
|
+
import { ProvisionedConcurrencyConfig } from '@aws-amplify/graphql-api-construct'
|
|
2451
|
+
|
|
2452
|
+
const provisionedConcurrencyConfig: ProvisionedConcurrencyConfig = { ... }
|
|
2453
|
+
```
|
|
2454
|
+
|
|
2455
|
+
#### Properties <a name="Properties" id="Properties"></a>
|
|
2456
|
+
|
|
2457
|
+
| **Name** | **Type** | **Description** |
|
|
2458
|
+
| --- | --- | --- |
|
|
2459
|
+
| <code><a href="#@aws-amplify/graphql-api-construct.ProvisionedConcurrencyConfig.property.provisionedConcurrentExecutions">provisionedConcurrentExecutions</a></code> | <code>number</code> | The amount of provisioned concurrency to allocate. |
|
|
2460
|
+
|
|
2461
|
+
---
|
|
2462
|
+
|
|
2463
|
+
##### `provisionedConcurrentExecutions`<sup>Required</sup> <a name="provisionedConcurrentExecutions" id="@aws-amplify/graphql-api-construct.ProvisionedConcurrencyConfig.property.provisionedConcurrentExecutions"></a>
|
|
2464
|
+
|
|
2465
|
+
```typescript
|
|
2466
|
+
public readonly provisionedConcurrentExecutions: number;
|
|
2467
|
+
```
|
|
2468
|
+
|
|
2469
|
+
- *Type:* number
|
|
2470
|
+
|
|
2471
|
+
The amount of provisioned concurrency to allocate.
|
|
2472
|
+
|
|
2473
|
+
*
|
|
2474
|
+
|
|
2475
|
+
---
|
|
2476
|
+
|
|
2366
2477
|
### ProvisionedThroughput <a name="ProvisionedThroughput" id="@aws-amplify/graphql-api-construct.ProvisionedThroughput"></a>
|
|
2367
2478
|
|
|
2368
2479
|
Wrapper for provisioned throughput config in DDB.
|
|
@@ -2516,7 +2627,7 @@ const sQLLambdaModelDataSourceStrategy: SQLLambdaModelDataSourceStrategy = { ...
|
|
|
2516
2627
|
| <code><a href="#@aws-amplify/graphql-api-construct.SQLLambdaModelDataSourceStrategy.property.dbType">dbType</a></code> | <code>string</code> | The type of the SQL database used to process model operations for this definition. |
|
|
2517
2628
|
| <code><a href="#@aws-amplify/graphql-api-construct.SQLLambdaModelDataSourceStrategy.property.name">name</a></code> | <code>string</code> | The name of the strategy. |
|
|
2518
2629
|
| <code><a href="#@aws-amplify/graphql-api-construct.SQLLambdaModelDataSourceStrategy.property.customSqlStatements">customSqlStatements</a></code> | <code>{[ key: string ]: string}</code> | Custom SQL statements. |
|
|
2519
|
-
| <code><a href="#@aws-amplify/graphql-api-construct.SQLLambdaModelDataSourceStrategy.property.
|
|
2630
|
+
| <code><a href="#@aws-amplify/graphql-api-construct.SQLLambdaModelDataSourceStrategy.property.sqlLambdaProvisionedConcurrencyConfig">sqlLambdaProvisionedConcurrencyConfig</a></code> | <code><a href="#@aws-amplify/graphql-api-construct.ProvisionedConcurrencyConfig">ProvisionedConcurrencyConfig</a></code> | The configuration for the provisioned concurrency of the Lambda. |
|
|
2520
2631
|
| <code><a href="#@aws-amplify/graphql-api-construct.SQLLambdaModelDataSourceStrategy.property.vpcConfiguration">vpcConfiguration</a></code> | <code><a href="#@aws-amplify/graphql-api-construct.VpcConfig">VpcConfig</a></code> | The configuration of the VPC into which to install the Lambda. |
|
|
2521
2632
|
|
|
2522
2633
|
---
|
|
@@ -2575,15 +2686,15 @@ to be executed.
|
|
|
2575
2686
|
|
|
2576
2687
|
---
|
|
2577
2688
|
|
|
2578
|
-
##### `
|
|
2689
|
+
##### `sqlLambdaProvisionedConcurrencyConfig`<sup>Optional</sup> <a name="sqlLambdaProvisionedConcurrencyConfig" id="@aws-amplify/graphql-api-construct.SQLLambdaModelDataSourceStrategy.property.sqlLambdaProvisionedConcurrencyConfig"></a>
|
|
2579
2690
|
|
|
2580
2691
|
```typescript
|
|
2581
|
-
public readonly
|
|
2692
|
+
public readonly sqlLambdaProvisionedConcurrencyConfig: ProvisionedConcurrencyConfig;
|
|
2582
2693
|
```
|
|
2583
2694
|
|
|
2584
|
-
- *Type:*
|
|
2695
|
+
- *Type:* <a href="#@aws-amplify/graphql-api-construct.ProvisionedConcurrencyConfig">ProvisionedConcurrencyConfig</a>
|
|
2585
2696
|
|
|
2586
|
-
|
|
2697
|
+
The configuration for the provisioned concurrency of the Lambda.
|
|
2587
2698
|
|
|
2588
2699
|
---
|
|
2589
2700
|
|
|
@@ -3002,6 +3113,7 @@ const translationBehavior: TranslationBehavior = { ... }
|
|
|
3002
3113
|
| <code><a href="#@aws-amplify/graphql-api-construct.TranslationBehavior.property.enableSearchNodeToNodeEncryption">enableSearchNodeToNodeEncryption</a></code> | <code>boolean</code> | *No description.* |
|
|
3003
3114
|
| <code><a href="#@aws-amplify/graphql-api-construct.TranslationBehavior.property.enableTransformerCfnOutputs">enableTransformerCfnOutputs</a></code> | <code>boolean</code> | When enabled, internal cfn outputs which existed in Amplify-generated apps will continue to be emitted. |
|
|
3004
3115
|
| <code><a href="#@aws-amplify/graphql-api-construct.TranslationBehavior.property.populateOwnerFieldForStaticGroupAuth">populateOwnerFieldForStaticGroupAuth</a></code> | <code>boolean</code> | Ensure that the owner field is still populated even if a static iam or group authorization applies. |
|
|
3116
|
+
| <code><a href="#@aws-amplify/graphql-api-construct.TranslationBehavior.property.replaceTableUponGsiUpdate">replaceTableUponGsiUpdate</a></code> | <code>boolean</code> | This behavior will only come into effect when both "allowDestructiveGraphqlSchemaUpdates" and this value are set to true. |
|
|
3005
3117
|
| <code><a href="#@aws-amplify/graphql-api-construct.TranslationBehavior.property.respectPrimaryKeyAttributesOnConnectionField">respectPrimaryKeyAttributesOnConnectionField</a></code> | <code>boolean</code> | Enable custom primary key support, there's no good reason to disable this unless trying not to update a legacy app. |
|
|
3006
3118
|
| <code><a href="#@aws-amplify/graphql-api-construct.TranslationBehavior.property.sandboxModeEnabled">sandboxModeEnabled</a></code> | <code>boolean</code> | Enabling sandbox mode will enable api key auth on all models in the transformed schema. |
|
|
3007
3119
|
| <code><a href="#@aws-amplify/graphql-api-construct.TranslationBehavior.property.secondaryKeyAsGSI">secondaryKeyAsGSI</a></code> | <code>boolean</code> | If disabled, generated. |
|
|
@@ -3095,6 +3207,22 @@ Ensure that the owner field is still populated even if a static iam or group aut
|
|
|
3095
3207
|
|
|
3096
3208
|
---
|
|
3097
3209
|
|
|
3210
|
+
##### `replaceTableUponGsiUpdate`<sup>Required</sup> <a name="replaceTableUponGsiUpdate" id="@aws-amplify/graphql-api-construct.TranslationBehavior.property.replaceTableUponGsiUpdate"></a>
|
|
3211
|
+
|
|
3212
|
+
```typescript
|
|
3213
|
+
public readonly replaceTableUponGsiUpdate: boolean;
|
|
3214
|
+
```
|
|
3215
|
+
|
|
3216
|
+
- *Type:* boolean
|
|
3217
|
+
- *Default:* false
|
|
3218
|
+
|
|
3219
|
+
This behavior will only come into effect when both "allowDestructiveGraphqlSchemaUpdates" and this value are set to true.
|
|
3220
|
+
|
|
3221
|
+
When enabled, any GSI update operation will replace the table instead of iterative deployment, which will WIPE ALL EXISTING DATA but
|
|
3222
|
+
cost much less time for deployment This will only affect DynamoDB tables with provision strategy "AMPLIFY_TABLE".
|
|
3223
|
+
|
|
3224
|
+
---
|
|
3225
|
+
|
|
3098
3226
|
##### `respectPrimaryKeyAttributesOnConnectionField`<sup>Required</sup> <a name="respectPrimaryKeyAttributesOnConnectionField" id="@aws-amplify/graphql-api-construct.TranslationBehavior.property.respectPrimaryKeyAttributesOnConnectionField"></a>
|
|
3099
3227
|
|
|
3100
3228
|
```typescript
|
|
@@ -3501,8 +3629,6 @@ AmplifyGraphqlDefinition.combine(definitions: IAmplifyGraphqlDefinition[])
|
|
|
3501
3629
|
|
|
3502
3630
|
Combines multiple IAmplifyGraphqlDefinitions into a single definition.
|
|
3503
3631
|
|
|
3504
|
-
**NOTE** This API is in preview and is not recommended to use with production systems.
|
|
3505
|
-
|
|
3506
3632
|
###### `definitions`<sup>Required</sup> <a name="definitions" id="@aws-amplify/graphql-api-construct.AmplifyGraphqlDefinition.combine.parameter.definitions"></a>
|
|
3507
3633
|
|
|
3508
3634
|
- *Type:* <a href="#@aws-amplify/graphql-api-construct.IAmplifyGraphqlDefinition">IAmplifyGraphqlDefinition</a>[]
|
|
@@ -3539,8 +3665,6 @@ AmplifyGraphqlDefinition.fromFilesAndStrategy(filePaths: string | string[], data
|
|
|
3539
3665
|
|
|
3540
3666
|
Convert one or more appsync SchemaFile objects into an Amplify Graphql Schema.
|
|
3541
3667
|
|
|
3542
|
-
**NOTE** This API is in preview and is not recommended to use with production systems.
|
|
3543
|
-
|
|
3544
3668
|
###### `filePaths`<sup>Required</sup> <a name="filePaths" id="@aws-amplify/graphql-api-construct.AmplifyGraphqlDefinition.fromFilesAndStrategy.parameter.filePaths"></a>
|
|
3545
3669
|
|
|
3546
3670
|
- *Type:* string | string[]
|
|
@@ -3570,8 +3694,6 @@ AmplifyGraphqlDefinition.fromString(schema: string, dataSourceStrategy?: Default
|
|
|
3570
3694
|
|
|
3571
3695
|
Produce a schema definition from a string input.
|
|
3572
3696
|
|
|
3573
|
-
**NOTE** The 'dataSourceStrategy' configuration option is in preview and is not recommended to use with production systems.
|
|
3574
|
-
|
|
3575
3697
|
###### `schema`<sup>Required</sup> <a name="schema" id="@aws-amplify/graphql-api-construct.AmplifyGraphqlDefinition.fromString.parameter.schema"></a>
|
|
3576
3698
|
|
|
3577
3699
|
- *Type:* string
|
|
@@ -3584,10 +3706,66 @@ the graphql input as a string.
|
|
|
3584
3706
|
|
|
3585
3707
|
- *Type:* <a href="#@aws-amplify/graphql-api-construct.DefaultDynamoDbModelDataSourceStrategy">DefaultDynamoDbModelDataSourceStrategy</a> | <a href="#@aws-amplify/graphql-api-construct.AmplifyDynamoDbModelDataSourceStrategy">AmplifyDynamoDbModelDataSourceStrategy</a> | <a href="#@aws-amplify/graphql-api-construct.SQLLambdaModelDataSourceStrategy">SQLLambdaModelDataSourceStrategy</a>
|
|
3586
3708
|
|
|
3587
|
-
the provisioning definition for datasources that resolve `@model`s in this schema.
|
|
3709
|
+
the provisioning definition for datasources that resolve `@model`s and custom SQL statements in this schema.
|
|
3588
3710
|
|
|
3589
|
-
The DynamoDB from
|
|
3590
|
-
|
|
3711
|
+
The DynamoDB from CloudFormation will be used by default.
|
|
3712
|
+
|
|
3713
|
+
---
|
|
3714
|
+
|
|
3715
|
+
|
|
3716
|
+
|
|
3717
|
+
### SQLLambdaModelDataSourceStrategyFactory <a name="SQLLambdaModelDataSourceStrategyFactory" id="@aws-amplify/graphql-api-construct.SQLLambdaModelDataSourceStrategyFactory"></a>
|
|
3718
|
+
|
|
3719
|
+
Class exposing utilities to produce SQLLambdaModelDataSourceStrategy objects given various inputs.
|
|
3720
|
+
|
|
3721
|
+
#### Initializers <a name="Initializers" id="@aws-amplify/graphql-api-construct.SQLLambdaModelDataSourceStrategyFactory.Initializer"></a>
|
|
3722
|
+
|
|
3723
|
+
```typescript
|
|
3724
|
+
import { SQLLambdaModelDataSourceStrategyFactory } from '@aws-amplify/graphql-api-construct'
|
|
3725
|
+
|
|
3726
|
+
new SQLLambdaModelDataSourceStrategyFactory()
|
|
3727
|
+
```
|
|
3728
|
+
|
|
3729
|
+
| **Name** | **Type** | **Description** |
|
|
3730
|
+
| --- | --- | --- |
|
|
3731
|
+
|
|
3732
|
+
---
|
|
3733
|
+
|
|
3734
|
+
|
|
3735
|
+
#### Static Functions <a name="Static Functions" id="Static Functions"></a>
|
|
3736
|
+
|
|
3737
|
+
| **Name** | **Description** |
|
|
3738
|
+
| --- | --- |
|
|
3739
|
+
| <code><a href="#@aws-amplify/graphql-api-construct.SQLLambdaModelDataSourceStrategyFactory.fromCustomSqlFiles">fromCustomSqlFiles</a></code> | Creates a SQLLambdaModelDataSourceStrategy where the binding's `customSqlStatements` are populated from `sqlFiles`. |
|
|
3740
|
+
|
|
3741
|
+
---
|
|
3742
|
+
|
|
3743
|
+
##### `fromCustomSqlFiles` <a name="fromCustomSqlFiles" id="@aws-amplify/graphql-api-construct.SQLLambdaModelDataSourceStrategyFactory.fromCustomSqlFiles"></a>
|
|
3744
|
+
|
|
3745
|
+
```typescript
|
|
3746
|
+
import { SQLLambdaModelDataSourceStrategyFactory } from '@aws-amplify/graphql-api-construct'
|
|
3747
|
+
|
|
3748
|
+
SQLLambdaModelDataSourceStrategyFactory.fromCustomSqlFiles(sqlFiles: string[], options: SQLLambdaModelDataSourceStrategy)
|
|
3749
|
+
```
|
|
3750
|
+
|
|
3751
|
+
Creates a SQLLambdaModelDataSourceStrategy where the binding's `customSqlStatements` are populated from `sqlFiles`.
|
|
3752
|
+
|
|
3753
|
+
The key
|
|
3754
|
+
of the `customSqlStatements` record is the file's base name (that is, the name of the file minus the directory and extension).
|
|
3755
|
+
|
|
3756
|
+
###### `sqlFiles`<sup>Required</sup> <a name="sqlFiles" id="@aws-amplify/graphql-api-construct.SQLLambdaModelDataSourceStrategyFactory.fromCustomSqlFiles.parameter.sqlFiles"></a>
|
|
3757
|
+
|
|
3758
|
+
- *Type:* string[]
|
|
3759
|
+
|
|
3760
|
+
the list of files to load SQL statements from.
|
|
3761
|
+
|
|
3762
|
+
---
|
|
3763
|
+
|
|
3764
|
+
###### `options`<sup>Required</sup> <a name="options" id="@aws-amplify/graphql-api-construct.SQLLambdaModelDataSourceStrategyFactory.fromCustomSqlFiles.parameter.options"></a>
|
|
3765
|
+
|
|
3766
|
+
- *Type:* <a href="#@aws-amplify/graphql-api-construct.SQLLambdaModelDataSourceStrategy">SQLLambdaModelDataSourceStrategy</a>
|
|
3767
|
+
|
|
3768
|
+
the remaining SQLLambdaModelDataSourceStrategy options.
|
|
3591
3769
|
|
|
3592
3770
|
---
|
|
3593
3771
|
|
|
@@ -3606,9 +3784,10 @@ Graphql Api definition, which can be implemented in multiple ways.
|
|
|
3606
3784
|
|
|
3607
3785
|
| **Name** | **Type** | **Description** |
|
|
3608
3786
|
| --- | --- | --- |
|
|
3609
|
-
| <code><a href="#@aws-amplify/graphql-api-construct.IAmplifyGraphqlDefinition.property.dataSourceStrategies">dataSourceStrategies</a></code> | <code>{[ key: string ]: <a href="#@aws-amplify/graphql-api-construct.DefaultDynamoDbModelDataSourceStrategy">DefaultDynamoDbModelDataSourceStrategy</a> \| <a href="#@aws-amplify/graphql-api-construct.AmplifyDynamoDbModelDataSourceStrategy">AmplifyDynamoDbModelDataSourceStrategy</a> \| <a href="#@aws-amplify/graphql-api-construct.SQLLambdaModelDataSourceStrategy">SQLLambdaModelDataSourceStrategy</a>}</code> | Retrieve the datasource strategy mapping.
|
|
3787
|
+
| <code><a href="#@aws-amplify/graphql-api-construct.IAmplifyGraphqlDefinition.property.dataSourceStrategies">dataSourceStrategies</a></code> | <code>{[ key: string ]: <a href="#@aws-amplify/graphql-api-construct.DefaultDynamoDbModelDataSourceStrategy">DefaultDynamoDbModelDataSourceStrategy</a> \| <a href="#@aws-amplify/graphql-api-construct.AmplifyDynamoDbModelDataSourceStrategy">AmplifyDynamoDbModelDataSourceStrategy</a> \| <a href="#@aws-amplify/graphql-api-construct.SQLLambdaModelDataSourceStrategy">SQLLambdaModelDataSourceStrategy</a>}</code> | Retrieve the datasource strategy mapping. |
|
|
3610
3788
|
| <code><a href="#@aws-amplify/graphql-api-construct.IAmplifyGraphqlDefinition.property.functionSlots">functionSlots</a></code> | <code><a href="#@aws-amplify/graphql-api-construct.MutationFunctionSlot">MutationFunctionSlot</a> \| <a href="#@aws-amplify/graphql-api-construct.QueryFunctionSlot">QueryFunctionSlot</a> \| <a href="#@aws-amplify/graphql-api-construct.SubscriptionFunctionSlot">SubscriptionFunctionSlot</a>[]</code> | Retrieve any function slots defined explicitly in the Api definition. |
|
|
3611
3789
|
| <code><a href="#@aws-amplify/graphql-api-construct.IAmplifyGraphqlDefinition.property.schema">schema</a></code> | <code>string</code> | Return the schema definition as a graphql string, with amplify directives allowed. |
|
|
3790
|
+
| <code><a href="#@aws-amplify/graphql-api-construct.IAmplifyGraphqlDefinition.property.customSqlDataSourceStrategies">customSqlDataSourceStrategies</a></code> | <code><a href="#@aws-amplify/graphql-api-construct.CustomSqlDataSourceStrategy">CustomSqlDataSourceStrategy</a>[]</code> | An array of custom Query or Mutation SQL commands to the data sources that resolves them. |
|
|
3612
3791
|
| <code><a href="#@aws-amplify/graphql-api-construct.IAmplifyGraphqlDefinition.property.referencedLambdaFunctions">referencedLambdaFunctions</a></code> | <code>{[ key: string ]: aws-cdk-lib.aws_lambda.IFunction}</code> | Retrieve the references to any lambda functions used in the definition. |
|
|
3613
3792
|
|
|
3614
3793
|
---
|
|
@@ -3621,10 +3800,9 @@ public readonly dataSourceStrategies: {[ key: string ]: DefaultDynamoDbModelData
|
|
|
3621
3800
|
|
|
3622
3801
|
- *Type:* {[ key: string ]: <a href="#@aws-amplify/graphql-api-construct.DefaultDynamoDbModelDataSourceStrategy">DefaultDynamoDbModelDataSourceStrategy</a> | <a href="#@aws-amplify/graphql-api-construct.AmplifyDynamoDbModelDataSourceStrategy">AmplifyDynamoDbModelDataSourceStrategy</a> | <a href="#@aws-amplify/graphql-api-construct.SQLLambdaModelDataSourceStrategy">SQLLambdaModelDataSourceStrategy</a>}
|
|
3623
3802
|
|
|
3624
|
-
Retrieve the datasource strategy mapping.
|
|
3803
|
+
Retrieve the datasource strategy mapping.
|
|
3625
3804
|
|
|
3626
|
-
|
|
3627
|
-
production systems. For production, use the static factory methods `fromString` or `fromFiles`.
|
|
3805
|
+
The default strategy is to use DynamoDB from CloudFormation.
|
|
3628
3806
|
|
|
3629
3807
|
---
|
|
3630
3808
|
|
|
@@ -3652,6 +3830,18 @@ Return the schema definition as a graphql string, with amplify directives allowe
|
|
|
3652
3830
|
|
|
3653
3831
|
---
|
|
3654
3832
|
|
|
3833
|
+
##### `customSqlDataSourceStrategies`<sup>Optional</sup> <a name="customSqlDataSourceStrategies" id="@aws-amplify/graphql-api-construct.IAmplifyGraphqlDefinition.property.customSqlDataSourceStrategies"></a>
|
|
3834
|
+
|
|
3835
|
+
```typescript
|
|
3836
|
+
public readonly customSqlDataSourceStrategies: CustomSqlDataSourceStrategy[];
|
|
3837
|
+
```
|
|
3838
|
+
|
|
3839
|
+
- *Type:* <a href="#@aws-amplify/graphql-api-construct.CustomSqlDataSourceStrategy">CustomSqlDataSourceStrategy</a>[]
|
|
3840
|
+
|
|
3841
|
+
An array of custom Query or Mutation SQL commands to the data sources that resolves them.
|
|
3842
|
+
|
|
3843
|
+
---
|
|
3844
|
+
|
|
3655
3845
|
##### `referencedLambdaFunctions`<sup>Optional</sup> <a name="referencedLambdaFunctions" id="@aws-amplify/graphql-api-construct.IAmplifyGraphqlDefinition.property.referencedLambdaFunctions"></a>
|
|
3656
3846
|
|
|
3657
3847
|
```typescript
|
|
@@ -98,5 +98,5 @@ class AmplifyDynamoDbTableWrapper {
|
|
|
98
98
|
}
|
|
99
99
|
exports.AmplifyDynamoDbTableWrapper = AmplifyDynamoDbTableWrapper;
|
|
100
100
|
_a = JSII_RTTI_SYMBOL_1;
|
|
101
|
-
AmplifyDynamoDbTableWrapper[_a] = { fqn: "@aws-amplify/graphql-api-construct.AmplifyDynamoDbTableWrapper", version: "1.
|
|
101
|
+
AmplifyDynamoDbTableWrapper[_a] = { fqn: "@aws-amplify/graphql-api-construct.AmplifyDynamoDbTableWrapper", version: "1.5.0" };
|
|
102
102
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW1wbGlmeS1keW5hbW9kYi10YWJsZS13cmFwcGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2FtcGxpZnktZHluYW1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uUHJvdGVjdGlvbkVuYWJsZWQpO1xuICB9XG59XG4iXX0=
|
|
@@ -84,13 +84,6 @@ export declare class AmplifyGraphqlApi extends Construct {
|
|
|
84
84
|
* @param props the properties used to configure the generated api.
|
|
85
85
|
*/
|
|
86
86
|
constructor(scope: Construct, id: string, props: AmplifyGraphqlApiProps);
|
|
87
|
-
/**
|
|
88
|
-
* Extends executeTransformConfig with fields for provisioning a SQL Lambda
|
|
89
|
-
* @param executeTransformConfig the executeTransformConfig to extend
|
|
90
|
-
* @param dataSourceDefinition the SQLLambdaModelDataSourceStrategy containing the SQL connection values to add to the transform config
|
|
91
|
-
* @returns the extended configuration that includes SQL DB connection information
|
|
92
|
-
*/
|
|
93
|
-
private extendTransformConfig;
|
|
94
87
|
/**
|
|
95
88
|
* Stores graphql api output to be used for client config generation
|
|
96
89
|
* @param outputStorageStrategy Strategy to store construct outputs. If no strategy is provided a default strategy will be used.
|