@aws-sdk/client-controlcatalog 3.901.0 → 3.907.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 +732 -863
- package/package.json +6 -6
package/dist-cjs/index.js
CHANGED
|
@@ -1,884 +1,753 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
InternalServerException: () => InternalServerException,
|
|
33
|
-
ListCommonControlsCommand: () => ListCommonControlsCommand,
|
|
34
|
-
ListControlMappingsCommand: () => ListControlMappingsCommand,
|
|
35
|
-
ListControlsCommand: () => ListControlsCommand,
|
|
36
|
-
ListDomainsCommand: () => ListDomainsCommand,
|
|
37
|
-
ListObjectivesCommand: () => ListObjectivesCommand,
|
|
38
|
-
Mapping: () => Mapping,
|
|
39
|
-
MappingType: () => MappingType,
|
|
40
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
41
|
-
ThrottlingException: () => ThrottlingException,
|
|
42
|
-
ValidationException: () => ValidationException,
|
|
43
|
-
__Client: () => import_smithy_client.Client,
|
|
44
|
-
paginateListCommonControls: () => paginateListCommonControls,
|
|
45
|
-
paginateListControlMappings: () => paginateListControlMappings,
|
|
46
|
-
paginateListControls: () => paginateListControls,
|
|
47
|
-
paginateListDomains: () => paginateListDomains,
|
|
48
|
-
paginateListObjectives: () => paginateListObjectives
|
|
49
|
-
});
|
|
50
|
-
module.exports = __toCommonJS(index_exports);
|
|
51
|
-
|
|
52
|
-
// src/ControlCatalogClient.ts
|
|
53
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
54
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
55
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
56
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
57
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
58
|
-
var import_core = require("@smithy/core");
|
|
59
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
60
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
61
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
62
|
-
|
|
63
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
64
|
-
|
|
65
|
-
// src/endpoint/EndpointParameters.ts
|
|
66
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
67
|
-
return Object.assign(options, {
|
|
68
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
69
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
70
|
-
defaultSigningName: "controlcatalog"
|
|
71
|
-
});
|
|
72
|
-
}, "resolveClientEndpointParameters");
|
|
73
|
-
var commonParams = {
|
|
74
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
75
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
76
|
-
Region: { type: "builtInParams", name: "region" },
|
|
77
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
|
|
20
|
+
const resolveClientEndpointParameters = (options) => {
|
|
21
|
+
return Object.assign(options, {
|
|
22
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
23
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
24
|
+
defaultSigningName: "controlcatalog",
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
const commonParams = {
|
|
28
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
29
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
30
|
+
Region: { type: "builtInParams", name: "region" },
|
|
31
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
78
32
|
};
|
|
79
33
|
|
|
80
|
-
|
|
81
|
-
|
|
34
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
37
|
+
let _credentials = runtimeConfig.credentials;
|
|
38
|
+
return {
|
|
39
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
40
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
41
|
+
if (index === -1) {
|
|
42
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
httpAuthSchemes() {
|
|
49
|
+
return _httpAuthSchemes;
|
|
50
|
+
},
|
|
51
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
52
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
53
|
+
},
|
|
54
|
+
httpAuthSchemeProvider() {
|
|
55
|
+
return _httpAuthSchemeProvider;
|
|
56
|
+
},
|
|
57
|
+
setCredentials(credentials) {
|
|
58
|
+
_credentials = credentials;
|
|
59
|
+
},
|
|
60
|
+
credentials() {
|
|
61
|
+
return _credentials;
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
66
|
+
return {
|
|
67
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
68
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
69
|
+
credentials: config.credentials(),
|
|
70
|
+
};
|
|
71
|
+
};
|
|
82
72
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
73
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
74
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
75
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
76
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
77
|
+
};
|
|
87
78
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
79
|
+
class ControlCatalogClient extends smithyClient.Client {
|
|
80
|
+
config;
|
|
81
|
+
constructor(...[configuration]) {
|
|
82
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
83
|
+
super(_config_0);
|
|
84
|
+
this.initConfig = _config_0;
|
|
85
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
86
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
|
+
this.config = _config_8;
|
|
94
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
101
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultControlCatalogHttpAuthSchemeParametersProvider,
|
|
102
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
103
|
+
"aws.auth#sigv4": config.credentials,
|
|
104
|
+
}),
|
|
105
|
+
}));
|
|
106
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
116
107
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
122
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
123
|
-
credentials: config.credentials()
|
|
124
|
-
};
|
|
125
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
126
|
-
|
|
127
|
-
// src/runtimeExtensions.ts
|
|
128
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
129
|
-
const extensionConfiguration = Object.assign(
|
|
130
|
-
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
131
|
-
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
132
|
-
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
133
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
134
|
-
);
|
|
135
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
136
|
-
return Object.assign(
|
|
137
|
-
runtimeConfig,
|
|
138
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
139
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
140
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
141
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
142
|
-
);
|
|
143
|
-
}, "resolveRuntimeExtensions");
|
|
108
|
+
destroy() {
|
|
109
|
+
super.destroy();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
144
112
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
113
|
+
class ControlCatalogServiceException extends smithyClient.ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, ControlCatalogServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
class AccessDeniedException extends ControlCatalogServiceException {
|
|
121
|
+
name = "AccessDeniedException";
|
|
122
|
+
$fault = "client";
|
|
123
|
+
Message;
|
|
124
|
+
constructor(opts) {
|
|
125
|
+
super({
|
|
126
|
+
name: "AccessDeniedException",
|
|
127
|
+
$fault: "client",
|
|
128
|
+
...opts,
|
|
129
|
+
});
|
|
130
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
131
|
+
this.Message = opts.Message;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
class InternalServerException extends ControlCatalogServiceException {
|
|
135
|
+
name = "InternalServerException";
|
|
136
|
+
$fault = "server";
|
|
137
|
+
$retryable = {};
|
|
138
|
+
Message;
|
|
139
|
+
constructor(opts) {
|
|
140
|
+
super({
|
|
141
|
+
name: "InternalServerException",
|
|
142
|
+
$fault: "server",
|
|
143
|
+
...opts,
|
|
144
|
+
});
|
|
145
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
146
|
+
this.Message = opts.Message;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
class ThrottlingException extends ControlCatalogServiceException {
|
|
150
|
+
name = "ThrottlingException";
|
|
151
|
+
$fault = "client";
|
|
152
|
+
$retryable = {
|
|
153
|
+
throttling: true,
|
|
154
|
+
};
|
|
155
|
+
Message;
|
|
156
|
+
constructor(opts) {
|
|
157
|
+
super({
|
|
158
|
+
name: "ThrottlingException",
|
|
159
|
+
$fault: "client",
|
|
160
|
+
...opts,
|
|
161
|
+
});
|
|
162
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
163
|
+
this.Message = opts.Message;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
class ValidationException extends ControlCatalogServiceException {
|
|
167
|
+
name = "ValidationException";
|
|
168
|
+
$fault = "client";
|
|
169
|
+
Message;
|
|
170
|
+
constructor(opts) {
|
|
171
|
+
super({
|
|
172
|
+
name: "ValidationException",
|
|
173
|
+
$fault: "client",
|
|
174
|
+
...opts,
|
|
175
|
+
});
|
|
176
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
177
|
+
this.Message = opts.Message;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
const ControlBehavior = {
|
|
181
|
+
DETECTIVE: "DETECTIVE",
|
|
182
|
+
PREVENTIVE: "PREVENTIVE",
|
|
183
|
+
PROACTIVE: "PROACTIVE",
|
|
191
184
|
};
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
// src/commands/GetControlCommand.ts
|
|
197
|
-
|
|
198
|
-
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
// src/protocols/Aws_restJson1.ts
|
|
202
|
-
var import_core2 = require("@aws-sdk/core");
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
// src/models/ControlCatalogServiceException.ts
|
|
207
|
-
|
|
208
|
-
var ControlCatalogServiceException = class _ControlCatalogServiceException extends import_smithy_client.ServiceException {
|
|
209
|
-
static {
|
|
210
|
-
__name(this, "ControlCatalogServiceException");
|
|
211
|
-
}
|
|
212
|
-
/**
|
|
213
|
-
* @internal
|
|
214
|
-
*/
|
|
215
|
-
constructor(options) {
|
|
216
|
-
super(options);
|
|
217
|
-
Object.setPrototypeOf(this, _ControlCatalogServiceException.prototype);
|
|
218
|
-
}
|
|
185
|
+
const ControlScope = {
|
|
186
|
+
GLOBAL: "GLOBAL",
|
|
187
|
+
REGIONAL: "REGIONAL",
|
|
219
188
|
};
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
}
|
|
226
|
-
name = "AccessDeniedException";
|
|
227
|
-
$fault = "client";
|
|
228
|
-
Message;
|
|
229
|
-
/**
|
|
230
|
-
* @internal
|
|
231
|
-
*/
|
|
232
|
-
constructor(opts) {
|
|
233
|
-
super({
|
|
234
|
-
name: "AccessDeniedException",
|
|
235
|
-
$fault: "client",
|
|
236
|
-
...opts
|
|
237
|
-
});
|
|
238
|
-
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
239
|
-
this.Message = opts.Message;
|
|
240
|
-
}
|
|
241
|
-
};
|
|
242
|
-
var InternalServerException = class _InternalServerException extends ControlCatalogServiceException {
|
|
243
|
-
static {
|
|
244
|
-
__name(this, "InternalServerException");
|
|
245
|
-
}
|
|
246
|
-
name = "InternalServerException";
|
|
247
|
-
$fault = "server";
|
|
248
|
-
$retryable = {};
|
|
249
|
-
Message;
|
|
250
|
-
/**
|
|
251
|
-
* @internal
|
|
252
|
-
*/
|
|
253
|
-
constructor(opts) {
|
|
254
|
-
super({
|
|
255
|
-
name: "InternalServerException",
|
|
256
|
-
$fault: "server",
|
|
257
|
-
...opts
|
|
258
|
-
});
|
|
259
|
-
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
260
|
-
this.Message = opts.Message;
|
|
261
|
-
}
|
|
262
|
-
};
|
|
263
|
-
var ThrottlingException = class _ThrottlingException extends ControlCatalogServiceException {
|
|
264
|
-
static {
|
|
265
|
-
__name(this, "ThrottlingException");
|
|
266
|
-
}
|
|
267
|
-
name = "ThrottlingException";
|
|
268
|
-
$fault = "client";
|
|
269
|
-
$retryable = {
|
|
270
|
-
throttling: true
|
|
271
|
-
};
|
|
272
|
-
Message;
|
|
273
|
-
/**
|
|
274
|
-
* @internal
|
|
275
|
-
*/
|
|
276
|
-
constructor(opts) {
|
|
277
|
-
super({
|
|
278
|
-
name: "ThrottlingException",
|
|
279
|
-
$fault: "client",
|
|
280
|
-
...opts
|
|
281
|
-
});
|
|
282
|
-
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
283
|
-
this.Message = opts.Message;
|
|
284
|
-
}
|
|
285
|
-
};
|
|
286
|
-
var ValidationException = class _ValidationException extends ControlCatalogServiceException {
|
|
287
|
-
static {
|
|
288
|
-
__name(this, "ValidationException");
|
|
289
|
-
}
|
|
290
|
-
name = "ValidationException";
|
|
291
|
-
$fault = "client";
|
|
292
|
-
Message;
|
|
293
|
-
/**
|
|
294
|
-
* @internal
|
|
295
|
-
*/
|
|
296
|
-
constructor(opts) {
|
|
297
|
-
super({
|
|
298
|
-
name: "ValidationException",
|
|
299
|
-
$fault: "client",
|
|
300
|
-
...opts
|
|
301
|
-
});
|
|
302
|
-
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
303
|
-
this.Message = opts.Message;
|
|
304
|
-
}
|
|
305
|
-
};
|
|
306
|
-
var ControlBehavior = {
|
|
307
|
-
DETECTIVE: "DETECTIVE",
|
|
308
|
-
PREVENTIVE: "PREVENTIVE",
|
|
309
|
-
PROACTIVE: "PROACTIVE"
|
|
310
|
-
};
|
|
311
|
-
var ControlScope = {
|
|
312
|
-
GLOBAL: "GLOBAL",
|
|
313
|
-
REGIONAL: "REGIONAL"
|
|
314
|
-
};
|
|
315
|
-
var ControlSeverity = {
|
|
316
|
-
CRITICAL: "CRITICAL",
|
|
317
|
-
HIGH: "HIGH",
|
|
318
|
-
LOW: "LOW",
|
|
319
|
-
MEDIUM: "MEDIUM"
|
|
320
|
-
};
|
|
321
|
-
var ResourceNotFoundException = class _ResourceNotFoundException extends ControlCatalogServiceException {
|
|
322
|
-
static {
|
|
323
|
-
__name(this, "ResourceNotFoundException");
|
|
324
|
-
}
|
|
325
|
-
name = "ResourceNotFoundException";
|
|
326
|
-
$fault = "client";
|
|
327
|
-
Message;
|
|
328
|
-
/**
|
|
329
|
-
* @internal
|
|
330
|
-
*/
|
|
331
|
-
constructor(opts) {
|
|
332
|
-
super({
|
|
333
|
-
name: "ResourceNotFoundException",
|
|
334
|
-
$fault: "client",
|
|
335
|
-
...opts
|
|
336
|
-
});
|
|
337
|
-
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
338
|
-
this.Message = opts.Message;
|
|
339
|
-
}
|
|
340
|
-
};
|
|
341
|
-
var MappingType = {
|
|
342
|
-
COMMON_CONTROL: "COMMON_CONTROL",
|
|
343
|
-
FRAMEWORK: "FRAMEWORK"
|
|
344
|
-
};
|
|
345
|
-
var Mapping;
|
|
346
|
-
((Mapping2) => {
|
|
347
|
-
Mapping2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
348
|
-
if (value.Framework !== void 0) return visitor.Framework(value.Framework);
|
|
349
|
-
if (value.CommonControl !== void 0) return visitor.CommonControl(value.CommonControl);
|
|
350
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
351
|
-
}, "visit");
|
|
352
|
-
})(Mapping || (Mapping = {}));
|
|
353
|
-
|
|
354
|
-
// src/protocols/Aws_restJson1.ts
|
|
355
|
-
var se_GetControlCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
356
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
357
|
-
const headers = {
|
|
358
|
-
"content-type": "application/json"
|
|
359
|
-
};
|
|
360
|
-
b.bp("/get-control");
|
|
361
|
-
let body;
|
|
362
|
-
body = JSON.stringify(
|
|
363
|
-
(0, import_smithy_client.take)(input, {
|
|
364
|
-
ControlArn: []
|
|
365
|
-
})
|
|
366
|
-
);
|
|
367
|
-
b.m("POST").h(headers).b(body);
|
|
368
|
-
return b.build();
|
|
369
|
-
}, "se_GetControlCommand");
|
|
370
|
-
var se_ListCommonControlsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
371
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
372
|
-
const headers = {
|
|
373
|
-
"content-type": "application/json"
|
|
374
|
-
};
|
|
375
|
-
b.bp("/common-controls");
|
|
376
|
-
const query = (0, import_smithy_client.map)({
|
|
377
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
378
|
-
[_nT]: [, input[_NT]]
|
|
379
|
-
});
|
|
380
|
-
let body;
|
|
381
|
-
body = JSON.stringify(
|
|
382
|
-
(0, import_smithy_client.take)(input, {
|
|
383
|
-
CommonControlFilter: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "CommonControlFilter")
|
|
384
|
-
})
|
|
385
|
-
);
|
|
386
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
387
|
-
return b.build();
|
|
388
|
-
}, "se_ListCommonControlsCommand");
|
|
389
|
-
var se_ListControlMappingsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
390
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
391
|
-
const headers = {
|
|
392
|
-
"content-type": "application/json"
|
|
393
|
-
};
|
|
394
|
-
b.bp("/list-control-mappings");
|
|
395
|
-
const query = (0, import_smithy_client.map)({
|
|
396
|
-
[_nT]: [, input[_NT]],
|
|
397
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
|
|
398
|
-
});
|
|
399
|
-
let body;
|
|
400
|
-
body = JSON.stringify(
|
|
401
|
-
(0, import_smithy_client.take)(input, {
|
|
402
|
-
Filter: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Filter")
|
|
403
|
-
})
|
|
404
|
-
);
|
|
405
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
406
|
-
return b.build();
|
|
407
|
-
}, "se_ListControlMappingsCommand");
|
|
408
|
-
var se_ListControlsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
409
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
410
|
-
const headers = {
|
|
411
|
-
"content-type": "application/json"
|
|
412
|
-
};
|
|
413
|
-
b.bp("/list-controls");
|
|
414
|
-
const query = (0, import_smithy_client.map)({
|
|
415
|
-
[_nT]: [, input[_NT]],
|
|
416
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
|
|
417
|
-
});
|
|
418
|
-
let body;
|
|
419
|
-
body = JSON.stringify(
|
|
420
|
-
(0, import_smithy_client.take)(input, {
|
|
421
|
-
Filter: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Filter")
|
|
422
|
-
})
|
|
423
|
-
);
|
|
424
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
425
|
-
return b.build();
|
|
426
|
-
}, "se_ListControlsCommand");
|
|
427
|
-
var se_ListDomainsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
428
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
429
|
-
const headers = {};
|
|
430
|
-
b.bp("/domains");
|
|
431
|
-
const query = (0, import_smithy_client.map)({
|
|
432
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
433
|
-
[_nT]: [, input[_NT]]
|
|
434
|
-
});
|
|
435
|
-
let body;
|
|
436
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
437
|
-
return b.build();
|
|
438
|
-
}, "se_ListDomainsCommand");
|
|
439
|
-
var se_ListObjectivesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
440
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
441
|
-
const headers = {
|
|
442
|
-
"content-type": "application/json"
|
|
443
|
-
};
|
|
444
|
-
b.bp("/objectives");
|
|
445
|
-
const query = (0, import_smithy_client.map)({
|
|
446
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
447
|
-
[_nT]: [, input[_NT]]
|
|
448
|
-
});
|
|
449
|
-
let body;
|
|
450
|
-
body = JSON.stringify(
|
|
451
|
-
(0, import_smithy_client.take)(input, {
|
|
452
|
-
ObjectiveFilter: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ObjectiveFilter")
|
|
453
|
-
})
|
|
454
|
-
);
|
|
455
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
456
|
-
return b.build();
|
|
457
|
-
}, "se_ListObjectivesCommand");
|
|
458
|
-
var de_GetControlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
459
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
460
|
-
return de_CommandError(output, context);
|
|
461
|
-
}
|
|
462
|
-
const contents = (0, import_smithy_client.map)({
|
|
463
|
-
$metadata: deserializeMetadata(output)
|
|
464
|
-
});
|
|
465
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
466
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
467
|
-
Aliases: import_smithy_client._json,
|
|
468
|
-
Arn: import_smithy_client.expectString,
|
|
469
|
-
Behavior: import_smithy_client.expectString,
|
|
470
|
-
CreateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreateTime"),
|
|
471
|
-
Description: import_smithy_client.expectString,
|
|
472
|
-
GovernedResources: import_smithy_client._json,
|
|
473
|
-
Implementation: import_smithy_client._json,
|
|
474
|
-
Name: import_smithy_client.expectString,
|
|
475
|
-
Parameters: import_smithy_client._json,
|
|
476
|
-
RegionConfiguration: import_smithy_client._json,
|
|
477
|
-
Severity: import_smithy_client.expectString
|
|
478
|
-
});
|
|
479
|
-
Object.assign(contents, doc);
|
|
480
|
-
return contents;
|
|
481
|
-
}, "de_GetControlCommand");
|
|
482
|
-
var de_ListCommonControlsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
483
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
484
|
-
return de_CommandError(output, context);
|
|
485
|
-
}
|
|
486
|
-
const contents = (0, import_smithy_client.map)({
|
|
487
|
-
$metadata: deserializeMetadata(output)
|
|
488
|
-
});
|
|
489
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
490
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
491
|
-
CommonControls: /* @__PURE__ */ __name((_) => de_CommonControlSummaryList(_, context), "CommonControls"),
|
|
492
|
-
NextToken: import_smithy_client.expectString
|
|
493
|
-
});
|
|
494
|
-
Object.assign(contents, doc);
|
|
495
|
-
return contents;
|
|
496
|
-
}, "de_ListCommonControlsCommand");
|
|
497
|
-
var de_ListControlMappingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
498
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
499
|
-
return de_CommandError(output, context);
|
|
500
|
-
}
|
|
501
|
-
const contents = (0, import_smithy_client.map)({
|
|
502
|
-
$metadata: deserializeMetadata(output)
|
|
503
|
-
});
|
|
504
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
505
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
506
|
-
ControlMappings: import_smithy_client._json,
|
|
507
|
-
NextToken: import_smithy_client.expectString
|
|
508
|
-
});
|
|
509
|
-
Object.assign(contents, doc);
|
|
510
|
-
return contents;
|
|
511
|
-
}, "de_ListControlMappingsCommand");
|
|
512
|
-
var de_ListControlsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
513
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
514
|
-
return de_CommandError(output, context);
|
|
515
|
-
}
|
|
516
|
-
const contents = (0, import_smithy_client.map)({
|
|
517
|
-
$metadata: deserializeMetadata(output)
|
|
518
|
-
});
|
|
519
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
520
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
521
|
-
Controls: /* @__PURE__ */ __name((_) => de_Controls(_, context), "Controls"),
|
|
522
|
-
NextToken: import_smithy_client.expectString
|
|
523
|
-
});
|
|
524
|
-
Object.assign(contents, doc);
|
|
525
|
-
return contents;
|
|
526
|
-
}, "de_ListControlsCommand");
|
|
527
|
-
var de_ListDomainsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
528
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
529
|
-
return de_CommandError(output, context);
|
|
530
|
-
}
|
|
531
|
-
const contents = (0, import_smithy_client.map)({
|
|
532
|
-
$metadata: deserializeMetadata(output)
|
|
533
|
-
});
|
|
534
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
535
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
536
|
-
Domains: /* @__PURE__ */ __name((_) => de_DomainSummaryList(_, context), "Domains"),
|
|
537
|
-
NextToken: import_smithy_client.expectString
|
|
538
|
-
});
|
|
539
|
-
Object.assign(contents, doc);
|
|
540
|
-
return contents;
|
|
541
|
-
}, "de_ListDomainsCommand");
|
|
542
|
-
var de_ListObjectivesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
543
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
544
|
-
return de_CommandError(output, context);
|
|
545
|
-
}
|
|
546
|
-
const contents = (0, import_smithy_client.map)({
|
|
547
|
-
$metadata: deserializeMetadata(output)
|
|
548
|
-
});
|
|
549
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
550
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
551
|
-
NextToken: import_smithy_client.expectString,
|
|
552
|
-
Objectives: /* @__PURE__ */ __name((_) => de_ObjectiveSummaryList(_, context), "Objectives")
|
|
553
|
-
});
|
|
554
|
-
Object.assign(contents, doc);
|
|
555
|
-
return contents;
|
|
556
|
-
}, "de_ListObjectivesCommand");
|
|
557
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
558
|
-
const parsedOutput = {
|
|
559
|
-
...output,
|
|
560
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
561
|
-
};
|
|
562
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
563
|
-
switch (errorCode) {
|
|
564
|
-
case "AccessDeniedException":
|
|
565
|
-
case "com.amazonaws.controlcatalog#AccessDeniedException":
|
|
566
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
567
|
-
case "InternalServerException":
|
|
568
|
-
case "com.amazonaws.controlcatalog#InternalServerException":
|
|
569
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
570
|
-
case "ResourceNotFoundException":
|
|
571
|
-
case "com.amazonaws.controlcatalog#ResourceNotFoundException":
|
|
572
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
573
|
-
case "ThrottlingException":
|
|
574
|
-
case "com.amazonaws.controlcatalog#ThrottlingException":
|
|
575
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
576
|
-
case "ValidationException":
|
|
577
|
-
case "com.amazonaws.controlcatalog#ValidationException":
|
|
578
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
579
|
-
default:
|
|
580
|
-
const parsedBody = parsedOutput.body;
|
|
581
|
-
return throwDefaultError({
|
|
582
|
-
output,
|
|
583
|
-
parsedBody,
|
|
584
|
-
errorCode
|
|
585
|
-
});
|
|
586
|
-
}
|
|
587
|
-
}, "de_CommandError");
|
|
588
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(ControlCatalogServiceException);
|
|
589
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
590
|
-
const contents = (0, import_smithy_client.map)({});
|
|
591
|
-
const data = parsedOutput.body;
|
|
592
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
593
|
-
Message: import_smithy_client.expectString
|
|
594
|
-
});
|
|
595
|
-
Object.assign(contents, doc);
|
|
596
|
-
const exception = new AccessDeniedException({
|
|
597
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
598
|
-
...contents
|
|
599
|
-
});
|
|
600
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
601
|
-
}, "de_AccessDeniedExceptionRes");
|
|
602
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
603
|
-
const contents = (0, import_smithy_client.map)({});
|
|
604
|
-
const data = parsedOutput.body;
|
|
605
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
606
|
-
Message: import_smithy_client.expectString
|
|
607
|
-
});
|
|
608
|
-
Object.assign(contents, doc);
|
|
609
|
-
const exception = new InternalServerException({
|
|
610
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
611
|
-
...contents
|
|
612
|
-
});
|
|
613
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
614
|
-
}, "de_InternalServerExceptionRes");
|
|
615
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
616
|
-
const contents = (0, import_smithy_client.map)({});
|
|
617
|
-
const data = parsedOutput.body;
|
|
618
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
619
|
-
Message: import_smithy_client.expectString
|
|
620
|
-
});
|
|
621
|
-
Object.assign(contents, doc);
|
|
622
|
-
const exception = new ResourceNotFoundException({
|
|
623
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
624
|
-
...contents
|
|
625
|
-
});
|
|
626
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
627
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
628
|
-
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
629
|
-
const contents = (0, import_smithy_client.map)({});
|
|
630
|
-
const data = parsedOutput.body;
|
|
631
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
632
|
-
Message: import_smithy_client.expectString
|
|
633
|
-
});
|
|
634
|
-
Object.assign(contents, doc);
|
|
635
|
-
const exception = new ThrottlingException({
|
|
636
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
637
|
-
...contents
|
|
638
|
-
});
|
|
639
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
640
|
-
}, "de_ThrottlingExceptionRes");
|
|
641
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
642
|
-
const contents = (0, import_smithy_client.map)({});
|
|
643
|
-
const data = parsedOutput.body;
|
|
644
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
645
|
-
Message: import_smithy_client.expectString
|
|
646
|
-
});
|
|
647
|
-
Object.assign(contents, doc);
|
|
648
|
-
const exception = new ValidationException({
|
|
649
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
650
|
-
...contents
|
|
651
|
-
});
|
|
652
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
653
|
-
}, "de_ValidationExceptionRes");
|
|
654
|
-
var de_CommonControlSummary = /* @__PURE__ */ __name((output, context) => {
|
|
655
|
-
return (0, import_smithy_client.take)(output, {
|
|
656
|
-
Arn: import_smithy_client.expectString,
|
|
657
|
-
CreateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreateTime"),
|
|
658
|
-
Description: import_smithy_client.expectString,
|
|
659
|
-
Domain: import_smithy_client._json,
|
|
660
|
-
LastUpdateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdateTime"),
|
|
661
|
-
Name: import_smithy_client.expectString,
|
|
662
|
-
Objective: import_smithy_client._json
|
|
663
|
-
});
|
|
664
|
-
}, "de_CommonControlSummary");
|
|
665
|
-
var de_CommonControlSummaryList = /* @__PURE__ */ __name((output, context) => {
|
|
666
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
667
|
-
return de_CommonControlSummary(entry, context);
|
|
668
|
-
});
|
|
669
|
-
return retVal;
|
|
670
|
-
}, "de_CommonControlSummaryList");
|
|
671
|
-
var de_Controls = /* @__PURE__ */ __name((output, context) => {
|
|
672
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
673
|
-
return de_ControlSummary(entry, context);
|
|
674
|
-
});
|
|
675
|
-
return retVal;
|
|
676
|
-
}, "de_Controls");
|
|
677
|
-
var de_ControlSummary = /* @__PURE__ */ __name((output, context) => {
|
|
678
|
-
return (0, import_smithy_client.take)(output, {
|
|
679
|
-
Aliases: import_smithy_client._json,
|
|
680
|
-
Arn: import_smithy_client.expectString,
|
|
681
|
-
Behavior: import_smithy_client.expectString,
|
|
682
|
-
CreateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreateTime"),
|
|
683
|
-
Description: import_smithy_client.expectString,
|
|
684
|
-
GovernedResources: import_smithy_client._json,
|
|
685
|
-
Implementation: import_smithy_client._json,
|
|
686
|
-
Name: import_smithy_client.expectString,
|
|
687
|
-
Severity: import_smithy_client.expectString
|
|
688
|
-
});
|
|
689
|
-
}, "de_ControlSummary");
|
|
690
|
-
var de_DomainSummary = /* @__PURE__ */ __name((output, context) => {
|
|
691
|
-
return (0, import_smithy_client.take)(output, {
|
|
692
|
-
Arn: import_smithy_client.expectString,
|
|
693
|
-
CreateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreateTime"),
|
|
694
|
-
Description: import_smithy_client.expectString,
|
|
695
|
-
LastUpdateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdateTime"),
|
|
696
|
-
Name: import_smithy_client.expectString
|
|
697
|
-
});
|
|
698
|
-
}, "de_DomainSummary");
|
|
699
|
-
var de_DomainSummaryList = /* @__PURE__ */ __name((output, context) => {
|
|
700
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
701
|
-
return de_DomainSummary(entry, context);
|
|
702
|
-
});
|
|
703
|
-
return retVal;
|
|
704
|
-
}, "de_DomainSummaryList");
|
|
705
|
-
var de_ObjectiveSummary = /* @__PURE__ */ __name((output, context) => {
|
|
706
|
-
return (0, import_smithy_client.take)(output, {
|
|
707
|
-
Arn: import_smithy_client.expectString,
|
|
708
|
-
CreateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreateTime"),
|
|
709
|
-
Description: import_smithy_client.expectString,
|
|
710
|
-
Domain: import_smithy_client._json,
|
|
711
|
-
LastUpdateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdateTime"),
|
|
712
|
-
Name: import_smithy_client.expectString
|
|
713
|
-
});
|
|
714
|
-
}, "de_ObjectiveSummary");
|
|
715
|
-
var de_ObjectiveSummaryList = /* @__PURE__ */ __name((output, context) => {
|
|
716
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
717
|
-
return de_ObjectiveSummary(entry, context);
|
|
718
|
-
});
|
|
719
|
-
return retVal;
|
|
720
|
-
}, "de_ObjectiveSummaryList");
|
|
721
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
722
|
-
httpStatusCode: output.statusCode,
|
|
723
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
724
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
725
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
726
|
-
}), "deserializeMetadata");
|
|
727
|
-
var _MR = "MaxResults";
|
|
728
|
-
var _NT = "NextToken";
|
|
729
|
-
var _mR = "maxResults";
|
|
730
|
-
var _nT = "nextToken";
|
|
731
|
-
|
|
732
|
-
// src/commands/GetControlCommand.ts
|
|
733
|
-
var GetControlCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
734
|
-
return [
|
|
735
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
736
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
737
|
-
];
|
|
738
|
-
}).s("ControlCatalog", "GetControl", {}).n("ControlCatalogClient", "GetControlCommand").f(void 0, void 0).ser(se_GetControlCommand).de(de_GetControlCommand).build() {
|
|
739
|
-
static {
|
|
740
|
-
__name(this, "GetControlCommand");
|
|
741
|
-
}
|
|
189
|
+
const ControlSeverity = {
|
|
190
|
+
CRITICAL: "CRITICAL",
|
|
191
|
+
HIGH: "HIGH",
|
|
192
|
+
LOW: "LOW",
|
|
193
|
+
MEDIUM: "MEDIUM",
|
|
742
194
|
};
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
195
|
+
class ResourceNotFoundException extends ControlCatalogServiceException {
|
|
196
|
+
name = "ResourceNotFoundException";
|
|
197
|
+
$fault = "client";
|
|
198
|
+
Message;
|
|
199
|
+
constructor(opts) {
|
|
200
|
+
super({
|
|
201
|
+
name: "ResourceNotFoundException",
|
|
202
|
+
$fault: "client",
|
|
203
|
+
...opts,
|
|
204
|
+
});
|
|
205
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
206
|
+
this.Message = opts.Message;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
const MappingType = {
|
|
210
|
+
COMMON_CONTROL: "COMMON_CONTROL",
|
|
211
|
+
FRAMEWORK: "FRAMEWORK",
|
|
757
212
|
};
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
213
|
+
exports.Mapping = void 0;
|
|
214
|
+
(function (Mapping) {
|
|
215
|
+
Mapping.visit = (value, visitor) => {
|
|
216
|
+
if (value.Framework !== undefined)
|
|
217
|
+
return visitor.Framework(value.Framework);
|
|
218
|
+
if (value.CommonControl !== undefined)
|
|
219
|
+
return visitor.CommonControl(value.CommonControl);
|
|
220
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
221
|
+
};
|
|
222
|
+
})(exports.Mapping || (exports.Mapping = {}));
|
|
223
|
+
|
|
224
|
+
const se_GetControlCommand = async (input, context) => {
|
|
225
|
+
const b = core.requestBuilder(input, context);
|
|
226
|
+
const headers = {
|
|
227
|
+
"content-type": "application/json",
|
|
228
|
+
};
|
|
229
|
+
b.bp("/get-control");
|
|
230
|
+
let body;
|
|
231
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
232
|
+
ControlArn: [],
|
|
233
|
+
}));
|
|
234
|
+
b.m("POST").h(headers).b(body);
|
|
235
|
+
return b.build();
|
|
772
236
|
};
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
237
|
+
const se_ListCommonControlsCommand = async (input, context) => {
|
|
238
|
+
const b = core.requestBuilder(input, context);
|
|
239
|
+
const headers = {
|
|
240
|
+
"content-type": "application/json",
|
|
241
|
+
};
|
|
242
|
+
b.bp("/common-controls");
|
|
243
|
+
const query = smithyClient.map({
|
|
244
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
245
|
+
[_nT]: [, input[_NT]],
|
|
246
|
+
});
|
|
247
|
+
let body;
|
|
248
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
249
|
+
CommonControlFilter: (_) => smithyClient._json(_),
|
|
250
|
+
}));
|
|
251
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
252
|
+
return b.build();
|
|
787
253
|
};
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
254
|
+
const se_ListControlMappingsCommand = async (input, context) => {
|
|
255
|
+
const b = core.requestBuilder(input, context);
|
|
256
|
+
const headers = {
|
|
257
|
+
"content-type": "application/json",
|
|
258
|
+
};
|
|
259
|
+
b.bp("/list-control-mappings");
|
|
260
|
+
const query = smithyClient.map({
|
|
261
|
+
[_nT]: [, input[_NT]],
|
|
262
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
263
|
+
});
|
|
264
|
+
let body;
|
|
265
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
266
|
+
Filter: (_) => smithyClient._json(_),
|
|
267
|
+
}));
|
|
268
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
269
|
+
return b.build();
|
|
802
270
|
};
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
271
|
+
const se_ListControlsCommand = async (input, context) => {
|
|
272
|
+
const b = core.requestBuilder(input, context);
|
|
273
|
+
const headers = {
|
|
274
|
+
"content-type": "application/json",
|
|
275
|
+
};
|
|
276
|
+
b.bp("/list-controls");
|
|
277
|
+
const query = smithyClient.map({
|
|
278
|
+
[_nT]: [, input[_NT]],
|
|
279
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
280
|
+
});
|
|
281
|
+
let body;
|
|
282
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
283
|
+
Filter: (_) => smithyClient._json(_),
|
|
284
|
+
}));
|
|
285
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
286
|
+
return b.build();
|
|
817
287
|
};
|
|
288
|
+
const se_ListDomainsCommand = async (input, context) => {
|
|
289
|
+
const b = core.requestBuilder(input, context);
|
|
290
|
+
const headers = {};
|
|
291
|
+
b.bp("/domains");
|
|
292
|
+
const query = smithyClient.map({
|
|
293
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
294
|
+
[_nT]: [, input[_NT]],
|
|
295
|
+
});
|
|
296
|
+
let body;
|
|
297
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
298
|
+
return b.build();
|
|
299
|
+
};
|
|
300
|
+
const se_ListObjectivesCommand = async (input, context) => {
|
|
301
|
+
const b = core.requestBuilder(input, context);
|
|
302
|
+
const headers = {
|
|
303
|
+
"content-type": "application/json",
|
|
304
|
+
};
|
|
305
|
+
b.bp("/objectives");
|
|
306
|
+
const query = smithyClient.map({
|
|
307
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
308
|
+
[_nT]: [, input[_NT]],
|
|
309
|
+
});
|
|
310
|
+
let body;
|
|
311
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
312
|
+
ObjectiveFilter: (_) => smithyClient._json(_),
|
|
313
|
+
}));
|
|
314
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
315
|
+
return b.build();
|
|
316
|
+
};
|
|
317
|
+
const de_GetControlCommand = async (output, context) => {
|
|
318
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
319
|
+
return de_CommandError(output, context);
|
|
320
|
+
}
|
|
321
|
+
const contents = smithyClient.map({
|
|
322
|
+
$metadata: deserializeMetadata(output),
|
|
323
|
+
});
|
|
324
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
325
|
+
const doc = smithyClient.take(data, {
|
|
326
|
+
Aliases: smithyClient._json,
|
|
327
|
+
Arn: smithyClient.expectString,
|
|
328
|
+
Behavior: smithyClient.expectString,
|
|
329
|
+
CreateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
330
|
+
Description: smithyClient.expectString,
|
|
331
|
+
GovernedResources: smithyClient._json,
|
|
332
|
+
Implementation: smithyClient._json,
|
|
333
|
+
Name: smithyClient.expectString,
|
|
334
|
+
Parameters: smithyClient._json,
|
|
335
|
+
RegionConfiguration: smithyClient._json,
|
|
336
|
+
Severity: smithyClient.expectString,
|
|
337
|
+
});
|
|
338
|
+
Object.assign(contents, doc);
|
|
339
|
+
return contents;
|
|
340
|
+
};
|
|
341
|
+
const de_ListCommonControlsCommand = async (output, context) => {
|
|
342
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
343
|
+
return de_CommandError(output, context);
|
|
344
|
+
}
|
|
345
|
+
const contents = smithyClient.map({
|
|
346
|
+
$metadata: deserializeMetadata(output),
|
|
347
|
+
});
|
|
348
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
349
|
+
const doc = smithyClient.take(data, {
|
|
350
|
+
CommonControls: (_) => de_CommonControlSummaryList(_),
|
|
351
|
+
NextToken: smithyClient.expectString,
|
|
352
|
+
});
|
|
353
|
+
Object.assign(contents, doc);
|
|
354
|
+
return contents;
|
|
355
|
+
};
|
|
356
|
+
const de_ListControlMappingsCommand = async (output, context) => {
|
|
357
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
358
|
+
return de_CommandError(output, context);
|
|
359
|
+
}
|
|
360
|
+
const contents = smithyClient.map({
|
|
361
|
+
$metadata: deserializeMetadata(output),
|
|
362
|
+
});
|
|
363
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
364
|
+
const doc = smithyClient.take(data, {
|
|
365
|
+
ControlMappings: smithyClient._json,
|
|
366
|
+
NextToken: smithyClient.expectString,
|
|
367
|
+
});
|
|
368
|
+
Object.assign(contents, doc);
|
|
369
|
+
return contents;
|
|
370
|
+
};
|
|
371
|
+
const de_ListControlsCommand = async (output, context) => {
|
|
372
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
373
|
+
return de_CommandError(output, context);
|
|
374
|
+
}
|
|
375
|
+
const contents = smithyClient.map({
|
|
376
|
+
$metadata: deserializeMetadata(output),
|
|
377
|
+
});
|
|
378
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
379
|
+
const doc = smithyClient.take(data, {
|
|
380
|
+
Controls: (_) => de_Controls(_),
|
|
381
|
+
NextToken: smithyClient.expectString,
|
|
382
|
+
});
|
|
383
|
+
Object.assign(contents, doc);
|
|
384
|
+
return contents;
|
|
385
|
+
};
|
|
386
|
+
const de_ListDomainsCommand = async (output, context) => {
|
|
387
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
388
|
+
return de_CommandError(output, context);
|
|
389
|
+
}
|
|
390
|
+
const contents = smithyClient.map({
|
|
391
|
+
$metadata: deserializeMetadata(output),
|
|
392
|
+
});
|
|
393
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
394
|
+
const doc = smithyClient.take(data, {
|
|
395
|
+
Domains: (_) => de_DomainSummaryList(_),
|
|
396
|
+
NextToken: smithyClient.expectString,
|
|
397
|
+
});
|
|
398
|
+
Object.assign(contents, doc);
|
|
399
|
+
return contents;
|
|
400
|
+
};
|
|
401
|
+
const de_ListObjectivesCommand = async (output, context) => {
|
|
402
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
403
|
+
return de_CommandError(output, context);
|
|
404
|
+
}
|
|
405
|
+
const contents = smithyClient.map({
|
|
406
|
+
$metadata: deserializeMetadata(output),
|
|
407
|
+
});
|
|
408
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
409
|
+
const doc = smithyClient.take(data, {
|
|
410
|
+
NextToken: smithyClient.expectString,
|
|
411
|
+
Objectives: (_) => de_ObjectiveSummaryList(_),
|
|
412
|
+
});
|
|
413
|
+
Object.assign(contents, doc);
|
|
414
|
+
return contents;
|
|
415
|
+
};
|
|
416
|
+
const de_CommandError = async (output, context) => {
|
|
417
|
+
const parsedOutput = {
|
|
418
|
+
...output,
|
|
419
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
420
|
+
};
|
|
421
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
422
|
+
switch (errorCode) {
|
|
423
|
+
case "AccessDeniedException":
|
|
424
|
+
case "com.amazonaws.controlcatalog#AccessDeniedException":
|
|
425
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
426
|
+
case "InternalServerException":
|
|
427
|
+
case "com.amazonaws.controlcatalog#InternalServerException":
|
|
428
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
429
|
+
case "ResourceNotFoundException":
|
|
430
|
+
case "com.amazonaws.controlcatalog#ResourceNotFoundException":
|
|
431
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
432
|
+
case "ThrottlingException":
|
|
433
|
+
case "com.amazonaws.controlcatalog#ThrottlingException":
|
|
434
|
+
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
435
|
+
case "ValidationException":
|
|
436
|
+
case "com.amazonaws.controlcatalog#ValidationException":
|
|
437
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
438
|
+
default:
|
|
439
|
+
const parsedBody = parsedOutput.body;
|
|
440
|
+
return throwDefaultError({
|
|
441
|
+
output,
|
|
442
|
+
parsedBody,
|
|
443
|
+
errorCode,
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
};
|
|
447
|
+
const throwDefaultError = smithyClient.withBaseException(ControlCatalogServiceException);
|
|
448
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
449
|
+
const contents = smithyClient.map({});
|
|
450
|
+
const data = parsedOutput.body;
|
|
451
|
+
const doc = smithyClient.take(data, {
|
|
452
|
+
Message: smithyClient.expectString,
|
|
453
|
+
});
|
|
454
|
+
Object.assign(contents, doc);
|
|
455
|
+
const exception = new AccessDeniedException({
|
|
456
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
457
|
+
...contents,
|
|
458
|
+
});
|
|
459
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
460
|
+
};
|
|
461
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
462
|
+
const contents = smithyClient.map({});
|
|
463
|
+
const data = parsedOutput.body;
|
|
464
|
+
const doc = smithyClient.take(data, {
|
|
465
|
+
Message: smithyClient.expectString,
|
|
466
|
+
});
|
|
467
|
+
Object.assign(contents, doc);
|
|
468
|
+
const exception = new InternalServerException({
|
|
469
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
470
|
+
...contents,
|
|
471
|
+
});
|
|
472
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
473
|
+
};
|
|
474
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
475
|
+
const contents = smithyClient.map({});
|
|
476
|
+
const data = parsedOutput.body;
|
|
477
|
+
const doc = smithyClient.take(data, {
|
|
478
|
+
Message: smithyClient.expectString,
|
|
479
|
+
});
|
|
480
|
+
Object.assign(contents, doc);
|
|
481
|
+
const exception = new ResourceNotFoundException({
|
|
482
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
483
|
+
...contents,
|
|
484
|
+
});
|
|
485
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
486
|
+
};
|
|
487
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
488
|
+
const contents = smithyClient.map({});
|
|
489
|
+
const data = parsedOutput.body;
|
|
490
|
+
const doc = smithyClient.take(data, {
|
|
491
|
+
Message: smithyClient.expectString,
|
|
492
|
+
});
|
|
493
|
+
Object.assign(contents, doc);
|
|
494
|
+
const exception = new ThrottlingException({
|
|
495
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
496
|
+
...contents,
|
|
497
|
+
});
|
|
498
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
499
|
+
};
|
|
500
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
501
|
+
const contents = smithyClient.map({});
|
|
502
|
+
const data = parsedOutput.body;
|
|
503
|
+
const doc = smithyClient.take(data, {
|
|
504
|
+
Message: smithyClient.expectString,
|
|
505
|
+
});
|
|
506
|
+
Object.assign(contents, doc);
|
|
507
|
+
const exception = new ValidationException({
|
|
508
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
509
|
+
...contents,
|
|
510
|
+
});
|
|
511
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
512
|
+
};
|
|
513
|
+
const de_CommonControlSummary = (output, context) => {
|
|
514
|
+
return smithyClient.take(output, {
|
|
515
|
+
Arn: smithyClient.expectString,
|
|
516
|
+
CreateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
517
|
+
Description: smithyClient.expectString,
|
|
518
|
+
Domain: smithyClient._json,
|
|
519
|
+
LastUpdateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
520
|
+
Name: smithyClient.expectString,
|
|
521
|
+
Objective: smithyClient._json,
|
|
522
|
+
});
|
|
523
|
+
};
|
|
524
|
+
const de_CommonControlSummaryList = (output, context) => {
|
|
525
|
+
const retVal = (output || [])
|
|
526
|
+
.filter((e) => e != null)
|
|
527
|
+
.map((entry) => {
|
|
528
|
+
return de_CommonControlSummary(entry);
|
|
529
|
+
});
|
|
530
|
+
return retVal;
|
|
531
|
+
};
|
|
532
|
+
const de_Controls = (output, context) => {
|
|
533
|
+
const retVal = (output || [])
|
|
534
|
+
.filter((e) => e != null)
|
|
535
|
+
.map((entry) => {
|
|
536
|
+
return de_ControlSummary(entry);
|
|
537
|
+
});
|
|
538
|
+
return retVal;
|
|
539
|
+
};
|
|
540
|
+
const de_ControlSummary = (output, context) => {
|
|
541
|
+
return smithyClient.take(output, {
|
|
542
|
+
Aliases: smithyClient._json,
|
|
543
|
+
Arn: smithyClient.expectString,
|
|
544
|
+
Behavior: smithyClient.expectString,
|
|
545
|
+
CreateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
546
|
+
Description: smithyClient.expectString,
|
|
547
|
+
GovernedResources: smithyClient._json,
|
|
548
|
+
Implementation: smithyClient._json,
|
|
549
|
+
Name: smithyClient.expectString,
|
|
550
|
+
Severity: smithyClient.expectString,
|
|
551
|
+
});
|
|
552
|
+
};
|
|
553
|
+
const de_DomainSummary = (output, context) => {
|
|
554
|
+
return smithyClient.take(output, {
|
|
555
|
+
Arn: smithyClient.expectString,
|
|
556
|
+
CreateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
557
|
+
Description: smithyClient.expectString,
|
|
558
|
+
LastUpdateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
559
|
+
Name: smithyClient.expectString,
|
|
560
|
+
});
|
|
561
|
+
};
|
|
562
|
+
const de_DomainSummaryList = (output, context) => {
|
|
563
|
+
const retVal = (output || [])
|
|
564
|
+
.filter((e) => e != null)
|
|
565
|
+
.map((entry) => {
|
|
566
|
+
return de_DomainSummary(entry);
|
|
567
|
+
});
|
|
568
|
+
return retVal;
|
|
569
|
+
};
|
|
570
|
+
const de_ObjectiveSummary = (output, context) => {
|
|
571
|
+
return smithyClient.take(output, {
|
|
572
|
+
Arn: smithyClient.expectString,
|
|
573
|
+
CreateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
574
|
+
Description: smithyClient.expectString,
|
|
575
|
+
Domain: smithyClient._json,
|
|
576
|
+
LastUpdateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
577
|
+
Name: smithyClient.expectString,
|
|
578
|
+
});
|
|
579
|
+
};
|
|
580
|
+
const de_ObjectiveSummaryList = (output, context) => {
|
|
581
|
+
const retVal = (output || [])
|
|
582
|
+
.filter((e) => e != null)
|
|
583
|
+
.map((entry) => {
|
|
584
|
+
return de_ObjectiveSummary(entry);
|
|
585
|
+
});
|
|
586
|
+
return retVal;
|
|
587
|
+
};
|
|
588
|
+
const deserializeMetadata = (output) => ({
|
|
589
|
+
httpStatusCode: output.statusCode,
|
|
590
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
591
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
592
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
593
|
+
});
|
|
594
|
+
const _MR = "MaxResults";
|
|
595
|
+
const _NT = "NextToken";
|
|
596
|
+
const _mR = "maxResults";
|
|
597
|
+
const _nT = "nextToken";
|
|
598
|
+
|
|
599
|
+
class GetControlCommand extends smithyClient.Command
|
|
600
|
+
.classBuilder()
|
|
601
|
+
.ep(commonParams)
|
|
602
|
+
.m(function (Command, cs, config, o) {
|
|
603
|
+
return [
|
|
604
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
605
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
606
|
+
];
|
|
607
|
+
})
|
|
608
|
+
.s("ControlCatalog", "GetControl", {})
|
|
609
|
+
.n("ControlCatalogClient", "GetControlCommand")
|
|
610
|
+
.f(void 0, void 0)
|
|
611
|
+
.ser(se_GetControlCommand)
|
|
612
|
+
.de(de_GetControlCommand)
|
|
613
|
+
.build() {
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
class ListCommonControlsCommand extends smithyClient.Command
|
|
617
|
+
.classBuilder()
|
|
618
|
+
.ep(commonParams)
|
|
619
|
+
.m(function (Command, cs, config, o) {
|
|
620
|
+
return [
|
|
621
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
622
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
623
|
+
];
|
|
624
|
+
})
|
|
625
|
+
.s("ControlCatalog", "ListCommonControls", {})
|
|
626
|
+
.n("ControlCatalogClient", "ListCommonControlsCommand")
|
|
627
|
+
.f(void 0, void 0)
|
|
628
|
+
.ser(se_ListCommonControlsCommand)
|
|
629
|
+
.de(de_ListCommonControlsCommand)
|
|
630
|
+
.build() {
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
class ListControlMappingsCommand extends smithyClient.Command
|
|
634
|
+
.classBuilder()
|
|
635
|
+
.ep(commonParams)
|
|
636
|
+
.m(function (Command, cs, config, o) {
|
|
637
|
+
return [
|
|
638
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
639
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
640
|
+
];
|
|
641
|
+
})
|
|
642
|
+
.s("ControlCatalog", "ListControlMappings", {})
|
|
643
|
+
.n("ControlCatalogClient", "ListControlMappingsCommand")
|
|
644
|
+
.f(void 0, void 0)
|
|
645
|
+
.ser(se_ListControlMappingsCommand)
|
|
646
|
+
.de(de_ListControlMappingsCommand)
|
|
647
|
+
.build() {
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
class ListControlsCommand extends smithyClient.Command
|
|
651
|
+
.classBuilder()
|
|
652
|
+
.ep(commonParams)
|
|
653
|
+
.m(function (Command, cs, config, o) {
|
|
654
|
+
return [
|
|
655
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
656
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
657
|
+
];
|
|
658
|
+
})
|
|
659
|
+
.s("ControlCatalog", "ListControls", {})
|
|
660
|
+
.n("ControlCatalogClient", "ListControlsCommand")
|
|
661
|
+
.f(void 0, void 0)
|
|
662
|
+
.ser(se_ListControlsCommand)
|
|
663
|
+
.de(de_ListControlsCommand)
|
|
664
|
+
.build() {
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
class ListDomainsCommand extends smithyClient.Command
|
|
668
|
+
.classBuilder()
|
|
669
|
+
.ep(commonParams)
|
|
670
|
+
.m(function (Command, cs, config, o) {
|
|
671
|
+
return [
|
|
672
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
673
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
674
|
+
];
|
|
675
|
+
})
|
|
676
|
+
.s("ControlCatalog", "ListDomains", {})
|
|
677
|
+
.n("ControlCatalogClient", "ListDomainsCommand")
|
|
678
|
+
.f(void 0, void 0)
|
|
679
|
+
.ser(se_ListDomainsCommand)
|
|
680
|
+
.de(de_ListDomainsCommand)
|
|
681
|
+
.build() {
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
class ListObjectivesCommand extends smithyClient.Command
|
|
685
|
+
.classBuilder()
|
|
686
|
+
.ep(commonParams)
|
|
687
|
+
.m(function (Command, cs, config, o) {
|
|
688
|
+
return [
|
|
689
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
690
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
691
|
+
];
|
|
692
|
+
})
|
|
693
|
+
.s("ControlCatalog", "ListObjectives", {})
|
|
694
|
+
.n("ControlCatalogClient", "ListObjectivesCommand")
|
|
695
|
+
.f(void 0, void 0)
|
|
696
|
+
.ser(se_ListObjectivesCommand)
|
|
697
|
+
.de(de_ListObjectivesCommand)
|
|
698
|
+
.build() {
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
const commands = {
|
|
702
|
+
GetControlCommand,
|
|
703
|
+
ListCommonControlsCommand,
|
|
704
|
+
ListControlMappingsCommand,
|
|
705
|
+
ListControlsCommand,
|
|
706
|
+
ListDomainsCommand,
|
|
707
|
+
ListObjectivesCommand,
|
|
708
|
+
};
|
|
709
|
+
class ControlCatalog extends ControlCatalogClient {
|
|
710
|
+
}
|
|
711
|
+
smithyClient.createAggregatedClient(commands, ControlCatalog);
|
|
818
712
|
|
|
819
|
-
|
|
820
|
-
var commands = {
|
|
821
|
-
GetControlCommand,
|
|
822
|
-
ListCommonControlsCommand,
|
|
823
|
-
ListControlMappingsCommand,
|
|
824
|
-
ListControlsCommand,
|
|
825
|
-
ListDomainsCommand,
|
|
826
|
-
ListObjectivesCommand
|
|
827
|
-
};
|
|
828
|
-
var ControlCatalog = class extends ControlCatalogClient {
|
|
829
|
-
static {
|
|
830
|
-
__name(this, "ControlCatalog");
|
|
831
|
-
}
|
|
832
|
-
};
|
|
833
|
-
(0, import_smithy_client.createAggregatedClient)(commands, ControlCatalog);
|
|
834
|
-
|
|
835
|
-
// src/pagination/ListCommonControlsPaginator.ts
|
|
836
|
-
|
|
837
|
-
var paginateListCommonControls = (0, import_core.createPaginator)(ControlCatalogClient, ListCommonControlsCommand, "NextToken", "NextToken", "MaxResults");
|
|
838
|
-
|
|
839
|
-
// src/pagination/ListControlMappingsPaginator.ts
|
|
840
|
-
|
|
841
|
-
var paginateListControlMappings = (0, import_core.createPaginator)(ControlCatalogClient, ListControlMappingsCommand, "NextToken", "NextToken", "MaxResults");
|
|
842
|
-
|
|
843
|
-
// src/pagination/ListControlsPaginator.ts
|
|
844
|
-
|
|
845
|
-
var paginateListControls = (0, import_core.createPaginator)(ControlCatalogClient, ListControlsCommand, "NextToken", "NextToken", "MaxResults");
|
|
713
|
+
const paginateListCommonControls = core.createPaginator(ControlCatalogClient, ListCommonControlsCommand, "NextToken", "NextToken", "MaxResults");
|
|
846
714
|
|
|
847
|
-
|
|
715
|
+
const paginateListControlMappings = core.createPaginator(ControlCatalogClient, ListControlMappingsCommand, "NextToken", "NextToken", "MaxResults");
|
|
848
716
|
|
|
849
|
-
|
|
717
|
+
const paginateListControls = core.createPaginator(ControlCatalogClient, ListControlsCommand, "NextToken", "NextToken", "MaxResults");
|
|
850
718
|
|
|
851
|
-
|
|
719
|
+
const paginateListDomains = core.createPaginator(ControlCatalogClient, ListDomainsCommand, "NextToken", "NextToken", "MaxResults");
|
|
852
720
|
|
|
853
|
-
|
|
854
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
721
|
+
const paginateListObjectives = core.createPaginator(ControlCatalogClient, ListObjectivesCommand, "NextToken", "NextToken", "MaxResults");
|
|
855
722
|
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
ControlCatalogClient,
|
|
860
|
-
ControlCatalog,
|
|
861
|
-
$Command,
|
|
862
|
-
GetControlCommand,
|
|
863
|
-
ListCommonControlsCommand,
|
|
864
|
-
ListControlMappingsCommand,
|
|
865
|
-
ListControlsCommand,
|
|
866
|
-
ListDomainsCommand,
|
|
867
|
-
ListObjectivesCommand,
|
|
868
|
-
paginateListCommonControls,
|
|
869
|
-
paginateListControlMappings,
|
|
870
|
-
paginateListControls,
|
|
871
|
-
paginateListDomains,
|
|
872
|
-
paginateListObjectives,
|
|
873
|
-
AccessDeniedException,
|
|
874
|
-
InternalServerException,
|
|
875
|
-
ThrottlingException,
|
|
876
|
-
ValidationException,
|
|
877
|
-
ControlBehavior,
|
|
878
|
-
ControlScope,
|
|
879
|
-
ControlSeverity,
|
|
880
|
-
ResourceNotFoundException,
|
|
881
|
-
MappingType,
|
|
882
|
-
Mapping
|
|
723
|
+
Object.defineProperty(exports, "$Command", {
|
|
724
|
+
enumerable: true,
|
|
725
|
+
get: function () { return smithyClient.Command; }
|
|
883
726
|
});
|
|
884
|
-
|
|
727
|
+
Object.defineProperty(exports, "__Client", {
|
|
728
|
+
enumerable: true,
|
|
729
|
+
get: function () { return smithyClient.Client; }
|
|
730
|
+
});
|
|
731
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
732
|
+
exports.ControlBehavior = ControlBehavior;
|
|
733
|
+
exports.ControlCatalog = ControlCatalog;
|
|
734
|
+
exports.ControlCatalogClient = ControlCatalogClient;
|
|
735
|
+
exports.ControlCatalogServiceException = ControlCatalogServiceException;
|
|
736
|
+
exports.ControlScope = ControlScope;
|
|
737
|
+
exports.ControlSeverity = ControlSeverity;
|
|
738
|
+
exports.GetControlCommand = GetControlCommand;
|
|
739
|
+
exports.InternalServerException = InternalServerException;
|
|
740
|
+
exports.ListCommonControlsCommand = ListCommonControlsCommand;
|
|
741
|
+
exports.ListControlMappingsCommand = ListControlMappingsCommand;
|
|
742
|
+
exports.ListControlsCommand = ListControlsCommand;
|
|
743
|
+
exports.ListDomainsCommand = ListDomainsCommand;
|
|
744
|
+
exports.ListObjectivesCommand = ListObjectivesCommand;
|
|
745
|
+
exports.MappingType = MappingType;
|
|
746
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
747
|
+
exports.ThrottlingException = ThrottlingException;
|
|
748
|
+
exports.ValidationException = ValidationException;
|
|
749
|
+
exports.paginateListCommonControls = paginateListCommonControls;
|
|
750
|
+
exports.paginateListControlMappings = paginateListControlMappings;
|
|
751
|
+
exports.paginateListControls = paginateListControls;
|
|
752
|
+
exports.paginateListDomains = paginateListDomains;
|
|
753
|
+
exports.paginateListObjectives = paginateListObjectives;
|