amazonka-servicecatalog-1.5.0: Amazon Service Catalog SDK.

Copyright(c) 2013-2017 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 the product to the same account or another account. You can copy the 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 ID of the target product. By default, a new product is created.
  • cSourceProvisioningArtifactIdentifiers - The IDs of the product versions 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 token to disambiguate duplicate requests. You can use the same input in multiple requests, provided that you also specify a different idempotency token for each request.

data CopyProduct Source #

See: copyProduct smart constructor.

Instances

Eq CopyProduct Source # 
Data CopyProduct Source # 

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 # 
Show CopyProduct Source # 
Generic CopyProduct Source # 

Associated Types

type Rep CopyProduct :: * -> * #

Hashable CopyProduct Source # 
ToJSON CopyProduct Source # 
NFData CopyProduct Source # 

Methods

rnf :: CopyProduct -> () #

AWSRequest CopyProduct Source # 
ToQuery CopyProduct Source # 
ToPath CopyProduct Source # 
ToHeaders CopyProduct Source # 

Methods

toHeaders :: CopyProduct -> [Header] #

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

Request Lenses

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

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

cSourceProvisioningArtifactIdentifiers :: Lens' CopyProduct [HashMap ProvisioningArtifactPropertyName Text] Source #

The IDs of the product versions 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 token to disambiguate duplicate requests. You can use the same input in multiple requests, provided that you also specify a different idempotency token for each 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 # 
Data CopyProductResponse Source # 

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 # 
Show CopyProductResponse Source # 
Generic CopyProductResponse Source # 
NFData CopyProductResponse Source # 

Methods

rnf :: CopyProductResponse -> () #

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

Response Lenses

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

A unique token to pass to DescribeCopyProductStatus to track the progress of the operation.

coprsResponseStatus :: Lens' CopyProductResponse Int Source #

  • - | The response status code.