amazonka-servicecatalog-1.6.1: Amazon Service Catalog SDK.

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

Network.AWS.ServiceCatalog.CopyProduct

Contents

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

copyProduct Source #

Creates a value of CopyProduct with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • cTargetProductId - The identifier of the target product. By default, a new product is created.
  • cSourceProvisioningArtifactIdentifiers - The identifiers of the provisioning artifacts (also known as versions) of the product to copy. By default, all provisioning artifacts are copied.
  • cTargetProductName - A name for the target product. The default is the name of the source product.
  • cCopyOptions - The copy options. If the value is CopyTags , the tags from the source product are copied to the target product.
  • cAcceptLanguage - The language code. * en - English (default) * jp - Japanese * zh - Chinese
  • cSourceProductARN - The Amazon Resource Name (ARN) of the source product.
  • cIdempotencyToken - 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.

data CopyProduct Source #

See: copyProduct smart constructor.

Instances
Eq CopyProduct Source # 
Instance details

Defined in Network.AWS.ServiceCatalog.CopyProduct

Data CopyProduct Source # 
Instance details

Defined in Network.AWS.ServiceCatalog.CopyProduct

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CopyProduct -> c CopyProduct #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CopyProduct #

toConstr :: CopyProduct -> Constr #

dataTypeOf :: CopyProduct -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CopyProduct) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CopyProduct) #

gmapT :: (forall b. Data b => b -> b) -> CopyProduct -> CopyProduct #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CopyProduct -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CopyProduct -> r #

gmapQ :: (forall d. Data d => d -> u) -> CopyProduct -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CopyProduct -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CopyProduct -> m CopyProduct #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CopyProduct -> m CopyProduct #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CopyProduct -> m CopyProduct #

Read CopyProduct Source # 
Instance details

Defined in Network.AWS.ServiceCatalog.CopyProduct

Show CopyProduct Source # 
Instance details

Defined in Network.AWS.ServiceCatalog.CopyProduct

Generic CopyProduct Source # 
Instance details

Defined in Network.AWS.ServiceCatalog.CopyProduct

Associated Types

type Rep CopyProduct :: Type -> Type #

Hashable CopyProduct Source # 
Instance details

Defined in Network.AWS.ServiceCatalog.CopyProduct

ToJSON CopyProduct Source # 
Instance details

Defined in Network.AWS.ServiceCatalog.CopyProduct

AWSRequest CopyProduct Source # 
Instance details

Defined in Network.AWS.ServiceCatalog.CopyProduct

Associated Types

type Rs CopyProduct :: Type #

ToHeaders CopyProduct Source # 
Instance details

Defined in Network.AWS.ServiceCatalog.CopyProduct

Methods

toHeaders :: CopyProduct -> [Header] #

ToPath CopyProduct Source # 
Instance details

Defined in Network.AWS.ServiceCatalog.CopyProduct

ToQuery CopyProduct Source # 
Instance details

Defined in Network.AWS.ServiceCatalog.CopyProduct

NFData CopyProduct Source # 
Instance details

Defined in Network.AWS.ServiceCatalog.CopyProduct

Methods

rnf :: CopyProduct -> () #

type Rep CopyProduct Source # 
Instance details

Defined in Network.AWS.ServiceCatalog.CopyProduct

type Rep CopyProduct = D1 (MetaData "CopyProduct" "Network.AWS.ServiceCatalog.CopyProduct" "amazonka-servicecatalog-1.6.1-3x3nXpki5UUGYHxW61f9xy" False) (C1 (MetaCons "CopyProduct'" PrefixI True) ((S1 (MetaSel (Just "_cTargetProductId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_cSourceProvisioningArtifactIdentifiers") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Map ProvisioningArtifactPropertyName Text])) :*: S1 (MetaSel (Just "_cTargetProductName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_cCopyOptions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [CopyOption])) :*: S1 (MetaSel (Just "_cAcceptLanguage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_cSourceProductARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_cIdempotencyToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs CopyProduct Source # 
Instance details

Defined in Network.AWS.ServiceCatalog.CopyProduct

Request Lenses

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

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

cSourceProvisioningArtifactIdentifiers :: Lens' CopyProduct [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.

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

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

cCopyOptions :: Lens' CopyProduct [CopyOption] Source #

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

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

The language code. * en - English (default) * jp - Japanese * zh - Chinese

cSourceProductARN :: Lens' CopyProduct Text Source #

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

cIdempotencyToken :: 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

copyProductResponse Source #

Creates a value of CopyProductResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CopyProductResponse Source #

See: copyProductResponse smart constructor.

Instances
Eq CopyProductResponse Source # 
Instance details

Defined in Network.AWS.ServiceCatalog.CopyProduct

Data CopyProductResponse Source # 
Instance details

Defined in Network.AWS.ServiceCatalog.CopyProduct

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CopyProductResponse -> c CopyProductResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CopyProductResponse #

toConstr :: CopyProductResponse -> Constr #

dataTypeOf :: CopyProductResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CopyProductResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CopyProductResponse) #

gmapT :: (forall b. Data b => b -> b) -> CopyProductResponse -> CopyProductResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CopyProductResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CopyProductResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CopyProductResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CopyProductResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CopyProductResponse -> m CopyProductResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CopyProductResponse -> m CopyProductResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CopyProductResponse -> m CopyProductResponse #

Read CopyProductResponse Source # 
Instance details

Defined in Network.AWS.ServiceCatalog.CopyProduct

Show CopyProductResponse Source # 
Instance details

Defined in Network.AWS.ServiceCatalog.CopyProduct

Generic CopyProductResponse Source # 
Instance details

Defined in Network.AWS.ServiceCatalog.CopyProduct

Associated Types

type Rep CopyProductResponse :: Type -> Type #

NFData CopyProductResponse Source # 
Instance details

Defined in Network.AWS.ServiceCatalog.CopyProduct

Methods

rnf :: CopyProductResponse -> () #

type Rep CopyProductResponse Source # 
Instance details

Defined in Network.AWS.ServiceCatalog.CopyProduct

type Rep CopyProductResponse = D1 (MetaData "CopyProductResponse" "Network.AWS.ServiceCatalog.CopyProduct" "amazonka-servicecatalog-1.6.1-3x3nXpki5UUGYHxW61f9xy" False) (C1 (MetaCons "CopyProductResponse'" PrefixI True) (S1 (MetaSel (Just "_coprsCopyProductToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_coprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

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

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

coprsResponseStatus :: Lens' CopyProductResponse Int Source #

  • - | The response status code.