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 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.
DeleteProduct' | |
|
Instances
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
$sel:id: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.
DeleteProductResponse' | |
|
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.