deleteActivity method

Future<void> deleteActivity({
  1. required String activityArn,
})

Deletes an activity.

May throw InvalidArn.

Parameter activityArn : The Amazon Resource Name (ARN) of the activity to delete.

Implementation

Future<void> deleteActivity({
  required String activityArn,
}) async {
  ArgumentError.checkNotNull(activityArn, 'activityArn');
  _s.validateStringLength(
    'activityArn',
    activityArn,
    1,
    256,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'AWSStepFunctions.DeleteActivity'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'activityArn': activityArn,
    },
  );
}