Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Creates a DataSource
object.
Synopsis
- createDataSource :: Text -> Text -> DataSourceType -> CreateDataSource
- data CreateDataSource
- cdsServiceRoleARN :: Lens' CreateDataSource (Maybe Text)
- cdsDynamodbConfig :: Lens' CreateDataSource (Maybe DynamodbDataSourceConfig)
- cdsLambdaConfig :: Lens' CreateDataSource (Maybe LambdaDataSourceConfig)
- cdsDescription :: Lens' CreateDataSource (Maybe Text)
- cdsElasticsearchConfig :: Lens' CreateDataSource (Maybe ElasticsearchDataSourceConfig)
- cdsApiId :: Lens' CreateDataSource Text
- cdsName :: Lens' CreateDataSource Text
- cdsType :: Lens' CreateDataSource DataSourceType
- createDataSourceResponse :: Int -> CreateDataSourceResponse
- data CreateDataSourceResponse
- cdsrsDataSource :: Lens' CreateDataSourceResponse (Maybe DataSource)
- cdsrsResponseStatus :: Lens' CreateDataSourceResponse Int
Creating a Request
Creates a value of CreateDataSource
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cdsServiceRoleARN
- The IAM service role ARN for the data source. The system assumes this role when accessing the data source.cdsDynamodbConfig
- DynamoDB settings.cdsLambdaConfig
- AWS Lambda settings.cdsDescription
- A description of theDataSource
.cdsElasticsearchConfig
- Amazon Elasticsearch settings.cdsApiId
- The API ID for the GraphQL API for theDataSource
.cdsName
- A user-supplied name for theDataSource
.cdsType
- The type of theDataSource
.
data CreateDataSource Source #
See: createDataSource
smart constructor.
Instances
Request Lenses
cdsServiceRoleARN :: Lens' CreateDataSource (Maybe Text) Source #
The IAM service role ARN for the data source. The system assumes this role when accessing the data source.
cdsDynamodbConfig :: Lens' CreateDataSource (Maybe DynamodbDataSourceConfig) Source #
DynamoDB settings.
cdsLambdaConfig :: Lens' CreateDataSource (Maybe LambdaDataSourceConfig) Source #
AWS Lambda settings.
cdsDescription :: Lens' CreateDataSource (Maybe Text) Source #
A description of the DataSource
.
cdsElasticsearchConfig :: Lens' CreateDataSource (Maybe ElasticsearchDataSourceConfig) Source #
Amazon Elasticsearch settings.
cdsType :: Lens' CreateDataSource DataSourceType Source #
The type of the DataSource
.
Destructuring the Response
createDataSourceResponse Source #
Creates a value of CreateDataSourceResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cdsrsDataSource
- TheDataSource
object.cdsrsResponseStatus
- -- | The response status code.
data CreateDataSourceResponse Source #
See: createDataSourceResponse
smart constructor.
Instances
Response Lenses
cdsrsDataSource :: Lens' CreateDataSourceResponse (Maybe DataSource) Source #
The DataSource
object.
cdsrsResponseStatus :: Lens' CreateDataSourceResponse Int Source #
- - | The response status code.