updateDataIntegration method

Future<void> updateDataIntegration({
  1. required String identifier,
  2. String? description,
  3. String? name,
})

Updates the description of a DataIntegration.

May throw AccessDeniedException. May throw InternalServiceError. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter identifier : A unique identifier for the DataIntegration.

Parameter description : A description of the DataIntegration.

Parameter name : The name of the DataIntegration.

Implementation

Future<void> updateDataIntegration({
  required String identifier,
  String? description,
  String? name,
}) async {
  final $payload = <String, dynamic>{
    if (description != null) 'Description': description,
    if (name != null) 'Name': name,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PATCH',
    requestUri: '/dataIntegrations/${Uri.encodeComponent(identifier)}',
    exceptionFnMap: _exceptionFns,
  );
}