Skip to content
This repository was archived by the owner on Mar 30, 2018. It is now read-only.

Commit 5687e20

Browse files
committed
Merge pull request #20 from david-at-aws/master
Add support for SNS and SQS
2 parents 4a7d006 + 14e385d commit 5687e20

File tree

77 files changed

+8997
-1881
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+8997
-1881
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
An object-oriented abstraction over the clients from the [AWS SDK for Java][sdk].
44

55
Currently in a developer preview mode with support for [Amazon EC2][ec2],
6-
[AWS Identity and Access Management][iam] and [Amazon Glacier][glacier]. As the library
7-
is still at an early stage, there may still be rough edges left until we get closer to
8-
GA. At this point we're mainly looking to start conversations about the design
6+
[AWS Identity and Access Management][iam], [Amazon Glacier][glacier], [Amazon SNS][sns],
7+
and [Amazon SQS][sqs].
8+
9+
As the library is still at an early stage, there may still be rough edges left until we
10+
get closer to GA. At this point we're mainly looking to start conversations about the design
911
of the API while we simultaneously work on adding support for more AWS services
1012
and battle-hardening the implementation.
1113

@@ -39,7 +41,7 @@ printing their DNS names and starting them (if they're currently stopped).
3941
<dependency>
4042
<groupId>com.amazonaws.resources</groupId>
4143
<artifactId>aws-resources</artifactId>
42-
<version>0.0.1</version>
44+
<version>0.0.3</version>
4345
<type>jar</type>
4446
</dependency>
4547
```
@@ -235,6 +237,8 @@ Or for the most control you can manually step through the pages of the result se
235237
[ec2]: http://aws.amazon.com/ec2/
236238
[iam]: http://aws.amazon.com/iam/
237239
[glacier]: http://aws.amazon.com/glacier/
240+
[sns]: http://aws.amazon.com/sns/
241+
[sqs]: http://aws.amazon.com/sqs/
238242
[releases]: https://github.com/awslabs/aws-sdk-java-resources/releases
239243
[api-docs]: http://docs.aws.amazon.com/AWSJavaSDKResources/latest/
240244
[issues]: https://github.com/awslabs/aws-sdk-java-resources/issues

aws-resources-core/src/main/java/com/amazonaws/resources/internal/ReflectionUtils.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,11 +414,12 @@ private static Object digInObject(Object target, String field) {
414414
* @param value the new value of the property
415415
*/
416416
private static void setValue(Object target, String field, Object value) {
417-
if ("*".equals(field)) {
417+
// TODO: Should we do this for all numbers, not just '0'?
418+
if ("0".equals(field)) {
418419

419420
if (!(target instanceof Collection)) {
420421
throw new IllegalArgumentException(
421-
"Cannot evaluate '*' on object " + target);
422+
"Cannot evaluate '0' on object " + target);
422423
}
423424

424425
@SuppressWarnings("unchecked")

aws-resources-core/src/main/java/com/amazonaws/resources/internal/model/EmbeddedIdentifierMapping.java

Lines changed: 0 additions & 87 deletions
This file was deleted.

aws-resources-ec2/src/main/java/com/amazonaws/resources/ec2/DhcpOptions.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public interface DhcpOptions {
6161
* set in the request will be overridden:
6262
* <ul>
6363
* <li>
64-
* <b><code>DhcpOptionsIds[*]</code></b>
64+
* <b><code>DhcpOptionsIds.0</code></b>
6565
* - mapped from the <code>Id</code> identifier.
6666
* </li>
6767
* </ul>
@@ -84,7 +84,7 @@ public interface DhcpOptions {
8484
* set in the request will be overridden:
8585
* <ul>
8686
* <li>
87-
* <b><code>DhcpOptionsIds[*]</code></b>
87+
* <b><code>DhcpOptionsIds.0</code></b>
8888
* - mapped from the <code>Id</code> identifier.
8989
* </li>
9090
* </ul>
@@ -183,7 +183,7 @@ void delete(DeleteDhcpOptionsRequest request, ResultCapture<Void> extractor)
183183
* set in the request will be overridden:
184184
* <ul>
185185
* <li>
186-
* <b><code>Resources[*]</code></b>
186+
* <b><code>Resources.0</code></b>
187187
* - mapped from the <code>Id</code> identifier.
188188
* </li>
189189
* </ul>
@@ -206,7 +206,7 @@ void delete(DeleteDhcpOptionsRequest request, ResultCapture<Void> extractor)
206206
* set in the request will be overridden:
207207
* <ul>
208208
* <li>
209-
* <b><code>Resources[*]</code></b>
209+
* <b><code>Resources.0</code></b>
210210
* - mapped from the <code>Id</code> identifier.
211211
* </li>
212212
* </ul>

0 commit comments

Comments
 (0)