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/service_catalog.py
| def describe_copy_product_status(
self,
copy_product_token: "capo_service_catalog.types.id.Id",
*,
config_overrides: Optional[ServiceCatalogClientConfig] = 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.
"""
def _handler(
req: "OperationRequest[capo_service_catalog.types.describe_copy_product_status_input.DescribeCopyProductStatusInput]",
) -> OperationResponse[
"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 = (
capo_service_catalog._operations.aws242_service_catalog_service.describe_copy_product_status.describe_copy_product_status(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|