Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a DataSource
object.
Synopsis
- data CreateDataSource = CreateDataSource' {
- serviceRoleArn :: Maybe Text
- relationalDatabaseConfig :: Maybe RelationalDatabaseDataSourceConfig
- dynamodbConfig :: Maybe DynamodbDataSourceConfig
- httpConfig :: Maybe HttpDataSourceConfig
- openSearchServiceConfig :: Maybe OpenSearchServiceDataSourceConfig
- lambdaConfig :: Maybe LambdaDataSourceConfig
- description :: Maybe Text
- elasticsearchConfig :: Maybe ElasticsearchDataSourceConfig
- apiId :: Text
- name :: Text
- type' :: DataSourceType
- newCreateDataSource :: Text -> Text -> DataSourceType -> CreateDataSource
- createDataSource_serviceRoleArn :: Lens' CreateDataSource (Maybe Text)
- createDataSource_relationalDatabaseConfig :: Lens' CreateDataSource (Maybe RelationalDatabaseDataSourceConfig)
- createDataSource_dynamodbConfig :: Lens' CreateDataSource (Maybe DynamodbDataSourceConfig)
- createDataSource_httpConfig :: Lens' CreateDataSource (Maybe HttpDataSourceConfig)
- createDataSource_openSearchServiceConfig :: Lens' CreateDataSource (Maybe OpenSearchServiceDataSourceConfig)
- createDataSource_lambdaConfig :: Lens' CreateDataSource (Maybe LambdaDataSourceConfig)
- createDataSource_description :: Lens' CreateDataSource (Maybe Text)
- createDataSource_elasticsearchConfig :: Lens' CreateDataSource (Maybe ElasticsearchDataSourceConfig)
- createDataSource_apiId :: Lens' CreateDataSource Text
- createDataSource_name :: Lens' CreateDataSource Text
- createDataSource_type :: Lens' CreateDataSource DataSourceType
- data CreateDataSourceResponse = CreateDataSourceResponse' {}
- newCreateDataSourceResponse :: Int -> CreateDataSourceResponse
- createDataSourceResponse_dataSource :: Lens' CreateDataSourceResponse (Maybe DataSource)
- createDataSourceResponse_httpStatus :: Lens' CreateDataSourceResponse Int
Creating a Request
data CreateDataSource Source #
See: newCreateDataSource
smart constructor.
CreateDataSource' | |
|
Instances
:: Text | |
-> Text | |
-> DataSourceType | |
-> CreateDataSource |
Create a value of CreateDataSource
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:serviceRoleArn:CreateDataSource'
, createDataSource_serviceRoleArn
- The Identity and Access Management service role ARN for the data source.
The system assumes this role when accessing the data source.
$sel:relationalDatabaseConfig:CreateDataSource'
, createDataSource_relationalDatabaseConfig
- Relational database settings.
$sel:dynamodbConfig:CreateDataSource'
, createDataSource_dynamodbConfig
- Amazon DynamoDB settings.
$sel:httpConfig:CreateDataSource'
, createDataSource_httpConfig
- HTTP endpoint settings.
$sel:openSearchServiceConfig:CreateDataSource'
, createDataSource_openSearchServiceConfig
- Amazon OpenSearch Service settings.
$sel:lambdaConfig:CreateDataSource'
, createDataSource_lambdaConfig
- Amazon Web Services Lambda settings.
$sel:description:CreateDataSource'
, createDataSource_description
- A description of the DataSource
.
$sel:elasticsearchConfig:CreateDataSource'
, createDataSource_elasticsearchConfig
- Amazon OpenSearch Service settings.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. For new data sources, use CreateDataSourceRequest$openSearchServiceConfig to create an OpenSearch data source.
$sel:apiId:CreateDataSource'
, createDataSource_apiId
- The API ID for the GraphQL API for the DataSource
.
$sel:name:CreateDataSource'
, createDataSource_name
- A user-supplied name for the DataSource
.
$sel:type':CreateDataSource'
, createDataSource_type
- The type of the DataSource
.
Request Lenses
createDataSource_serviceRoleArn :: Lens' CreateDataSource (Maybe Text) Source #
The Identity and Access Management service role ARN for the data source. The system assumes this role when accessing the data source.
createDataSource_relationalDatabaseConfig :: Lens' CreateDataSource (Maybe RelationalDatabaseDataSourceConfig) Source #
Relational database settings.
createDataSource_dynamodbConfig :: Lens' CreateDataSource (Maybe DynamodbDataSourceConfig) Source #
Amazon DynamoDB settings.
createDataSource_httpConfig :: Lens' CreateDataSource (Maybe HttpDataSourceConfig) Source #
HTTP endpoint settings.
createDataSource_openSearchServiceConfig :: Lens' CreateDataSource (Maybe OpenSearchServiceDataSourceConfig) Source #
Amazon OpenSearch Service settings.
createDataSource_lambdaConfig :: Lens' CreateDataSource (Maybe LambdaDataSourceConfig) Source #
Amazon Web Services Lambda settings.
createDataSource_description :: Lens' CreateDataSource (Maybe Text) Source #
A description of the DataSource
.
createDataSource_elasticsearchConfig :: Lens' CreateDataSource (Maybe ElasticsearchDataSourceConfig) Source #
Amazon OpenSearch Service settings.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. For new data sources, use CreateDataSourceRequest$openSearchServiceConfig to create an OpenSearch data source.
createDataSource_apiId :: Lens' CreateDataSource Text Source #
The API ID for the GraphQL API for the DataSource
.
createDataSource_name :: Lens' CreateDataSource Text Source #
A user-supplied name for the DataSource
.
createDataSource_type :: Lens' CreateDataSource DataSourceType Source #
The type of the DataSource
.
Destructuring the Response
data CreateDataSourceResponse Source #
See: newCreateDataSourceResponse
smart constructor.
CreateDataSourceResponse' | |
|
Instances
newCreateDataSourceResponse Source #
Create a value of CreateDataSourceResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dataSource:CreateDataSourceResponse'
, createDataSourceResponse_dataSource
- The DataSource
object.
$sel:httpStatus:CreateDataSourceResponse'
, createDataSourceResponse_httpStatus
- The response's http status code.
Response Lenses
createDataSourceResponse_dataSource :: Lens' CreateDataSourceResponse (Maybe DataSource) Source #
The DataSource
object.
createDataSourceResponse_httpStatus :: Lens' CreateDataSourceResponse Int Source #
The response's http status code.