diff --git a/clients/client-cloudwatch-logs/src/commands/UpdateAnomalyCommand.ts b/clients/client-cloudwatch-logs/src/commands/UpdateAnomalyCommand.ts index ee7991ad2e37..ee0519da5521 100644 --- a/clients/client-cloudwatch-logs/src/commands/UpdateAnomalyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/UpdateAnomalyCommand.ts @@ -52,6 +52,7 @@ export interface UpdateAnomalyCommandOutput extends __MetadataBearer {} * value: Number("int"), * suppressionUnit: "SECONDS" || "MINUTES" || "HOURS", * }, + * baseline: true || false, * }; * const command = new UpdateAnomalyCommand(input); * const response = await client.send(command); diff --git a/clients/client-cloudwatch-logs/src/models/models_0.ts b/clients/client-cloudwatch-logs/src/models/models_0.ts index e01b5ca2740c..380b77fada10 100644 --- a/clients/client-cloudwatch-logs/src/models/models_0.ts +++ b/clients/client-cloudwatch-logs/src/models/models_0.ts @@ -5633,6 +5633,16 @@ export interface UpdateAnomalyRequest { * @public */ suppressionPeriod?: SuppressionPeriod; + + /** + *

Set this to true to prevent CloudWatch Logs from displaying this behavior as an anomaly in the future. The behavior is then treated as + * baseline behavior. However, if similar but + * more severe occurrences of this behavior occur in the future, those will still be reported as anomalies.

+ *

The default is false + *

+ * @public + */ + baseline?: boolean; } /** diff --git a/codegen/sdk-codegen/aws-models/cloudwatch-logs.json b/codegen/sdk-codegen/aws-models/cloudwatch-logs.json index 5b28a4597bfc..8710d0e81fb1 100644 --- a/codegen/sdk-codegen/aws-models/cloudwatch-logs.json +++ b/codegen/sdk-codegen/aws-models/cloudwatch-logs.json @@ -497,6 +497,9 @@ "smithy.api#input": {} } }, + "com.amazonaws.cloudwatchlogs#Baseline": { + "type": "boolean" + }, "com.amazonaws.cloudwatchlogs#Boolean": { "type": "boolean" }, @@ -9872,6 +9875,12 @@ "traits": { "smithy.api#documentation": "

If you are temporarily suppressing an anomaly or pattern, use this structure to specify\n how long the suppression is to last.

" } + }, + "baseline": { + "target": "com.amazonaws.cloudwatchlogs#Baseline", + "traits": { + "smithy.api#documentation": "

Set this to true to prevent CloudWatch Logs from displaying this behavior as an anomaly in the future. The behavior is then treated as \n baseline behavior. However, if similar but \n more severe occurrences of this behavior occur in the future, those will still be reported as anomalies.

\n

The default is false\n

" + } } }, "traits": {