createDataflowEndpointGroup method

Future<DataflowEndpointGroupIdResponse> createDataflowEndpointGroup({
  1. required List<EndpointDetails> endpointDetails,
  2. Map<String, String>? tags,
})

Creates a DataflowEndpoint group containing the specified list of DataflowEndpoint objects.

The name field in each endpoint is used in your mission profile DataflowEndpointConfig to specify which endpoints to use during a contact.

When a contact uses multiple DataflowEndpointConfig objects, each Config must match a DataflowEndpoint in the same group.

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

Parameter endpointDetails : Endpoint details of each endpoint in the dataflow endpoint group.

Parameter tags : Tags of a dataflow endpoint group.

Implementation

Future<DataflowEndpointGroupIdResponse> createDataflowEndpointGroup({
  required List<EndpointDetails> endpointDetails,
  Map<String, String>? tags,
}) async {
  ArgumentError.checkNotNull(endpointDetails, 'endpointDetails');
  final $payload = <String, dynamic>{
    'endpointDetails': endpointDetails,
    if (tags != null) 'tags': tags,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/dataflowEndpointGroup',
    exceptionFnMap: _exceptionFns,
  );
  return DataflowEndpointGroupIdResponse.fromJson(response);
}