From 24a5a7b2116f53fccdef44ea669c2f49e44e543b Mon Sep 17 00:00:00 2001 From: AWS <> Date: Wed, 3 Mar 2021 19:10:00 +0000 Subject: [PATCH] Amazon CloudWatch Events Update: Adds TraceHeader to PutEventsRequestEntry to support AWS X-Ray trace-ids on events generated using the PutEvents operation. --- .../feature-AmazonCloudWatchEvents-75c30a7.json | 6 ++++++ .../resources/codegen-resources/service-2.json | 15 ++++++++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 .changes/next-release/feature-AmazonCloudWatchEvents-75c30a7.json diff --git a/.changes/next-release/feature-AmazonCloudWatchEvents-75c30a7.json b/.changes/next-release/feature-AmazonCloudWatchEvents-75c30a7.json new file mode 100644 index 000000000000..0f8e87f4d86c --- /dev/null +++ b/.changes/next-release/feature-AmazonCloudWatchEvents-75c30a7.json @@ -0,0 +1,6 @@ +{ + "type": "feature", + "category": "Amazon CloudWatch Events", + "contributor": "", + "description": "Adds TraceHeader to PutEventsRequestEntry to support AWS X-Ray trace-ids on events generated using the PutEvents operation." +} diff --git a/services/cloudwatchevents/src/main/resources/codegen-resources/service-2.json b/services/cloudwatchevents/src/main/resources/codegen-resources/service-2.json index fe273a226c05..fb2d1bfe1835 100644 --- a/services/cloudwatchevents/src/main/resources/codegen-resources/service-2.json +++ b/services/cloudwatchevents/src/main/resources/codegen-resources/service-2.json @@ -962,13 +962,13 @@ "type":"string", "max":64, "min":1, - "pattern":"([a-zA-Z0-9]+)|(\\$(\\.[\\w_-]+(\\[(\\d+|\\*)\\])*)*)" + "pattern":"([a-zA-Z0-9_+.-@]+)|(\\$(\\.[\\w_-]+(\\[(\\d+|\\*)\\])*)*)" }, "DbUser":{ "type":"string", "max":128, "min":1, - "pattern":"([a-zA-Z0-9]+)|(\\$(\\.[\\w_-]+(\\[(\\d+|\\*)\\])*)*)" + "pattern":"([a-zA-Z0-9_+.-@]+)|(\\$(\\.[\\w_-]+(\\[(\\d+|\\*)\\])*)*)" }, "DeactivateEventSourceRequest":{ "type":"structure", @@ -2080,6 +2080,10 @@ "EventBusName":{ "shape":"NonPartnerEventBusNameOrArn", "documentation":"

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.

" + }, + "TraceHeader":{ + "shape":"TraceHeader", + "documentation":"

An AWS X-Ray trade header, which is an http header (X-Amzn-Trace-Id) that contains the trace-id associated with the event.

To learn more about X-Ray trace headers, see Tracing header in the AWS X-Ray Developer Guide.

" } }, "documentation":"

Represents an event to be submitted.

" @@ -2998,7 +3002,7 @@ }, "Event":{ "shape":"String", - "documentation":"

The event, in JSON format, to test against the event pattern.

" + "documentation":"

The event, in JSON format, to test against the event pattern. The JSON must follow the format specified in AWS Events, and the following fields are mandatory:

" } } }, @@ -3012,6 +3016,11 @@ } }, "Timestamp":{"type":"timestamp"}, + "TraceHeader":{ + "type":"string", + "max":500, + "min":1 + }, "TransformerInput":{ "type":"string", "max":8192,