getEndpoint method
Gets information about an Device Advisor endpoint.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter authenticationMethod :
The authentication method used during the device connection.
Parameter certificateArn :
The certificate ARN of the device. This is an optional parameter.
Parameter deviceRoleArn :
The device role ARN of the device. This is an optional parameter.
Parameter thingArn :
The thing ARN of the device. This is an optional parameter.
Implementation
Future<GetEndpointResponse> getEndpoint({
AuthenticationMethod? authenticationMethod,
String? certificateArn,
String? deviceRoleArn,
String? thingArn,
}) async {
final $query = <String, List<String>>{
if (authenticationMethod != null)
'authenticationMethod': [authenticationMethod.value],
if (certificateArn != null) 'certificateArn': [certificateArn],
if (deviceRoleArn != null) 'deviceRoleArn': [deviceRoleArn],
if (thingArn != null) 'thingArn': [thingArn],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/endpoint',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return GetEndpointResponse.fromJson(response);
}