| 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.ServiceCatalog.DeleteProduct
Description
Deletes the specified product.
You cannot delete a product if it was shared with you or is associated with a portfolio.
A delegated admin is authorized to invoke this command.
Synopsis
- data DeleteProduct = DeleteProduct' {
- acceptLanguage :: Maybe Text
- id :: Text
- newDeleteProduct :: Text -> DeleteProduct
- deleteProduct_acceptLanguage :: Lens' DeleteProduct (Maybe Text)
- deleteProduct_id :: Lens' DeleteProduct Text
- data DeleteProductResponse = DeleteProductResponse' {
- httpStatus :: Int
- newDeleteProductResponse :: Int -> DeleteProductResponse
- deleteProductResponse_httpStatus :: Lens' DeleteProductResponse Int
Creating a Request
data DeleteProduct Source #
See: newDeleteProduct smart constructor.
Constructors
| DeleteProduct' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DeleteProduct |
Create a value of DeleteProduct 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:acceptLanguage:DeleteProduct', deleteProduct_acceptLanguage - The language code.
en- English (default)jp- Japanesezh- Chinese
DeleteProduct, deleteProduct_id - The product identifier.
Request Lenses
deleteProduct_acceptLanguage :: Lens' DeleteProduct (Maybe Text) Source #
The language code.
en- English (default)jp- Japanesezh- Chinese
deleteProduct_id :: Lens' DeleteProduct Text Source #
The product identifier.
Destructuring the Response
data DeleteProductResponse Source #
See: newDeleteProductResponse smart constructor.
Constructors
| DeleteProductResponse' | |
Fields
| |
Instances
newDeleteProductResponse Source #
Create a value of DeleteProductResponse 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:DeleteProductResponse', deleteProductResponse_httpStatus - The response's http status code.
Response Lenses
deleteProductResponse_httpStatus :: Lens' DeleteProductResponse Int Source #
The response's http status code.