public static interface DataSource.Builder extends SdkPojo, CopyableBuilder<DataSource.Builder,DataSource>
copyapplyMutation, buildDataSource.Builder dataSourceArn(String dataSourceArn)
The data source ARN.
dataSourceArn - The data source ARN.DataSource.Builder name(String name)
The name of the data source.
name - The name of the data source.DataSource.Builder description(String description)
The description of the data source.
description - The description of the data source.DataSource.Builder type(String type)
The type of the data source.
AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
AMAZON_ELASTICSEARCH: The data source is an Amazon Elasticsearch Service domain.
AWS_LAMBDA: The data source is an AWS Lambda function.
NONE: There is no data source. This type is used when you wish to invoke a GraphQL operation without connecting to a data source, such as performing data transformation with resolvers or triggering a subscription to be invoked from a mutation.
HTTP: The data source is an HTTP endpoint.
RELATIONAL_DATABASE: The data source is a relational database.
type - The type of the data source.
AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
AMAZON_ELASTICSEARCH: The data source is an Amazon Elasticsearch Service domain.
AWS_LAMBDA: The data source is an AWS Lambda function.
NONE: There is no data source. This type is used when you wish to invoke a GraphQL operation without connecting to a data source, such as performing data transformation with resolvers or triggering a subscription to be invoked from a mutation.
HTTP: The data source is an HTTP endpoint.
RELATIONAL_DATABASE: The data source is a relational database.
DataSourceType,
DataSourceTypeDataSource.Builder type(DataSourceType type)
The type of the data source.
AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
AMAZON_ELASTICSEARCH: The data source is an Amazon Elasticsearch Service domain.
AWS_LAMBDA: The data source is an AWS Lambda function.
NONE: There is no data source. This type is used when you wish to invoke a GraphQL operation without connecting to a data source, such as performing data transformation with resolvers or triggering a subscription to be invoked from a mutation.
HTTP: The data source is an HTTP endpoint.
RELATIONAL_DATABASE: The data source is a relational database.
type - The type of the data source.
AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
AMAZON_ELASTICSEARCH: The data source is an Amazon Elasticsearch Service domain.
AWS_LAMBDA: The data source is an AWS Lambda function.
NONE: There is no data source. This type is used when you wish to invoke a GraphQL operation without connecting to a data source, such as performing data transformation with resolvers or triggering a subscription to be invoked from a mutation.
HTTP: The data source is an HTTP endpoint.
RELATIONAL_DATABASE: The data source is a relational database.
DataSourceType,
DataSourceTypeDataSource.Builder serviceRoleArn(String serviceRoleArn)
The AWS IAM service role ARN for the data source. The system assumes this role when accessing the data source.
serviceRoleArn - The AWS IAM service role ARN for the data source. The system assumes this role when accessing the data
source.DataSource.Builder dynamodbConfig(DynamodbDataSourceConfig dynamodbConfig)
Amazon DynamoDB settings.
dynamodbConfig - Amazon DynamoDB settings.default DataSource.Builder dynamodbConfig(Consumer<DynamodbDataSourceConfig.Builder> dynamodbConfig)
Amazon DynamoDB settings.
This is a convenience that creates an instance of theDynamodbDataSourceConfig.Builder avoiding the
need to create one manually via DynamodbDataSourceConfig.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to dynamodbConfig(DynamodbDataSourceConfig).dynamodbConfig - a consumer that will call methods on DynamodbDataSourceConfig.BuilderdynamodbConfig(DynamodbDataSourceConfig)DataSource.Builder lambdaConfig(LambdaDataSourceConfig lambdaConfig)
AWS Lambda settings.
lambdaConfig - AWS Lambda settings.default DataSource.Builder lambdaConfig(Consumer<LambdaDataSourceConfig.Builder> lambdaConfig)
AWS Lambda settings.
This is a convenience that creates an instance of theLambdaDataSourceConfig.Builder avoiding the
need to create one manually via LambdaDataSourceConfig.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to lambdaConfig(LambdaDataSourceConfig).lambdaConfig - a consumer that will call methods on LambdaDataSourceConfig.BuilderlambdaConfig(LambdaDataSourceConfig)DataSource.Builder elasticsearchConfig(ElasticsearchDataSourceConfig elasticsearchConfig)
Amazon Elasticsearch Service settings.
elasticsearchConfig - Amazon Elasticsearch Service settings.default DataSource.Builder elasticsearchConfig(Consumer<ElasticsearchDataSourceConfig.Builder> elasticsearchConfig)
Amazon Elasticsearch Service settings.
This is a convenience that creates an instance of theElasticsearchDataSourceConfig.Builder avoiding
the need to create one manually via ElasticsearchDataSourceConfig.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to elasticsearchConfig(ElasticsearchDataSourceConfig).elasticsearchConfig - a consumer that will call methods on ElasticsearchDataSourceConfig.BuilderelasticsearchConfig(ElasticsearchDataSourceConfig)DataSource.Builder httpConfig(HttpDataSourceConfig httpConfig)
HTTP endpoint settings.
httpConfig - HTTP endpoint settings.default DataSource.Builder httpConfig(Consumer<HttpDataSourceConfig.Builder> httpConfig)
HTTP endpoint settings.
This is a convenience that creates an instance of theHttpDataSourceConfig.Builder avoiding the need
to create one manually via HttpDataSourceConfig.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to httpConfig(HttpDataSourceConfig).httpConfig - a consumer that will call methods on HttpDataSourceConfig.BuilderhttpConfig(HttpDataSourceConfig)DataSource.Builder relationalDatabaseConfig(RelationalDatabaseDataSourceConfig relationalDatabaseConfig)
Relational database settings.
relationalDatabaseConfig - Relational database settings.default DataSource.Builder relationalDatabaseConfig(Consumer<RelationalDatabaseDataSourceConfig.Builder> relationalDatabaseConfig)
Relational database settings.
This is a convenience that creates an instance of theRelationalDatabaseDataSourceConfig.Builder
avoiding the need to create one manually via RelationalDatabaseDataSourceConfig.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to relationalDatabaseConfig(RelationalDatabaseDataSourceConfig)
.relationalDatabaseConfig - a consumer that will call methods on RelationalDatabaseDataSourceConfig.BuilderrelationalDatabaseConfig(RelationalDatabaseDataSourceConfig)Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.