Slide 38
Slide 38 text
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
EventBridge – Transformateur d’entrée
{
"datetime": "$.time",
"domain": "$.detail.metadata.domain",
"subdomain": "$.detail.metadata.subdomain",
"service": "$.detail.metadata.service",
"orderId": "$.detail.data.order_number",
"amount": "$.detail.data.total",
"currency": "$.detail.data.currency",
"customerId": "$.detail.data.customer_id",
"products": "$.detail.data.items"
}
Chemin d'entrée
{
"version": "0",
"id": "6a7e8feb-b491-4cf7",
"detail-type": "order-submission",
"source": "checkout",
"account": "123456789012",
"time": "2023-10-29T12:10:21Z",
"region": "eu-central-1",
"resources": ["arn:your-event-bus"],
"detail": {
"metadata": {
"version": "1",
"domain": "retail",
"subdomain": "checkout",
"service": "order-submission",
"category": "domain-event",
"type": "data"
},
"data": {
"order_number": "123-456x",
"total": 29.99,
"currency": "EUR",
"customer_id": "cu-101",
"items": []
}
}
}