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:
https://www.esegece.com/openapi/apis/amazon-aws-sdk
The list includes popular services like:
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.
AmazonOptions
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:
Once you've the credentials, set in the following properties:
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';
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.
// LIST BUCKETS GetOpenAPIClient.AmazonOptions.AccessKey := 'AKIAIOSFODNN7EXAMPLE'; GetOpenAPIClient.AmazonOptions.SecretKey := 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY'; ShowMessage(GetOpenAPIClient.ListBuckets()); // GET OBJECT BY BUCKET NAME GetOpenAPIClient.AmazonOptions.AccessKey := 'AKIAIOSFODNN7EXAMPLE'; GetOpenAPIClient.AmazonOptions.SecretKey := 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY'; ShowMessage(GetOpenAPIClient.GetObject('bucket_name'));
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.