@aws-amplify/graphql-transformer-interfaces
Advanced tools
Comparing version 1.8.1-siwa-update.0 to 1.8.1-siwa-update.1
@@ -6,2 +6,10 @@ # Change Log | ||
## [1.8.1-siwa-update.1](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-interfaces@1.8.1-siwa-update.0...@aws-amplify/graphql-transformer-interfaces@1.8.1-siwa-update.1) (2021-08-16) | ||
**Note:** Version bump only for package @aws-amplify/graphql-transformer-interfaces | ||
## [1.8.1-siwa-update.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-interfaces@1.8.0...@aws-amplify/graphql-transformer-interfaces@1.8.1-siwa-update.0) (2021-08-05) | ||
@@ -8,0 +16,0 @@ |
@@ -12,3 +12,3 @@ import { CfnResource, Construct, IAsset, IConstruct } from '@aws-cdk/core'; | ||
} | ||
export interface ElasticSearchDataSourceOptions extends DataSourceOptions { | ||
export interface SearchableDataSourceOptions extends DataSourceOptions { | ||
readonly serviceRole: IRole; | ||
@@ -15,0 +15,0 @@ } |
@@ -5,3 +5,3 @@ import { Duration, Stack } from '@aws-cdk/core'; | ||
import { IFunction, ILayerVersion, Runtime } from '@aws-cdk/aws-lambda'; | ||
import { AppSyncFunctionConfigurationProvider, DataSourceOptions, ElasticSearchDataSourceOptions, MappingTemplateProvider } from './graphql-api-provider'; | ||
import { AppSyncFunctionConfigurationProvider, DataSourceOptions, SearchableDataSourceOptions, MappingTemplateProvider } from './graphql-api-provider'; | ||
import { IRole } from '@aws-cdk/aws-iam'; | ||
@@ -14,3 +14,3 @@ export interface TransformHostProvider { | ||
addLambdaDataSource(name: string, lambdaFunction: IFunction, options?: DataSourceOptions, stack?: Stack): LambdaDataSource; | ||
addElasticSearchDataSource(name: string, endpoint: string, region: string, options?: ElasticSearchDataSourceOptions, stack?: Stack): BaseDataSource; | ||
addSearchableDataSource(name: string, endpoint: string, region: string, options?: SearchableDataSourceOptions, stack?: Stack): BaseDataSource; | ||
addAppSyncFunction: (name: string, requestMappingTemplate: MappingTemplateProvider, responseMappingTemplate: MappingTemplateProvider, dataSourceName: string, stack?: Stack) => AppSyncFunctionConfigurationProvider; | ||
@@ -17,0 +17,0 @@ addResolver: (typeName: string, fieldName: string, requestMappingTemplate: MappingTemplateProvider, responseMappingTemplate: MappingTemplateProvider, dataSourceName?: string, pipelineConfig?: string[], stack?: Stack) => CfnResolver; |
{ | ||
"name": "@aws-amplify/graphql-transformer-interfaces", | ||
"version": "1.8.1-siwa-update.0", | ||
"version": "1.8.1-siwa-update.1", | ||
"description": "Amplify GraphQL transformer interface definitions", | ||
@@ -64,3 +64,3 @@ "repository": { | ||
}, | ||
"gitHead": "28c2069c1691787d25d7c4ad39c02d08a8da1c48" | ||
"gitHead": "908a5e820e5d0263b606c339aac83b1e673ef736" | ||
} |
import { CfnResource, Construct, IAsset, IConstruct } from '@aws-cdk/core'; | ||
import { Grant, IGrantable, IRole } from '@aws-cdk/aws-iam'; | ||
import {TransformHostProvider} from './transform-host-provider'; | ||
import { TransformHostProvider } from './transform-host-provider'; | ||
@@ -24,5 +24,5 @@ export interface AppSyncFunctionConfigurationProvider extends IConstruct { | ||
export interface ElasticSearchDataSourceOptions extends DataSourceOptions { | ||
export interface SearchableDataSourceOptions extends DataSourceOptions { | ||
/** | ||
* ServiceRole for the Amazon Elasticsearch | ||
* ServiceRole for the Amazon OpenSearch | ||
*/ | ||
@@ -29,0 +29,0 @@ readonly serviceRole: IRole; |
@@ -9,3 +9,3 @@ import { Duration, Stack } from '@aws-cdk/core'; | ||
LambdaDataSource, | ||
NoneDataSource | ||
NoneDataSource, | ||
} from '@aws-cdk/aws-appsync'; | ||
@@ -17,8 +17,7 @@ import { ITable } from '@aws-cdk/aws-dynamodb'; | ||
DataSourceOptions, | ||
ElasticSearchDataSourceOptions, | ||
MappingTemplateProvider | ||
SearchableDataSourceOptions, | ||
MappingTemplateProvider, | ||
} from './graphql-api-provider'; | ||
import { IRole } from '@aws-cdk/aws-iam'; | ||
export interface TransformHostProvider { | ||
@@ -31,7 +30,7 @@ setAPI(api: GraphqlApiBase): void; | ||
addLambdaDataSource(name: string, lambdaFunction: IFunction, options?: DataSourceOptions, stack?: Stack): LambdaDataSource; | ||
addElasticSearchDataSource( | ||
addSearchableDataSource( | ||
name: string, | ||
endpoint: string, | ||
region: string, | ||
options?: ElasticSearchDataSourceOptions, | ||
options?: SearchableDataSourceOptions, | ||
stack?: Stack, | ||
@@ -38,0 +37,0 @@ ): BaseDataSource; |
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
801465