Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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. If you copy a product to another account, you must first share the product in a portfolio using CreatePortfolioShare.
This operation is performed asynchronously. To track the progress of the operation, use DescribeCopyProductStatus.
Synopsis
- data CopyProduct = CopyProduct' {}
- newCopyProduct :: Text -> Text -> CopyProduct
- copyProduct_acceptLanguage :: Lens' CopyProduct (Maybe Text)
- copyProduct_copyOptions :: Lens' CopyProduct (Maybe [CopyOption])
- copyProduct_sourceProvisioningArtifactIdentifiers :: Lens' CopyProduct (Maybe [HashMap ProvisioningArtifactPropertyName Text])
- copyProduct_targetProductId :: Lens' CopyProduct (Maybe Text)
- copyProduct_targetProductName :: 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:acceptLanguage:CopyProduct'
, copyProduct_acceptLanguage
- The language code.
en
- English (default)jp
- Japanesezh
- Chinese
$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: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:targetProductId:CopyProduct'
, copyProduct_targetProductId
- The identifier of the target product. By default, a new product is
created.
$sel:targetProductName:CopyProduct'
, copyProduct_targetProductName
- A name for the target product. The default is the name of the source
product.
$sel:sourceProductArn:CopyProduct'
, copyProduct_sourceProductArn
- The Amazon Resource Name (ARN) of the source product.
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_acceptLanguage :: Lens' CopyProduct (Maybe Text) Source #
The language code.
en
- English (default)jp
- Japanesezh
- Chinese
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_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_targetProductId :: Lens' CopyProduct (Maybe Text) Source #
The identifier of the target product. By default, a new product is created.
copyProduct_targetProductName :: Lens' CopyProduct (Maybe Text) Source #
A name for the target product. The default is the name of the source product.
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.