This diagram is used to demonstrate features of ZenUML and should not be used as best practice for using AWS services.

title Order Service (Example3)
@Lambda OrderController
@EC2 <<BFF>> OrderService
@Cognito AuthService
group BusinessService {
  @DynamoDB OrderStore
  @SNS NotificationService
}
//`POST /orders`
orderId = OrderController.create(payload) {
  orderId = OrderService.create(payload) {
    token = AuthService.auth(apiKey)
    par {
      OrderStore.save(order)
      NotificationService.send(order)      
    }
  }
}

The above diagram is generated with the following text.

title Order Service (Example3)
@Lambda OrderController
@EC2 <<BFF>> OrderService
@Cognito AuthService
group BusinessService {
  @DynamoDB OrderStore
  @SNS NotificationService
}
//`POST /orders`
orderId = OrderController.create(payload) {
  orderId = OrderService.create(payload) {
    token = AuthService.auth(apiKey)
    par {
      OrderStore.save(order)
      NotificationService.send(order)      
    }
  }
}

A full list of builtin icons: