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 |
Updates the specified product.
Synopsis
- data UpdateProduct = UpdateProduct' {
- removeTags :: Maybe [Text]
- owner :: Maybe Text
- supportUrl :: Maybe Text
- distributor :: Maybe Text
- name :: Maybe Text
- acceptLanguage :: Maybe Text
- addTags :: Maybe [Tag]
- supportEmail :: Maybe Text
- description :: Maybe Text
- supportDescription :: Maybe Text
- id :: Text
- newUpdateProduct :: Text -> UpdateProduct
- updateProduct_removeTags :: Lens' UpdateProduct (Maybe [Text])
- updateProduct_owner :: Lens' UpdateProduct (Maybe Text)
- updateProduct_supportUrl :: Lens' UpdateProduct (Maybe Text)
- updateProduct_distributor :: Lens' UpdateProduct (Maybe Text)
- updateProduct_name :: Lens' UpdateProduct (Maybe Text)
- updateProduct_acceptLanguage :: Lens' UpdateProduct (Maybe Text)
- updateProduct_addTags :: Lens' UpdateProduct (Maybe [Tag])
- updateProduct_supportEmail :: Lens' UpdateProduct (Maybe Text)
- updateProduct_description :: Lens' UpdateProduct (Maybe Text)
- updateProduct_supportDescription :: Lens' UpdateProduct (Maybe Text)
- updateProduct_id :: Lens' UpdateProduct Text
- data UpdateProductResponse = UpdateProductResponse' {
- productViewDetail :: Maybe ProductViewDetail
- tags :: Maybe [Tag]
- httpStatus :: Int
- newUpdateProductResponse :: Int -> UpdateProductResponse
- updateProductResponse_productViewDetail :: Lens' UpdateProductResponse (Maybe ProductViewDetail)
- updateProductResponse_tags :: Lens' UpdateProductResponse (Maybe [Tag])
- updateProductResponse_httpStatus :: Lens' UpdateProductResponse Int
Creating a Request
data UpdateProduct Source #
See: newUpdateProduct
smart constructor.
UpdateProduct' | |
|
Instances
Create a value of UpdateProduct
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:removeTags:UpdateProduct'
, updateProduct_removeTags
- The tags to remove from the product.
$sel:owner:UpdateProduct'
, updateProduct_owner
- The updated owner of the product.
$sel:supportUrl:UpdateProduct'
, updateProduct_supportUrl
- The updated support URL for the product.
$sel:distributor:UpdateProduct'
, updateProduct_distributor
- The updated distributor of the product.
$sel:name:UpdateProduct'
, updateProduct_name
- The updated product name.
$sel:acceptLanguage:UpdateProduct'
, updateProduct_acceptLanguage
- The language code.
en
- English (default)jp
- Japanesezh
- Chinese
$sel:addTags:UpdateProduct'
, updateProduct_addTags
- The tags to add to the product.
$sel:supportEmail:UpdateProduct'
, updateProduct_supportEmail
- The updated support email for the product.
$sel:description:UpdateProduct'
, updateProduct_description
- The updated description of the product.
$sel:supportDescription:UpdateProduct'
, updateProduct_supportDescription
- The updated support description for the product.
$sel:id:UpdateProduct'
, updateProduct_id
- The product identifier.
Request Lenses
updateProduct_removeTags :: Lens' UpdateProduct (Maybe [Text]) Source #
The tags to remove from the product.
updateProduct_owner :: Lens' UpdateProduct (Maybe Text) Source #
The updated owner of the product.
updateProduct_supportUrl :: Lens' UpdateProduct (Maybe Text) Source #
The updated support URL for the product.
updateProduct_distributor :: Lens' UpdateProduct (Maybe Text) Source #
The updated distributor of the product.
updateProduct_name :: Lens' UpdateProduct (Maybe Text) Source #
The updated product name.
updateProduct_acceptLanguage :: Lens' UpdateProduct (Maybe Text) Source #
The language code.
en
- English (default)jp
- Japanesezh
- Chinese
updateProduct_addTags :: Lens' UpdateProduct (Maybe [Tag]) Source #
The tags to add to the product.
updateProduct_supportEmail :: Lens' UpdateProduct (Maybe Text) Source #
The updated support email for the product.
updateProduct_description :: Lens' UpdateProduct (Maybe Text) Source #
The updated description of the product.
updateProduct_supportDescription :: Lens' UpdateProduct (Maybe Text) Source #
The updated support description for the product.
updateProduct_id :: Lens' UpdateProduct Text Source #
The product identifier.
Destructuring the Response
data UpdateProductResponse Source #
See: newUpdateProductResponse
smart constructor.
UpdateProductResponse' | |
|
Instances
newUpdateProductResponse Source #
Create a value of UpdateProductResponse
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:productViewDetail:UpdateProductResponse'
, updateProductResponse_productViewDetail
- Information about the product view.
$sel:tags:UpdateProductResponse'
, updateProductResponse_tags
- Information about the tags associated with the product.
$sel:httpStatus:UpdateProductResponse'
, updateProductResponse_httpStatus
- The response's http status code.
Response Lenses
updateProductResponse_productViewDetail :: Lens' UpdateProductResponse (Maybe ProductViewDetail) Source #
Information about the product view.
updateProductResponse_tags :: Lens' UpdateProductResponse (Maybe [Tag]) Source #
Information about the tags associated with the product.
updateProductResponse_httpStatus :: Lens' UpdateProductResponse Int Source #
The response's http status code.