deleteSegmentDefinition method

Future<DeleteSegmentDefinitionResponse> deleteSegmentDefinition({
  1. required String domainName,
  2. required String segmentDefinitionName,
})

Deletes a segment definition from the domain.

May throw AccessDeniedException. May throw BadRequestException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter domainName : The unique name of the domain.

Parameter segmentDefinitionName : The unique name of the segment definition.

Implementation

Future<DeleteSegmentDefinitionResponse> deleteSegmentDefinition({
  required String domainName,
  required String segmentDefinitionName,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/domains/${Uri.encodeComponent(domainName)}/segment-definitions/${Uri.encodeComponent(segmentDefinitionName)}',
    exceptionFnMap: _exceptionFns,
  );
  return DeleteSegmentDefinitionResponse.fromJson(response);
}