-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
905 additions
and
865 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,5 +24,5 @@ doc/api/ | |
*.iws | ||
|
||
# Generated directories | ||
**/apis/ | ||
generator/apis/ | ||
/all_apis/lib/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# High-level APIs for Amazon Web Services (AWS) in Dart | ||
|
||
## Usage | ||
|
||
A simple usage example: | ||
|
||
````dart | ||
import 'package:aws_client/aws_client.dart'; | ||
import 'package:http_client/console.dart'; | ||
main() async { | ||
var httpClient = newHttpClient(); | ||
var credentials = new Credentials(accessKey: 'MY_ACCESS_KEY', secretKey: 'MY_SECRET_KEY'); | ||
var aws = new Aws(credentials: credentials, httpClient: httpClient); | ||
var queue = aws.sqs.queue('https://my-queue-url/number/queue-name'); | ||
await queue.sendMessage('Hello from Dart client!'); | ||
httpClient.close(); | ||
} | ||
```` | ||
|
||
## How to contribute | ||
|
||
This library is not an official library from Amazon or Google. | ||
It is developed by best effort, in the motto of _"Scratch your own itch!"_, | ||
meaning we have APIs here that we care about. Looking for contributions: | ||
|
||
- tests: | ||
|
||
- never put AWS credentials inside the code | ||
- read AWS credentials from environment variables in the beginning | ||
- provide description what setup it needs upfront | ||
|
||
- API documentation | ||
|
||
- New API contribution: | ||
|
||
- please open an issue ticket first about what you are planning to implement | ||
- take a look at the implementation of the others, most of the API calls will be similar | ||
- always include a link to AWS API docs | ||
|
||
## Links | ||
|
||
- [source code][source] | ||
- contributors: [Agilord][agilord] | ||
|
||
[source]: https://github.com/agilord/aws_client | ||
[agilord]: https://www.agilord.com/ | ||
|
||
## Available AWS APIs | ||
|
||
The following is a list of APIs that are currently available inside this package. | ||
|
||
<!-- INSERT API LIST --> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import 'package:aws_client/sqs_2012_11_05.dart'; | ||
|
||
void main() async { | ||
final sqs = Sqs( | ||
region: 'us-east-1', | ||
credentials: AwsClientCredentials.fromProfileFile(profile: 'prod')); | ||
final queue = await sqs.createQueue( | ||
queueName: 'bucket2', attributes: {QueueAttributeName.delaySeconds: '5'}); | ||
|
||
print(queue.queueUrl); | ||
await sqs.deleteQueue(queueUrl: queue.queueUrl!); | ||
sqs.close(); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.