describeProductView method

Future<DescribeProductViewOutput> describeProductView({
  1. required String id,
  2. String? acceptLanguage,
})

Gets information about the specified product.

May throw InvalidParametersException. May throw ResourceNotFoundException.

Parameter id : The product view identifier.

Parameter acceptLanguage : The language code.

  • jp - Japanese
  • zh - Chinese

Implementation

Future<DescribeProductViewOutput> describeProductView({
  required String id,
  String? acceptLanguage,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWS242ServiceCatalogService.DescribeProductView'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'Id': id,
      if (acceptLanguage != null) 'AcceptLanguage': acceptLanguage,
    },
  );

  return DescribeProductViewOutput.fromJson(jsonResponse.body);
}