Skip to content

Commit

Permalink
feat(client-lookoutmetrics): In this release we added SnsFormat to SN…
Browse files Browse the repository at this point in the history
…SConfiguration to support human readable alert.
  • Loading branch information
awstools committed May 19, 2022
1 parent 8144874 commit c28ed70
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
11 changes: 11 additions & 0 deletions clients/client-lookoutmetrics/src/models/models_0.ts
Expand Up @@ -48,6 +48,12 @@ export namespace LambdaConfiguration {
});
}

export enum SnsFormat {
JSON = "JSON",
LONG_TEXT = "LONG_TEXT",
SHORT_TEXT = "SHORT_TEXT",
}

/**
* <p>Contains information about the SNS topic to which you want to send your alerts and the IAM role that has
* access to that topic.</p>
Expand All @@ -62,6 +68,11 @@ export interface SNSConfiguration {
* <p>The ARN of the target SNS topic.</p>
*/
SnsTopicArn: string | undefined;

/**
* <p>The text format for alerts.</p>
*/
SnsFormat?: SnsFormat | string;
}

export namespace SNSConfiguration {
Expand Down
2 changes: 2 additions & 0 deletions clients/client-lookoutmetrics/src/protocols/Aws_restJson1.ts
Expand Up @@ -3109,6 +3109,7 @@ const serializeAws_restJson1SecurityGroupIdList = (input: string[], context: __S
const serializeAws_restJson1SNSConfiguration = (input: SNSConfiguration, context: __SerdeContext): any => {
return {
...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
...(input.SnsFormat !== undefined && input.SnsFormat !== null && { SnsFormat: input.SnsFormat }),
...(input.SnsTopicArn !== undefined && input.SnsTopicArn !== null && { SnsTopicArn: input.SnsTopicArn }),
};
};
Expand Down Expand Up @@ -3949,6 +3950,7 @@ const deserializeAws_restJson1SecurityGroupIdList = (output: any, context: __Ser
const deserializeAws_restJson1SNSConfiguration = (output: any, context: __SerdeContext): SNSConfiguration => {
return {
RoleArn: __expectString(output.RoleArn),
SnsFormat: __expectString(output.SnsFormat),
SnsTopicArn: __expectString(output.SnsTopicArn),
} as any;
};
Expand Down
25 changes: 25 additions & 0 deletions codegen/sdk-codegen/aws-models/lookoutmetrics.json
Expand Up @@ -4025,6 +4025,12 @@
"smithy.api#documentation": "<p>The ARN of the target SNS topic.</p>",
"smithy.api#required": {}
}
},
"SnsFormat": {
"target": "com.amazonaws.lookoutmetrics#SnsFormat",
"traits": {
"smithy.api#documentation": "<p>The text format for alerts.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -4154,6 +4160,25 @@
"smithy.api#httpError": 402
}
},
"com.amazonaws.lookoutmetrics#SnsFormat": {
"type": "string",
"traits": {
"smithy.api#enum": [
{
"value": "LONG_TEXT",
"name": "LONG_TEXT"
},
{
"value": "SHORT_TEXT",
"name": "SHORT_TEXT"
},
{
"value": "JSON",
"name": "JSON"
}
]
}
},
"com.amazonaws.lookoutmetrics#StringAttributeValue": {
"type": "string"
},
Expand Down

0 comments on commit c28ed70

Please sign in to comment.