| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.AppSync.GetDataSource
Description
Retrieves a DataSource object.
Synopsis
- data GetDataSource = GetDataSource' {}
- newGetDataSource :: Text -> Text -> GetDataSource
- getDataSource_apiId :: Lens' GetDataSource Text
- getDataSource_name :: Lens' GetDataSource Text
- data GetDataSourceResponse = GetDataSourceResponse' {}
- newGetDataSourceResponse :: Int -> GetDataSourceResponse
- getDataSourceResponse_dataSource :: Lens' GetDataSourceResponse (Maybe DataSource)
- getDataSourceResponse_httpStatus :: Lens' GetDataSourceResponse Int
Creating a Request
data GetDataSource Source #
See: newGetDataSource smart constructor.
Constructors
| GetDataSource' | |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> GetDataSource |
Create a value of GetDataSource 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:
GetDataSource, getDataSource_apiId - The API ID.
GetDataSource, getDataSource_name - The name of the data source.
Request Lenses
getDataSource_apiId :: Lens' GetDataSource Text Source #
The API ID.
getDataSource_name :: Lens' GetDataSource Text Source #
The name of the data source.
Destructuring the Response
data GetDataSourceResponse Source #
See: newGetDataSourceResponse smart constructor.
Constructors
| GetDataSourceResponse' | |
Fields
| |
Instances
newGetDataSourceResponse Source #
Create a value of GetDataSourceResponse 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:GetDataSourceResponse', getDataSourceResponse_dataSource - The DataSource object.
$sel:httpStatus:GetDataSourceResponse', getDataSourceResponse_httpStatus - The response's http status code.
Response Lenses
getDataSourceResponse_dataSource :: Lens' GetDataSourceResponse (Maybe DataSource) Source #
The DataSource object.
getDataSourceResponse_httpStatus :: Lens' GetDataSourceResponse Int Source #
The response's http status code.