| 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.Proton.DeleteService
Description
Delete a service, with its instances and pipeline.
You can't delete a service if it has any service instances that have components attached to them.
For more information about components, see Proton components in the Proton User Guide.
Synopsis
- data DeleteService = DeleteService' {}
- newDeleteService :: Text -> DeleteService
- deleteService_name :: Lens' DeleteService Text
- data DeleteServiceResponse = DeleteServiceResponse' {
- service :: Maybe Service
- httpStatus :: Int
- newDeleteServiceResponse :: Int -> DeleteServiceResponse
- deleteServiceResponse_service :: Lens' DeleteServiceResponse (Maybe Service)
- deleteServiceResponse_httpStatus :: Lens' DeleteServiceResponse Int
Creating a Request
data DeleteService Source #
See: newDeleteService smart constructor.
Constructors
| DeleteService' | |
Instances
Arguments
| :: Text | |
| -> DeleteService |
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:
DeleteService, deleteService_name - The name of the service to delete.
Request Lenses
deleteService_name :: Lens' DeleteService Text Source #
The name of the service to delete.
Destructuring the Response
data DeleteServiceResponse Source #
See: newDeleteServiceResponse smart constructor.
Constructors
| DeleteServiceResponse' | |
Fields
| |
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:service:DeleteServiceResponse', deleteServiceResponse_service - The detailed data of the service being deleted.
$sel:httpStatus:DeleteServiceResponse', deleteServiceResponse_httpStatus - The response's http status code.
Response Lenses
deleteServiceResponse_service :: Lens' DeleteServiceResponse (Maybe Service) Source #
The detailed data of the service being deleted.
deleteServiceResponse_httpStatus :: Lens' DeleteServiceResponse Int Source #
The response's http status code.