diff --git a/clients/client-xray/src/commands/GetTraceSummariesCommand.ts b/clients/client-xray/src/commands/GetTraceSummariesCommand.ts index 6e5938258e66..6a0832b2ce20 100644 --- a/clients/client-xray/src/commands/GetTraceSummariesCommand.ts +++ b/clients/client-xray/src/commands/GetTraceSummariesCommand.ts @@ -63,7 +63,7 @@ export interface GetTraceSummariesCommandOutput extends GetTraceSummariesResult, * const input = { // GetTraceSummariesRequest * StartTime: new Date("TIMESTAMP"), // required * EndTime: new Date("TIMESTAMP"), // required - * TimeRangeType: "TraceId" || "Event", + * TimeRangeType: "TraceId" || "Event" || "Service", * Sampling: true || false, * SamplingStrategy: { // SamplingStrategy * Name: "PartialScan" || "FixedRate", diff --git a/clients/client-xray/src/models/models_0.ts b/clients/client-xray/src/models/models_0.ts index 955d4d656576..0a0435437ed6 100644 --- a/clients/client-xray/src/models/models_0.ts +++ b/clients/client-xray/src/models/models_0.ts @@ -2295,6 +2295,7 @@ export interface SamplingStrategy { */ export const TimeRangeType = { Event: "Event", + Service: "Service", TraceId: "TraceId", } as const; @@ -2321,7 +2322,7 @@ export interface GetTraceSummariesRequest { /** * @public - *

A parameter to indicate whether to query trace summaries by TraceId or Event time.

+ *

A parameter to indicate whether to query trace summaries by TraceId, Event (trace update time), or Service (segment end time).

*/ TimeRangeType?: TimeRangeType; diff --git a/codegen/sdk-codegen/aws-models/xray.json b/codegen/sdk-codegen/aws-models/xray.json index a1299ba4d235..ba947e34e668 100644 --- a/codegen/sdk-codegen/aws-models/xray.json +++ b/codegen/sdk-codegen/aws-models/xray.json @@ -3287,7 +3287,7 @@ "TimeRangeType": { "target": "com.amazonaws.xray#TimeRangeType", "traits": { - "smithy.api#documentation": "

A parameter to indicate whether to query trace summaries by TraceId or Event time.

" + "smithy.api#documentation": "

A parameter to indicate whether to query trace summaries by TraceId, Event (trace update time), or Service (segment end time).

" } }, "Sampling": { @@ -5558,6 +5558,12 @@ "traits": { "smithy.api#enumValue": "Event" } + }, + "Service": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Service" + } } } },