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 |
Assigns the DELETED status to a DataSource
, rendering it unusable.
After using the DeleteDataSource
operation, you can use the
GetDataSource operation to verify that the status of the DataSource
changed to DELETED.
Caution: The results of the DeleteDataSource
operation are
irreversible.
Synopsis
- data DeleteDataSource = DeleteDataSource' {
- dataSourceId :: Text
- newDeleteDataSource :: Text -> DeleteDataSource
- deleteDataSource_dataSourceId :: Lens' DeleteDataSource Text
- data DeleteDataSourceResponse = DeleteDataSourceResponse' {
- dataSourceId :: Maybe Text
- httpStatus :: Int
- newDeleteDataSourceResponse :: Int -> DeleteDataSourceResponse
- deleteDataSourceResponse_dataSourceId :: Lens' DeleteDataSourceResponse (Maybe Text)
- deleteDataSourceResponse_httpStatus :: Lens' DeleteDataSourceResponse Int
Creating a Request
data DeleteDataSource Source #
See: newDeleteDataSource
smart constructor.
DeleteDataSource' | |
|
Instances
Create a value of DeleteDataSource
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:dataSourceId:DeleteDataSource'
, deleteDataSource_dataSourceId
- A user-supplied ID that uniquely identifies the DataSource
.
Request Lenses
deleteDataSource_dataSourceId :: Lens' DeleteDataSource Text Source #
A user-supplied ID that uniquely identifies the DataSource
.
Destructuring the Response
data DeleteDataSourceResponse Source #
Represents the output of a DeleteDataSource
operation.
See: newDeleteDataSourceResponse
smart constructor.
DeleteDataSourceResponse' | |
|
Instances
newDeleteDataSourceResponse Source #
Create a value of DeleteDataSourceResponse
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:dataSourceId:DeleteDataSource'
, deleteDataSourceResponse_dataSourceId
- A user-supplied ID that uniquely identifies the DataSource
. This value
should be identical to the value of the DataSourceID
in the request.
$sel:httpStatus:DeleteDataSourceResponse'
, deleteDataSourceResponse_httpStatus
- The response's http status code.
Response Lenses
deleteDataSourceResponse_dataSourceId :: Lens' DeleteDataSourceResponse (Maybe Text) Source #
A user-supplied ID that uniquely identifies the DataSource
. This value
should be identical to the value of the DataSourceID
in the request.
deleteDataSourceResponse_httpStatus :: Lens' DeleteDataSourceResponse Int Source #
The response's http status code.