amazonka-servicecatalog-2.0: Amazon Service Catalog SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.ServiceCatalog.CreateProduct

Description

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

Creating a Request

data CreateProduct Source #

See: newCreateProduct smart constructor.

Constructors

CreateProduct' 

Fields

Instances

Instances details
ToJSON CreateProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CreateProduct

ToHeaders CreateProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CreateProduct

ToPath CreateProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CreateProduct

ToQuery CreateProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CreateProduct

AWSRequest CreateProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CreateProduct

Associated Types

type AWSResponse CreateProduct #

Generic CreateProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CreateProduct

Associated Types

type Rep CreateProduct :: Type -> Type #

Read CreateProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CreateProduct

Show CreateProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CreateProduct

NFData CreateProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CreateProduct

Methods

rnf :: CreateProduct -> () #

Eq CreateProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CreateProduct

Hashable CreateProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CreateProduct

type AWSResponse CreateProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CreateProduct

type Rep CreateProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CreateProduct

type Rep CreateProduct = D1 ('MetaData "CreateProduct" "Amazonka.ServiceCatalog.CreateProduct" "amazonka-servicecatalog-2.0-HQc7wwDA1XY4nlo6issXoI" 'False) (C1 ('MetaCons "CreateProduct'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "acceptLanguage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "distributor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "provisioningArtifactParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ProvisioningArtifactProperties)) :*: (S1 ('MetaSel ('Just "sourceConnection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SourceConnection)) :*: S1 ('MetaSel ('Just "supportDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "supportEmail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "supportUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])))) :*: ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "owner") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "productType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ProductType) :*: S1 ('MetaSel ('Just "idempotencyToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))))

newCreateProduct Source #

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 - Japanese
  • zh - 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 - Japanese
  • zh - 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_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_name :: Lens' CreateProduct Text Source #

The name of the product.

createProduct_owner :: Lens' CreateProduct Text Source #

The owner of the 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.

Constructors

CreateProductResponse' 

Fields

Instances

Instances details
Generic CreateProductResponse Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CreateProduct

Associated Types

type Rep CreateProductResponse :: Type -> Type #

Read CreateProductResponse Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CreateProduct

Show CreateProductResponse Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CreateProduct

NFData CreateProductResponse Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CreateProduct

Methods

rnf :: CreateProductResponse -> () #

Eq CreateProductResponse Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CreateProduct

type Rep CreateProductResponse Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CreateProduct

type Rep CreateProductResponse = D1 ('MetaData "CreateProductResponse" "Amazonka.ServiceCatalog.CreateProduct" "amazonka-servicecatalog-2.0-HQc7wwDA1XY4nlo6issXoI" 'False) (C1 ('MetaCons "CreateProductResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "productViewDetail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ProductViewDetail)) :*: S1 ('MetaSel ('Just "provisioningArtifactDetail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ProvisioningArtifactDetail))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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_tags :: Lens' CreateProductResponse (Maybe [Tag]) Source #

Information about the tags associated with the product.