@aws-sdk/client-trustedadvisor 3.986.0 → 3.988.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/dist-cjs/index.js +30 -543
- package/dist-cjs/models/TrustedAdvisorServiceException.js +12 -0
- package/dist-cjs/models/errors.js +86 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +405 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +53 -47
- package/dist-types/schemas/schemas_0.d.ts +13 -6
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +8 -6
- package/package.json +13 -13
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TrustedAdvisorServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class TrustedAdvisorServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, TrustedAdvisorServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.TrustedAdvisorServiceException = TrustedAdvisorServiceException;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResourceNotFoundException = exports.ValidationException = exports.ThrottlingException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
|
+
const TrustedAdvisorServiceException_1 = require("./TrustedAdvisorServiceException");
|
|
5
|
+
class AccessDeniedException extends TrustedAdvisorServiceException_1.TrustedAdvisorServiceException {
|
|
6
|
+
name = "AccessDeniedException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
constructor(opts) {
|
|
9
|
+
super({
|
|
10
|
+
name: "AccessDeniedException",
|
|
11
|
+
$fault: "client",
|
|
12
|
+
...opts,
|
|
13
|
+
});
|
|
14
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
18
|
+
class ConflictException extends TrustedAdvisorServiceException_1.TrustedAdvisorServiceException {
|
|
19
|
+
name = "ConflictException";
|
|
20
|
+
$fault = "client";
|
|
21
|
+
constructor(opts) {
|
|
22
|
+
super({
|
|
23
|
+
name: "ConflictException",
|
|
24
|
+
$fault: "client",
|
|
25
|
+
...opts,
|
|
26
|
+
});
|
|
27
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.ConflictException = ConflictException;
|
|
31
|
+
class InternalServerException extends TrustedAdvisorServiceException_1.TrustedAdvisorServiceException {
|
|
32
|
+
name = "InternalServerException";
|
|
33
|
+
$fault = "server";
|
|
34
|
+
$retryable = {};
|
|
35
|
+
constructor(opts) {
|
|
36
|
+
super({
|
|
37
|
+
name: "InternalServerException",
|
|
38
|
+
$fault: "server",
|
|
39
|
+
...opts,
|
|
40
|
+
});
|
|
41
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.InternalServerException = InternalServerException;
|
|
45
|
+
class ThrottlingException extends TrustedAdvisorServiceException_1.TrustedAdvisorServiceException {
|
|
46
|
+
name = "ThrottlingException";
|
|
47
|
+
$fault = "client";
|
|
48
|
+
$retryable = {
|
|
49
|
+
throttling: true,
|
|
50
|
+
};
|
|
51
|
+
constructor(opts) {
|
|
52
|
+
super({
|
|
53
|
+
name: "ThrottlingException",
|
|
54
|
+
$fault: "client",
|
|
55
|
+
...opts,
|
|
56
|
+
});
|
|
57
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.ThrottlingException = ThrottlingException;
|
|
61
|
+
class ValidationException extends TrustedAdvisorServiceException_1.TrustedAdvisorServiceException {
|
|
62
|
+
name = "ValidationException";
|
|
63
|
+
$fault = "client";
|
|
64
|
+
constructor(opts) {
|
|
65
|
+
super({
|
|
66
|
+
name: "ValidationException",
|
|
67
|
+
$fault: "client",
|
|
68
|
+
...opts,
|
|
69
|
+
});
|
|
70
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
exports.ValidationException = ValidationException;
|
|
74
|
+
class ResourceNotFoundException extends TrustedAdvisorServiceException_1.TrustedAdvisorServiceException {
|
|
75
|
+
name = "ResourceNotFoundException";
|
|
76
|
+
$fault = "client";
|
|
77
|
+
constructor(opts) {
|
|
78
|
+
super({
|
|
79
|
+
name: "ResourceNotFoundException",
|
|
80
|
+
$fault: "client",
|
|
81
|
+
...opts,
|
|
82
|
+
});
|
|
83
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
|
|
|
9
9
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
10
10
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
11
11
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
12
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
13
|
const getRuntimeConfig = (config) => {
|
|
13
14
|
return {
|
|
14
15
|
apiVersion: "2022-09-15",
|
|
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
|
|
|
29
30
|
protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
|
|
30
31
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
32
|
defaultNamespace: "com.amazonaws.trustedadvisor",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
32
34
|
version: "2022-09-15",
|
|
33
35
|
serviceTarget: "TrustedAdvisor",
|
|
34
36
|
},
|
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListRecommendations$ = exports.ListRecommendationResources$ = exports.ListOrganizationRecommendations$ = exports.ListOrganizationRecommendationResources$ = exports.ListOrganizationRecommendationAccounts$ = exports.ListChecks$ = exports.GetRecommendation$ = exports.GetOrganizationRecommendation$ = exports.BatchUpdateRecommendationResourceExclusion$ = exports.UpdateRecommendationResourceExclusionError$ = exports.UpdateRecommendationLifecycleRequest$ = exports.UpdateOrganizationRecommendationLifecycleRequest$ = exports.RecommendationSummary$ = exports.RecommendationResourceSummary$ = exports.RecommendationResourcesAggregates$ = exports.RecommendationResourceExclusion$ = exports.RecommendationPillarSpecificAggregates$ = exports.RecommendationCostOptimizingAggregates$ = exports.Recommendation$ = exports.OrganizationRecommendationSummary$ = exports.OrganizationRecommendationResourceSummary$ = exports.OrganizationRecommendation$ = exports.ListRecommendationsResponse$ = exports.ListRecommendationsRequest$ = exports.ListRecommendationResourcesResponse$ = exports.ListRecommendationResourcesRequest$ = exports.ListOrganizationRecommendationsResponse$ = exports.ListOrganizationRecommendationsRequest$ = exports.ListOrganizationRecommendationResourcesResponse$ = exports.ListOrganizationRecommendationResourcesRequest$ = exports.ListOrganizationRecommendationAccountsResponse$ = exports.ListOrganizationRecommendationAccountsRequest$ = exports.ListChecksResponse$ = exports.ListChecksRequest$ = exports.GetRecommendationResponse$ = exports.GetRecommendationRequest$ = exports.GetOrganizationRecommendationResponse$ = exports.GetOrganizationRecommendationRequest$ = exports.CheckSummary$ = exports.BatchUpdateRecommendationResourceExclusionResponse$ = exports.BatchUpdateRecommendationResourceExclusionRequest$ = exports.AccountRecommendationLifecycleSummary$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.ThrottlingException$ = exports.ResourceNotFoundException$ = exports.InternalServerException$ = exports.ConflictException$ = exports.AccessDeniedException$ = exports.TrustedAdvisorServiceException$ = void 0;
|
|
4
|
+
exports.UpdateRecommendationLifecycle$ = exports.UpdateOrganizationRecommendationLifecycle$ = void 0;
|
|
5
|
+
const _ADE = "AccessDeniedException";
|
|
6
|
+
const _ARLS = "AccountRecommendationLifecycleSummary";
|
|
7
|
+
const _ARLSL = "AccountRecommendationLifecycleSummaryList";
|
|
8
|
+
const _BURRE = "BatchUpdateRecommendationResourceExclusion";
|
|
9
|
+
const _BURRER = "BatchUpdateRecommendationResourceExclusionRequest";
|
|
10
|
+
const _BURRERa = "BatchUpdateRecommendationResourceExclusionResponse";
|
|
11
|
+
const _CE = "ConflictException";
|
|
12
|
+
const _CS = "CheckSummary";
|
|
13
|
+
const _CSL = "CheckSummaryList";
|
|
14
|
+
const _GOR = "GetOrganizationRecommendation";
|
|
15
|
+
const _GORR = "GetOrganizationRecommendationRequest";
|
|
16
|
+
const _GORRe = "GetOrganizationRecommendationResponse";
|
|
17
|
+
const _GR = "GetRecommendation";
|
|
18
|
+
const _GRR = "GetRecommendationRequest";
|
|
19
|
+
const _GRRe = "GetRecommendationResponse";
|
|
20
|
+
const _ISE = "InternalServerException";
|
|
21
|
+
const _LC = "ListChecks";
|
|
22
|
+
const _LCR = "ListChecksRequest";
|
|
23
|
+
const _LCRi = "ListChecksResponse";
|
|
24
|
+
const _LOR = "ListOrganizationRecommendations";
|
|
25
|
+
const _LORA = "ListOrganizationRecommendationAccounts";
|
|
26
|
+
const _LORAR = "ListOrganizationRecommendationAccountsRequest";
|
|
27
|
+
const _LORARi = "ListOrganizationRecommendationAccountsResponse";
|
|
28
|
+
const _LORR = "ListOrganizationRecommendationsRequest";
|
|
29
|
+
const _LORRR = "ListOrganizationRecommendationResourcesRequest";
|
|
30
|
+
const _LORRRi = "ListOrganizationRecommendationResourcesResponse";
|
|
31
|
+
const _LORRi = "ListOrganizationRecommendationsResponse";
|
|
32
|
+
const _LORRis = "ListOrganizationRecommendationResources";
|
|
33
|
+
const _LR = "ListRecommendations";
|
|
34
|
+
const _LRR = "ListRecommendationsRequest";
|
|
35
|
+
const _LRRR = "ListRecommendationResourcesRequest";
|
|
36
|
+
const _LRRRi = "ListRecommendationResourcesResponse";
|
|
37
|
+
const _LRRi = "ListRecommendationsResponse";
|
|
38
|
+
const _LRRis = "ListRecommendationResources";
|
|
39
|
+
const _OR = "OrganizationRecommendation";
|
|
40
|
+
const _ORRS = "OrganizationRecommendationResourceSummary";
|
|
41
|
+
const _ORRSL = "OrganizationRecommendationResourceSummaryList";
|
|
42
|
+
const _ORS = "OrganizationRecommendationSummary";
|
|
43
|
+
const _ORSL = "OrganizationRecommendationSummaryList";
|
|
44
|
+
const _R = "Recommendation";
|
|
45
|
+
const _RCOA = "RecommendationCostOptimizingAggregates";
|
|
46
|
+
const _RNFE = "ResourceNotFoundException";
|
|
47
|
+
const _RPSA = "RecommendationPillarSpecificAggregates";
|
|
48
|
+
const _RRA = "RecommendationResourcesAggregates";
|
|
49
|
+
const _RRE = "RecommendationResourceExclusion";
|
|
50
|
+
const _RREL = "RecommendationResourceExclusionList";
|
|
51
|
+
const _RRS = "RecommendationResourceSummary";
|
|
52
|
+
const _RRSL = "RecommendationResourceSummaryList";
|
|
53
|
+
const _RS = "RecommendationSummary";
|
|
54
|
+
const _RSL = "RecommendationSummaryList";
|
|
55
|
+
const _RUR = "RecommendationUpdateReason";
|
|
56
|
+
const _TE = "ThrottlingException";
|
|
57
|
+
const _UORL = "UpdateOrganizationRecommendationLifecycle";
|
|
58
|
+
const _UORLR = "UpdateOrganizationRecommendationLifecycleRequest";
|
|
59
|
+
const _URL = "UpdateRecommendationLifecycle";
|
|
60
|
+
const _URLR = "UpdateRecommendationLifecycleRequest";
|
|
61
|
+
const _URREE = "UpdateRecommendationResourceExclusionError";
|
|
62
|
+
const _URREEL = "UpdateRecommendationResourceExclusionErrorList";
|
|
63
|
+
const _VE = "ValidationException";
|
|
64
|
+
const _a = "arn";
|
|
65
|
+
const _aAI = "affectedAccountId";
|
|
66
|
+
const _aI = "accountId";
|
|
67
|
+
const _aLUA = "afterLastUpdatedAt";
|
|
68
|
+
const _aRA = "accountRecommendationArn";
|
|
69
|
+
const _aRI = "awsResourceId";
|
|
70
|
+
const _aRLS = "accountRecommendationLifecycleSummaries";
|
|
71
|
+
const _aS = "awsServices";
|
|
72
|
+
const _aSw = "awsService";
|
|
73
|
+
const _bLUA = "beforeLastUpdatedAt";
|
|
74
|
+
const _bURREE = "batchUpdateRecommendationResourceExclusionErrors";
|
|
75
|
+
const _c = "client";
|
|
76
|
+
const _cA = "checkArn";
|
|
77
|
+
const _cAr = "createdAt";
|
|
78
|
+
const _cB = "createdBy";
|
|
79
|
+
const _cI = "checkIdentifier";
|
|
80
|
+
const _cO = "costOptimizing";
|
|
81
|
+
const _cS = "checkSummaries";
|
|
82
|
+
const _d = "description";
|
|
83
|
+
const _e = "error";
|
|
84
|
+
const _eC = "errorCount";
|
|
85
|
+
const _eCr = "errorCode";
|
|
86
|
+
const _eM = "errorMessage";
|
|
87
|
+
const _eMS = "estimatedMonthlySavings";
|
|
88
|
+
const _ePMS = "estimatedPercentMonthlySavings";
|
|
89
|
+
const _eS = "exclusionStatus";
|
|
90
|
+
const _h = "http";
|
|
91
|
+
const _hE = "httpError";
|
|
92
|
+
const _hQ = "httpQuery";
|
|
93
|
+
const _i = "id";
|
|
94
|
+
const _iE = "isExcluded";
|
|
95
|
+
const _l = "language";
|
|
96
|
+
const _lS = "lifecycleStage";
|
|
97
|
+
const _lUA = "lastUpdatedAt";
|
|
98
|
+
const _m = "message";
|
|
99
|
+
const _mR = "maxResults";
|
|
100
|
+
const _me = "metadata";
|
|
101
|
+
const _n = "name";
|
|
102
|
+
const _nT = "nextToken";
|
|
103
|
+
const _oC = "okCount";
|
|
104
|
+
const _oR = "organizationRecommendation";
|
|
105
|
+
const _oRI = "organizationRecommendationIdentifier";
|
|
106
|
+
const _oRRS = "organizationRecommendationResourceSummaries";
|
|
107
|
+
const _oRS = "organizationRecommendationSummaries";
|
|
108
|
+
const _p = "pillars";
|
|
109
|
+
const _pSA = "pillarSpecificAggregates";
|
|
110
|
+
const _pi = "pillar";
|
|
111
|
+
const _r = "recommendation";
|
|
112
|
+
const _rA = "resourcesAggregates";
|
|
113
|
+
const _rAe = "resolvedAt";
|
|
114
|
+
const _rAec = "recommendationArn";
|
|
115
|
+
const _rC = "regionCode";
|
|
116
|
+
const _rI = "recommendationIdentifier";
|
|
117
|
+
const _rRE = "recommendationResourceExclusions";
|
|
118
|
+
const _rRS = "recommendationResourceSummaries";
|
|
119
|
+
const _rS = "recommendationSummaries";
|
|
120
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.trustedadvisor";
|
|
121
|
+
const _se = "server";
|
|
122
|
+
const _so = "source";
|
|
123
|
+
const _st = "status";
|
|
124
|
+
const _t = "type";
|
|
125
|
+
const _uOBO = "updatedOnBehalfOf";
|
|
126
|
+
const _uOBOJT = "updatedOnBehalfOfJobTitle";
|
|
127
|
+
const _uR = "updateReason";
|
|
128
|
+
const _uRC = "updateReasonCode";
|
|
129
|
+
const _wC = "warningCount";
|
|
130
|
+
const n0 = "com.amazonaws.trustedadvisor";
|
|
131
|
+
const schema_1 = require("@smithy/core/schema");
|
|
132
|
+
const errors_1 = require("../models/errors");
|
|
133
|
+
const TrustedAdvisorServiceException_1 = require("../models/TrustedAdvisorServiceException");
|
|
134
|
+
const _s_registry = schema_1.TypeRegistry.for(_s);
|
|
135
|
+
exports.TrustedAdvisorServiceException$ = [-3, _s, "TrustedAdvisorServiceException", 0, [], []];
|
|
136
|
+
_s_registry.registerError(exports.TrustedAdvisorServiceException$, TrustedAdvisorServiceException_1.TrustedAdvisorServiceException);
|
|
137
|
+
const n0_registry = schema_1.TypeRegistry.for(n0);
|
|
138
|
+
exports.AccessDeniedException$ = [-3, n0, _ADE,
|
|
139
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
140
|
+
[_m],
|
|
141
|
+
[0], 1
|
|
142
|
+
];
|
|
143
|
+
n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
|
|
144
|
+
exports.ConflictException$ = [-3, n0, _CE,
|
|
145
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
146
|
+
[_m],
|
|
147
|
+
[0], 1
|
|
148
|
+
];
|
|
149
|
+
n0_registry.registerError(exports.ConflictException$, errors_1.ConflictException);
|
|
150
|
+
exports.InternalServerException$ = [-3, n0, _ISE,
|
|
151
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
152
|
+
[_m],
|
|
153
|
+
[0], 1
|
|
154
|
+
];
|
|
155
|
+
n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
|
|
156
|
+
exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
157
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
158
|
+
[_m],
|
|
159
|
+
[0], 1
|
|
160
|
+
];
|
|
161
|
+
n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
|
|
162
|
+
exports.ThrottlingException$ = [-3, n0, _TE,
|
|
163
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
164
|
+
[_m],
|
|
165
|
+
[0], 1
|
|
166
|
+
];
|
|
167
|
+
n0_registry.registerError(exports.ThrottlingException$, errors_1.ThrottlingException);
|
|
168
|
+
exports.ValidationException$ = [-3, n0, _VE,
|
|
169
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
170
|
+
[_m],
|
|
171
|
+
[0], 1
|
|
172
|
+
];
|
|
173
|
+
n0_registry.registerError(exports.ValidationException$, errors_1.ValidationException);
|
|
174
|
+
exports.errorTypeRegistries = [
|
|
175
|
+
_s_registry,
|
|
176
|
+
n0_registry,
|
|
177
|
+
];
|
|
178
|
+
var RecommendationUpdateReason = [0, n0, _RUR, 8, 0];
|
|
179
|
+
exports.AccountRecommendationLifecycleSummary$ = [3, n0, _ARLS,
|
|
180
|
+
0,
|
|
181
|
+
[_aI, _aRA, _lS, _uOBO, _uOBOJT, _uR, _uRC, _lUA],
|
|
182
|
+
[0, 0, 0, 0, 0, [() => RecommendationUpdateReason, 0], 0, 5]
|
|
183
|
+
];
|
|
184
|
+
exports.BatchUpdateRecommendationResourceExclusionRequest$ = [3, n0, _BURRER,
|
|
185
|
+
0,
|
|
186
|
+
[_rRE],
|
|
187
|
+
[() => RecommendationResourceExclusionList], 1
|
|
188
|
+
];
|
|
189
|
+
exports.BatchUpdateRecommendationResourceExclusionResponse$ = [3, n0, _BURRERa,
|
|
190
|
+
0,
|
|
191
|
+
[_bURREE],
|
|
192
|
+
[() => UpdateRecommendationResourceExclusionErrorList], 1
|
|
193
|
+
];
|
|
194
|
+
exports.CheckSummary$ = [3, n0, _CS,
|
|
195
|
+
0,
|
|
196
|
+
[_i, _a, _n, _d, _p, _aS, _so, _me],
|
|
197
|
+
[0, 0, 0, 0, 64 | 0, 64 | 0, 0, 128 | 0], 8
|
|
198
|
+
];
|
|
199
|
+
exports.GetOrganizationRecommendationRequest$ = [3, n0, _GORR,
|
|
200
|
+
0,
|
|
201
|
+
[_oRI],
|
|
202
|
+
[[0, 1]], 1
|
|
203
|
+
];
|
|
204
|
+
exports.GetOrganizationRecommendationResponse$ = [3, n0, _GORRe,
|
|
205
|
+
0,
|
|
206
|
+
[_oR],
|
|
207
|
+
[[() => exports.OrganizationRecommendation$, 0]]
|
|
208
|
+
];
|
|
209
|
+
exports.GetRecommendationRequest$ = [3, n0, _GRR,
|
|
210
|
+
0,
|
|
211
|
+
[_rI],
|
|
212
|
+
[[0, 1]], 1
|
|
213
|
+
];
|
|
214
|
+
exports.GetRecommendationResponse$ = [3, n0, _GRRe,
|
|
215
|
+
0,
|
|
216
|
+
[_r],
|
|
217
|
+
[[() => exports.Recommendation$, 0]]
|
|
218
|
+
];
|
|
219
|
+
exports.ListChecksRequest$ = [3, n0, _LCR,
|
|
220
|
+
0,
|
|
221
|
+
[_nT, _mR, _pi, _aSw, _so, _l],
|
|
222
|
+
[[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _pi }], [0, { [_hQ]: _aSw }], [0, { [_hQ]: _so }], [0, { [_hQ]: _l }]]
|
|
223
|
+
];
|
|
224
|
+
exports.ListChecksResponse$ = [3, n0, _LCRi,
|
|
225
|
+
0,
|
|
226
|
+
[_cS, _nT],
|
|
227
|
+
[() => CheckSummaryList, 0], 1
|
|
228
|
+
];
|
|
229
|
+
exports.ListOrganizationRecommendationAccountsRequest$ = [3, n0, _LORAR,
|
|
230
|
+
0,
|
|
231
|
+
[_oRI, _nT, _mR, _aAI],
|
|
232
|
+
[[0, 1], [0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _aAI }]], 1
|
|
233
|
+
];
|
|
234
|
+
exports.ListOrganizationRecommendationAccountsResponse$ = [3, n0, _LORARi,
|
|
235
|
+
0,
|
|
236
|
+
[_aRLS, _nT],
|
|
237
|
+
[[() => AccountRecommendationLifecycleSummaryList, 0], 0], 1
|
|
238
|
+
];
|
|
239
|
+
exports.ListOrganizationRecommendationResourcesRequest$ = [3, n0, _LORRR,
|
|
240
|
+
0,
|
|
241
|
+
[_oRI, _nT, _mR, _st, _eS, _rC, _aAI],
|
|
242
|
+
[[0, 1], [0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _st }], [0, { [_hQ]: _eS }], [0, { [_hQ]: _rC }], [0, { [_hQ]: _aAI }]], 1
|
|
243
|
+
];
|
|
244
|
+
exports.ListOrganizationRecommendationResourcesResponse$ = [3, n0, _LORRRi,
|
|
245
|
+
0,
|
|
246
|
+
[_oRRS, _nT],
|
|
247
|
+
[() => OrganizationRecommendationResourceSummaryList, 0], 1
|
|
248
|
+
];
|
|
249
|
+
exports.ListOrganizationRecommendationsRequest$ = [3, n0, _LORR,
|
|
250
|
+
0,
|
|
251
|
+
[_nT, _mR, _t, _st, _pi, _aSw, _so, _cI, _aLUA, _bLUA],
|
|
252
|
+
[[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _t }], [0, { [_hQ]: _st }], [0, { [_hQ]: _pi }], [0, { [_hQ]: _aSw }], [0, { [_hQ]: _so }], [0, { [_hQ]: _cI }], [4, { [_hQ]: _aLUA }], [4, { [_hQ]: _bLUA }]]
|
|
253
|
+
];
|
|
254
|
+
exports.ListOrganizationRecommendationsResponse$ = [3, n0, _LORRi,
|
|
255
|
+
0,
|
|
256
|
+
[_oRS, _nT],
|
|
257
|
+
[() => OrganizationRecommendationSummaryList, 0], 1
|
|
258
|
+
];
|
|
259
|
+
exports.ListRecommendationResourcesRequest$ = [3, n0, _LRRR,
|
|
260
|
+
0,
|
|
261
|
+
[_rI, _nT, _mR, _st, _eS, _rC],
|
|
262
|
+
[[0, 1], [0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _st }], [0, { [_hQ]: _eS }], [0, { [_hQ]: _rC }]], 1
|
|
263
|
+
];
|
|
264
|
+
exports.ListRecommendationResourcesResponse$ = [3, n0, _LRRRi,
|
|
265
|
+
0,
|
|
266
|
+
[_rRS, _nT],
|
|
267
|
+
[() => RecommendationResourceSummaryList, 0], 1
|
|
268
|
+
];
|
|
269
|
+
exports.ListRecommendationsRequest$ = [3, n0, _LRR,
|
|
270
|
+
0,
|
|
271
|
+
[_nT, _mR, _t, _st, _pi, _aSw, _so, _cI, _aLUA, _bLUA],
|
|
272
|
+
[[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _t }], [0, { [_hQ]: _st }], [0, { [_hQ]: _pi }], [0, { [_hQ]: _aSw }], [0, { [_hQ]: _so }], [0, { [_hQ]: _cI }], [4, { [_hQ]: _aLUA }], [4, { [_hQ]: _bLUA }]]
|
|
273
|
+
];
|
|
274
|
+
exports.ListRecommendationsResponse$ = [3, n0, _LRRi,
|
|
275
|
+
0,
|
|
276
|
+
[_rS, _nT],
|
|
277
|
+
[() => RecommendationSummaryList, 0], 1
|
|
278
|
+
];
|
|
279
|
+
exports.OrganizationRecommendation$ = [3, n0, _OR,
|
|
280
|
+
0,
|
|
281
|
+
[_i, _t, _st, _p, _so, _n, _rA, _a, _d, _cA, _lS, _aS, _pSA, _cAr, _lUA, _cB, _uOBO, _uOBOJT, _uR, _uRC, _rAe],
|
|
282
|
+
[0, 0, 0, 64 | 0, 0, 0, () => exports.RecommendationResourcesAggregates$, 0, 0, 0, 0, 64 | 0, () => exports.RecommendationPillarSpecificAggregates$, 5, 5, 0, 0, 0, [() => RecommendationUpdateReason, 0], 0, 5], 9
|
|
283
|
+
];
|
|
284
|
+
exports.OrganizationRecommendationResourceSummary$ = [3, n0, _ORRS,
|
|
285
|
+
0,
|
|
286
|
+
[_i, _a, _aRI, _rC, _st, _me, _lUA, _rAec, _eS, _aI],
|
|
287
|
+
[0, 0, 0, 0, 0, 128 | 0, 5, 0, 0, 0], 8
|
|
288
|
+
];
|
|
289
|
+
exports.OrganizationRecommendationSummary$ = [3, n0, _ORS,
|
|
290
|
+
0,
|
|
291
|
+
[_i, _t, _st, _p, _so, _n, _rA, _a, _cA, _lS, _aS, _pSA, _cAr, _lUA],
|
|
292
|
+
[0, 0, 0, 64 | 0, 0, 0, () => exports.RecommendationResourcesAggregates$, 0, 0, 0, 64 | 0, () => exports.RecommendationPillarSpecificAggregates$, 5, 5], 8
|
|
293
|
+
];
|
|
294
|
+
exports.Recommendation$ = [3, n0, _R,
|
|
295
|
+
0,
|
|
296
|
+
[_i, _t, _st, _p, _so, _n, _rA, _a, _d, _cA, _lS, _aS, _pSA, _cAr, _lUA, _cB, _uOBO, _uOBOJT, _uR, _uRC, _rAe],
|
|
297
|
+
[0, 0, 0, 64 | 0, 0, 0, () => exports.RecommendationResourcesAggregates$, 0, 0, 0, 0, 64 | 0, () => exports.RecommendationPillarSpecificAggregates$, 5, 5, 0, 0, 0, [() => RecommendationUpdateReason, 0], 0, 5], 9
|
|
298
|
+
];
|
|
299
|
+
exports.RecommendationCostOptimizingAggregates$ = [3, n0, _RCOA,
|
|
300
|
+
0,
|
|
301
|
+
[_eMS, _ePMS],
|
|
302
|
+
[1, 1], 2
|
|
303
|
+
];
|
|
304
|
+
exports.RecommendationPillarSpecificAggregates$ = [3, n0, _RPSA,
|
|
305
|
+
0,
|
|
306
|
+
[_cO],
|
|
307
|
+
[() => exports.RecommendationCostOptimizingAggregates$]
|
|
308
|
+
];
|
|
309
|
+
exports.RecommendationResourceExclusion$ = [3, n0, _RRE,
|
|
310
|
+
0,
|
|
311
|
+
[_a, _iE],
|
|
312
|
+
[0, 2], 2
|
|
313
|
+
];
|
|
314
|
+
exports.RecommendationResourcesAggregates$ = [3, n0, _RRA,
|
|
315
|
+
0,
|
|
316
|
+
[_oC, _wC, _eC],
|
|
317
|
+
[1, 1, 1], 3
|
|
318
|
+
];
|
|
319
|
+
exports.RecommendationResourceSummary$ = [3, n0, _RRS,
|
|
320
|
+
0,
|
|
321
|
+
[_i, _a, _aRI, _rC, _st, _me, _lUA, _rAec, _eS],
|
|
322
|
+
[0, 0, 0, 0, 0, 128 | 0, 5, 0, 0], 8
|
|
323
|
+
];
|
|
324
|
+
exports.RecommendationSummary$ = [3, n0, _RS,
|
|
325
|
+
0,
|
|
326
|
+
[_i, _t, _st, _p, _so, _n, _rA, _a, _cA, _lS, _aS, _pSA, _cAr, _lUA],
|
|
327
|
+
[0, 0, 0, 64 | 0, 0, 0, () => exports.RecommendationResourcesAggregates$, 0, 0, 0, 64 | 0, () => exports.RecommendationPillarSpecificAggregates$, 5, 5], 8
|
|
328
|
+
];
|
|
329
|
+
exports.UpdateOrganizationRecommendationLifecycleRequest$ = [3, n0, _UORLR,
|
|
330
|
+
0,
|
|
331
|
+
[_lS, _oRI, _uR, _uRC],
|
|
332
|
+
[0, [0, 1], [() => RecommendationUpdateReason, 0], 0], 2
|
|
333
|
+
];
|
|
334
|
+
exports.UpdateRecommendationLifecycleRequest$ = [3, n0, _URLR,
|
|
335
|
+
0,
|
|
336
|
+
[_lS, _rI, _uR, _uRC],
|
|
337
|
+
[0, [0, 1], [() => RecommendationUpdateReason, 0], 0], 2
|
|
338
|
+
];
|
|
339
|
+
exports.UpdateRecommendationResourceExclusionError$ = [3, n0, _URREE,
|
|
340
|
+
0,
|
|
341
|
+
[_a, _eCr, _eM],
|
|
342
|
+
[0, 0, 0]
|
|
343
|
+
];
|
|
344
|
+
var __Unit = "unit";
|
|
345
|
+
var AccountRecommendationLifecycleSummaryList = [1, n0, _ARLSL,
|
|
346
|
+
0, [() => exports.AccountRecommendationLifecycleSummary$,
|
|
347
|
+
0]
|
|
348
|
+
];
|
|
349
|
+
var CheckSummaryList = [1, n0, _CSL,
|
|
350
|
+
0, () => exports.CheckSummary$
|
|
351
|
+
];
|
|
352
|
+
var OrganizationRecommendationResourceSummaryList = [1, n0, _ORRSL,
|
|
353
|
+
0, () => exports.OrganizationRecommendationResourceSummary$
|
|
354
|
+
];
|
|
355
|
+
var OrganizationRecommendationSummaryList = [1, n0, _ORSL,
|
|
356
|
+
0, () => exports.OrganizationRecommendationSummary$
|
|
357
|
+
];
|
|
358
|
+
var RecommendationAwsServiceList = 64 | 0;
|
|
359
|
+
var RecommendationPillarList = 64 | 0;
|
|
360
|
+
var RecommendationResourceExclusionList = [1, n0, _RREL,
|
|
361
|
+
0, () => exports.RecommendationResourceExclusion$
|
|
362
|
+
];
|
|
363
|
+
var RecommendationResourceSummaryList = [1, n0, _RRSL,
|
|
364
|
+
0, () => exports.RecommendationResourceSummary$
|
|
365
|
+
];
|
|
366
|
+
var RecommendationSummaryList = [1, n0, _RSL,
|
|
367
|
+
0, () => exports.RecommendationSummary$
|
|
368
|
+
];
|
|
369
|
+
var UpdateRecommendationResourceExclusionErrorList = [1, n0, _URREEL,
|
|
370
|
+
0, () => exports.UpdateRecommendationResourceExclusionError$
|
|
371
|
+
];
|
|
372
|
+
var StringMap = 128 | 0;
|
|
373
|
+
exports.BatchUpdateRecommendationResourceExclusion$ = [9, n0, _BURRE,
|
|
374
|
+
{ [_h]: ["PUT", "/v1/batch-update-recommendation-resource-exclusion", 200] }, () => exports.BatchUpdateRecommendationResourceExclusionRequest$, () => exports.BatchUpdateRecommendationResourceExclusionResponse$
|
|
375
|
+
];
|
|
376
|
+
exports.GetOrganizationRecommendation$ = [9, n0, _GOR,
|
|
377
|
+
{ [_h]: ["GET", "/v1/organization-recommendations/{organizationRecommendationIdentifier}", 200] }, () => exports.GetOrganizationRecommendationRequest$, () => exports.GetOrganizationRecommendationResponse$
|
|
378
|
+
];
|
|
379
|
+
exports.GetRecommendation$ = [9, n0, _GR,
|
|
380
|
+
{ [_h]: ["GET", "/v1/recommendations/{recommendationIdentifier}", 200] }, () => exports.GetRecommendationRequest$, () => exports.GetRecommendationResponse$
|
|
381
|
+
];
|
|
382
|
+
exports.ListChecks$ = [9, n0, _LC,
|
|
383
|
+
{ [_h]: ["GET", "/v1/checks", 200] }, () => exports.ListChecksRequest$, () => exports.ListChecksResponse$
|
|
384
|
+
];
|
|
385
|
+
exports.ListOrganizationRecommendationAccounts$ = [9, n0, _LORA,
|
|
386
|
+
{ [_h]: ["GET", "/v1/organization-recommendations/{organizationRecommendationIdentifier}/accounts", 200] }, () => exports.ListOrganizationRecommendationAccountsRequest$, () => exports.ListOrganizationRecommendationAccountsResponse$
|
|
387
|
+
];
|
|
388
|
+
exports.ListOrganizationRecommendationResources$ = [9, n0, _LORRis,
|
|
389
|
+
{ [_h]: ["GET", "/v1/organization-recommendations/{organizationRecommendationIdentifier}/resources", 200] }, () => exports.ListOrganizationRecommendationResourcesRequest$, () => exports.ListOrganizationRecommendationResourcesResponse$
|
|
390
|
+
];
|
|
391
|
+
exports.ListOrganizationRecommendations$ = [9, n0, _LOR,
|
|
392
|
+
{ [_h]: ["GET", "/v1/organization-recommendations", 200] }, () => exports.ListOrganizationRecommendationsRequest$, () => exports.ListOrganizationRecommendationsResponse$
|
|
393
|
+
];
|
|
394
|
+
exports.ListRecommendationResources$ = [9, n0, _LRRis,
|
|
395
|
+
{ [_h]: ["GET", "/v1/recommendations/{recommendationIdentifier}/resources", 200] }, () => exports.ListRecommendationResourcesRequest$, () => exports.ListRecommendationResourcesResponse$
|
|
396
|
+
];
|
|
397
|
+
exports.ListRecommendations$ = [9, n0, _LR,
|
|
398
|
+
{ [_h]: ["GET", "/v1/recommendations", 200] }, () => exports.ListRecommendationsRequest$, () => exports.ListRecommendationsResponse$
|
|
399
|
+
];
|
|
400
|
+
exports.UpdateOrganizationRecommendationLifecycle$ = [9, n0, _UORL,
|
|
401
|
+
{ [_h]: ["PUT", "/v1/organization-recommendations/{organizationRecommendationIdentifier}/lifecycle", 200] }, () => exports.UpdateOrganizationRecommendationLifecycleRequest$, () => __Unit
|
|
402
|
+
];
|
|
403
|
+
exports.UpdateRecommendationLifecycle$ = [9, n0, _URL,
|
|
404
|
+
{ [_h]: ["PUT", "/v1/recommendations/{recommendationIdentifier}/lifecycle", 200] }, () => exports.UpdateRecommendationLifecycleRequest$, () => __Unit
|
|
405
|
+
];
|
|
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
|
6
6
|
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
7
7
|
import { defaultTrustedAdvisorHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
8
8
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
9
|
+
import { errorTypeRegistries } from "./schemas/schemas_0";
|
|
9
10
|
export const getRuntimeConfig = (config) => {
|
|
10
11
|
return {
|
|
11
12
|
apiVersion: "2022-09-15",
|
|
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
26
27
|
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
27
28
|
protocolSettings: config?.protocolSettings ?? {
|
|
28
29
|
defaultNamespace: "com.amazonaws.trustedadvisor",
|
|
30
|
+
errorTypeRegistries,
|
|
29
31
|
version: "2022-09-15",
|
|
30
32
|
serviceTarget: "TrustedAdvisor",
|
|
31
33
|
},
|