Interface BaseDataSourceProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
BackedDataSourceProps,DynamoDbDataSourceProps,ElasticsearchDataSourceProps,EventBridgeDataSourceProps,HttpDataSourceProps,LambdaDataSourceProps,NoneDataSourceProps,OpenSearchDataSourceProps,RdsDataSourceProps,RdsDataSourcePropsV2
- All Known Implementing Classes:
BackedDataSourceProps.Jsii$Proxy,BaseDataSourceProps.Jsii$Proxy,DynamoDbDataSourceProps.Jsii$Proxy,ElasticsearchDataSourceProps.Jsii$Proxy,EventBridgeDataSourceProps.Jsii$Proxy,HttpDataSourceProps.Jsii$Proxy,LambdaDataSourceProps.Jsii$Proxy,NoneDataSourceProps.Jsii$Proxy,OpenSearchDataSourceProps.Jsii$Proxy,RdsDataSourceProps.Jsii$Proxy,RdsDataSourcePropsV2.Jsii$Proxy
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:19:38.270Z")
@Stability(Stable)
public interface BaseDataSourceProps
extends software.amazon.jsii.JsiiSerializable
Base properties for an AppSync datasource.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appsync.*;
import software.amazon.awscdk.interfaces.appsync.*;
IGraphQLApiRef graphQLApiRef;
BaseDataSourceProps baseDataSourceProps = BaseDataSourceProps.builder()
.api(graphQLApiRef)
// the properties below are optional
.description("description")
.metricsConfig(DataSourceMetricsConfig.ENABLED)
.name("name")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forBaseDataSourcePropsstatic final classAn implementation forBaseDataSourceProps -
Method Summary
Modifier and TypeMethodDescriptionstatic BaseDataSourceProps.Builderbuilder()getApi()The API to attach this data source to.default Stringthe description of the data source.default DataSourceMetricsConfigWhether 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 StringgetName()The name of the data source.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getApi
The API to attach this data source to. -
getDescription
the description of the data source.Default: - None
-
getMetricsConfig
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
-
getName
The name of the data source.Default: - id of data source
-
builder
- Returns:
- a
BaseDataSourceProps.BuilderofBaseDataSourceProps
-