Gets information about the specified request operation.
Use this operation after calling a request operation (for example, ProvisionProduct, TerminateProvisionedProduct, or UpdateProvisionedProduct).
If a provisioned product was transferred to a new owner using UpdateProvisionedProductProperties, the new owner will be able to describe all past records for that product. The previous owner will no longer be able to describe the records, but will be able to use ListRecordHistory to see the product's history from when he was the owner.
Parameters:
-
accept_language
(Optional[AcceptLanguage], default:
None
)
–
The language code.
-
jp - Japanese
-
zh - Chinese
-
id
(Id)
–
The record identifier of the provisioned product. This identifier is returned by the request operation.
-
page_token
(Optional[PageToken], default:
None
)
–
The page token for the next set of results. To retrieve the first set of results, use null.
-
page_size
(Optional[PageSize], default:
None
)
–
The maximum number of items to return with this call.
Raises:
Source code in docs_src/capo_service_catalog/_services/async_service_catalog.py
| async def describe_record(
self,
id: "capo_service_catalog.types.id.Id",
*,
config_overrides: Optional[AsyncServiceCatalogClientConfig] = None,
accept_language: Optional[
"capo_service_catalog.types.accept_language.AcceptLanguage"
] = None,
page_token: Optional["capo_service_catalog.types.page_token.PageToken"] = None,
page_size: Optional["capo_service_catalog.types.page_size.PageSize"] = None,
) -> "capo_service_catalog.types.describe_record_output.DescribeRecordOutput":
"""<p>Gets information about the specified request operation.</p> <p>Use this operation after calling a request operation (for example, <a>ProvisionProduct</a>, <a>TerminateProvisionedProduct</a>, or <a>UpdateProvisionedProduct</a>). </p> <note> <p>If a provisioned product was transferred to a new owner using <a>UpdateProvisionedProductProperties</a>, the new owner will be able to describe all past records for that product. The previous owner will no longer be able to describe the records, but will be able to use <a>ListRecordHistory</a> to see the product's history from when he was the owner.</p> </note>
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>
id: <p>The record identifier of the provisioned product. This identifier is returned by the request operation.</p>
page_token: <p>The page token for the next set of results. To retrieve the first set of results, use null.</p>
page_size: <p>The maximum number of items to return with this call.</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_record_input.DescribeRecordInput]",
) -> AsyncOperationResponse[
"capo_service_catalog.types.describe_record_output.DescribeRecordOutput"
]:
import capo_service_catalog._operations.aws242_service_catalog_service.describe_record
(
output,
http_response,
) = await capo_service_catalog._operations.aws242_service_catalog_service.describe_record.async_describe_record(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeRecord")
)
input_: capo_service_catalog.types.describe_record_input.DescribeRecordInput = {
"id": id
}
if accept_language is not None:
input_["accept_language"] = accept_language
if page_token is not None:
input_["page_token"] = page_token
if page_size is not None:
input_["page_size"] = page_size
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|