Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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' {
- acceptLanguage :: Maybe Text
- description :: Maybe Text
- distributor :: Maybe Text
- provisioningArtifactParameters :: Maybe ProvisioningArtifactProperties
- sourceConnection :: Maybe SourceConnection
- supportDescription :: Maybe Text
- supportEmail :: Maybe Text
- supportUrl :: Maybe Text
- tags :: Maybe [Tag]
- name :: Text
- owner :: Text
- productType :: ProductType
- idempotencyToken :: Text
- newCreateProduct :: Text -> Text -> ProductType -> Text -> CreateProduct
- createProduct_acceptLanguage :: Lens' CreateProduct (Maybe Text)
- createProduct_description :: Lens' CreateProduct (Maybe Text)
- createProduct_distributor :: Lens' CreateProduct (Maybe Text)
- createProduct_provisioningArtifactParameters :: Lens' CreateProduct (Maybe ProvisioningArtifactProperties)
- createProduct_sourceConnection :: Lens' CreateProduct (Maybe SourceConnection)
- createProduct_supportDescription :: Lens' CreateProduct (Maybe Text)
- createProduct_supportEmail :: Lens' CreateProduct (Maybe Text)
- createProduct_supportUrl :: Lens' CreateProduct (Maybe Text)
- createProduct_tags :: Lens' CreateProduct (Maybe [Tag])
- createProduct_name :: Lens' CreateProduct Text
- createProduct_owner :: Lens' CreateProduct Text
- createProduct_productType :: Lens' CreateProduct ProductType
- 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 | |
-> 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:acceptLanguage:CreateProduct'
, createProduct_acceptLanguage
- The language code.
en
- English (default)jp
- Japanesezh
- Chinese
CreateProduct
, createProduct_description
- The description of the product.
CreateProduct
, createProduct_distributor
- The distributor of the product.
$sel:provisioningArtifactParameters:CreateProduct'
, createProduct_provisioningArtifactParameters
- The configuration of the provisioning artifact.
CreateProduct
, createProduct_sourceConnection
- Specifies connection details for the created product and syncs the
product to the connection source artifact. This automatically manages
the product's artifacts based on changes to the source. The
SourceConnection
parameter consists of the following sub-fields.
Type
ConnectionParamters
CreateProduct
, createProduct_supportDescription
- The support information about the product.
CreateProduct
, createProduct_supportEmail
- The contact email for product support.
CreateProduct
, createProduct_supportUrl
- The contact URL for product support.
^https?:\/\//
/ is the pattern used to validate SupportUrl.
CreateProduct
, createProduct_tags
- One or more tags.
CreateProduct
, createProduct_name
- The name of the product.
CreateProduct
, createProduct_owner
- The owner of the product.
$sel:productType:CreateProduct'
, createProduct_productType
- The type of product.
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_acceptLanguage :: Lens' CreateProduct (Maybe Text) Source #
The language code.
en
- English (default)jp
- Japanesezh
- Chinese
createProduct_description :: Lens' CreateProduct (Maybe Text) Source #
The description of the product.
createProduct_distributor :: Lens' CreateProduct (Maybe Text) Source #
The distributor of the product.
createProduct_provisioningArtifactParameters :: Lens' CreateProduct (Maybe ProvisioningArtifactProperties) Source #
The configuration of the provisioning artifact.
createProduct_sourceConnection :: Lens' CreateProduct (Maybe SourceConnection) Source #
Specifies connection details for the created product and syncs the
product to the connection source artifact. This automatically manages
the product's artifacts based on changes to the source. The
SourceConnection
parameter consists of the following sub-fields.
Type
ConnectionParamters
createProduct_supportDescription :: Lens' CreateProduct (Maybe Text) Source #
The support information about the product.
createProduct_supportEmail :: Lens' CreateProduct (Maybe Text) Source #
The contact email for product support.
createProduct_supportUrl :: Lens' CreateProduct (Maybe Text) Source #
The contact URL for product support.
^https?:\/\//
/ is the pattern used to validate SupportUrl.
createProduct_tags :: Lens' CreateProduct (Maybe [Tag]) Source #
One or more tags.
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_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.
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.