Skip to content

Commit 973cdd0

Browse files
author
awstools
committed
feat(client-lookoutmetrics): Adding backtest mode to detectors using the Cloudwatch data source.
1 parent 2c3c3cd commit 973cdd0

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

clients/client-lookoutmetrics/src/models/models_0.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,6 +1065,11 @@ export interface CloudWatchConfig {
10651065
* <p>An IAM role that gives Amazon Lookout for Metrics permission to access data in Amazon CloudWatch.</p>
10661066
*/
10671067
RoleArn?: string;
1068+
1069+
/**
1070+
* <p>Settings for backtest mode.</p>
1071+
*/
1072+
BackTestConfiguration?: BackTestConfiguration;
10681073
}
10691074

10701075
export namespace CloudWatchConfig {

clients/client-lookoutmetrics/src/protocols/Aws_restJson1.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2920,6 +2920,10 @@ const serializeAws_restJson1BackTestConfiguration = (input: BackTestConfiguratio
29202920

29212921
const serializeAws_restJson1CloudWatchConfig = (input: CloudWatchConfig, context: __SerdeContext): any => {
29222922
return {
2923+
...(input.BackTestConfiguration !== undefined &&
2924+
input.BackTestConfiguration !== null && {
2925+
BackTestConfiguration: serializeAws_restJson1BackTestConfiguration(input.BackTestConfiguration, context),
2926+
}),
29232927
...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
29242928
};
29252929
};
@@ -3429,6 +3433,10 @@ const deserializeAws_restJson1BinaryListAttributeValue = (output: any, context:
34293433

34303434
const deserializeAws_restJson1CloudWatchConfig = (output: any, context: __SerdeContext): CloudWatchConfig => {
34313435
return {
3436+
BackTestConfiguration:
3437+
output.BackTestConfiguration !== undefined && output.BackTestConfiguration !== null
3438+
? deserializeAws_restJson1BackTestConfiguration(output.BackTestConfiguration, context)
3439+
: undefined,
34323440
RoleArn: __expectString(output.RoleArn),
34333441
} as any;
34343442
};

codegen/sdk-codegen/aws-models/lookoutmetrics.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,6 +1019,12 @@
10191019
"traits": {
10201020
"smithy.api#documentation": "<p>An IAM role that gives Amazon Lookout for Metrics permission to access data in Amazon CloudWatch.</p>"
10211021
}
1022+
},
1023+
"BackTestConfiguration": {
1024+
"target": "com.amazonaws.lookoutmetrics#BackTestConfiguration",
1025+
"traits": {
1026+
"smithy.api#documentation": "<p>Settings for backtest mode.</p>"
1027+
}
10221028
}
10231029
},
10241030
"traits": {

0 commit comments

Comments
 (0)