Amazon SQS
Send and receive Amazon SQS messages from Delphi/C++Builder. AWS Signature V4 signing, queue management and FIFO support in one typed component.
Send and receive Amazon SQS messages from Delphi/C++Builder. AWS Signature V4 signing, queue management and FIFO support in one typed component.
AWS SQS client component — SendMessage, ReceiveMessage, DeleteMessage, ChangeMessageVisibility, queue CRUD, all SigV4-signed with your access-key/secret pair.
TsgcHTTPAWS_SQS_Client
Windows, macOS, Linux, iOS, Android
Standard / Professional / Enterprise
Set AccessKey / SecretKey / Region, then call SendMessage to enqueue, ReceiveMessage to consume and DeleteMessage to acknowledge.
uses
sgcHTTP;
var
SQS: TsgcHTTPAWS_SQS_Client;
begin
SQS := TsgcHTTPAWS_SQS_Client.Create(nil);
SQS.AWSOptions.AccessKey := 'AKIA...';
SQS.AWSOptions.SecretKey := 'your-secret';
SQS.AWSOptions.Region := 'eu-west-1';
// publish
SQS.SendMessage(
'https://sqs.eu-west-1.amazonaws.com/123456789012/orders',
'{"orderId":42,"status":"new"}');
// consume
Memo1.Text := SQS.ReceiveMessage(
'https://sqs.eu-west-1.amazonaws.com/123456789012/orders', 10);
end;
// uses: sgcHTTP
TsgcHTTPAWS_SQS_Client *SQS = new TsgcHTTPAWS_SQS_Client(this);
SQS->AWSOptions->AccessKey = "AKIA...";
SQS->AWSOptions->SecretKey = "your-secret";
SQS->AWSOptions->Region = "eu-west-1";
SQS->SendMessage(queueUrl, payload);
Memo1->Text = SQS->ReceiveMessage(queueUrl, 10);
Targets the modern sqs.<region>.amazonaws.com JSON+SigV4 endpoint surface.
CreateQueue, DeleteQueue, GetQueueUrl, ListQueues, GetQueueAttributes, SetQueueAttributes handle the queue control plane.
SendMessage, SendMessageBatch, ReceiveMessage, DeleteMessage, DeleteMessageBatch, ChangeMessageVisibility cover the data plane.
For FIFO queues the component takes MessageGroupId and MessageDeduplicationId; SequenceNumber is returned in the response. Visibility timeout is per group.
Every request is signed per AWS's SigV4 spec — canonical request, hash, signing key, header injection. Long-term keys are supported; STS session tokens are honoured via AWSOptions.SessionToken.
Pass a non-zero WaitTimeSeconds to ReceiveMessage for SQS long polling — up to 20 seconds wait, fewer empty receives, lower request count.
Always uses HTTPS to the regional SQS endpoint — SSE-SQS / SSE-KMS encryption-at-rest is configured server-side via SetQueueAttributes.
Authoritative sources for the API this component implements.
Deep-link to the component reference, grab the ready-to-run demo project, and download the trial.
| Online Help — AWS SQS Client Full property, method and event reference for this component. | Open | |
| Demo Project — Demos\20.HTTP_Protocol\04.AWS Ready-to-run example project. Ships inside the sgcWebSockets package — download the trial below. | Open | |
| Technical Document (PDF) Features, quick start, code samples for Delphi & C++ Builder and primary-source references — this component only. | Open | |
| User Manual (PDF) Comprehensive manual covering every component in the library. | Open |