deleteFolder method

Future<DeleteFolderResponse> deleteFolder({
  1. required String awsAccountId,
  2. required String folderId,
})

Deletes an empty folder.

May throw AccessDeniedException. May throw ConflictException. May throw InternalFailureException. May throw InvalidParameterValueException. May throw PreconditionNotMetException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw UnsupportedUserEditionException.

Parameter awsAccountId : The ID for the Amazon Web Services account that contains the folder.

Parameter folderId : The ID of the folder.

Implementation

Future<DeleteFolderResponse> deleteFolder({
  required String awsAccountId,
  required String folderId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/accounts/${Uri.encodeComponent(awsAccountId)}/folders/${Uri.encodeComponent(folderId)}',
    exceptionFnMap: _exceptionFns,
  );
  return DeleteFolderResponse.fromJson(response);
}