Copyright | (c) 2013-2018 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 |
Creates a product.
Synopsis
- createProduct :: Text -> Text -> ProductType -> ProvisioningArtifactProperties -> Text -> CreateProduct
- data CreateProduct
- cpSupportURL :: Lens' CreateProduct (Maybe Text)
- cpDistributor :: Lens' CreateProduct (Maybe Text)
- cpAcceptLanguage :: Lens' CreateProduct (Maybe Text)
- cpSupportEmail :: Lens' CreateProduct (Maybe Text)
- cpDescription :: Lens' CreateProduct (Maybe Text)
- cpTags :: Lens' CreateProduct [Tag]
- cpSupportDescription :: Lens' CreateProduct (Maybe Text)
- cpName :: Lens' CreateProduct Text
- cpOwner :: Lens' CreateProduct Text
- cpProductType :: Lens' CreateProduct ProductType
- cpProvisioningArtifactParameters :: Lens' CreateProduct ProvisioningArtifactProperties
- cpIdempotencyToken :: Lens' CreateProduct Text
- createProductResponse :: Int -> CreateProductResponse
- data CreateProductResponse
- cprsProductViewDetail :: Lens' CreateProductResponse (Maybe ProductViewDetail)
- cprsProvisioningArtifactDetail :: Lens' CreateProductResponse (Maybe ProvisioningArtifactDetail)
- cprsTags :: Lens' CreateProductResponse [Tag]
- cprsResponseStatus :: Lens' CreateProductResponse Int
Creating a Request
:: Text | |
-> Text | |
-> ProductType | |
-> ProvisioningArtifactProperties | |
-> Text | |
-> CreateProduct |
Creates a value of CreateProduct
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cpSupportURL
- The contact URL for product support.cpDistributor
- The distributor of the product.cpAcceptLanguage
- The language code. *en
- English (default) *jp
- Japanese *zh
- ChinesecpSupportEmail
- The contact email for product support.cpDescription
- The description of the product.cpTags
- One or more tags.cpSupportDescription
- The support information about the product.cpName
- The name of the product.cpOwner
- The owner of the product.cpProductType
- The type of product.cpProvisioningArtifactParameters
- The configuration of the provisioning artifact.cpIdempotencyToken
- A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency token, the same response is returned for each repeated request.
data CreateProduct Source #
See: createProduct
smart constructor.
Instances
Request Lenses
cpSupportURL :: Lens' CreateProduct (Maybe Text) Source #
The contact URL for product support.
cpDistributor :: Lens' CreateProduct (Maybe Text) Source #
The distributor of the product.
cpAcceptLanguage :: Lens' CreateProduct (Maybe Text) Source #
The language code. * en
- English (default) * jp
- Japanese * zh
- Chinese
cpSupportEmail :: Lens' CreateProduct (Maybe Text) Source #
The contact email for product support.
cpDescription :: Lens' CreateProduct (Maybe Text) Source #
The description of the product.
cpSupportDescription :: Lens' CreateProduct (Maybe Text) Source #
The support information about the product.
cpProductType :: Lens' CreateProduct ProductType Source #
The type of product.
cpProvisioningArtifactParameters :: Lens' CreateProduct ProvisioningArtifactProperties Source #
The configuration of the provisioning artifact.
cpIdempotencyToken :: Lens' CreateProduct Text Source #
A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency token, the same response is returned for each repeated request.
Destructuring the Response
createProductResponse Source #
Creates a value of CreateProductResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cprsProductViewDetail
- Information about the product view.cprsProvisioningArtifactDetail
- Information about the provisioning artifact.cprsTags
- Information about the tags associated with the product.cprsResponseStatus
- -- | The response status code.
data CreateProductResponse Source #
See: createProductResponse
smart constructor.
Instances
Response Lenses
cprsProductViewDetail :: Lens' CreateProductResponse (Maybe ProductViewDetail) Source #
Information about the product view.
cprsProvisioningArtifactDetail :: Lens' CreateProductResponse (Maybe ProvisioningArtifactDetail) Source #
Information about the provisioning artifact.
cprsTags :: Lens' CreateProductResponse [Tag] Source #
Information about the tags associated with the product.
cprsResponseStatus :: Lens' CreateProductResponse Int Source #
- - | The response status code.