The Appercept AWS SDK for Delphi is compatible with Delphi 10.4 (Sydney) and later. The only dependency beyond the Delphi RTL is OpenSSL via Indy when using Simple Notification Service (SNS) message verification. For more information on OpenSSL requirements see DocWiki: OpenSSL. To execute the samples in this distribution you will need an account for Amazon Web Services and a user configured with an access key for programmatic access. See Managing access keys for IAM users for details on generating access keys. The AccessKeyId and SecretAccessKey should be configured in the shared credentials file normally located at ~/.aws/credentials... more | |
... more | |
Let's start with an example to demonstrate a typical usage pattern. ... more | |
Each client class accepts a set of options when constructed, most of which are common to all clients. Options allow you to specify such details as credentials to use and retry strategies etc. Each client has an accompanying options interface and class e.g. ISQSOptions and TSQSOptions respectively for use with the TSQSOptions class. The following example demonstrates setting static credentials via options: ... more | |
Many operations on AWS are not as simple as ListQueues and require additional and sometimes complex arguments and inputs. Whenever an operation requires more input, an associated "request" object provides the relevant input. The following example will return a list of queues with a name prefix of "MyQueues": ... more | |
Responses returned by an AWS request are specific to the request made. In the previous example, the result of ListQueues will be an ISQSListQueuesResponse. Response objects commonly have methods for checking the state of the response such as IsSuccessful. Requests will also contain any request specific data such as QueueUrls in this example. | |
Exceptions are raised on significant error responses, such as ESQSNonExistentQueue when making a request of an SQS queue that doesn't exist. Some errors will be caught and automatically retried for a limited number of attempts, by default 3 retry attempts. The exception will be raised in the event that all retries fail. |
Copyright © 2019-2021 Appercept Ltd. All rights reserved.
|