@aws-sdk/client-trustedadvisor 3.563.0 → 3.565.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 +8 -0
- package/dist-cjs/index.js +125 -63
- package/dist-es/TrustedAdvisor.js +2 -0
- package/dist-es/commands/BatchUpdateRecommendationResourceExclusionCommand.js +24 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +48 -44
- package/dist-es/protocols/Aws_restJson1.js +38 -6
- package/dist-types/TrustedAdvisor.d.ts +7 -0
- package/dist-types/TrustedAdvisorClient.d.ts +3 -2
- package/dist-types/commands/BatchUpdateRecommendationResourceExclusionCommand.d.ts +85 -0
- package/dist-types/commands/ListOrganizationRecommendationResourcesCommand.d.ts +2 -0
- package/dist-types/commands/ListRecommendationResourcesCommand.d.ts +2 -0
- package/dist-types/commands/UpdateOrganizationRecommendationLifecycleCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +138 -49
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/TrustedAdvisor.d.ts +23 -0
- package/dist-types/ts3.4/TrustedAdvisorClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/BatchUpdateRecommendationResourceExclusionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +59 -30
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +2 -3
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BatchUpdateRecommendationResourceExclusionRequest, BatchUpdateRecommendationResourceExclusionResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, TrustedAdvisorClientResolvedConfig } from "../TrustedAdvisorClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link BatchUpdateRecommendationResourceExclusionCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface BatchUpdateRecommendationResourceExclusionCommandInput extends BatchUpdateRecommendationResourceExclusionRequest {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link BatchUpdateRecommendationResourceExclusionCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface BatchUpdateRecommendationResourceExclusionCommandOutput extends BatchUpdateRecommendationResourceExclusionResponse, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
declare const BatchUpdateRecommendationResourceExclusionCommand_base: {
|
|
24
|
+
new (input: BatchUpdateRecommendationResourceExclusionCommandInput): import("@smithy/smithy-client").CommandImpl<BatchUpdateRecommendationResourceExclusionCommandInput, BatchUpdateRecommendationResourceExclusionCommandOutput, TrustedAdvisorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: BatchUpdateRecommendationResourceExclusionCommandInput): import("@smithy/smithy-client").CommandImpl<BatchUpdateRecommendationResourceExclusionCommandInput, BatchUpdateRecommendationResourceExclusionCommandOutput, TrustedAdvisorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* <p>Update one or more exclusion status for a list of recommendation resources</p>
|
|
30
|
+
* @example
|
|
31
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
+
* ```javascript
|
|
33
|
+
* import { TrustedAdvisorClient, BatchUpdateRecommendationResourceExclusionCommand } from "@aws-sdk/client-trustedadvisor"; // ES Modules import
|
|
34
|
+
* // const { TrustedAdvisorClient, BatchUpdateRecommendationResourceExclusionCommand } = require("@aws-sdk/client-trustedadvisor"); // CommonJS import
|
|
35
|
+
* const client = new TrustedAdvisorClient(config);
|
|
36
|
+
* const input = { // BatchUpdateRecommendationResourceExclusionRequest
|
|
37
|
+
* recommendationResourceExclusions: [ // RecommendationResourceExclusionList // required
|
|
38
|
+
* { // RecommendationResourceExclusion
|
|
39
|
+
* arn: "STRING_VALUE", // required
|
|
40
|
+
* isExcluded: true || false, // required
|
|
41
|
+
* },
|
|
42
|
+
* ],
|
|
43
|
+
* };
|
|
44
|
+
* const command = new BatchUpdateRecommendationResourceExclusionCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // { // BatchUpdateRecommendationResourceExclusionResponse
|
|
47
|
+
* // batchUpdateRecommendationResourceExclusionErrors: [ // UpdateRecommendationResourceExclusionErrorList // required
|
|
48
|
+
* // { // UpdateRecommendationResourceExclusionError
|
|
49
|
+
* // arn: "STRING_VALUE",
|
|
50
|
+
* // errorCode: "STRING_VALUE",
|
|
51
|
+
* // errorMessage: "STRING_VALUE",
|
|
52
|
+
* // },
|
|
53
|
+
* // ],
|
|
54
|
+
* // };
|
|
55
|
+
*
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @param BatchUpdateRecommendationResourceExclusionCommandInput - {@link BatchUpdateRecommendationResourceExclusionCommandInput}
|
|
59
|
+
* @returns {@link BatchUpdateRecommendationResourceExclusionCommandOutput}
|
|
60
|
+
* @see {@link BatchUpdateRecommendationResourceExclusionCommandInput} for command's `input` shape.
|
|
61
|
+
* @see {@link BatchUpdateRecommendationResourceExclusionCommandOutput} for command's `response` shape.
|
|
62
|
+
* @see {@link TrustedAdvisorClientResolvedConfig | config} for TrustedAdvisorClient's `config` shape.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
65
|
+
* <p>Exception that access has been denied due to insufficient access</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ConflictException} (client fault)
|
|
68
|
+
* <p>Exception that the request was denied due to conflictions in state</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link InternalServerException} (server fault)
|
|
71
|
+
* <p>Exception to notify that an unexpected internal error occurred during processing of the request</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
74
|
+
* <p>Exception to notify that requests are being throttled</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ValidationException} (client fault)
|
|
77
|
+
* <p>Exception that the request failed to satisfy service constraints</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link TrustedAdvisorServiceException}
|
|
80
|
+
* <p>Base exception class for all service exceptions from TrustedAdvisor service.</p>
|
|
81
|
+
*
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
export declare class BatchUpdateRecommendationResourceExclusionCommand extends BatchUpdateRecommendationResourceExclusionCommand_base {
|
|
85
|
+
}
|
|
@@ -39,6 +39,7 @@ declare const ListOrganizationRecommendationResourcesCommand_base: {
|
|
|
39
39
|
* nextToken: "STRING_VALUE",
|
|
40
40
|
* maxResults: Number("int"),
|
|
41
41
|
* status: "ok" || "warning" || "error",
|
|
42
|
+
* exclusionStatus: "excluded" || "included",
|
|
42
43
|
* regionCode: "STRING_VALUE",
|
|
43
44
|
* organizationRecommendationIdentifier: "STRING_VALUE", // required
|
|
44
45
|
* affectedAccountId: "STRING_VALUE",
|
|
@@ -58,6 +59,7 @@ declare const ListOrganizationRecommendationResourcesCommand_base: {
|
|
|
58
59
|
* // "<keys>": "STRING_VALUE",
|
|
59
60
|
* // },
|
|
60
61
|
* // lastUpdatedAt: new Date("TIMESTAMP"), // required
|
|
62
|
+
* // exclusionStatus: "excluded" || "included",
|
|
61
63
|
* // accountId: "STRING_VALUE",
|
|
62
64
|
* // recommendationArn: "STRING_VALUE", // required
|
|
63
65
|
* // },
|
|
@@ -37,6 +37,7 @@ declare const ListRecommendationResourcesCommand_base: {
|
|
|
37
37
|
* nextToken: "STRING_VALUE",
|
|
38
38
|
* maxResults: Number("int"),
|
|
39
39
|
* status: "ok" || "warning" || "error",
|
|
40
|
+
* exclusionStatus: "excluded" || "included",
|
|
40
41
|
* regionCode: "STRING_VALUE",
|
|
41
42
|
* recommendationIdentifier: "STRING_VALUE", // required
|
|
42
43
|
* };
|
|
@@ -55,6 +56,7 @@ declare const ListRecommendationResourcesCommand_base: {
|
|
|
55
56
|
* // "<keys>": "STRING_VALUE",
|
|
56
57
|
* // },
|
|
57
58
|
* // lastUpdatedAt: new Date("TIMESTAMP"), // required
|
|
59
|
+
* // exclusionStatus: "excluded" || "included",
|
|
58
60
|
* // recommendationArn: "STRING_VALUE", // required
|
|
59
61
|
* // },
|
|
60
62
|
* // ],
|
|
@@ -26,7 +26,7 @@ declare const UpdateOrganizationRecommendationLifecycleCommand_base: {
|
|
|
26
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
|
-
* <p>Update the
|
|
29
|
+
* <p>Update the lifecycle of a Recommendation within an Organization. This API only supports prioritized
|
|
30
30
|
* recommendations.
|
|
31
31
|
* </p>
|
|
32
32
|
* @example
|
|
@@ -95,6 +95,115 @@ export interface AccountRecommendationLifecycleSummary {
|
|
|
95
95
|
*/
|
|
96
96
|
lastUpdatedAt?: Date;
|
|
97
97
|
}
|
|
98
|
+
/**
|
|
99
|
+
* <p>The request entry for Recommendation Resource exclusion. Each entry is a combination of Recommendation Resource ARN and corresponding exclusion status</p>
|
|
100
|
+
* @public
|
|
101
|
+
*/
|
|
102
|
+
export interface RecommendationResourceExclusion {
|
|
103
|
+
/**
|
|
104
|
+
* <p>The ARN of the Recommendation Resource</p>
|
|
105
|
+
* @public
|
|
106
|
+
*/
|
|
107
|
+
arn: string | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* <p>The exclusion status</p>
|
|
110
|
+
* @public
|
|
111
|
+
*/
|
|
112
|
+
isExcluded: boolean | undefined;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* @public
|
|
116
|
+
*/
|
|
117
|
+
export interface BatchUpdateRecommendationResourceExclusionRequest {
|
|
118
|
+
/**
|
|
119
|
+
* <p>A list of recommendation resource ARNs and exclusion status to update</p>
|
|
120
|
+
* @public
|
|
121
|
+
*/
|
|
122
|
+
recommendationResourceExclusions: RecommendationResourceExclusion[] | undefined;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* <p>The error entry for Recommendation Resource exclusion. Each entry is a combination of Recommendation Resource ARN, error code and error message</p>
|
|
126
|
+
* @public
|
|
127
|
+
*/
|
|
128
|
+
export interface UpdateRecommendationResourceExclusionError {
|
|
129
|
+
/**
|
|
130
|
+
* <p>The ARN of the Recommendation Resource</p>
|
|
131
|
+
* @public
|
|
132
|
+
*/
|
|
133
|
+
arn?: string;
|
|
134
|
+
/**
|
|
135
|
+
* <p>The error code</p>
|
|
136
|
+
* @public
|
|
137
|
+
*/
|
|
138
|
+
errorCode?: string;
|
|
139
|
+
/**
|
|
140
|
+
* <p>The error message</p>
|
|
141
|
+
* @public
|
|
142
|
+
*/
|
|
143
|
+
errorMessage?: string;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* @public
|
|
147
|
+
*/
|
|
148
|
+
export interface BatchUpdateRecommendationResourceExclusionResponse {
|
|
149
|
+
/**
|
|
150
|
+
* <p>A list of recommendation resource ARNs whose exclusion status failed to update, if any</p>
|
|
151
|
+
* @public
|
|
152
|
+
*/
|
|
153
|
+
batchUpdateRecommendationResourceExclusionErrors: UpdateRecommendationResourceExclusionError[] | undefined;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* <p>Exception that the request was denied due to conflictions in state</p>
|
|
157
|
+
* @public
|
|
158
|
+
*/
|
|
159
|
+
export declare class ConflictException extends __BaseException {
|
|
160
|
+
readonly name: "ConflictException";
|
|
161
|
+
readonly $fault: "client";
|
|
162
|
+
/**
|
|
163
|
+
* @internal
|
|
164
|
+
*/
|
|
165
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* <p>Exception to notify that an unexpected internal error occurred during processing of the request</p>
|
|
169
|
+
* @public
|
|
170
|
+
*/
|
|
171
|
+
export declare class InternalServerException extends __BaseException {
|
|
172
|
+
readonly name: "InternalServerException";
|
|
173
|
+
readonly $fault: "server";
|
|
174
|
+
$retryable: {};
|
|
175
|
+
/**
|
|
176
|
+
* @internal
|
|
177
|
+
*/
|
|
178
|
+
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* <p>Exception to notify that requests are being throttled</p>
|
|
182
|
+
* @public
|
|
183
|
+
*/
|
|
184
|
+
export declare class ThrottlingException extends __BaseException {
|
|
185
|
+
readonly name: "ThrottlingException";
|
|
186
|
+
readonly $fault: "client";
|
|
187
|
+
$retryable: {
|
|
188
|
+
throttling: boolean;
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
* @internal
|
|
192
|
+
*/
|
|
193
|
+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* <p>Exception that the request failed to satisfy service constraints</p>
|
|
197
|
+
* @public
|
|
198
|
+
*/
|
|
199
|
+
export declare class ValidationException extends __BaseException {
|
|
200
|
+
readonly name: "ValidationException";
|
|
201
|
+
readonly $fault: "client";
|
|
202
|
+
/**
|
|
203
|
+
* @internal
|
|
204
|
+
*/
|
|
205
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
206
|
+
}
|
|
98
207
|
/**
|
|
99
208
|
* @public
|
|
100
209
|
* @enum
|
|
@@ -181,17 +290,17 @@ export interface CheckSummary {
|
|
|
181
290
|
metadata: Record<string, string> | undefined;
|
|
182
291
|
}
|
|
183
292
|
/**
|
|
184
|
-
* <p>Exception that the request was denied due to conflictions in state</p>
|
|
185
293
|
* @public
|
|
294
|
+
* @enum
|
|
186
295
|
*/
|
|
187
|
-
export declare
|
|
188
|
-
readonly
|
|
189
|
-
readonly
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
296
|
+
export declare const ExclusionStatus: {
|
|
297
|
+
readonly EXCLUDED: "excluded";
|
|
298
|
+
readonly INCLUDED: "included";
|
|
299
|
+
};
|
|
300
|
+
/**
|
|
301
|
+
* @public
|
|
302
|
+
*/
|
|
303
|
+
export type ExclusionStatus = (typeof ExclusionStatus)[keyof typeof ExclusionStatus];
|
|
195
304
|
/**
|
|
196
305
|
* @public
|
|
197
306
|
*/
|
|
@@ -403,19 +512,6 @@ export interface GetOrganizationRecommendationResponse {
|
|
|
403
512
|
*/
|
|
404
513
|
organizationRecommendation?: OrganizationRecommendation;
|
|
405
514
|
}
|
|
406
|
-
/**
|
|
407
|
-
* <p>Exception to notify that an unexpected internal error occurred during processing of the request</p>
|
|
408
|
-
* @public
|
|
409
|
-
*/
|
|
410
|
-
export declare class InternalServerException extends __BaseException {
|
|
411
|
-
readonly name: "InternalServerException";
|
|
412
|
-
readonly $fault: "server";
|
|
413
|
-
$retryable: {};
|
|
414
|
-
/**
|
|
415
|
-
* @internal
|
|
416
|
-
*/
|
|
417
|
-
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
418
|
-
}
|
|
419
515
|
/**
|
|
420
516
|
* <p>Exception that the requested resource has not been found</p>
|
|
421
517
|
* @public
|
|
@@ -428,33 +524,6 @@ export declare class ResourceNotFoundException extends __BaseException {
|
|
|
428
524
|
*/
|
|
429
525
|
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
430
526
|
}
|
|
431
|
-
/**
|
|
432
|
-
* <p>Exception to notify that requests are being throttled</p>
|
|
433
|
-
* @public
|
|
434
|
-
*/
|
|
435
|
-
export declare class ThrottlingException extends __BaseException {
|
|
436
|
-
readonly name: "ThrottlingException";
|
|
437
|
-
readonly $fault: "client";
|
|
438
|
-
$retryable: {
|
|
439
|
-
throttling: boolean;
|
|
440
|
-
};
|
|
441
|
-
/**
|
|
442
|
-
* @internal
|
|
443
|
-
*/
|
|
444
|
-
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
445
|
-
}
|
|
446
|
-
/**
|
|
447
|
-
* <p>Exception that the request failed to satisfy service constraints</p>
|
|
448
|
-
* @public
|
|
449
|
-
*/
|
|
450
|
-
export declare class ValidationException extends __BaseException {
|
|
451
|
-
readonly name: "ValidationException";
|
|
452
|
-
readonly $fault: "client";
|
|
453
|
-
/**
|
|
454
|
-
* @internal
|
|
455
|
-
*/
|
|
456
|
-
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
457
|
-
}
|
|
458
527
|
/**
|
|
459
528
|
* @public
|
|
460
529
|
*/
|
|
@@ -745,6 +814,11 @@ export interface ListOrganizationRecommendationResourcesRequest {
|
|
|
745
814
|
* @public
|
|
746
815
|
*/
|
|
747
816
|
status?: ResourceStatus;
|
|
817
|
+
/**
|
|
818
|
+
* <p>The exclusion status of the resource</p>
|
|
819
|
+
* @public
|
|
820
|
+
*/
|
|
821
|
+
exclusionStatus?: ExclusionStatus;
|
|
748
822
|
/**
|
|
749
823
|
* <p>The AWS Region code of the resource</p>
|
|
750
824
|
* @public
|
|
@@ -801,6 +875,11 @@ export interface OrganizationRecommendationResourceSummary {
|
|
|
801
875
|
* @public
|
|
802
876
|
*/
|
|
803
877
|
lastUpdatedAt: Date | undefined;
|
|
878
|
+
/**
|
|
879
|
+
* <p>The exclusion status of the Recommendation Resource</p>
|
|
880
|
+
* @public
|
|
881
|
+
*/
|
|
882
|
+
exclusionStatus?: ExclusionStatus;
|
|
804
883
|
/**
|
|
805
884
|
* <p>The AWS account ID</p>
|
|
806
885
|
* @public
|
|
@@ -1000,6 +1079,11 @@ export interface ListRecommendationResourcesRequest {
|
|
|
1000
1079
|
* @public
|
|
1001
1080
|
*/
|
|
1002
1081
|
status?: ResourceStatus;
|
|
1082
|
+
/**
|
|
1083
|
+
* <p>The exclusion status of the resource</p>
|
|
1084
|
+
* @public
|
|
1085
|
+
*/
|
|
1086
|
+
exclusionStatus?: ExclusionStatus;
|
|
1003
1087
|
/**
|
|
1004
1088
|
* <p>The AWS Region code of the resource</p>
|
|
1005
1089
|
* @public
|
|
@@ -1051,6 +1135,11 @@ export interface RecommendationResourceSummary {
|
|
|
1051
1135
|
* @public
|
|
1052
1136
|
*/
|
|
1053
1137
|
lastUpdatedAt: Date | undefined;
|
|
1138
|
+
/**
|
|
1139
|
+
* <p>The exclusion status of the Recommendation Resource</p>
|
|
1140
|
+
* @public
|
|
1141
|
+
*/
|
|
1142
|
+
exclusionStatus?: ExclusionStatus;
|
|
1054
1143
|
/**
|
|
1055
1144
|
* <p>The Recommendation ARN</p>
|
|
1056
1145
|
* @public
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
2
|
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
|
+
import { BatchUpdateRecommendationResourceExclusionCommandInput, BatchUpdateRecommendationResourceExclusionCommandOutput } from "../commands/BatchUpdateRecommendationResourceExclusionCommand";
|
|
3
4
|
import { GetOrganizationRecommendationCommandInput, GetOrganizationRecommendationCommandOutput } from "../commands/GetOrganizationRecommendationCommand";
|
|
4
5
|
import { GetRecommendationCommandInput, GetRecommendationCommandOutput } from "../commands/GetRecommendationCommand";
|
|
5
6
|
import { ListChecksCommandInput, ListChecksCommandOutput } from "../commands/ListChecksCommand";
|
|
@@ -10,6 +11,10 @@ import { ListRecommendationResourcesCommandInput, ListRecommendationResourcesCom
|
|
|
10
11
|
import { ListRecommendationsCommandInput, ListRecommendationsCommandOutput } from "../commands/ListRecommendationsCommand";
|
|
11
12
|
import { UpdateOrganizationRecommendationLifecycleCommandInput, UpdateOrganizationRecommendationLifecycleCommandOutput } from "../commands/UpdateOrganizationRecommendationLifecycleCommand";
|
|
12
13
|
import { UpdateRecommendationLifecycleCommandInput, UpdateRecommendationLifecycleCommandOutput } from "../commands/UpdateRecommendationLifecycleCommand";
|
|
14
|
+
/**
|
|
15
|
+
* serializeAws_restJson1BatchUpdateRecommendationResourceExclusionCommand
|
|
16
|
+
*/
|
|
17
|
+
export declare const se_BatchUpdateRecommendationResourceExclusionCommand: (input: BatchUpdateRecommendationResourceExclusionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
13
18
|
/**
|
|
14
19
|
* serializeAws_restJson1GetOrganizationRecommendationCommand
|
|
15
20
|
*/
|
|
@@ -50,6 +55,10 @@ export declare const se_UpdateOrganizationRecommendationLifecycleCommand: (input
|
|
|
50
55
|
* serializeAws_restJson1UpdateRecommendationLifecycleCommand
|
|
51
56
|
*/
|
|
52
57
|
export declare const se_UpdateRecommendationLifecycleCommand: (input: UpdateRecommendationLifecycleCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
58
|
+
/**
|
|
59
|
+
* deserializeAws_restJson1BatchUpdateRecommendationResourceExclusionCommand
|
|
60
|
+
*/
|
|
61
|
+
export declare const de_BatchUpdateRecommendationResourceExclusionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchUpdateRecommendationResourceExclusionCommandOutput>;
|
|
53
62
|
/**
|
|
54
63
|
* deserializeAws_restJson1GetOrganizationRecommendationCommand
|
|
55
64
|
*/
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
BatchUpdateRecommendationResourceExclusionCommandInput,
|
|
4
|
+
BatchUpdateRecommendationResourceExclusionCommandOutput,
|
|
5
|
+
} from "./commands/BatchUpdateRecommendationResourceExclusionCommand";
|
|
2
6
|
import {
|
|
3
7
|
GetOrganizationRecommendationCommandInput,
|
|
4
8
|
GetOrganizationRecommendationCommandOutput,
|
|
@@ -41,6 +45,25 @@ import {
|
|
|
41
45
|
} from "./commands/UpdateRecommendationLifecycleCommand";
|
|
42
46
|
import { TrustedAdvisorClient } from "./TrustedAdvisorClient";
|
|
43
47
|
export interface TrustedAdvisor {
|
|
48
|
+
batchUpdateRecommendationResourceExclusion(
|
|
49
|
+
args: BatchUpdateRecommendationResourceExclusionCommandInput,
|
|
50
|
+
options?: __HttpHandlerOptions
|
|
51
|
+
): Promise<BatchUpdateRecommendationResourceExclusionCommandOutput>;
|
|
52
|
+
batchUpdateRecommendationResourceExclusion(
|
|
53
|
+
args: BatchUpdateRecommendationResourceExclusionCommandInput,
|
|
54
|
+
cb: (
|
|
55
|
+
err: any,
|
|
56
|
+
data?: BatchUpdateRecommendationResourceExclusionCommandOutput
|
|
57
|
+
) => void
|
|
58
|
+
): void;
|
|
59
|
+
batchUpdateRecommendationResourceExclusion(
|
|
60
|
+
args: BatchUpdateRecommendationResourceExclusionCommandInput,
|
|
61
|
+
options: __HttpHandlerOptions,
|
|
62
|
+
cb: (
|
|
63
|
+
err: any,
|
|
64
|
+
data?: BatchUpdateRecommendationResourceExclusionCommandOutput
|
|
65
|
+
) => void
|
|
66
|
+
): void;
|
|
44
67
|
getOrganizationRecommendation(
|
|
45
68
|
args: GetOrganizationRecommendationCommandInput,
|
|
46
69
|
options?: __HttpHandlerOptions
|
|
@@ -45,6 +45,10 @@ import {
|
|
|
45
45
|
HttpAuthSchemeInputConfig,
|
|
46
46
|
HttpAuthSchemeResolvedConfig,
|
|
47
47
|
} from "./auth/httpAuthSchemeProvider";
|
|
48
|
+
import {
|
|
49
|
+
BatchUpdateRecommendationResourceExclusionCommandInput,
|
|
50
|
+
BatchUpdateRecommendationResourceExclusionCommandOutput,
|
|
51
|
+
} from "./commands/BatchUpdateRecommendationResourceExclusionCommand";
|
|
48
52
|
import {
|
|
49
53
|
GetOrganizationRecommendationCommandInput,
|
|
50
54
|
GetOrganizationRecommendationCommandOutput,
|
|
@@ -93,6 +97,7 @@ import {
|
|
|
93
97
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
94
98
|
export { __Client };
|
|
95
99
|
export type ServiceInputTypes =
|
|
100
|
+
| BatchUpdateRecommendationResourceExclusionCommandInput
|
|
96
101
|
| GetOrganizationRecommendationCommandInput
|
|
97
102
|
| GetRecommendationCommandInput
|
|
98
103
|
| ListChecksCommandInput
|
|
@@ -104,6 +109,7 @@ export type ServiceInputTypes =
|
|
|
104
109
|
| UpdateOrganizationRecommendationLifecycleCommandInput
|
|
105
110
|
| UpdateRecommendationLifecycleCommandInput;
|
|
106
111
|
export type ServiceOutputTypes =
|
|
112
|
+
| BatchUpdateRecommendationResourceExclusionCommandOutput
|
|
107
113
|
| GetOrganizationRecommendationCommandOutput
|
|
108
114
|
| GetRecommendationCommandOutput
|
|
109
115
|
| ListChecksCommandOutput
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
BatchUpdateRecommendationResourceExclusionRequest,
|
|
5
|
+
BatchUpdateRecommendationResourceExclusionResponse,
|
|
6
|
+
} from "../models/models_0";
|
|
7
|
+
import {
|
|
8
|
+
ServiceInputTypes,
|
|
9
|
+
ServiceOutputTypes,
|
|
10
|
+
TrustedAdvisorClientResolvedConfig,
|
|
11
|
+
} from "../TrustedAdvisorClient";
|
|
12
|
+
export { __MetadataBearer, $Command };
|
|
13
|
+
export interface BatchUpdateRecommendationResourceExclusionCommandInput
|
|
14
|
+
extends BatchUpdateRecommendationResourceExclusionRequest {}
|
|
15
|
+
export interface BatchUpdateRecommendationResourceExclusionCommandOutput
|
|
16
|
+
extends BatchUpdateRecommendationResourceExclusionResponse,
|
|
17
|
+
__MetadataBearer {}
|
|
18
|
+
declare const BatchUpdateRecommendationResourceExclusionCommand_base: {
|
|
19
|
+
new (
|
|
20
|
+
input: BatchUpdateRecommendationResourceExclusionCommandInput
|
|
21
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
22
|
+
BatchUpdateRecommendationResourceExclusionCommandInput,
|
|
23
|
+
BatchUpdateRecommendationResourceExclusionCommandOutput,
|
|
24
|
+
TrustedAdvisorClientResolvedConfig,
|
|
25
|
+
ServiceInputTypes,
|
|
26
|
+
ServiceOutputTypes
|
|
27
|
+
>;
|
|
28
|
+
new (
|
|
29
|
+
__0_0: BatchUpdateRecommendationResourceExclusionCommandInput
|
|
30
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
31
|
+
BatchUpdateRecommendationResourceExclusionCommandInput,
|
|
32
|
+
BatchUpdateRecommendationResourceExclusionCommandOutput,
|
|
33
|
+
TrustedAdvisorClientResolvedConfig,
|
|
34
|
+
ServiceInputTypes,
|
|
35
|
+
ServiceOutputTypes
|
|
36
|
+
>;
|
|
37
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
38
|
+
};
|
|
39
|
+
export declare class BatchUpdateRecommendationResourceExclusionCommand extends BatchUpdateRecommendationResourceExclusionCommand_base {}
|
|
@@ -36,6 +36,55 @@ export interface AccountRecommendationLifecycleSummary {
|
|
|
36
36
|
updateReasonCode?: UpdateRecommendationLifecycleStageReasonCode;
|
|
37
37
|
lastUpdatedAt?: Date;
|
|
38
38
|
}
|
|
39
|
+
export interface RecommendationResourceExclusion {
|
|
40
|
+
arn: string | undefined;
|
|
41
|
+
isExcluded: boolean | undefined;
|
|
42
|
+
}
|
|
43
|
+
export interface BatchUpdateRecommendationResourceExclusionRequest {
|
|
44
|
+
recommendationResourceExclusions:
|
|
45
|
+
| RecommendationResourceExclusion[]
|
|
46
|
+
| undefined;
|
|
47
|
+
}
|
|
48
|
+
export interface UpdateRecommendationResourceExclusionError {
|
|
49
|
+
arn?: string;
|
|
50
|
+
errorCode?: string;
|
|
51
|
+
errorMessage?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface BatchUpdateRecommendationResourceExclusionResponse {
|
|
54
|
+
batchUpdateRecommendationResourceExclusionErrors:
|
|
55
|
+
| UpdateRecommendationResourceExclusionError[]
|
|
56
|
+
| undefined;
|
|
57
|
+
}
|
|
58
|
+
export declare class ConflictException extends __BaseException {
|
|
59
|
+
readonly name: "ConflictException";
|
|
60
|
+
readonly $fault: "client";
|
|
61
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
62
|
+
}
|
|
63
|
+
export declare class InternalServerException extends __BaseException {
|
|
64
|
+
readonly name: "InternalServerException";
|
|
65
|
+
readonly $fault: "server";
|
|
66
|
+
$retryable: {};
|
|
67
|
+
constructor(
|
|
68
|
+
opts: __ExceptionOptionType<InternalServerException, __BaseException>
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
export declare class ThrottlingException extends __BaseException {
|
|
72
|
+
readonly name: "ThrottlingException";
|
|
73
|
+
readonly $fault: "client";
|
|
74
|
+
$retryable: {
|
|
75
|
+
throttling: boolean;
|
|
76
|
+
};
|
|
77
|
+
constructor(
|
|
78
|
+
opts: __ExceptionOptionType<ThrottlingException, __BaseException>
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
export declare class ValidationException extends __BaseException {
|
|
82
|
+
readonly name: "ValidationException";
|
|
83
|
+
readonly $fault: "client";
|
|
84
|
+
constructor(
|
|
85
|
+
opts: __ExceptionOptionType<ValidationException, __BaseException>
|
|
86
|
+
);
|
|
87
|
+
}
|
|
39
88
|
export declare const RecommendationPillar: {
|
|
40
89
|
readonly COST_OPTIMIZING: "cost_optimizing";
|
|
41
90
|
readonly FAULT_TOLERANCE: "fault_tolerance";
|
|
@@ -73,11 +122,12 @@ export interface CheckSummary {
|
|
|
73
122
|
source: RecommendationSource | undefined;
|
|
74
123
|
metadata: Record<string, string> | undefined;
|
|
75
124
|
}
|
|
76
|
-
export declare
|
|
77
|
-
readonly
|
|
78
|
-
readonly
|
|
79
|
-
|
|
80
|
-
|
|
125
|
+
export declare const ExclusionStatus: {
|
|
126
|
+
readonly EXCLUDED: "excluded";
|
|
127
|
+
readonly INCLUDED: "included";
|
|
128
|
+
};
|
|
129
|
+
export type ExclusionStatus =
|
|
130
|
+
(typeof ExclusionStatus)[keyof typeof ExclusionStatus];
|
|
81
131
|
export interface GetOrganizationRecommendationRequest {
|
|
82
132
|
organizationRecommendationIdentifier: string | undefined;
|
|
83
133
|
}
|
|
@@ -132,14 +182,6 @@ export interface OrganizationRecommendation {
|
|
|
132
182
|
export interface GetOrganizationRecommendationResponse {
|
|
133
183
|
organizationRecommendation?: OrganizationRecommendation;
|
|
134
184
|
}
|
|
135
|
-
export declare class InternalServerException extends __BaseException {
|
|
136
|
-
readonly name: "InternalServerException";
|
|
137
|
-
readonly $fault: "server";
|
|
138
|
-
$retryable: {};
|
|
139
|
-
constructor(
|
|
140
|
-
opts: __ExceptionOptionType<InternalServerException, __BaseException>
|
|
141
|
-
);
|
|
142
|
-
}
|
|
143
185
|
export declare class ResourceNotFoundException extends __BaseException {
|
|
144
186
|
readonly name: "ResourceNotFoundException";
|
|
145
187
|
readonly $fault: "client";
|
|
@@ -147,23 +189,6 @@ export declare class ResourceNotFoundException extends __BaseException {
|
|
|
147
189
|
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
|
|
148
190
|
);
|
|
149
191
|
}
|
|
150
|
-
export declare class ThrottlingException extends __BaseException {
|
|
151
|
-
readonly name: "ThrottlingException";
|
|
152
|
-
readonly $fault: "client";
|
|
153
|
-
$retryable: {
|
|
154
|
-
throttling: boolean;
|
|
155
|
-
};
|
|
156
|
-
constructor(
|
|
157
|
-
opts: __ExceptionOptionType<ThrottlingException, __BaseException>
|
|
158
|
-
);
|
|
159
|
-
}
|
|
160
|
-
export declare class ValidationException extends __BaseException {
|
|
161
|
-
readonly name: "ValidationException";
|
|
162
|
-
readonly $fault: "client";
|
|
163
|
-
constructor(
|
|
164
|
-
opts: __ExceptionOptionType<ValidationException, __BaseException>
|
|
165
|
-
);
|
|
166
|
-
}
|
|
167
192
|
export interface GetRecommendationRequest {
|
|
168
193
|
recommendationIdentifier: string | undefined;
|
|
169
194
|
}
|
|
@@ -243,6 +268,7 @@ export interface ListOrganizationRecommendationResourcesRequest {
|
|
|
243
268
|
nextToken?: string;
|
|
244
269
|
maxResults?: number;
|
|
245
270
|
status?: ResourceStatus;
|
|
271
|
+
exclusionStatus?: ExclusionStatus;
|
|
246
272
|
regionCode?: string;
|
|
247
273
|
organizationRecommendationIdentifier: string | undefined;
|
|
248
274
|
affectedAccountId?: string;
|
|
@@ -255,6 +281,7 @@ export interface OrganizationRecommendationResourceSummary {
|
|
|
255
281
|
status: ResourceStatus | undefined;
|
|
256
282
|
metadata: Record<string, string> | undefined;
|
|
257
283
|
lastUpdatedAt: Date | undefined;
|
|
284
|
+
exclusionStatus?: ExclusionStatus;
|
|
258
285
|
accountId?: string;
|
|
259
286
|
recommendationArn: string | undefined;
|
|
260
287
|
}
|
|
@@ -302,6 +329,7 @@ export interface ListRecommendationResourcesRequest {
|
|
|
302
329
|
nextToken?: string;
|
|
303
330
|
maxResults?: number;
|
|
304
331
|
status?: ResourceStatus;
|
|
332
|
+
exclusionStatus?: ExclusionStatus;
|
|
305
333
|
regionCode?: string;
|
|
306
334
|
recommendationIdentifier: string | undefined;
|
|
307
335
|
}
|
|
@@ -313,6 +341,7 @@ export interface RecommendationResourceSummary {
|
|
|
313
341
|
status: ResourceStatus | undefined;
|
|
314
342
|
metadata: Record<string, string> | undefined;
|
|
315
343
|
lastUpdatedAt: Date | undefined;
|
|
344
|
+
exclusionStatus?: ExclusionStatus;
|
|
316
345
|
recommendationArn: string | undefined;
|
|
317
346
|
}
|
|
318
347
|
export interface ListRecommendationResourcesResponse {
|