Skip to content

Commit

Permalink
feat(client-lookoutmetrics): Adding backtest mode to detectors using …
Browse files Browse the repository at this point in the history
…the Cloudwatch data source.
  • Loading branch information
awstools committed May 31, 2022
1 parent 2c3c3cd commit 973cdd0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions clients/client-lookoutmetrics/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1065,6 +1065,11 @@ export interface CloudWatchConfig {
* <p>An IAM role that gives Amazon Lookout for Metrics permission to access data in Amazon CloudWatch.</p>
*/
RoleArn?: string;

/**
* <p>Settings for backtest mode.</p>
*/
BackTestConfiguration?: BackTestConfiguration;
}

export namespace CloudWatchConfig {
Expand Down
8 changes: 8 additions & 0 deletions clients/client-lookoutmetrics/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2920,6 +2920,10 @@ const serializeAws_restJson1BackTestConfiguration = (input: BackTestConfiguratio

const serializeAws_restJson1CloudWatchConfig = (input: CloudWatchConfig, context: __SerdeContext): any => {
return {
...(input.BackTestConfiguration !== undefined &&
input.BackTestConfiguration !== null && {
BackTestConfiguration: serializeAws_restJson1BackTestConfiguration(input.BackTestConfiguration, context),
}),
...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
};
};
Expand Down Expand Up @@ -3429,6 +3433,10 @@ const deserializeAws_restJson1BinaryListAttributeValue = (output: any, context:

const deserializeAws_restJson1CloudWatchConfig = (output: any, context: __SerdeContext): CloudWatchConfig => {
return {
BackTestConfiguration:
output.BackTestConfiguration !== undefined && output.BackTestConfiguration !== null
? deserializeAws_restJson1BackTestConfiguration(output.BackTestConfiguration, context)
: undefined,
RoleArn: __expectString(output.RoleArn),
} as any;
};
Expand Down
6 changes: 6 additions & 0 deletions codegen/sdk-codegen/aws-models/lookoutmetrics.json
Original file line number Diff line number Diff line change
Expand Up @@ -1019,6 +1019,12 @@
"traits": {
"smithy.api#documentation": "<p>An IAM role that gives Amazon Lookout for Metrics permission to access data in Amazon CloudWatch.</p>"
}
},
"BackTestConfiguration": {
"target": "com.amazonaws.lookoutmetrics#BackTestConfiguration",
"traits": {
"smithy.api#documentation": "<p>Settings for backtest mode.</p>"
}
}
},
"traits": {
Expand Down

0 comments on commit 973cdd0

Please sign in to comment.