@aws-sdk/client-fis 3.899.0 → 3.906.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 +1588 -1707
- package/package.json +38 -38
package/dist-cjs/index.js
CHANGED
|
@@ -1,1753 +1,1634 @@
|
|
|
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
|
-
var
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
ExperimentReportStatus: () => ExperimentReportStatus,
|
|
34
|
-
ExperimentStatus: () => ExperimentStatus,
|
|
35
|
-
Fis: () => Fis,
|
|
36
|
-
FisClient: () => FisClient,
|
|
37
|
-
FisServiceException: () => FisServiceException,
|
|
38
|
-
GetActionCommand: () => GetActionCommand,
|
|
39
|
-
GetExperimentCommand: () => GetExperimentCommand,
|
|
40
|
-
GetExperimentTargetAccountConfigurationCommand: () => GetExperimentTargetAccountConfigurationCommand,
|
|
41
|
-
GetExperimentTemplateCommand: () => GetExperimentTemplateCommand,
|
|
42
|
-
GetSafetyLeverCommand: () => GetSafetyLeverCommand,
|
|
43
|
-
GetTargetAccountConfigurationCommand: () => GetTargetAccountConfigurationCommand,
|
|
44
|
-
GetTargetResourceTypeCommand: () => GetTargetResourceTypeCommand,
|
|
45
|
-
ListActionsCommand: () => ListActionsCommand,
|
|
46
|
-
ListExperimentResolvedTargetsCommand: () => ListExperimentResolvedTargetsCommand,
|
|
47
|
-
ListExperimentTargetAccountConfigurationsCommand: () => ListExperimentTargetAccountConfigurationsCommand,
|
|
48
|
-
ListExperimentTemplatesCommand: () => ListExperimentTemplatesCommand,
|
|
49
|
-
ListExperimentsCommand: () => ListExperimentsCommand,
|
|
50
|
-
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
51
|
-
ListTargetAccountConfigurationsCommand: () => ListTargetAccountConfigurationsCommand,
|
|
52
|
-
ListTargetResourceTypesCommand: () => ListTargetResourceTypesCommand,
|
|
53
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
54
|
-
SafetyLeverStatus: () => SafetyLeverStatus,
|
|
55
|
-
SafetyLeverStatusInput: () => SafetyLeverStatusInput,
|
|
56
|
-
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
57
|
-
StartExperimentCommand: () => StartExperimentCommand,
|
|
58
|
-
StopExperimentCommand: () => StopExperimentCommand,
|
|
59
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
60
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
61
|
-
UpdateExperimentTemplateCommand: () => UpdateExperimentTemplateCommand,
|
|
62
|
-
UpdateSafetyLeverStateCommand: () => UpdateSafetyLeverStateCommand,
|
|
63
|
-
UpdateTargetAccountConfigurationCommand: () => UpdateTargetAccountConfigurationCommand,
|
|
64
|
-
ValidationException: () => ValidationException,
|
|
65
|
-
__Client: () => import_smithy_client.Client,
|
|
66
|
-
paginateListActions: () => paginateListActions,
|
|
67
|
-
paginateListExperimentResolvedTargets: () => paginateListExperimentResolvedTargets,
|
|
68
|
-
paginateListExperimentTemplates: () => paginateListExperimentTemplates,
|
|
69
|
-
paginateListExperiments: () => paginateListExperiments,
|
|
70
|
-
paginateListTargetAccountConfigurations: () => paginateListTargetAccountConfigurations,
|
|
71
|
-
paginateListTargetResourceTypes: () => paginateListTargetResourceTypes
|
|
72
|
-
});
|
|
73
|
-
module.exports = __toCommonJS(index_exports);
|
|
74
|
-
|
|
75
|
-
// src/FisClient.ts
|
|
76
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
77
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
78
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
79
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
80
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
81
|
-
var import_core = require("@smithy/core");
|
|
82
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
83
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
84
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
85
|
-
|
|
86
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
87
|
-
|
|
88
|
-
// src/endpoint/EndpointParameters.ts
|
|
89
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
90
|
-
return Object.assign(options, {
|
|
91
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
92
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
93
|
-
defaultSigningName: "fis"
|
|
94
|
-
});
|
|
95
|
-
}, "resolveClientEndpointParameters");
|
|
96
|
-
var commonParams = {
|
|
97
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
98
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
99
|
-
Region: { type: "builtInParams", name: "region" },
|
|
100
|
-
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
|
+
var uuid = require('@smithy/uuid');
|
|
20
|
+
|
|
21
|
+
const resolveClientEndpointParameters = (options) => {
|
|
22
|
+
return Object.assign(options, {
|
|
23
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
24
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
25
|
+
defaultSigningName: "fis",
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
const commonParams = {
|
|
29
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
30
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
31
|
+
Region: { type: "builtInParams", name: "region" },
|
|
32
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
101
33
|
};
|
|
102
34
|
|
|
103
|
-
|
|
104
|
-
|
|
35
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
36
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
37
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
38
|
+
let _credentials = runtimeConfig.credentials;
|
|
39
|
+
return {
|
|
40
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
41
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
42
|
+
if (index === -1) {
|
|
43
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
httpAuthSchemes() {
|
|
50
|
+
return _httpAuthSchemes;
|
|
51
|
+
},
|
|
52
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
53
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
54
|
+
},
|
|
55
|
+
httpAuthSchemeProvider() {
|
|
56
|
+
return _httpAuthSchemeProvider;
|
|
57
|
+
},
|
|
58
|
+
setCredentials(credentials) {
|
|
59
|
+
_credentials = credentials;
|
|
60
|
+
},
|
|
61
|
+
credentials() {
|
|
62
|
+
return _credentials;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
67
|
+
return {
|
|
68
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
69
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
70
|
+
credentials: config.credentials(),
|
|
71
|
+
};
|
|
72
|
+
};
|
|
105
73
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
74
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
75
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
76
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
77
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
78
|
+
};
|
|
110
79
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
80
|
+
class FisClient extends smithyClient.Client {
|
|
81
|
+
config;
|
|
82
|
+
constructor(...[configuration]) {
|
|
83
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
84
|
+
super(_config_0);
|
|
85
|
+
this.initConfig = _config_0;
|
|
86
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
87
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
88
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
89
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
90
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
91
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
92
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
93
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
94
|
+
this.config = _config_8;
|
|
95
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
102
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultFisHttpAuthSchemeParametersProvider,
|
|
103
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
104
|
+
"aws.auth#sigv4": config.credentials,
|
|
105
|
+
}),
|
|
106
|
+
}));
|
|
107
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
108
|
+
}
|
|
109
|
+
destroy() {
|
|
110
|
+
super.destroy();
|
|
139
111
|
}
|
|
140
|
-
|
|
141
|
-
}, "getHttpAuthExtensionConfiguration");
|
|
142
|
-
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
143
|
-
return {
|
|
144
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
145
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
146
|
-
credentials: config.credentials()
|
|
147
|
-
};
|
|
148
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
112
|
+
}
|
|
149
113
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
157
|
-
);
|
|
158
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
159
|
-
return Object.assign(
|
|
160
|
-
runtimeConfig,
|
|
161
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
162
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
163
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
164
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
165
|
-
);
|
|
166
|
-
}, "resolveRuntimeExtensions");
|
|
114
|
+
class FisServiceException extends smithyClient.ServiceException {
|
|
115
|
+
constructor(options) {
|
|
116
|
+
super(options);
|
|
117
|
+
Object.setPrototypeOf(this, FisServiceException.prototype);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
167
120
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
__name(this, "FisClient");
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* The resolved configuration of FisClient class. This is resolved and normalized from the {@link FisClientConfig | constructor configuration interface}.
|
|
175
|
-
*/
|
|
176
|
-
config;
|
|
177
|
-
constructor(...[configuration]) {
|
|
178
|
-
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
179
|
-
super(_config_0);
|
|
180
|
-
this.initConfig = _config_0;
|
|
181
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
182
|
-
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
183
|
-
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
184
|
-
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
|
|
185
|
-
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
186
|
-
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
187
|
-
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
188
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
189
|
-
this.config = _config_8;
|
|
190
|
-
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
191
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
192
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
193
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
194
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
195
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
196
|
-
this.middlewareStack.use(
|
|
197
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
198
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultFisHttpAuthSchemeParametersProvider,
|
|
199
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
200
|
-
"aws.auth#sigv4": config.credentials
|
|
201
|
-
}), "identityProviderConfigProvider")
|
|
202
|
-
})
|
|
203
|
-
);
|
|
204
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
208
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
209
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
210
|
-
*/
|
|
211
|
-
destroy() {
|
|
212
|
-
super.destroy();
|
|
213
|
-
}
|
|
121
|
+
const AccountTargeting = {
|
|
122
|
+
MULTI_ACCOUNT: "multi-account",
|
|
123
|
+
SINGLE_ACCOUNT: "single-account",
|
|
214
124
|
};
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
// src/commands/CreateExperimentTemplateCommand.ts
|
|
220
|
-
|
|
221
|
-
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
// src/protocols/Aws_restJson1.ts
|
|
225
|
-
var import_core2 = require("@aws-sdk/core");
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
var import_uuid = require("@smithy/uuid");
|
|
229
|
-
|
|
230
|
-
// src/models/FisServiceException.ts
|
|
231
|
-
|
|
232
|
-
var FisServiceException = class _FisServiceException extends import_smithy_client.ServiceException {
|
|
233
|
-
static {
|
|
234
|
-
__name(this, "FisServiceException");
|
|
235
|
-
}
|
|
236
|
-
/**
|
|
237
|
-
* @internal
|
|
238
|
-
*/
|
|
239
|
-
constructor(options) {
|
|
240
|
-
super(options);
|
|
241
|
-
Object.setPrototypeOf(this, _FisServiceException.prototype);
|
|
242
|
-
}
|
|
125
|
+
const ActionsMode = {
|
|
126
|
+
RUN_ALL: "run-all",
|
|
127
|
+
SKIP_ALL: "skip-all",
|
|
243
128
|
};
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
$fault = "client";
|
|
260
|
-
/**
|
|
261
|
-
* @internal
|
|
262
|
-
*/
|
|
263
|
-
constructor(opts) {
|
|
264
|
-
super({
|
|
265
|
-
name: "ConflictException",
|
|
266
|
-
$fault: "client",
|
|
267
|
-
...opts
|
|
268
|
-
});
|
|
269
|
-
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
270
|
-
}
|
|
271
|
-
};
|
|
272
|
-
var EmptyTargetResolutionMode = {
|
|
273
|
-
FAIL: "fail",
|
|
274
|
-
SKIP: "skip"
|
|
275
|
-
};
|
|
276
|
-
var ResourceNotFoundException = class _ResourceNotFoundException extends FisServiceException {
|
|
277
|
-
static {
|
|
278
|
-
__name(this, "ResourceNotFoundException");
|
|
279
|
-
}
|
|
280
|
-
name = "ResourceNotFoundException";
|
|
281
|
-
$fault = "client";
|
|
282
|
-
/**
|
|
283
|
-
* @internal
|
|
284
|
-
*/
|
|
285
|
-
constructor(opts) {
|
|
286
|
-
super({
|
|
287
|
-
name: "ResourceNotFoundException",
|
|
288
|
-
$fault: "client",
|
|
289
|
-
...opts
|
|
290
|
-
});
|
|
291
|
-
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
292
|
-
}
|
|
293
|
-
};
|
|
294
|
-
var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends FisServiceException {
|
|
295
|
-
static {
|
|
296
|
-
__name(this, "ServiceQuotaExceededException");
|
|
297
|
-
}
|
|
298
|
-
name = "ServiceQuotaExceededException";
|
|
299
|
-
$fault = "client";
|
|
300
|
-
/**
|
|
301
|
-
* @internal
|
|
302
|
-
*/
|
|
303
|
-
constructor(opts) {
|
|
304
|
-
super({
|
|
305
|
-
name: "ServiceQuotaExceededException",
|
|
306
|
-
$fault: "client",
|
|
307
|
-
...opts
|
|
308
|
-
});
|
|
309
|
-
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
310
|
-
}
|
|
311
|
-
};
|
|
312
|
-
var ValidationException = class _ValidationException extends FisServiceException {
|
|
313
|
-
static {
|
|
314
|
-
__name(this, "ValidationException");
|
|
315
|
-
}
|
|
316
|
-
name = "ValidationException";
|
|
317
|
-
$fault = "client";
|
|
318
|
-
/**
|
|
319
|
-
* @internal
|
|
320
|
-
*/
|
|
321
|
-
constructor(opts) {
|
|
322
|
-
super({
|
|
323
|
-
name: "ValidationException",
|
|
324
|
-
$fault: "client",
|
|
325
|
-
...opts
|
|
326
|
-
});
|
|
327
|
-
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
328
|
-
}
|
|
329
|
-
};
|
|
330
|
-
var ExperimentActionStatus = {
|
|
331
|
-
cancelled: "cancelled",
|
|
332
|
-
completed: "completed",
|
|
333
|
-
failed: "failed",
|
|
334
|
-
initiating: "initiating",
|
|
335
|
-
pending: "pending",
|
|
336
|
-
running: "running",
|
|
337
|
-
skipped: "skipped",
|
|
338
|
-
stopped: "stopped",
|
|
339
|
-
stopping: "stopping"
|
|
340
|
-
};
|
|
341
|
-
var ExperimentReportStatus = {
|
|
342
|
-
cancelled: "cancelled",
|
|
343
|
-
completed: "completed",
|
|
344
|
-
failed: "failed",
|
|
345
|
-
pending: "pending",
|
|
346
|
-
running: "running"
|
|
347
|
-
};
|
|
348
|
-
var ExperimentStatus = {
|
|
349
|
-
cancelled: "cancelled",
|
|
350
|
-
completed: "completed",
|
|
351
|
-
failed: "failed",
|
|
352
|
-
initiating: "initiating",
|
|
353
|
-
pending: "pending",
|
|
354
|
-
running: "running",
|
|
355
|
-
stopped: "stopped",
|
|
356
|
-
stopping: "stopping"
|
|
357
|
-
};
|
|
358
|
-
var SafetyLeverStatus = {
|
|
359
|
-
DISENGAGED: "disengaged",
|
|
360
|
-
ENGAGED: "engaged",
|
|
361
|
-
ENGAGING: "engaging"
|
|
362
|
-
};
|
|
363
|
-
var SafetyLeverStatusInput = {
|
|
364
|
-
DISENGAGED: "disengaged",
|
|
365
|
-
ENGAGED: "engaged"
|
|
129
|
+
class ConflictException extends FisServiceException {
|
|
130
|
+
name = "ConflictException";
|
|
131
|
+
$fault = "client";
|
|
132
|
+
constructor(opts) {
|
|
133
|
+
super({
|
|
134
|
+
name: "ConflictException",
|
|
135
|
+
$fault: "client",
|
|
136
|
+
...opts,
|
|
137
|
+
});
|
|
138
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
const EmptyTargetResolutionMode = {
|
|
142
|
+
FAIL: "fail",
|
|
143
|
+
SKIP: "skip",
|
|
366
144
|
};
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
(0, import_smithy_client.take)(input, {
|
|
378
|
-
actions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "actions"),
|
|
379
|
-
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
380
|
-
description: [],
|
|
381
|
-
experimentOptions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "experimentOptions"),
|
|
382
|
-
experimentReportConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "experimentReportConfiguration"),
|
|
383
|
-
logConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "logConfiguration"),
|
|
384
|
-
roleArn: [],
|
|
385
|
-
stopConditions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "stopConditions"),
|
|
386
|
-
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags"),
|
|
387
|
-
targets: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "targets")
|
|
388
|
-
})
|
|
389
|
-
);
|
|
390
|
-
b.m("POST").h(headers).b(body);
|
|
391
|
-
return b.build();
|
|
392
|
-
}, "se_CreateExperimentTemplateCommand");
|
|
393
|
-
var se_CreateTargetAccountConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
394
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
395
|
-
const headers = {
|
|
396
|
-
"content-type": "application/json"
|
|
397
|
-
};
|
|
398
|
-
b.bp("/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}");
|
|
399
|
-
b.p("experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
|
|
400
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
401
|
-
let body;
|
|
402
|
-
body = JSON.stringify(
|
|
403
|
-
(0, import_smithy_client.take)(input, {
|
|
404
|
-
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
405
|
-
description: [],
|
|
406
|
-
roleArn: []
|
|
407
|
-
})
|
|
408
|
-
);
|
|
409
|
-
b.m("POST").h(headers).b(body);
|
|
410
|
-
return b.build();
|
|
411
|
-
}, "se_CreateTargetAccountConfigurationCommand");
|
|
412
|
-
var se_DeleteExperimentTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
413
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
414
|
-
const headers = {};
|
|
415
|
-
b.bp("/experimentTemplates/{id}");
|
|
416
|
-
b.p("id", () => input.id, "{id}", false);
|
|
417
|
-
let body;
|
|
418
|
-
b.m("DELETE").h(headers).b(body);
|
|
419
|
-
return b.build();
|
|
420
|
-
}, "se_DeleteExperimentTemplateCommand");
|
|
421
|
-
var se_DeleteTargetAccountConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
422
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
423
|
-
const headers = {};
|
|
424
|
-
b.bp("/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}");
|
|
425
|
-
b.p("experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
|
|
426
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
427
|
-
let body;
|
|
428
|
-
b.m("DELETE").h(headers).b(body);
|
|
429
|
-
return b.build();
|
|
430
|
-
}, "se_DeleteTargetAccountConfigurationCommand");
|
|
431
|
-
var se_GetActionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
432
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
433
|
-
const headers = {};
|
|
434
|
-
b.bp("/actions/{id}");
|
|
435
|
-
b.p("id", () => input.id, "{id}", false);
|
|
436
|
-
let body;
|
|
437
|
-
b.m("GET").h(headers).b(body);
|
|
438
|
-
return b.build();
|
|
439
|
-
}, "se_GetActionCommand");
|
|
440
|
-
var se_GetExperimentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
441
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
442
|
-
const headers = {};
|
|
443
|
-
b.bp("/experiments/{id}");
|
|
444
|
-
b.p("id", () => input.id, "{id}", false);
|
|
445
|
-
let body;
|
|
446
|
-
b.m("GET").h(headers).b(body);
|
|
447
|
-
return b.build();
|
|
448
|
-
}, "se_GetExperimentCommand");
|
|
449
|
-
var se_GetExperimentTargetAccountConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
450
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
451
|
-
const headers = {};
|
|
452
|
-
b.bp("/experiments/{experimentId}/targetAccountConfigurations/{accountId}");
|
|
453
|
-
b.p("experimentId", () => input.experimentId, "{experimentId}", false);
|
|
454
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
455
|
-
let body;
|
|
456
|
-
b.m("GET").h(headers).b(body);
|
|
457
|
-
return b.build();
|
|
458
|
-
}, "se_GetExperimentTargetAccountConfigurationCommand");
|
|
459
|
-
var se_GetExperimentTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
460
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
461
|
-
const headers = {};
|
|
462
|
-
b.bp("/experimentTemplates/{id}");
|
|
463
|
-
b.p("id", () => input.id, "{id}", false);
|
|
464
|
-
let body;
|
|
465
|
-
b.m("GET").h(headers).b(body);
|
|
466
|
-
return b.build();
|
|
467
|
-
}, "se_GetExperimentTemplateCommand");
|
|
468
|
-
var se_GetSafetyLeverCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
469
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
470
|
-
const headers = {};
|
|
471
|
-
b.bp("/safetyLevers/{id}");
|
|
472
|
-
b.p("id", () => input.id, "{id}", false);
|
|
473
|
-
let body;
|
|
474
|
-
b.m("GET").h(headers).b(body);
|
|
475
|
-
return b.build();
|
|
476
|
-
}, "se_GetSafetyLeverCommand");
|
|
477
|
-
var se_GetTargetAccountConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
478
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
479
|
-
const headers = {};
|
|
480
|
-
b.bp("/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}");
|
|
481
|
-
b.p("experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
|
|
482
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
483
|
-
let body;
|
|
484
|
-
b.m("GET").h(headers).b(body);
|
|
485
|
-
return b.build();
|
|
486
|
-
}, "se_GetTargetAccountConfigurationCommand");
|
|
487
|
-
var se_GetTargetResourceTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
488
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
489
|
-
const headers = {};
|
|
490
|
-
b.bp("/targetResourceTypes/{resourceType}");
|
|
491
|
-
b.p("resourceType", () => input.resourceType, "{resourceType}", false);
|
|
492
|
-
let body;
|
|
493
|
-
b.m("GET").h(headers).b(body);
|
|
494
|
-
return b.build();
|
|
495
|
-
}, "se_GetTargetResourceTypeCommand");
|
|
496
|
-
var se_ListActionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
497
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
498
|
-
const headers = {};
|
|
499
|
-
b.bp("/actions");
|
|
500
|
-
const query = (0, import_smithy_client.map)({
|
|
501
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
502
|
-
[_nT]: [, input[_nT]]
|
|
503
|
-
});
|
|
504
|
-
let body;
|
|
505
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
506
|
-
return b.build();
|
|
507
|
-
}, "se_ListActionsCommand");
|
|
508
|
-
var se_ListExperimentResolvedTargetsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
509
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
510
|
-
const headers = {};
|
|
511
|
-
b.bp("/experiments/{experimentId}/resolvedTargets");
|
|
512
|
-
b.p("experimentId", () => input.experimentId, "{experimentId}", false);
|
|
513
|
-
const query = (0, import_smithy_client.map)({
|
|
514
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
515
|
-
[_nT]: [, input[_nT]],
|
|
516
|
-
[_tN]: [, input[_tN]]
|
|
517
|
-
});
|
|
518
|
-
let body;
|
|
519
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
520
|
-
return b.build();
|
|
521
|
-
}, "se_ListExperimentResolvedTargetsCommand");
|
|
522
|
-
var se_ListExperimentsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
523
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
524
|
-
const headers = {};
|
|
525
|
-
b.bp("/experiments");
|
|
526
|
-
const query = (0, import_smithy_client.map)({
|
|
527
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
528
|
-
[_nT]: [, input[_nT]],
|
|
529
|
-
[_eTI]: [, input[_eTI]]
|
|
530
|
-
});
|
|
531
|
-
let body;
|
|
532
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
533
|
-
return b.build();
|
|
534
|
-
}, "se_ListExperimentsCommand");
|
|
535
|
-
var se_ListExperimentTargetAccountConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
536
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
537
|
-
const headers = {};
|
|
538
|
-
b.bp("/experiments/{experimentId}/targetAccountConfigurations");
|
|
539
|
-
b.p("experimentId", () => input.experimentId, "{experimentId}", false);
|
|
540
|
-
const query = (0, import_smithy_client.map)({
|
|
541
|
-
[_nT]: [, input[_nT]]
|
|
542
|
-
});
|
|
543
|
-
let body;
|
|
544
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
545
|
-
return b.build();
|
|
546
|
-
}, "se_ListExperimentTargetAccountConfigurationsCommand");
|
|
547
|
-
var se_ListExperimentTemplatesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
548
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
549
|
-
const headers = {};
|
|
550
|
-
b.bp("/experimentTemplates");
|
|
551
|
-
const query = (0, import_smithy_client.map)({
|
|
552
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
553
|
-
[_nT]: [, input[_nT]]
|
|
554
|
-
});
|
|
555
|
-
let body;
|
|
556
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
557
|
-
return b.build();
|
|
558
|
-
}, "se_ListExperimentTemplatesCommand");
|
|
559
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
560
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
561
|
-
const headers = {};
|
|
562
|
-
b.bp("/tags/{resourceArn}");
|
|
563
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
564
|
-
let body;
|
|
565
|
-
b.m("GET").h(headers).b(body);
|
|
566
|
-
return b.build();
|
|
567
|
-
}, "se_ListTagsForResourceCommand");
|
|
568
|
-
var se_ListTargetAccountConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
569
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
570
|
-
const headers = {};
|
|
571
|
-
b.bp("/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations");
|
|
572
|
-
b.p("experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
|
|
573
|
-
const query = (0, import_smithy_client.map)({
|
|
574
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
575
|
-
[_nT]: [, input[_nT]]
|
|
576
|
-
});
|
|
577
|
-
let body;
|
|
578
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
579
|
-
return b.build();
|
|
580
|
-
}, "se_ListTargetAccountConfigurationsCommand");
|
|
581
|
-
var se_ListTargetResourceTypesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
582
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
583
|
-
const headers = {};
|
|
584
|
-
b.bp("/targetResourceTypes");
|
|
585
|
-
const query = (0, import_smithy_client.map)({
|
|
586
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
587
|
-
[_nT]: [, input[_nT]]
|
|
588
|
-
});
|
|
589
|
-
let body;
|
|
590
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
591
|
-
return b.build();
|
|
592
|
-
}, "se_ListTargetResourceTypesCommand");
|
|
593
|
-
var se_StartExperimentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
594
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
595
|
-
const headers = {
|
|
596
|
-
"content-type": "application/json"
|
|
597
|
-
};
|
|
598
|
-
b.bp("/experiments");
|
|
599
|
-
let body;
|
|
600
|
-
body = JSON.stringify(
|
|
601
|
-
(0, import_smithy_client.take)(input, {
|
|
602
|
-
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
603
|
-
experimentOptions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "experimentOptions"),
|
|
604
|
-
experimentTemplateId: [],
|
|
605
|
-
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
|
|
606
|
-
})
|
|
607
|
-
);
|
|
608
|
-
b.m("POST").h(headers).b(body);
|
|
609
|
-
return b.build();
|
|
610
|
-
}, "se_StartExperimentCommand");
|
|
611
|
-
var se_StopExperimentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
612
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
613
|
-
const headers = {};
|
|
614
|
-
b.bp("/experiments/{id}");
|
|
615
|
-
b.p("id", () => input.id, "{id}", false);
|
|
616
|
-
let body;
|
|
617
|
-
b.m("DELETE").h(headers).b(body);
|
|
618
|
-
return b.build();
|
|
619
|
-
}, "se_StopExperimentCommand");
|
|
620
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
621
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
622
|
-
const headers = {
|
|
623
|
-
"content-type": "application/json"
|
|
624
|
-
};
|
|
625
|
-
b.bp("/tags/{resourceArn}");
|
|
626
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
627
|
-
let body;
|
|
628
|
-
body = JSON.stringify(
|
|
629
|
-
(0, import_smithy_client.take)(input, {
|
|
630
|
-
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
|
|
631
|
-
})
|
|
632
|
-
);
|
|
633
|
-
b.m("POST").h(headers).b(body);
|
|
634
|
-
return b.build();
|
|
635
|
-
}, "se_TagResourceCommand");
|
|
636
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
637
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
638
|
-
const headers = {};
|
|
639
|
-
b.bp("/tags/{resourceArn}");
|
|
640
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
641
|
-
const query = (0, import_smithy_client.map)({
|
|
642
|
-
[_tK]: [() => input.tagKeys !== void 0, () => input[_tK] || []]
|
|
643
|
-
});
|
|
644
|
-
let body;
|
|
645
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
646
|
-
return b.build();
|
|
647
|
-
}, "se_UntagResourceCommand");
|
|
648
|
-
var se_UpdateExperimentTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
649
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
650
|
-
const headers = {
|
|
651
|
-
"content-type": "application/json"
|
|
652
|
-
};
|
|
653
|
-
b.bp("/experimentTemplates/{id}");
|
|
654
|
-
b.p("id", () => input.id, "{id}", false);
|
|
655
|
-
let body;
|
|
656
|
-
body = JSON.stringify(
|
|
657
|
-
(0, import_smithy_client.take)(input, {
|
|
658
|
-
actions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "actions"),
|
|
659
|
-
description: [],
|
|
660
|
-
experimentOptions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "experimentOptions"),
|
|
661
|
-
experimentReportConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "experimentReportConfiguration"),
|
|
662
|
-
logConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "logConfiguration"),
|
|
663
|
-
roleArn: [],
|
|
664
|
-
stopConditions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "stopConditions"),
|
|
665
|
-
targets: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "targets")
|
|
666
|
-
})
|
|
667
|
-
);
|
|
668
|
-
b.m("PATCH").h(headers).b(body);
|
|
669
|
-
return b.build();
|
|
670
|
-
}, "se_UpdateExperimentTemplateCommand");
|
|
671
|
-
var se_UpdateSafetyLeverStateCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
672
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
673
|
-
const headers = {
|
|
674
|
-
"content-type": "application/json"
|
|
675
|
-
};
|
|
676
|
-
b.bp("/safetyLevers/{id}/state");
|
|
677
|
-
b.p("id", () => input.id, "{id}", false);
|
|
678
|
-
let body;
|
|
679
|
-
body = JSON.stringify(
|
|
680
|
-
(0, import_smithy_client.take)(input, {
|
|
681
|
-
state: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "state")
|
|
682
|
-
})
|
|
683
|
-
);
|
|
684
|
-
b.m("PATCH").h(headers).b(body);
|
|
685
|
-
return b.build();
|
|
686
|
-
}, "se_UpdateSafetyLeverStateCommand");
|
|
687
|
-
var se_UpdateTargetAccountConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
688
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
689
|
-
const headers = {
|
|
690
|
-
"content-type": "application/json"
|
|
691
|
-
};
|
|
692
|
-
b.bp("/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}");
|
|
693
|
-
b.p("experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
|
|
694
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
695
|
-
let body;
|
|
696
|
-
body = JSON.stringify(
|
|
697
|
-
(0, import_smithy_client.take)(input, {
|
|
698
|
-
description: [],
|
|
699
|
-
roleArn: []
|
|
700
|
-
})
|
|
701
|
-
);
|
|
702
|
-
b.m("PATCH").h(headers).b(body);
|
|
703
|
-
return b.build();
|
|
704
|
-
}, "se_UpdateTargetAccountConfigurationCommand");
|
|
705
|
-
var de_CreateExperimentTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
706
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
707
|
-
return de_CommandError(output, context);
|
|
708
|
-
}
|
|
709
|
-
const contents = (0, import_smithy_client.map)({
|
|
710
|
-
$metadata: deserializeMetadata(output)
|
|
711
|
-
});
|
|
712
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
713
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
714
|
-
experimentTemplate: /* @__PURE__ */ __name((_) => de_ExperimentTemplate(_, context), "experimentTemplate")
|
|
715
|
-
});
|
|
716
|
-
Object.assign(contents, doc);
|
|
717
|
-
return contents;
|
|
718
|
-
}, "de_CreateExperimentTemplateCommand");
|
|
719
|
-
var de_CreateTargetAccountConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
720
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
721
|
-
return de_CommandError(output, context);
|
|
722
|
-
}
|
|
723
|
-
const contents = (0, import_smithy_client.map)({
|
|
724
|
-
$metadata: deserializeMetadata(output)
|
|
725
|
-
});
|
|
726
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
727
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
728
|
-
targetAccountConfiguration: import_smithy_client._json
|
|
729
|
-
});
|
|
730
|
-
Object.assign(contents, doc);
|
|
731
|
-
return contents;
|
|
732
|
-
}, "de_CreateTargetAccountConfigurationCommand");
|
|
733
|
-
var de_DeleteExperimentTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
734
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
735
|
-
return de_CommandError(output, context);
|
|
736
|
-
}
|
|
737
|
-
const contents = (0, import_smithy_client.map)({
|
|
738
|
-
$metadata: deserializeMetadata(output)
|
|
739
|
-
});
|
|
740
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
741
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
742
|
-
experimentTemplate: /* @__PURE__ */ __name((_) => de_ExperimentTemplate(_, context), "experimentTemplate")
|
|
743
|
-
});
|
|
744
|
-
Object.assign(contents, doc);
|
|
745
|
-
return contents;
|
|
746
|
-
}, "de_DeleteExperimentTemplateCommand");
|
|
747
|
-
var de_DeleteTargetAccountConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
748
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
749
|
-
return de_CommandError(output, context);
|
|
750
|
-
}
|
|
751
|
-
const contents = (0, import_smithy_client.map)({
|
|
752
|
-
$metadata: deserializeMetadata(output)
|
|
753
|
-
});
|
|
754
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
755
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
756
|
-
targetAccountConfiguration: import_smithy_client._json
|
|
757
|
-
});
|
|
758
|
-
Object.assign(contents, doc);
|
|
759
|
-
return contents;
|
|
760
|
-
}, "de_DeleteTargetAccountConfigurationCommand");
|
|
761
|
-
var de_GetActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
762
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
763
|
-
return de_CommandError(output, context);
|
|
764
|
-
}
|
|
765
|
-
const contents = (0, import_smithy_client.map)({
|
|
766
|
-
$metadata: deserializeMetadata(output)
|
|
767
|
-
});
|
|
768
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
769
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
770
|
-
action: import_smithy_client._json
|
|
771
|
-
});
|
|
772
|
-
Object.assign(contents, doc);
|
|
773
|
-
return contents;
|
|
774
|
-
}, "de_GetActionCommand");
|
|
775
|
-
var de_GetExperimentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
776
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
777
|
-
return de_CommandError(output, context);
|
|
778
|
-
}
|
|
779
|
-
const contents = (0, import_smithy_client.map)({
|
|
780
|
-
$metadata: deserializeMetadata(output)
|
|
781
|
-
});
|
|
782
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
783
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
784
|
-
experiment: /* @__PURE__ */ __name((_) => de_Experiment(_, context), "experiment")
|
|
785
|
-
});
|
|
786
|
-
Object.assign(contents, doc);
|
|
787
|
-
return contents;
|
|
788
|
-
}, "de_GetExperimentCommand");
|
|
789
|
-
var de_GetExperimentTargetAccountConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
790
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
791
|
-
return de_CommandError(output, context);
|
|
792
|
-
}
|
|
793
|
-
const contents = (0, import_smithy_client.map)({
|
|
794
|
-
$metadata: deserializeMetadata(output)
|
|
795
|
-
});
|
|
796
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
797
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
798
|
-
targetAccountConfiguration: import_smithy_client._json
|
|
799
|
-
});
|
|
800
|
-
Object.assign(contents, doc);
|
|
801
|
-
return contents;
|
|
802
|
-
}, "de_GetExperimentTargetAccountConfigurationCommand");
|
|
803
|
-
var de_GetExperimentTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
804
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
805
|
-
return de_CommandError(output, context);
|
|
806
|
-
}
|
|
807
|
-
const contents = (0, import_smithy_client.map)({
|
|
808
|
-
$metadata: deserializeMetadata(output)
|
|
809
|
-
});
|
|
810
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
811
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
812
|
-
experimentTemplate: /* @__PURE__ */ __name((_) => de_ExperimentTemplate(_, context), "experimentTemplate")
|
|
813
|
-
});
|
|
814
|
-
Object.assign(contents, doc);
|
|
815
|
-
return contents;
|
|
816
|
-
}, "de_GetExperimentTemplateCommand");
|
|
817
|
-
var de_GetSafetyLeverCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
818
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
819
|
-
return de_CommandError(output, context);
|
|
820
|
-
}
|
|
821
|
-
const contents = (0, import_smithy_client.map)({
|
|
822
|
-
$metadata: deserializeMetadata(output)
|
|
823
|
-
});
|
|
824
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
825
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
826
|
-
safetyLever: import_smithy_client._json
|
|
827
|
-
});
|
|
828
|
-
Object.assign(contents, doc);
|
|
829
|
-
return contents;
|
|
830
|
-
}, "de_GetSafetyLeverCommand");
|
|
831
|
-
var de_GetTargetAccountConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
832
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
833
|
-
return de_CommandError(output, context);
|
|
834
|
-
}
|
|
835
|
-
const contents = (0, import_smithy_client.map)({
|
|
836
|
-
$metadata: deserializeMetadata(output)
|
|
837
|
-
});
|
|
838
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
839
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
840
|
-
targetAccountConfiguration: import_smithy_client._json
|
|
841
|
-
});
|
|
842
|
-
Object.assign(contents, doc);
|
|
843
|
-
return contents;
|
|
844
|
-
}, "de_GetTargetAccountConfigurationCommand");
|
|
845
|
-
var de_GetTargetResourceTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
846
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
847
|
-
return de_CommandError(output, context);
|
|
848
|
-
}
|
|
849
|
-
const contents = (0, import_smithy_client.map)({
|
|
850
|
-
$metadata: deserializeMetadata(output)
|
|
851
|
-
});
|
|
852
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
853
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
854
|
-
targetResourceType: import_smithy_client._json
|
|
855
|
-
});
|
|
856
|
-
Object.assign(contents, doc);
|
|
857
|
-
return contents;
|
|
858
|
-
}, "de_GetTargetResourceTypeCommand");
|
|
859
|
-
var de_ListActionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
860
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
861
|
-
return de_CommandError(output, context);
|
|
862
|
-
}
|
|
863
|
-
const contents = (0, import_smithy_client.map)({
|
|
864
|
-
$metadata: deserializeMetadata(output)
|
|
865
|
-
});
|
|
866
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
867
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
868
|
-
actions: import_smithy_client._json,
|
|
869
|
-
nextToken: import_smithy_client.expectString
|
|
870
|
-
});
|
|
871
|
-
Object.assign(contents, doc);
|
|
872
|
-
return contents;
|
|
873
|
-
}, "de_ListActionsCommand");
|
|
874
|
-
var de_ListExperimentResolvedTargetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
875
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
876
|
-
return de_CommandError(output, context);
|
|
877
|
-
}
|
|
878
|
-
const contents = (0, import_smithy_client.map)({
|
|
879
|
-
$metadata: deserializeMetadata(output)
|
|
880
|
-
});
|
|
881
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
882
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
883
|
-
nextToken: import_smithy_client.expectString,
|
|
884
|
-
resolvedTargets: import_smithy_client._json
|
|
885
|
-
});
|
|
886
|
-
Object.assign(contents, doc);
|
|
887
|
-
return contents;
|
|
888
|
-
}, "de_ListExperimentResolvedTargetsCommand");
|
|
889
|
-
var de_ListExperimentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
890
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
891
|
-
return de_CommandError(output, context);
|
|
892
|
-
}
|
|
893
|
-
const contents = (0, import_smithy_client.map)({
|
|
894
|
-
$metadata: deserializeMetadata(output)
|
|
895
|
-
});
|
|
896
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
897
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
898
|
-
experiments: /* @__PURE__ */ __name((_) => de_ExperimentSummaryList(_, context), "experiments"),
|
|
899
|
-
nextToken: import_smithy_client.expectString
|
|
900
|
-
});
|
|
901
|
-
Object.assign(contents, doc);
|
|
902
|
-
return contents;
|
|
903
|
-
}, "de_ListExperimentsCommand");
|
|
904
|
-
var de_ListExperimentTargetAccountConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
905
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
906
|
-
return de_CommandError(output, context);
|
|
907
|
-
}
|
|
908
|
-
const contents = (0, import_smithy_client.map)({
|
|
909
|
-
$metadata: deserializeMetadata(output)
|
|
910
|
-
});
|
|
911
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
912
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
913
|
-
nextToken: import_smithy_client.expectString,
|
|
914
|
-
targetAccountConfigurations: import_smithy_client._json
|
|
915
|
-
});
|
|
916
|
-
Object.assign(contents, doc);
|
|
917
|
-
return contents;
|
|
918
|
-
}, "de_ListExperimentTargetAccountConfigurationsCommand");
|
|
919
|
-
var de_ListExperimentTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
920
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
921
|
-
return de_CommandError(output, context);
|
|
922
|
-
}
|
|
923
|
-
const contents = (0, import_smithy_client.map)({
|
|
924
|
-
$metadata: deserializeMetadata(output)
|
|
925
|
-
});
|
|
926
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
927
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
928
|
-
experimentTemplates: /* @__PURE__ */ __name((_) => de_ExperimentTemplateSummaryList(_, context), "experimentTemplates"),
|
|
929
|
-
nextToken: import_smithy_client.expectString
|
|
930
|
-
});
|
|
931
|
-
Object.assign(contents, doc);
|
|
932
|
-
return contents;
|
|
933
|
-
}, "de_ListExperimentTemplatesCommand");
|
|
934
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
935
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
936
|
-
return de_CommandError(output, context);
|
|
937
|
-
}
|
|
938
|
-
const contents = (0, import_smithy_client.map)({
|
|
939
|
-
$metadata: deserializeMetadata(output)
|
|
940
|
-
});
|
|
941
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
942
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
943
|
-
tags: import_smithy_client._json
|
|
944
|
-
});
|
|
945
|
-
Object.assign(contents, doc);
|
|
946
|
-
return contents;
|
|
947
|
-
}, "de_ListTagsForResourceCommand");
|
|
948
|
-
var de_ListTargetAccountConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
949
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
950
|
-
return de_CommandError(output, context);
|
|
951
|
-
}
|
|
952
|
-
const contents = (0, import_smithy_client.map)({
|
|
953
|
-
$metadata: deserializeMetadata(output)
|
|
954
|
-
});
|
|
955
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
956
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
957
|
-
nextToken: import_smithy_client.expectString,
|
|
958
|
-
targetAccountConfigurations: import_smithy_client._json
|
|
959
|
-
});
|
|
960
|
-
Object.assign(contents, doc);
|
|
961
|
-
return contents;
|
|
962
|
-
}, "de_ListTargetAccountConfigurationsCommand");
|
|
963
|
-
var de_ListTargetResourceTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
964
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
965
|
-
return de_CommandError(output, context);
|
|
966
|
-
}
|
|
967
|
-
const contents = (0, import_smithy_client.map)({
|
|
968
|
-
$metadata: deserializeMetadata(output)
|
|
969
|
-
});
|
|
970
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
971
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
972
|
-
nextToken: import_smithy_client.expectString,
|
|
973
|
-
targetResourceTypes: import_smithy_client._json
|
|
974
|
-
});
|
|
975
|
-
Object.assign(contents, doc);
|
|
976
|
-
return contents;
|
|
977
|
-
}, "de_ListTargetResourceTypesCommand");
|
|
978
|
-
var de_StartExperimentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
979
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
980
|
-
return de_CommandError(output, context);
|
|
981
|
-
}
|
|
982
|
-
const contents = (0, import_smithy_client.map)({
|
|
983
|
-
$metadata: deserializeMetadata(output)
|
|
984
|
-
});
|
|
985
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
986
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
987
|
-
experiment: /* @__PURE__ */ __name((_) => de_Experiment(_, context), "experiment")
|
|
988
|
-
});
|
|
989
|
-
Object.assign(contents, doc);
|
|
990
|
-
return contents;
|
|
991
|
-
}, "de_StartExperimentCommand");
|
|
992
|
-
var de_StopExperimentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
993
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
994
|
-
return de_CommandError(output, context);
|
|
995
|
-
}
|
|
996
|
-
const contents = (0, import_smithy_client.map)({
|
|
997
|
-
$metadata: deserializeMetadata(output)
|
|
998
|
-
});
|
|
999
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1000
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1001
|
-
experiment: /* @__PURE__ */ __name((_) => de_Experiment(_, context), "experiment")
|
|
1002
|
-
});
|
|
1003
|
-
Object.assign(contents, doc);
|
|
1004
|
-
return contents;
|
|
1005
|
-
}, "de_StopExperimentCommand");
|
|
1006
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1007
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1008
|
-
return de_CommandError(output, context);
|
|
1009
|
-
}
|
|
1010
|
-
const contents = (0, import_smithy_client.map)({
|
|
1011
|
-
$metadata: deserializeMetadata(output)
|
|
1012
|
-
});
|
|
1013
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1014
|
-
return contents;
|
|
1015
|
-
}, "de_TagResourceCommand");
|
|
1016
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1017
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1018
|
-
return de_CommandError(output, context);
|
|
1019
|
-
}
|
|
1020
|
-
const contents = (0, import_smithy_client.map)({
|
|
1021
|
-
$metadata: deserializeMetadata(output)
|
|
1022
|
-
});
|
|
1023
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1024
|
-
return contents;
|
|
1025
|
-
}, "de_UntagResourceCommand");
|
|
1026
|
-
var de_UpdateExperimentTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1027
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1028
|
-
return de_CommandError(output, context);
|
|
1029
|
-
}
|
|
1030
|
-
const contents = (0, import_smithy_client.map)({
|
|
1031
|
-
$metadata: deserializeMetadata(output)
|
|
1032
|
-
});
|
|
1033
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1034
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1035
|
-
experimentTemplate: /* @__PURE__ */ __name((_) => de_ExperimentTemplate(_, context), "experimentTemplate")
|
|
1036
|
-
});
|
|
1037
|
-
Object.assign(contents, doc);
|
|
1038
|
-
return contents;
|
|
1039
|
-
}, "de_UpdateExperimentTemplateCommand");
|
|
1040
|
-
var de_UpdateSafetyLeverStateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1041
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1042
|
-
return de_CommandError(output, context);
|
|
1043
|
-
}
|
|
1044
|
-
const contents = (0, import_smithy_client.map)({
|
|
1045
|
-
$metadata: deserializeMetadata(output)
|
|
1046
|
-
});
|
|
1047
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1048
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1049
|
-
safetyLever: import_smithy_client._json
|
|
1050
|
-
});
|
|
1051
|
-
Object.assign(contents, doc);
|
|
1052
|
-
return contents;
|
|
1053
|
-
}, "de_UpdateSafetyLeverStateCommand");
|
|
1054
|
-
var de_UpdateTargetAccountConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1055
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1056
|
-
return de_CommandError(output, context);
|
|
1057
|
-
}
|
|
1058
|
-
const contents = (0, import_smithy_client.map)({
|
|
1059
|
-
$metadata: deserializeMetadata(output)
|
|
1060
|
-
});
|
|
1061
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1062
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1063
|
-
targetAccountConfiguration: import_smithy_client._json
|
|
1064
|
-
});
|
|
1065
|
-
Object.assign(contents, doc);
|
|
1066
|
-
return contents;
|
|
1067
|
-
}, "de_UpdateTargetAccountConfigurationCommand");
|
|
1068
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1069
|
-
const parsedOutput = {
|
|
1070
|
-
...output,
|
|
1071
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1072
|
-
};
|
|
1073
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1074
|
-
switch (errorCode) {
|
|
1075
|
-
case "ConflictException":
|
|
1076
|
-
case "com.amazonaws.fis#ConflictException":
|
|
1077
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1078
|
-
case "ResourceNotFoundException":
|
|
1079
|
-
case "com.amazonaws.fis#ResourceNotFoundException":
|
|
1080
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1081
|
-
case "ServiceQuotaExceededException":
|
|
1082
|
-
case "com.amazonaws.fis#ServiceQuotaExceededException":
|
|
1083
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1084
|
-
case "ValidationException":
|
|
1085
|
-
case "com.amazonaws.fis#ValidationException":
|
|
1086
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1087
|
-
default:
|
|
1088
|
-
const parsedBody = parsedOutput.body;
|
|
1089
|
-
return throwDefaultError({
|
|
1090
|
-
output,
|
|
1091
|
-
parsedBody,
|
|
1092
|
-
errorCode
|
|
1093
|
-
});
|
|
1094
|
-
}
|
|
1095
|
-
}, "de_CommandError");
|
|
1096
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(FisServiceException);
|
|
1097
|
-
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1098
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1099
|
-
const data = parsedOutput.body;
|
|
1100
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1101
|
-
message: import_smithy_client.expectString
|
|
1102
|
-
});
|
|
1103
|
-
Object.assign(contents, doc);
|
|
1104
|
-
const exception = new ConflictException({
|
|
1105
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1106
|
-
...contents
|
|
1107
|
-
});
|
|
1108
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1109
|
-
}, "de_ConflictExceptionRes");
|
|
1110
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1111
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1112
|
-
const data = parsedOutput.body;
|
|
1113
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1114
|
-
message: import_smithy_client.expectString
|
|
1115
|
-
});
|
|
1116
|
-
Object.assign(contents, doc);
|
|
1117
|
-
const exception = new ResourceNotFoundException({
|
|
1118
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1119
|
-
...contents
|
|
1120
|
-
});
|
|
1121
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1122
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
1123
|
-
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1124
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1125
|
-
const data = parsedOutput.body;
|
|
1126
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1127
|
-
message: import_smithy_client.expectString
|
|
1128
|
-
});
|
|
1129
|
-
Object.assign(contents, doc);
|
|
1130
|
-
const exception = new ServiceQuotaExceededException({
|
|
1131
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1132
|
-
...contents
|
|
1133
|
-
});
|
|
1134
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1135
|
-
}, "de_ServiceQuotaExceededExceptionRes");
|
|
1136
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1137
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1138
|
-
const data = parsedOutput.body;
|
|
1139
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1140
|
-
message: import_smithy_client.expectString
|
|
1141
|
-
});
|
|
1142
|
-
Object.assign(contents, doc);
|
|
1143
|
-
const exception = new ValidationException({
|
|
1144
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1145
|
-
...contents
|
|
1146
|
-
});
|
|
1147
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1148
|
-
}, "de_ValidationExceptionRes");
|
|
1149
|
-
var de_Experiment = /* @__PURE__ */ __name((output, context) => {
|
|
1150
|
-
return (0, import_smithy_client.take)(output, {
|
|
1151
|
-
actions: /* @__PURE__ */ __name((_) => de_ExperimentActionMap(_, context), "actions"),
|
|
1152
|
-
arn: import_smithy_client.expectString,
|
|
1153
|
-
creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTime"),
|
|
1154
|
-
endTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "endTime"),
|
|
1155
|
-
experimentOptions: import_smithy_client._json,
|
|
1156
|
-
experimentReport: import_smithy_client._json,
|
|
1157
|
-
experimentReportConfiguration: import_smithy_client._json,
|
|
1158
|
-
experimentTemplateId: import_smithy_client.expectString,
|
|
1159
|
-
id: import_smithy_client.expectString,
|
|
1160
|
-
logConfiguration: import_smithy_client._json,
|
|
1161
|
-
roleArn: import_smithy_client.expectString,
|
|
1162
|
-
startTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "startTime"),
|
|
1163
|
-
state: import_smithy_client._json,
|
|
1164
|
-
stopConditions: import_smithy_client._json,
|
|
1165
|
-
tags: import_smithy_client._json,
|
|
1166
|
-
targetAccountConfigurationsCount: import_smithy_client.expectLong,
|
|
1167
|
-
targets: import_smithy_client._json
|
|
1168
|
-
});
|
|
1169
|
-
}, "de_Experiment");
|
|
1170
|
-
var de_ExperimentAction = /* @__PURE__ */ __name((output, context) => {
|
|
1171
|
-
return (0, import_smithy_client.take)(output, {
|
|
1172
|
-
actionId: import_smithy_client.expectString,
|
|
1173
|
-
description: import_smithy_client.expectString,
|
|
1174
|
-
endTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "endTime"),
|
|
1175
|
-
parameters: import_smithy_client._json,
|
|
1176
|
-
startAfter: import_smithy_client._json,
|
|
1177
|
-
startTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "startTime"),
|
|
1178
|
-
state: import_smithy_client._json,
|
|
1179
|
-
targets: import_smithy_client._json
|
|
1180
|
-
});
|
|
1181
|
-
}, "de_ExperimentAction");
|
|
1182
|
-
var de_ExperimentActionMap = /* @__PURE__ */ __name((output, context) => {
|
|
1183
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1184
|
-
if (value === null) {
|
|
1185
|
-
return acc;
|
|
145
|
+
class ResourceNotFoundException extends FisServiceException {
|
|
146
|
+
name = "ResourceNotFoundException";
|
|
147
|
+
$fault = "client";
|
|
148
|
+
constructor(opts) {
|
|
149
|
+
super({
|
|
150
|
+
name: "ResourceNotFoundException",
|
|
151
|
+
$fault: "client",
|
|
152
|
+
...opts,
|
|
153
|
+
});
|
|
154
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
1186
155
|
}
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
targetAccountConfigurationsCount: import_smithy_client.expectLong,
|
|
1223
|
-
targets: import_smithy_client._json
|
|
1224
|
-
});
|
|
1225
|
-
}, "de_ExperimentTemplate");
|
|
1226
|
-
var de_ExperimentTemplateSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1227
|
-
return (0, import_smithy_client.take)(output, {
|
|
1228
|
-
arn: import_smithy_client.expectString,
|
|
1229
|
-
creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTime"),
|
|
1230
|
-
description: import_smithy_client.expectString,
|
|
1231
|
-
id: import_smithy_client.expectString,
|
|
1232
|
-
lastUpdateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastUpdateTime"),
|
|
1233
|
-
tags: import_smithy_client._json
|
|
1234
|
-
});
|
|
1235
|
-
}, "de_ExperimentTemplateSummary");
|
|
1236
|
-
var de_ExperimentTemplateSummaryList = /* @__PURE__ */ __name((output, context) => {
|
|
1237
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1238
|
-
return de_ExperimentTemplateSummary(entry, context);
|
|
1239
|
-
});
|
|
1240
|
-
return retVal;
|
|
1241
|
-
}, "de_ExperimentTemplateSummaryList");
|
|
1242
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1243
|
-
httpStatusCode: output.statusCode,
|
|
1244
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1245
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1246
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
1247
|
-
}), "deserializeMetadata");
|
|
1248
|
-
var _eTI = "experimentTemplateId";
|
|
1249
|
-
var _mR = "maxResults";
|
|
1250
|
-
var _nT = "nextToken";
|
|
1251
|
-
var _tK = "tagKeys";
|
|
1252
|
-
var _tN = "targetName";
|
|
1253
|
-
|
|
1254
|
-
// src/commands/CreateExperimentTemplateCommand.ts
|
|
1255
|
-
var CreateExperimentTemplateCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1256
|
-
return [
|
|
1257
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1258
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1259
|
-
];
|
|
1260
|
-
}).s("FaultInjectionSimulator", "CreateExperimentTemplate", {}).n("FisClient", "CreateExperimentTemplateCommand").f(void 0, void 0).ser(se_CreateExperimentTemplateCommand).de(de_CreateExperimentTemplateCommand).build() {
|
|
1261
|
-
static {
|
|
1262
|
-
__name(this, "CreateExperimentTemplateCommand");
|
|
1263
|
-
}
|
|
156
|
+
}
|
|
157
|
+
class ServiceQuotaExceededException extends FisServiceException {
|
|
158
|
+
name = "ServiceQuotaExceededException";
|
|
159
|
+
$fault = "client";
|
|
160
|
+
constructor(opts) {
|
|
161
|
+
super({
|
|
162
|
+
name: "ServiceQuotaExceededException",
|
|
163
|
+
$fault: "client",
|
|
164
|
+
...opts,
|
|
165
|
+
});
|
|
166
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
class ValidationException extends FisServiceException {
|
|
170
|
+
name = "ValidationException";
|
|
171
|
+
$fault = "client";
|
|
172
|
+
constructor(opts) {
|
|
173
|
+
super({
|
|
174
|
+
name: "ValidationException",
|
|
175
|
+
$fault: "client",
|
|
176
|
+
...opts,
|
|
177
|
+
});
|
|
178
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
const ExperimentActionStatus = {
|
|
182
|
+
cancelled: "cancelled",
|
|
183
|
+
completed: "completed",
|
|
184
|
+
failed: "failed",
|
|
185
|
+
initiating: "initiating",
|
|
186
|
+
pending: "pending",
|
|
187
|
+
running: "running",
|
|
188
|
+
skipped: "skipped",
|
|
189
|
+
stopped: "stopped",
|
|
190
|
+
stopping: "stopping",
|
|
1264
191
|
};
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
return [
|
|
1272
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1273
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1274
|
-
];
|
|
1275
|
-
}).s("FaultInjectionSimulator", "CreateTargetAccountConfiguration", {}).n("FisClient", "CreateTargetAccountConfigurationCommand").f(void 0, void 0).ser(se_CreateTargetAccountConfigurationCommand).de(de_CreateTargetAccountConfigurationCommand).build() {
|
|
1276
|
-
static {
|
|
1277
|
-
__name(this, "CreateTargetAccountConfigurationCommand");
|
|
1278
|
-
}
|
|
192
|
+
const ExperimentReportStatus = {
|
|
193
|
+
cancelled: "cancelled",
|
|
194
|
+
completed: "completed",
|
|
195
|
+
failed: "failed",
|
|
196
|
+
pending: "pending",
|
|
197
|
+
running: "running",
|
|
1279
198
|
};
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
];
|
|
1290
|
-
}).s("FaultInjectionSimulator", "DeleteExperimentTemplate", {}).n("FisClient", "DeleteExperimentTemplateCommand").f(void 0, void 0).ser(se_DeleteExperimentTemplateCommand).de(de_DeleteExperimentTemplateCommand).build() {
|
|
1291
|
-
static {
|
|
1292
|
-
__name(this, "DeleteExperimentTemplateCommand");
|
|
1293
|
-
}
|
|
199
|
+
const ExperimentStatus = {
|
|
200
|
+
cancelled: "cancelled",
|
|
201
|
+
completed: "completed",
|
|
202
|
+
failed: "failed",
|
|
203
|
+
initiating: "initiating",
|
|
204
|
+
pending: "pending",
|
|
205
|
+
running: "running",
|
|
206
|
+
stopped: "stopped",
|
|
207
|
+
stopping: "stopping",
|
|
1294
208
|
};
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
var DeleteTargetAccountConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1301
|
-
return [
|
|
1302
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1303
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1304
|
-
];
|
|
1305
|
-
}).s("FaultInjectionSimulator", "DeleteTargetAccountConfiguration", {}).n("FisClient", "DeleteTargetAccountConfigurationCommand").f(void 0, void 0).ser(se_DeleteTargetAccountConfigurationCommand).de(de_DeleteTargetAccountConfigurationCommand).build() {
|
|
1306
|
-
static {
|
|
1307
|
-
__name(this, "DeleteTargetAccountConfigurationCommand");
|
|
1308
|
-
}
|
|
209
|
+
const SafetyLeverStatus = {
|
|
210
|
+
DISENGAGED: "disengaged",
|
|
211
|
+
ENGAGED: "engaged",
|
|
212
|
+
ENGAGING: "engaging",
|
|
1309
213
|
};
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
var GetActionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1316
|
-
return [
|
|
1317
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1318
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1319
|
-
];
|
|
1320
|
-
}).s("FaultInjectionSimulator", "GetAction", {}).n("FisClient", "GetActionCommand").f(void 0, void 0).ser(se_GetActionCommand).de(de_GetActionCommand).build() {
|
|
1321
|
-
static {
|
|
1322
|
-
__name(this, "GetActionCommand");
|
|
1323
|
-
}
|
|
214
|
+
const SafetyLeverStatusInput = {
|
|
215
|
+
DISENGAGED: "disengaged",
|
|
216
|
+
ENGAGED: "engaged",
|
|
1324
217
|
};
|
|
1325
218
|
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
219
|
+
const se_CreateExperimentTemplateCommand = async (input, context) => {
|
|
220
|
+
const b = core.requestBuilder(input, context);
|
|
221
|
+
const headers = {
|
|
222
|
+
"content-type": "application/json",
|
|
223
|
+
};
|
|
224
|
+
b.bp("/experimentTemplates");
|
|
225
|
+
let body;
|
|
226
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
227
|
+
actions: (_) => smithyClient._json(_),
|
|
228
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
229
|
+
description: [],
|
|
230
|
+
experimentOptions: (_) => smithyClient._json(_),
|
|
231
|
+
experimentReportConfiguration: (_) => smithyClient._json(_),
|
|
232
|
+
logConfiguration: (_) => smithyClient._json(_),
|
|
233
|
+
roleArn: [],
|
|
234
|
+
stopConditions: (_) => smithyClient._json(_),
|
|
235
|
+
tags: (_) => smithyClient._json(_),
|
|
236
|
+
targets: (_) => smithyClient._json(_),
|
|
237
|
+
}));
|
|
238
|
+
b.m("POST").h(headers).b(body);
|
|
239
|
+
return b.build();
|
|
1339
240
|
};
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
(
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
241
|
+
const se_CreateTargetAccountConfigurationCommand = async (input, context) => {
|
|
242
|
+
const b = core.requestBuilder(input, context);
|
|
243
|
+
const headers = {
|
|
244
|
+
"content-type": "application/json",
|
|
245
|
+
};
|
|
246
|
+
b.bp("/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}");
|
|
247
|
+
b.p("experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
|
|
248
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
249
|
+
let body;
|
|
250
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
251
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
252
|
+
description: [],
|
|
253
|
+
roleArn: [],
|
|
254
|
+
}));
|
|
255
|
+
b.m("POST").h(headers).b(body);
|
|
256
|
+
return b.build();
|
|
1354
257
|
};
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1364
|
-
];
|
|
1365
|
-
}).s("FaultInjectionSimulator", "GetExperimentTemplate", {}).n("FisClient", "GetExperimentTemplateCommand").f(void 0, void 0).ser(se_GetExperimentTemplateCommand).de(de_GetExperimentTemplateCommand).build() {
|
|
1366
|
-
static {
|
|
1367
|
-
__name(this, "GetExperimentTemplateCommand");
|
|
1368
|
-
}
|
|
258
|
+
const se_DeleteExperimentTemplateCommand = async (input, context) => {
|
|
259
|
+
const b = core.requestBuilder(input, context);
|
|
260
|
+
const headers = {};
|
|
261
|
+
b.bp("/experimentTemplates/{id}");
|
|
262
|
+
b.p("id", () => input.id, "{id}", false);
|
|
263
|
+
let body;
|
|
264
|
+
b.m("DELETE").h(headers).b(body);
|
|
265
|
+
return b.build();
|
|
1369
266
|
};
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
(
|
|
1378
|
-
|
|
1379
|
-
];
|
|
1380
|
-
}).s("FaultInjectionSimulator", "GetSafetyLever", {}).n("FisClient", "GetSafetyLeverCommand").f(void 0, void 0).ser(se_GetSafetyLeverCommand).de(de_GetSafetyLeverCommand).build() {
|
|
1381
|
-
static {
|
|
1382
|
-
__name(this, "GetSafetyLeverCommand");
|
|
1383
|
-
}
|
|
267
|
+
const se_DeleteTargetAccountConfigurationCommand = async (input, context) => {
|
|
268
|
+
const b = core.requestBuilder(input, context);
|
|
269
|
+
const headers = {};
|
|
270
|
+
b.bp("/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}");
|
|
271
|
+
b.p("experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
|
|
272
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
273
|
+
let body;
|
|
274
|
+
b.m("DELETE").h(headers).b(body);
|
|
275
|
+
return b.build();
|
|
1384
276
|
};
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1394
|
-
];
|
|
1395
|
-
}).s("FaultInjectionSimulator", "GetTargetAccountConfiguration", {}).n("FisClient", "GetTargetAccountConfigurationCommand").f(void 0, void 0).ser(se_GetTargetAccountConfigurationCommand).de(de_GetTargetAccountConfigurationCommand).build() {
|
|
1396
|
-
static {
|
|
1397
|
-
__name(this, "GetTargetAccountConfigurationCommand");
|
|
1398
|
-
}
|
|
277
|
+
const se_GetActionCommand = async (input, context) => {
|
|
278
|
+
const b = core.requestBuilder(input, context);
|
|
279
|
+
const headers = {};
|
|
280
|
+
b.bp("/actions/{id}");
|
|
281
|
+
b.p("id", () => input.id, "{id}", false);
|
|
282
|
+
let body;
|
|
283
|
+
b.m("GET").h(headers).b(body);
|
|
284
|
+
return b.build();
|
|
1399
285
|
};
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1409
|
-
];
|
|
1410
|
-
}).s("FaultInjectionSimulator", "GetTargetResourceType", {}).n("FisClient", "GetTargetResourceTypeCommand").f(void 0, void 0).ser(se_GetTargetResourceTypeCommand).de(de_GetTargetResourceTypeCommand).build() {
|
|
1411
|
-
static {
|
|
1412
|
-
__name(this, "GetTargetResourceTypeCommand");
|
|
1413
|
-
}
|
|
286
|
+
const se_GetExperimentCommand = async (input, context) => {
|
|
287
|
+
const b = core.requestBuilder(input, context);
|
|
288
|
+
const headers = {};
|
|
289
|
+
b.bp("/experiments/{id}");
|
|
290
|
+
b.p("id", () => input.id, "{id}", false);
|
|
291
|
+
let body;
|
|
292
|
+
b.m("GET").h(headers).b(body);
|
|
293
|
+
return b.build();
|
|
1414
294
|
};
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
(
|
|
1423
|
-
|
|
1424
|
-
];
|
|
1425
|
-
}).s("FaultInjectionSimulator", "ListActions", {}).n("FisClient", "ListActionsCommand").f(void 0, void 0).ser(se_ListActionsCommand).de(de_ListActionsCommand).build() {
|
|
1426
|
-
static {
|
|
1427
|
-
__name(this, "ListActionsCommand");
|
|
1428
|
-
}
|
|
295
|
+
const se_GetExperimentTargetAccountConfigurationCommand = async (input, context) => {
|
|
296
|
+
const b = core.requestBuilder(input, context);
|
|
297
|
+
const headers = {};
|
|
298
|
+
b.bp("/experiments/{experimentId}/targetAccountConfigurations/{accountId}");
|
|
299
|
+
b.p("experimentId", () => input.experimentId, "{experimentId}", false);
|
|
300
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
301
|
+
let body;
|
|
302
|
+
b.m("GET").h(headers).b(body);
|
|
303
|
+
return b.build();
|
|
1429
304
|
};
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1439
|
-
];
|
|
1440
|
-
}).s("FaultInjectionSimulator", "ListExperimentResolvedTargets", {}).n("FisClient", "ListExperimentResolvedTargetsCommand").f(void 0, void 0).ser(se_ListExperimentResolvedTargetsCommand).de(de_ListExperimentResolvedTargetsCommand).build() {
|
|
1441
|
-
static {
|
|
1442
|
-
__name(this, "ListExperimentResolvedTargetsCommand");
|
|
1443
|
-
}
|
|
305
|
+
const se_GetExperimentTemplateCommand = async (input, context) => {
|
|
306
|
+
const b = core.requestBuilder(input, context);
|
|
307
|
+
const headers = {};
|
|
308
|
+
b.bp("/experimentTemplates/{id}");
|
|
309
|
+
b.p("id", () => input.id, "{id}", false);
|
|
310
|
+
let body;
|
|
311
|
+
b.m("GET").h(headers).b(body);
|
|
312
|
+
return b.build();
|
|
1444
313
|
};
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1454
|
-
];
|
|
1455
|
-
}).s("FaultInjectionSimulator", "ListExperiments", {}).n("FisClient", "ListExperimentsCommand").f(void 0, void 0).ser(se_ListExperimentsCommand).de(de_ListExperimentsCommand).build() {
|
|
1456
|
-
static {
|
|
1457
|
-
__name(this, "ListExperimentsCommand");
|
|
1458
|
-
}
|
|
314
|
+
const se_GetSafetyLeverCommand = async (input, context) => {
|
|
315
|
+
const b = core.requestBuilder(input, context);
|
|
316
|
+
const headers = {};
|
|
317
|
+
b.bp("/safetyLevers/{id}");
|
|
318
|
+
b.p("id", () => input.id, "{id}", false);
|
|
319
|
+
let body;
|
|
320
|
+
b.m("GET").h(headers).b(body);
|
|
321
|
+
return b.build();
|
|
1459
322
|
};
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
(
|
|
1468
|
-
|
|
1469
|
-
];
|
|
1470
|
-
}).s("FaultInjectionSimulator", "ListExperimentTargetAccountConfigurations", {}).n("FisClient", "ListExperimentTargetAccountConfigurationsCommand").f(void 0, void 0).ser(se_ListExperimentTargetAccountConfigurationsCommand).de(de_ListExperimentTargetAccountConfigurationsCommand).build() {
|
|
1471
|
-
static {
|
|
1472
|
-
__name(this, "ListExperimentTargetAccountConfigurationsCommand");
|
|
1473
|
-
}
|
|
323
|
+
const se_GetTargetAccountConfigurationCommand = async (input, context) => {
|
|
324
|
+
const b = core.requestBuilder(input, context);
|
|
325
|
+
const headers = {};
|
|
326
|
+
b.bp("/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}");
|
|
327
|
+
b.p("experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
|
|
328
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
329
|
+
let body;
|
|
330
|
+
b.m("GET").h(headers).b(body);
|
|
331
|
+
return b.build();
|
|
1474
332
|
};
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1484
|
-
];
|
|
1485
|
-
}).s("FaultInjectionSimulator", "ListExperimentTemplates", {}).n("FisClient", "ListExperimentTemplatesCommand").f(void 0, void 0).ser(se_ListExperimentTemplatesCommand).de(de_ListExperimentTemplatesCommand).build() {
|
|
1486
|
-
static {
|
|
1487
|
-
__name(this, "ListExperimentTemplatesCommand");
|
|
1488
|
-
}
|
|
333
|
+
const se_GetTargetResourceTypeCommand = async (input, context) => {
|
|
334
|
+
const b = core.requestBuilder(input, context);
|
|
335
|
+
const headers = {};
|
|
336
|
+
b.bp("/targetResourceTypes/{resourceType}");
|
|
337
|
+
b.p("resourceType", () => input.resourceType, "{resourceType}", false);
|
|
338
|
+
let body;
|
|
339
|
+
b.m("GET").h(headers).b(body);
|
|
340
|
+
return b.build();
|
|
1489
341
|
};
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
static {
|
|
1502
|
-
__name(this, "ListTagsForResourceCommand");
|
|
1503
|
-
}
|
|
342
|
+
const se_ListActionsCommand = async (input, context) => {
|
|
343
|
+
const b = core.requestBuilder(input, context);
|
|
344
|
+
const headers = {};
|
|
345
|
+
b.bp("/actions");
|
|
346
|
+
const query = smithyClient.map({
|
|
347
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
348
|
+
[_nT]: [, input[_nT]],
|
|
349
|
+
});
|
|
350
|
+
let body;
|
|
351
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
352
|
+
return b.build();
|
|
1504
353
|
};
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
}
|
|
354
|
+
const se_ListExperimentResolvedTargetsCommand = async (input, context) => {
|
|
355
|
+
const b = core.requestBuilder(input, context);
|
|
356
|
+
const headers = {};
|
|
357
|
+
b.bp("/experiments/{experimentId}/resolvedTargets");
|
|
358
|
+
b.p("experimentId", () => input.experimentId, "{experimentId}", false);
|
|
359
|
+
const query = smithyClient.map({
|
|
360
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
361
|
+
[_nT]: [, input[_nT]],
|
|
362
|
+
[_tN]: [, input[_tN]],
|
|
363
|
+
});
|
|
364
|
+
let body;
|
|
365
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
366
|
+
return b.build();
|
|
1519
367
|
};
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
__name(this, "ListTargetResourceTypesCommand");
|
|
1533
|
-
}
|
|
368
|
+
const se_ListExperimentsCommand = async (input, context) => {
|
|
369
|
+
const b = core.requestBuilder(input, context);
|
|
370
|
+
const headers = {};
|
|
371
|
+
b.bp("/experiments");
|
|
372
|
+
const query = smithyClient.map({
|
|
373
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
374
|
+
[_nT]: [, input[_nT]],
|
|
375
|
+
[_eTI]: [, input[_eTI]],
|
|
376
|
+
});
|
|
377
|
+
let body;
|
|
378
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
379
|
+
return b.build();
|
|
1534
380
|
};
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
static {
|
|
1547
|
-
__name(this, "StartExperimentCommand");
|
|
1548
|
-
}
|
|
381
|
+
const se_ListExperimentTargetAccountConfigurationsCommand = async (input, context) => {
|
|
382
|
+
const b = core.requestBuilder(input, context);
|
|
383
|
+
const headers = {};
|
|
384
|
+
b.bp("/experiments/{experimentId}/targetAccountConfigurations");
|
|
385
|
+
b.p("experimentId", () => input.experimentId, "{experimentId}", false);
|
|
386
|
+
const query = smithyClient.map({
|
|
387
|
+
[_nT]: [, input[_nT]],
|
|
388
|
+
});
|
|
389
|
+
let body;
|
|
390
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
391
|
+
return b.build();
|
|
1549
392
|
};
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
static {
|
|
1562
|
-
__name(this, "StopExperimentCommand");
|
|
1563
|
-
}
|
|
393
|
+
const se_ListExperimentTemplatesCommand = async (input, context) => {
|
|
394
|
+
const b = core.requestBuilder(input, context);
|
|
395
|
+
const headers = {};
|
|
396
|
+
b.bp("/experimentTemplates");
|
|
397
|
+
const query = smithyClient.map({
|
|
398
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
399
|
+
[_nT]: [, input[_nT]],
|
|
400
|
+
});
|
|
401
|
+
let body;
|
|
402
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
403
|
+
return b.build();
|
|
1564
404
|
};
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1574
|
-
];
|
|
1575
|
-
}).s("FaultInjectionSimulator", "TagResource", {}).n("FisClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
1576
|
-
static {
|
|
1577
|
-
__name(this, "TagResourceCommand");
|
|
1578
|
-
}
|
|
405
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
406
|
+
const b = core.requestBuilder(input, context);
|
|
407
|
+
const headers = {};
|
|
408
|
+
b.bp("/tags/{resourceArn}");
|
|
409
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
410
|
+
let body;
|
|
411
|
+
b.m("GET").h(headers).b(body);
|
|
412
|
+
return b.build();
|
|
1579
413
|
};
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
__name(this, "UntagResourceCommand");
|
|
1593
|
-
}
|
|
414
|
+
const se_ListTargetAccountConfigurationsCommand = async (input, context) => {
|
|
415
|
+
const b = core.requestBuilder(input, context);
|
|
416
|
+
const headers = {};
|
|
417
|
+
b.bp("/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations");
|
|
418
|
+
b.p("experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
|
|
419
|
+
const query = smithyClient.map({
|
|
420
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
421
|
+
[_nT]: [, input[_nT]],
|
|
422
|
+
});
|
|
423
|
+
let body;
|
|
424
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
425
|
+
return b.build();
|
|
1594
426
|
};
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
static {
|
|
1607
|
-
__name(this, "UpdateExperimentTemplateCommand");
|
|
1608
|
-
}
|
|
427
|
+
const se_ListTargetResourceTypesCommand = async (input, context) => {
|
|
428
|
+
const b = core.requestBuilder(input, context);
|
|
429
|
+
const headers = {};
|
|
430
|
+
b.bp("/targetResourceTypes");
|
|
431
|
+
const query = smithyClient.map({
|
|
432
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
433
|
+
[_nT]: [, input[_nT]],
|
|
434
|
+
});
|
|
435
|
+
let body;
|
|
436
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
437
|
+
return b.build();
|
|
1609
438
|
};
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
439
|
+
const se_StartExperimentCommand = async (input, context) => {
|
|
440
|
+
const b = core.requestBuilder(input, context);
|
|
441
|
+
const headers = {
|
|
442
|
+
"content-type": "application/json",
|
|
443
|
+
};
|
|
444
|
+
b.bp("/experiments");
|
|
445
|
+
let body;
|
|
446
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
447
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
448
|
+
experimentOptions: (_) => smithyClient._json(_),
|
|
449
|
+
experimentTemplateId: [],
|
|
450
|
+
tags: (_) => smithyClient._json(_),
|
|
451
|
+
}));
|
|
452
|
+
b.m("POST").h(headers).b(body);
|
|
453
|
+
return b.build();
|
|
1624
454
|
};
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1634
|
-
];
|
|
1635
|
-
}).s("FaultInjectionSimulator", "UpdateTargetAccountConfiguration", {}).n("FisClient", "UpdateTargetAccountConfigurationCommand").f(void 0, void 0).ser(se_UpdateTargetAccountConfigurationCommand).de(de_UpdateTargetAccountConfigurationCommand).build() {
|
|
1636
|
-
static {
|
|
1637
|
-
__name(this, "UpdateTargetAccountConfigurationCommand");
|
|
1638
|
-
}
|
|
455
|
+
const se_StopExperimentCommand = async (input, context) => {
|
|
456
|
+
const b = core.requestBuilder(input, context);
|
|
457
|
+
const headers = {};
|
|
458
|
+
b.bp("/experiments/{id}");
|
|
459
|
+
b.p("id", () => input.id, "{id}", false);
|
|
460
|
+
let body;
|
|
461
|
+
b.m("DELETE").h(headers).b(body);
|
|
462
|
+
return b.build();
|
|
1639
463
|
};
|
|
464
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
465
|
+
const b = core.requestBuilder(input, context);
|
|
466
|
+
const headers = {
|
|
467
|
+
"content-type": "application/json",
|
|
468
|
+
};
|
|
469
|
+
b.bp("/tags/{resourceArn}");
|
|
470
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
471
|
+
let body;
|
|
472
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
473
|
+
tags: (_) => smithyClient._json(_),
|
|
474
|
+
}));
|
|
475
|
+
b.m("POST").h(headers).b(body);
|
|
476
|
+
return b.build();
|
|
477
|
+
};
|
|
478
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
479
|
+
const b = core.requestBuilder(input, context);
|
|
480
|
+
const headers = {};
|
|
481
|
+
b.bp("/tags/{resourceArn}");
|
|
482
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
483
|
+
const query = smithyClient.map({
|
|
484
|
+
[_tK]: [() => input.tagKeys !== void 0, () => input[_tK] || []],
|
|
485
|
+
});
|
|
486
|
+
let body;
|
|
487
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
488
|
+
return b.build();
|
|
489
|
+
};
|
|
490
|
+
const se_UpdateExperimentTemplateCommand = async (input, context) => {
|
|
491
|
+
const b = core.requestBuilder(input, context);
|
|
492
|
+
const headers = {
|
|
493
|
+
"content-type": "application/json",
|
|
494
|
+
};
|
|
495
|
+
b.bp("/experimentTemplates/{id}");
|
|
496
|
+
b.p("id", () => input.id, "{id}", false);
|
|
497
|
+
let body;
|
|
498
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
499
|
+
actions: (_) => smithyClient._json(_),
|
|
500
|
+
description: [],
|
|
501
|
+
experimentOptions: (_) => smithyClient._json(_),
|
|
502
|
+
experimentReportConfiguration: (_) => smithyClient._json(_),
|
|
503
|
+
logConfiguration: (_) => smithyClient._json(_),
|
|
504
|
+
roleArn: [],
|
|
505
|
+
stopConditions: (_) => smithyClient._json(_),
|
|
506
|
+
targets: (_) => smithyClient._json(_),
|
|
507
|
+
}));
|
|
508
|
+
b.m("PATCH").h(headers).b(body);
|
|
509
|
+
return b.build();
|
|
510
|
+
};
|
|
511
|
+
const se_UpdateSafetyLeverStateCommand = async (input, context) => {
|
|
512
|
+
const b = core.requestBuilder(input, context);
|
|
513
|
+
const headers = {
|
|
514
|
+
"content-type": "application/json",
|
|
515
|
+
};
|
|
516
|
+
b.bp("/safetyLevers/{id}/state");
|
|
517
|
+
b.p("id", () => input.id, "{id}", false);
|
|
518
|
+
let body;
|
|
519
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
520
|
+
state: (_) => smithyClient._json(_),
|
|
521
|
+
}));
|
|
522
|
+
b.m("PATCH").h(headers).b(body);
|
|
523
|
+
return b.build();
|
|
524
|
+
};
|
|
525
|
+
const se_UpdateTargetAccountConfigurationCommand = async (input, context) => {
|
|
526
|
+
const b = core.requestBuilder(input, context);
|
|
527
|
+
const headers = {
|
|
528
|
+
"content-type": "application/json",
|
|
529
|
+
};
|
|
530
|
+
b.bp("/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}");
|
|
531
|
+
b.p("experimentTemplateId", () => input.experimentTemplateId, "{experimentTemplateId}", false);
|
|
532
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
533
|
+
let body;
|
|
534
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
535
|
+
description: [],
|
|
536
|
+
roleArn: [],
|
|
537
|
+
}));
|
|
538
|
+
b.m("PATCH").h(headers).b(body);
|
|
539
|
+
return b.build();
|
|
540
|
+
};
|
|
541
|
+
const de_CreateExperimentTemplateCommand = async (output, context) => {
|
|
542
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
543
|
+
return de_CommandError(output, context);
|
|
544
|
+
}
|
|
545
|
+
const contents = smithyClient.map({
|
|
546
|
+
$metadata: deserializeMetadata(output),
|
|
547
|
+
});
|
|
548
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
549
|
+
const doc = smithyClient.take(data, {
|
|
550
|
+
experimentTemplate: (_) => de_ExperimentTemplate(_),
|
|
551
|
+
});
|
|
552
|
+
Object.assign(contents, doc);
|
|
553
|
+
return contents;
|
|
554
|
+
};
|
|
555
|
+
const de_CreateTargetAccountConfigurationCommand = async (output, context) => {
|
|
556
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
557
|
+
return de_CommandError(output, context);
|
|
558
|
+
}
|
|
559
|
+
const contents = smithyClient.map({
|
|
560
|
+
$metadata: deserializeMetadata(output),
|
|
561
|
+
});
|
|
562
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
563
|
+
const doc = smithyClient.take(data, {
|
|
564
|
+
targetAccountConfiguration: smithyClient._json,
|
|
565
|
+
});
|
|
566
|
+
Object.assign(contents, doc);
|
|
567
|
+
return contents;
|
|
568
|
+
};
|
|
569
|
+
const de_DeleteExperimentTemplateCommand = async (output, context) => {
|
|
570
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
571
|
+
return de_CommandError(output, context);
|
|
572
|
+
}
|
|
573
|
+
const contents = smithyClient.map({
|
|
574
|
+
$metadata: deserializeMetadata(output),
|
|
575
|
+
});
|
|
576
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
577
|
+
const doc = smithyClient.take(data, {
|
|
578
|
+
experimentTemplate: (_) => de_ExperimentTemplate(_),
|
|
579
|
+
});
|
|
580
|
+
Object.assign(contents, doc);
|
|
581
|
+
return contents;
|
|
582
|
+
};
|
|
583
|
+
const de_DeleteTargetAccountConfigurationCommand = async (output, context) => {
|
|
584
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
585
|
+
return de_CommandError(output, context);
|
|
586
|
+
}
|
|
587
|
+
const contents = smithyClient.map({
|
|
588
|
+
$metadata: deserializeMetadata(output),
|
|
589
|
+
});
|
|
590
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
591
|
+
const doc = smithyClient.take(data, {
|
|
592
|
+
targetAccountConfiguration: smithyClient._json,
|
|
593
|
+
});
|
|
594
|
+
Object.assign(contents, doc);
|
|
595
|
+
return contents;
|
|
596
|
+
};
|
|
597
|
+
const de_GetActionCommand = async (output, context) => {
|
|
598
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
599
|
+
return de_CommandError(output, context);
|
|
600
|
+
}
|
|
601
|
+
const contents = smithyClient.map({
|
|
602
|
+
$metadata: deserializeMetadata(output),
|
|
603
|
+
});
|
|
604
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
605
|
+
const doc = smithyClient.take(data, {
|
|
606
|
+
action: smithyClient._json,
|
|
607
|
+
});
|
|
608
|
+
Object.assign(contents, doc);
|
|
609
|
+
return contents;
|
|
610
|
+
};
|
|
611
|
+
const de_GetExperimentCommand = async (output, context) => {
|
|
612
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
613
|
+
return de_CommandError(output, context);
|
|
614
|
+
}
|
|
615
|
+
const contents = smithyClient.map({
|
|
616
|
+
$metadata: deserializeMetadata(output),
|
|
617
|
+
});
|
|
618
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
619
|
+
const doc = smithyClient.take(data, {
|
|
620
|
+
experiment: (_) => de_Experiment(_),
|
|
621
|
+
});
|
|
622
|
+
Object.assign(contents, doc);
|
|
623
|
+
return contents;
|
|
624
|
+
};
|
|
625
|
+
const de_GetExperimentTargetAccountConfigurationCommand = async (output, context) => {
|
|
626
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
627
|
+
return de_CommandError(output, context);
|
|
628
|
+
}
|
|
629
|
+
const contents = smithyClient.map({
|
|
630
|
+
$metadata: deserializeMetadata(output),
|
|
631
|
+
});
|
|
632
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
633
|
+
const doc = smithyClient.take(data, {
|
|
634
|
+
targetAccountConfiguration: smithyClient._json,
|
|
635
|
+
});
|
|
636
|
+
Object.assign(contents, doc);
|
|
637
|
+
return contents;
|
|
638
|
+
};
|
|
639
|
+
const de_GetExperimentTemplateCommand = async (output, context) => {
|
|
640
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
641
|
+
return de_CommandError(output, context);
|
|
642
|
+
}
|
|
643
|
+
const contents = smithyClient.map({
|
|
644
|
+
$metadata: deserializeMetadata(output),
|
|
645
|
+
});
|
|
646
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
647
|
+
const doc = smithyClient.take(data, {
|
|
648
|
+
experimentTemplate: (_) => de_ExperimentTemplate(_),
|
|
649
|
+
});
|
|
650
|
+
Object.assign(contents, doc);
|
|
651
|
+
return contents;
|
|
652
|
+
};
|
|
653
|
+
const de_GetSafetyLeverCommand = async (output, context) => {
|
|
654
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
655
|
+
return de_CommandError(output, context);
|
|
656
|
+
}
|
|
657
|
+
const contents = smithyClient.map({
|
|
658
|
+
$metadata: deserializeMetadata(output),
|
|
659
|
+
});
|
|
660
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
661
|
+
const doc = smithyClient.take(data, {
|
|
662
|
+
safetyLever: smithyClient._json,
|
|
663
|
+
});
|
|
664
|
+
Object.assign(contents, doc);
|
|
665
|
+
return contents;
|
|
666
|
+
};
|
|
667
|
+
const de_GetTargetAccountConfigurationCommand = async (output, context) => {
|
|
668
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
669
|
+
return de_CommandError(output, context);
|
|
670
|
+
}
|
|
671
|
+
const contents = smithyClient.map({
|
|
672
|
+
$metadata: deserializeMetadata(output),
|
|
673
|
+
});
|
|
674
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
675
|
+
const doc = smithyClient.take(data, {
|
|
676
|
+
targetAccountConfiguration: smithyClient._json,
|
|
677
|
+
});
|
|
678
|
+
Object.assign(contents, doc);
|
|
679
|
+
return contents;
|
|
680
|
+
};
|
|
681
|
+
const de_GetTargetResourceTypeCommand = async (output, context) => {
|
|
682
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
683
|
+
return de_CommandError(output, context);
|
|
684
|
+
}
|
|
685
|
+
const contents = smithyClient.map({
|
|
686
|
+
$metadata: deserializeMetadata(output),
|
|
687
|
+
});
|
|
688
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
689
|
+
const doc = smithyClient.take(data, {
|
|
690
|
+
targetResourceType: smithyClient._json,
|
|
691
|
+
});
|
|
692
|
+
Object.assign(contents, doc);
|
|
693
|
+
return contents;
|
|
694
|
+
};
|
|
695
|
+
const de_ListActionsCommand = async (output, context) => {
|
|
696
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
697
|
+
return de_CommandError(output, context);
|
|
698
|
+
}
|
|
699
|
+
const contents = smithyClient.map({
|
|
700
|
+
$metadata: deserializeMetadata(output),
|
|
701
|
+
});
|
|
702
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
703
|
+
const doc = smithyClient.take(data, {
|
|
704
|
+
actions: smithyClient._json,
|
|
705
|
+
nextToken: smithyClient.expectString,
|
|
706
|
+
});
|
|
707
|
+
Object.assign(contents, doc);
|
|
708
|
+
return contents;
|
|
709
|
+
};
|
|
710
|
+
const de_ListExperimentResolvedTargetsCommand = async (output, context) => {
|
|
711
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
712
|
+
return de_CommandError(output, context);
|
|
713
|
+
}
|
|
714
|
+
const contents = smithyClient.map({
|
|
715
|
+
$metadata: deserializeMetadata(output),
|
|
716
|
+
});
|
|
717
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
718
|
+
const doc = smithyClient.take(data, {
|
|
719
|
+
nextToken: smithyClient.expectString,
|
|
720
|
+
resolvedTargets: smithyClient._json,
|
|
721
|
+
});
|
|
722
|
+
Object.assign(contents, doc);
|
|
723
|
+
return contents;
|
|
724
|
+
};
|
|
725
|
+
const de_ListExperimentsCommand = async (output, context) => {
|
|
726
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
727
|
+
return de_CommandError(output, context);
|
|
728
|
+
}
|
|
729
|
+
const contents = smithyClient.map({
|
|
730
|
+
$metadata: deserializeMetadata(output),
|
|
731
|
+
});
|
|
732
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
733
|
+
const doc = smithyClient.take(data, {
|
|
734
|
+
experiments: (_) => de_ExperimentSummaryList(_),
|
|
735
|
+
nextToken: smithyClient.expectString,
|
|
736
|
+
});
|
|
737
|
+
Object.assign(contents, doc);
|
|
738
|
+
return contents;
|
|
739
|
+
};
|
|
740
|
+
const de_ListExperimentTargetAccountConfigurationsCommand = async (output, context) => {
|
|
741
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
742
|
+
return de_CommandError(output, context);
|
|
743
|
+
}
|
|
744
|
+
const contents = smithyClient.map({
|
|
745
|
+
$metadata: deserializeMetadata(output),
|
|
746
|
+
});
|
|
747
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
748
|
+
const doc = smithyClient.take(data, {
|
|
749
|
+
nextToken: smithyClient.expectString,
|
|
750
|
+
targetAccountConfigurations: smithyClient._json,
|
|
751
|
+
});
|
|
752
|
+
Object.assign(contents, doc);
|
|
753
|
+
return contents;
|
|
754
|
+
};
|
|
755
|
+
const de_ListExperimentTemplatesCommand = async (output, context) => {
|
|
756
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
757
|
+
return de_CommandError(output, context);
|
|
758
|
+
}
|
|
759
|
+
const contents = smithyClient.map({
|
|
760
|
+
$metadata: deserializeMetadata(output),
|
|
761
|
+
});
|
|
762
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
763
|
+
const doc = smithyClient.take(data, {
|
|
764
|
+
experimentTemplates: (_) => de_ExperimentTemplateSummaryList(_),
|
|
765
|
+
nextToken: smithyClient.expectString,
|
|
766
|
+
});
|
|
767
|
+
Object.assign(contents, doc);
|
|
768
|
+
return contents;
|
|
769
|
+
};
|
|
770
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
771
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
772
|
+
return de_CommandError(output, context);
|
|
773
|
+
}
|
|
774
|
+
const contents = smithyClient.map({
|
|
775
|
+
$metadata: deserializeMetadata(output),
|
|
776
|
+
});
|
|
777
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
778
|
+
const doc = smithyClient.take(data, {
|
|
779
|
+
tags: smithyClient._json,
|
|
780
|
+
});
|
|
781
|
+
Object.assign(contents, doc);
|
|
782
|
+
return contents;
|
|
783
|
+
};
|
|
784
|
+
const de_ListTargetAccountConfigurationsCommand = async (output, context) => {
|
|
785
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
786
|
+
return de_CommandError(output, context);
|
|
787
|
+
}
|
|
788
|
+
const contents = smithyClient.map({
|
|
789
|
+
$metadata: deserializeMetadata(output),
|
|
790
|
+
});
|
|
791
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
792
|
+
const doc = smithyClient.take(data, {
|
|
793
|
+
nextToken: smithyClient.expectString,
|
|
794
|
+
targetAccountConfigurations: smithyClient._json,
|
|
795
|
+
});
|
|
796
|
+
Object.assign(contents, doc);
|
|
797
|
+
return contents;
|
|
798
|
+
};
|
|
799
|
+
const de_ListTargetResourceTypesCommand = async (output, context) => {
|
|
800
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
801
|
+
return de_CommandError(output, context);
|
|
802
|
+
}
|
|
803
|
+
const contents = smithyClient.map({
|
|
804
|
+
$metadata: deserializeMetadata(output),
|
|
805
|
+
});
|
|
806
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
807
|
+
const doc = smithyClient.take(data, {
|
|
808
|
+
nextToken: smithyClient.expectString,
|
|
809
|
+
targetResourceTypes: smithyClient._json,
|
|
810
|
+
});
|
|
811
|
+
Object.assign(contents, doc);
|
|
812
|
+
return contents;
|
|
813
|
+
};
|
|
814
|
+
const de_StartExperimentCommand = async (output, context) => {
|
|
815
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
816
|
+
return de_CommandError(output, context);
|
|
817
|
+
}
|
|
818
|
+
const contents = smithyClient.map({
|
|
819
|
+
$metadata: deserializeMetadata(output),
|
|
820
|
+
});
|
|
821
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
822
|
+
const doc = smithyClient.take(data, {
|
|
823
|
+
experiment: (_) => de_Experiment(_),
|
|
824
|
+
});
|
|
825
|
+
Object.assign(contents, doc);
|
|
826
|
+
return contents;
|
|
827
|
+
};
|
|
828
|
+
const de_StopExperimentCommand = async (output, context) => {
|
|
829
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
830
|
+
return de_CommandError(output, context);
|
|
831
|
+
}
|
|
832
|
+
const contents = smithyClient.map({
|
|
833
|
+
$metadata: deserializeMetadata(output),
|
|
834
|
+
});
|
|
835
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
836
|
+
const doc = smithyClient.take(data, {
|
|
837
|
+
experiment: (_) => de_Experiment(_),
|
|
838
|
+
});
|
|
839
|
+
Object.assign(contents, doc);
|
|
840
|
+
return contents;
|
|
841
|
+
};
|
|
842
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
843
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
844
|
+
return de_CommandError(output, context);
|
|
845
|
+
}
|
|
846
|
+
const contents = smithyClient.map({
|
|
847
|
+
$metadata: deserializeMetadata(output),
|
|
848
|
+
});
|
|
849
|
+
await smithyClient.collectBody(output.body, context);
|
|
850
|
+
return contents;
|
|
851
|
+
};
|
|
852
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
853
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
854
|
+
return de_CommandError(output, context);
|
|
855
|
+
}
|
|
856
|
+
const contents = smithyClient.map({
|
|
857
|
+
$metadata: deserializeMetadata(output),
|
|
858
|
+
});
|
|
859
|
+
await smithyClient.collectBody(output.body, context);
|
|
860
|
+
return contents;
|
|
861
|
+
};
|
|
862
|
+
const de_UpdateExperimentTemplateCommand = async (output, context) => {
|
|
863
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
864
|
+
return de_CommandError(output, context);
|
|
865
|
+
}
|
|
866
|
+
const contents = smithyClient.map({
|
|
867
|
+
$metadata: deserializeMetadata(output),
|
|
868
|
+
});
|
|
869
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
870
|
+
const doc = smithyClient.take(data, {
|
|
871
|
+
experimentTemplate: (_) => de_ExperimentTemplate(_),
|
|
872
|
+
});
|
|
873
|
+
Object.assign(contents, doc);
|
|
874
|
+
return contents;
|
|
875
|
+
};
|
|
876
|
+
const de_UpdateSafetyLeverStateCommand = async (output, context) => {
|
|
877
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
878
|
+
return de_CommandError(output, context);
|
|
879
|
+
}
|
|
880
|
+
const contents = smithyClient.map({
|
|
881
|
+
$metadata: deserializeMetadata(output),
|
|
882
|
+
});
|
|
883
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
884
|
+
const doc = smithyClient.take(data, {
|
|
885
|
+
safetyLever: smithyClient._json,
|
|
886
|
+
});
|
|
887
|
+
Object.assign(contents, doc);
|
|
888
|
+
return contents;
|
|
889
|
+
};
|
|
890
|
+
const de_UpdateTargetAccountConfigurationCommand = async (output, context) => {
|
|
891
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
892
|
+
return de_CommandError(output, context);
|
|
893
|
+
}
|
|
894
|
+
const contents = smithyClient.map({
|
|
895
|
+
$metadata: deserializeMetadata(output),
|
|
896
|
+
});
|
|
897
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
898
|
+
const doc = smithyClient.take(data, {
|
|
899
|
+
targetAccountConfiguration: smithyClient._json,
|
|
900
|
+
});
|
|
901
|
+
Object.assign(contents, doc);
|
|
902
|
+
return contents;
|
|
903
|
+
};
|
|
904
|
+
const de_CommandError = async (output, context) => {
|
|
905
|
+
const parsedOutput = {
|
|
906
|
+
...output,
|
|
907
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
908
|
+
};
|
|
909
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
910
|
+
switch (errorCode) {
|
|
911
|
+
case "ConflictException":
|
|
912
|
+
case "com.amazonaws.fis#ConflictException":
|
|
913
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
914
|
+
case "ResourceNotFoundException":
|
|
915
|
+
case "com.amazonaws.fis#ResourceNotFoundException":
|
|
916
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
917
|
+
case "ServiceQuotaExceededException":
|
|
918
|
+
case "com.amazonaws.fis#ServiceQuotaExceededException":
|
|
919
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
920
|
+
case "ValidationException":
|
|
921
|
+
case "com.amazonaws.fis#ValidationException":
|
|
922
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
923
|
+
default:
|
|
924
|
+
const parsedBody = parsedOutput.body;
|
|
925
|
+
return throwDefaultError({
|
|
926
|
+
output,
|
|
927
|
+
parsedBody,
|
|
928
|
+
errorCode,
|
|
929
|
+
});
|
|
930
|
+
}
|
|
931
|
+
};
|
|
932
|
+
const throwDefaultError = smithyClient.withBaseException(FisServiceException);
|
|
933
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
934
|
+
const contents = smithyClient.map({});
|
|
935
|
+
const data = parsedOutput.body;
|
|
936
|
+
const doc = smithyClient.take(data, {
|
|
937
|
+
message: smithyClient.expectString,
|
|
938
|
+
});
|
|
939
|
+
Object.assign(contents, doc);
|
|
940
|
+
const exception = new ConflictException({
|
|
941
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
942
|
+
...contents,
|
|
943
|
+
});
|
|
944
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
945
|
+
};
|
|
946
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
947
|
+
const contents = smithyClient.map({});
|
|
948
|
+
const data = parsedOutput.body;
|
|
949
|
+
const doc = smithyClient.take(data, {
|
|
950
|
+
message: smithyClient.expectString,
|
|
951
|
+
});
|
|
952
|
+
Object.assign(contents, doc);
|
|
953
|
+
const exception = new ResourceNotFoundException({
|
|
954
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
955
|
+
...contents,
|
|
956
|
+
});
|
|
957
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
958
|
+
};
|
|
959
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
960
|
+
const contents = smithyClient.map({});
|
|
961
|
+
const data = parsedOutput.body;
|
|
962
|
+
const doc = smithyClient.take(data, {
|
|
963
|
+
message: smithyClient.expectString,
|
|
964
|
+
});
|
|
965
|
+
Object.assign(contents, doc);
|
|
966
|
+
const exception = new ServiceQuotaExceededException({
|
|
967
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
968
|
+
...contents,
|
|
969
|
+
});
|
|
970
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
971
|
+
};
|
|
972
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
973
|
+
const contents = smithyClient.map({});
|
|
974
|
+
const data = parsedOutput.body;
|
|
975
|
+
const doc = smithyClient.take(data, {
|
|
976
|
+
message: smithyClient.expectString,
|
|
977
|
+
});
|
|
978
|
+
Object.assign(contents, doc);
|
|
979
|
+
const exception = new ValidationException({
|
|
980
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
981
|
+
...contents,
|
|
982
|
+
});
|
|
983
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
984
|
+
};
|
|
985
|
+
const de_Experiment = (output, context) => {
|
|
986
|
+
return smithyClient.take(output, {
|
|
987
|
+
actions: (_) => de_ExperimentActionMap(_),
|
|
988
|
+
arn: smithyClient.expectString,
|
|
989
|
+
creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
990
|
+
endTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
991
|
+
experimentOptions: smithyClient._json,
|
|
992
|
+
experimentReport: smithyClient._json,
|
|
993
|
+
experimentReportConfiguration: smithyClient._json,
|
|
994
|
+
experimentTemplateId: smithyClient.expectString,
|
|
995
|
+
id: smithyClient.expectString,
|
|
996
|
+
logConfiguration: smithyClient._json,
|
|
997
|
+
roleArn: smithyClient.expectString,
|
|
998
|
+
startTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
999
|
+
state: smithyClient._json,
|
|
1000
|
+
stopConditions: smithyClient._json,
|
|
1001
|
+
tags: smithyClient._json,
|
|
1002
|
+
targetAccountConfigurationsCount: smithyClient.expectLong,
|
|
1003
|
+
targets: smithyClient._json,
|
|
1004
|
+
});
|
|
1005
|
+
};
|
|
1006
|
+
const de_ExperimentAction = (output, context) => {
|
|
1007
|
+
return smithyClient.take(output, {
|
|
1008
|
+
actionId: smithyClient.expectString,
|
|
1009
|
+
description: smithyClient.expectString,
|
|
1010
|
+
endTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1011
|
+
parameters: smithyClient._json,
|
|
1012
|
+
startAfter: smithyClient._json,
|
|
1013
|
+
startTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1014
|
+
state: smithyClient._json,
|
|
1015
|
+
targets: smithyClient._json,
|
|
1016
|
+
});
|
|
1017
|
+
};
|
|
1018
|
+
const de_ExperimentActionMap = (output, context) => {
|
|
1019
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1020
|
+
if (value === null) {
|
|
1021
|
+
return acc;
|
|
1022
|
+
}
|
|
1023
|
+
acc[key] = de_ExperimentAction(value);
|
|
1024
|
+
return acc;
|
|
1025
|
+
}, {});
|
|
1026
|
+
};
|
|
1027
|
+
const de_ExperimentSummary = (output, context) => {
|
|
1028
|
+
return smithyClient.take(output, {
|
|
1029
|
+
arn: smithyClient.expectString,
|
|
1030
|
+
creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1031
|
+
experimentOptions: smithyClient._json,
|
|
1032
|
+
experimentTemplateId: smithyClient.expectString,
|
|
1033
|
+
id: smithyClient.expectString,
|
|
1034
|
+
state: smithyClient._json,
|
|
1035
|
+
tags: smithyClient._json,
|
|
1036
|
+
});
|
|
1037
|
+
};
|
|
1038
|
+
const de_ExperimentSummaryList = (output, context) => {
|
|
1039
|
+
const retVal = (output || [])
|
|
1040
|
+
.filter((e) => e != null)
|
|
1041
|
+
.map((entry) => {
|
|
1042
|
+
return de_ExperimentSummary(entry);
|
|
1043
|
+
});
|
|
1044
|
+
return retVal;
|
|
1045
|
+
};
|
|
1046
|
+
const de_ExperimentTemplate = (output, context) => {
|
|
1047
|
+
return smithyClient.take(output, {
|
|
1048
|
+
actions: smithyClient._json,
|
|
1049
|
+
arn: smithyClient.expectString,
|
|
1050
|
+
creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1051
|
+
description: smithyClient.expectString,
|
|
1052
|
+
experimentOptions: smithyClient._json,
|
|
1053
|
+
experimentReportConfiguration: smithyClient._json,
|
|
1054
|
+
id: smithyClient.expectString,
|
|
1055
|
+
lastUpdateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1056
|
+
logConfiguration: smithyClient._json,
|
|
1057
|
+
roleArn: smithyClient.expectString,
|
|
1058
|
+
stopConditions: smithyClient._json,
|
|
1059
|
+
tags: smithyClient._json,
|
|
1060
|
+
targetAccountConfigurationsCount: smithyClient.expectLong,
|
|
1061
|
+
targets: smithyClient._json,
|
|
1062
|
+
});
|
|
1063
|
+
};
|
|
1064
|
+
const de_ExperimentTemplateSummary = (output, context) => {
|
|
1065
|
+
return smithyClient.take(output, {
|
|
1066
|
+
arn: smithyClient.expectString,
|
|
1067
|
+
creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1068
|
+
description: smithyClient.expectString,
|
|
1069
|
+
id: smithyClient.expectString,
|
|
1070
|
+
lastUpdateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1071
|
+
tags: smithyClient._json,
|
|
1072
|
+
});
|
|
1073
|
+
};
|
|
1074
|
+
const de_ExperimentTemplateSummaryList = (output, context) => {
|
|
1075
|
+
const retVal = (output || [])
|
|
1076
|
+
.filter((e) => e != null)
|
|
1077
|
+
.map((entry) => {
|
|
1078
|
+
return de_ExperimentTemplateSummary(entry);
|
|
1079
|
+
});
|
|
1080
|
+
return retVal;
|
|
1081
|
+
};
|
|
1082
|
+
const deserializeMetadata = (output) => ({
|
|
1083
|
+
httpStatusCode: output.statusCode,
|
|
1084
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1085
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1086
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1087
|
+
});
|
|
1088
|
+
const _eTI = "experimentTemplateId";
|
|
1089
|
+
const _mR = "maxResults";
|
|
1090
|
+
const _nT = "nextToken";
|
|
1091
|
+
const _tK = "tagKeys";
|
|
1092
|
+
const _tN = "targetName";
|
|
1093
|
+
|
|
1094
|
+
class CreateExperimentTemplateCommand extends smithyClient.Command
|
|
1095
|
+
.classBuilder()
|
|
1096
|
+
.ep(commonParams)
|
|
1097
|
+
.m(function (Command, cs, config, o) {
|
|
1098
|
+
return [
|
|
1099
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1100
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1101
|
+
];
|
|
1102
|
+
})
|
|
1103
|
+
.s("FaultInjectionSimulator", "CreateExperimentTemplate", {})
|
|
1104
|
+
.n("FisClient", "CreateExperimentTemplateCommand")
|
|
1105
|
+
.f(void 0, void 0)
|
|
1106
|
+
.ser(se_CreateExperimentTemplateCommand)
|
|
1107
|
+
.de(de_CreateExperimentTemplateCommand)
|
|
1108
|
+
.build() {
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
class CreateTargetAccountConfigurationCommand extends smithyClient.Command
|
|
1112
|
+
.classBuilder()
|
|
1113
|
+
.ep(commonParams)
|
|
1114
|
+
.m(function (Command, cs, config, o) {
|
|
1115
|
+
return [
|
|
1116
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1117
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1118
|
+
];
|
|
1119
|
+
})
|
|
1120
|
+
.s("FaultInjectionSimulator", "CreateTargetAccountConfiguration", {})
|
|
1121
|
+
.n("FisClient", "CreateTargetAccountConfigurationCommand")
|
|
1122
|
+
.f(void 0, void 0)
|
|
1123
|
+
.ser(se_CreateTargetAccountConfigurationCommand)
|
|
1124
|
+
.de(de_CreateTargetAccountConfigurationCommand)
|
|
1125
|
+
.build() {
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
class DeleteExperimentTemplateCommand extends smithyClient.Command
|
|
1129
|
+
.classBuilder()
|
|
1130
|
+
.ep(commonParams)
|
|
1131
|
+
.m(function (Command, cs, config, o) {
|
|
1132
|
+
return [
|
|
1133
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1134
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1135
|
+
];
|
|
1136
|
+
})
|
|
1137
|
+
.s("FaultInjectionSimulator", "DeleteExperimentTemplate", {})
|
|
1138
|
+
.n("FisClient", "DeleteExperimentTemplateCommand")
|
|
1139
|
+
.f(void 0, void 0)
|
|
1140
|
+
.ser(se_DeleteExperimentTemplateCommand)
|
|
1141
|
+
.de(de_DeleteExperimentTemplateCommand)
|
|
1142
|
+
.build() {
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
class DeleteTargetAccountConfigurationCommand extends smithyClient.Command
|
|
1146
|
+
.classBuilder()
|
|
1147
|
+
.ep(commonParams)
|
|
1148
|
+
.m(function (Command, cs, config, o) {
|
|
1149
|
+
return [
|
|
1150
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1151
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1152
|
+
];
|
|
1153
|
+
})
|
|
1154
|
+
.s("FaultInjectionSimulator", "DeleteTargetAccountConfiguration", {})
|
|
1155
|
+
.n("FisClient", "DeleteTargetAccountConfigurationCommand")
|
|
1156
|
+
.f(void 0, void 0)
|
|
1157
|
+
.ser(se_DeleteTargetAccountConfigurationCommand)
|
|
1158
|
+
.de(de_DeleteTargetAccountConfigurationCommand)
|
|
1159
|
+
.build() {
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
class GetActionCommand extends smithyClient.Command
|
|
1163
|
+
.classBuilder()
|
|
1164
|
+
.ep(commonParams)
|
|
1165
|
+
.m(function (Command, cs, config, o) {
|
|
1166
|
+
return [
|
|
1167
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1168
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1169
|
+
];
|
|
1170
|
+
})
|
|
1171
|
+
.s("FaultInjectionSimulator", "GetAction", {})
|
|
1172
|
+
.n("FisClient", "GetActionCommand")
|
|
1173
|
+
.f(void 0, void 0)
|
|
1174
|
+
.ser(se_GetActionCommand)
|
|
1175
|
+
.de(de_GetActionCommand)
|
|
1176
|
+
.build() {
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
class GetExperimentCommand extends smithyClient.Command
|
|
1180
|
+
.classBuilder()
|
|
1181
|
+
.ep(commonParams)
|
|
1182
|
+
.m(function (Command, cs, config, o) {
|
|
1183
|
+
return [
|
|
1184
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1185
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1186
|
+
];
|
|
1187
|
+
})
|
|
1188
|
+
.s("FaultInjectionSimulator", "GetExperiment", {})
|
|
1189
|
+
.n("FisClient", "GetExperimentCommand")
|
|
1190
|
+
.f(void 0, void 0)
|
|
1191
|
+
.ser(se_GetExperimentCommand)
|
|
1192
|
+
.de(de_GetExperimentCommand)
|
|
1193
|
+
.build() {
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
class GetExperimentTargetAccountConfigurationCommand extends smithyClient.Command
|
|
1197
|
+
.classBuilder()
|
|
1198
|
+
.ep(commonParams)
|
|
1199
|
+
.m(function (Command, cs, config, o) {
|
|
1200
|
+
return [
|
|
1201
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1202
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1203
|
+
];
|
|
1204
|
+
})
|
|
1205
|
+
.s("FaultInjectionSimulator", "GetExperimentTargetAccountConfiguration", {})
|
|
1206
|
+
.n("FisClient", "GetExperimentTargetAccountConfigurationCommand")
|
|
1207
|
+
.f(void 0, void 0)
|
|
1208
|
+
.ser(se_GetExperimentTargetAccountConfigurationCommand)
|
|
1209
|
+
.de(de_GetExperimentTargetAccountConfigurationCommand)
|
|
1210
|
+
.build() {
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
class GetExperimentTemplateCommand extends smithyClient.Command
|
|
1214
|
+
.classBuilder()
|
|
1215
|
+
.ep(commonParams)
|
|
1216
|
+
.m(function (Command, cs, config, o) {
|
|
1217
|
+
return [
|
|
1218
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1219
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1220
|
+
];
|
|
1221
|
+
})
|
|
1222
|
+
.s("FaultInjectionSimulator", "GetExperimentTemplate", {})
|
|
1223
|
+
.n("FisClient", "GetExperimentTemplateCommand")
|
|
1224
|
+
.f(void 0, void 0)
|
|
1225
|
+
.ser(se_GetExperimentTemplateCommand)
|
|
1226
|
+
.de(de_GetExperimentTemplateCommand)
|
|
1227
|
+
.build() {
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
class GetSafetyLeverCommand extends smithyClient.Command
|
|
1231
|
+
.classBuilder()
|
|
1232
|
+
.ep(commonParams)
|
|
1233
|
+
.m(function (Command, cs, config, o) {
|
|
1234
|
+
return [
|
|
1235
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1236
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1237
|
+
];
|
|
1238
|
+
})
|
|
1239
|
+
.s("FaultInjectionSimulator", "GetSafetyLever", {})
|
|
1240
|
+
.n("FisClient", "GetSafetyLeverCommand")
|
|
1241
|
+
.f(void 0, void 0)
|
|
1242
|
+
.ser(se_GetSafetyLeverCommand)
|
|
1243
|
+
.de(de_GetSafetyLeverCommand)
|
|
1244
|
+
.build() {
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
class GetTargetAccountConfigurationCommand extends smithyClient.Command
|
|
1248
|
+
.classBuilder()
|
|
1249
|
+
.ep(commonParams)
|
|
1250
|
+
.m(function (Command, cs, config, o) {
|
|
1251
|
+
return [
|
|
1252
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1253
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1254
|
+
];
|
|
1255
|
+
})
|
|
1256
|
+
.s("FaultInjectionSimulator", "GetTargetAccountConfiguration", {})
|
|
1257
|
+
.n("FisClient", "GetTargetAccountConfigurationCommand")
|
|
1258
|
+
.f(void 0, void 0)
|
|
1259
|
+
.ser(se_GetTargetAccountConfigurationCommand)
|
|
1260
|
+
.de(de_GetTargetAccountConfigurationCommand)
|
|
1261
|
+
.build() {
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
class GetTargetResourceTypeCommand extends smithyClient.Command
|
|
1265
|
+
.classBuilder()
|
|
1266
|
+
.ep(commonParams)
|
|
1267
|
+
.m(function (Command, cs, config, o) {
|
|
1268
|
+
return [
|
|
1269
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1270
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1271
|
+
];
|
|
1272
|
+
})
|
|
1273
|
+
.s("FaultInjectionSimulator", "GetTargetResourceType", {})
|
|
1274
|
+
.n("FisClient", "GetTargetResourceTypeCommand")
|
|
1275
|
+
.f(void 0, void 0)
|
|
1276
|
+
.ser(se_GetTargetResourceTypeCommand)
|
|
1277
|
+
.de(de_GetTargetResourceTypeCommand)
|
|
1278
|
+
.build() {
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
class ListActionsCommand extends smithyClient.Command
|
|
1282
|
+
.classBuilder()
|
|
1283
|
+
.ep(commonParams)
|
|
1284
|
+
.m(function (Command, cs, config, o) {
|
|
1285
|
+
return [
|
|
1286
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1287
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1288
|
+
];
|
|
1289
|
+
})
|
|
1290
|
+
.s("FaultInjectionSimulator", "ListActions", {})
|
|
1291
|
+
.n("FisClient", "ListActionsCommand")
|
|
1292
|
+
.f(void 0, void 0)
|
|
1293
|
+
.ser(se_ListActionsCommand)
|
|
1294
|
+
.de(de_ListActionsCommand)
|
|
1295
|
+
.build() {
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
class ListExperimentResolvedTargetsCommand extends smithyClient.Command
|
|
1299
|
+
.classBuilder()
|
|
1300
|
+
.ep(commonParams)
|
|
1301
|
+
.m(function (Command, cs, config, o) {
|
|
1302
|
+
return [
|
|
1303
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1304
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1305
|
+
];
|
|
1306
|
+
})
|
|
1307
|
+
.s("FaultInjectionSimulator", "ListExperimentResolvedTargets", {})
|
|
1308
|
+
.n("FisClient", "ListExperimentResolvedTargetsCommand")
|
|
1309
|
+
.f(void 0, void 0)
|
|
1310
|
+
.ser(se_ListExperimentResolvedTargetsCommand)
|
|
1311
|
+
.de(de_ListExperimentResolvedTargetsCommand)
|
|
1312
|
+
.build() {
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
class ListExperimentsCommand extends smithyClient.Command
|
|
1316
|
+
.classBuilder()
|
|
1317
|
+
.ep(commonParams)
|
|
1318
|
+
.m(function (Command, cs, config, o) {
|
|
1319
|
+
return [
|
|
1320
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1321
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1322
|
+
];
|
|
1323
|
+
})
|
|
1324
|
+
.s("FaultInjectionSimulator", "ListExperiments", {})
|
|
1325
|
+
.n("FisClient", "ListExperimentsCommand")
|
|
1326
|
+
.f(void 0, void 0)
|
|
1327
|
+
.ser(se_ListExperimentsCommand)
|
|
1328
|
+
.de(de_ListExperimentsCommand)
|
|
1329
|
+
.build() {
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
class ListExperimentTargetAccountConfigurationsCommand extends smithyClient.Command
|
|
1333
|
+
.classBuilder()
|
|
1334
|
+
.ep(commonParams)
|
|
1335
|
+
.m(function (Command, cs, config, o) {
|
|
1336
|
+
return [
|
|
1337
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1338
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1339
|
+
];
|
|
1340
|
+
})
|
|
1341
|
+
.s("FaultInjectionSimulator", "ListExperimentTargetAccountConfigurations", {})
|
|
1342
|
+
.n("FisClient", "ListExperimentTargetAccountConfigurationsCommand")
|
|
1343
|
+
.f(void 0, void 0)
|
|
1344
|
+
.ser(se_ListExperimentTargetAccountConfigurationsCommand)
|
|
1345
|
+
.de(de_ListExperimentTargetAccountConfigurationsCommand)
|
|
1346
|
+
.build() {
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
class ListExperimentTemplatesCommand extends smithyClient.Command
|
|
1350
|
+
.classBuilder()
|
|
1351
|
+
.ep(commonParams)
|
|
1352
|
+
.m(function (Command, cs, config, o) {
|
|
1353
|
+
return [
|
|
1354
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1355
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1356
|
+
];
|
|
1357
|
+
})
|
|
1358
|
+
.s("FaultInjectionSimulator", "ListExperimentTemplates", {})
|
|
1359
|
+
.n("FisClient", "ListExperimentTemplatesCommand")
|
|
1360
|
+
.f(void 0, void 0)
|
|
1361
|
+
.ser(se_ListExperimentTemplatesCommand)
|
|
1362
|
+
.de(de_ListExperimentTemplatesCommand)
|
|
1363
|
+
.build() {
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
1367
|
+
.classBuilder()
|
|
1368
|
+
.ep(commonParams)
|
|
1369
|
+
.m(function (Command, cs, config, o) {
|
|
1370
|
+
return [
|
|
1371
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1372
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1373
|
+
];
|
|
1374
|
+
})
|
|
1375
|
+
.s("FaultInjectionSimulator", "ListTagsForResource", {})
|
|
1376
|
+
.n("FisClient", "ListTagsForResourceCommand")
|
|
1377
|
+
.f(void 0, void 0)
|
|
1378
|
+
.ser(se_ListTagsForResourceCommand)
|
|
1379
|
+
.de(de_ListTagsForResourceCommand)
|
|
1380
|
+
.build() {
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
class ListTargetAccountConfigurationsCommand extends smithyClient.Command
|
|
1384
|
+
.classBuilder()
|
|
1385
|
+
.ep(commonParams)
|
|
1386
|
+
.m(function (Command, cs, config, o) {
|
|
1387
|
+
return [
|
|
1388
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1389
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1390
|
+
];
|
|
1391
|
+
})
|
|
1392
|
+
.s("FaultInjectionSimulator", "ListTargetAccountConfigurations", {})
|
|
1393
|
+
.n("FisClient", "ListTargetAccountConfigurationsCommand")
|
|
1394
|
+
.f(void 0, void 0)
|
|
1395
|
+
.ser(se_ListTargetAccountConfigurationsCommand)
|
|
1396
|
+
.de(de_ListTargetAccountConfigurationsCommand)
|
|
1397
|
+
.build() {
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
class ListTargetResourceTypesCommand extends smithyClient.Command
|
|
1401
|
+
.classBuilder()
|
|
1402
|
+
.ep(commonParams)
|
|
1403
|
+
.m(function (Command, cs, config, o) {
|
|
1404
|
+
return [
|
|
1405
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1406
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1407
|
+
];
|
|
1408
|
+
})
|
|
1409
|
+
.s("FaultInjectionSimulator", "ListTargetResourceTypes", {})
|
|
1410
|
+
.n("FisClient", "ListTargetResourceTypesCommand")
|
|
1411
|
+
.f(void 0, void 0)
|
|
1412
|
+
.ser(se_ListTargetResourceTypesCommand)
|
|
1413
|
+
.de(de_ListTargetResourceTypesCommand)
|
|
1414
|
+
.build() {
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
class StartExperimentCommand extends smithyClient.Command
|
|
1418
|
+
.classBuilder()
|
|
1419
|
+
.ep(commonParams)
|
|
1420
|
+
.m(function (Command, cs, config, o) {
|
|
1421
|
+
return [
|
|
1422
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1423
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1424
|
+
];
|
|
1425
|
+
})
|
|
1426
|
+
.s("FaultInjectionSimulator", "StartExperiment", {})
|
|
1427
|
+
.n("FisClient", "StartExperimentCommand")
|
|
1428
|
+
.f(void 0, void 0)
|
|
1429
|
+
.ser(se_StartExperimentCommand)
|
|
1430
|
+
.de(de_StartExperimentCommand)
|
|
1431
|
+
.build() {
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
class StopExperimentCommand extends smithyClient.Command
|
|
1435
|
+
.classBuilder()
|
|
1436
|
+
.ep(commonParams)
|
|
1437
|
+
.m(function (Command, cs, config, o) {
|
|
1438
|
+
return [
|
|
1439
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1440
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1441
|
+
];
|
|
1442
|
+
})
|
|
1443
|
+
.s("FaultInjectionSimulator", "StopExperiment", {})
|
|
1444
|
+
.n("FisClient", "StopExperimentCommand")
|
|
1445
|
+
.f(void 0, void 0)
|
|
1446
|
+
.ser(se_StopExperimentCommand)
|
|
1447
|
+
.de(de_StopExperimentCommand)
|
|
1448
|
+
.build() {
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
class TagResourceCommand extends smithyClient.Command
|
|
1452
|
+
.classBuilder()
|
|
1453
|
+
.ep(commonParams)
|
|
1454
|
+
.m(function (Command, cs, config, o) {
|
|
1455
|
+
return [
|
|
1456
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1457
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1458
|
+
];
|
|
1459
|
+
})
|
|
1460
|
+
.s("FaultInjectionSimulator", "TagResource", {})
|
|
1461
|
+
.n("FisClient", "TagResourceCommand")
|
|
1462
|
+
.f(void 0, void 0)
|
|
1463
|
+
.ser(se_TagResourceCommand)
|
|
1464
|
+
.de(de_TagResourceCommand)
|
|
1465
|
+
.build() {
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
1469
|
+
.classBuilder()
|
|
1470
|
+
.ep(commonParams)
|
|
1471
|
+
.m(function (Command, cs, config, o) {
|
|
1472
|
+
return [
|
|
1473
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1474
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1475
|
+
];
|
|
1476
|
+
})
|
|
1477
|
+
.s("FaultInjectionSimulator", "UntagResource", {})
|
|
1478
|
+
.n("FisClient", "UntagResourceCommand")
|
|
1479
|
+
.f(void 0, void 0)
|
|
1480
|
+
.ser(se_UntagResourceCommand)
|
|
1481
|
+
.de(de_UntagResourceCommand)
|
|
1482
|
+
.build() {
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
class UpdateExperimentTemplateCommand extends smithyClient.Command
|
|
1486
|
+
.classBuilder()
|
|
1487
|
+
.ep(commonParams)
|
|
1488
|
+
.m(function (Command, cs, config, o) {
|
|
1489
|
+
return [
|
|
1490
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1491
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1492
|
+
];
|
|
1493
|
+
})
|
|
1494
|
+
.s("FaultInjectionSimulator", "UpdateExperimentTemplate", {})
|
|
1495
|
+
.n("FisClient", "UpdateExperimentTemplateCommand")
|
|
1496
|
+
.f(void 0, void 0)
|
|
1497
|
+
.ser(se_UpdateExperimentTemplateCommand)
|
|
1498
|
+
.de(de_UpdateExperimentTemplateCommand)
|
|
1499
|
+
.build() {
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
class UpdateSafetyLeverStateCommand extends smithyClient.Command
|
|
1503
|
+
.classBuilder()
|
|
1504
|
+
.ep(commonParams)
|
|
1505
|
+
.m(function (Command, cs, config, o) {
|
|
1506
|
+
return [
|
|
1507
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1508
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1509
|
+
];
|
|
1510
|
+
})
|
|
1511
|
+
.s("FaultInjectionSimulator", "UpdateSafetyLeverState", {})
|
|
1512
|
+
.n("FisClient", "UpdateSafetyLeverStateCommand")
|
|
1513
|
+
.f(void 0, void 0)
|
|
1514
|
+
.ser(se_UpdateSafetyLeverStateCommand)
|
|
1515
|
+
.de(de_UpdateSafetyLeverStateCommand)
|
|
1516
|
+
.build() {
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
class UpdateTargetAccountConfigurationCommand extends smithyClient.Command
|
|
1520
|
+
.classBuilder()
|
|
1521
|
+
.ep(commonParams)
|
|
1522
|
+
.m(function (Command, cs, config, o) {
|
|
1523
|
+
return [
|
|
1524
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1525
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1526
|
+
];
|
|
1527
|
+
})
|
|
1528
|
+
.s("FaultInjectionSimulator", "UpdateTargetAccountConfiguration", {})
|
|
1529
|
+
.n("FisClient", "UpdateTargetAccountConfigurationCommand")
|
|
1530
|
+
.f(void 0, void 0)
|
|
1531
|
+
.ser(se_UpdateTargetAccountConfigurationCommand)
|
|
1532
|
+
.de(de_UpdateTargetAccountConfigurationCommand)
|
|
1533
|
+
.build() {
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
const commands = {
|
|
1537
|
+
CreateExperimentTemplateCommand,
|
|
1538
|
+
CreateTargetAccountConfigurationCommand,
|
|
1539
|
+
DeleteExperimentTemplateCommand,
|
|
1540
|
+
DeleteTargetAccountConfigurationCommand,
|
|
1541
|
+
GetActionCommand,
|
|
1542
|
+
GetExperimentCommand,
|
|
1543
|
+
GetExperimentTargetAccountConfigurationCommand,
|
|
1544
|
+
GetExperimentTemplateCommand,
|
|
1545
|
+
GetSafetyLeverCommand,
|
|
1546
|
+
GetTargetAccountConfigurationCommand,
|
|
1547
|
+
GetTargetResourceTypeCommand,
|
|
1548
|
+
ListActionsCommand,
|
|
1549
|
+
ListExperimentResolvedTargetsCommand,
|
|
1550
|
+
ListExperimentsCommand,
|
|
1551
|
+
ListExperimentTargetAccountConfigurationsCommand,
|
|
1552
|
+
ListExperimentTemplatesCommand,
|
|
1553
|
+
ListTagsForResourceCommand,
|
|
1554
|
+
ListTargetAccountConfigurationsCommand,
|
|
1555
|
+
ListTargetResourceTypesCommand,
|
|
1556
|
+
StartExperimentCommand,
|
|
1557
|
+
StopExperimentCommand,
|
|
1558
|
+
TagResourceCommand,
|
|
1559
|
+
UntagResourceCommand,
|
|
1560
|
+
UpdateExperimentTemplateCommand,
|
|
1561
|
+
UpdateSafetyLeverStateCommand,
|
|
1562
|
+
UpdateTargetAccountConfigurationCommand,
|
|
1563
|
+
};
|
|
1564
|
+
class Fis extends FisClient {
|
|
1565
|
+
}
|
|
1566
|
+
smithyClient.createAggregatedClient(commands, Fis);
|
|
1640
1567
|
|
|
1641
|
-
|
|
1642
|
-
var commands = {
|
|
1643
|
-
CreateExperimentTemplateCommand,
|
|
1644
|
-
CreateTargetAccountConfigurationCommand,
|
|
1645
|
-
DeleteExperimentTemplateCommand,
|
|
1646
|
-
DeleteTargetAccountConfigurationCommand,
|
|
1647
|
-
GetActionCommand,
|
|
1648
|
-
GetExperimentCommand,
|
|
1649
|
-
GetExperimentTargetAccountConfigurationCommand,
|
|
1650
|
-
GetExperimentTemplateCommand,
|
|
1651
|
-
GetSafetyLeverCommand,
|
|
1652
|
-
GetTargetAccountConfigurationCommand,
|
|
1653
|
-
GetTargetResourceTypeCommand,
|
|
1654
|
-
ListActionsCommand,
|
|
1655
|
-
ListExperimentResolvedTargetsCommand,
|
|
1656
|
-
ListExperimentsCommand,
|
|
1657
|
-
ListExperimentTargetAccountConfigurationsCommand,
|
|
1658
|
-
ListExperimentTemplatesCommand,
|
|
1659
|
-
ListTagsForResourceCommand,
|
|
1660
|
-
ListTargetAccountConfigurationsCommand,
|
|
1661
|
-
ListTargetResourceTypesCommand,
|
|
1662
|
-
StartExperimentCommand,
|
|
1663
|
-
StopExperimentCommand,
|
|
1664
|
-
TagResourceCommand,
|
|
1665
|
-
UntagResourceCommand,
|
|
1666
|
-
UpdateExperimentTemplateCommand,
|
|
1667
|
-
UpdateSafetyLeverStateCommand,
|
|
1668
|
-
UpdateTargetAccountConfigurationCommand
|
|
1669
|
-
};
|
|
1670
|
-
var Fis = class extends FisClient {
|
|
1671
|
-
static {
|
|
1672
|
-
__name(this, "Fis");
|
|
1673
|
-
}
|
|
1674
|
-
};
|
|
1675
|
-
(0, import_smithy_client.createAggregatedClient)(commands, Fis);
|
|
1676
|
-
|
|
1677
|
-
// src/pagination/ListActionsPaginator.ts
|
|
1678
|
-
|
|
1679
|
-
var paginateListActions = (0, import_core.createPaginator)(FisClient, ListActionsCommand, "nextToken", "nextToken", "maxResults");
|
|
1680
|
-
|
|
1681
|
-
// src/pagination/ListExperimentResolvedTargetsPaginator.ts
|
|
1682
|
-
|
|
1683
|
-
var paginateListExperimentResolvedTargets = (0, import_core.createPaginator)(FisClient, ListExperimentResolvedTargetsCommand, "nextToken", "nextToken", "maxResults");
|
|
1684
|
-
|
|
1685
|
-
// src/pagination/ListExperimentTemplatesPaginator.ts
|
|
1686
|
-
|
|
1687
|
-
var paginateListExperimentTemplates = (0, import_core.createPaginator)(FisClient, ListExperimentTemplatesCommand, "nextToken", "nextToken", "maxResults");
|
|
1688
|
-
|
|
1689
|
-
// src/pagination/ListExperimentsPaginator.ts
|
|
1568
|
+
const paginateListActions = core.createPaginator(FisClient, ListActionsCommand, "nextToken", "nextToken", "maxResults");
|
|
1690
1569
|
|
|
1691
|
-
|
|
1570
|
+
const paginateListExperimentResolvedTargets = core.createPaginator(FisClient, ListExperimentResolvedTargetsCommand, "nextToken", "nextToken", "maxResults");
|
|
1692
1571
|
|
|
1693
|
-
|
|
1572
|
+
const paginateListExperimentTemplates = core.createPaginator(FisClient, ListExperimentTemplatesCommand, "nextToken", "nextToken", "maxResults");
|
|
1694
1573
|
|
|
1695
|
-
|
|
1574
|
+
const paginateListExperiments = core.createPaginator(FisClient, ListExperimentsCommand, "nextToken", "nextToken", "maxResults");
|
|
1696
1575
|
|
|
1697
|
-
|
|
1576
|
+
const paginateListTargetAccountConfigurations = core.createPaginator(FisClient, ListTargetAccountConfigurationsCommand, "nextToken", "nextToken", "maxResults");
|
|
1698
1577
|
|
|
1699
|
-
|
|
1700
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1578
|
+
const paginateListTargetResourceTypes = core.createPaginator(FisClient, ListTargetResourceTypesCommand, "nextToken", "nextToken", "maxResults");
|
|
1701
1579
|
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
FisClient,
|
|
1706
|
-
Fis,
|
|
1707
|
-
$Command,
|
|
1708
|
-
CreateExperimentTemplateCommand,
|
|
1709
|
-
CreateTargetAccountConfigurationCommand,
|
|
1710
|
-
DeleteExperimentTemplateCommand,
|
|
1711
|
-
DeleteTargetAccountConfigurationCommand,
|
|
1712
|
-
GetActionCommand,
|
|
1713
|
-
GetExperimentCommand,
|
|
1714
|
-
GetExperimentTargetAccountConfigurationCommand,
|
|
1715
|
-
GetExperimentTemplateCommand,
|
|
1716
|
-
GetSafetyLeverCommand,
|
|
1717
|
-
GetTargetAccountConfigurationCommand,
|
|
1718
|
-
GetTargetResourceTypeCommand,
|
|
1719
|
-
ListActionsCommand,
|
|
1720
|
-
ListExperimentResolvedTargetsCommand,
|
|
1721
|
-
ListExperimentTargetAccountConfigurationsCommand,
|
|
1722
|
-
ListExperimentTemplatesCommand,
|
|
1723
|
-
ListExperimentsCommand,
|
|
1724
|
-
ListTagsForResourceCommand,
|
|
1725
|
-
ListTargetAccountConfigurationsCommand,
|
|
1726
|
-
ListTargetResourceTypesCommand,
|
|
1727
|
-
StartExperimentCommand,
|
|
1728
|
-
StopExperimentCommand,
|
|
1729
|
-
TagResourceCommand,
|
|
1730
|
-
UntagResourceCommand,
|
|
1731
|
-
UpdateExperimentTemplateCommand,
|
|
1732
|
-
UpdateSafetyLeverStateCommand,
|
|
1733
|
-
UpdateTargetAccountConfigurationCommand,
|
|
1734
|
-
paginateListActions,
|
|
1735
|
-
paginateListExperimentResolvedTargets,
|
|
1736
|
-
paginateListExperimentTemplates,
|
|
1737
|
-
paginateListExperiments,
|
|
1738
|
-
paginateListTargetAccountConfigurations,
|
|
1739
|
-
paginateListTargetResourceTypes,
|
|
1740
|
-
AccountTargeting,
|
|
1741
|
-
ActionsMode,
|
|
1742
|
-
ConflictException,
|
|
1743
|
-
EmptyTargetResolutionMode,
|
|
1744
|
-
ResourceNotFoundException,
|
|
1745
|
-
ServiceQuotaExceededException,
|
|
1746
|
-
ValidationException,
|
|
1747
|
-
ExperimentActionStatus,
|
|
1748
|
-
ExperimentReportStatus,
|
|
1749
|
-
ExperimentStatus,
|
|
1750
|
-
SafetyLeverStatus,
|
|
1751
|
-
SafetyLeverStatusInput
|
|
1580
|
+
Object.defineProperty(exports, "$Command", {
|
|
1581
|
+
enumerable: true,
|
|
1582
|
+
get: function () { return smithyClient.Command; }
|
|
1752
1583
|
});
|
|
1753
|
-
|
|
1584
|
+
Object.defineProperty(exports, "__Client", {
|
|
1585
|
+
enumerable: true,
|
|
1586
|
+
get: function () { return smithyClient.Client; }
|
|
1587
|
+
});
|
|
1588
|
+
exports.AccountTargeting = AccountTargeting;
|
|
1589
|
+
exports.ActionsMode = ActionsMode;
|
|
1590
|
+
exports.ConflictException = ConflictException;
|
|
1591
|
+
exports.CreateExperimentTemplateCommand = CreateExperimentTemplateCommand;
|
|
1592
|
+
exports.CreateTargetAccountConfigurationCommand = CreateTargetAccountConfigurationCommand;
|
|
1593
|
+
exports.DeleteExperimentTemplateCommand = DeleteExperimentTemplateCommand;
|
|
1594
|
+
exports.DeleteTargetAccountConfigurationCommand = DeleteTargetAccountConfigurationCommand;
|
|
1595
|
+
exports.EmptyTargetResolutionMode = EmptyTargetResolutionMode;
|
|
1596
|
+
exports.ExperimentActionStatus = ExperimentActionStatus;
|
|
1597
|
+
exports.ExperimentReportStatus = ExperimentReportStatus;
|
|
1598
|
+
exports.ExperimentStatus = ExperimentStatus;
|
|
1599
|
+
exports.Fis = Fis;
|
|
1600
|
+
exports.FisClient = FisClient;
|
|
1601
|
+
exports.FisServiceException = FisServiceException;
|
|
1602
|
+
exports.GetActionCommand = GetActionCommand;
|
|
1603
|
+
exports.GetExperimentCommand = GetExperimentCommand;
|
|
1604
|
+
exports.GetExperimentTargetAccountConfigurationCommand = GetExperimentTargetAccountConfigurationCommand;
|
|
1605
|
+
exports.GetExperimentTemplateCommand = GetExperimentTemplateCommand;
|
|
1606
|
+
exports.GetSafetyLeverCommand = GetSafetyLeverCommand;
|
|
1607
|
+
exports.GetTargetAccountConfigurationCommand = GetTargetAccountConfigurationCommand;
|
|
1608
|
+
exports.GetTargetResourceTypeCommand = GetTargetResourceTypeCommand;
|
|
1609
|
+
exports.ListActionsCommand = ListActionsCommand;
|
|
1610
|
+
exports.ListExperimentResolvedTargetsCommand = ListExperimentResolvedTargetsCommand;
|
|
1611
|
+
exports.ListExperimentTargetAccountConfigurationsCommand = ListExperimentTargetAccountConfigurationsCommand;
|
|
1612
|
+
exports.ListExperimentTemplatesCommand = ListExperimentTemplatesCommand;
|
|
1613
|
+
exports.ListExperimentsCommand = ListExperimentsCommand;
|
|
1614
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
1615
|
+
exports.ListTargetAccountConfigurationsCommand = ListTargetAccountConfigurationsCommand;
|
|
1616
|
+
exports.ListTargetResourceTypesCommand = ListTargetResourceTypesCommand;
|
|
1617
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1618
|
+
exports.SafetyLeverStatus = SafetyLeverStatus;
|
|
1619
|
+
exports.SafetyLeverStatusInput = SafetyLeverStatusInput;
|
|
1620
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
1621
|
+
exports.StartExperimentCommand = StartExperimentCommand;
|
|
1622
|
+
exports.StopExperimentCommand = StopExperimentCommand;
|
|
1623
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
1624
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1625
|
+
exports.UpdateExperimentTemplateCommand = UpdateExperimentTemplateCommand;
|
|
1626
|
+
exports.UpdateSafetyLeverStateCommand = UpdateSafetyLeverStateCommand;
|
|
1627
|
+
exports.UpdateTargetAccountConfigurationCommand = UpdateTargetAccountConfigurationCommand;
|
|
1628
|
+
exports.ValidationException = ValidationException;
|
|
1629
|
+
exports.paginateListActions = paginateListActions;
|
|
1630
|
+
exports.paginateListExperimentResolvedTargets = paginateListExperimentResolvedTargets;
|
|
1631
|
+
exports.paginateListExperimentTemplates = paginateListExperimentTemplates;
|
|
1632
|
+
exports.paginateListExperiments = paginateListExperiments;
|
|
1633
|
+
exports.paginateListTargetAccountConfigurations = paginateListTargetAccountConfigurations;
|
|
1634
|
+
exports.paginateListTargetResourceTypes = paginateListTargetResourceTypes;
|