getOnPremisesInstance method
Gets information about an on-premises instance.
May throw InstanceNameRequiredException. May throw InstanceNotRegisteredException. May throw InvalidInstanceNameException.
Parameter instanceName
:
The name of the on-premises instance about which to get information.
Implementation
Future<GetOnPremisesInstanceOutput> getOnPremisesInstance({
required String instanceName,
}) async {
ArgumentError.checkNotNull(instanceName, 'instanceName');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'CodeDeploy_20141006.GetOnPremisesInstance'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'instanceName': instanceName,
},
);
return GetOnPremisesInstanceOutput.fromJson(jsonResponse.body);
}