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.
-
en
- English (default) -
jp
- Japanese -
zh
- Chinese
Implementation
Future<DescribeCopyProductStatusOutput> describeCopyProductStatus({
required String copyProductToken,
String? acceptLanguage,
}) async {
ArgumentError.checkNotNull(copyProductToken, 'copyProductToken');
_s.validateStringLength(
'copyProductToken',
copyProductToken,
1,
100,
isRequired: true,
);
_s.validateStringLength(
'acceptLanguage',
acceptLanguage,
0,
100,
);
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);
}