@aws-amplify/graphql-transformer-interfaces
Advanced tools
Comparing version 1.8.1-siwa-update.1 to 1.8.1-siwa-update.2
@@ -6,2 +6,10 @@ # Change Log | ||
## [1.8.1-siwa-update.2](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-interfaces@1.8.1-siwa-update.1...@aws-amplify/graphql-transformer-interfaces@1.8.1-siwa-update.2) (2021-08-17) | ||
**Note:** Version bump only for package @aws-amplify/graphql-transformer-interfaces | ||
## [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) | ||
@@ -8,0 +16,0 @@ |
@@ -12,3 +12,3 @@ import { CfnResource, Construct, IAsset, IConstruct } from '@aws-cdk/core'; | ||
} | ||
export interface SearchableDataSourceOptions extends DataSourceOptions { | ||
export interface ElasticSearchDataSourceOptions 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, SearchableDataSourceOptions, MappingTemplateProvider } from './graphql-api-provider'; | ||
import { AppSyncFunctionConfigurationProvider, DataSourceOptions, ElasticSearchDataSourceOptions, 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; | ||
addSearchableDataSource(name: string, endpoint: string, region: string, options?: SearchableDataSourceOptions, stack?: Stack): BaseDataSource; | ||
addElasticSearchDataSource(name: string, endpoint: string, region: string, options?: ElasticSearchDataSourceOptions, 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.1", | ||
"version": "1.8.1-siwa-update.2", | ||
"description": "Amplify GraphQL transformer interface definitions", | ||
@@ -64,3 +64,3 @@ "repository": { | ||
}, | ||
"gitHead": "908a5e820e5d0263b606c339aac83b1e673ef736" | ||
"gitHead": "0b1bea332d83922a6c5b1ba825f1657dc3296536" | ||
} |
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 SearchableDataSourceOptions extends DataSourceOptions { | ||
export interface ElasticSearchDataSourceOptions extends DataSourceOptions { | ||
/** | ||
* ServiceRole for the Amazon OpenSearch | ||
* ServiceRole for the Amazon Elasticsearch | ||
*/ | ||
@@ -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,7 +17,8 @@ import { ITable } from '@aws-cdk/aws-dynamodb'; | ||
DataSourceOptions, | ||
SearchableDataSourceOptions, | ||
MappingTemplateProvider, | ||
ElasticSearchDataSourceOptions, | ||
MappingTemplateProvider | ||
} from './graphql-api-provider'; | ||
import { IRole } from '@aws-cdk/aws-iam'; | ||
export interface TransformHostProvider { | ||
@@ -30,7 +31,7 @@ setAPI(api: GraphqlApiBase): void; | ||
addLambdaDataSource(name: string, lambdaFunction: IFunction, options?: DataSourceOptions, stack?: Stack): LambdaDataSource; | ||
addSearchableDataSource( | ||
addElasticSearchDataSource( | ||
name: string, | ||
endpoint: string, | ||
region: string, | ||
options?: SearchableDataSourceOptions, | ||
options?: ElasticSearchDataSourceOptions, | ||
stack?: Stack, | ||
@@ -37,0 +38,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
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
801799