public static interface DataSource.Builder extends SdkPojo, CopyableBuilder<DataSource.Builder,DataSource>
equalsBySdkFields, sdkFieldscopyapplyMutation, buildDataSource.Builder dataSourceArn(String dataSourceArn)
The data source Amazon Resource Name (ARN).
dataSourceArn - The data source Amazon Resource Name (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.
AWS_LAMBDA: The data source is an Lambda function.
AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service domain.
AMAZON_OPENSEARCH_SERVICE: The data source is an Amazon OpenSearch Service domain.
AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge configuration.
NONE: There is no data source. Use this type when you want to invoke a GraphQL operation without connecting to a data source, such as when you're performing data transformation with resolvers or invoking a subscription 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.
AWS_LAMBDA: The data source is an Lambda function.
AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service domain.
AMAZON_OPENSEARCH_SERVICE: The data source is an Amazon OpenSearch Service domain.
AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge configuration.
NONE: There is no data source. Use this type when you want to invoke a GraphQL operation without connecting to a data source, such as when you're performing data transformation with resolvers or invoking a subscription 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.
AWS_LAMBDA: The data source is an Lambda function.
AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service domain.
AMAZON_OPENSEARCH_SERVICE: The data source is an Amazon OpenSearch Service domain.
AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge configuration.
NONE: There is no data source. Use this type when you want to invoke a GraphQL operation without connecting to a data source, such as when you're performing data transformation with resolvers or invoking a subscription 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.
AWS_LAMBDA: The data source is an Lambda function.
AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service domain.
AMAZON_OPENSEARCH_SERVICE: The data source is an Amazon OpenSearch Service domain.
AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge configuration.
NONE: There is no data source. Use this type when you want to invoke a GraphQL operation without connecting to a data source, such as when you're performing data transformation with resolvers or invoking a subscription 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 Identity and Access Management (IAM) service role Amazon Resource Name (ARN) for the data source. The system assumes this role when accessing the data source.
serviceRoleArn - The Identity and Access Management (IAM) service role Amazon Resource Name (ARN) for the data source.
The system assumes this role when accessing the data source.DataSource.Builder dynamodbConfig(DynamodbDataSourceConfig dynamodbConfig)
DynamoDB settings.
dynamodbConfig - DynamoDB settings.default DataSource.Builder dynamodbConfig(Consumer<DynamodbDataSourceConfig.Builder> dynamodbConfig)
DynamoDB settings.
This is a convenience method 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)
Lambda settings.
lambdaConfig - Lambda settings.default DataSource.Builder lambdaConfig(Consumer<LambdaDataSourceConfig.Builder> lambdaConfig)
Lambda settings.
This is a convenience method 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 OpenSearch Service settings.
elasticsearchConfig - Amazon OpenSearch Service settings.default DataSource.Builder elasticsearchConfig(Consumer<ElasticsearchDataSourceConfig.Builder> elasticsearchConfig)
Amazon OpenSearch Service settings.
This is a convenience method 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 openSearchServiceConfig(OpenSearchServiceDataSourceConfig openSearchServiceConfig)
Amazon OpenSearch Service settings.
openSearchServiceConfig - Amazon OpenSearch Service settings.default DataSource.Builder openSearchServiceConfig(Consumer<OpenSearchServiceDataSourceConfig.Builder> openSearchServiceConfig)
Amazon OpenSearch Service settings.
This is a convenience method that creates an instance of theOpenSearchServiceDataSourceConfig.Builder avoiding the need to create one manually via
OpenSearchServiceDataSourceConfig.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to openSearchServiceConfig(OpenSearchServiceDataSourceConfig).
openSearchServiceConfig - a consumer that will call methods on OpenSearchServiceDataSourceConfig.BuilderopenSearchServiceConfig(OpenSearchServiceDataSourceConfig)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 method 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 method 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)DataSource.Builder eventBridgeConfig(EventBridgeDataSourceConfig eventBridgeConfig)
Amazon EventBridge settings.
eventBridgeConfig - Amazon EventBridge settings.default DataSource.Builder eventBridgeConfig(Consumer<EventBridgeDataSourceConfig.Builder> eventBridgeConfig)
Amazon EventBridge settings.
This is a convenience method that creates an instance of theEventBridgeDataSourceConfig.Builder
avoiding the need to create one manually via EventBridgeDataSourceConfig.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to eventBridgeConfig(EventBridgeDataSourceConfig).
eventBridgeConfig - a consumer that will call methods on EventBridgeDataSourceConfig.BuildereventBridgeConfig(EventBridgeDataSourceConfig)Copyright © 2023. All rights reserved.