Skip to content

Commit c28ed70

Browse files
author
awstools
committed
feat(client-lookoutmetrics): In this release we added SnsFormat to SNSConfiguration to support human readable alert.
1 parent 8144874 commit c28ed70

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

Diff for: clients/client-lookoutmetrics/src/models/models_0.ts

+11
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ export namespace LambdaConfiguration {
4848
});
4949
}
5050

51+
export enum SnsFormat {
52+
JSON = "JSON",
53+
LONG_TEXT = "LONG_TEXT",
54+
SHORT_TEXT = "SHORT_TEXT",
55+
}
56+
5157
/**
5258
* <p>Contains information about the SNS topic to which you want to send your alerts and the IAM role that has
5359
* access to that topic.</p>
@@ -62,6 +68,11 @@ export interface SNSConfiguration {
6268
* <p>The ARN of the target SNS topic.</p>
6369
*/
6470
SnsTopicArn: string | undefined;
71+
72+
/**
73+
* <p>The text format for alerts.</p>
74+
*/
75+
SnsFormat?: SnsFormat | string;
6576
}
6677

6778
export namespace SNSConfiguration {

Diff for: clients/client-lookoutmetrics/src/protocols/Aws_restJson1.ts

+2
Original file line numberDiff line numberDiff line change
@@ -3109,6 +3109,7 @@ const serializeAws_restJson1SecurityGroupIdList = (input: string[], context: __S
31093109
const serializeAws_restJson1SNSConfiguration = (input: SNSConfiguration, context: __SerdeContext): any => {
31103110
return {
31113111
...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
3112+
...(input.SnsFormat !== undefined && input.SnsFormat !== null && { SnsFormat: input.SnsFormat }),
31123113
...(input.SnsTopicArn !== undefined && input.SnsTopicArn !== null && { SnsTopicArn: input.SnsTopicArn }),
31133114
};
31143115
};
@@ -3949,6 +3950,7 @@ const deserializeAws_restJson1SecurityGroupIdList = (output: any, context: __Ser
39493950
const deserializeAws_restJson1SNSConfiguration = (output: any, context: __SerdeContext): SNSConfiguration => {
39503951
return {
39513952
RoleArn: __expectString(output.RoleArn),
3953+
SnsFormat: __expectString(output.SnsFormat),
39523954
SnsTopicArn: __expectString(output.SnsTopicArn),
39533955
} as any;
39543956
};

Diff for: codegen/sdk-codegen/aws-models/lookoutmetrics.json

+25
Original file line numberDiff line numberDiff line change
@@ -4025,6 +4025,12 @@
40254025
"smithy.api#documentation": "<p>The ARN of the target SNS topic.</p>",
40264026
"smithy.api#required": {}
40274027
}
4028+
},
4029+
"SnsFormat": {
4030+
"target": "com.amazonaws.lookoutmetrics#SnsFormat",
4031+
"traits": {
4032+
"smithy.api#documentation": "<p>The text format for alerts.</p>"
4033+
}
40284034
}
40294035
},
40304036
"traits": {
@@ -4154,6 +4160,25 @@
41544160
"smithy.api#httpError": 402
41554161
}
41564162
},
4163+
"com.amazonaws.lookoutmetrics#SnsFormat": {
4164+
"type": "string",
4165+
"traits": {
4166+
"smithy.api#enum": [
4167+
{
4168+
"value": "LONG_TEXT",
4169+
"name": "LONG_TEXT"
4170+
},
4171+
{
4172+
"value": "SHORT_TEXT",
4173+
"name": "SHORT_TEXT"
4174+
},
4175+
{
4176+
"value": "JSON",
4177+
"name": "JSON"
4178+
}
4179+
]
4180+
}
4181+
},
41574182
"com.amazonaws.lookoutmetrics#StringAttributeValue": {
41584183
"type": "string"
41594184
},

0 commit comments

Comments
 (0)