@aws-sdk/client-application-insights 3.379.1 → 3.380.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +55 -7
- package/dist-cjs/ApplicationInsights.js +12 -0
- package/dist-cjs/commands/AddWorkloadCommand.js +46 -0
- package/dist-cjs/commands/DescribeWorkloadCommand.js +46 -0
- package/dist-cjs/commands/ListWorkloadsCommand.js +46 -0
- package/dist-cjs/commands/RemoveWorkloadCommand.js +46 -0
- package/dist-cjs/commands/UpdateProblemCommand.js +46 -0
- package/dist-cjs/commands/UpdateWorkloadCommand.js +46 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +118 -31
- package/dist-cjs/pagination/ListWorkloadsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +290 -2
- package/dist-es/ApplicationInsights.js +12 -0
- package/dist-es/commands/AddWorkloadCommand.js +42 -0
- package/dist-es/commands/DescribeWorkloadCommand.js +42 -0
- package/dist-es/commands/ListWorkloadsCommand.js +42 -0
- package/dist-es/commands/RemoveWorkloadCommand.js +42 -0
- package/dist-es/commands/UpdateProblemCommand.js +42 -0
- package/dist-es/commands/UpdateWorkloadCommand.js +42 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +114 -27
- package/dist-es/pagination/ListWorkloadsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +276 -0
- package/dist-types/ApplicationInsights.d.ts +42 -0
- package/dist-types/ApplicationInsightsClient.d.ts +8 -2
- package/dist-types/commands/AddWorkloadCommand.d.ts +96 -0
- package/dist-types/commands/CreateApplicationCommand.d.ts +3 -2
- package/dist-types/commands/DescribeApplicationCommand.d.ts +3 -1
- package/dist-types/commands/DescribeComponentCommand.d.ts +3 -2
- package/dist-types/commands/DescribeComponentConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/DescribeComponentConfigurationRecommendationCommand.d.ts +2 -1
- package/dist-types/commands/DescribeLogPatternCommand.d.ts +2 -0
- package/dist-types/commands/DescribeObservationCommand.d.ts +3 -2
- package/dist-types/commands/DescribeProblemCommand.d.ts +7 -3
- package/dist-types/commands/DescribeProblemObservationsCommand.d.ts +3 -2
- package/dist-types/commands/DescribeWorkloadCommand.d.ts +91 -0
- package/dist-types/commands/ListApplicationsCommand.d.ts +3 -1
- package/dist-types/commands/ListComponentsCommand.d.ts +3 -2
- package/dist-types/commands/ListConfigurationHistoryCommand.d.ts +6 -3
- package/dist-types/commands/ListLogPatternSetsCommand.d.ts +2 -0
- package/dist-types/commands/ListLogPatternsCommand.d.ts +2 -0
- package/dist-types/commands/ListProblemsCommand.d.ts +9 -3
- package/dist-types/commands/ListWorkloadsCommand.d.ts +95 -0
- package/dist-types/commands/RemoveWorkloadCommand.d.ts +82 -0
- package/dist-types/commands/UpdateApplicationCommand.d.ts +2 -1
- package/dist-types/commands/UpdateComponentConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateProblemCommand.d.ts +83 -0
- package/dist-types/commands/UpdateWorkloadCommand.d.ts +94 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +560 -67
- package/dist-types/pagination/ListWorkloadsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +54 -0
- package/dist-types/ts3.4/ApplicationInsights.d.ts +102 -0
- package/dist-types/ts3.4/ApplicationInsightsClient.d.ts +38 -2
- package/dist-types/ts3.4/commands/AddWorkloadCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DescribeWorkloadCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListWorkloadsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/RemoveWorkloadCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateProblemCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateWorkloadCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +227 -63
- package/dist-types/ts3.4/pagination/ListWorkloadsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +72 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,16 +35,16 @@ using your favorite package manager:
|
|
|
35
35
|
|
|
36
36
|
The AWS SDK is modulized by clients and commands.
|
|
37
37
|
To send a request, you only need to import the `ApplicationInsightsClient` and
|
|
38
|
-
the commands you need, for example `
|
|
38
|
+
the commands you need, for example `AddWorkloadCommand`:
|
|
39
39
|
|
|
40
40
|
```js
|
|
41
41
|
// ES5 example
|
|
42
|
-
const { ApplicationInsightsClient,
|
|
42
|
+
const { ApplicationInsightsClient, AddWorkloadCommand } = require("@aws-sdk/client-application-insights");
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
```ts
|
|
46
46
|
// ES6+ example
|
|
47
|
-
import { ApplicationInsightsClient,
|
|
47
|
+
import { ApplicationInsightsClient, AddWorkloadCommand } from "@aws-sdk/client-application-insights";
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
### Usage
|
|
@@ -63,7 +63,7 @@ const client = new ApplicationInsightsClient({ region: "REGION" });
|
|
|
63
63
|
const params = {
|
|
64
64
|
/** input parameters */
|
|
65
65
|
};
|
|
66
|
-
const command = new
|
|
66
|
+
const command = new AddWorkloadCommand(params);
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
#### Async/await
|
|
@@ -142,7 +142,7 @@ const client = new AWS.ApplicationInsights({ region: "REGION" });
|
|
|
142
142
|
|
|
143
143
|
// async/await.
|
|
144
144
|
try {
|
|
145
|
-
const data = await client.
|
|
145
|
+
const data = await client.addWorkload(params);
|
|
146
146
|
// process data.
|
|
147
147
|
} catch (error) {
|
|
148
148
|
// error handling.
|
|
@@ -150,7 +150,7 @@ try {
|
|
|
150
150
|
|
|
151
151
|
// Promises.
|
|
152
152
|
client
|
|
153
|
-
.
|
|
153
|
+
.addWorkload(params)
|
|
154
154
|
.then((data) => {
|
|
155
155
|
// process data.
|
|
156
156
|
})
|
|
@@ -159,7 +159,7 @@ client
|
|
|
159
159
|
});
|
|
160
160
|
|
|
161
161
|
// callbacks.
|
|
162
|
-
client.
|
|
162
|
+
client.addWorkload(params, (err, data) => {
|
|
163
163
|
// process err and data.
|
|
164
164
|
});
|
|
165
165
|
```
|
|
@@ -215,6 +215,14 @@ see LICENSE for more information.
|
|
|
215
215
|
|
|
216
216
|
## Client Commands (Operations List)
|
|
217
217
|
|
|
218
|
+
<details>
|
|
219
|
+
<summary>
|
|
220
|
+
AddWorkload
|
|
221
|
+
</summary>
|
|
222
|
+
|
|
223
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-insights/classes/addworkloadcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-insights/interfaces/addworkloadcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-insights/interfaces/addworkloadcommandoutput.html)
|
|
224
|
+
|
|
225
|
+
</details>
|
|
218
226
|
<details>
|
|
219
227
|
<summary>
|
|
220
228
|
CreateApplication
|
|
@@ -326,6 +334,14 @@ DescribeProblemObservations
|
|
|
326
334
|
|
|
327
335
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-insights/classes/describeproblemobservationscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-insights/interfaces/describeproblemobservationscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-insights/interfaces/describeproblemobservationscommandoutput.html)
|
|
328
336
|
|
|
337
|
+
</details>
|
|
338
|
+
<details>
|
|
339
|
+
<summary>
|
|
340
|
+
DescribeWorkload
|
|
341
|
+
</summary>
|
|
342
|
+
|
|
343
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-insights/classes/describeworkloadcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-insights/interfaces/describeworkloadcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-insights/interfaces/describeworkloadcommandoutput.html)
|
|
344
|
+
|
|
329
345
|
</details>
|
|
330
346
|
<details>
|
|
331
347
|
<summary>
|
|
@@ -382,6 +398,22 @@ ListTagsForResource
|
|
|
382
398
|
|
|
383
399
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-insights/classes/listtagsforresourcecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-insights/interfaces/listtagsforresourcecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-insights/interfaces/listtagsforresourcecommandoutput.html)
|
|
384
400
|
|
|
401
|
+
</details>
|
|
402
|
+
<details>
|
|
403
|
+
<summary>
|
|
404
|
+
ListWorkloads
|
|
405
|
+
</summary>
|
|
406
|
+
|
|
407
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-insights/classes/listworkloadscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-insights/interfaces/listworkloadscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-insights/interfaces/listworkloadscommandoutput.html)
|
|
408
|
+
|
|
409
|
+
</details>
|
|
410
|
+
<details>
|
|
411
|
+
<summary>
|
|
412
|
+
RemoveWorkload
|
|
413
|
+
</summary>
|
|
414
|
+
|
|
415
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-insights/classes/removeworkloadcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-insights/interfaces/removeworkloadcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-insights/interfaces/removeworkloadcommandoutput.html)
|
|
416
|
+
|
|
385
417
|
</details>
|
|
386
418
|
<details>
|
|
387
419
|
<summary>
|
|
@@ -431,3 +463,19 @@ UpdateLogPattern
|
|
|
431
463
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-insights/classes/updatelogpatterncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-insights/interfaces/updatelogpatterncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-insights/interfaces/updatelogpatterncommandoutput.html)
|
|
432
464
|
|
|
433
465
|
</details>
|
|
466
|
+
<details>
|
|
467
|
+
<summary>
|
|
468
|
+
UpdateProblem
|
|
469
|
+
</summary>
|
|
470
|
+
|
|
471
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-insights/classes/updateproblemcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-insights/interfaces/updateproblemcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-insights/interfaces/updateproblemcommandoutput.html)
|
|
472
|
+
|
|
473
|
+
</details>
|
|
474
|
+
<details>
|
|
475
|
+
<summary>
|
|
476
|
+
UpdateWorkload
|
|
477
|
+
</summary>
|
|
478
|
+
|
|
479
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-insights/classes/updateworkloadcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-insights/interfaces/updateworkloadcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-insights/interfaces/updateworkloadcommandoutput.html)
|
|
480
|
+
|
|
481
|
+
</details>
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ApplicationInsights = void 0;
|
|
4
4
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
5
|
const ApplicationInsightsClient_1 = require("./ApplicationInsightsClient");
|
|
6
|
+
const AddWorkloadCommand_1 = require("./commands/AddWorkloadCommand");
|
|
6
7
|
const CreateApplicationCommand_1 = require("./commands/CreateApplicationCommand");
|
|
7
8
|
const CreateComponentCommand_1 = require("./commands/CreateComponentCommand");
|
|
8
9
|
const CreateLogPatternCommand_1 = require("./commands/CreateLogPatternCommand");
|
|
@@ -17,6 +18,7 @@ const DescribeLogPatternCommand_1 = require("./commands/DescribeLogPatternComman
|
|
|
17
18
|
const DescribeObservationCommand_1 = require("./commands/DescribeObservationCommand");
|
|
18
19
|
const DescribeProblemCommand_1 = require("./commands/DescribeProblemCommand");
|
|
19
20
|
const DescribeProblemObservationsCommand_1 = require("./commands/DescribeProblemObservationsCommand");
|
|
21
|
+
const DescribeWorkloadCommand_1 = require("./commands/DescribeWorkloadCommand");
|
|
20
22
|
const ListApplicationsCommand_1 = require("./commands/ListApplicationsCommand");
|
|
21
23
|
const ListComponentsCommand_1 = require("./commands/ListComponentsCommand");
|
|
22
24
|
const ListConfigurationHistoryCommand_1 = require("./commands/ListConfigurationHistoryCommand");
|
|
@@ -24,13 +26,18 @@ const ListLogPatternsCommand_1 = require("./commands/ListLogPatternsCommand");
|
|
|
24
26
|
const ListLogPatternSetsCommand_1 = require("./commands/ListLogPatternSetsCommand");
|
|
25
27
|
const ListProblemsCommand_1 = require("./commands/ListProblemsCommand");
|
|
26
28
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
29
|
+
const ListWorkloadsCommand_1 = require("./commands/ListWorkloadsCommand");
|
|
30
|
+
const RemoveWorkloadCommand_1 = require("./commands/RemoveWorkloadCommand");
|
|
27
31
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
28
32
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
29
33
|
const UpdateApplicationCommand_1 = require("./commands/UpdateApplicationCommand");
|
|
30
34
|
const UpdateComponentCommand_1 = require("./commands/UpdateComponentCommand");
|
|
31
35
|
const UpdateComponentConfigurationCommand_1 = require("./commands/UpdateComponentConfigurationCommand");
|
|
32
36
|
const UpdateLogPatternCommand_1 = require("./commands/UpdateLogPatternCommand");
|
|
37
|
+
const UpdateProblemCommand_1 = require("./commands/UpdateProblemCommand");
|
|
38
|
+
const UpdateWorkloadCommand_1 = require("./commands/UpdateWorkloadCommand");
|
|
33
39
|
const commands = {
|
|
40
|
+
AddWorkloadCommand: AddWorkloadCommand_1.AddWorkloadCommand,
|
|
34
41
|
CreateApplicationCommand: CreateApplicationCommand_1.CreateApplicationCommand,
|
|
35
42
|
CreateComponentCommand: CreateComponentCommand_1.CreateComponentCommand,
|
|
36
43
|
CreateLogPatternCommand: CreateLogPatternCommand_1.CreateLogPatternCommand,
|
|
@@ -45,6 +52,7 @@ const commands = {
|
|
|
45
52
|
DescribeObservationCommand: DescribeObservationCommand_1.DescribeObservationCommand,
|
|
46
53
|
DescribeProblemCommand: DescribeProblemCommand_1.DescribeProblemCommand,
|
|
47
54
|
DescribeProblemObservationsCommand: DescribeProblemObservationsCommand_1.DescribeProblemObservationsCommand,
|
|
55
|
+
DescribeWorkloadCommand: DescribeWorkloadCommand_1.DescribeWorkloadCommand,
|
|
48
56
|
ListApplicationsCommand: ListApplicationsCommand_1.ListApplicationsCommand,
|
|
49
57
|
ListComponentsCommand: ListComponentsCommand_1.ListComponentsCommand,
|
|
50
58
|
ListConfigurationHistoryCommand: ListConfigurationHistoryCommand_1.ListConfigurationHistoryCommand,
|
|
@@ -52,12 +60,16 @@ const commands = {
|
|
|
52
60
|
ListLogPatternSetsCommand: ListLogPatternSetsCommand_1.ListLogPatternSetsCommand,
|
|
53
61
|
ListProblemsCommand: ListProblemsCommand_1.ListProblemsCommand,
|
|
54
62
|
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
63
|
+
ListWorkloadsCommand: ListWorkloadsCommand_1.ListWorkloadsCommand,
|
|
64
|
+
RemoveWorkloadCommand: RemoveWorkloadCommand_1.RemoveWorkloadCommand,
|
|
55
65
|
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
56
66
|
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
57
67
|
UpdateApplicationCommand: UpdateApplicationCommand_1.UpdateApplicationCommand,
|
|
58
68
|
UpdateComponentCommand: UpdateComponentCommand_1.UpdateComponentCommand,
|
|
59
69
|
UpdateComponentConfigurationCommand: UpdateComponentConfigurationCommand_1.UpdateComponentConfigurationCommand,
|
|
60
70
|
UpdateLogPatternCommand: UpdateLogPatternCommand_1.UpdateLogPatternCommand,
|
|
71
|
+
UpdateProblemCommand: UpdateProblemCommand_1.UpdateProblemCommand,
|
|
72
|
+
UpdateWorkloadCommand: UpdateWorkloadCommand_1.UpdateWorkloadCommand,
|
|
61
73
|
};
|
|
62
74
|
class ApplicationInsights extends ApplicationInsightsClient_1.ApplicationInsightsClient {
|
|
63
75
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddWorkloadCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class AddWorkloadCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, AddWorkloadCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ApplicationInsightsClient";
|
|
28
|
+
const commandName = "AddWorkloadCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.se_AddWorkloadCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.de_AddWorkloadCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.AddWorkloadCommand = AddWorkloadCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeWorkloadCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class DescribeWorkloadCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeWorkloadCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ApplicationInsightsClient";
|
|
28
|
+
const commandName = "DescribeWorkloadCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.se_DescribeWorkloadCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.de_DescribeWorkloadCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DescribeWorkloadCommand = DescribeWorkloadCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListWorkloadsCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class ListWorkloadsCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListWorkloadsCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ApplicationInsightsClient";
|
|
28
|
+
const commandName = "ListWorkloadsCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.se_ListWorkloadsCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.de_ListWorkloadsCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ListWorkloadsCommand = ListWorkloadsCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RemoveWorkloadCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class RemoveWorkloadCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RemoveWorkloadCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ApplicationInsightsClient";
|
|
28
|
+
const commandName = "RemoveWorkloadCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.se_RemoveWorkloadCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.de_RemoveWorkloadCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.RemoveWorkloadCommand = RemoveWorkloadCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateProblemCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class UpdateProblemCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateProblemCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ApplicationInsightsClient";
|
|
28
|
+
const commandName = "UpdateProblemCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.se_UpdateProblemCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.de_UpdateProblemCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.UpdateProblemCommand = UpdateProblemCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateWorkloadCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class UpdateWorkloadCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateWorkloadCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ApplicationInsightsClient";
|
|
28
|
+
const commandName = "UpdateWorkloadCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.se_UpdateWorkloadCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.de_UpdateWorkloadCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.UpdateWorkloadCommand = UpdateWorkloadCommand;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./AddWorkloadCommand"), exports);
|
|
4
5
|
tslib_1.__exportStar(require("./CreateApplicationCommand"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./CreateComponentCommand"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./CreateLogPatternCommand"), exports);
|
|
@@ -15,6 +16,7 @@ tslib_1.__exportStar(require("./DescribeLogPatternCommand"), exports);
|
|
|
15
16
|
tslib_1.__exportStar(require("./DescribeObservationCommand"), exports);
|
|
16
17
|
tslib_1.__exportStar(require("./DescribeProblemCommand"), exports);
|
|
17
18
|
tslib_1.__exportStar(require("./DescribeProblemObservationsCommand"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./DescribeWorkloadCommand"), exports);
|
|
18
20
|
tslib_1.__exportStar(require("./ListApplicationsCommand"), exports);
|
|
19
21
|
tslib_1.__exportStar(require("./ListComponentsCommand"), exports);
|
|
20
22
|
tslib_1.__exportStar(require("./ListConfigurationHistoryCommand"), exports);
|
|
@@ -22,9 +24,13 @@ tslib_1.__exportStar(require("./ListLogPatternSetsCommand"), exports);
|
|
|
22
24
|
tslib_1.__exportStar(require("./ListLogPatternsCommand"), exports);
|
|
23
25
|
tslib_1.__exportStar(require("./ListProblemsCommand"), exports);
|
|
24
26
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
27
|
+
tslib_1.__exportStar(require("./ListWorkloadsCommand"), exports);
|
|
28
|
+
tslib_1.__exportStar(require("./RemoveWorkloadCommand"), exports);
|
|
25
29
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
26
30
|
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
27
31
|
tslib_1.__exportStar(require("./UpdateApplicationCommand"), exports);
|
|
28
32
|
tslib_1.__exportStar(require("./UpdateComponentCommand"), exports);
|
|
29
33
|
tslib_1.__exportStar(require("./UpdateComponentConfigurationCommand"), exports);
|
|
30
34
|
tslib_1.__exportStar(require("./UpdateLogPatternCommand"), exports);
|
|
35
|
+
tslib_1.__exportStar(require("./UpdateProblemCommand"), exports);
|
|
36
|
+
tslib_1.__exportStar(require("./UpdateWorkloadCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a = "
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
5
|
+
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 = [{ [t]: "Region" }];
|
|
6
|
+
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://applicationinsights-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://applicationinsights-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://applicationinsights.{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://applicationinsights.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|