deletePredefinedAttribute method

Future<void> deletePredefinedAttribute({
  1. required String instanceId,
  2. required String name,
})

Deletes a predefined attribute from the specified Connect Customer instance.

May throw InternalServiceException. May throw InvalidParameterException. May throw InvalidRequestException. May throw ResourceInUseException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter instanceId : The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

Parameter name : The name of the predefined attribute.

Implementation

Future<void> deletePredefinedAttribute({
  required String instanceId,
  required String name,
}) async {
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/predefined-attributes/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(name)}',
    exceptionFnMap: _exceptionFns,
  );
}