Class NoneDataSource.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.NoneDataSource.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<NoneDataSource>
- Enclosing class:
NoneDataSource
@Stability(Stable)
public static final class NoneDataSource.Builder
extends Object
implements software.amazon.jsii.Builder<NoneDataSource>
A fluent builder for
NoneDataSource.-
Method Summary
Modifier and TypeMethodDescriptionapi(IGraphQLApiRef api) The API to attach this data source to.build()static NoneDataSource.Builderdescription(String description) the description of the data source.metricsConfig(DataSourceMetricsConfig 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.The name of the data source.
-
Method Details
-
create
@Stability(Stable) public static NoneDataSource.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- This parameter is required.id- This parameter is required.- Returns:
- a new instance of
NoneDataSource.Builder.
-
api
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
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 NoneDataSource.Builder metricsConfig(DataSourceMetricsConfig 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.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
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
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NoneDataSource>- Returns:
- a newly built instance of
NoneDataSource.
-