describeCopyProductStatus method
Gets the status of the specified copy product operation.
May throw ResourceNotFoundException.
Parameter copyProductToken :
The token for the copy product operation. This token is returned by
CopyProduct.
Parameter acceptLanguage :
The language code.
-
jp- Japanese -
zh- Chinese
Implementation
Future<DescribeCopyProductStatusOutput> describeCopyProductStatus({
required String copyProductToken,
String? acceptLanguage,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWS242ServiceCatalogService.DescribeCopyProductStatus'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'CopyProductToken': copyProductToken,
if (acceptLanguage != null) 'AcceptLanguage': acceptLanguage,
},
);
return DescribeCopyProductStatusOutput.fromJson(jsonResponse.body);
}