getService method
Gets the settings for a specified service.
May throw InvalidInput. May throw ServiceNotFound.
Parameter id
:
The ID of the service that you want to get settings for.
Implementation
Future<GetServiceResponse> getService({
required String id,
}) async {
ArgumentError.checkNotNull(id, 'id');
_s.validateStringLength(
'id',
id,
0,
64,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'Route53AutoNaming_v20170314.GetService'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Id': id,
},
);
return GetServiceResponse.fromJson(jsonResponse.body);
}