| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.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 .
- copyProduct :: Text -> Text -> CopyProduct
- data CopyProduct
- cTargetProductId :: Lens' CopyProduct (Maybe Text)
- cSourceProvisioningArtifactIdentifiers :: Lens' CopyProduct [HashMap ProvisioningArtifactPropertyName Text]
- cTargetProductName :: Lens' CopyProduct (Maybe Text)
- cCopyOptions :: Lens' CopyProduct [CopyOption]
- cAcceptLanguage :: Lens' CopyProduct (Maybe Text)
- cSourceProductARN :: Lens' CopyProduct Text
- cIdempotencyToken :: Lens' CopyProduct Text
- copyProductResponse :: Int -> CopyProductResponse
- data CopyProductResponse
- coprsCopyProductToken :: Lens' CopyProductResponse (Maybe Text)
- coprsResponseStatus :: Lens' CopyProductResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> CopyProduct |
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 isCopyTags, the tags from the source product are copied to the target product.cAcceptLanguage- The language code. *en- English (default) *jp- Japanese *zh- ChinesecSourceProductARN- 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
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
Arguments
| :: Int | |
| -> CopyProductResponse |
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:
coprsCopyProductToken- The token to use to track the progress of the operation.coprsResponseStatus- -- | The response status code.
data CopyProductResponse Source #
See: copyProductResponse smart constructor.
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.