Skip to content

Commit 991855c

Browse files
author
awstools
committed
feat(client-devops-guru): This release adds information about the resources DevOps Guru is analyzing.
1 parent 25af672 commit 991855c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+2264
-203
lines changed

clients/client-devops-guru/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"@aws-sdk/hash-node": "*",
2727
"@aws-sdk/invalid-dependency": "*",
2828
"@aws-sdk/middleware-content-length": "*",
29+
"@aws-sdk/middleware-endpoint": "*",
2930
"@aws-sdk/middleware-host-header": "*",
3031
"@aws-sdk/middleware-logger": "*",
3132
"@aws-sdk/middleware-recursion-detection": "*",
@@ -46,6 +47,7 @@
4647
"@aws-sdk/util-body-length-node": "*",
4748
"@aws-sdk/util-defaults-mode-browser": "*",
4849
"@aws-sdk/util-defaults-mode-node": "*",
50+
"@aws-sdk/util-endpoints": "*",
4951
"@aws-sdk/util-user-agent-browser": "*",
5052
"@aws-sdk/util-user-agent-node": "*",
5153
"@aws-sdk/util-utf8-browser": "*",

clients/client-devops-guru/src/DevOpsGuru.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,8 +1004,7 @@ export class DevOpsGuru extends DevOpsGuruClient {
10041004

10051005
/**
10061006
* <p> Returns a list of insights in your Amazon Web Services account. You can specify which insights are
1007-
* returned by their start time, one or more statuses (<code>ONGOING</code>,
1008-
* <code>CLOSED</code>, and <code>CLOSED</code>), one or more severities
1007+
* returned by their start time, one or more statuses (<code>ONGOING</code> or <code>CLOSED</code>), one or more severities
10091008
* (<code>LOW</code>, <code>MEDIUM</code>, and <code>HIGH</code>), and type
10101009
* (<code>REACTIVE</code> or <code>PROACTIVE</code>). </p>
10111010
* <p> Use the <code>Filters</code> parameter to specify status and severity search

clients/client-devops-guru/src/DevOpsGuruClient.ts

Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
// smithy-typescript generated code
2-
import {
3-
EndpointsInputConfig,
4-
EndpointsResolvedConfig,
5-
RegionInputConfig,
6-
RegionResolvedConfig,
7-
resolveEndpointsConfig,
8-
resolveRegionConfig,
9-
} from "@aws-sdk/config-resolver";
2+
import { RegionInputConfig, RegionResolvedConfig, resolveRegionConfig } from "@aws-sdk/config-resolver";
103
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4+
import { EndpointInputConfig, EndpointResolvedConfig, resolveEndpointConfig } from "@aws-sdk/middleware-endpoint";
115
import {
126
getHostHeaderPlugin,
137
HostHeaderInputConfig,
@@ -41,13 +35,13 @@ import {
4135
Credentials as __Credentials,
4236
Decoder as __Decoder,
4337
Encoder as __Encoder,
38+
EndpointV2 as __EndpointV2,
4439
Hash as __Hash,
4540
HashConstructor as __HashConstructor,
4641
HttpHandlerOptions as __HttpHandlerOptions,
4742
Logger as __Logger,
4843
Provider as __Provider,
4944
Provider,
50-
RegionInfoProvider,
5145
StreamCollector as __StreamCollector,
5246
UrlParser as __UrlParser,
5347
UserAgent as __UserAgent,
@@ -150,6 +144,12 @@ import {
150144
UpdateServiceIntegrationCommandInput,
151145
UpdateServiceIntegrationCommandOutput,
152146
} from "./commands/UpdateServiceIntegrationCommand";
147+
import {
148+
ClientInputEndpointParameters,
149+
ClientResolvedEndpointParameters,
150+
EndpointParameters,
151+
resolveClientEndpointParameters,
152+
} from "./endpoint/EndpointParameters";
153153
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
154154

155155
export type ServiceInputTypes =
@@ -327,12 +327,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
327327
*/
328328
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
329329

330-
/**
331-
* Fetch related hostname, signing name or signing region with given region.
332-
* @internal
333-
*/
334-
regionInfoProvider?: RegionInfoProvider;
335-
336330
/**
337331
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
338332
* @internal
@@ -348,11 +342,12 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
348342
type DevOpsGuruClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
349343
ClientDefaults &
350344
RegionInputConfig &
351-
EndpointsInputConfig &
345+
EndpointInputConfig<EndpointParameters> &
352346
RetryInputConfig &
353347
HostHeaderInputConfig &
354348
AwsAuthInputConfig &
355-
UserAgentInputConfig;
349+
UserAgentInputConfig &
350+
ClientInputEndpointParameters;
356351
/**
357352
* The configuration interface of DevOpsGuruClient class constructor that set the region, credentials and other options.
358353
*/
@@ -361,11 +356,12 @@ export interface DevOpsGuruClientConfig extends DevOpsGuruClientConfigType {}
361356
type DevOpsGuruClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
362357
Required<ClientDefaults> &
363358
RegionResolvedConfig &
364-
EndpointsResolvedConfig &
359+
EndpointResolvedConfig<EndpointParameters> &
365360
RetryResolvedConfig &
366361
HostHeaderResolvedConfig &
367362
AwsAuthResolvedConfig &
368-
UserAgentResolvedConfig;
363+
UserAgentResolvedConfig &
364+
ClientResolvedEndpointParameters;
369365
/**
370366
* The resolved configuration interface of DevOpsGuruClient class. This is resolved and normalized from the {@link DevOpsGuruClientConfig | constructor configuration interface}.
371367
*/
@@ -400,14 +396,15 @@ export class DevOpsGuruClient extends __Client<
400396

401397
constructor(configuration: DevOpsGuruClientConfig) {
402398
const _config_0 = __getRuntimeConfig(configuration);
403-
const _config_1 = resolveRegionConfig(_config_0);
404-
const _config_2 = resolveEndpointsConfig(_config_1);
405-
const _config_3 = resolveRetryConfig(_config_2);
406-
const _config_4 = resolveHostHeaderConfig(_config_3);
407-
const _config_5 = resolveAwsAuthConfig(_config_4);
408-
const _config_6 = resolveUserAgentConfig(_config_5);
409-
super(_config_6);
410-
this.config = _config_6;
399+
const _config_1 = resolveClientEndpointParameters(_config_0);
400+
const _config_2 = resolveRegionConfig(_config_1);
401+
const _config_3 = resolveEndpointConfig(_config_2);
402+
const _config_4 = resolveRetryConfig(_config_3);
403+
const _config_5 = resolveHostHeaderConfig(_config_4);
404+
const _config_6 = resolveAwsAuthConfig(_config_5);
405+
const _config_7 = resolveUserAgentConfig(_config_6);
406+
super(_config_7);
407+
this.config = _config_7;
411408
this.middlewareStack.use(getRetryPlugin(this.config));
412409
this.middlewareStack.use(getContentLengthPlugin(this.config));
413410
this.middlewareStack.use(getHostHeaderPlugin(this.config));

clients/client-devops-guru/src/commands/AddNotificationChannelCommand.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
23
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
34
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
45
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -61,6 +62,15 @@ export class AddNotificationChannelCommand extends $Command<
6162
// Start section: command_properties
6263
// End section: command_properties
6364

65+
public static getEndpointParameterInstructions(): EndpointParameterInstructions {
66+
return {
67+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
68+
Endpoint: { type: "builtInParams", name: "endpoint" },
69+
Region: { type: "builtInParams", name: "region" },
70+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
71+
};
72+
}
73+
6474
constructor(readonly input: AddNotificationChannelCommandInput) {
6575
// Start section: command_constructor
6676
super();
@@ -76,6 +86,9 @@ export class AddNotificationChannelCommand extends $Command<
7686
options?: __HttpHandlerOptions
7787
): Handler<AddNotificationChannelCommandInput, AddNotificationChannelCommandOutput> {
7888
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
89+
this.middlewareStack.use(
90+
getEndpointPlugin(configuration, AddNotificationChannelCommand.getEndpointParameterInstructions())
91+
);
7992

8093
const stack = clientStack.concat(this.middlewareStack);
8194

clients/client-devops-guru/src/commands/DeleteInsightCommand.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
23
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
34
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
45
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -52,6 +53,15 @@ export class DeleteInsightCommand extends $Command<
5253
// Start section: command_properties
5354
// End section: command_properties
5455

56+
public static getEndpointParameterInstructions(): EndpointParameterInstructions {
57+
return {
58+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
59+
Endpoint: { type: "builtInParams", name: "endpoint" },
60+
Region: { type: "builtInParams", name: "region" },
61+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
62+
};
63+
}
64+
5565
constructor(readonly input: DeleteInsightCommandInput) {
5666
// Start section: command_constructor
5767
super();
@@ -67,6 +77,7 @@ export class DeleteInsightCommand extends $Command<
6777
options?: __HttpHandlerOptions
6878
): Handler<DeleteInsightCommandInput, DeleteInsightCommandOutput> {
6979
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
80+
this.middlewareStack.use(getEndpointPlugin(configuration, DeleteInsightCommand.getEndpointParameterInstructions()));
7081

7182
const stack = clientStack.concat(this.middlewareStack);
7283

clients/client-devops-guru/src/commands/DescribeAccountHealthCommand.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
23
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
34
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
45
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -54,6 +55,15 @@ export class DescribeAccountHealthCommand extends $Command<
5455
// Start section: command_properties
5556
// End section: command_properties
5657

58+
public static getEndpointParameterInstructions(): EndpointParameterInstructions {
59+
return {
60+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
61+
Endpoint: { type: "builtInParams", name: "endpoint" },
62+
Region: { type: "builtInParams", name: "region" },
63+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
64+
};
65+
}
66+
5767
constructor(readonly input: DescribeAccountHealthCommandInput) {
5868
// Start section: command_constructor
5969
super();
@@ -69,6 +79,9 @@ export class DescribeAccountHealthCommand extends $Command<
6979
options?: __HttpHandlerOptions
7080
): Handler<DescribeAccountHealthCommandInput, DescribeAccountHealthCommandOutput> {
7181
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
82+
this.middlewareStack.use(
83+
getEndpointPlugin(configuration, DescribeAccountHealthCommand.getEndpointParameterInstructions())
84+
);
7285

7386
const stack = clientStack.concat(this.middlewareStack);
7487

clients/client-devops-guru/src/commands/DescribeAccountOverviewCommand.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
23
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
34
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
45
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -54,6 +55,15 @@ export class DescribeAccountOverviewCommand extends $Command<
5455
// Start section: command_properties
5556
// End section: command_properties
5657

58+
public static getEndpointParameterInstructions(): EndpointParameterInstructions {
59+
return {
60+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
61+
Endpoint: { type: "builtInParams", name: "endpoint" },
62+
Region: { type: "builtInParams", name: "region" },
63+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
64+
};
65+
}
66+
5767
constructor(readonly input: DescribeAccountOverviewCommandInput) {
5868
// Start section: command_constructor
5969
super();
@@ -69,6 +79,9 @@ export class DescribeAccountOverviewCommand extends $Command<
6979
options?: __HttpHandlerOptions
7080
): Handler<DescribeAccountOverviewCommandInput, DescribeAccountOverviewCommandOutput> {
7181
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
82+
this.middlewareStack.use(
83+
getEndpointPlugin(configuration, DescribeAccountOverviewCommand.getEndpointParameterInstructions())
84+
);
7285

7386
const stack = clientStack.concat(this.middlewareStack);
7487

clients/client-devops-guru/src/commands/DescribeAnomalyCommand.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
23
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
34
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
45
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -52,6 +53,15 @@ export class DescribeAnomalyCommand extends $Command<
5253
// Start section: command_properties
5354
// End section: command_properties
5455

56+
public static getEndpointParameterInstructions(): EndpointParameterInstructions {
57+
return {
58+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
59+
Endpoint: { type: "builtInParams", name: "endpoint" },
60+
Region: { type: "builtInParams", name: "region" },
61+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
62+
};
63+
}
64+
5565
constructor(readonly input: DescribeAnomalyCommandInput) {
5666
// Start section: command_constructor
5767
super();
@@ -67,6 +77,9 @@ export class DescribeAnomalyCommand extends $Command<
6777
options?: __HttpHandlerOptions
6878
): Handler<DescribeAnomalyCommandInput, DescribeAnomalyCommandOutput> {
6979
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
80+
this.middlewareStack.use(
81+
getEndpointPlugin(configuration, DescribeAnomalyCommand.getEndpointParameterInstructions())
82+
);
7083

7184
const stack = clientStack.concat(this.middlewareStack);
7285

clients/client-devops-guru/src/commands/DescribeEventSourcesConfigCommand.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
23
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
34
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
45
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -55,6 +56,15 @@ export class DescribeEventSourcesConfigCommand extends $Command<
5556
// Start section: command_properties
5657
// End section: command_properties
5758

59+
public static getEndpointParameterInstructions(): EndpointParameterInstructions {
60+
return {
61+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
62+
Endpoint: { type: "builtInParams", name: "endpoint" },
63+
Region: { type: "builtInParams", name: "region" },
64+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
65+
};
66+
}
67+
5868
constructor(readonly input: DescribeEventSourcesConfigCommandInput) {
5969
// Start section: command_constructor
6070
super();
@@ -70,6 +80,9 @@ export class DescribeEventSourcesConfigCommand extends $Command<
7080
options?: __HttpHandlerOptions
7181
): Handler<DescribeEventSourcesConfigCommandInput, DescribeEventSourcesConfigCommandOutput> {
7282
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
83+
this.middlewareStack.use(
84+
getEndpointPlugin(configuration, DescribeEventSourcesConfigCommand.getEndpointParameterInstructions())
85+
);
7386

7487
const stack = clientStack.concat(this.middlewareStack);
7588

clients/client-devops-guru/src/commands/DescribeFeedbackCommand.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
23
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
34
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
45
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -53,6 +54,15 @@ export class DescribeFeedbackCommand extends $Command<
5354
// Start section: command_properties
5455
// End section: command_properties
5556

57+
public static getEndpointParameterInstructions(): EndpointParameterInstructions {
58+
return {
59+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
60+
Endpoint: { type: "builtInParams", name: "endpoint" },
61+
Region: { type: "builtInParams", name: "region" },
62+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
63+
};
64+
}
65+
5666
constructor(readonly input: DescribeFeedbackCommandInput) {
5767
// Start section: command_constructor
5868
super();
@@ -68,6 +78,9 @@ export class DescribeFeedbackCommand extends $Command<
6878
options?: __HttpHandlerOptions
6979
): Handler<DescribeFeedbackCommandInput, DescribeFeedbackCommandOutput> {
7080
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
81+
this.middlewareStack.use(
82+
getEndpointPlugin(configuration, DescribeFeedbackCommand.getEndpointParameterInstructions())
83+
);
7184

7285
const stack = clientStack.concat(this.middlewareStack);
7386

clients/client-devops-guru/src/commands/DescribeInsightCommand.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
23
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
34
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
45
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -52,6 +53,15 @@ export class DescribeInsightCommand extends $Command<
5253
// Start section: command_properties
5354
// End section: command_properties
5455

56+
public static getEndpointParameterInstructions(): EndpointParameterInstructions {
57+
return {
58+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
59+
Endpoint: { type: "builtInParams", name: "endpoint" },
60+
Region: { type: "builtInParams", name: "region" },
61+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
62+
};
63+
}
64+
5565
constructor(readonly input: DescribeInsightCommandInput) {
5666
// Start section: command_constructor
5767
super();
@@ -67,6 +77,9 @@ export class DescribeInsightCommand extends $Command<
6777
options?: __HttpHandlerOptions
6878
): Handler<DescribeInsightCommandInput, DescribeInsightCommandOutput> {
6979
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
80+
this.middlewareStack.use(
81+
getEndpointPlugin(configuration, DescribeInsightCommand.getEndpointParameterInstructions())
82+
);
7083

7184
const stack = clientStack.concat(this.middlewareStack);
7285

0 commit comments

Comments
 (0)