Delphi Amazon AWS SDK

Amazon AWS provides on-demand cloud computing platforms and APIs to individuals, companies, and governments, on a metered pay-as-you-go basis. These cloud computing web services provide distributed computing processing capacity and software tools via AWS server farms.

Our sgcOpenAPI Client Parser can read the OpenAPI / Swagger Amazon AWS specifications and create automatically client interfaces in 100% pascal code, so it can be integrated in any Delphi, CBuilder or Lazarus Application.

You can check here the full list of more than 280 Amazon AWS Services:

The list includes popular services like:

  • Simple Storage Service (S3)
  • Simple Notification Service (SNS)
  • Simple Queue Service (SQS)
  • Security Token Service (STS)
  • And much more!!!!

Amazon AWS Client 

The sgcOpenAPI Amazon AWS Client (TsgcOpenAPI_Amazon_Client) has it's own OpenAPI Client which inherits from TsgcOpenAPI_Client.

This component has a property called AmazonOptions that includes all required configurations to connect to Amazon AWS Servers. 


In AmazonOptions you can define the required AccessKey and SecretKey (which must be generated previously from your Amazon Account), to authenticate against the Amazon AWS Servers.

An access key grants programmatic access to your resources. This means that you must guard the access key as carefully as the AWS account root user sign-in credentials.

It's a best practice to do the following:

  1. Create an IAM user, and then define that user's permissions as narrowly as possible.
  2. Create the access key under that IAM user.

Once you've the credentials, set in the following properties:

  • AmazonOptions.AccessKey
  • AmazonOptions.SecretKey

The AmazonOptions.JSON property allows to define if the responses are in JSON or XML.


AWS requires different types of security credentials depending on how you access AWS. For example, you need a user name and password to sign in to the AWS Management Console and you need access keys to make programmatic calls to AWS.

Once you have your own AWS Access Keys, you must configure in the OpenAPI Amazon Client before you do any Request to the Amazon AWS Servers.

GetOpenAPIClient.AmazonOptions.AccessKey := 'AKIAIOSFODNN7EXAMPLE';
GetOpenAPIClient.AmazonOptions.SecretKey := 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY'; 

Simple Storage Service (S3) 

Amazon Simple Storage Service (Amazon S3) is an object storage service that offers industry-leading scalability, data availability, security, and performance. Customers of all sizes and industries can use Amazon S3 to store and protect any amount of data for a range of use cases, such as data lakes, websites, mobile applications, backup and restore, archive, enterprise applications, IoT devices, and big data analytics. Amazon S3 provides management features so that you can optimize, organize, and configure access to your data to meet your specific business, organizational, and compliance requirements.

GetOpenAPIClient.AmazonOptions.AccessKey := 'AKIAIOSFODNN7EXAMPLE';
GetOpenAPIClient.AmazonOptions.SecretKey := 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY';

GetOpenAPIClient.AmazonOptions.AccessKey := 'AKIAIOSFODNN7EXAMPLE';
GetOpenAPIClient.AmazonOptions.SecretKey := 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY';

Delphi Amazon AWS SDK Video 

Delphi Amazon AWS SDK Client

Delphi Components 100% full native code without external dependencies. Available for Rad Studio, Delphi, CBuilder, Lazarus and .NET. Create a single application and compile for the following personalities: Windows, MacOSX, Android, iOS and Linux.
Stay Informed

When you subscribe to the blog, we will send you an e-mail when there are new updates on the site so you wouldn't miss them.

Delphi Google Cloud SDK
sgcWebSockets 2022.4.0

Related Posts