libZSservicesZSamazonka-servicecatalogZSamazonka-servicecatalog
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.ServiceCatalog.CopyProduct

Description

Copies the specified source product to the specified target product or a new product.

You can copy a product to the same account or another account. You can copy a product to the same region or another region.

This operation is performed asynchronously. To track the progress of the operation, use DescribeCopyProductStatus.

Synopsis

Creating a Request

data CopyProduct Source #

See: newCopyProduct smart constructor.

Constructors

CopyProduct' 

Fields

Instances

Instances details
Eq CopyProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

Read CopyProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

Show CopyProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

Generic CopyProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

Associated Types

type Rep CopyProduct :: Type -> Type #

NFData CopyProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

Methods

rnf :: CopyProduct -> () #

Hashable CopyProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

ToJSON CopyProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

AWSRequest CopyProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

Associated Types

type AWSResponse CopyProduct #

ToHeaders CopyProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

Methods

toHeaders :: CopyProduct -> [Header] #

ToPath CopyProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

ToQuery CopyProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

type Rep CopyProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

type Rep CopyProduct = D1 ('MetaData "CopyProduct" "Amazonka.ServiceCatalog.CopyProduct" "libZSservicesZSamazonka-servicecatalogZSamazonka-servicecatalog" 'False) (C1 ('MetaCons "CopyProduct'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "targetProductId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "sourceProvisioningArtifactIdentifiers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [HashMap ProvisioningArtifactPropertyName Text])) :*: S1 ('MetaSel ('Just "targetProductName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "copyOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [CopyOption])) :*: S1 ('MetaSel ('Just "acceptLanguage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "sourceProductArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "idempotencyToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse CopyProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

newCopyProduct Source #

Create a value of CopyProduct 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:targetProductId:CopyProduct', copyProduct_targetProductId - The identifier of the target product. By default, a new product is created.

$sel:sourceProvisioningArtifactIdentifiers:CopyProduct', copyProduct_sourceProvisioningArtifactIdentifiers - The identifiers of the provisioning artifacts (also known as versions) of the product to copy. By default, all provisioning artifacts are copied.

$sel:targetProductName:CopyProduct', copyProduct_targetProductName - A name for the target product. The default is the name of the source product.

$sel:copyOptions:CopyProduct', copyProduct_copyOptions - The copy options. If the value is CopyTags, the tags from the source product are copied to the target product.

$sel:acceptLanguage:CopyProduct', copyProduct_acceptLanguage - The language code.

  • en - English (default)
  • jp - Japanese
  • zh - Chinese

$sel:sourceProductArn:CopyProduct', copyProduct_sourceProductArn - The Amazon Resource Name (ARN) of the source product.

$sel:idempotencyToken:CopyProduct', copyProduct_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

copyProduct_targetProductId :: Lens' CopyProduct (Maybe Text) Source #

The identifier of the target product. By default, a new product is created.

copyProduct_sourceProvisioningArtifactIdentifiers :: Lens' CopyProduct (Maybe [HashMap ProvisioningArtifactPropertyName Text]) Source #

The identifiers of the provisioning artifacts (also known as versions) of the product to copy. By default, all provisioning artifacts are copied.

copyProduct_targetProductName :: Lens' CopyProduct (Maybe Text) Source #

A name for the target product. The default is the name of the source product.

copyProduct_copyOptions :: Lens' CopyProduct (Maybe [CopyOption]) Source #

The copy options. If the value is CopyTags, the tags from the source product are copied to the target product.

copyProduct_acceptLanguage :: Lens' CopyProduct (Maybe Text) Source #

The language code.

  • en - English (default)
  • jp - Japanese
  • zh - Chinese

copyProduct_sourceProductArn :: Lens' CopyProduct Text Source #

The Amazon Resource Name (ARN) of the source product.

copyProduct_idempotencyToken :: Lens' CopyProduct 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 CopyProductResponse Source #

See: newCopyProductResponse smart constructor.

Constructors

CopyProductResponse' 

Fields

Instances

Instances details
Eq CopyProductResponse Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

Read CopyProductResponse Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

Show CopyProductResponse Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

Generic CopyProductResponse Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

Associated Types

type Rep CopyProductResponse :: Type -> Type #

NFData CopyProductResponse Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

Methods

rnf :: CopyProductResponse -> () #

type Rep CopyProductResponse Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

type Rep CopyProductResponse = D1 ('MetaData "CopyProductResponse" "Amazonka.ServiceCatalog.CopyProduct" "libZSservicesZSamazonka-servicecatalogZSamazonka-servicecatalog" 'False) (C1 ('MetaCons "CopyProductResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "copyProductToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCopyProductResponse Source #

Create a value of CopyProductResponse 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:copyProductToken:CopyProductResponse', copyProductResponse_copyProductToken - The token to use to track the progress of the operation.

$sel:httpStatus:CopyProductResponse', copyProductResponse_httpStatus - The response's http status code.

Response Lenses

copyProductResponse_copyProductToken :: Lens' CopyProductResponse (Maybe Text) Source #

The token to use to track the progress of the operation.