DataSourceArgs constructor
- required Input<
String> apiId, - Input<
String?> ? description, - Input<
DataSourceDynamodbConfig?> ? dynamodbConfig, - Input<
DataSourceElasticsearchConfig?> ? elasticsearchConfig, - Input<
DataSourceEventBridgeConfig?> ? eventBridgeConfig, - Input<
DataSourceHttpConfig?> ? httpConfig, - Input<
DataSourceLambdaConfig?> ? lambdaConfig, - Input<
String?> ? name, - Input<
DataSourceOpensearchserviceConfig?> ? opensearchserviceConfig, - Input<
String?> ? region, - Input<
DataSourceRelationalDatabaseConfig?> ? relationalDatabaseConfig, - Input<
String?> ? serviceRoleArn, - required Input<
String> type,
Creates a new DataSourceArgs.
apiId API ID for the GraphQL API for the data source.
description Description of the data source.
dynamodbConfig DynamoDB settings. See dynamodbConfig Block for details.
elasticsearchConfig Amazon Elasticsearch settings. See elasticsearchConfig Block for details.
eventBridgeConfig AWS EventBridge settings. See eventBridgeConfig Block for details.
httpConfig HTTP settings. See httpConfig Block for details.
lambdaConfig AWS Lambda settings. See lambdaConfig Block for details.
name User-supplied name for the data source.
opensearchserviceConfig Amazon OpenSearch Service settings. See opensearchserviceConfig Block for details.
region Region where this resource will be managed. Defaults to the Region set in the provider configuration.
relationalDatabaseConfig AWS RDS settings. See relationalDatabaseConfig Block for details.
serviceRoleArn IAM service role ARN for the data source. Required if type is specified as AWS_LAMBDA, AMAZON_DYNAMODB, AMAZON_ELASTICSEARCH, AMAZON_EVENTBRIDGE, or AMAZON_OPENSEARCH_SERVICE.
type Type of the Data Source. Valid values: AWS_LAMBDA, AMAZON_DYNAMODB, AMAZON_ELASTICSEARCH, HTTP, NONE, RELATIONAL_DATABASE, AMAZON_EVENTBRIDGE, AMAZON_OPENSEARCH_SERVICE.
Implementation
const DataSourceArgs({
required this.apiId,
this.description,
this.dynamodbConfig,
this.elasticsearchConfig,
this.eventBridgeConfig,
this.httpConfig,
this.lambdaConfig,
this.name,
this.opensearchserviceConfig,
this.region,
this.relationalDatabaseConfig,
this.serviceRoleArn,
required this.type,
});