Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates a new product.
- 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
- Contact URL for product support.cpDistributor
- The distributor of the product.cpAcceptLanguage
- The language code to use for this operation. Supported language codes are as follows: "en" (English) "jp" (Japanese) "zh" (Chinese) If no code is specified, "en" is used as the default.cpSupportEmail
- Contact email for product support.cpDescription
- The text description of the product.cpTags
- Tags to associate with the new product.cpSupportDescription
- Support information about the product.cpName
- The name of the product.cpOwner
- The owner of the product.cpProductType
- The type of the product to create.cpProvisioningArtifactParameters
- Parameters for the provisioning artifact.cpIdempotencyToken
- A token to disambiguate duplicate requests. You can create multiple resources using the same input in multiple requests, provided that you also specify a different idempotency token for each request.
data CreateProduct Source #
See: createProduct
smart constructor.
Request Lenses
cpSupportURL :: Lens' CreateProduct (Maybe Text) Source #
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 to use for this operation. Supported language codes are as follows: "en" (English) "jp" (Japanese) "zh" (Chinese) If no code is specified, "en" is used as the default.
cpSupportEmail :: Lens' CreateProduct (Maybe Text) Source #
Contact email for product support.
cpDescription :: Lens' CreateProduct (Maybe Text) Source #
The text description of the product.
cpSupportDescription :: Lens' CreateProduct (Maybe Text) Source #
Support information about the product.
cpProductType :: Lens' CreateProduct ProductType Source #
The type of the product to create.
cpProvisioningArtifactParameters :: Lens' CreateProduct ProvisioningArtifactProperties Source #
Parameters for the provisioning artifact.
cpIdempotencyToken :: Lens' CreateProduct Text Source #
A token to disambiguate duplicate requests. You can create multiple resources using the same input in multiple requests, provided that you also specify a different idempotency token for each 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
- The resulting detailed product view information.cprsProvisioningArtifactDetail
- The resulting detailed provisioning artifact information.cprsTags
- Tags successfully associated with the new product.cprsResponseStatus
- -- | The response status code.
data CreateProductResponse Source #
See: createProductResponse
smart constructor.
Response Lenses
cprsProductViewDetail :: Lens' CreateProductResponse (Maybe ProductViewDetail) Source #
The resulting detailed product view information.
cprsProvisioningArtifactDetail :: Lens' CreateProductResponse (Maybe ProvisioningArtifactDetail) Source #
The resulting detailed provisioning artifact information.
cprsTags :: Lens' CreateProductResponse [Tag] Source #
Tags successfully associated with the new product.
cprsResponseStatus :: Lens' CreateProductResponse Int Source #
- - | The response status code.