Skip to content

Commit 58828d8

Browse files
author
awstools
committed
feat(client-devops-guru): This release adds the description field on ListAnomaliesForInsight and DescribeAnomaly API responses for proactive anomalies.
1 parent 3b2a484 commit 58828d8

File tree

5 files changed

+593
-813
lines changed

5 files changed

+593
-813
lines changed

clients/client-devops-guru/src/endpoint/EndpointParameters.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const resolveClientEndpointParameters = <T>(
2424
};
2525

2626
export interface EndpointParameters extends __EndpointParameters {
27-
Region: string;
27+
Region?: string;
2828
UseDualStack?: boolean;
2929
UseFIPS?: boolean;
3030
Endpoint?: string;

clients/client-devops-guru/src/endpoint/ruleset.ts

+20-19
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints";
66
or see "smithy.rules#endpointRuleSet"
77
in codegen/sdk-codegen/aws-models/devops-guru.json */
88

9-
const q="fn",
10-
r="argv",
11-
s="ref";
12-
const a=true,
13-
b=false,
14-
c="String",
15-
d="PartitionResult",
16-
e="tree",
17-
f="error",
18-
g="endpoint",
19-
h={"required":true,"default":false,"type":"Boolean"},
20-
i={[s]:"Endpoint"},
21-
j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]},
22-
k={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]},
23-
l={},
24-
m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]},
25-
n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsDualStack"]}]},
9+
const q="required",
10+
r="fn",
11+
s="argv",
12+
t="ref";
13+
const a="isSet",
14+
b="tree",
15+
c="error",
16+
d="endpoint",
17+
e="PartitionResult",
18+
f={[q]:false,"type":"String"},
19+
g={[q]:true,"default":false,"type":"Boolean"},
20+
h={[t]:"Endpoint"},
21+
i={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]},
22+
j={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]},
23+
k={},
24+
l={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]},
25+
m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]},
26+
n=[i],
2627
o=[j],
27-
p=[k];
28-
const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://devops-guru-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://devops-guru-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://devops-guru.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://devops-guru.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]};
28+
p=[{[t]:"Region"}];
29+
const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[r]:a,[s]:[h]}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{type:b,rules:[{conditions:[{[r]:a,[s]:p}],type:b,rules:[{conditions:[{[r]:"aws.partition",[s]:p,assign:e}],type:b,rules:[{conditions:[i,j],type:b,rules:[{conditions:[l,m],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://devops-guru-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://devops-guru-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[m],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://devops-guru.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{type:b,rules:[{endpoint:{url:"https://devops-guru.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]}]},{error:"Invalid Configuration: Missing Region",type:c}]}]};
2930
export const ruleSet: RuleSetObject = _data;

clients/client-devops-guru/src/models/models_0.ts

+25-9
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,7 @@ export interface CloudFormationCollection {
12511251
* tagging, so you can assign the same tag to resources from different services to indicate
12521252
* that the resources are related. For example, you can assign the same tag to an Amazon DynamoDB
12531253
* table resource that you assign to an Lambda function. For more information about
1254-
* using tags, see the <a href="https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf">Tagging
1254+
* using tags, see the <a href="https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/tagging-best-practices.html">Tagging
12551255
* best practices</a> whitepaper. </p>
12561256
* <p>Each Amazon Web Services tag has two parts. </p>
12571257
* <ul>
@@ -1331,7 +1331,7 @@ export interface ResourceCollection {
13311331
* tagging, so you can assign the same tag to resources from different services to indicate
13321332
* that the resources are related. For example, you can assign the same tag to an Amazon DynamoDB
13331333
* table resource that you assign to an Lambda function. For more information about
1334-
* using tags, see the <a href="https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf">Tagging
1334+
* using tags, see the <a href="https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/tagging-best-practices.html">Tagging
13351335
* best practices</a> whitepaper. </p>
13361336
* <p>Each Amazon Web Services tag has two parts. </p>
13371337
* <ul>
@@ -1447,6 +1447,13 @@ export interface ProactiveAnomaly {
14471447
* <p>Information about a resource in which DevOps Guru detected anomalous behavior.</p>
14481448
*/
14491449
AnomalyResources?: AnomalyResource[];
1450+
1451+
/**
1452+
* <p>
1453+
* A description of the proactive anomaly.
1454+
* </p>
1455+
*/
1456+
Description?: string;
14501457
}
14511458

14521459
/**
@@ -2080,7 +2087,7 @@ export interface DescribeOrganizationResourceCollectionHealthResponse {
20802087
* tagging, so you can assign the same tag to resources from different services to indicate
20812088
* that the resources are related. For example, you can assign the same tag to an Amazon DynamoDB
20822089
* table resource that you assign to an Lambda function. For more information about
2083-
* using tags, see the <a href="https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf">Tagging
2090+
* using tags, see the <a href="https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/tagging-best-practices.html">Tagging
20842091
* best practices</a> whitepaper. </p>
20852092
* <p>Each Amazon Web Services tag has two parts. </p>
20862093
* <ul>
@@ -2161,7 +2168,7 @@ export interface DescribeResourceCollectionHealthResponse {
21612168
* tagging, so you can assign the same tag to resources from different services to indicate
21622169
* that the resources are related. For example, you can assign the same tag to an Amazon DynamoDB
21632170
* table resource that you assign to an Lambda function. For more information about
2164-
* using tags, see the <a href="https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf">Tagging
2171+
* using tags, see the <a href="https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/tagging-best-practices.html">Tagging
21652172
* best practices</a> whitepaper. </p>
21662173
* <p>Each Amazon Web Services tag has two parts. </p>
21672174
* <ul>
@@ -2382,7 +2389,7 @@ export interface CostEstimationResourceCollectionFilter {
23822389
* tagging, so you can assign the same tag to resources from different services to indicate
23832390
* that the resources are related. For example, you can assign the same tag to an Amazon DynamoDB
23842391
* table resource that you assign to an Lambda function. For more information about
2385-
* using tags, see the <a href="https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf">Tagging
2392+
* using tags, see the <a href="https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/tagging-best-practices.html">Tagging
23862393
* best practices</a> whitepaper. </p>
23872394
* <p>Each Amazon Web Services tag has two parts. </p>
23882395
* <ul>
@@ -2555,7 +2562,7 @@ export interface ResourceCollectionFilter {
25552562
* tagging, so you can assign the same tag to resources from different services to indicate
25562563
* that the resources are related. For example, you can assign the same tag to an Amazon DynamoDB
25572564
* table resource that you assign to an Lambda function. For more information about
2558-
* using tags, see the <a href="https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf">Tagging
2565+
* using tags, see the <a href="https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/tagging-best-practices.html">Tagging
25592566
* best practices</a> whitepaper. </p>
25602567
* <p>Each Amazon Web Services tag has two parts. </p>
25612568
* <ul>
@@ -2763,6 +2770,13 @@ export interface ProactiveAnomalySummary {
27632770
* <p>Information about a resource in which DevOps Guru detected anomalous behavior.</p>
27642771
*/
27652772
AnomalyResources?: AnomalyResource[];
2773+
2774+
/**
2775+
* <p>
2776+
* A description of the proactive anomaly.
2777+
* </p>
2778+
*/
2779+
Description?: string;
27662780
}
27672781

27682782
/**
@@ -3919,8 +3933,10 @@ export interface RemoveNotificationChannelRequest {
39193933
export interface RemoveNotificationChannelResponse {}
39203934

39213935
/**
3922-
* <p> Specifies one or more severity values and one or more status values that are used to
3923-
* search for insights. </p>
3936+
* <p>Specifies values used to filter responses when searching for insights.
3937+
* You can use a <code>ResourceCollection</code>, <code>ServiceCollection</code>, array of severities, and an array of status values.
3938+
* Each filter type contains one or more values to search for. If you specify multiple filter types,
3939+
* the filter types are joined with an <code>AND</code>, and the request returns only results that match all of the specified filters.</p>
39243940
*/
39253941
export interface SearchInsightsFilters {
39263942
/**
@@ -4174,7 +4190,7 @@ export interface UpdateResourceCollectionFilter {
41744190
* tagging, so you can assign the same tag to resources from different services to indicate
41754191
* that the resources are related. For example, you can assign the same tag to an Amazon DynamoDB
41764192
* table resource that you assign to an Lambda function. For more information about
4177-
* using tags, see the <a href="https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf">Tagging
4193+
* using tags, see the <a href="https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/tagging-best-practices.html">Tagging
41784194
* best practices</a> whitepaper. </p>
41794195
* <p>Each Amazon Web Services tag has two parts. </p>
41804196
* <ul>

clients/client-devops-guru/src/protocols/Aws_restJson1.ts

+2
Original file line numberDiff line numberDiff line change
@@ -4231,6 +4231,7 @@ const deserializeAws_restJson1ProactiveAnomaly = (output: any, context: __SerdeC
42314231
? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
42324232
: undefined,
42334233
AssociatedInsightId: __expectString(output.AssociatedInsightId),
4234+
Description: __expectString(output.Description),
42344235
Id: __expectString(output.Id),
42354236
Limit: __limitedParseDouble(output.Limit),
42364237
PredictionTimeRange:
@@ -4274,6 +4275,7 @@ const deserializeAws_restJson1ProactiveAnomalySummary = (
42744275
? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
42754276
: undefined,
42764277
AssociatedInsightId: __expectString(output.AssociatedInsightId),
4278+
Description: __expectString(output.Description),
42774279
Id: __expectString(output.Id),
42784280
Limit: __limitedParseDouble(output.Limit),
42794281
PredictionTimeRange:

0 commit comments

Comments
 (0)