getDataSource method

Future<GetDataSourceOutput> getDataSource({
  1. required String domainIdentifier,
  2. required String identifier,
})

Gets an Amazon DataZone data source.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ServiceQuotaExceededException. May throw ThrottlingException. May throw ValidationException.

Parameter domainIdentifier : The ID of the Amazon DataZone domain in which the data source exists.

Parameter identifier : The ID of the Amazon DataZone data source.

Implementation

Future<GetDataSourceOutput> getDataSource({
  required String domainIdentifier,
  required String identifier,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/v2/domains/${Uri.encodeComponent(domainIdentifier)}/data-sources/${Uri.encodeComponent(identifier)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetDataSourceOutput.fromJson(response);
}