getConferenceProvider method

Future<GetConferenceProviderResponse> getConferenceProvider({
  1. required String conferenceProviderArn,
})

Gets details about a specific conference provider.

May throw NotFoundException.

Parameter conferenceProviderArn : The ARN of the newly created conference provider.

Implementation

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

  return GetConferenceProviderResponse.fromJson(jsonResponse.body);
}