deleteAppInstance method

Future<void> deleteAppInstance({
  1. required String appInstanceArn,
})

Deletes an AppInstance and all associated data asynchronously.

May throw BadRequestException. May throw ForbiddenException. May throw ThrottledClientException. May throw UnauthorizedClientException. May throw ServiceUnavailableException. May throw ServiceFailureException.

Parameter appInstanceArn : The ARN of the app instance.

Implementation

Future<void> deleteAppInstance({
  required String appInstanceArn,
}) async {
  ArgumentError.checkNotNull(appInstanceArn, 'appInstanceArn');
  _s.validateStringLength(
    'appInstanceArn',
    appInstanceArn,
    5,
    1600,
    isRequired: true,
  );
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/app-instances/${Uri.encodeComponent(appInstanceArn)}',
    exceptionFnMap: _exceptionFns,
  );
}