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 |
Delete an Proton component resource.
For more information about components, see Proton components in the Proton User Guide.
Synopsis
- data DeleteComponent = DeleteComponent' {}
- newDeleteComponent :: Text -> DeleteComponent
- deleteComponent_name :: Lens' DeleteComponent Text
- data DeleteComponentResponse = DeleteComponentResponse' {
- component :: Maybe Component
- httpStatus :: Int
- newDeleteComponentResponse :: Int -> DeleteComponentResponse
- deleteComponentResponse_component :: Lens' DeleteComponentResponse (Maybe Component)
- deleteComponentResponse_httpStatus :: Lens' DeleteComponentResponse Int
Creating a Request
data DeleteComponent Source #
See: newDeleteComponent
smart constructor.
Instances
Create a value of DeleteComponent
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:
DeleteComponent
, deleteComponent_name
- The name of the component to delete.
Request Lenses
deleteComponent_name :: Lens' DeleteComponent Text Source #
The name of the component to delete.
Destructuring the Response
data DeleteComponentResponse Source #
See: newDeleteComponentResponse
smart constructor.
DeleteComponentResponse' | |
|
Instances
newDeleteComponentResponse Source #
Create a value of DeleteComponentResponse
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:component:DeleteComponentResponse'
, deleteComponentResponse_component
- The detailed data of the component being deleted.
$sel:httpStatus:DeleteComponentResponse'
, deleteComponentResponse_httpStatus
- The response's http status code.
Response Lenses
deleteComponentResponse_component :: Lens' DeleteComponentResponse (Maybe Component) Source #
The detailed data of the component being deleted.
deleteComponentResponse_httpStatus :: Lens' DeleteComponentResponse Int Source #
The response's http status code.