Copyright | (c) 2013-2017 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 |
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
.
- 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
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 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 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.
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
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
- A unique token to pass toDescribeCopyProductStatus
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 #
A unique token to pass to DescribeCopyProductStatus
to track the progress of the operation.
coprsResponseStatus :: Lens' CopyProductResponse Int Source #
- - | The response status code.