getGatewayGroup method

Future<GetGatewayGroupResponse> getGatewayGroup({
  1. required String gatewayGroupArn,
})

Retrieves the details of a gateway group.

May throw NotFoundException.

Parameter gatewayGroupArn : The ARN of the gateway group to get.

Implementation

Future<GetGatewayGroupResponse> getGatewayGroup({
  required String gatewayGroupArn,
}) async {
  ArgumentError.checkNotNull(gatewayGroupArn, 'gatewayGroupArn');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AlexaForBusiness.GetGatewayGroup'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'GatewayGroupArn': gatewayGroupArn,
    },
  );

  return GetGatewayGroupResponse.fromJson(jsonResponse.body);
}