updateFolder method
Updates the name of a folder.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalFailureException.
May throw InvalidParameterValueException.
May throw ResourceExistsException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw UnsupportedUserEditionException.
Parameter awsAccountId :
The ID for the Amazon Web Services account that contains the folder to
update.
Parameter folderId :
The ID of the folder.
Parameter name :
The name of the folder.
Implementation
Future<UpdateFolderResponse> updateFolder({
required String awsAccountId,
required String folderId,
required String name,
}) async {
final $payload = <String, dynamic>{
'Name': name,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri:
'/accounts/${Uri.encodeComponent(awsAccountId)}/folders/${Uri.encodeComponent(folderId)}',
exceptionFnMap: _exceptionFns,
);
return UpdateFolderResponse.fromJson(response);
}