deleteDataTableAttribute method

Future<DeleteDataTableAttributeResponse> deleteDataTableAttribute({
  1. required String attributeName,
  2. required String dataTableId,
  3. required String instanceId,
})

Deletes an attribute and all its values from a data table.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServiceException. May throw InvalidParameterException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter attributeName : The name of the attribute to delete.

Parameter dataTableId : The unique identifier for the data table.

Parameter instanceId : The unique identifier for the Amazon Connect instance.

Implementation

Future<DeleteDataTableAttributeResponse> deleteDataTableAttribute({
  required String attributeName,
  required String dataTableId,
  required String instanceId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/data-tables/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(dataTableId)}/attributes/${Uri.encodeComponent(attributeName)}',
    exceptionFnMap: _exceptionFns,
  );
  return DeleteDataTableAttributeResponse.fromJson(response);
}