Spring Cloud for Amazon Web Services

2.2.0 M3

Spring Cloud for Amazon Web Services, part of the Spring Cloud umbrella project, eases the integration with hosted Amazon Web Services. It offers a convenient way to interact with AWS provided services using well-known Spring idioms and APIs, such as the messaging or caching API. Developers can build their application around the hosted services without having to care about infrastructure or maintenance.

Features

Annotation-based SQS Queue Listener

@MessageMapping("logicalQueueName")
private void receiveMessage(Person person, @Header("SenderId") String senderId) {
    // ...
}

Annotation-based SNS Listener

@Controller
@RequestMapping("/sns/receive")
public class SnsEndpointController {

@NotificationMessageMapping
public void receiveNotification(@NotificationMessage String message, @NotificationSubject String subject) {
    // ...
}

@NotificationSubscriptionMapping
public void confirmSubscription(NotificationStatus notificationStatus) {
    notificationStatus.confirmSubscription();
}

Messaging Templates

snsTemplate.sendNotification("SnsTopic", "message", "subject");
sqsTemplate.convertAndSend("Queue", new Person("John", "Doe"));

Quick start

Bootstrap your application with Spring Initializr.

Documentation

Each Spring project has its own; it explains in great details how you can use project features and what you can achieve with them.
2.2.0 M3 PRE CURRENT Reference Doc. API Doc.
2.2.0 SNAPSHOT CURRENT Reference Doc. API Doc.
2.1.4 SNAPSHOT CURRENT Reference Doc. API Doc.
2.1.3 CURRENT GA Reference Doc. API Doc.
2.0.4 SNAPSHOT Reference Doc. API Doc.
2.0.3 GA Reference Doc. API Doc.
1.2.5 SNAPSHOT Reference Doc. API Doc.
1.2.4 GA Reference Doc. API Doc.
1.1.4 GA Reference Doc. API Doc.
1.0.4 GA Reference Doc. API Doc.

A few examples to try out: