Copyright | (c) 2013-2021 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 |
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
- data CopyProduct = CopyProduct' {}
- newCopyProduct :: Text -> Text -> CopyProduct
- copyProduct_targetProductId :: Lens' CopyProduct (Maybe Text)
- copyProduct_sourceProvisioningArtifactIdentifiers :: Lens' CopyProduct (Maybe [HashMap ProvisioningArtifactPropertyName Text])
- copyProduct_targetProductName :: Lens' CopyProduct (Maybe Text)
- copyProduct_copyOptions :: Lens' CopyProduct (Maybe [CopyOption])
- copyProduct_acceptLanguage :: Lens' CopyProduct (Maybe Text)
- copyProduct_sourceProductArn :: Lens' CopyProduct Text
- copyProduct_idempotencyToken :: Lens' CopyProduct Text
- data CopyProductResponse = CopyProductResponse' {}
- newCopyProductResponse :: Int -> CopyProductResponse
- copyProductResponse_copyProductToken :: Lens' CopyProductResponse (Maybe Text)
- copyProductResponse_httpStatus :: Lens' CopyProductResponse Int
Creating a Request
data CopyProduct Source #
See: newCopyProduct
smart constructor.
CopyProduct' | |
|
Instances
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:targetProductId:CopyProduct'
, copyProduct_targetProductId
- The identifier of the target product. By default, a new product is
created.
$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:targetProductName:CopyProduct'
, copyProduct_targetProductName
- A name for the target product. The default is the name of the source
product.
$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:acceptLanguage:CopyProduct'
, copyProduct_acceptLanguage
- The language code.
en
- English (default)jp
- Japanesezh
- Chinese
$sel:sourceProductArn:CopyProduct'
, copyProduct_sourceProductArn
- The Amazon Resource Name (ARN) of the source product.
$sel:idempotencyToken: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_targetProductId :: Lens' CopyProduct (Maybe Text) Source #
The identifier of the target product. By default, a new product is created.
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_targetProductName :: Lens' CopyProduct (Maybe Text) Source #
A name for the target product. The default is the name of the source product.
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_acceptLanguage :: Lens' CopyProduct (Maybe Text) Source #
The language code.
en
- English (default)jp
- Japanesezh
- Chinese
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.
CopyProductResponse' | |
|
Instances
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.
copyProductResponse_httpStatus :: Lens' CopyProductResponse Int Source #
The response's http status code.