getProvisionedProductOutputs method

Future<GetProvisionedProductOutputsOutput> getProvisionedProductOutputs({
  1. String? acceptLanguage,
  2. List<String>? outputKeys,
  3. int? pageSize,
  4. String? pageToken,
  5. String? provisionedProductId,
  6. String? provisionedProductName,
})

This API takes either a ProvisonedProductId or a ProvisionedProductName, along with a list of one or more output keys, and responds with the key/value pairs of those outputs.

May throw InvalidParametersException. May throw ResourceNotFoundException.

Parameter acceptLanguage : The language code.

  • en - English (default)
  • jp - Japanese
  • zh - Chinese

Parameter outputKeys : The list of keys that the API should return with their values. If none are provided, the API will return all outputs of the provisioned product.

Parameter pageSize : The maximum number of items to return with this call.

Parameter pageToken : The page token for the next set of results. To retrieve the first set of results, use null.

Parameter provisionedProductId : The identifier of the provisioned product that you want the outputs from.

Parameter provisionedProductName : The name of the provisioned product that you want the outputs from.

Implementation

Future<GetProvisionedProductOutputsOutput> getProvisionedProductOutputs({
  String? acceptLanguage,
  List<String>? outputKeys,
  int? pageSize,
  String? pageToken,
  String? provisionedProductId,
  String? provisionedProductName,
}) async {
  _s.validateStringLength(
    'acceptLanguage',
    acceptLanguage,
    0,
    100,
  );
  _s.validateNumRange(
    'pageSize',
    pageSize,
    0,
    20,
  );
  _s.validateStringLength(
    'pageToken',
    pageToken,
    0,
    2024,
  );
  _s.validateStringLength(
    'provisionedProductId',
    provisionedProductId,
    1,
    100,
  );
  _s.validateStringLength(
    'provisionedProductName',
    provisionedProductName,
    1,
    128,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWS242ServiceCatalogService.GetProvisionedProductOutputs'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (acceptLanguage != null) 'AcceptLanguage': acceptLanguage,
      if (outputKeys != null) 'OutputKeys': outputKeys,
      if (pageSize != null) 'PageSize': pageSize,
      if (pageToken != null) 'PageToken': pageToken,
      if (provisionedProductId != null)
        'ProvisionedProductId': provisionedProductId,
      if (provisionedProductName != null)
        'ProvisionedProductName': provisionedProductName,
    },
  );

  return GetProvisionedProductOutputsOutput.fromJson(jsonResponse.body);
}