Skip to content

Commit

Permalink
feat(client-devops-guru): This release adds the description field on …
Browse files Browse the repository at this point in the history
…ListAnomaliesForInsight and DescribeAnomaly API responses for proactive anomalies.
  • Loading branch information
awstools committed Feb 27, 2023
1 parent 3b2a484 commit 58828d8
Show file tree
Hide file tree
Showing 5 changed files with 593 additions and 813 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const resolveClientEndpointParameters = <T>(
};

export interface EndpointParameters extends __EndpointParameters {
Region: string;
Region?: string;
UseDualStack?: boolean;
UseFIPS?: boolean;
Endpoint?: string;
Expand Down
39 changes: 20 additions & 19 deletions clients/client-devops-guru/src/endpoint/ruleset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints";
or see "smithy.rules#endpointRuleSet"
in codegen/sdk-codegen/aws-models/devops-guru.json */

const q="fn",
r="argv",
s="ref";
const a=true,
b=false,
c="String",
d="PartitionResult",
e="tree",
f="error",
g="endpoint",
h={"required":true,"default":false,"type":"Boolean"},
i={[s]:"Endpoint"},
j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]},
k={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]},
l={},
m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]},
n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsDualStack"]}]},
const q="required",
r="fn",
s="argv",
t="ref";
const a="isSet",
b="tree",
c="error",
d="endpoint",
e="PartitionResult",
f={[q]:false,"type":"String"},
g={[q]:true,"default":false,"type":"Boolean"},
h={[t]:"Endpoint"},
i={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]},
j={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]},
k={},
l={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]},
m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]},
n=[i],
o=[j],
p=[k];
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}]}]};
p=[{[t]:"Region"}];
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}]}]};
export const ruleSet: RuleSetObject = _data;
34 changes: 25 additions & 9 deletions clients/client-devops-guru/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1251,7 +1251,7 @@ export interface CloudFormationCollection {
* tagging, so you can assign the same tag to resources from different services to indicate
* that the resources are related. For example, you can assign the same tag to an Amazon DynamoDB
* table resource that you assign to an Lambda function. For more information about
* using tags, see the <a href="https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf">Tagging
* using tags, see the <a href="https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/tagging-best-practices.html">Tagging
* best practices</a> whitepaper. </p>
* <p>Each Amazon Web Services tag has two parts. </p>
* <ul>
Expand Down Expand Up @@ -1331,7 +1331,7 @@ export interface ResourceCollection {
* tagging, so you can assign the same tag to resources from different services to indicate
* that the resources are related. For example, you can assign the same tag to an Amazon DynamoDB
* table resource that you assign to an Lambda function. For more information about
* using tags, see the <a href="https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf">Tagging
* using tags, see the <a href="https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/tagging-best-practices.html">Tagging
* best practices</a> whitepaper. </p>
* <p>Each Amazon Web Services tag has two parts. </p>
* <ul>
Expand Down Expand Up @@ -1447,6 +1447,13 @@ export interface ProactiveAnomaly {
* <p>Information about a resource in which DevOps Guru detected anomalous behavior.</p>
*/
AnomalyResources?: AnomalyResource[];

/**
* <p>
* A description of the proactive anomaly.
* </p>
*/
Description?: string;
}

/**
Expand Down Expand Up @@ -2080,7 +2087,7 @@ export interface DescribeOrganizationResourceCollectionHealthResponse {
* tagging, so you can assign the same tag to resources from different services to indicate
* that the resources are related. For example, you can assign the same tag to an Amazon DynamoDB
* table resource that you assign to an Lambda function. For more information about
* using tags, see the <a href="https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf">Tagging
* using tags, see the <a href="https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/tagging-best-practices.html">Tagging
* best practices</a> whitepaper. </p>
* <p>Each Amazon Web Services tag has two parts. </p>
* <ul>
Expand Down Expand Up @@ -2161,7 +2168,7 @@ export interface DescribeResourceCollectionHealthResponse {
* tagging, so you can assign the same tag to resources from different services to indicate
* that the resources are related. For example, you can assign the same tag to an Amazon DynamoDB
* table resource that you assign to an Lambda function. For more information about
* using tags, see the <a href="https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf">Tagging
* using tags, see the <a href="https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/tagging-best-practices.html">Tagging
* best practices</a> whitepaper. </p>
* <p>Each Amazon Web Services tag has two parts. </p>
* <ul>
Expand Down Expand Up @@ -2382,7 +2389,7 @@ export interface CostEstimationResourceCollectionFilter {
* tagging, so you can assign the same tag to resources from different services to indicate
* that the resources are related. For example, you can assign the same tag to an Amazon DynamoDB
* table resource that you assign to an Lambda function. For more information about
* using tags, see the <a href="https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf">Tagging
* using tags, see the <a href="https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/tagging-best-practices.html">Tagging
* best practices</a> whitepaper. </p>
* <p>Each Amazon Web Services tag has two parts. </p>
* <ul>
Expand Down Expand Up @@ -2555,7 +2562,7 @@ export interface ResourceCollectionFilter {
* tagging, so you can assign the same tag to resources from different services to indicate
* that the resources are related. For example, you can assign the same tag to an Amazon DynamoDB
* table resource that you assign to an Lambda function. For more information about
* using tags, see the <a href="https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf">Tagging
* using tags, see the <a href="https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/tagging-best-practices.html">Tagging
* best practices</a> whitepaper. </p>
* <p>Each Amazon Web Services tag has two parts. </p>
* <ul>
Expand Down Expand Up @@ -2763,6 +2770,13 @@ export interface ProactiveAnomalySummary {
* <p>Information about a resource in which DevOps Guru detected anomalous behavior.</p>
*/
AnomalyResources?: AnomalyResource[];

/**
* <p>
* A description of the proactive anomaly.
* </p>
*/
Description?: string;
}

/**
Expand Down Expand Up @@ -3919,8 +3933,10 @@ export interface RemoveNotificationChannelRequest {
export interface RemoveNotificationChannelResponse {}

/**
* <p> Specifies one or more severity values and one or more status values that are used to
* search for insights. </p>
* <p>Specifies values used to filter responses when searching for insights.
* You can use a <code>ResourceCollection</code>, <code>ServiceCollection</code>, array of severities, and an array of status values.
* Each filter type contains one or more values to search for. If you specify multiple filter types,
* the filter types are joined with an <code>AND</code>, and the request returns only results that match all of the specified filters.</p>
*/
export interface SearchInsightsFilters {
/**
Expand Down Expand Up @@ -4174,7 +4190,7 @@ export interface UpdateResourceCollectionFilter {
* tagging, so you can assign the same tag to resources from different services to indicate
* that the resources are related. For example, you can assign the same tag to an Amazon DynamoDB
* table resource that you assign to an Lambda function. For more information about
* using tags, see the <a href="https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf">Tagging
* using tags, see the <a href="https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/tagging-best-practices.html">Tagging
* best practices</a> whitepaper. </p>
* <p>Each Amazon Web Services tag has two parts. </p>
* <ul>
Expand Down
2 changes: 2 additions & 0 deletions clients/client-devops-guru/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4231,6 +4231,7 @@ const deserializeAws_restJson1ProactiveAnomaly = (output: any, context: __SerdeC
? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
: undefined,
AssociatedInsightId: __expectString(output.AssociatedInsightId),
Description: __expectString(output.Description),
Id: __expectString(output.Id),
Limit: __limitedParseDouble(output.Limit),
PredictionTimeRange:
Expand Down Expand Up @@ -4274,6 +4275,7 @@ const deserializeAws_restJson1ProactiveAnomalySummary = (
? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
: undefined,
AssociatedInsightId: __expectString(output.AssociatedInsightId),
Description: __expectString(output.Description),
Id: __expectString(output.Id),
Limit: __limitedParseDouble(output.Limit),
PredictionTimeRange:
Expand Down
Loading

0 comments on commit 58828d8

Please sign in to comment.