EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Amazon S3 Storage Class

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
Posted: 06/06/2016 09:34:35
by Romana Romandini (Standard support level)
Joined: 10/22/2013
Posts: 29

Amazon S3 allows three storage class types,
Standard, Infrequent Access and Reduced Redundancy.

How can you choose storage type for the upload?
thanks in advance!
Posted: 06/06/2016 17:14:25
by Ken Ivanov (EldoS Corp.)

Hi Romana,

Just pass the appropriate storage class via the CreateObject()/WriteObject()'s StorageClass property, respectively:


Posted: 06/17/2016 11:01:28
by Romana Romandini (Standard support level)
Joined: 10/22/2013
Posts: 29

Hi, i finally had the time to test it.

I tried to set the StorageClass property but its read-only and i cannot set it.

Also, there is no constructor to set it, as the documentation states: https://www.eldos.com/documentation/sbb/documentation/ref_cl_awss3datastorageobject_mtd_constructor.html

How i can set it?

this is what i tried:

  newObject: TElAWSS3DataStorageObject;
  // FDataStorage is my TElAWSS3DataStorage object
  // ms is My Stream
  newObject := TElAWSS3DataStorageObject.Create(FDataStorage, FBucketName, FKey);
  newObject.StorageClass := 'STANDARD_IA'; // error here
  FDataStorage.WriteObject(newObject, ms, nil, nil, nil, nil, nil);

I Solved using a constructor not listed in the Pascal documentation with the StorageClass parameter, i read it from the C++ documentation

Thank you!
Posted: 06/17/2016 17:10:31
by Ken Ivanov (EldoS Corp.)

Hi Romana,

Great, we are glad that you've managed to resolve the issue by yourself.

Just a quick note, besides providing the storage class via newObject.StorageClass property, you can pass it right to the relevant parameter of the WriteObject() or CreateObject() method, e.g.

FDataStorage.WriteObject(FBucketName, FKey, ms, '', '', 'STANDARD_IA', nil, nil, nil);




Topic viewed 858 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!