getDeliverySource method

Future<GetDeliverySourceResponse> getDeliverySource({
  1. required String name,
})

Retrieves complete information about one delivery source.

May throw ResourceNotFoundException. May throw ServiceQuotaExceededException. May throw ServiceUnavailableException. May throw ThrottlingException. May throw ValidationException.

Parameter name : The name of the delivery source that you want to retrieve.

Implementation

Future<GetDeliverySourceResponse> getDeliverySource({
  required String name,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'Logs_20140328.GetDeliverySource'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'name': name,
    },
  );

  return GetDeliverySourceResponse.fromJson(jsonResponse.body);
}