Skip to content

Commit 470be0f

Browse files
author
AWS
committed
Amazon EventBridge Update: Adds TraceHeader to PutEventsRequestEntry to support AWS X-Ray trace-ids on events generated using the PutEvents operation.
1 parent 848953b commit 470be0f

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon EventBridge",
4+
"contributor": "",
5+
"description": "Adds TraceHeader to PutEventsRequestEntry to support AWS X-Ray trace-ids on events generated using the PutEvents operation."
6+
}

services/eventbridge/src/main/resources/codegen-resources/service-2.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -962,13 +962,13 @@
962962
"type":"string",
963963
"max":64,
964964
"min":1,
965-
"pattern":"([a-zA-Z0-9]+)|(\\$(\\.[\\w_-]+(\\[(\\d+|\\*)\\])*)*)"
965+
"pattern":"([a-zA-Z0-9_+.-@]+)|(\\$(\\.[\\w_-]+(\\[(\\d+|\\*)\\])*)*)"
966966
},
967967
"DbUser":{
968968
"type":"string",
969969
"max":128,
970970
"min":1,
971-
"pattern":"([a-zA-Z0-9]+)|(\\$(\\.[\\w_-]+(\\[(\\d+|\\*)\\])*)*)"
971+
"pattern":"([a-zA-Z0-9_+.-@]+)|(\\$(\\.[\\w_-]+(\\[(\\d+|\\*)\\])*)*)"
972972
},
973973
"DeactivateEventSourceRequest":{
974974
"type":"structure",
@@ -2080,6 +2080,10 @@
20802080
"EventBusName":{
20812081
"shape":"NonPartnerEventBusNameOrArn",
20822082
"documentation":"<p>The name or ARN of the event bus to receive the event. Only the rules that are associated with this event bus are used to match the event. If you omit this, the default event bus is used.</p>"
2083+
},
2084+
"TraceHeader":{
2085+
"shape":"TraceHeader",
2086+
"documentation":"<p>An AWS X-Ray trade header, which is an http header (X-Amzn-Trace-Id) that contains the trace-id associated with the event.</p> <p>To learn more about X-Ray trace headers, see <a href=\"https://docs.aws.amazon.com/xray/latest/devguide/xray-concepts.html#xray-concepts-tracingheader\">Tracing header</a> in the AWS X-Ray Developer Guide.</p>"
20832087
}
20842088
},
20852089
"documentation":"<p>Represents an event to be submitted.</p>"
@@ -2998,7 +3002,7 @@
29983002
},
29993003
"Event":{
30003004
"shape":"String",
3001-
"documentation":"<p>The event, in JSON format, to test against the event pattern.</p>"
3005+
"documentation":"<p>The event, in JSON format, to test against the event pattern. The JSON must follow the format specified in <a href=\"https://docs.aws.amazon.com/eventbridge/latest/userguide/aws-events.html\">AWS Events</a>, and the following fields are mandatory:</p> <ul> <li> <p> <code>id</code> </p> </li> <li> <p> <code>account</code> </p> </li> <li> <p> <code>source</code> </p> </li> <li> <p> <code>time</code> </p> </li> <li> <p> <code>region</code> </p> </li> <li> <p> <code>resources</code> </p> </li> <li> <p> <code>detail-type</code> </p> </li> </ul>"
30023006
}
30033007
}
30043008
},
@@ -3012,6 +3016,11 @@
30123016
}
30133017
},
30143018
"Timestamp":{"type":"timestamp"},
3019+
"TraceHeader":{
3020+
"type":"string",
3021+
"max":500,
3022+
"min":1
3023+
},
30153024
"TransformerInput":{
30163025
"type":"string",
30173026
"max":8192,

0 commit comments

Comments
 (0)