Copyright | (c) 2013-2017 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 |
Language | Haskell2010 |
Updates an existing product.
- updateProduct :: Text -> UpdateProduct
- data UpdateProduct
- upRemoveTags :: Lens' UpdateProduct [Text]
- upOwner :: Lens' UpdateProduct (Maybe Text)
- upSupportURL :: Lens' UpdateProduct (Maybe Text)
- upDistributor :: Lens' UpdateProduct (Maybe Text)
- upName :: Lens' UpdateProduct (Maybe Text)
- upAcceptLanguage :: Lens' UpdateProduct (Maybe Text)
- upAddTags :: Lens' UpdateProduct [Tag]
- upSupportEmail :: Lens' UpdateProduct (Maybe Text)
- upDescription :: Lens' UpdateProduct (Maybe Text)
- upSupportDescription :: Lens' UpdateProduct (Maybe Text)
- upId :: Lens' UpdateProduct Text
- updateProductResponse :: Int -> UpdateProductResponse
- data UpdateProductResponse
- ursProductViewDetail :: Lens' UpdateProductResponse (Maybe ProductViewDetail)
- ursTags :: Lens' UpdateProductResponse [Tag]
- ursResponseStatus :: Lens' UpdateProductResponse Int
Creating a Request
:: Text | |
-> UpdateProduct |
Creates a value of UpdateProduct
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
upRemoveTags
- Tags to remove from the existing list of tags associated with the product.upOwner
- The updated owner of the product.upSupportURL
- The updated support URL for the product.upDistributor
- The updated distributor of the product.upName
- The updated product name.upAcceptLanguage
- The language code. *en
- English (default) *jp
- Japanese *zh
- ChineseupAddTags
- Tags to add to the existing list of tags associated with the product.upSupportEmail
- The updated support email for the product.upDescription
- The updated text description of the product.upSupportDescription
- The updated support description for the product.upId
- The identifier of the product for the update request.
data UpdateProduct Source #
See: updateProduct
smart constructor.
Request Lenses
upRemoveTags :: Lens' UpdateProduct [Text] Source #
Tags to remove from the existing list of tags associated with the product.
upSupportURL :: Lens' UpdateProduct (Maybe Text) Source #
The updated support URL for the product.
upDistributor :: Lens' UpdateProduct (Maybe Text) Source #
The updated distributor of the product.
upAcceptLanguage :: Lens' UpdateProduct (Maybe Text) Source #
The language code. * en
- English (default) * jp
- Japanese * zh
- Chinese
upAddTags :: Lens' UpdateProduct [Tag] Source #
Tags to add to the existing list of tags associated with the product.
upSupportEmail :: Lens' UpdateProduct (Maybe Text) Source #
The updated support email for the product.
upDescription :: Lens' UpdateProduct (Maybe Text) Source #
The updated text description of the product.
upSupportDescription :: Lens' UpdateProduct (Maybe Text) Source #
The updated support description for the product.
Destructuring the Response
updateProductResponse Source #
Creates a value of UpdateProductResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ursProductViewDetail
- The resulting detailed product view information.ursTags
- Tags associated with the product.ursResponseStatus
- -- | The response status code.
data UpdateProductResponse Source #
See: updateProductResponse
smart constructor.
Response Lenses
ursProductViewDetail :: Lens' UpdateProductResponse (Maybe ProductViewDetail) Source #
The resulting detailed product view information.
ursResponseStatus :: Lens' UpdateProductResponse Int Source #
- - | The response status code.