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 |
Deletes a specified service. If the service still contains one or more registered instances, the request fails.
Synopsis
- data DeleteService = DeleteService' {}
- newDeleteService :: Text -> DeleteService
- deleteService_id :: Lens' DeleteService Text
- data DeleteServiceResponse = DeleteServiceResponse' {
- httpStatus :: Int
- newDeleteServiceResponse :: Int -> DeleteServiceResponse
- deleteServiceResponse_httpStatus :: Lens' DeleteServiceResponse Int
Creating a Request
data DeleteService Source #
See: newDeleteService
smart constructor.
Instances
Create a value of DeleteService
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:id:DeleteService'
, deleteService_id
- The ID of the service that you want to delete.
Request Lenses
deleteService_id :: Lens' DeleteService Text Source #
The ID of the service that you want to delete.
Destructuring the Response
data DeleteServiceResponse Source #
See: newDeleteServiceResponse
smart constructor.
DeleteServiceResponse' | |
|
Instances
newDeleteServiceResponse Source #
Create a value of DeleteServiceResponse
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:httpStatus:DeleteServiceResponse'
, deleteServiceResponse_httpStatus
- The response's http status code.
Response Lenses
deleteServiceResponse_httpStatus :: Lens' DeleteServiceResponse Int Source #
The response's http status code.