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 |
Creates a product.
A delegated admin is authorized to invoke this command.
The user or role that performs this operation must have the
cloudformation:GetTemplate
IAM policy permission. This policy
permission is required when using the ImportFromPhysicalId
template
source in the information data section.
Synopsis
- data CreateProduct = CreateProduct' {
- supportUrl :: Maybe Text
- distributor :: Maybe Text
- acceptLanguage :: Maybe Text
- supportEmail :: Maybe Text
- description :: Maybe Text
- tags :: Maybe [Tag]
- supportDescription :: Maybe Text
- name :: Text
- owner :: Text
- productType :: ProductType
- provisioningArtifactParameters :: ProvisioningArtifactProperties
- idempotencyToken :: Text
- newCreateProduct :: Text -> Text -> ProductType -> ProvisioningArtifactProperties -> Text -> CreateProduct
- createProduct_supportUrl :: Lens' CreateProduct (Maybe Text)
- createProduct_distributor :: Lens' CreateProduct (Maybe Text)
- createProduct_acceptLanguage :: Lens' CreateProduct (Maybe Text)
- createProduct_supportEmail :: Lens' CreateProduct (Maybe Text)
- createProduct_description :: Lens' CreateProduct (Maybe Text)
- createProduct_tags :: Lens' CreateProduct (Maybe [Tag])
- createProduct_supportDescription :: Lens' CreateProduct (Maybe Text)
- createProduct_name :: Lens' CreateProduct Text
- createProduct_owner :: Lens' CreateProduct Text
- createProduct_productType :: Lens' CreateProduct ProductType
- createProduct_provisioningArtifactParameters :: Lens' CreateProduct ProvisioningArtifactProperties
- createProduct_idempotencyToken :: Lens' CreateProduct Text
- data CreateProductResponse = CreateProductResponse' {}
- newCreateProductResponse :: Int -> CreateProductResponse
- createProductResponse_productViewDetail :: Lens' CreateProductResponse (Maybe ProductViewDetail)
- createProductResponse_provisioningArtifactDetail :: Lens' CreateProductResponse (Maybe ProvisioningArtifactDetail)
- createProductResponse_tags :: Lens' CreateProductResponse (Maybe [Tag])
- createProductResponse_httpStatus :: Lens' CreateProductResponse Int
Creating a Request
data CreateProduct Source #
See: newCreateProduct
smart constructor.
CreateProduct' | |
|
Instances
:: Text | |
-> Text | |
-> ProductType | |
-> ProvisioningArtifactProperties | |
-> Text | |
-> CreateProduct |
Create a value of CreateProduct
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:supportUrl:CreateProduct'
, createProduct_supportUrl
- The contact URL for product support.
^https?:\/\//
/ is the pattern used to validate SupportUrl.
$sel:distributor:CreateProduct'
, createProduct_distributor
- The distributor of the product.
$sel:acceptLanguage:CreateProduct'
, createProduct_acceptLanguage
- The language code.
en
- English (default)jp
- Japanesezh
- Chinese
$sel:supportEmail:CreateProduct'
, createProduct_supportEmail
- The contact email for product support.
$sel:description:CreateProduct'
, createProduct_description
- The description of the product.
$sel:tags:CreateProduct'
, createProduct_tags
- One or more tags.
$sel:supportDescription:CreateProduct'
, createProduct_supportDescription
- The support information about the product.
$sel:name:CreateProduct'
, createProduct_name
- The name of the product.
$sel:owner:CreateProduct'
, createProduct_owner
- The owner of the product.
$sel:productType:CreateProduct'
, createProduct_productType
- The type of product.
$sel:provisioningArtifactParameters:CreateProduct'
, createProduct_provisioningArtifactParameters
- The configuration of the provisioning artifact.
$sel:idempotencyToken:CreateProduct'
, createProduct_idempotencyToken
- 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.
Request Lenses
createProduct_supportUrl :: Lens' CreateProduct (Maybe Text) Source #
The contact URL for product support.
^https?:\/\//
/ is the pattern used to validate SupportUrl.
createProduct_distributor :: Lens' CreateProduct (Maybe Text) Source #
The distributor of the product.
createProduct_acceptLanguage :: Lens' CreateProduct (Maybe Text) Source #
The language code.
en
- English (default)jp
- Japanesezh
- Chinese
createProduct_supportEmail :: Lens' CreateProduct (Maybe Text) Source #
The contact email for product support.
createProduct_description :: Lens' CreateProduct (Maybe Text) Source #
The description of the product.
createProduct_tags :: Lens' CreateProduct (Maybe [Tag]) Source #
One or more tags.
createProduct_supportDescription :: Lens' CreateProduct (Maybe Text) Source #
The support information about the product.
createProduct_name :: Lens' CreateProduct Text Source #
The name of the product.
createProduct_owner :: Lens' CreateProduct Text Source #
The owner of the product.
createProduct_productType :: Lens' CreateProduct ProductType Source #
The type of product.
createProduct_provisioningArtifactParameters :: Lens' CreateProduct ProvisioningArtifactProperties Source #
The configuration of the provisioning artifact.
createProduct_idempotencyToken :: 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
data CreateProductResponse Source #
See: newCreateProductResponse
smart constructor.
CreateProductResponse' | |
|
Instances
newCreateProductResponse Source #
Create a value of CreateProductResponse
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:CreateProductResponse'
, createProductResponse_productViewDetail
- Information about the product view.
$sel:provisioningArtifactDetail:CreateProductResponse'
, createProductResponse_provisioningArtifactDetail
- Information about the provisioning artifact.
$sel:tags:CreateProduct'
, createProductResponse_tags
- Information about the tags associated with the product.
$sel:httpStatus:CreateProductResponse'
, createProductResponse_httpStatus
- The response's http status code.
Response Lenses
createProductResponse_productViewDetail :: Lens' CreateProductResponse (Maybe ProductViewDetail) Source #
Information about the product view.
createProductResponse_provisioningArtifactDetail :: Lens' CreateProductResponse (Maybe ProvisioningArtifactDetail) Source #
Information about the provisioning artifact.
createProductResponse_tags :: Lens' CreateProductResponse (Maybe [Tag]) Source #
Information about the tags associated with the product.
createProductResponse_httpStatus :: Lens' CreateProductResponse Int Source #
The response's http status code.