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.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. If you copy a product to another account, you must first share the product in a portfolio using CreatePortfolioShare.

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
ToJSON CopyProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.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

AWSRequest CopyProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

Associated Types

type AWSResponse CopyProduct #

Generic CopyProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

Associated Types

type Rep CopyProduct :: Type -> Type #

Read CopyProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

Show CopyProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

NFData CopyProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

Methods

rnf :: CopyProduct -> () #

Eq CopyProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

Hashable CopyProduct Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

type AWSResponse 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" "amazonka-servicecatalog-2.0-HQc7wwDA1XY4nlo6issXoI" 'False) (C1 ('MetaCons "CopyProduct'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "acceptLanguage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "copyOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [CopyOption])) :*: S1 ('MetaSel ('Just "sourceProvisioningArtifactIdentifiers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [HashMap ProvisioningArtifactPropertyName Text])))) :*: ((S1 ('MetaSel ('Just "targetProductId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "targetProductName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "sourceProductArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "idempotencyToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

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:acceptLanguage:CopyProduct', copyProduct_acceptLanguage - The language code.

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

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

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

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

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_acceptLanguage :: Lens' CopyProduct (Maybe Text) Source #

The language code.

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

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_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_targetProductId :: Lens' CopyProduct (Maybe Text) Source #

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

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

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

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
Generic CopyProductResponse Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

Associated Types

type Rep CopyProductResponse :: Type -> Type #

Read CopyProductResponse Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

Show CopyProductResponse Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

NFData CopyProductResponse Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

Methods

rnf :: CopyProductResponse -> () #

Eq CopyProductResponse Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

type Rep CopyProductResponse Source # 
Instance details

Defined in Amazonka.ServiceCatalog.CopyProduct

type Rep CopyProductResponse = D1 ('MetaData "CopyProductResponse" "Amazonka.ServiceCatalog.CopyProduct" "amazonka-servicecatalog-2.0-HQc7wwDA1XY4nlo6issXoI" '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.