Gets the status of the specified copy product operation.
Parameters:
-
accept_language
(Optional[AcceptLanguage], default:
None
)
–
The language code.
-
jp - Japanese
-
zh - Chinese
-
copy_product_token
(Id)
–
The token for the copy product operation. This token is returned by CopyProduct.
Raises:
Source code in docs_src/capo_service_catalog/_services/async_service_catalog.py
| async def describe_copy_product_status(
self,
copy_product_token: "capo_service_catalog.types.id.Id",
*,
config_overrides: Optional[AsyncServiceCatalogClientConfig] = None,
accept_language: Optional[
"capo_service_catalog.types.accept_language.AcceptLanguage"
] = None,
) -> "capo_service_catalog.types.describe_copy_product_status_output.DescribeCopyProductStatusOutput":
"""<p>Gets the status of the specified copy product operation.</p>
Args:
accept_language: <p>The language code.</p> <ul> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> - Chinese</p> </li> </ul>
copy_product_token: <p>The token for the copy product operation. This token is returned by <a>CopyProduct</a>.</p>
Raises:
capo_service_catalog.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
capo_service_catalog.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_service_catalog.types.describe_copy_product_status_input.DescribeCopyProductStatusInput]",
) -> AsyncOperationResponse[
"capo_service_catalog.types.describe_copy_product_status_output.DescribeCopyProductStatusOutput"
]:
import capo_service_catalog._operations.aws242_service_catalog_service.describe_copy_product_status
(
output,
http_response,
) = await capo_service_catalog._operations.aws242_service_catalog_service.describe_copy_product_status.async_describe_copy_product_status(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeCopyProductStatus")
)
input_: capo_service_catalog.types.describe_copy_product_status_input.DescribeCopyProductStatusInput = {
"copy_product_token": copy_product_token
}
if accept_language is not None:
input_["accept_language"] = accept_language
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|