registerAgent method

Future<RegisterAgentResponse> registerAgent({
  1. required AgentDetails agentDetails,
  2. required DiscoveryData discoveryData,
  3. Map<String, String>? tags,
})
Registers a new agent with AWS Ground Station.

May throw DependencyException. May throw InvalidParameterException. May throw ResourceNotFoundException.

Parameter agentDetails : Detailed information about the agent being registered.

Parameter discoveryData : Data for associating an agent with the capabilities it is managing.

Parameter tags : Tags assigned to an Agent.

Implementation

Future<RegisterAgentResponse> registerAgent({
  required AgentDetails agentDetails,
  required DiscoveryData discoveryData,
  Map<String, String>? tags,
}) async {
  final $payload = <String, dynamic>{
    'agentDetails': agentDetails,
    'discoveryData': discoveryData,
    if (tags != null) 'tags': tags,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/agent',
    exceptionFnMap: _exceptionFns,
  );
  return RegisterAgentResponse.fromJson(response);
}