@aws-sdk/client-synthetics 3.902.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 +1703 -1891
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -1,1931 +1,1743 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
CanaryStateReasonCode: () => CanaryStateReasonCode,
|
|
33
|
-
ConflictException: () => ConflictException,
|
|
34
|
-
CreateCanaryCommand: () => CreateCanaryCommand,
|
|
35
|
-
CreateGroupCommand: () => CreateGroupCommand,
|
|
36
|
-
DeleteCanaryCommand: () => DeleteCanaryCommand,
|
|
37
|
-
DeleteGroupCommand: () => DeleteGroupCommand,
|
|
38
|
-
DependencyType: () => DependencyType,
|
|
39
|
-
DescribeCanariesCommand: () => DescribeCanariesCommand,
|
|
40
|
-
DescribeCanariesLastRunCommand: () => DescribeCanariesLastRunCommand,
|
|
41
|
-
DescribeRuntimeVersionsCommand: () => DescribeRuntimeVersionsCommand,
|
|
42
|
-
DisassociateResourceCommand: () => DisassociateResourceCommand,
|
|
43
|
-
EncryptionMode: () => EncryptionMode,
|
|
44
|
-
GetCanaryCommand: () => GetCanaryCommand,
|
|
45
|
-
GetCanaryRunsCommand: () => GetCanaryRunsCommand,
|
|
46
|
-
GetGroupCommand: () => GetGroupCommand,
|
|
47
|
-
InternalFailureException: () => InternalFailureException,
|
|
48
|
-
InternalServerException: () => InternalServerException,
|
|
49
|
-
ListAssociatedGroupsCommand: () => ListAssociatedGroupsCommand,
|
|
50
|
-
ListGroupResourcesCommand: () => ListGroupResourcesCommand,
|
|
51
|
-
ListGroupsCommand: () => ListGroupsCommand,
|
|
52
|
-
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
53
|
-
NotFoundException: () => NotFoundException,
|
|
54
|
-
ProvisionedResourceCleanupSetting: () => ProvisionedResourceCleanupSetting,
|
|
55
|
-
RequestEntityTooLargeException: () => RequestEntityTooLargeException,
|
|
56
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
57
|
-
ResourceToTag: () => ResourceToTag,
|
|
58
|
-
RunType: () => RunType,
|
|
59
|
-
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
60
|
-
StartCanaryCommand: () => StartCanaryCommand,
|
|
61
|
-
StartCanaryDryRunCommand: () => StartCanaryDryRunCommand,
|
|
62
|
-
StopCanaryCommand: () => StopCanaryCommand,
|
|
63
|
-
Synthetics: () => Synthetics,
|
|
64
|
-
SyntheticsClient: () => SyntheticsClient,
|
|
65
|
-
SyntheticsServiceException: () => SyntheticsServiceException,
|
|
66
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
67
|
-
TooManyRequestsException: () => TooManyRequestsException,
|
|
68
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
69
|
-
UpdateCanaryCommand: () => UpdateCanaryCommand,
|
|
70
|
-
ValidationException: () => ValidationException,
|
|
71
|
-
__Client: () => import_smithy_client.Client,
|
|
72
|
-
paginateDescribeCanaries: () => paginateDescribeCanaries,
|
|
73
|
-
paginateDescribeCanariesLastRun: () => paginateDescribeCanariesLastRun,
|
|
74
|
-
paginateDescribeRuntimeVersions: () => paginateDescribeRuntimeVersions,
|
|
75
|
-
paginateGetCanaryRuns: () => paginateGetCanaryRuns,
|
|
76
|
-
paginateListAssociatedGroups: () => paginateListAssociatedGroups,
|
|
77
|
-
paginateListGroupResources: () => paginateListGroupResources,
|
|
78
|
-
paginateListGroups: () => paginateListGroups
|
|
79
|
-
});
|
|
80
|
-
module.exports = __toCommonJS(index_exports);
|
|
81
|
-
|
|
82
|
-
// src/SyntheticsClient.ts
|
|
83
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
84
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
85
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
86
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
87
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
88
|
-
var import_core = require("@smithy/core");
|
|
89
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
90
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
91
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
92
|
-
|
|
93
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
94
|
-
|
|
95
|
-
// src/endpoint/EndpointParameters.ts
|
|
96
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
97
|
-
return Object.assign(options, {
|
|
98
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
99
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
100
|
-
defaultSigningName: "synthetics"
|
|
101
|
-
});
|
|
102
|
-
}, "resolveClientEndpointParameters");
|
|
103
|
-
var commonParams = {
|
|
104
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
105
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
106
|
-
Region: { type: "builtInParams", name: "region" },
|
|
107
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
|
|
20
|
+
const resolveClientEndpointParameters = (options) => {
|
|
21
|
+
return Object.assign(options, {
|
|
22
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
23
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
24
|
+
defaultSigningName: "synthetics",
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
const commonParams = {
|
|
28
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
29
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
30
|
+
Region: { type: "builtInParams", name: "region" },
|
|
31
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
108
32
|
};
|
|
109
33
|
|
|
110
|
-
|
|
111
|
-
|
|
34
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
37
|
+
let _credentials = runtimeConfig.credentials;
|
|
38
|
+
return {
|
|
39
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
40
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
41
|
+
if (index === -1) {
|
|
42
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
httpAuthSchemes() {
|
|
49
|
+
return _httpAuthSchemes;
|
|
50
|
+
},
|
|
51
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
52
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
53
|
+
},
|
|
54
|
+
httpAuthSchemeProvider() {
|
|
55
|
+
return _httpAuthSchemeProvider;
|
|
56
|
+
},
|
|
57
|
+
setCredentials(credentials) {
|
|
58
|
+
_credentials = credentials;
|
|
59
|
+
},
|
|
60
|
+
credentials() {
|
|
61
|
+
return _credentials;
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
66
|
+
return {
|
|
67
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
68
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
69
|
+
credentials: config.credentials(),
|
|
70
|
+
};
|
|
71
|
+
};
|
|
112
72
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
73
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
74
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
75
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
76
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
77
|
+
};
|
|
117
78
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
79
|
+
class SyntheticsClient extends smithyClient.Client {
|
|
80
|
+
config;
|
|
81
|
+
constructor(...[configuration]) {
|
|
82
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
83
|
+
super(_config_0);
|
|
84
|
+
this.initConfig = _config_0;
|
|
85
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
86
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
|
+
this.config = _config_8;
|
|
94
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
101
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSyntheticsHttpAuthSchemeParametersProvider,
|
|
102
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
103
|
+
"aws.auth#sigv4": config.credentials,
|
|
104
|
+
}),
|
|
105
|
+
}));
|
|
106
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
146
107
|
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
152
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
153
|
-
credentials: config.credentials()
|
|
154
|
-
};
|
|
155
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
156
|
-
|
|
157
|
-
// src/runtimeExtensions.ts
|
|
158
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
159
|
-
const extensionConfiguration = Object.assign(
|
|
160
|
-
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
161
|
-
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
162
|
-
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
163
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
164
|
-
);
|
|
165
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
166
|
-
return Object.assign(
|
|
167
|
-
runtimeConfig,
|
|
168
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
169
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
170
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
171
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
172
|
-
);
|
|
173
|
-
}, "resolveRuntimeExtensions");
|
|
108
|
+
destroy() {
|
|
109
|
+
super.destroy();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
174
112
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
200
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
201
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
202
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
203
|
-
this.middlewareStack.use(
|
|
204
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
205
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultSyntheticsHttpAuthSchemeParametersProvider,
|
|
206
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
207
|
-
"aws.auth#sigv4": config.credentials
|
|
208
|
-
}), "identityProviderConfigProvider")
|
|
209
|
-
})
|
|
210
|
-
);
|
|
211
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
212
|
-
}
|
|
213
|
-
/**
|
|
214
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
215
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
216
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
217
|
-
*/
|
|
218
|
-
destroy() {
|
|
219
|
-
super.destroy();
|
|
220
|
-
}
|
|
113
|
+
class SyntheticsServiceException extends smithyClient.ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, SyntheticsServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
class AccessDeniedException extends SyntheticsServiceException {
|
|
121
|
+
name = "AccessDeniedException";
|
|
122
|
+
$fault = "client";
|
|
123
|
+
Message;
|
|
124
|
+
constructor(opts) {
|
|
125
|
+
super({
|
|
126
|
+
name: "AccessDeniedException",
|
|
127
|
+
$fault: "client",
|
|
128
|
+
...opts,
|
|
129
|
+
});
|
|
130
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
131
|
+
this.Message = opts.Message;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
const EncryptionMode = {
|
|
135
|
+
SSE_KMS: "SSE_KMS",
|
|
136
|
+
SSE_S3: "SSE_S3",
|
|
221
137
|
};
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
138
|
+
class ConflictException extends SyntheticsServiceException {
|
|
139
|
+
name = "ConflictException";
|
|
140
|
+
$fault = "client";
|
|
141
|
+
Message;
|
|
142
|
+
constructor(opts) {
|
|
143
|
+
super({
|
|
144
|
+
name: "ConflictException",
|
|
145
|
+
$fault: "client",
|
|
146
|
+
...opts,
|
|
147
|
+
});
|
|
148
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
149
|
+
this.Message = opts.Message;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
class InternalServerException extends SyntheticsServiceException {
|
|
153
|
+
name = "InternalServerException";
|
|
154
|
+
$fault = "server";
|
|
155
|
+
Message;
|
|
156
|
+
constructor(opts) {
|
|
157
|
+
super({
|
|
158
|
+
name: "InternalServerException",
|
|
159
|
+
$fault: "server",
|
|
160
|
+
...opts,
|
|
161
|
+
});
|
|
162
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
163
|
+
this.Message = opts.Message;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
class ResourceNotFoundException extends SyntheticsServiceException {
|
|
167
|
+
name = "ResourceNotFoundException";
|
|
168
|
+
$fault = "client";
|
|
169
|
+
Message;
|
|
170
|
+
constructor(opts) {
|
|
171
|
+
super({
|
|
172
|
+
name: "ResourceNotFoundException",
|
|
173
|
+
$fault: "client",
|
|
174
|
+
...opts,
|
|
175
|
+
});
|
|
176
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
177
|
+
this.Message = opts.Message;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
class ServiceQuotaExceededException extends SyntheticsServiceException {
|
|
181
|
+
name = "ServiceQuotaExceededException";
|
|
182
|
+
$fault = "client";
|
|
183
|
+
Message;
|
|
184
|
+
constructor(opts) {
|
|
185
|
+
super({
|
|
186
|
+
name: "ServiceQuotaExceededException",
|
|
187
|
+
$fault: "client",
|
|
188
|
+
...opts,
|
|
189
|
+
});
|
|
190
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
191
|
+
this.Message = opts.Message;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
class ValidationException extends SyntheticsServiceException {
|
|
195
|
+
name = "ValidationException";
|
|
196
|
+
$fault = "client";
|
|
197
|
+
Message;
|
|
198
|
+
constructor(opts) {
|
|
199
|
+
super({
|
|
200
|
+
name: "ValidationException",
|
|
201
|
+
$fault: "client",
|
|
202
|
+
...opts,
|
|
203
|
+
});
|
|
204
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
205
|
+
this.Message = opts.Message;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
class BadRequestException extends SyntheticsServiceException {
|
|
209
|
+
name = "BadRequestException";
|
|
210
|
+
$fault = "client";
|
|
211
|
+
Message;
|
|
212
|
+
constructor(opts) {
|
|
213
|
+
super({
|
|
214
|
+
name: "BadRequestException",
|
|
215
|
+
$fault: "client",
|
|
216
|
+
...opts,
|
|
217
|
+
});
|
|
218
|
+
Object.setPrototypeOf(this, BadRequestException.prototype);
|
|
219
|
+
this.Message = opts.Message;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
const BrowserType = {
|
|
223
|
+
CHROME: "CHROME",
|
|
224
|
+
FIREFOX: "FIREFOX",
|
|
249
225
|
};
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
var AccessDeniedException = class _AccessDeniedException extends SyntheticsServiceException {
|
|
253
|
-
static {
|
|
254
|
-
__name(this, "AccessDeniedException");
|
|
255
|
-
}
|
|
256
|
-
name = "AccessDeniedException";
|
|
257
|
-
$fault = "client";
|
|
258
|
-
Message;
|
|
259
|
-
/**
|
|
260
|
-
* @internal
|
|
261
|
-
*/
|
|
262
|
-
constructor(opts) {
|
|
263
|
-
super({
|
|
264
|
-
name: "AccessDeniedException",
|
|
265
|
-
$fault: "client",
|
|
266
|
-
...opts
|
|
267
|
-
});
|
|
268
|
-
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
269
|
-
this.Message = opts.Message;
|
|
270
|
-
}
|
|
271
|
-
};
|
|
272
|
-
var EncryptionMode = {
|
|
273
|
-
SSE_KMS: "SSE_KMS",
|
|
274
|
-
SSE_S3: "SSE_S3"
|
|
275
|
-
};
|
|
276
|
-
var ConflictException = class _ConflictException extends SyntheticsServiceException {
|
|
277
|
-
static {
|
|
278
|
-
__name(this, "ConflictException");
|
|
279
|
-
}
|
|
280
|
-
name = "ConflictException";
|
|
281
|
-
$fault = "client";
|
|
282
|
-
Message;
|
|
283
|
-
/**
|
|
284
|
-
* @internal
|
|
285
|
-
*/
|
|
286
|
-
constructor(opts) {
|
|
287
|
-
super({
|
|
288
|
-
name: "ConflictException",
|
|
289
|
-
$fault: "client",
|
|
290
|
-
...opts
|
|
291
|
-
});
|
|
292
|
-
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
293
|
-
this.Message = opts.Message;
|
|
294
|
-
}
|
|
295
|
-
};
|
|
296
|
-
var InternalServerException = class _InternalServerException extends SyntheticsServiceException {
|
|
297
|
-
static {
|
|
298
|
-
__name(this, "InternalServerException");
|
|
299
|
-
}
|
|
300
|
-
name = "InternalServerException";
|
|
301
|
-
$fault = "server";
|
|
302
|
-
Message;
|
|
303
|
-
/**
|
|
304
|
-
* @internal
|
|
305
|
-
*/
|
|
306
|
-
constructor(opts) {
|
|
307
|
-
super({
|
|
308
|
-
name: "InternalServerException",
|
|
309
|
-
$fault: "server",
|
|
310
|
-
...opts
|
|
311
|
-
});
|
|
312
|
-
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
313
|
-
this.Message = opts.Message;
|
|
314
|
-
}
|
|
315
|
-
};
|
|
316
|
-
var ResourceNotFoundException = class _ResourceNotFoundException extends SyntheticsServiceException {
|
|
317
|
-
static {
|
|
318
|
-
__name(this, "ResourceNotFoundException");
|
|
319
|
-
}
|
|
320
|
-
name = "ResourceNotFoundException";
|
|
321
|
-
$fault = "client";
|
|
322
|
-
Message;
|
|
323
|
-
/**
|
|
324
|
-
* @internal
|
|
325
|
-
*/
|
|
326
|
-
constructor(opts) {
|
|
327
|
-
super({
|
|
328
|
-
name: "ResourceNotFoundException",
|
|
329
|
-
$fault: "client",
|
|
330
|
-
...opts
|
|
331
|
-
});
|
|
332
|
-
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
333
|
-
this.Message = opts.Message;
|
|
334
|
-
}
|
|
335
|
-
};
|
|
336
|
-
var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends SyntheticsServiceException {
|
|
337
|
-
static {
|
|
338
|
-
__name(this, "ServiceQuotaExceededException");
|
|
339
|
-
}
|
|
340
|
-
name = "ServiceQuotaExceededException";
|
|
341
|
-
$fault = "client";
|
|
342
|
-
Message;
|
|
343
|
-
/**
|
|
344
|
-
* @internal
|
|
345
|
-
*/
|
|
346
|
-
constructor(opts) {
|
|
347
|
-
super({
|
|
348
|
-
name: "ServiceQuotaExceededException",
|
|
349
|
-
$fault: "client",
|
|
350
|
-
...opts
|
|
351
|
-
});
|
|
352
|
-
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
353
|
-
this.Message = opts.Message;
|
|
354
|
-
}
|
|
355
|
-
};
|
|
356
|
-
var ValidationException = class _ValidationException extends SyntheticsServiceException {
|
|
357
|
-
static {
|
|
358
|
-
__name(this, "ValidationException");
|
|
359
|
-
}
|
|
360
|
-
name = "ValidationException";
|
|
361
|
-
$fault = "client";
|
|
362
|
-
Message;
|
|
363
|
-
/**
|
|
364
|
-
* @internal
|
|
365
|
-
*/
|
|
366
|
-
constructor(opts) {
|
|
367
|
-
super({
|
|
368
|
-
name: "ValidationException",
|
|
369
|
-
$fault: "client",
|
|
370
|
-
...opts
|
|
371
|
-
});
|
|
372
|
-
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
373
|
-
this.Message = opts.Message;
|
|
374
|
-
}
|
|
375
|
-
};
|
|
376
|
-
var BadRequestException = class _BadRequestException extends SyntheticsServiceException {
|
|
377
|
-
static {
|
|
378
|
-
__name(this, "BadRequestException");
|
|
379
|
-
}
|
|
380
|
-
name = "BadRequestException";
|
|
381
|
-
$fault = "client";
|
|
382
|
-
Message;
|
|
383
|
-
/**
|
|
384
|
-
* @internal
|
|
385
|
-
*/
|
|
386
|
-
constructor(opts) {
|
|
387
|
-
super({
|
|
388
|
-
name: "BadRequestException",
|
|
389
|
-
$fault: "client",
|
|
390
|
-
...opts
|
|
391
|
-
});
|
|
392
|
-
Object.setPrototypeOf(this, _BadRequestException.prototype);
|
|
393
|
-
this.Message = opts.Message;
|
|
394
|
-
}
|
|
395
|
-
};
|
|
396
|
-
var BrowserType = {
|
|
397
|
-
CHROME: "CHROME",
|
|
398
|
-
FIREFOX: "FIREFOX"
|
|
399
|
-
};
|
|
400
|
-
var DependencyType = {
|
|
401
|
-
LambdaLayer: "LambdaLayer"
|
|
402
|
-
};
|
|
403
|
-
var ProvisionedResourceCleanupSetting = {
|
|
404
|
-
AUTOMATIC: "AUTOMATIC",
|
|
405
|
-
OFF: "OFF"
|
|
406
|
-
};
|
|
407
|
-
var CanaryState = {
|
|
408
|
-
CREATING: "CREATING",
|
|
409
|
-
DELETING: "DELETING",
|
|
410
|
-
ERROR: "ERROR",
|
|
411
|
-
READY: "READY",
|
|
412
|
-
RUNNING: "RUNNING",
|
|
413
|
-
STARTING: "STARTING",
|
|
414
|
-
STOPPED: "STOPPED",
|
|
415
|
-
STOPPING: "STOPPING",
|
|
416
|
-
UPDATING: "UPDATING"
|
|
417
|
-
};
|
|
418
|
-
var CanaryStateReasonCode = {
|
|
419
|
-
CREATE_FAILED: "CREATE_FAILED",
|
|
420
|
-
CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
|
|
421
|
-
CREATE_PENDING: "CREATE_PENDING",
|
|
422
|
-
DELETE_FAILED: "DELETE_FAILED",
|
|
423
|
-
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
424
|
-
INVALID_PERMISSIONS: "INVALID_PERMISSIONS",
|
|
425
|
-
ROLLBACK_COMPLETE: "ROLLBACK_COMPLETE",
|
|
426
|
-
ROLLBACK_FAILED: "ROLLBACK_FAILED",
|
|
427
|
-
SYNC_DELETE_IN_PROGRESS: "SYNC_DELETE_IN_PROGRESS",
|
|
428
|
-
UPDATE_COMPLETE: "UPDATE_COMPLETE",
|
|
429
|
-
UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS",
|
|
430
|
-
UPDATE_PENDING: "UPDATE_PENDING"
|
|
431
|
-
};
|
|
432
|
-
var CanaryRunState = {
|
|
433
|
-
FAILED: "FAILED",
|
|
434
|
-
PASSED: "PASSED",
|
|
435
|
-
RUNNING: "RUNNING"
|
|
436
|
-
};
|
|
437
|
-
var CanaryRunStateReasonCode = {
|
|
438
|
-
CANARY_FAILURE: "CANARY_FAILURE",
|
|
439
|
-
EXECUTION_FAILURE: "EXECUTION_FAILURE"
|
|
440
|
-
};
|
|
441
|
-
var CanaryRunTestResult = {
|
|
442
|
-
FAILED: "FAILED",
|
|
443
|
-
PASSED: "PASSED",
|
|
444
|
-
UNKNOWN: "UNKNOWN"
|
|
445
|
-
};
|
|
446
|
-
var ResourceToTag = {
|
|
447
|
-
LAMBDA_FUNCTION: "lambda-function"
|
|
448
|
-
};
|
|
449
|
-
var RequestEntityTooLargeException = class _RequestEntityTooLargeException extends SyntheticsServiceException {
|
|
450
|
-
static {
|
|
451
|
-
__name(this, "RequestEntityTooLargeException");
|
|
452
|
-
}
|
|
453
|
-
name = "RequestEntityTooLargeException";
|
|
454
|
-
$fault = "client";
|
|
455
|
-
Message;
|
|
456
|
-
/**
|
|
457
|
-
* @internal
|
|
458
|
-
*/
|
|
459
|
-
constructor(opts) {
|
|
460
|
-
super({
|
|
461
|
-
name: "RequestEntityTooLargeException",
|
|
462
|
-
$fault: "client",
|
|
463
|
-
...opts
|
|
464
|
-
});
|
|
465
|
-
Object.setPrototypeOf(this, _RequestEntityTooLargeException.prototype);
|
|
466
|
-
this.Message = opts.Message;
|
|
467
|
-
}
|
|
468
|
-
};
|
|
469
|
-
var RunType = {
|
|
470
|
-
CANARY_RUN: "CANARY_RUN",
|
|
471
|
-
DRY_RUN: "DRY_RUN"
|
|
472
|
-
};
|
|
473
|
-
var InternalFailureException = class _InternalFailureException extends SyntheticsServiceException {
|
|
474
|
-
static {
|
|
475
|
-
__name(this, "InternalFailureException");
|
|
476
|
-
}
|
|
477
|
-
name = "InternalFailureException";
|
|
478
|
-
$fault = "server";
|
|
479
|
-
Message;
|
|
480
|
-
/**
|
|
481
|
-
* @internal
|
|
482
|
-
*/
|
|
483
|
-
constructor(opts) {
|
|
484
|
-
super({
|
|
485
|
-
name: "InternalFailureException",
|
|
486
|
-
$fault: "server",
|
|
487
|
-
...opts
|
|
488
|
-
});
|
|
489
|
-
Object.setPrototypeOf(this, _InternalFailureException.prototype);
|
|
490
|
-
this.Message = opts.Message;
|
|
491
|
-
}
|
|
492
|
-
};
|
|
493
|
-
var NotFoundException = class _NotFoundException extends SyntheticsServiceException {
|
|
494
|
-
static {
|
|
495
|
-
__name(this, "NotFoundException");
|
|
496
|
-
}
|
|
497
|
-
name = "NotFoundException";
|
|
498
|
-
$fault = "client";
|
|
499
|
-
Message;
|
|
500
|
-
/**
|
|
501
|
-
* @internal
|
|
502
|
-
*/
|
|
503
|
-
constructor(opts) {
|
|
504
|
-
super({
|
|
505
|
-
name: "NotFoundException",
|
|
506
|
-
$fault: "client",
|
|
507
|
-
...opts
|
|
508
|
-
});
|
|
509
|
-
Object.setPrototypeOf(this, _NotFoundException.prototype);
|
|
510
|
-
this.Message = opts.Message;
|
|
511
|
-
}
|
|
512
|
-
};
|
|
513
|
-
var TooManyRequestsException = class _TooManyRequestsException extends SyntheticsServiceException {
|
|
514
|
-
static {
|
|
515
|
-
__name(this, "TooManyRequestsException");
|
|
516
|
-
}
|
|
517
|
-
name = "TooManyRequestsException";
|
|
518
|
-
$fault = "client";
|
|
519
|
-
Message;
|
|
520
|
-
/**
|
|
521
|
-
* @internal
|
|
522
|
-
*/
|
|
523
|
-
constructor(opts) {
|
|
524
|
-
super({
|
|
525
|
-
name: "TooManyRequestsException",
|
|
526
|
-
$fault: "client",
|
|
527
|
-
...opts
|
|
528
|
-
});
|
|
529
|
-
Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
|
|
530
|
-
this.Message = opts.Message;
|
|
531
|
-
}
|
|
226
|
+
const DependencyType = {
|
|
227
|
+
LambdaLayer: "LambdaLayer",
|
|
532
228
|
};
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
537
|
-
const headers = {
|
|
538
|
-
"content-type": "application/json"
|
|
539
|
-
};
|
|
540
|
-
b.bp("/group/{GroupIdentifier}/associate");
|
|
541
|
-
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
542
|
-
let body;
|
|
543
|
-
body = JSON.stringify(
|
|
544
|
-
(0, import_smithy_client.take)(input, {
|
|
545
|
-
ResourceArn: []
|
|
546
|
-
})
|
|
547
|
-
);
|
|
548
|
-
b.m("PATCH").h(headers).b(body);
|
|
549
|
-
return b.build();
|
|
550
|
-
}, "se_AssociateResourceCommand");
|
|
551
|
-
var se_CreateCanaryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
552
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
553
|
-
const headers = {
|
|
554
|
-
"content-type": "application/json"
|
|
555
|
-
};
|
|
556
|
-
b.bp("/canary");
|
|
557
|
-
let body;
|
|
558
|
-
body = JSON.stringify(
|
|
559
|
-
(0, import_smithy_client.take)(input, {
|
|
560
|
-
ArtifactConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ArtifactConfig"),
|
|
561
|
-
ArtifactS3Location: [],
|
|
562
|
-
BrowserConfigs: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "BrowserConfigs"),
|
|
563
|
-
Code: /* @__PURE__ */ __name((_) => se_CanaryCodeInput(_, context), "Code"),
|
|
564
|
-
ExecutionRoleArn: [],
|
|
565
|
-
FailureRetentionPeriodInDays: [],
|
|
566
|
-
Name: [],
|
|
567
|
-
ProvisionedResourceCleanup: [],
|
|
568
|
-
ResourcesToReplicateTags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ResourcesToReplicateTags"),
|
|
569
|
-
RunConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "RunConfig"),
|
|
570
|
-
RuntimeVersion: [],
|
|
571
|
-
Schedule: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Schedule"),
|
|
572
|
-
SuccessRetentionPeriodInDays: [],
|
|
573
|
-
Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags"),
|
|
574
|
-
VpcConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "VpcConfig")
|
|
575
|
-
})
|
|
576
|
-
);
|
|
577
|
-
b.m("POST").h(headers).b(body);
|
|
578
|
-
return b.build();
|
|
579
|
-
}, "se_CreateCanaryCommand");
|
|
580
|
-
var se_CreateGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
581
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
582
|
-
const headers = {
|
|
583
|
-
"content-type": "application/json"
|
|
584
|
-
};
|
|
585
|
-
b.bp("/group");
|
|
586
|
-
let body;
|
|
587
|
-
body = JSON.stringify(
|
|
588
|
-
(0, import_smithy_client.take)(input, {
|
|
589
|
-
Name: [],
|
|
590
|
-
Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
|
|
591
|
-
})
|
|
592
|
-
);
|
|
593
|
-
b.m("POST").h(headers).b(body);
|
|
594
|
-
return b.build();
|
|
595
|
-
}, "se_CreateGroupCommand");
|
|
596
|
-
var se_DeleteCanaryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
597
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
598
|
-
const headers = {};
|
|
599
|
-
b.bp("/canary/{Name}");
|
|
600
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
601
|
-
const query = (0, import_smithy_client.map)({
|
|
602
|
-
[_dL]: [() => input.DeleteLambda !== void 0, () => input[_DL].toString()]
|
|
603
|
-
});
|
|
604
|
-
let body;
|
|
605
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
606
|
-
return b.build();
|
|
607
|
-
}, "se_DeleteCanaryCommand");
|
|
608
|
-
var se_DeleteGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
609
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
610
|
-
const headers = {};
|
|
611
|
-
b.bp("/group/{GroupIdentifier}");
|
|
612
|
-
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
613
|
-
let body;
|
|
614
|
-
b.m("DELETE").h(headers).b(body);
|
|
615
|
-
return b.build();
|
|
616
|
-
}, "se_DeleteGroupCommand");
|
|
617
|
-
var se_DescribeCanariesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
618
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
619
|
-
const headers = {
|
|
620
|
-
"content-type": "application/json"
|
|
621
|
-
};
|
|
622
|
-
b.bp("/canaries");
|
|
623
|
-
let body;
|
|
624
|
-
body = JSON.stringify(
|
|
625
|
-
(0, import_smithy_client.take)(input, {
|
|
626
|
-
MaxResults: [],
|
|
627
|
-
Names: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Names"),
|
|
628
|
-
NextToken: []
|
|
629
|
-
})
|
|
630
|
-
);
|
|
631
|
-
b.m("POST").h(headers).b(body);
|
|
632
|
-
return b.build();
|
|
633
|
-
}, "se_DescribeCanariesCommand");
|
|
634
|
-
var se_DescribeCanariesLastRunCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
635
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
636
|
-
const headers = {
|
|
637
|
-
"content-type": "application/json"
|
|
638
|
-
};
|
|
639
|
-
b.bp("/canaries/last-run");
|
|
640
|
-
let body;
|
|
641
|
-
body = JSON.stringify(
|
|
642
|
-
(0, import_smithy_client.take)(input, {
|
|
643
|
-
BrowserType: [],
|
|
644
|
-
MaxResults: [],
|
|
645
|
-
Names: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Names"),
|
|
646
|
-
NextToken: []
|
|
647
|
-
})
|
|
648
|
-
);
|
|
649
|
-
b.m("POST").h(headers).b(body);
|
|
650
|
-
return b.build();
|
|
651
|
-
}, "se_DescribeCanariesLastRunCommand");
|
|
652
|
-
var se_DescribeRuntimeVersionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
653
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
654
|
-
const headers = {
|
|
655
|
-
"content-type": "application/json"
|
|
656
|
-
};
|
|
657
|
-
b.bp("/runtime-versions");
|
|
658
|
-
let body;
|
|
659
|
-
body = JSON.stringify(
|
|
660
|
-
(0, import_smithy_client.take)(input, {
|
|
661
|
-
MaxResults: [],
|
|
662
|
-
NextToken: []
|
|
663
|
-
})
|
|
664
|
-
);
|
|
665
|
-
b.m("POST").h(headers).b(body);
|
|
666
|
-
return b.build();
|
|
667
|
-
}, "se_DescribeRuntimeVersionsCommand");
|
|
668
|
-
var se_DisassociateResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
669
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
670
|
-
const headers = {
|
|
671
|
-
"content-type": "application/json"
|
|
672
|
-
};
|
|
673
|
-
b.bp("/group/{GroupIdentifier}/disassociate");
|
|
674
|
-
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
675
|
-
let body;
|
|
676
|
-
body = JSON.stringify(
|
|
677
|
-
(0, import_smithy_client.take)(input, {
|
|
678
|
-
ResourceArn: []
|
|
679
|
-
})
|
|
680
|
-
);
|
|
681
|
-
b.m("PATCH").h(headers).b(body);
|
|
682
|
-
return b.build();
|
|
683
|
-
}, "se_DisassociateResourceCommand");
|
|
684
|
-
var se_GetCanaryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
685
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
686
|
-
const headers = {};
|
|
687
|
-
b.bp("/canary/{Name}");
|
|
688
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
689
|
-
const query = (0, import_smithy_client.map)({
|
|
690
|
-
[_dRI]: [, input[_DRI]]
|
|
691
|
-
});
|
|
692
|
-
let body;
|
|
693
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
694
|
-
return b.build();
|
|
695
|
-
}, "se_GetCanaryCommand");
|
|
696
|
-
var se_GetCanaryRunsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
697
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
698
|
-
const headers = {
|
|
699
|
-
"content-type": "application/json"
|
|
700
|
-
};
|
|
701
|
-
b.bp("/canary/{Name}/runs");
|
|
702
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
703
|
-
let body;
|
|
704
|
-
body = JSON.stringify(
|
|
705
|
-
(0, import_smithy_client.take)(input, {
|
|
706
|
-
DryRunId: [],
|
|
707
|
-
MaxResults: [],
|
|
708
|
-
NextToken: [],
|
|
709
|
-
RunType: []
|
|
710
|
-
})
|
|
711
|
-
);
|
|
712
|
-
b.m("POST").h(headers).b(body);
|
|
713
|
-
return b.build();
|
|
714
|
-
}, "se_GetCanaryRunsCommand");
|
|
715
|
-
var se_GetGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
716
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
717
|
-
const headers = {};
|
|
718
|
-
b.bp("/group/{GroupIdentifier}");
|
|
719
|
-
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
720
|
-
let body;
|
|
721
|
-
b.m("GET").h(headers).b(body);
|
|
722
|
-
return b.build();
|
|
723
|
-
}, "se_GetGroupCommand");
|
|
724
|
-
var se_ListAssociatedGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
725
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
726
|
-
const headers = {
|
|
727
|
-
"content-type": "application/json"
|
|
728
|
-
};
|
|
729
|
-
b.bp("/resource/{ResourceArn}/groups");
|
|
730
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
731
|
-
let body;
|
|
732
|
-
body = JSON.stringify(
|
|
733
|
-
(0, import_smithy_client.take)(input, {
|
|
734
|
-
MaxResults: [],
|
|
735
|
-
NextToken: []
|
|
736
|
-
})
|
|
737
|
-
);
|
|
738
|
-
b.m("POST").h(headers).b(body);
|
|
739
|
-
return b.build();
|
|
740
|
-
}, "se_ListAssociatedGroupsCommand");
|
|
741
|
-
var se_ListGroupResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
742
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
743
|
-
const headers = {
|
|
744
|
-
"content-type": "application/json"
|
|
745
|
-
};
|
|
746
|
-
b.bp("/group/{GroupIdentifier}/resources");
|
|
747
|
-
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
748
|
-
let body;
|
|
749
|
-
body = JSON.stringify(
|
|
750
|
-
(0, import_smithy_client.take)(input, {
|
|
751
|
-
MaxResults: [],
|
|
752
|
-
NextToken: []
|
|
753
|
-
})
|
|
754
|
-
);
|
|
755
|
-
b.m("POST").h(headers).b(body);
|
|
756
|
-
return b.build();
|
|
757
|
-
}, "se_ListGroupResourcesCommand");
|
|
758
|
-
var se_ListGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
759
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
760
|
-
const headers = {
|
|
761
|
-
"content-type": "application/json"
|
|
762
|
-
};
|
|
763
|
-
b.bp("/groups");
|
|
764
|
-
let body;
|
|
765
|
-
body = JSON.stringify(
|
|
766
|
-
(0, import_smithy_client.take)(input, {
|
|
767
|
-
MaxResults: [],
|
|
768
|
-
NextToken: []
|
|
769
|
-
})
|
|
770
|
-
);
|
|
771
|
-
b.m("POST").h(headers).b(body);
|
|
772
|
-
return b.build();
|
|
773
|
-
}, "se_ListGroupsCommand");
|
|
774
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
775
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
776
|
-
const headers = {};
|
|
777
|
-
b.bp("/tags/{ResourceArn}");
|
|
778
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
779
|
-
let body;
|
|
780
|
-
b.m("GET").h(headers).b(body);
|
|
781
|
-
return b.build();
|
|
782
|
-
}, "se_ListTagsForResourceCommand");
|
|
783
|
-
var se_StartCanaryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
784
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
785
|
-
const headers = {};
|
|
786
|
-
b.bp("/canary/{Name}/start");
|
|
787
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
788
|
-
let body;
|
|
789
|
-
b.m("POST").h(headers).b(body);
|
|
790
|
-
return b.build();
|
|
791
|
-
}, "se_StartCanaryCommand");
|
|
792
|
-
var se_StartCanaryDryRunCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
793
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
794
|
-
const headers = {
|
|
795
|
-
"content-type": "application/json"
|
|
796
|
-
};
|
|
797
|
-
b.bp("/canary/{Name}/dry-run/start");
|
|
798
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
799
|
-
let body;
|
|
800
|
-
body = JSON.stringify(
|
|
801
|
-
(0, import_smithy_client.take)(input, {
|
|
802
|
-
ArtifactConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ArtifactConfig"),
|
|
803
|
-
ArtifactS3Location: [],
|
|
804
|
-
BrowserConfigs: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "BrowserConfigs"),
|
|
805
|
-
Code: /* @__PURE__ */ __name((_) => se_CanaryCodeInput(_, context), "Code"),
|
|
806
|
-
ExecutionRoleArn: [],
|
|
807
|
-
FailureRetentionPeriodInDays: [],
|
|
808
|
-
ProvisionedResourceCleanup: [],
|
|
809
|
-
RunConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "RunConfig"),
|
|
810
|
-
RuntimeVersion: [],
|
|
811
|
-
SuccessRetentionPeriodInDays: [],
|
|
812
|
-
VisualReference: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "VisualReference"),
|
|
813
|
-
VisualReferences: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "VisualReferences"),
|
|
814
|
-
VpcConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "VpcConfig")
|
|
815
|
-
})
|
|
816
|
-
);
|
|
817
|
-
b.m("POST").h(headers).b(body);
|
|
818
|
-
return b.build();
|
|
819
|
-
}, "se_StartCanaryDryRunCommand");
|
|
820
|
-
var se_StopCanaryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
821
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
822
|
-
const headers = {};
|
|
823
|
-
b.bp("/canary/{Name}/stop");
|
|
824
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
825
|
-
let body;
|
|
826
|
-
b.m("POST").h(headers).b(body);
|
|
827
|
-
return b.build();
|
|
828
|
-
}, "se_StopCanaryCommand");
|
|
829
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
830
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
831
|
-
const headers = {
|
|
832
|
-
"content-type": "application/json"
|
|
833
|
-
};
|
|
834
|
-
b.bp("/tags/{ResourceArn}");
|
|
835
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
836
|
-
let body;
|
|
837
|
-
body = JSON.stringify(
|
|
838
|
-
(0, import_smithy_client.take)(input, {
|
|
839
|
-
Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
|
|
840
|
-
})
|
|
841
|
-
);
|
|
842
|
-
b.m("POST").h(headers).b(body);
|
|
843
|
-
return b.build();
|
|
844
|
-
}, "se_TagResourceCommand");
|
|
845
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
846
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
847
|
-
const headers = {};
|
|
848
|
-
b.bp("/tags/{ResourceArn}");
|
|
849
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
850
|
-
const query = (0, import_smithy_client.map)({
|
|
851
|
-
[_tK]: [(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []]
|
|
852
|
-
});
|
|
853
|
-
let body;
|
|
854
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
855
|
-
return b.build();
|
|
856
|
-
}, "se_UntagResourceCommand");
|
|
857
|
-
var se_UpdateCanaryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
858
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
859
|
-
const headers = {
|
|
860
|
-
"content-type": "application/json"
|
|
861
|
-
};
|
|
862
|
-
b.bp("/canary/{Name}");
|
|
863
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
864
|
-
let body;
|
|
865
|
-
body = JSON.stringify(
|
|
866
|
-
(0, import_smithy_client.take)(input, {
|
|
867
|
-
ArtifactConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ArtifactConfig"),
|
|
868
|
-
ArtifactS3Location: [],
|
|
869
|
-
BrowserConfigs: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "BrowserConfigs"),
|
|
870
|
-
Code: /* @__PURE__ */ __name((_) => se_CanaryCodeInput(_, context), "Code"),
|
|
871
|
-
DryRunId: [],
|
|
872
|
-
ExecutionRoleArn: [],
|
|
873
|
-
FailureRetentionPeriodInDays: [],
|
|
874
|
-
ProvisionedResourceCleanup: [],
|
|
875
|
-
RunConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "RunConfig"),
|
|
876
|
-
RuntimeVersion: [],
|
|
877
|
-
Schedule: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Schedule"),
|
|
878
|
-
SuccessRetentionPeriodInDays: [],
|
|
879
|
-
VisualReference: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "VisualReference"),
|
|
880
|
-
VisualReferences: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "VisualReferences"),
|
|
881
|
-
VpcConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "VpcConfig")
|
|
882
|
-
})
|
|
883
|
-
);
|
|
884
|
-
b.m("PATCH").h(headers).b(body);
|
|
885
|
-
return b.build();
|
|
886
|
-
}, "se_UpdateCanaryCommand");
|
|
887
|
-
var de_AssociateResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
888
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
889
|
-
return de_CommandError(output, context);
|
|
890
|
-
}
|
|
891
|
-
const contents = (0, import_smithy_client.map)({
|
|
892
|
-
$metadata: deserializeMetadata(output)
|
|
893
|
-
});
|
|
894
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
895
|
-
return contents;
|
|
896
|
-
}, "de_AssociateResourceCommand");
|
|
897
|
-
var de_CreateCanaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
898
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
899
|
-
return de_CommandError(output, context);
|
|
900
|
-
}
|
|
901
|
-
const contents = (0, import_smithy_client.map)({
|
|
902
|
-
$metadata: deserializeMetadata(output)
|
|
903
|
-
});
|
|
904
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
905
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
906
|
-
Canary: /* @__PURE__ */ __name((_) => de_Canary(_, context), "Canary")
|
|
907
|
-
});
|
|
908
|
-
Object.assign(contents, doc);
|
|
909
|
-
return contents;
|
|
910
|
-
}, "de_CreateCanaryCommand");
|
|
911
|
-
var de_CreateGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
912
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
913
|
-
return de_CommandError(output, context);
|
|
914
|
-
}
|
|
915
|
-
const contents = (0, import_smithy_client.map)({
|
|
916
|
-
$metadata: deserializeMetadata(output)
|
|
917
|
-
});
|
|
918
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
919
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
920
|
-
Group: /* @__PURE__ */ __name((_) => de_Group(_, context), "Group")
|
|
921
|
-
});
|
|
922
|
-
Object.assign(contents, doc);
|
|
923
|
-
return contents;
|
|
924
|
-
}, "de_CreateGroupCommand");
|
|
925
|
-
var de_DeleteCanaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
926
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
927
|
-
return de_CommandError(output, context);
|
|
928
|
-
}
|
|
929
|
-
const contents = (0, import_smithy_client.map)({
|
|
930
|
-
$metadata: deserializeMetadata(output)
|
|
931
|
-
});
|
|
932
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
933
|
-
return contents;
|
|
934
|
-
}, "de_DeleteCanaryCommand");
|
|
935
|
-
var de_DeleteGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
936
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
937
|
-
return de_CommandError(output, context);
|
|
938
|
-
}
|
|
939
|
-
const contents = (0, import_smithy_client.map)({
|
|
940
|
-
$metadata: deserializeMetadata(output)
|
|
941
|
-
});
|
|
942
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
943
|
-
return contents;
|
|
944
|
-
}, "de_DeleteGroupCommand");
|
|
945
|
-
var de_DescribeCanariesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
946
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
947
|
-
return de_CommandError(output, context);
|
|
948
|
-
}
|
|
949
|
-
const contents = (0, import_smithy_client.map)({
|
|
950
|
-
$metadata: deserializeMetadata(output)
|
|
951
|
-
});
|
|
952
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
953
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
954
|
-
Canaries: /* @__PURE__ */ __name((_) => de_Canaries(_, context), "Canaries"),
|
|
955
|
-
NextToken: import_smithy_client.expectString
|
|
956
|
-
});
|
|
957
|
-
Object.assign(contents, doc);
|
|
958
|
-
return contents;
|
|
959
|
-
}, "de_DescribeCanariesCommand");
|
|
960
|
-
var de_DescribeCanariesLastRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
961
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
962
|
-
return de_CommandError(output, context);
|
|
963
|
-
}
|
|
964
|
-
const contents = (0, import_smithy_client.map)({
|
|
965
|
-
$metadata: deserializeMetadata(output)
|
|
966
|
-
});
|
|
967
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
968
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
969
|
-
CanariesLastRun: /* @__PURE__ */ __name((_) => de_CanariesLastRun(_, context), "CanariesLastRun"),
|
|
970
|
-
NextToken: import_smithy_client.expectString
|
|
971
|
-
});
|
|
972
|
-
Object.assign(contents, doc);
|
|
973
|
-
return contents;
|
|
974
|
-
}, "de_DescribeCanariesLastRunCommand");
|
|
975
|
-
var de_DescribeRuntimeVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
976
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
977
|
-
return de_CommandError(output, context);
|
|
978
|
-
}
|
|
979
|
-
const contents = (0, import_smithy_client.map)({
|
|
980
|
-
$metadata: deserializeMetadata(output)
|
|
981
|
-
});
|
|
982
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
983
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
984
|
-
NextToken: import_smithy_client.expectString,
|
|
985
|
-
RuntimeVersions: /* @__PURE__ */ __name((_) => de_RuntimeVersionList(_, context), "RuntimeVersions")
|
|
986
|
-
});
|
|
987
|
-
Object.assign(contents, doc);
|
|
988
|
-
return contents;
|
|
989
|
-
}, "de_DescribeRuntimeVersionsCommand");
|
|
990
|
-
var de_DisassociateResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
991
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
992
|
-
return de_CommandError(output, context);
|
|
993
|
-
}
|
|
994
|
-
const contents = (0, import_smithy_client.map)({
|
|
995
|
-
$metadata: deserializeMetadata(output)
|
|
996
|
-
});
|
|
997
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
998
|
-
return contents;
|
|
999
|
-
}, "de_DisassociateResourceCommand");
|
|
1000
|
-
var de_GetCanaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1001
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1002
|
-
return de_CommandError(output, context);
|
|
1003
|
-
}
|
|
1004
|
-
const contents = (0, import_smithy_client.map)({
|
|
1005
|
-
$metadata: deserializeMetadata(output)
|
|
1006
|
-
});
|
|
1007
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1008
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1009
|
-
Canary: /* @__PURE__ */ __name((_) => de_Canary(_, context), "Canary")
|
|
1010
|
-
});
|
|
1011
|
-
Object.assign(contents, doc);
|
|
1012
|
-
return contents;
|
|
1013
|
-
}, "de_GetCanaryCommand");
|
|
1014
|
-
var de_GetCanaryRunsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1015
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1016
|
-
return de_CommandError(output, context);
|
|
1017
|
-
}
|
|
1018
|
-
const contents = (0, import_smithy_client.map)({
|
|
1019
|
-
$metadata: deserializeMetadata(output)
|
|
1020
|
-
});
|
|
1021
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1022
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1023
|
-
CanaryRuns: /* @__PURE__ */ __name((_) => de_CanaryRuns(_, context), "CanaryRuns"),
|
|
1024
|
-
NextToken: import_smithy_client.expectString
|
|
1025
|
-
});
|
|
1026
|
-
Object.assign(contents, doc);
|
|
1027
|
-
return contents;
|
|
1028
|
-
}, "de_GetCanaryRunsCommand");
|
|
1029
|
-
var de_GetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1030
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1031
|
-
return de_CommandError(output, context);
|
|
1032
|
-
}
|
|
1033
|
-
const contents = (0, import_smithy_client.map)({
|
|
1034
|
-
$metadata: deserializeMetadata(output)
|
|
1035
|
-
});
|
|
1036
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1037
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1038
|
-
Group: /* @__PURE__ */ __name((_) => de_Group(_, context), "Group")
|
|
1039
|
-
});
|
|
1040
|
-
Object.assign(contents, doc);
|
|
1041
|
-
return contents;
|
|
1042
|
-
}, "de_GetGroupCommand");
|
|
1043
|
-
var de_ListAssociatedGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1044
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1045
|
-
return de_CommandError(output, context);
|
|
1046
|
-
}
|
|
1047
|
-
const contents = (0, import_smithy_client.map)({
|
|
1048
|
-
$metadata: deserializeMetadata(output)
|
|
1049
|
-
});
|
|
1050
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1051
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1052
|
-
Groups: import_smithy_client._json,
|
|
1053
|
-
NextToken: import_smithy_client.expectString
|
|
1054
|
-
});
|
|
1055
|
-
Object.assign(contents, doc);
|
|
1056
|
-
return contents;
|
|
1057
|
-
}, "de_ListAssociatedGroupsCommand");
|
|
1058
|
-
var de_ListGroupResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1059
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1060
|
-
return de_CommandError(output, context);
|
|
1061
|
-
}
|
|
1062
|
-
const contents = (0, import_smithy_client.map)({
|
|
1063
|
-
$metadata: deserializeMetadata(output)
|
|
1064
|
-
});
|
|
1065
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1066
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1067
|
-
NextToken: import_smithy_client.expectString,
|
|
1068
|
-
Resources: import_smithy_client._json
|
|
1069
|
-
});
|
|
1070
|
-
Object.assign(contents, doc);
|
|
1071
|
-
return contents;
|
|
1072
|
-
}, "de_ListGroupResourcesCommand");
|
|
1073
|
-
var de_ListGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1074
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1075
|
-
return de_CommandError(output, context);
|
|
1076
|
-
}
|
|
1077
|
-
const contents = (0, import_smithy_client.map)({
|
|
1078
|
-
$metadata: deserializeMetadata(output)
|
|
1079
|
-
});
|
|
1080
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1081
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1082
|
-
Groups: import_smithy_client._json,
|
|
1083
|
-
NextToken: import_smithy_client.expectString
|
|
1084
|
-
});
|
|
1085
|
-
Object.assign(contents, doc);
|
|
1086
|
-
return contents;
|
|
1087
|
-
}, "de_ListGroupsCommand");
|
|
1088
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1089
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1090
|
-
return de_CommandError(output, context);
|
|
1091
|
-
}
|
|
1092
|
-
const contents = (0, import_smithy_client.map)({
|
|
1093
|
-
$metadata: deserializeMetadata(output)
|
|
1094
|
-
});
|
|
1095
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1096
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1097
|
-
Tags: import_smithy_client._json
|
|
1098
|
-
});
|
|
1099
|
-
Object.assign(contents, doc);
|
|
1100
|
-
return contents;
|
|
1101
|
-
}, "de_ListTagsForResourceCommand");
|
|
1102
|
-
var de_StartCanaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1103
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1104
|
-
return de_CommandError(output, context);
|
|
1105
|
-
}
|
|
1106
|
-
const contents = (0, import_smithy_client.map)({
|
|
1107
|
-
$metadata: deserializeMetadata(output)
|
|
1108
|
-
});
|
|
1109
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1110
|
-
return contents;
|
|
1111
|
-
}, "de_StartCanaryCommand");
|
|
1112
|
-
var de_StartCanaryDryRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1113
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1114
|
-
return de_CommandError(output, context);
|
|
1115
|
-
}
|
|
1116
|
-
const contents = (0, import_smithy_client.map)({
|
|
1117
|
-
$metadata: deserializeMetadata(output)
|
|
1118
|
-
});
|
|
1119
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1120
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1121
|
-
DryRunConfig: import_smithy_client._json
|
|
1122
|
-
});
|
|
1123
|
-
Object.assign(contents, doc);
|
|
1124
|
-
return contents;
|
|
1125
|
-
}, "de_StartCanaryDryRunCommand");
|
|
1126
|
-
var de_StopCanaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1127
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1128
|
-
return de_CommandError(output, context);
|
|
1129
|
-
}
|
|
1130
|
-
const contents = (0, import_smithy_client.map)({
|
|
1131
|
-
$metadata: deserializeMetadata(output)
|
|
1132
|
-
});
|
|
1133
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1134
|
-
return contents;
|
|
1135
|
-
}, "de_StopCanaryCommand");
|
|
1136
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1137
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1138
|
-
return de_CommandError(output, context);
|
|
1139
|
-
}
|
|
1140
|
-
const contents = (0, import_smithy_client.map)({
|
|
1141
|
-
$metadata: deserializeMetadata(output)
|
|
1142
|
-
});
|
|
1143
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1144
|
-
return contents;
|
|
1145
|
-
}, "de_TagResourceCommand");
|
|
1146
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1147
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1148
|
-
return de_CommandError(output, context);
|
|
1149
|
-
}
|
|
1150
|
-
const contents = (0, import_smithy_client.map)({
|
|
1151
|
-
$metadata: deserializeMetadata(output)
|
|
1152
|
-
});
|
|
1153
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1154
|
-
return contents;
|
|
1155
|
-
}, "de_UntagResourceCommand");
|
|
1156
|
-
var de_UpdateCanaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1157
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1158
|
-
return de_CommandError(output, context);
|
|
1159
|
-
}
|
|
1160
|
-
const contents = (0, import_smithy_client.map)({
|
|
1161
|
-
$metadata: deserializeMetadata(output)
|
|
1162
|
-
});
|
|
1163
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1164
|
-
return contents;
|
|
1165
|
-
}, "de_UpdateCanaryCommand");
|
|
1166
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1167
|
-
const parsedOutput = {
|
|
1168
|
-
...output,
|
|
1169
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1170
|
-
};
|
|
1171
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1172
|
-
switch (errorCode) {
|
|
1173
|
-
case "ConflictException":
|
|
1174
|
-
case "com.amazonaws.synthetics#ConflictException":
|
|
1175
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1176
|
-
case "InternalServerException":
|
|
1177
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
1178
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1179
|
-
case "ResourceNotFoundException":
|
|
1180
|
-
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
1181
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1182
|
-
case "ServiceQuotaExceededException":
|
|
1183
|
-
case "com.amazonaws.synthetics#ServiceQuotaExceededException":
|
|
1184
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1185
|
-
case "ValidationException":
|
|
1186
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
1187
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1188
|
-
case "RequestEntityTooLargeException":
|
|
1189
|
-
case "com.amazonaws.synthetics#RequestEntityTooLargeException":
|
|
1190
|
-
throw await de_RequestEntityTooLargeExceptionRes(parsedOutput, context);
|
|
1191
|
-
case "BadRequestException":
|
|
1192
|
-
case "com.amazonaws.synthetics#BadRequestException":
|
|
1193
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1194
|
-
case "InternalFailureException":
|
|
1195
|
-
case "com.amazonaws.synthetics#InternalFailureException":
|
|
1196
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1197
|
-
case "NotFoundException":
|
|
1198
|
-
case "com.amazonaws.synthetics#NotFoundException":
|
|
1199
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1200
|
-
case "TooManyRequestsException":
|
|
1201
|
-
case "com.amazonaws.synthetics#TooManyRequestsException":
|
|
1202
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1203
|
-
case "AccessDeniedException":
|
|
1204
|
-
case "com.amazonaws.synthetics#AccessDeniedException":
|
|
1205
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1206
|
-
default:
|
|
1207
|
-
const parsedBody = parsedOutput.body;
|
|
1208
|
-
return throwDefaultError({
|
|
1209
|
-
output,
|
|
1210
|
-
parsedBody,
|
|
1211
|
-
errorCode
|
|
1212
|
-
});
|
|
1213
|
-
}
|
|
1214
|
-
}, "de_CommandError");
|
|
1215
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(SyntheticsServiceException);
|
|
1216
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1217
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1218
|
-
const data = parsedOutput.body;
|
|
1219
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1220
|
-
Message: import_smithy_client.expectString
|
|
1221
|
-
});
|
|
1222
|
-
Object.assign(contents, doc);
|
|
1223
|
-
const exception = new AccessDeniedException({
|
|
1224
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1225
|
-
...contents
|
|
1226
|
-
});
|
|
1227
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1228
|
-
}, "de_AccessDeniedExceptionRes");
|
|
1229
|
-
var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1230
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1231
|
-
const data = parsedOutput.body;
|
|
1232
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1233
|
-
Message: import_smithy_client.expectString
|
|
1234
|
-
});
|
|
1235
|
-
Object.assign(contents, doc);
|
|
1236
|
-
const exception = new BadRequestException({
|
|
1237
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1238
|
-
...contents
|
|
1239
|
-
});
|
|
1240
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1241
|
-
}, "de_BadRequestExceptionRes");
|
|
1242
|
-
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1243
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1244
|
-
const data = parsedOutput.body;
|
|
1245
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1246
|
-
Message: import_smithy_client.expectString
|
|
1247
|
-
});
|
|
1248
|
-
Object.assign(contents, doc);
|
|
1249
|
-
const exception = new ConflictException({
|
|
1250
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1251
|
-
...contents
|
|
1252
|
-
});
|
|
1253
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1254
|
-
}, "de_ConflictExceptionRes");
|
|
1255
|
-
var de_InternalFailureExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1256
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1257
|
-
const data = parsedOutput.body;
|
|
1258
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1259
|
-
Message: import_smithy_client.expectString
|
|
1260
|
-
});
|
|
1261
|
-
Object.assign(contents, doc);
|
|
1262
|
-
const exception = new InternalFailureException({
|
|
1263
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1264
|
-
...contents
|
|
1265
|
-
});
|
|
1266
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1267
|
-
}, "de_InternalFailureExceptionRes");
|
|
1268
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1269
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1270
|
-
const data = parsedOutput.body;
|
|
1271
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1272
|
-
Message: import_smithy_client.expectString
|
|
1273
|
-
});
|
|
1274
|
-
Object.assign(contents, doc);
|
|
1275
|
-
const exception = new InternalServerException({
|
|
1276
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1277
|
-
...contents
|
|
1278
|
-
});
|
|
1279
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1280
|
-
}, "de_InternalServerExceptionRes");
|
|
1281
|
-
var de_NotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1282
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1283
|
-
const data = parsedOutput.body;
|
|
1284
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1285
|
-
Message: import_smithy_client.expectString
|
|
1286
|
-
});
|
|
1287
|
-
Object.assign(contents, doc);
|
|
1288
|
-
const exception = new NotFoundException({
|
|
1289
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1290
|
-
...contents
|
|
1291
|
-
});
|
|
1292
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1293
|
-
}, "de_NotFoundExceptionRes");
|
|
1294
|
-
var de_RequestEntityTooLargeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1295
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1296
|
-
const data = parsedOutput.body;
|
|
1297
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1298
|
-
Message: import_smithy_client.expectString
|
|
1299
|
-
});
|
|
1300
|
-
Object.assign(contents, doc);
|
|
1301
|
-
const exception = new RequestEntityTooLargeException({
|
|
1302
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1303
|
-
...contents
|
|
1304
|
-
});
|
|
1305
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1306
|
-
}, "de_RequestEntityTooLargeExceptionRes");
|
|
1307
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1308
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1309
|
-
const data = parsedOutput.body;
|
|
1310
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1311
|
-
Message: import_smithy_client.expectString
|
|
1312
|
-
});
|
|
1313
|
-
Object.assign(contents, doc);
|
|
1314
|
-
const exception = new ResourceNotFoundException({
|
|
1315
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1316
|
-
...contents
|
|
1317
|
-
});
|
|
1318
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1319
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
1320
|
-
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1321
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1322
|
-
const data = parsedOutput.body;
|
|
1323
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1324
|
-
Message: import_smithy_client.expectString
|
|
1325
|
-
});
|
|
1326
|
-
Object.assign(contents, doc);
|
|
1327
|
-
const exception = new ServiceQuotaExceededException({
|
|
1328
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1329
|
-
...contents
|
|
1330
|
-
});
|
|
1331
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1332
|
-
}, "de_ServiceQuotaExceededExceptionRes");
|
|
1333
|
-
var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1334
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1335
|
-
const data = parsedOutput.body;
|
|
1336
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1337
|
-
Message: import_smithy_client.expectString
|
|
1338
|
-
});
|
|
1339
|
-
Object.assign(contents, doc);
|
|
1340
|
-
const exception = new TooManyRequestsException({
|
|
1341
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1342
|
-
...contents
|
|
1343
|
-
});
|
|
1344
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1345
|
-
}, "de_TooManyRequestsExceptionRes");
|
|
1346
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1347
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1348
|
-
const data = parsedOutput.body;
|
|
1349
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1350
|
-
Message: import_smithy_client.expectString
|
|
1351
|
-
});
|
|
1352
|
-
Object.assign(contents, doc);
|
|
1353
|
-
const exception = new ValidationException({
|
|
1354
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1355
|
-
...contents
|
|
1356
|
-
});
|
|
1357
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1358
|
-
}, "de_ValidationExceptionRes");
|
|
1359
|
-
var se_CanaryCodeInput = /* @__PURE__ */ __name((input, context) => {
|
|
1360
|
-
return (0, import_smithy_client.take)(input, {
|
|
1361
|
-
BlueprintTypes: import_smithy_client._json,
|
|
1362
|
-
Dependencies: import_smithy_client._json,
|
|
1363
|
-
Handler: [],
|
|
1364
|
-
S3Bucket: [],
|
|
1365
|
-
S3Key: [],
|
|
1366
|
-
S3Version: [],
|
|
1367
|
-
ZipFile: context.base64Encoder
|
|
1368
|
-
});
|
|
1369
|
-
}, "se_CanaryCodeInput");
|
|
1370
|
-
var de_Canaries = /* @__PURE__ */ __name((output, context) => {
|
|
1371
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1372
|
-
return de_Canary(entry, context);
|
|
1373
|
-
});
|
|
1374
|
-
return retVal;
|
|
1375
|
-
}, "de_Canaries");
|
|
1376
|
-
var de_CanariesLastRun = /* @__PURE__ */ __name((output, context) => {
|
|
1377
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1378
|
-
return de_CanaryLastRun(entry, context);
|
|
1379
|
-
});
|
|
1380
|
-
return retVal;
|
|
1381
|
-
}, "de_CanariesLastRun");
|
|
1382
|
-
var de_Canary = /* @__PURE__ */ __name((output, context) => {
|
|
1383
|
-
return (0, import_smithy_client.take)(output, {
|
|
1384
|
-
ArtifactConfig: import_smithy_client._json,
|
|
1385
|
-
ArtifactS3Location: import_smithy_client.expectString,
|
|
1386
|
-
BrowserConfigs: import_smithy_client._json,
|
|
1387
|
-
Code: import_smithy_client._json,
|
|
1388
|
-
DryRunConfig: import_smithy_client._json,
|
|
1389
|
-
EngineArn: import_smithy_client.expectString,
|
|
1390
|
-
EngineConfigs: import_smithy_client._json,
|
|
1391
|
-
ExecutionRoleArn: import_smithy_client.expectString,
|
|
1392
|
-
FailureRetentionPeriodInDays: import_smithy_client.expectInt32,
|
|
1393
|
-
Id: import_smithy_client.expectString,
|
|
1394
|
-
Name: import_smithy_client.expectString,
|
|
1395
|
-
ProvisionedResourceCleanup: import_smithy_client.expectString,
|
|
1396
|
-
RunConfig: import_smithy_client._json,
|
|
1397
|
-
RuntimeVersion: import_smithy_client.expectString,
|
|
1398
|
-
Schedule: import_smithy_client._json,
|
|
1399
|
-
Status: import_smithy_client._json,
|
|
1400
|
-
SuccessRetentionPeriodInDays: import_smithy_client.expectInt32,
|
|
1401
|
-
Tags: import_smithy_client._json,
|
|
1402
|
-
Timeline: /* @__PURE__ */ __name((_) => de_CanaryTimeline(_, context), "Timeline"),
|
|
1403
|
-
VisualReference: import_smithy_client._json,
|
|
1404
|
-
VisualReferences: import_smithy_client._json,
|
|
1405
|
-
VpcConfig: import_smithy_client._json
|
|
1406
|
-
});
|
|
1407
|
-
}, "de_Canary");
|
|
1408
|
-
var de_CanaryLastRun = /* @__PURE__ */ __name((output, context) => {
|
|
1409
|
-
return (0, import_smithy_client.take)(output, {
|
|
1410
|
-
CanaryName: import_smithy_client.expectString,
|
|
1411
|
-
LastRun: /* @__PURE__ */ __name((_) => de_CanaryRun(_, context), "LastRun")
|
|
1412
|
-
});
|
|
1413
|
-
}, "de_CanaryLastRun");
|
|
1414
|
-
var de_CanaryRun = /* @__PURE__ */ __name((output, context) => {
|
|
1415
|
-
return (0, import_smithy_client.take)(output, {
|
|
1416
|
-
ArtifactS3Location: import_smithy_client.expectString,
|
|
1417
|
-
BrowserType: import_smithy_client.expectString,
|
|
1418
|
-
DryRunConfig: import_smithy_client._json,
|
|
1419
|
-
Id: import_smithy_client.expectString,
|
|
1420
|
-
Name: import_smithy_client.expectString,
|
|
1421
|
-
RetryAttempt: import_smithy_client.expectInt32,
|
|
1422
|
-
ScheduledRunId: import_smithy_client.expectString,
|
|
1423
|
-
Status: import_smithy_client._json,
|
|
1424
|
-
Timeline: /* @__PURE__ */ __name((_) => de_CanaryRunTimeline(_, context), "Timeline")
|
|
1425
|
-
});
|
|
1426
|
-
}, "de_CanaryRun");
|
|
1427
|
-
var de_CanaryRuns = /* @__PURE__ */ __name((output, context) => {
|
|
1428
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1429
|
-
return de_CanaryRun(entry, context);
|
|
1430
|
-
});
|
|
1431
|
-
return retVal;
|
|
1432
|
-
}, "de_CanaryRuns");
|
|
1433
|
-
var de_CanaryRunTimeline = /* @__PURE__ */ __name((output, context) => {
|
|
1434
|
-
return (0, import_smithy_client.take)(output, {
|
|
1435
|
-
Completed: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "Completed"),
|
|
1436
|
-
MetricTimestampForRunAndRetries: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "MetricTimestampForRunAndRetries"),
|
|
1437
|
-
Started: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "Started")
|
|
1438
|
-
});
|
|
1439
|
-
}, "de_CanaryRunTimeline");
|
|
1440
|
-
var de_CanaryTimeline = /* @__PURE__ */ __name((output, context) => {
|
|
1441
|
-
return (0, import_smithy_client.take)(output, {
|
|
1442
|
-
Created: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "Created"),
|
|
1443
|
-
LastModified: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModified"),
|
|
1444
|
-
LastStarted: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastStarted"),
|
|
1445
|
-
LastStopped: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastStopped")
|
|
1446
|
-
});
|
|
1447
|
-
}, "de_CanaryTimeline");
|
|
1448
|
-
var de_Group = /* @__PURE__ */ __name((output, context) => {
|
|
1449
|
-
return (0, import_smithy_client.take)(output, {
|
|
1450
|
-
Arn: import_smithy_client.expectString,
|
|
1451
|
-
CreatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedTime"),
|
|
1452
|
-
Id: import_smithy_client.expectString,
|
|
1453
|
-
LastModifiedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModifiedTime"),
|
|
1454
|
-
Name: import_smithy_client.expectString,
|
|
1455
|
-
Tags: import_smithy_client._json
|
|
1456
|
-
});
|
|
1457
|
-
}, "de_Group");
|
|
1458
|
-
var de_RuntimeVersion = /* @__PURE__ */ __name((output, context) => {
|
|
1459
|
-
return (0, import_smithy_client.take)(output, {
|
|
1460
|
-
DeprecationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "DeprecationDate"),
|
|
1461
|
-
Description: import_smithy_client.expectString,
|
|
1462
|
-
ReleaseDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ReleaseDate"),
|
|
1463
|
-
VersionName: import_smithy_client.expectString
|
|
1464
|
-
});
|
|
1465
|
-
}, "de_RuntimeVersion");
|
|
1466
|
-
var de_RuntimeVersionList = /* @__PURE__ */ __name((output, context) => {
|
|
1467
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1468
|
-
return de_RuntimeVersion(entry, context);
|
|
1469
|
-
});
|
|
1470
|
-
return retVal;
|
|
1471
|
-
}, "de_RuntimeVersionList");
|
|
1472
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1473
|
-
httpStatusCode: output.statusCode,
|
|
1474
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1475
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1476
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
1477
|
-
}), "deserializeMetadata");
|
|
1478
|
-
var _DL = "DeleteLambda";
|
|
1479
|
-
var _DRI = "DryRunId";
|
|
1480
|
-
var _TK = "TagKeys";
|
|
1481
|
-
var _dL = "deleteLambda";
|
|
1482
|
-
var _dRI = "dryRunId";
|
|
1483
|
-
var _tK = "tagKeys";
|
|
1484
|
-
|
|
1485
|
-
// src/commands/AssociateResourceCommand.ts
|
|
1486
|
-
var AssociateResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1487
|
-
return [
|
|
1488
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1489
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1490
|
-
];
|
|
1491
|
-
}).s("Synthetics", "AssociateResource", {}).n("SyntheticsClient", "AssociateResourceCommand").f(void 0, void 0).ser(se_AssociateResourceCommand).de(de_AssociateResourceCommand).build() {
|
|
1492
|
-
static {
|
|
1493
|
-
__name(this, "AssociateResourceCommand");
|
|
1494
|
-
}
|
|
229
|
+
const ProvisionedResourceCleanupSetting = {
|
|
230
|
+
AUTOMATIC: "AUTOMATIC",
|
|
231
|
+
OFF: "OFF",
|
|
1495
232
|
};
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
}).s("Synthetics", "CreateCanary", {}).n("SyntheticsClient", "CreateCanaryCommand").f(void 0, void 0).ser(se_CreateCanaryCommand).de(de_CreateCanaryCommand).build() {
|
|
1507
|
-
static {
|
|
1508
|
-
__name(this, "CreateCanaryCommand");
|
|
1509
|
-
}
|
|
233
|
+
const CanaryState = {
|
|
234
|
+
CREATING: "CREATING",
|
|
235
|
+
DELETING: "DELETING",
|
|
236
|
+
ERROR: "ERROR",
|
|
237
|
+
READY: "READY",
|
|
238
|
+
RUNNING: "RUNNING",
|
|
239
|
+
STARTING: "STARTING",
|
|
240
|
+
STOPPED: "STOPPED",
|
|
241
|
+
STOPPING: "STOPPING",
|
|
242
|
+
UPDATING: "UPDATING",
|
|
1510
243
|
};
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
}
|
|
244
|
+
const CanaryStateReasonCode = {
|
|
245
|
+
CREATE_FAILED: "CREATE_FAILED",
|
|
246
|
+
CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
|
|
247
|
+
CREATE_PENDING: "CREATE_PENDING",
|
|
248
|
+
DELETE_FAILED: "DELETE_FAILED",
|
|
249
|
+
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
250
|
+
INVALID_PERMISSIONS: "INVALID_PERMISSIONS",
|
|
251
|
+
ROLLBACK_COMPLETE: "ROLLBACK_COMPLETE",
|
|
252
|
+
ROLLBACK_FAILED: "ROLLBACK_FAILED",
|
|
253
|
+
SYNC_DELETE_IN_PROGRESS: "SYNC_DELETE_IN_PROGRESS",
|
|
254
|
+
UPDATE_COMPLETE: "UPDATE_COMPLETE",
|
|
255
|
+
UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS",
|
|
256
|
+
UPDATE_PENDING: "UPDATE_PENDING",
|
|
1525
257
|
};
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
var DeleteCanaryCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1532
|
-
return [
|
|
1533
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1534
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1535
|
-
];
|
|
1536
|
-
}).s("Synthetics", "DeleteCanary", {}).n("SyntheticsClient", "DeleteCanaryCommand").f(void 0, void 0).ser(se_DeleteCanaryCommand).de(de_DeleteCanaryCommand).build() {
|
|
1537
|
-
static {
|
|
1538
|
-
__name(this, "DeleteCanaryCommand");
|
|
1539
|
-
}
|
|
258
|
+
const CanaryRunState = {
|
|
259
|
+
FAILED: "FAILED",
|
|
260
|
+
PASSED: "PASSED",
|
|
261
|
+
RUNNING: "RUNNING",
|
|
1540
262
|
};
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
var DeleteGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1547
|
-
return [
|
|
1548
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1549
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1550
|
-
];
|
|
1551
|
-
}).s("Synthetics", "DeleteGroup", {}).n("SyntheticsClient", "DeleteGroupCommand").f(void 0, void 0).ser(se_DeleteGroupCommand).de(de_DeleteGroupCommand).build() {
|
|
1552
|
-
static {
|
|
1553
|
-
__name(this, "DeleteGroupCommand");
|
|
1554
|
-
}
|
|
263
|
+
const CanaryRunStateReasonCode = {
|
|
264
|
+
CANARY_FAILURE: "CANARY_FAILURE",
|
|
265
|
+
EXECUTION_FAILURE: "EXECUTION_FAILURE",
|
|
1555
266
|
};
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
var DescribeCanariesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1562
|
-
return [
|
|
1563
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1564
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1565
|
-
];
|
|
1566
|
-
}).s("Synthetics", "DescribeCanaries", {}).n("SyntheticsClient", "DescribeCanariesCommand").f(void 0, void 0).ser(se_DescribeCanariesCommand).de(de_DescribeCanariesCommand).build() {
|
|
1567
|
-
static {
|
|
1568
|
-
__name(this, "DescribeCanariesCommand");
|
|
1569
|
-
}
|
|
267
|
+
const CanaryRunTestResult = {
|
|
268
|
+
FAILED: "FAILED",
|
|
269
|
+
PASSED: "PASSED",
|
|
270
|
+
UNKNOWN: "UNKNOWN",
|
|
1570
271
|
};
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
var DescribeCanariesLastRunCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1577
|
-
return [
|
|
1578
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1579
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1580
|
-
];
|
|
1581
|
-
}).s("Synthetics", "DescribeCanariesLastRun", {}).n("SyntheticsClient", "DescribeCanariesLastRunCommand").f(void 0, void 0).ser(se_DescribeCanariesLastRunCommand).de(de_DescribeCanariesLastRunCommand).build() {
|
|
1582
|
-
static {
|
|
1583
|
-
__name(this, "DescribeCanariesLastRunCommand");
|
|
1584
|
-
}
|
|
272
|
+
const ResourceToTag = {
|
|
273
|
+
LAMBDA_FUNCTION: "lambda-function",
|
|
1585
274
|
};
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
275
|
+
class RequestEntityTooLargeException extends SyntheticsServiceException {
|
|
276
|
+
name = "RequestEntityTooLargeException";
|
|
277
|
+
$fault = "client";
|
|
278
|
+
Message;
|
|
279
|
+
constructor(opts) {
|
|
280
|
+
super({
|
|
281
|
+
name: "RequestEntityTooLargeException",
|
|
282
|
+
$fault: "client",
|
|
283
|
+
...opts,
|
|
284
|
+
});
|
|
285
|
+
Object.setPrototypeOf(this, RequestEntityTooLargeException.prototype);
|
|
286
|
+
this.Message = opts.Message;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
const RunType = {
|
|
290
|
+
CANARY_RUN: "CANARY_RUN",
|
|
291
|
+
DRY_RUN: "DRY_RUN",
|
|
1600
292
|
};
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
293
|
+
class InternalFailureException extends SyntheticsServiceException {
|
|
294
|
+
name = "InternalFailureException";
|
|
295
|
+
$fault = "server";
|
|
296
|
+
Message;
|
|
297
|
+
constructor(opts) {
|
|
298
|
+
super({
|
|
299
|
+
name: "InternalFailureException",
|
|
300
|
+
$fault: "server",
|
|
301
|
+
...opts,
|
|
302
|
+
});
|
|
303
|
+
Object.setPrototypeOf(this, InternalFailureException.prototype);
|
|
304
|
+
this.Message = opts.Message;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
class NotFoundException extends SyntheticsServiceException {
|
|
308
|
+
name = "NotFoundException";
|
|
309
|
+
$fault = "client";
|
|
310
|
+
Message;
|
|
311
|
+
constructor(opts) {
|
|
312
|
+
super({
|
|
313
|
+
name: "NotFoundException",
|
|
314
|
+
$fault: "client",
|
|
315
|
+
...opts,
|
|
316
|
+
});
|
|
317
|
+
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
318
|
+
this.Message = opts.Message;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
class TooManyRequestsException extends SyntheticsServiceException {
|
|
322
|
+
name = "TooManyRequestsException";
|
|
323
|
+
$fault = "client";
|
|
324
|
+
Message;
|
|
325
|
+
constructor(opts) {
|
|
326
|
+
super({
|
|
327
|
+
name: "TooManyRequestsException",
|
|
328
|
+
$fault: "client",
|
|
329
|
+
...opts,
|
|
330
|
+
});
|
|
331
|
+
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
332
|
+
this.Message = opts.Message;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
const se_AssociateResourceCommand = async (input, context) => {
|
|
337
|
+
const b = core.requestBuilder(input, context);
|
|
338
|
+
const headers = {
|
|
339
|
+
"content-type": "application/json",
|
|
340
|
+
};
|
|
341
|
+
b.bp("/group/{GroupIdentifier}/associate");
|
|
342
|
+
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
343
|
+
let body;
|
|
344
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
345
|
+
ResourceArn: [],
|
|
346
|
+
}));
|
|
347
|
+
b.m("PATCH").h(headers).b(body);
|
|
348
|
+
return b.build();
|
|
1615
349
|
};
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
350
|
+
const se_CreateCanaryCommand = async (input, context) => {
|
|
351
|
+
const b = core.requestBuilder(input, context);
|
|
352
|
+
const headers = {
|
|
353
|
+
"content-type": "application/json",
|
|
354
|
+
};
|
|
355
|
+
b.bp("/canary");
|
|
356
|
+
let body;
|
|
357
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
358
|
+
ArtifactConfig: (_) => smithyClient._json(_),
|
|
359
|
+
ArtifactS3Location: [],
|
|
360
|
+
BrowserConfigs: (_) => smithyClient._json(_),
|
|
361
|
+
Code: (_) => se_CanaryCodeInput(_, context),
|
|
362
|
+
ExecutionRoleArn: [],
|
|
363
|
+
FailureRetentionPeriodInDays: [],
|
|
364
|
+
Name: [],
|
|
365
|
+
ProvisionedResourceCleanup: [],
|
|
366
|
+
ResourcesToReplicateTags: (_) => smithyClient._json(_),
|
|
367
|
+
RunConfig: (_) => smithyClient._json(_),
|
|
368
|
+
RuntimeVersion: [],
|
|
369
|
+
Schedule: (_) => smithyClient._json(_),
|
|
370
|
+
SuccessRetentionPeriodInDays: [],
|
|
371
|
+
Tags: (_) => smithyClient._json(_),
|
|
372
|
+
VpcConfig: (_) => smithyClient._json(_),
|
|
373
|
+
}));
|
|
374
|
+
b.m("POST").h(headers).b(body);
|
|
375
|
+
return b.build();
|
|
1630
376
|
};
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
})
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
}
|
|
377
|
+
const se_CreateGroupCommand = async (input, context) => {
|
|
378
|
+
const b = core.requestBuilder(input, context);
|
|
379
|
+
const headers = {
|
|
380
|
+
"content-type": "application/json",
|
|
381
|
+
};
|
|
382
|
+
b.bp("/group");
|
|
383
|
+
let body;
|
|
384
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
385
|
+
Name: [],
|
|
386
|
+
Tags: (_) => smithyClient._json(_),
|
|
387
|
+
}));
|
|
388
|
+
b.m("POST").h(headers).b(body);
|
|
389
|
+
return b.build();
|
|
1645
390
|
};
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
static {
|
|
1658
|
-
__name(this, "GetGroupCommand");
|
|
1659
|
-
}
|
|
391
|
+
const se_DeleteCanaryCommand = async (input, context) => {
|
|
392
|
+
const b = core.requestBuilder(input, context);
|
|
393
|
+
const headers = {};
|
|
394
|
+
b.bp("/canary/{Name}");
|
|
395
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
396
|
+
const query = smithyClient.map({
|
|
397
|
+
[_dL]: [() => input.DeleteLambda !== void 0, () => input[_DL].toString()],
|
|
398
|
+
});
|
|
399
|
+
let body;
|
|
400
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
401
|
+
return b.build();
|
|
1660
402
|
};
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1670
|
-
];
|
|
1671
|
-
}).s("Synthetics", "ListAssociatedGroups", {}).n("SyntheticsClient", "ListAssociatedGroupsCommand").f(void 0, void 0).ser(se_ListAssociatedGroupsCommand).de(de_ListAssociatedGroupsCommand).build() {
|
|
1672
|
-
static {
|
|
1673
|
-
__name(this, "ListAssociatedGroupsCommand");
|
|
1674
|
-
}
|
|
403
|
+
const se_DeleteGroupCommand = async (input, context) => {
|
|
404
|
+
const b = core.requestBuilder(input, context);
|
|
405
|
+
const headers = {};
|
|
406
|
+
b.bp("/group/{GroupIdentifier}");
|
|
407
|
+
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
408
|
+
let body;
|
|
409
|
+
b.m("DELETE").h(headers).b(body);
|
|
410
|
+
return b.build();
|
|
1675
411
|
};
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
412
|
+
const se_DescribeCanariesCommand = async (input, context) => {
|
|
413
|
+
const b = core.requestBuilder(input, context);
|
|
414
|
+
const headers = {
|
|
415
|
+
"content-type": "application/json",
|
|
416
|
+
};
|
|
417
|
+
b.bp("/canaries");
|
|
418
|
+
let body;
|
|
419
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
420
|
+
MaxResults: [],
|
|
421
|
+
Names: (_) => smithyClient._json(_),
|
|
422
|
+
NextToken: [],
|
|
423
|
+
}));
|
|
424
|
+
b.m("POST").h(headers).b(body);
|
|
425
|
+
return b.build();
|
|
1690
426
|
};
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
427
|
+
const se_DescribeCanariesLastRunCommand = async (input, context) => {
|
|
428
|
+
const b = core.requestBuilder(input, context);
|
|
429
|
+
const headers = {
|
|
430
|
+
"content-type": "application/json",
|
|
431
|
+
};
|
|
432
|
+
b.bp("/canaries/last-run");
|
|
433
|
+
let body;
|
|
434
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
435
|
+
BrowserType: [],
|
|
436
|
+
MaxResults: [],
|
|
437
|
+
Names: (_) => smithyClient._json(_),
|
|
438
|
+
NextToken: [],
|
|
439
|
+
}));
|
|
440
|
+
b.m("POST").h(headers).b(body);
|
|
441
|
+
return b.build();
|
|
1705
442
|
};
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
})
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
}
|
|
443
|
+
const se_DescribeRuntimeVersionsCommand = async (input, context) => {
|
|
444
|
+
const b = core.requestBuilder(input, context);
|
|
445
|
+
const headers = {
|
|
446
|
+
"content-type": "application/json",
|
|
447
|
+
};
|
|
448
|
+
b.bp("/runtime-versions");
|
|
449
|
+
let body;
|
|
450
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
451
|
+
MaxResults: [],
|
|
452
|
+
NextToken: [],
|
|
453
|
+
}));
|
|
454
|
+
b.m("POST").h(headers).b(body);
|
|
455
|
+
return b.build();
|
|
1720
456
|
};
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
})
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
}
|
|
457
|
+
const se_DisassociateResourceCommand = async (input, context) => {
|
|
458
|
+
const b = core.requestBuilder(input, context);
|
|
459
|
+
const headers = {
|
|
460
|
+
"content-type": "application/json",
|
|
461
|
+
};
|
|
462
|
+
b.bp("/group/{GroupIdentifier}/disassociate");
|
|
463
|
+
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
464
|
+
let body;
|
|
465
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
466
|
+
ResourceArn: [],
|
|
467
|
+
}));
|
|
468
|
+
b.m("PATCH").h(headers).b(body);
|
|
469
|
+
return b.build();
|
|
1735
470
|
};
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
static {
|
|
1748
|
-
__name(this, "StartCanaryDryRunCommand");
|
|
1749
|
-
}
|
|
471
|
+
const se_GetCanaryCommand = async (input, context) => {
|
|
472
|
+
const b = core.requestBuilder(input, context);
|
|
473
|
+
const headers = {};
|
|
474
|
+
b.bp("/canary/{Name}");
|
|
475
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
476
|
+
const query = smithyClient.map({
|
|
477
|
+
[_dRI]: [, input[_DRI]],
|
|
478
|
+
});
|
|
479
|
+
let body;
|
|
480
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
481
|
+
return b.build();
|
|
1750
482
|
};
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
483
|
+
const se_GetCanaryRunsCommand = async (input, context) => {
|
|
484
|
+
const b = core.requestBuilder(input, context);
|
|
485
|
+
const headers = {
|
|
486
|
+
"content-type": "application/json",
|
|
487
|
+
};
|
|
488
|
+
b.bp("/canary/{Name}/runs");
|
|
489
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
490
|
+
let body;
|
|
491
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
492
|
+
DryRunId: [],
|
|
493
|
+
MaxResults: [],
|
|
494
|
+
NextToken: [],
|
|
495
|
+
RunType: [],
|
|
496
|
+
}));
|
|
497
|
+
b.m("POST").h(headers).b(body);
|
|
498
|
+
return b.build();
|
|
1765
499
|
};
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1775
|
-
];
|
|
1776
|
-
}).s("Synthetics", "TagResource", {}).n("SyntheticsClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
1777
|
-
static {
|
|
1778
|
-
__name(this, "TagResourceCommand");
|
|
1779
|
-
}
|
|
500
|
+
const se_GetGroupCommand = async (input, context) => {
|
|
501
|
+
const b = core.requestBuilder(input, context);
|
|
502
|
+
const headers = {};
|
|
503
|
+
b.bp("/group/{GroupIdentifier}");
|
|
504
|
+
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
505
|
+
let body;
|
|
506
|
+
b.m("GET").h(headers).b(body);
|
|
507
|
+
return b.build();
|
|
1780
508
|
};
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
509
|
+
const se_ListAssociatedGroupsCommand = async (input, context) => {
|
|
510
|
+
const b = core.requestBuilder(input, context);
|
|
511
|
+
const headers = {
|
|
512
|
+
"content-type": "application/json",
|
|
513
|
+
};
|
|
514
|
+
b.bp("/resource/{ResourceArn}/groups");
|
|
515
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
516
|
+
let body;
|
|
517
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
518
|
+
MaxResults: [],
|
|
519
|
+
NextToken: [],
|
|
520
|
+
}));
|
|
521
|
+
b.m("POST").h(headers).b(body);
|
|
522
|
+
return b.build();
|
|
1795
523
|
};
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
524
|
+
const se_ListGroupResourcesCommand = async (input, context) => {
|
|
525
|
+
const b = core.requestBuilder(input, context);
|
|
526
|
+
const headers = {
|
|
527
|
+
"content-type": "application/json",
|
|
528
|
+
};
|
|
529
|
+
b.bp("/group/{GroupIdentifier}/resources");
|
|
530
|
+
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
531
|
+
let body;
|
|
532
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
533
|
+
MaxResults: [],
|
|
534
|
+
NextToken: [],
|
|
535
|
+
}));
|
|
536
|
+
b.m("POST").h(headers).b(body);
|
|
537
|
+
return b.build();
|
|
1810
538
|
};
|
|
539
|
+
const se_ListGroupsCommand = async (input, context) => {
|
|
540
|
+
const b = core.requestBuilder(input, context);
|
|
541
|
+
const headers = {
|
|
542
|
+
"content-type": "application/json",
|
|
543
|
+
};
|
|
544
|
+
b.bp("/groups");
|
|
545
|
+
let body;
|
|
546
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
547
|
+
MaxResults: [],
|
|
548
|
+
NextToken: [],
|
|
549
|
+
}));
|
|
550
|
+
b.m("POST").h(headers).b(body);
|
|
551
|
+
return b.build();
|
|
552
|
+
};
|
|
553
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
554
|
+
const b = core.requestBuilder(input, context);
|
|
555
|
+
const headers = {};
|
|
556
|
+
b.bp("/tags/{ResourceArn}");
|
|
557
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
558
|
+
let body;
|
|
559
|
+
b.m("GET").h(headers).b(body);
|
|
560
|
+
return b.build();
|
|
561
|
+
};
|
|
562
|
+
const se_StartCanaryCommand = async (input, context) => {
|
|
563
|
+
const b = core.requestBuilder(input, context);
|
|
564
|
+
const headers = {};
|
|
565
|
+
b.bp("/canary/{Name}/start");
|
|
566
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
567
|
+
let body;
|
|
568
|
+
b.m("POST").h(headers).b(body);
|
|
569
|
+
return b.build();
|
|
570
|
+
};
|
|
571
|
+
const se_StartCanaryDryRunCommand = async (input, context) => {
|
|
572
|
+
const b = core.requestBuilder(input, context);
|
|
573
|
+
const headers = {
|
|
574
|
+
"content-type": "application/json",
|
|
575
|
+
};
|
|
576
|
+
b.bp("/canary/{Name}/dry-run/start");
|
|
577
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
578
|
+
let body;
|
|
579
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
580
|
+
ArtifactConfig: (_) => smithyClient._json(_),
|
|
581
|
+
ArtifactS3Location: [],
|
|
582
|
+
BrowserConfigs: (_) => smithyClient._json(_),
|
|
583
|
+
Code: (_) => se_CanaryCodeInput(_, context),
|
|
584
|
+
ExecutionRoleArn: [],
|
|
585
|
+
FailureRetentionPeriodInDays: [],
|
|
586
|
+
ProvisionedResourceCleanup: [],
|
|
587
|
+
RunConfig: (_) => smithyClient._json(_),
|
|
588
|
+
RuntimeVersion: [],
|
|
589
|
+
SuccessRetentionPeriodInDays: [],
|
|
590
|
+
VisualReference: (_) => smithyClient._json(_),
|
|
591
|
+
VisualReferences: (_) => smithyClient._json(_),
|
|
592
|
+
VpcConfig: (_) => smithyClient._json(_),
|
|
593
|
+
}));
|
|
594
|
+
b.m("POST").h(headers).b(body);
|
|
595
|
+
return b.build();
|
|
596
|
+
};
|
|
597
|
+
const se_StopCanaryCommand = async (input, context) => {
|
|
598
|
+
const b = core.requestBuilder(input, context);
|
|
599
|
+
const headers = {};
|
|
600
|
+
b.bp("/canary/{Name}/stop");
|
|
601
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
602
|
+
let body;
|
|
603
|
+
b.m("POST").h(headers).b(body);
|
|
604
|
+
return b.build();
|
|
605
|
+
};
|
|
606
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
607
|
+
const b = core.requestBuilder(input, context);
|
|
608
|
+
const headers = {
|
|
609
|
+
"content-type": "application/json",
|
|
610
|
+
};
|
|
611
|
+
b.bp("/tags/{ResourceArn}");
|
|
612
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
613
|
+
let body;
|
|
614
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
615
|
+
Tags: (_) => smithyClient._json(_),
|
|
616
|
+
}));
|
|
617
|
+
b.m("POST").h(headers).b(body);
|
|
618
|
+
return b.build();
|
|
619
|
+
};
|
|
620
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
621
|
+
const b = core.requestBuilder(input, context);
|
|
622
|
+
const headers = {};
|
|
623
|
+
b.bp("/tags/{ResourceArn}");
|
|
624
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
625
|
+
const query = smithyClient.map({
|
|
626
|
+
[_tK]: [smithyClient.expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
|
|
627
|
+
});
|
|
628
|
+
let body;
|
|
629
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
630
|
+
return b.build();
|
|
631
|
+
};
|
|
632
|
+
const se_UpdateCanaryCommand = async (input, context) => {
|
|
633
|
+
const b = core.requestBuilder(input, context);
|
|
634
|
+
const headers = {
|
|
635
|
+
"content-type": "application/json",
|
|
636
|
+
};
|
|
637
|
+
b.bp("/canary/{Name}");
|
|
638
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
639
|
+
let body;
|
|
640
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
641
|
+
ArtifactConfig: (_) => smithyClient._json(_),
|
|
642
|
+
ArtifactS3Location: [],
|
|
643
|
+
BrowserConfigs: (_) => smithyClient._json(_),
|
|
644
|
+
Code: (_) => se_CanaryCodeInput(_, context),
|
|
645
|
+
DryRunId: [],
|
|
646
|
+
ExecutionRoleArn: [],
|
|
647
|
+
FailureRetentionPeriodInDays: [],
|
|
648
|
+
ProvisionedResourceCleanup: [],
|
|
649
|
+
RunConfig: (_) => smithyClient._json(_),
|
|
650
|
+
RuntimeVersion: [],
|
|
651
|
+
Schedule: (_) => smithyClient._json(_),
|
|
652
|
+
SuccessRetentionPeriodInDays: [],
|
|
653
|
+
VisualReference: (_) => smithyClient._json(_),
|
|
654
|
+
VisualReferences: (_) => smithyClient._json(_),
|
|
655
|
+
VpcConfig: (_) => smithyClient._json(_),
|
|
656
|
+
}));
|
|
657
|
+
b.m("PATCH").h(headers).b(body);
|
|
658
|
+
return b.build();
|
|
659
|
+
};
|
|
660
|
+
const de_AssociateResourceCommand = async (output, context) => {
|
|
661
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
662
|
+
return de_CommandError(output, context);
|
|
663
|
+
}
|
|
664
|
+
const contents = smithyClient.map({
|
|
665
|
+
$metadata: deserializeMetadata(output),
|
|
666
|
+
});
|
|
667
|
+
await smithyClient.collectBody(output.body, context);
|
|
668
|
+
return contents;
|
|
669
|
+
};
|
|
670
|
+
const de_CreateCanaryCommand = async (output, context) => {
|
|
671
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
672
|
+
return de_CommandError(output, context);
|
|
673
|
+
}
|
|
674
|
+
const contents = smithyClient.map({
|
|
675
|
+
$metadata: deserializeMetadata(output),
|
|
676
|
+
});
|
|
677
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
678
|
+
const doc = smithyClient.take(data, {
|
|
679
|
+
Canary: (_) => de_Canary(_),
|
|
680
|
+
});
|
|
681
|
+
Object.assign(contents, doc);
|
|
682
|
+
return contents;
|
|
683
|
+
};
|
|
684
|
+
const de_CreateGroupCommand = async (output, context) => {
|
|
685
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
686
|
+
return de_CommandError(output, context);
|
|
687
|
+
}
|
|
688
|
+
const contents = smithyClient.map({
|
|
689
|
+
$metadata: deserializeMetadata(output),
|
|
690
|
+
});
|
|
691
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
692
|
+
const doc = smithyClient.take(data, {
|
|
693
|
+
Group: (_) => de_Group(_),
|
|
694
|
+
});
|
|
695
|
+
Object.assign(contents, doc);
|
|
696
|
+
return contents;
|
|
697
|
+
};
|
|
698
|
+
const de_DeleteCanaryCommand = async (output, context) => {
|
|
699
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
700
|
+
return de_CommandError(output, context);
|
|
701
|
+
}
|
|
702
|
+
const contents = smithyClient.map({
|
|
703
|
+
$metadata: deserializeMetadata(output),
|
|
704
|
+
});
|
|
705
|
+
await smithyClient.collectBody(output.body, context);
|
|
706
|
+
return contents;
|
|
707
|
+
};
|
|
708
|
+
const de_DeleteGroupCommand = async (output, context) => {
|
|
709
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
710
|
+
return de_CommandError(output, context);
|
|
711
|
+
}
|
|
712
|
+
const contents = smithyClient.map({
|
|
713
|
+
$metadata: deserializeMetadata(output),
|
|
714
|
+
});
|
|
715
|
+
await smithyClient.collectBody(output.body, context);
|
|
716
|
+
return contents;
|
|
717
|
+
};
|
|
718
|
+
const de_DescribeCanariesCommand = async (output, context) => {
|
|
719
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
720
|
+
return de_CommandError(output, context);
|
|
721
|
+
}
|
|
722
|
+
const contents = smithyClient.map({
|
|
723
|
+
$metadata: deserializeMetadata(output),
|
|
724
|
+
});
|
|
725
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
726
|
+
const doc = smithyClient.take(data, {
|
|
727
|
+
Canaries: (_) => de_Canaries(_),
|
|
728
|
+
NextToken: smithyClient.expectString,
|
|
729
|
+
});
|
|
730
|
+
Object.assign(contents, doc);
|
|
731
|
+
return contents;
|
|
732
|
+
};
|
|
733
|
+
const de_DescribeCanariesLastRunCommand = async (output, context) => {
|
|
734
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
735
|
+
return de_CommandError(output, context);
|
|
736
|
+
}
|
|
737
|
+
const contents = smithyClient.map({
|
|
738
|
+
$metadata: deserializeMetadata(output),
|
|
739
|
+
});
|
|
740
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
741
|
+
const doc = smithyClient.take(data, {
|
|
742
|
+
CanariesLastRun: (_) => de_CanariesLastRun(_),
|
|
743
|
+
NextToken: smithyClient.expectString,
|
|
744
|
+
});
|
|
745
|
+
Object.assign(contents, doc);
|
|
746
|
+
return contents;
|
|
747
|
+
};
|
|
748
|
+
const de_DescribeRuntimeVersionsCommand = async (output, context) => {
|
|
749
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
750
|
+
return de_CommandError(output, context);
|
|
751
|
+
}
|
|
752
|
+
const contents = smithyClient.map({
|
|
753
|
+
$metadata: deserializeMetadata(output),
|
|
754
|
+
});
|
|
755
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
756
|
+
const doc = smithyClient.take(data, {
|
|
757
|
+
NextToken: smithyClient.expectString,
|
|
758
|
+
RuntimeVersions: (_) => de_RuntimeVersionList(_),
|
|
759
|
+
});
|
|
760
|
+
Object.assign(contents, doc);
|
|
761
|
+
return contents;
|
|
762
|
+
};
|
|
763
|
+
const de_DisassociateResourceCommand = async (output, context) => {
|
|
764
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
765
|
+
return de_CommandError(output, context);
|
|
766
|
+
}
|
|
767
|
+
const contents = smithyClient.map({
|
|
768
|
+
$metadata: deserializeMetadata(output),
|
|
769
|
+
});
|
|
770
|
+
await smithyClient.collectBody(output.body, context);
|
|
771
|
+
return contents;
|
|
772
|
+
};
|
|
773
|
+
const de_GetCanaryCommand = async (output, context) => {
|
|
774
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
775
|
+
return de_CommandError(output, context);
|
|
776
|
+
}
|
|
777
|
+
const contents = smithyClient.map({
|
|
778
|
+
$metadata: deserializeMetadata(output),
|
|
779
|
+
});
|
|
780
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
781
|
+
const doc = smithyClient.take(data, {
|
|
782
|
+
Canary: (_) => de_Canary(_),
|
|
783
|
+
});
|
|
784
|
+
Object.assign(contents, doc);
|
|
785
|
+
return contents;
|
|
786
|
+
};
|
|
787
|
+
const de_GetCanaryRunsCommand = async (output, context) => {
|
|
788
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
789
|
+
return de_CommandError(output, context);
|
|
790
|
+
}
|
|
791
|
+
const contents = smithyClient.map({
|
|
792
|
+
$metadata: deserializeMetadata(output),
|
|
793
|
+
});
|
|
794
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
795
|
+
const doc = smithyClient.take(data, {
|
|
796
|
+
CanaryRuns: (_) => de_CanaryRuns(_),
|
|
797
|
+
NextToken: smithyClient.expectString,
|
|
798
|
+
});
|
|
799
|
+
Object.assign(contents, doc);
|
|
800
|
+
return contents;
|
|
801
|
+
};
|
|
802
|
+
const de_GetGroupCommand = async (output, context) => {
|
|
803
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
804
|
+
return de_CommandError(output, context);
|
|
805
|
+
}
|
|
806
|
+
const contents = smithyClient.map({
|
|
807
|
+
$metadata: deserializeMetadata(output),
|
|
808
|
+
});
|
|
809
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
810
|
+
const doc = smithyClient.take(data, {
|
|
811
|
+
Group: (_) => de_Group(_),
|
|
812
|
+
});
|
|
813
|
+
Object.assign(contents, doc);
|
|
814
|
+
return contents;
|
|
815
|
+
};
|
|
816
|
+
const de_ListAssociatedGroupsCommand = async (output, context) => {
|
|
817
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
818
|
+
return de_CommandError(output, context);
|
|
819
|
+
}
|
|
820
|
+
const contents = smithyClient.map({
|
|
821
|
+
$metadata: deserializeMetadata(output),
|
|
822
|
+
});
|
|
823
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
824
|
+
const doc = smithyClient.take(data, {
|
|
825
|
+
Groups: smithyClient._json,
|
|
826
|
+
NextToken: smithyClient.expectString,
|
|
827
|
+
});
|
|
828
|
+
Object.assign(contents, doc);
|
|
829
|
+
return contents;
|
|
830
|
+
};
|
|
831
|
+
const de_ListGroupResourcesCommand = async (output, context) => {
|
|
832
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
833
|
+
return de_CommandError(output, context);
|
|
834
|
+
}
|
|
835
|
+
const contents = smithyClient.map({
|
|
836
|
+
$metadata: deserializeMetadata(output),
|
|
837
|
+
});
|
|
838
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
839
|
+
const doc = smithyClient.take(data, {
|
|
840
|
+
NextToken: smithyClient.expectString,
|
|
841
|
+
Resources: smithyClient._json,
|
|
842
|
+
});
|
|
843
|
+
Object.assign(contents, doc);
|
|
844
|
+
return contents;
|
|
845
|
+
};
|
|
846
|
+
const de_ListGroupsCommand = async (output, context) => {
|
|
847
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
848
|
+
return de_CommandError(output, context);
|
|
849
|
+
}
|
|
850
|
+
const contents = smithyClient.map({
|
|
851
|
+
$metadata: deserializeMetadata(output),
|
|
852
|
+
});
|
|
853
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
854
|
+
const doc = smithyClient.take(data, {
|
|
855
|
+
Groups: smithyClient._json,
|
|
856
|
+
NextToken: smithyClient.expectString,
|
|
857
|
+
});
|
|
858
|
+
Object.assign(contents, doc);
|
|
859
|
+
return contents;
|
|
860
|
+
};
|
|
861
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
862
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
863
|
+
return de_CommandError(output, context);
|
|
864
|
+
}
|
|
865
|
+
const contents = smithyClient.map({
|
|
866
|
+
$metadata: deserializeMetadata(output),
|
|
867
|
+
});
|
|
868
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
869
|
+
const doc = smithyClient.take(data, {
|
|
870
|
+
Tags: smithyClient._json,
|
|
871
|
+
});
|
|
872
|
+
Object.assign(contents, doc);
|
|
873
|
+
return contents;
|
|
874
|
+
};
|
|
875
|
+
const de_StartCanaryCommand = async (output, context) => {
|
|
876
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
877
|
+
return de_CommandError(output, context);
|
|
878
|
+
}
|
|
879
|
+
const contents = smithyClient.map({
|
|
880
|
+
$metadata: deserializeMetadata(output),
|
|
881
|
+
});
|
|
882
|
+
await smithyClient.collectBody(output.body, context);
|
|
883
|
+
return contents;
|
|
884
|
+
};
|
|
885
|
+
const de_StartCanaryDryRunCommand = async (output, context) => {
|
|
886
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
887
|
+
return de_CommandError(output, context);
|
|
888
|
+
}
|
|
889
|
+
const contents = smithyClient.map({
|
|
890
|
+
$metadata: deserializeMetadata(output),
|
|
891
|
+
});
|
|
892
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
893
|
+
const doc = smithyClient.take(data, {
|
|
894
|
+
DryRunConfig: smithyClient._json,
|
|
895
|
+
});
|
|
896
|
+
Object.assign(contents, doc);
|
|
897
|
+
return contents;
|
|
898
|
+
};
|
|
899
|
+
const de_StopCanaryCommand = async (output, context) => {
|
|
900
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
901
|
+
return de_CommandError(output, context);
|
|
902
|
+
}
|
|
903
|
+
const contents = smithyClient.map({
|
|
904
|
+
$metadata: deserializeMetadata(output),
|
|
905
|
+
});
|
|
906
|
+
await smithyClient.collectBody(output.body, context);
|
|
907
|
+
return contents;
|
|
908
|
+
};
|
|
909
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
910
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
911
|
+
return de_CommandError(output, context);
|
|
912
|
+
}
|
|
913
|
+
const contents = smithyClient.map({
|
|
914
|
+
$metadata: deserializeMetadata(output),
|
|
915
|
+
});
|
|
916
|
+
await smithyClient.collectBody(output.body, context);
|
|
917
|
+
return contents;
|
|
918
|
+
};
|
|
919
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
920
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
921
|
+
return de_CommandError(output, context);
|
|
922
|
+
}
|
|
923
|
+
const contents = smithyClient.map({
|
|
924
|
+
$metadata: deserializeMetadata(output),
|
|
925
|
+
});
|
|
926
|
+
await smithyClient.collectBody(output.body, context);
|
|
927
|
+
return contents;
|
|
928
|
+
};
|
|
929
|
+
const de_UpdateCanaryCommand = async (output, context) => {
|
|
930
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
931
|
+
return de_CommandError(output, context);
|
|
932
|
+
}
|
|
933
|
+
const contents = smithyClient.map({
|
|
934
|
+
$metadata: deserializeMetadata(output),
|
|
935
|
+
});
|
|
936
|
+
await smithyClient.collectBody(output.body, context);
|
|
937
|
+
return contents;
|
|
938
|
+
};
|
|
939
|
+
const de_CommandError = async (output, context) => {
|
|
940
|
+
const parsedOutput = {
|
|
941
|
+
...output,
|
|
942
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
943
|
+
};
|
|
944
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
945
|
+
switch (errorCode) {
|
|
946
|
+
case "ConflictException":
|
|
947
|
+
case "com.amazonaws.synthetics#ConflictException":
|
|
948
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
949
|
+
case "InternalServerException":
|
|
950
|
+
case "com.amazonaws.synthetics#InternalServerException":
|
|
951
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
952
|
+
case "ResourceNotFoundException":
|
|
953
|
+
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
954
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
955
|
+
case "ServiceQuotaExceededException":
|
|
956
|
+
case "com.amazonaws.synthetics#ServiceQuotaExceededException":
|
|
957
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
958
|
+
case "ValidationException":
|
|
959
|
+
case "com.amazonaws.synthetics#ValidationException":
|
|
960
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
961
|
+
case "RequestEntityTooLargeException":
|
|
962
|
+
case "com.amazonaws.synthetics#RequestEntityTooLargeException":
|
|
963
|
+
throw await de_RequestEntityTooLargeExceptionRes(parsedOutput);
|
|
964
|
+
case "BadRequestException":
|
|
965
|
+
case "com.amazonaws.synthetics#BadRequestException":
|
|
966
|
+
throw await de_BadRequestExceptionRes(parsedOutput);
|
|
967
|
+
case "InternalFailureException":
|
|
968
|
+
case "com.amazonaws.synthetics#InternalFailureException":
|
|
969
|
+
throw await de_InternalFailureExceptionRes(parsedOutput);
|
|
970
|
+
case "NotFoundException":
|
|
971
|
+
case "com.amazonaws.synthetics#NotFoundException":
|
|
972
|
+
throw await de_NotFoundExceptionRes(parsedOutput);
|
|
973
|
+
case "TooManyRequestsException":
|
|
974
|
+
case "com.amazonaws.synthetics#TooManyRequestsException":
|
|
975
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput);
|
|
976
|
+
case "AccessDeniedException":
|
|
977
|
+
case "com.amazonaws.synthetics#AccessDeniedException":
|
|
978
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
979
|
+
default:
|
|
980
|
+
const parsedBody = parsedOutput.body;
|
|
981
|
+
return throwDefaultError({
|
|
982
|
+
output,
|
|
983
|
+
parsedBody,
|
|
984
|
+
errorCode,
|
|
985
|
+
});
|
|
986
|
+
}
|
|
987
|
+
};
|
|
988
|
+
const throwDefaultError = smithyClient.withBaseException(SyntheticsServiceException);
|
|
989
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
990
|
+
const contents = smithyClient.map({});
|
|
991
|
+
const data = parsedOutput.body;
|
|
992
|
+
const doc = smithyClient.take(data, {
|
|
993
|
+
Message: smithyClient.expectString,
|
|
994
|
+
});
|
|
995
|
+
Object.assign(contents, doc);
|
|
996
|
+
const exception = new AccessDeniedException({
|
|
997
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
998
|
+
...contents,
|
|
999
|
+
});
|
|
1000
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1001
|
+
};
|
|
1002
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
1003
|
+
const contents = smithyClient.map({});
|
|
1004
|
+
const data = parsedOutput.body;
|
|
1005
|
+
const doc = smithyClient.take(data, {
|
|
1006
|
+
Message: smithyClient.expectString,
|
|
1007
|
+
});
|
|
1008
|
+
Object.assign(contents, doc);
|
|
1009
|
+
const exception = new BadRequestException({
|
|
1010
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1011
|
+
...contents,
|
|
1012
|
+
});
|
|
1013
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1014
|
+
};
|
|
1015
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1016
|
+
const contents = smithyClient.map({});
|
|
1017
|
+
const data = parsedOutput.body;
|
|
1018
|
+
const doc = smithyClient.take(data, {
|
|
1019
|
+
Message: smithyClient.expectString,
|
|
1020
|
+
});
|
|
1021
|
+
Object.assign(contents, doc);
|
|
1022
|
+
const exception = new ConflictException({
|
|
1023
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1024
|
+
...contents,
|
|
1025
|
+
});
|
|
1026
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1027
|
+
};
|
|
1028
|
+
const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
1029
|
+
const contents = smithyClient.map({});
|
|
1030
|
+
const data = parsedOutput.body;
|
|
1031
|
+
const doc = smithyClient.take(data, {
|
|
1032
|
+
Message: smithyClient.expectString,
|
|
1033
|
+
});
|
|
1034
|
+
Object.assign(contents, doc);
|
|
1035
|
+
const exception = new InternalFailureException({
|
|
1036
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1037
|
+
...contents,
|
|
1038
|
+
});
|
|
1039
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1040
|
+
};
|
|
1041
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1042
|
+
const contents = smithyClient.map({});
|
|
1043
|
+
const data = parsedOutput.body;
|
|
1044
|
+
const doc = smithyClient.take(data, {
|
|
1045
|
+
Message: smithyClient.expectString,
|
|
1046
|
+
});
|
|
1047
|
+
Object.assign(contents, doc);
|
|
1048
|
+
const exception = new InternalServerException({
|
|
1049
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1050
|
+
...contents,
|
|
1051
|
+
});
|
|
1052
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1053
|
+
};
|
|
1054
|
+
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1055
|
+
const contents = smithyClient.map({});
|
|
1056
|
+
const data = parsedOutput.body;
|
|
1057
|
+
const doc = smithyClient.take(data, {
|
|
1058
|
+
Message: smithyClient.expectString,
|
|
1059
|
+
});
|
|
1060
|
+
Object.assign(contents, doc);
|
|
1061
|
+
const exception = new NotFoundException({
|
|
1062
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1063
|
+
...contents,
|
|
1064
|
+
});
|
|
1065
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1066
|
+
};
|
|
1067
|
+
const de_RequestEntityTooLargeExceptionRes = async (parsedOutput, context) => {
|
|
1068
|
+
const contents = smithyClient.map({});
|
|
1069
|
+
const data = parsedOutput.body;
|
|
1070
|
+
const doc = smithyClient.take(data, {
|
|
1071
|
+
Message: smithyClient.expectString,
|
|
1072
|
+
});
|
|
1073
|
+
Object.assign(contents, doc);
|
|
1074
|
+
const exception = new RequestEntityTooLargeException({
|
|
1075
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1076
|
+
...contents,
|
|
1077
|
+
});
|
|
1078
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1079
|
+
};
|
|
1080
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1081
|
+
const contents = smithyClient.map({});
|
|
1082
|
+
const data = parsedOutput.body;
|
|
1083
|
+
const doc = smithyClient.take(data, {
|
|
1084
|
+
Message: smithyClient.expectString,
|
|
1085
|
+
});
|
|
1086
|
+
Object.assign(contents, doc);
|
|
1087
|
+
const exception = new ResourceNotFoundException({
|
|
1088
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1089
|
+
...contents,
|
|
1090
|
+
});
|
|
1091
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1092
|
+
};
|
|
1093
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1094
|
+
const contents = smithyClient.map({});
|
|
1095
|
+
const data = parsedOutput.body;
|
|
1096
|
+
const doc = smithyClient.take(data, {
|
|
1097
|
+
Message: smithyClient.expectString,
|
|
1098
|
+
});
|
|
1099
|
+
Object.assign(contents, doc);
|
|
1100
|
+
const exception = new ServiceQuotaExceededException({
|
|
1101
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1102
|
+
...contents,
|
|
1103
|
+
});
|
|
1104
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1105
|
+
};
|
|
1106
|
+
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
1107
|
+
const contents = smithyClient.map({});
|
|
1108
|
+
const data = parsedOutput.body;
|
|
1109
|
+
const doc = smithyClient.take(data, {
|
|
1110
|
+
Message: smithyClient.expectString,
|
|
1111
|
+
});
|
|
1112
|
+
Object.assign(contents, doc);
|
|
1113
|
+
const exception = new TooManyRequestsException({
|
|
1114
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1115
|
+
...contents,
|
|
1116
|
+
});
|
|
1117
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1118
|
+
};
|
|
1119
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1120
|
+
const contents = smithyClient.map({});
|
|
1121
|
+
const data = parsedOutput.body;
|
|
1122
|
+
const doc = smithyClient.take(data, {
|
|
1123
|
+
Message: smithyClient.expectString,
|
|
1124
|
+
});
|
|
1125
|
+
Object.assign(contents, doc);
|
|
1126
|
+
const exception = new ValidationException({
|
|
1127
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1128
|
+
...contents,
|
|
1129
|
+
});
|
|
1130
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1131
|
+
};
|
|
1132
|
+
const se_CanaryCodeInput = (input, context) => {
|
|
1133
|
+
return smithyClient.take(input, {
|
|
1134
|
+
BlueprintTypes: smithyClient._json,
|
|
1135
|
+
Dependencies: smithyClient._json,
|
|
1136
|
+
Handler: [],
|
|
1137
|
+
S3Bucket: [],
|
|
1138
|
+
S3Key: [],
|
|
1139
|
+
S3Version: [],
|
|
1140
|
+
ZipFile: context.base64Encoder,
|
|
1141
|
+
});
|
|
1142
|
+
};
|
|
1143
|
+
const de_Canaries = (output, context) => {
|
|
1144
|
+
const retVal = (output || [])
|
|
1145
|
+
.filter((e) => e != null)
|
|
1146
|
+
.map((entry) => {
|
|
1147
|
+
return de_Canary(entry);
|
|
1148
|
+
});
|
|
1149
|
+
return retVal;
|
|
1150
|
+
};
|
|
1151
|
+
const de_CanariesLastRun = (output, context) => {
|
|
1152
|
+
const retVal = (output || [])
|
|
1153
|
+
.filter((e) => e != null)
|
|
1154
|
+
.map((entry) => {
|
|
1155
|
+
return de_CanaryLastRun(entry);
|
|
1156
|
+
});
|
|
1157
|
+
return retVal;
|
|
1158
|
+
};
|
|
1159
|
+
const de_Canary = (output, context) => {
|
|
1160
|
+
return smithyClient.take(output, {
|
|
1161
|
+
ArtifactConfig: smithyClient._json,
|
|
1162
|
+
ArtifactS3Location: smithyClient.expectString,
|
|
1163
|
+
BrowserConfigs: smithyClient._json,
|
|
1164
|
+
Code: smithyClient._json,
|
|
1165
|
+
DryRunConfig: smithyClient._json,
|
|
1166
|
+
EngineArn: smithyClient.expectString,
|
|
1167
|
+
EngineConfigs: smithyClient._json,
|
|
1168
|
+
ExecutionRoleArn: smithyClient.expectString,
|
|
1169
|
+
FailureRetentionPeriodInDays: smithyClient.expectInt32,
|
|
1170
|
+
Id: smithyClient.expectString,
|
|
1171
|
+
Name: smithyClient.expectString,
|
|
1172
|
+
ProvisionedResourceCleanup: smithyClient.expectString,
|
|
1173
|
+
RunConfig: smithyClient._json,
|
|
1174
|
+
RuntimeVersion: smithyClient.expectString,
|
|
1175
|
+
Schedule: smithyClient._json,
|
|
1176
|
+
Status: smithyClient._json,
|
|
1177
|
+
SuccessRetentionPeriodInDays: smithyClient.expectInt32,
|
|
1178
|
+
Tags: smithyClient._json,
|
|
1179
|
+
Timeline: (_) => de_CanaryTimeline(_),
|
|
1180
|
+
VisualReference: smithyClient._json,
|
|
1181
|
+
VisualReferences: smithyClient._json,
|
|
1182
|
+
VpcConfig: smithyClient._json,
|
|
1183
|
+
});
|
|
1184
|
+
};
|
|
1185
|
+
const de_CanaryLastRun = (output, context) => {
|
|
1186
|
+
return smithyClient.take(output, {
|
|
1187
|
+
CanaryName: smithyClient.expectString,
|
|
1188
|
+
LastRun: (_) => de_CanaryRun(_),
|
|
1189
|
+
});
|
|
1190
|
+
};
|
|
1191
|
+
const de_CanaryRun = (output, context) => {
|
|
1192
|
+
return smithyClient.take(output, {
|
|
1193
|
+
ArtifactS3Location: smithyClient.expectString,
|
|
1194
|
+
BrowserType: smithyClient.expectString,
|
|
1195
|
+
DryRunConfig: smithyClient._json,
|
|
1196
|
+
Id: smithyClient.expectString,
|
|
1197
|
+
Name: smithyClient.expectString,
|
|
1198
|
+
RetryAttempt: smithyClient.expectInt32,
|
|
1199
|
+
ScheduledRunId: smithyClient.expectString,
|
|
1200
|
+
Status: smithyClient._json,
|
|
1201
|
+
Timeline: (_) => de_CanaryRunTimeline(_),
|
|
1202
|
+
});
|
|
1203
|
+
};
|
|
1204
|
+
const de_CanaryRuns = (output, context) => {
|
|
1205
|
+
const retVal = (output || [])
|
|
1206
|
+
.filter((e) => e != null)
|
|
1207
|
+
.map((entry) => {
|
|
1208
|
+
return de_CanaryRun(entry);
|
|
1209
|
+
});
|
|
1210
|
+
return retVal;
|
|
1211
|
+
};
|
|
1212
|
+
const de_CanaryRunTimeline = (output, context) => {
|
|
1213
|
+
return smithyClient.take(output, {
|
|
1214
|
+
Completed: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1215
|
+
MetricTimestampForRunAndRetries: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1216
|
+
Started: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1217
|
+
});
|
|
1218
|
+
};
|
|
1219
|
+
const de_CanaryTimeline = (output, context) => {
|
|
1220
|
+
return smithyClient.take(output, {
|
|
1221
|
+
Created: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1222
|
+
LastModified: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1223
|
+
LastStarted: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1224
|
+
LastStopped: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1225
|
+
});
|
|
1226
|
+
};
|
|
1227
|
+
const de_Group = (output, context) => {
|
|
1228
|
+
return smithyClient.take(output, {
|
|
1229
|
+
Arn: smithyClient.expectString,
|
|
1230
|
+
CreatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1231
|
+
Id: smithyClient.expectString,
|
|
1232
|
+
LastModifiedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1233
|
+
Name: smithyClient.expectString,
|
|
1234
|
+
Tags: smithyClient._json,
|
|
1235
|
+
});
|
|
1236
|
+
};
|
|
1237
|
+
const de_RuntimeVersion = (output, context) => {
|
|
1238
|
+
return smithyClient.take(output, {
|
|
1239
|
+
DeprecationDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1240
|
+
Description: smithyClient.expectString,
|
|
1241
|
+
ReleaseDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1242
|
+
VersionName: smithyClient.expectString,
|
|
1243
|
+
});
|
|
1244
|
+
};
|
|
1245
|
+
const de_RuntimeVersionList = (output, context) => {
|
|
1246
|
+
const retVal = (output || [])
|
|
1247
|
+
.filter((e) => e != null)
|
|
1248
|
+
.map((entry) => {
|
|
1249
|
+
return de_RuntimeVersion(entry);
|
|
1250
|
+
});
|
|
1251
|
+
return retVal;
|
|
1252
|
+
};
|
|
1253
|
+
const deserializeMetadata = (output) => ({
|
|
1254
|
+
httpStatusCode: output.statusCode,
|
|
1255
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1256
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1257
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1258
|
+
});
|
|
1259
|
+
const _DL = "DeleteLambda";
|
|
1260
|
+
const _DRI = "DryRunId";
|
|
1261
|
+
const _TK = "TagKeys";
|
|
1262
|
+
const _dL = "deleteLambda";
|
|
1263
|
+
const _dRI = "dryRunId";
|
|
1264
|
+
const _tK = "tagKeys";
|
|
1265
|
+
|
|
1266
|
+
class AssociateResourceCommand extends smithyClient.Command
|
|
1267
|
+
.classBuilder()
|
|
1268
|
+
.ep(commonParams)
|
|
1269
|
+
.m(function (Command, cs, config, o) {
|
|
1270
|
+
return [
|
|
1271
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1272
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1273
|
+
];
|
|
1274
|
+
})
|
|
1275
|
+
.s("Synthetics", "AssociateResource", {})
|
|
1276
|
+
.n("SyntheticsClient", "AssociateResourceCommand")
|
|
1277
|
+
.f(void 0, void 0)
|
|
1278
|
+
.ser(se_AssociateResourceCommand)
|
|
1279
|
+
.de(de_AssociateResourceCommand)
|
|
1280
|
+
.build() {
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
class CreateCanaryCommand extends smithyClient.Command
|
|
1284
|
+
.classBuilder()
|
|
1285
|
+
.ep(commonParams)
|
|
1286
|
+
.m(function (Command, cs, config, o) {
|
|
1287
|
+
return [
|
|
1288
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1289
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1290
|
+
];
|
|
1291
|
+
})
|
|
1292
|
+
.s("Synthetics", "CreateCanary", {})
|
|
1293
|
+
.n("SyntheticsClient", "CreateCanaryCommand")
|
|
1294
|
+
.f(void 0, void 0)
|
|
1295
|
+
.ser(se_CreateCanaryCommand)
|
|
1296
|
+
.de(de_CreateCanaryCommand)
|
|
1297
|
+
.build() {
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
class CreateGroupCommand extends smithyClient.Command
|
|
1301
|
+
.classBuilder()
|
|
1302
|
+
.ep(commonParams)
|
|
1303
|
+
.m(function (Command, cs, config, o) {
|
|
1304
|
+
return [
|
|
1305
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1306
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1307
|
+
];
|
|
1308
|
+
})
|
|
1309
|
+
.s("Synthetics", "CreateGroup", {})
|
|
1310
|
+
.n("SyntheticsClient", "CreateGroupCommand")
|
|
1311
|
+
.f(void 0, void 0)
|
|
1312
|
+
.ser(se_CreateGroupCommand)
|
|
1313
|
+
.de(de_CreateGroupCommand)
|
|
1314
|
+
.build() {
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
class DeleteCanaryCommand extends smithyClient.Command
|
|
1318
|
+
.classBuilder()
|
|
1319
|
+
.ep(commonParams)
|
|
1320
|
+
.m(function (Command, cs, config, o) {
|
|
1321
|
+
return [
|
|
1322
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1323
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1324
|
+
];
|
|
1325
|
+
})
|
|
1326
|
+
.s("Synthetics", "DeleteCanary", {})
|
|
1327
|
+
.n("SyntheticsClient", "DeleteCanaryCommand")
|
|
1328
|
+
.f(void 0, void 0)
|
|
1329
|
+
.ser(se_DeleteCanaryCommand)
|
|
1330
|
+
.de(de_DeleteCanaryCommand)
|
|
1331
|
+
.build() {
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
class DeleteGroupCommand extends smithyClient.Command
|
|
1335
|
+
.classBuilder()
|
|
1336
|
+
.ep(commonParams)
|
|
1337
|
+
.m(function (Command, cs, config, o) {
|
|
1338
|
+
return [
|
|
1339
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1340
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1341
|
+
];
|
|
1342
|
+
})
|
|
1343
|
+
.s("Synthetics", "DeleteGroup", {})
|
|
1344
|
+
.n("SyntheticsClient", "DeleteGroupCommand")
|
|
1345
|
+
.f(void 0, void 0)
|
|
1346
|
+
.ser(se_DeleteGroupCommand)
|
|
1347
|
+
.de(de_DeleteGroupCommand)
|
|
1348
|
+
.build() {
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
class DescribeCanariesCommand extends smithyClient.Command
|
|
1352
|
+
.classBuilder()
|
|
1353
|
+
.ep(commonParams)
|
|
1354
|
+
.m(function (Command, cs, config, o) {
|
|
1355
|
+
return [
|
|
1356
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1357
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1358
|
+
];
|
|
1359
|
+
})
|
|
1360
|
+
.s("Synthetics", "DescribeCanaries", {})
|
|
1361
|
+
.n("SyntheticsClient", "DescribeCanariesCommand")
|
|
1362
|
+
.f(void 0, void 0)
|
|
1363
|
+
.ser(se_DescribeCanariesCommand)
|
|
1364
|
+
.de(de_DescribeCanariesCommand)
|
|
1365
|
+
.build() {
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
class DescribeCanariesLastRunCommand extends smithyClient.Command
|
|
1369
|
+
.classBuilder()
|
|
1370
|
+
.ep(commonParams)
|
|
1371
|
+
.m(function (Command, cs, config, o) {
|
|
1372
|
+
return [
|
|
1373
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1374
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1375
|
+
];
|
|
1376
|
+
})
|
|
1377
|
+
.s("Synthetics", "DescribeCanariesLastRun", {})
|
|
1378
|
+
.n("SyntheticsClient", "DescribeCanariesLastRunCommand")
|
|
1379
|
+
.f(void 0, void 0)
|
|
1380
|
+
.ser(se_DescribeCanariesLastRunCommand)
|
|
1381
|
+
.de(de_DescribeCanariesLastRunCommand)
|
|
1382
|
+
.build() {
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1385
|
+
class DescribeRuntimeVersionsCommand extends smithyClient.Command
|
|
1386
|
+
.classBuilder()
|
|
1387
|
+
.ep(commonParams)
|
|
1388
|
+
.m(function (Command, cs, config, o) {
|
|
1389
|
+
return [
|
|
1390
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1391
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1392
|
+
];
|
|
1393
|
+
})
|
|
1394
|
+
.s("Synthetics", "DescribeRuntimeVersions", {})
|
|
1395
|
+
.n("SyntheticsClient", "DescribeRuntimeVersionsCommand")
|
|
1396
|
+
.f(void 0, void 0)
|
|
1397
|
+
.ser(se_DescribeRuntimeVersionsCommand)
|
|
1398
|
+
.de(de_DescribeRuntimeVersionsCommand)
|
|
1399
|
+
.build() {
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
class DisassociateResourceCommand extends smithyClient.Command
|
|
1403
|
+
.classBuilder()
|
|
1404
|
+
.ep(commonParams)
|
|
1405
|
+
.m(function (Command, cs, config, o) {
|
|
1406
|
+
return [
|
|
1407
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1408
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1409
|
+
];
|
|
1410
|
+
})
|
|
1411
|
+
.s("Synthetics", "DisassociateResource", {})
|
|
1412
|
+
.n("SyntheticsClient", "DisassociateResourceCommand")
|
|
1413
|
+
.f(void 0, void 0)
|
|
1414
|
+
.ser(se_DisassociateResourceCommand)
|
|
1415
|
+
.de(de_DisassociateResourceCommand)
|
|
1416
|
+
.build() {
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
class GetCanaryCommand extends smithyClient.Command
|
|
1420
|
+
.classBuilder()
|
|
1421
|
+
.ep(commonParams)
|
|
1422
|
+
.m(function (Command, cs, config, o) {
|
|
1423
|
+
return [
|
|
1424
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1425
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1426
|
+
];
|
|
1427
|
+
})
|
|
1428
|
+
.s("Synthetics", "GetCanary", {})
|
|
1429
|
+
.n("SyntheticsClient", "GetCanaryCommand")
|
|
1430
|
+
.f(void 0, void 0)
|
|
1431
|
+
.ser(se_GetCanaryCommand)
|
|
1432
|
+
.de(de_GetCanaryCommand)
|
|
1433
|
+
.build() {
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
class GetCanaryRunsCommand extends smithyClient.Command
|
|
1437
|
+
.classBuilder()
|
|
1438
|
+
.ep(commonParams)
|
|
1439
|
+
.m(function (Command, cs, config, o) {
|
|
1440
|
+
return [
|
|
1441
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1442
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1443
|
+
];
|
|
1444
|
+
})
|
|
1445
|
+
.s("Synthetics", "GetCanaryRuns", {})
|
|
1446
|
+
.n("SyntheticsClient", "GetCanaryRunsCommand")
|
|
1447
|
+
.f(void 0, void 0)
|
|
1448
|
+
.ser(se_GetCanaryRunsCommand)
|
|
1449
|
+
.de(de_GetCanaryRunsCommand)
|
|
1450
|
+
.build() {
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
class GetGroupCommand extends smithyClient.Command
|
|
1454
|
+
.classBuilder()
|
|
1455
|
+
.ep(commonParams)
|
|
1456
|
+
.m(function (Command, cs, config, o) {
|
|
1457
|
+
return [
|
|
1458
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1459
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1460
|
+
];
|
|
1461
|
+
})
|
|
1462
|
+
.s("Synthetics", "GetGroup", {})
|
|
1463
|
+
.n("SyntheticsClient", "GetGroupCommand")
|
|
1464
|
+
.f(void 0, void 0)
|
|
1465
|
+
.ser(se_GetGroupCommand)
|
|
1466
|
+
.de(de_GetGroupCommand)
|
|
1467
|
+
.build() {
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
class ListAssociatedGroupsCommand extends smithyClient.Command
|
|
1471
|
+
.classBuilder()
|
|
1472
|
+
.ep(commonParams)
|
|
1473
|
+
.m(function (Command, cs, config, o) {
|
|
1474
|
+
return [
|
|
1475
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1476
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1477
|
+
];
|
|
1478
|
+
})
|
|
1479
|
+
.s("Synthetics", "ListAssociatedGroups", {})
|
|
1480
|
+
.n("SyntheticsClient", "ListAssociatedGroupsCommand")
|
|
1481
|
+
.f(void 0, void 0)
|
|
1482
|
+
.ser(se_ListAssociatedGroupsCommand)
|
|
1483
|
+
.de(de_ListAssociatedGroupsCommand)
|
|
1484
|
+
.build() {
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
class ListGroupResourcesCommand extends smithyClient.Command
|
|
1488
|
+
.classBuilder()
|
|
1489
|
+
.ep(commonParams)
|
|
1490
|
+
.m(function (Command, cs, config, o) {
|
|
1491
|
+
return [
|
|
1492
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1493
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1494
|
+
];
|
|
1495
|
+
})
|
|
1496
|
+
.s("Synthetics", "ListGroupResources", {})
|
|
1497
|
+
.n("SyntheticsClient", "ListGroupResourcesCommand")
|
|
1498
|
+
.f(void 0, void 0)
|
|
1499
|
+
.ser(se_ListGroupResourcesCommand)
|
|
1500
|
+
.de(de_ListGroupResourcesCommand)
|
|
1501
|
+
.build() {
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
class ListGroupsCommand extends smithyClient.Command
|
|
1505
|
+
.classBuilder()
|
|
1506
|
+
.ep(commonParams)
|
|
1507
|
+
.m(function (Command, cs, config, o) {
|
|
1508
|
+
return [
|
|
1509
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1510
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1511
|
+
];
|
|
1512
|
+
})
|
|
1513
|
+
.s("Synthetics", "ListGroups", {})
|
|
1514
|
+
.n("SyntheticsClient", "ListGroupsCommand")
|
|
1515
|
+
.f(void 0, void 0)
|
|
1516
|
+
.ser(se_ListGroupsCommand)
|
|
1517
|
+
.de(de_ListGroupsCommand)
|
|
1518
|
+
.build() {
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
1522
|
+
.classBuilder()
|
|
1523
|
+
.ep(commonParams)
|
|
1524
|
+
.m(function (Command, cs, config, o) {
|
|
1525
|
+
return [
|
|
1526
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1527
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1528
|
+
];
|
|
1529
|
+
})
|
|
1530
|
+
.s("Synthetics", "ListTagsForResource", {})
|
|
1531
|
+
.n("SyntheticsClient", "ListTagsForResourceCommand")
|
|
1532
|
+
.f(void 0, void 0)
|
|
1533
|
+
.ser(se_ListTagsForResourceCommand)
|
|
1534
|
+
.de(de_ListTagsForResourceCommand)
|
|
1535
|
+
.build() {
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
class StartCanaryCommand extends smithyClient.Command
|
|
1539
|
+
.classBuilder()
|
|
1540
|
+
.ep(commonParams)
|
|
1541
|
+
.m(function (Command, cs, config, o) {
|
|
1542
|
+
return [
|
|
1543
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1544
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1545
|
+
];
|
|
1546
|
+
})
|
|
1547
|
+
.s("Synthetics", "StartCanary", {})
|
|
1548
|
+
.n("SyntheticsClient", "StartCanaryCommand")
|
|
1549
|
+
.f(void 0, void 0)
|
|
1550
|
+
.ser(se_StartCanaryCommand)
|
|
1551
|
+
.de(de_StartCanaryCommand)
|
|
1552
|
+
.build() {
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1555
|
+
class StartCanaryDryRunCommand extends smithyClient.Command
|
|
1556
|
+
.classBuilder()
|
|
1557
|
+
.ep(commonParams)
|
|
1558
|
+
.m(function (Command, cs, config, o) {
|
|
1559
|
+
return [
|
|
1560
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1561
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1562
|
+
];
|
|
1563
|
+
})
|
|
1564
|
+
.s("Synthetics", "StartCanaryDryRun", {})
|
|
1565
|
+
.n("SyntheticsClient", "StartCanaryDryRunCommand")
|
|
1566
|
+
.f(void 0, void 0)
|
|
1567
|
+
.ser(se_StartCanaryDryRunCommand)
|
|
1568
|
+
.de(de_StartCanaryDryRunCommand)
|
|
1569
|
+
.build() {
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
class StopCanaryCommand extends smithyClient.Command
|
|
1573
|
+
.classBuilder()
|
|
1574
|
+
.ep(commonParams)
|
|
1575
|
+
.m(function (Command, cs, config, o) {
|
|
1576
|
+
return [
|
|
1577
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1578
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1579
|
+
];
|
|
1580
|
+
})
|
|
1581
|
+
.s("Synthetics", "StopCanary", {})
|
|
1582
|
+
.n("SyntheticsClient", "StopCanaryCommand")
|
|
1583
|
+
.f(void 0, void 0)
|
|
1584
|
+
.ser(se_StopCanaryCommand)
|
|
1585
|
+
.de(de_StopCanaryCommand)
|
|
1586
|
+
.build() {
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
class TagResourceCommand extends smithyClient.Command
|
|
1590
|
+
.classBuilder()
|
|
1591
|
+
.ep(commonParams)
|
|
1592
|
+
.m(function (Command, cs, config, o) {
|
|
1593
|
+
return [
|
|
1594
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1595
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1596
|
+
];
|
|
1597
|
+
})
|
|
1598
|
+
.s("Synthetics", "TagResource", {})
|
|
1599
|
+
.n("SyntheticsClient", "TagResourceCommand")
|
|
1600
|
+
.f(void 0, void 0)
|
|
1601
|
+
.ser(se_TagResourceCommand)
|
|
1602
|
+
.de(de_TagResourceCommand)
|
|
1603
|
+
.build() {
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
1607
|
+
.classBuilder()
|
|
1608
|
+
.ep(commonParams)
|
|
1609
|
+
.m(function (Command, cs, config, o) {
|
|
1610
|
+
return [
|
|
1611
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1612
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1613
|
+
];
|
|
1614
|
+
})
|
|
1615
|
+
.s("Synthetics", "UntagResource", {})
|
|
1616
|
+
.n("SyntheticsClient", "UntagResourceCommand")
|
|
1617
|
+
.f(void 0, void 0)
|
|
1618
|
+
.ser(se_UntagResourceCommand)
|
|
1619
|
+
.de(de_UntagResourceCommand)
|
|
1620
|
+
.build() {
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
class UpdateCanaryCommand extends smithyClient.Command
|
|
1624
|
+
.classBuilder()
|
|
1625
|
+
.ep(commonParams)
|
|
1626
|
+
.m(function (Command, cs, config, o) {
|
|
1627
|
+
return [
|
|
1628
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1629
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1630
|
+
];
|
|
1631
|
+
})
|
|
1632
|
+
.s("Synthetics", "UpdateCanary", {})
|
|
1633
|
+
.n("SyntheticsClient", "UpdateCanaryCommand")
|
|
1634
|
+
.f(void 0, void 0)
|
|
1635
|
+
.ser(se_UpdateCanaryCommand)
|
|
1636
|
+
.de(de_UpdateCanaryCommand)
|
|
1637
|
+
.build() {
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1640
|
+
const commands = {
|
|
1641
|
+
AssociateResourceCommand,
|
|
1642
|
+
CreateCanaryCommand,
|
|
1643
|
+
CreateGroupCommand,
|
|
1644
|
+
DeleteCanaryCommand,
|
|
1645
|
+
DeleteGroupCommand,
|
|
1646
|
+
DescribeCanariesCommand,
|
|
1647
|
+
DescribeCanariesLastRunCommand,
|
|
1648
|
+
DescribeRuntimeVersionsCommand,
|
|
1649
|
+
DisassociateResourceCommand,
|
|
1650
|
+
GetCanaryCommand,
|
|
1651
|
+
GetCanaryRunsCommand,
|
|
1652
|
+
GetGroupCommand,
|
|
1653
|
+
ListAssociatedGroupsCommand,
|
|
1654
|
+
ListGroupResourcesCommand,
|
|
1655
|
+
ListGroupsCommand,
|
|
1656
|
+
ListTagsForResourceCommand,
|
|
1657
|
+
StartCanaryCommand,
|
|
1658
|
+
StartCanaryDryRunCommand,
|
|
1659
|
+
StopCanaryCommand,
|
|
1660
|
+
TagResourceCommand,
|
|
1661
|
+
UntagResourceCommand,
|
|
1662
|
+
UpdateCanaryCommand,
|
|
1663
|
+
};
|
|
1664
|
+
class Synthetics extends SyntheticsClient {
|
|
1665
|
+
}
|
|
1666
|
+
smithyClient.createAggregatedClient(commands, Synthetics);
|
|
1811
1667
|
|
|
1812
|
-
|
|
1813
|
-
var commands = {
|
|
1814
|
-
AssociateResourceCommand,
|
|
1815
|
-
CreateCanaryCommand,
|
|
1816
|
-
CreateGroupCommand,
|
|
1817
|
-
DeleteCanaryCommand,
|
|
1818
|
-
DeleteGroupCommand,
|
|
1819
|
-
DescribeCanariesCommand,
|
|
1820
|
-
DescribeCanariesLastRunCommand,
|
|
1821
|
-
DescribeRuntimeVersionsCommand,
|
|
1822
|
-
DisassociateResourceCommand,
|
|
1823
|
-
GetCanaryCommand,
|
|
1824
|
-
GetCanaryRunsCommand,
|
|
1825
|
-
GetGroupCommand,
|
|
1826
|
-
ListAssociatedGroupsCommand,
|
|
1827
|
-
ListGroupResourcesCommand,
|
|
1828
|
-
ListGroupsCommand,
|
|
1829
|
-
ListTagsForResourceCommand,
|
|
1830
|
-
StartCanaryCommand,
|
|
1831
|
-
StartCanaryDryRunCommand,
|
|
1832
|
-
StopCanaryCommand,
|
|
1833
|
-
TagResourceCommand,
|
|
1834
|
-
UntagResourceCommand,
|
|
1835
|
-
UpdateCanaryCommand
|
|
1836
|
-
};
|
|
1837
|
-
var Synthetics = class extends SyntheticsClient {
|
|
1838
|
-
static {
|
|
1839
|
-
__name(this, "Synthetics");
|
|
1840
|
-
}
|
|
1841
|
-
};
|
|
1842
|
-
(0, import_smithy_client.createAggregatedClient)(commands, Synthetics);
|
|
1843
|
-
|
|
1844
|
-
// src/pagination/DescribeCanariesLastRunPaginator.ts
|
|
1845
|
-
|
|
1846
|
-
var paginateDescribeCanariesLastRun = (0, import_core.createPaginator)(SyntheticsClient, DescribeCanariesLastRunCommand, "NextToken", "NextToken", "MaxResults");
|
|
1847
|
-
|
|
1848
|
-
// src/pagination/DescribeCanariesPaginator.ts
|
|
1849
|
-
|
|
1850
|
-
var paginateDescribeCanaries = (0, import_core.createPaginator)(SyntheticsClient, DescribeCanariesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1851
|
-
|
|
1852
|
-
// src/pagination/DescribeRuntimeVersionsPaginator.ts
|
|
1853
|
-
|
|
1854
|
-
var paginateDescribeRuntimeVersions = (0, import_core.createPaginator)(SyntheticsClient, DescribeRuntimeVersionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1855
|
-
|
|
1856
|
-
// src/pagination/GetCanaryRunsPaginator.ts
|
|
1857
|
-
|
|
1858
|
-
var paginateGetCanaryRuns = (0, import_core.createPaginator)(SyntheticsClient, GetCanaryRunsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1668
|
+
const paginateDescribeCanariesLastRun = core.createPaginator(SyntheticsClient, DescribeCanariesLastRunCommand, "NextToken", "NextToken", "MaxResults");
|
|
1859
1669
|
|
|
1860
|
-
|
|
1670
|
+
const paginateDescribeCanaries = core.createPaginator(SyntheticsClient, DescribeCanariesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1861
1671
|
|
|
1862
|
-
|
|
1672
|
+
const paginateDescribeRuntimeVersions = core.createPaginator(SyntheticsClient, DescribeRuntimeVersionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1863
1673
|
|
|
1864
|
-
|
|
1674
|
+
const paginateGetCanaryRuns = core.createPaginator(SyntheticsClient, GetCanaryRunsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1865
1675
|
|
|
1866
|
-
|
|
1676
|
+
const paginateListAssociatedGroups = core.createPaginator(SyntheticsClient, ListAssociatedGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1867
1677
|
|
|
1868
|
-
|
|
1678
|
+
const paginateListGroupResources = core.createPaginator(SyntheticsClient, ListGroupResourcesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1869
1679
|
|
|
1870
|
-
|
|
1871
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1680
|
+
const paginateListGroups = core.createPaginator(SyntheticsClient, ListGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1872
1681
|
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
SyntheticsClient,
|
|
1877
|
-
Synthetics,
|
|
1878
|
-
$Command,
|
|
1879
|
-
AssociateResourceCommand,
|
|
1880
|
-
CreateCanaryCommand,
|
|
1881
|
-
CreateGroupCommand,
|
|
1882
|
-
DeleteCanaryCommand,
|
|
1883
|
-
DeleteGroupCommand,
|
|
1884
|
-
DescribeCanariesCommand,
|
|
1885
|
-
DescribeCanariesLastRunCommand,
|
|
1886
|
-
DescribeRuntimeVersionsCommand,
|
|
1887
|
-
DisassociateResourceCommand,
|
|
1888
|
-
GetCanaryCommand,
|
|
1889
|
-
GetCanaryRunsCommand,
|
|
1890
|
-
GetGroupCommand,
|
|
1891
|
-
ListAssociatedGroupsCommand,
|
|
1892
|
-
ListGroupResourcesCommand,
|
|
1893
|
-
ListGroupsCommand,
|
|
1894
|
-
ListTagsForResourceCommand,
|
|
1895
|
-
StartCanaryCommand,
|
|
1896
|
-
StartCanaryDryRunCommand,
|
|
1897
|
-
StopCanaryCommand,
|
|
1898
|
-
TagResourceCommand,
|
|
1899
|
-
UntagResourceCommand,
|
|
1900
|
-
UpdateCanaryCommand,
|
|
1901
|
-
paginateDescribeCanariesLastRun,
|
|
1902
|
-
paginateDescribeCanaries,
|
|
1903
|
-
paginateDescribeRuntimeVersions,
|
|
1904
|
-
paginateGetCanaryRuns,
|
|
1905
|
-
paginateListAssociatedGroups,
|
|
1906
|
-
paginateListGroupResources,
|
|
1907
|
-
paginateListGroups,
|
|
1908
|
-
AccessDeniedException,
|
|
1909
|
-
EncryptionMode,
|
|
1910
|
-
ConflictException,
|
|
1911
|
-
InternalServerException,
|
|
1912
|
-
ResourceNotFoundException,
|
|
1913
|
-
ServiceQuotaExceededException,
|
|
1914
|
-
ValidationException,
|
|
1915
|
-
BadRequestException,
|
|
1916
|
-
BrowserType,
|
|
1917
|
-
DependencyType,
|
|
1918
|
-
ProvisionedResourceCleanupSetting,
|
|
1919
|
-
CanaryState,
|
|
1920
|
-
CanaryStateReasonCode,
|
|
1921
|
-
CanaryRunState,
|
|
1922
|
-
CanaryRunStateReasonCode,
|
|
1923
|
-
CanaryRunTestResult,
|
|
1924
|
-
ResourceToTag,
|
|
1925
|
-
RequestEntityTooLargeException,
|
|
1926
|
-
RunType,
|
|
1927
|
-
InternalFailureException,
|
|
1928
|
-
NotFoundException,
|
|
1929
|
-
TooManyRequestsException
|
|
1682
|
+
Object.defineProperty(exports, "$Command", {
|
|
1683
|
+
enumerable: true,
|
|
1684
|
+
get: function () { return smithyClient.Command; }
|
|
1930
1685
|
});
|
|
1931
|
-
|
|
1686
|
+
Object.defineProperty(exports, "__Client", {
|
|
1687
|
+
enumerable: true,
|
|
1688
|
+
get: function () { return smithyClient.Client; }
|
|
1689
|
+
});
|
|
1690
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
1691
|
+
exports.AssociateResourceCommand = AssociateResourceCommand;
|
|
1692
|
+
exports.BadRequestException = BadRequestException;
|
|
1693
|
+
exports.BrowserType = BrowserType;
|
|
1694
|
+
exports.CanaryRunState = CanaryRunState;
|
|
1695
|
+
exports.CanaryRunStateReasonCode = CanaryRunStateReasonCode;
|
|
1696
|
+
exports.CanaryRunTestResult = CanaryRunTestResult;
|
|
1697
|
+
exports.CanaryState = CanaryState;
|
|
1698
|
+
exports.CanaryStateReasonCode = CanaryStateReasonCode;
|
|
1699
|
+
exports.ConflictException = ConflictException;
|
|
1700
|
+
exports.CreateCanaryCommand = CreateCanaryCommand;
|
|
1701
|
+
exports.CreateGroupCommand = CreateGroupCommand;
|
|
1702
|
+
exports.DeleteCanaryCommand = DeleteCanaryCommand;
|
|
1703
|
+
exports.DeleteGroupCommand = DeleteGroupCommand;
|
|
1704
|
+
exports.DependencyType = DependencyType;
|
|
1705
|
+
exports.DescribeCanariesCommand = DescribeCanariesCommand;
|
|
1706
|
+
exports.DescribeCanariesLastRunCommand = DescribeCanariesLastRunCommand;
|
|
1707
|
+
exports.DescribeRuntimeVersionsCommand = DescribeRuntimeVersionsCommand;
|
|
1708
|
+
exports.DisassociateResourceCommand = DisassociateResourceCommand;
|
|
1709
|
+
exports.EncryptionMode = EncryptionMode;
|
|
1710
|
+
exports.GetCanaryCommand = GetCanaryCommand;
|
|
1711
|
+
exports.GetCanaryRunsCommand = GetCanaryRunsCommand;
|
|
1712
|
+
exports.GetGroupCommand = GetGroupCommand;
|
|
1713
|
+
exports.InternalFailureException = InternalFailureException;
|
|
1714
|
+
exports.InternalServerException = InternalServerException;
|
|
1715
|
+
exports.ListAssociatedGroupsCommand = ListAssociatedGroupsCommand;
|
|
1716
|
+
exports.ListGroupResourcesCommand = ListGroupResourcesCommand;
|
|
1717
|
+
exports.ListGroupsCommand = ListGroupsCommand;
|
|
1718
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
1719
|
+
exports.NotFoundException = NotFoundException;
|
|
1720
|
+
exports.ProvisionedResourceCleanupSetting = ProvisionedResourceCleanupSetting;
|
|
1721
|
+
exports.RequestEntityTooLargeException = RequestEntityTooLargeException;
|
|
1722
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1723
|
+
exports.ResourceToTag = ResourceToTag;
|
|
1724
|
+
exports.RunType = RunType;
|
|
1725
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
1726
|
+
exports.StartCanaryCommand = StartCanaryCommand;
|
|
1727
|
+
exports.StartCanaryDryRunCommand = StartCanaryDryRunCommand;
|
|
1728
|
+
exports.StopCanaryCommand = StopCanaryCommand;
|
|
1729
|
+
exports.Synthetics = Synthetics;
|
|
1730
|
+
exports.SyntheticsClient = SyntheticsClient;
|
|
1731
|
+
exports.SyntheticsServiceException = SyntheticsServiceException;
|
|
1732
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
1733
|
+
exports.TooManyRequestsException = TooManyRequestsException;
|
|
1734
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1735
|
+
exports.UpdateCanaryCommand = UpdateCanaryCommand;
|
|
1736
|
+
exports.ValidationException = ValidationException;
|
|
1737
|
+
exports.paginateDescribeCanaries = paginateDescribeCanaries;
|
|
1738
|
+
exports.paginateDescribeCanariesLastRun = paginateDescribeCanariesLastRun;
|
|
1739
|
+
exports.paginateDescribeRuntimeVersions = paginateDescribeRuntimeVersions;
|
|
1740
|
+
exports.paginateGetCanaryRuns = paginateGetCanaryRuns;
|
|
1741
|
+
exports.paginateListAssociatedGroups = paginateListAssociatedGroups;
|
|
1742
|
+
exports.paginateListGroupResources = paginateListGroupResources;
|
|
1743
|
+
exports.paginateListGroups = paginateListGroups;
|