describeAcceleratorOfferings method

Future<DescribeAcceleratorOfferingsResponse> describeAcceleratorOfferings({
  1. required LocationType locationType,
  2. List<String>? acceleratorTypes,
})

Describes the locations in which a given accelerator type or set of types is present in a given region.

May throw BadRequestException. May throw ResourceNotFoundException. May throw InternalServerException.

Parameter locationType : The location type that you want to describe accelerator type offerings for. It can assume the following values: region: will return the accelerator type offering at the regional level. availability-zone: will return the accelerator type offering at the availability zone level. availability-zone-id: will return the accelerator type offering at the availability zone level returning the availability zone id.

Parameter acceleratorTypes : The list of accelerator types to describe.

Implementation

Future<DescribeAcceleratorOfferingsResponse> describeAcceleratorOfferings({
  required LocationType locationType,
  List<String>? acceleratorTypes,
}) async {
  ArgumentError.checkNotNull(locationType, 'locationType');
  final $payload = <String, dynamic>{
    'locationType': locationType.toValue(),
    if (acceleratorTypes != null) 'acceleratorTypes': acceleratorTypes,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/describe-accelerator-offerings',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeAcceleratorOfferingsResponse.fromJson(response);
}