Class ElasticsearchDataSource.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.ElasticsearchDataSource.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ElasticsearchDataSource>
- Enclosing class:
ElasticsearchDataSource
@Stability(Deprecated)
@Deprecated
public static final class ElasticsearchDataSource.Builder
extends Object
implements software.amazon.jsii.Builder<ElasticsearchDataSource>
Deprecated.
(deprecated) A fluent builder for
ElasticsearchDataSource.-
Method Summary
Modifier and TypeMethodDescriptionapi(IGraphQLApiRef api) Deprecated.The API to attach this data source to.build()Deprecated.Deprecated.description(String description) Deprecated.the description of the data source.Deprecated.metricsConfig(DataSourceMetricsConfig metricsConfig) Deprecated.Whether to enable enhanced metrics of the data source Value will be ignored, ifenhancedMetricsConfig.dataSourceLevelMetricsBehavioron AppSync GraphqlApi construct is set toFULL_REQUEST_DATA_SOURCE_METRICS.Deprecated.The name of the data source.serviceRole(IRole serviceRole) Deprecated.The IAM service role to be assumed by AppSync to interact with the data source.
-
Method Details
-
create
@Stability(Deprecated) @Deprecated public static ElasticsearchDataSource.Builder create(software.constructs.Construct scope, String id) Deprecated.- Parameters:
scope- This parameter is required.id- This parameter is required.- Returns:
- a new instance of
ElasticsearchDataSource.Builder.
-
api
Deprecated.The API to attach this data source to.- Parameters:
api- The API to attach this data source to. This parameter is required.- Returns:
this
-
description
Deprecated.the description of the data source.Default: - None
- Parameters:
description- the description of the data source. This parameter is required.- Returns:
this
-
metricsConfig
@Stability(Stable) public ElasticsearchDataSource.Builder metricsConfig(DataSourceMetricsConfig metricsConfig) Deprecated.Whether to enable enhanced metrics of the data source Value will be ignored, ifenhancedMetricsConfig.dataSourceLevelMetricsBehavioron AppSync GraphqlApi construct is set toFULL_REQUEST_DATA_SOURCE_METRICS.Default: - no metrics configuration
- Parameters:
metricsConfig- Whether to enable enhanced metrics of the data source Value will be ignored, ifenhancedMetricsConfig.dataSourceLevelMetricsBehavioron AppSync GraphqlApi construct is set toFULL_REQUEST_DATA_SOURCE_METRICS. This parameter is required.- Returns:
this
-
name
Deprecated.The name of the data source.Default: - id of data source
- Parameters:
name- The name of the data source. This parameter is required.- Returns:
this
-
serviceRole
Deprecated.The IAM service role to be assumed by AppSync to interact with the data source.Default: - Create a new role
- Parameters:
serviceRole- The IAM service role to be assumed by AppSync to interact with the data source. This parameter is required.- Returns:
this
-
domain
Deprecated.(deprecated) The elasticsearch domain containing the endpoint for the data source.- Parameters:
domain- The elasticsearch domain containing the endpoint for the data source. This parameter is required.- Returns:
this
-
build
Deprecated.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ElasticsearchDataSource>- Returns:
- a newly built instance of
ElasticsearchDataSource.
-