@aws-sdk/client-shield 3.899.0 → 3.906.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +2051 -2229
- package/package.json +37 -37
package/dist-cjs/index.js
CHANGED
|
@@ -1,2310 +1,2132 @@
|
|
|
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
|
-
ApplicationLayerAutomaticResponseStatus: () => ApplicationLayerAutomaticResponseStatus,
|
|
27
|
-
AssociateDRTLogBucketCommand: () => AssociateDRTLogBucketCommand,
|
|
28
|
-
AssociateDRTRoleCommand: () => AssociateDRTRoleCommand,
|
|
29
|
-
AssociateHealthCheckCommand: () => AssociateHealthCheckCommand,
|
|
30
|
-
AssociateProactiveEngagementDetailsCommand: () => AssociateProactiveEngagementDetailsCommand,
|
|
31
|
-
AttackLayer: () => AttackLayer,
|
|
32
|
-
AttackPropertyIdentifier: () => AttackPropertyIdentifier,
|
|
33
|
-
AutoRenew: () => AutoRenew,
|
|
34
|
-
CreateProtectionCommand: () => CreateProtectionCommand,
|
|
35
|
-
CreateProtectionGroupCommand: () => CreateProtectionGroupCommand,
|
|
36
|
-
CreateSubscriptionCommand: () => CreateSubscriptionCommand,
|
|
37
|
-
DeleteProtectionCommand: () => DeleteProtectionCommand,
|
|
38
|
-
DeleteProtectionGroupCommand: () => DeleteProtectionGroupCommand,
|
|
39
|
-
DeleteSubscriptionCommand: () => DeleteSubscriptionCommand,
|
|
40
|
-
DescribeAttackCommand: () => DescribeAttackCommand,
|
|
41
|
-
DescribeAttackStatisticsCommand: () => DescribeAttackStatisticsCommand,
|
|
42
|
-
DescribeDRTAccessCommand: () => DescribeDRTAccessCommand,
|
|
43
|
-
DescribeEmergencyContactSettingsCommand: () => DescribeEmergencyContactSettingsCommand,
|
|
44
|
-
DescribeProtectionCommand: () => DescribeProtectionCommand,
|
|
45
|
-
DescribeProtectionGroupCommand: () => DescribeProtectionGroupCommand,
|
|
46
|
-
DescribeSubscriptionCommand: () => DescribeSubscriptionCommand,
|
|
47
|
-
DisableApplicationLayerAutomaticResponseCommand: () => DisableApplicationLayerAutomaticResponseCommand,
|
|
48
|
-
DisableProactiveEngagementCommand: () => DisableProactiveEngagementCommand,
|
|
49
|
-
DisassociateDRTLogBucketCommand: () => DisassociateDRTLogBucketCommand,
|
|
50
|
-
DisassociateDRTRoleCommand: () => DisassociateDRTRoleCommand,
|
|
51
|
-
DisassociateHealthCheckCommand: () => DisassociateHealthCheckCommand,
|
|
52
|
-
EnableApplicationLayerAutomaticResponseCommand: () => EnableApplicationLayerAutomaticResponseCommand,
|
|
53
|
-
EnableProactiveEngagementCommand: () => EnableProactiveEngagementCommand,
|
|
54
|
-
GetSubscriptionStateCommand: () => GetSubscriptionStateCommand,
|
|
55
|
-
InternalErrorException: () => InternalErrorException,
|
|
56
|
-
InvalidOperationException: () => InvalidOperationException,
|
|
57
|
-
InvalidPaginationTokenException: () => InvalidPaginationTokenException,
|
|
58
|
-
InvalidParameterException: () => InvalidParameterException,
|
|
59
|
-
InvalidResourceException: () => InvalidResourceException,
|
|
60
|
-
LimitsExceededException: () => LimitsExceededException,
|
|
61
|
-
ListAttacksCommand: () => ListAttacksCommand,
|
|
62
|
-
ListProtectionGroupsCommand: () => ListProtectionGroupsCommand,
|
|
63
|
-
ListProtectionsCommand: () => ListProtectionsCommand,
|
|
64
|
-
ListResourcesInProtectionGroupCommand: () => ListResourcesInProtectionGroupCommand,
|
|
65
|
-
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
66
|
-
LockedSubscriptionException: () => LockedSubscriptionException,
|
|
67
|
-
NoAssociatedRoleException: () => NoAssociatedRoleException,
|
|
68
|
-
OptimisticLockException: () => OptimisticLockException,
|
|
69
|
-
ProactiveEngagementStatus: () => ProactiveEngagementStatus,
|
|
70
|
-
ProtectedResourceType: () => ProtectedResourceType,
|
|
71
|
-
ProtectionGroupAggregation: () => ProtectionGroupAggregation,
|
|
72
|
-
ProtectionGroupPattern: () => ProtectionGroupPattern,
|
|
73
|
-
ResourceAlreadyExistsException: () => ResourceAlreadyExistsException,
|
|
74
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
75
|
-
Shield: () => Shield,
|
|
76
|
-
ShieldClient: () => ShieldClient,
|
|
77
|
-
ShieldServiceException: () => ShieldServiceException,
|
|
78
|
-
SubResourceType: () => SubResourceType,
|
|
79
|
-
SubscriptionState: () => SubscriptionState,
|
|
80
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
81
|
-
Unit: () => Unit,
|
|
82
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
83
|
-
UpdateApplicationLayerAutomaticResponseCommand: () => UpdateApplicationLayerAutomaticResponseCommand,
|
|
84
|
-
UpdateEmergencyContactSettingsCommand: () => UpdateEmergencyContactSettingsCommand,
|
|
85
|
-
UpdateProtectionGroupCommand: () => UpdateProtectionGroupCommand,
|
|
86
|
-
UpdateSubscriptionCommand: () => UpdateSubscriptionCommand,
|
|
87
|
-
ValidationExceptionReason: () => ValidationExceptionReason,
|
|
88
|
-
__Client: () => import_smithy_client.Client,
|
|
89
|
-
paginateListAttacks: () => paginateListAttacks,
|
|
90
|
-
paginateListProtectionGroups: () => paginateListProtectionGroups,
|
|
91
|
-
paginateListProtections: () => paginateListProtections,
|
|
92
|
-
paginateListResourcesInProtectionGroup: () => paginateListResourcesInProtectionGroup
|
|
93
|
-
});
|
|
94
|
-
module.exports = __toCommonJS(index_exports);
|
|
95
|
-
|
|
96
|
-
// src/ShieldClient.ts
|
|
97
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
98
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
99
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
100
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
101
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
102
|
-
var import_core = require("@smithy/core");
|
|
103
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
104
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
105
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
106
|
-
|
|
107
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
108
|
-
|
|
109
|
-
// src/endpoint/EndpointParameters.ts
|
|
110
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
111
|
-
return Object.assign(options, {
|
|
112
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
113
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
114
|
-
defaultSigningName: "shield"
|
|
115
|
-
});
|
|
116
|
-
}, "resolveClientEndpointParameters");
|
|
117
|
-
var commonParams = {
|
|
118
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
119
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
120
|
-
Region: { type: "builtInParams", name: "region" },
|
|
121
|
-
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: "shield",
|
|
25
|
+
});
|
|
122
26
|
};
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
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" },
|
|
32
|
+
};
|
|
33
|
+
|
|
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
|
+
};
|
|
72
|
+
|
|
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
|
+
};
|
|
78
|
+
|
|
79
|
+
class ShieldClient 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.defaultShieldHttpAuthSchemeParametersProvider,
|
|
102
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
103
|
+
"aws.auth#sigv4": config.credentials,
|
|
104
|
+
}),
|
|
105
|
+
}));
|
|
106
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
160
107
|
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
166
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
167
|
-
credentials: config.credentials()
|
|
168
|
-
};
|
|
169
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
170
|
-
|
|
171
|
-
// src/runtimeExtensions.ts
|
|
172
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
173
|
-
const extensionConfiguration = Object.assign(
|
|
174
|
-
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
175
|
-
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
176
|
-
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
177
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
178
|
-
);
|
|
179
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
180
|
-
return Object.assign(
|
|
181
|
-
runtimeConfig,
|
|
182
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
183
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
184
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
185
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
186
|
-
);
|
|
187
|
-
}, "resolveRuntimeExtensions");
|
|
188
|
-
|
|
189
|
-
// src/ShieldClient.ts
|
|
190
|
-
var ShieldClient = class extends import_smithy_client.Client {
|
|
191
|
-
static {
|
|
192
|
-
__name(this, "ShieldClient");
|
|
193
|
-
}
|
|
194
|
-
/**
|
|
195
|
-
* The resolved configuration of ShieldClient class. This is resolved and normalized from the {@link ShieldClientConfig | constructor configuration interface}.
|
|
196
|
-
*/
|
|
197
|
-
config;
|
|
198
|
-
constructor(...[configuration]) {
|
|
199
|
-
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
200
|
-
super(_config_0);
|
|
201
|
-
this.initConfig = _config_0;
|
|
202
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
203
|
-
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
204
|
-
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
205
|
-
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
|
|
206
|
-
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
207
|
-
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
208
|
-
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
209
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
210
|
-
this.config = _config_8;
|
|
211
|
-
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
212
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
213
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
214
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
215
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
216
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
217
|
-
this.middlewareStack.use(
|
|
218
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
219
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultShieldHttpAuthSchemeParametersProvider,
|
|
220
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
221
|
-
"aws.auth#sigv4": config.credentials
|
|
222
|
-
}), "identityProviderConfigProvider")
|
|
223
|
-
})
|
|
224
|
-
);
|
|
225
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
226
|
-
}
|
|
227
|
-
/**
|
|
228
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
229
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
230
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
231
|
-
*/
|
|
232
|
-
destroy() {
|
|
233
|
-
super.destroy();
|
|
234
|
-
}
|
|
235
|
-
};
|
|
236
|
-
|
|
237
|
-
// src/Shield.ts
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
// src/commands/AssociateDRTLogBucketCommand.ts
|
|
241
|
-
|
|
242
|
-
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
// src/protocols/Aws_json1_1.ts
|
|
246
|
-
var import_core2 = require("@aws-sdk/core");
|
|
247
|
-
|
|
108
|
+
destroy() {
|
|
109
|
+
super.destroy();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
248
112
|
|
|
113
|
+
class ShieldServiceException extends smithyClient.ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, ShieldServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
249
119
|
|
|
250
|
-
|
|
120
|
+
class AccessDeniedException extends ShieldServiceException {
|
|
121
|
+
name = "AccessDeniedException";
|
|
122
|
+
$fault = "client";
|
|
123
|
+
constructor(opts) {
|
|
124
|
+
super({
|
|
125
|
+
name: "AccessDeniedException",
|
|
126
|
+
$fault: "client",
|
|
127
|
+
...opts,
|
|
128
|
+
});
|
|
129
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
class AccessDeniedForDependencyException extends ShieldServiceException {
|
|
133
|
+
name = "AccessDeniedForDependencyException";
|
|
134
|
+
$fault = "client";
|
|
135
|
+
constructor(opts) {
|
|
136
|
+
super({
|
|
137
|
+
name: "AccessDeniedForDependencyException",
|
|
138
|
+
$fault: "client",
|
|
139
|
+
...opts,
|
|
140
|
+
});
|
|
141
|
+
Object.setPrototypeOf(this, AccessDeniedForDependencyException.prototype);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
const ApplicationLayerAutomaticResponseStatus = {
|
|
145
|
+
DISABLED: "DISABLED",
|
|
146
|
+
ENABLED: "ENABLED",
|
|
147
|
+
};
|
|
148
|
+
class InternalErrorException extends ShieldServiceException {
|
|
149
|
+
name = "InternalErrorException";
|
|
150
|
+
$fault = "server";
|
|
151
|
+
constructor(opts) {
|
|
152
|
+
super({
|
|
153
|
+
name: "InternalErrorException",
|
|
154
|
+
$fault: "server",
|
|
155
|
+
...opts,
|
|
156
|
+
});
|
|
157
|
+
Object.setPrototypeOf(this, InternalErrorException.prototype);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
class InvalidOperationException extends ShieldServiceException {
|
|
161
|
+
name = "InvalidOperationException";
|
|
162
|
+
$fault = "client";
|
|
163
|
+
constructor(opts) {
|
|
164
|
+
super({
|
|
165
|
+
name: "InvalidOperationException",
|
|
166
|
+
$fault: "client",
|
|
167
|
+
...opts,
|
|
168
|
+
});
|
|
169
|
+
Object.setPrototypeOf(this, InvalidOperationException.prototype);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
const ValidationExceptionReason = {
|
|
173
|
+
FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
|
|
174
|
+
OTHER: "OTHER",
|
|
175
|
+
};
|
|
176
|
+
class InvalidParameterException extends ShieldServiceException {
|
|
177
|
+
name = "InvalidParameterException";
|
|
178
|
+
$fault = "client";
|
|
179
|
+
reason;
|
|
180
|
+
fields;
|
|
181
|
+
constructor(opts) {
|
|
182
|
+
super({
|
|
183
|
+
name: "InvalidParameterException",
|
|
184
|
+
$fault: "client",
|
|
185
|
+
...opts,
|
|
186
|
+
});
|
|
187
|
+
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
188
|
+
this.reason = opts.reason;
|
|
189
|
+
this.fields = opts.fields;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
class LimitsExceededException extends ShieldServiceException {
|
|
193
|
+
name = "LimitsExceededException";
|
|
194
|
+
$fault = "client";
|
|
195
|
+
Type;
|
|
196
|
+
Limit;
|
|
197
|
+
constructor(opts) {
|
|
198
|
+
super({
|
|
199
|
+
name: "LimitsExceededException",
|
|
200
|
+
$fault: "client",
|
|
201
|
+
...opts,
|
|
202
|
+
});
|
|
203
|
+
Object.setPrototypeOf(this, LimitsExceededException.prototype);
|
|
204
|
+
this.Type = opts.Type;
|
|
205
|
+
this.Limit = opts.Limit;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
class NoAssociatedRoleException extends ShieldServiceException {
|
|
209
|
+
name = "NoAssociatedRoleException";
|
|
210
|
+
$fault = "client";
|
|
211
|
+
constructor(opts) {
|
|
212
|
+
super({
|
|
213
|
+
name: "NoAssociatedRoleException",
|
|
214
|
+
$fault: "client",
|
|
215
|
+
...opts,
|
|
216
|
+
});
|
|
217
|
+
Object.setPrototypeOf(this, NoAssociatedRoleException.prototype);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
class OptimisticLockException extends ShieldServiceException {
|
|
221
|
+
name = "OptimisticLockException";
|
|
222
|
+
$fault = "client";
|
|
223
|
+
constructor(opts) {
|
|
224
|
+
super({
|
|
225
|
+
name: "OptimisticLockException",
|
|
226
|
+
$fault: "client",
|
|
227
|
+
...opts,
|
|
228
|
+
});
|
|
229
|
+
Object.setPrototypeOf(this, OptimisticLockException.prototype);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
class ResourceNotFoundException extends ShieldServiceException {
|
|
233
|
+
name = "ResourceNotFoundException";
|
|
234
|
+
$fault = "client";
|
|
235
|
+
resourceType;
|
|
236
|
+
constructor(opts) {
|
|
237
|
+
super({
|
|
238
|
+
name: "ResourceNotFoundException",
|
|
239
|
+
$fault: "client",
|
|
240
|
+
...opts,
|
|
241
|
+
});
|
|
242
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
243
|
+
this.resourceType = opts.resourceType;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
class InvalidResourceException extends ShieldServiceException {
|
|
247
|
+
name = "InvalidResourceException";
|
|
248
|
+
$fault = "client";
|
|
249
|
+
constructor(opts) {
|
|
250
|
+
super({
|
|
251
|
+
name: "InvalidResourceException",
|
|
252
|
+
$fault: "client",
|
|
253
|
+
...opts,
|
|
254
|
+
});
|
|
255
|
+
Object.setPrototypeOf(this, InvalidResourceException.prototype);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
const AttackLayer = {
|
|
259
|
+
APPLICATION: "APPLICATION",
|
|
260
|
+
NETWORK: "NETWORK",
|
|
261
|
+
};
|
|
262
|
+
const AttackPropertyIdentifier = {
|
|
263
|
+
DESTINATION_URL: "DESTINATION_URL",
|
|
264
|
+
REFERRER: "REFERRER",
|
|
265
|
+
SOURCE_ASN: "SOURCE_ASN",
|
|
266
|
+
SOURCE_COUNTRY: "SOURCE_COUNTRY",
|
|
267
|
+
SOURCE_IP_ADDRESS: "SOURCE_IP_ADDRESS",
|
|
268
|
+
SOURCE_USER_AGENT: "SOURCE_USER_AGENT",
|
|
269
|
+
WORDPRESS_PINGBACK_REFLECTOR: "WORDPRESS_PINGBACK_REFLECTOR",
|
|
270
|
+
WORDPRESS_PINGBACK_SOURCE: "WORDPRESS_PINGBACK_SOURCE",
|
|
271
|
+
};
|
|
272
|
+
const Unit = {
|
|
273
|
+
BITS: "BITS",
|
|
274
|
+
BYTES: "BYTES",
|
|
275
|
+
PACKETS: "PACKETS",
|
|
276
|
+
REQUESTS: "REQUESTS",
|
|
277
|
+
};
|
|
278
|
+
const SubResourceType = {
|
|
279
|
+
IP: "IP",
|
|
280
|
+
URL: "URL",
|
|
281
|
+
};
|
|
282
|
+
const AutoRenew = {
|
|
283
|
+
DISABLED: "DISABLED",
|
|
284
|
+
ENABLED: "ENABLED",
|
|
285
|
+
};
|
|
286
|
+
class ResourceAlreadyExistsException extends ShieldServiceException {
|
|
287
|
+
name = "ResourceAlreadyExistsException";
|
|
288
|
+
$fault = "client";
|
|
289
|
+
resourceType;
|
|
290
|
+
constructor(opts) {
|
|
291
|
+
super({
|
|
292
|
+
name: "ResourceAlreadyExistsException",
|
|
293
|
+
$fault: "client",
|
|
294
|
+
...opts,
|
|
295
|
+
});
|
|
296
|
+
Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
|
|
297
|
+
this.resourceType = opts.resourceType;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
const ProtectionGroupAggregation = {
|
|
301
|
+
MAX: "MAX",
|
|
302
|
+
MEAN: "MEAN",
|
|
303
|
+
SUM: "SUM",
|
|
304
|
+
};
|
|
305
|
+
const ProtectionGroupPattern = {
|
|
306
|
+
ALL: "ALL",
|
|
307
|
+
ARBITRARY: "ARBITRARY",
|
|
308
|
+
BY_RESOURCE_TYPE: "BY_RESOURCE_TYPE",
|
|
309
|
+
};
|
|
310
|
+
const ProtectedResourceType = {
|
|
311
|
+
APPLICATION_LOAD_BALANCER: "APPLICATION_LOAD_BALANCER",
|
|
312
|
+
CLASSIC_LOAD_BALANCER: "CLASSIC_LOAD_BALANCER",
|
|
313
|
+
CLOUDFRONT_DISTRIBUTION: "CLOUDFRONT_DISTRIBUTION",
|
|
314
|
+
ELASTIC_IP_ALLOCATION: "ELASTIC_IP_ALLOCATION",
|
|
315
|
+
GLOBAL_ACCELERATOR: "GLOBAL_ACCELERATOR",
|
|
316
|
+
ROUTE_53_HOSTED_ZONE: "ROUTE_53_HOSTED_ZONE",
|
|
317
|
+
};
|
|
318
|
+
class LockedSubscriptionException extends ShieldServiceException {
|
|
319
|
+
name = "LockedSubscriptionException";
|
|
320
|
+
$fault = "client";
|
|
321
|
+
constructor(opts) {
|
|
322
|
+
super({
|
|
323
|
+
name: "LockedSubscriptionException",
|
|
324
|
+
$fault: "client",
|
|
325
|
+
...opts,
|
|
326
|
+
});
|
|
327
|
+
Object.setPrototypeOf(this, LockedSubscriptionException.prototype);
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
const ProactiveEngagementStatus = {
|
|
331
|
+
DISABLED: "DISABLED",
|
|
332
|
+
ENABLED: "ENABLED",
|
|
333
|
+
PENDING: "PENDING",
|
|
334
|
+
};
|
|
335
|
+
const SubscriptionState = {
|
|
336
|
+
ACTIVE: "ACTIVE",
|
|
337
|
+
INACTIVE: "INACTIVE",
|
|
338
|
+
};
|
|
339
|
+
class InvalidPaginationTokenException extends ShieldServiceException {
|
|
340
|
+
name = "InvalidPaginationTokenException";
|
|
341
|
+
$fault = "client";
|
|
342
|
+
constructor(opts) {
|
|
343
|
+
super({
|
|
344
|
+
name: "InvalidPaginationTokenException",
|
|
345
|
+
$fault: "client",
|
|
346
|
+
...opts,
|
|
347
|
+
});
|
|
348
|
+
Object.setPrototypeOf(this, InvalidPaginationTokenException.prototype);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
251
351
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
352
|
+
const se_AssociateDRTLogBucketCommand = async (input, context) => {
|
|
353
|
+
const headers = sharedHeaders("AssociateDRTLogBucket");
|
|
354
|
+
let body;
|
|
355
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
356
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
357
|
+
};
|
|
358
|
+
const se_AssociateDRTRoleCommand = async (input, context) => {
|
|
359
|
+
const headers = sharedHeaders("AssociateDRTRole");
|
|
360
|
+
let body;
|
|
361
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
362
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
363
|
+
};
|
|
364
|
+
const se_AssociateHealthCheckCommand = async (input, context) => {
|
|
365
|
+
const headers = sharedHeaders("AssociateHealthCheck");
|
|
366
|
+
let body;
|
|
367
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
368
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
369
|
+
};
|
|
370
|
+
const se_AssociateProactiveEngagementDetailsCommand = async (input, context) => {
|
|
371
|
+
const headers = sharedHeaders("AssociateProactiveEngagementDetails");
|
|
372
|
+
let body;
|
|
373
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
374
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
375
|
+
};
|
|
376
|
+
const se_CreateProtectionCommand = async (input, context) => {
|
|
377
|
+
const headers = sharedHeaders("CreateProtection");
|
|
378
|
+
let body;
|
|
379
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
380
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
381
|
+
};
|
|
382
|
+
const se_CreateProtectionGroupCommand = async (input, context) => {
|
|
383
|
+
const headers = sharedHeaders("CreateProtectionGroup");
|
|
384
|
+
let body;
|
|
385
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
386
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
387
|
+
};
|
|
388
|
+
const se_CreateSubscriptionCommand = async (input, context) => {
|
|
389
|
+
const headers = sharedHeaders("CreateSubscription");
|
|
390
|
+
let body;
|
|
391
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
392
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
393
|
+
};
|
|
394
|
+
const se_DeleteProtectionCommand = async (input, context) => {
|
|
395
|
+
const headers = sharedHeaders("DeleteProtection");
|
|
396
|
+
let body;
|
|
397
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
398
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
399
|
+
};
|
|
400
|
+
const se_DeleteProtectionGroupCommand = async (input, context) => {
|
|
401
|
+
const headers = sharedHeaders("DeleteProtectionGroup");
|
|
402
|
+
let body;
|
|
403
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
404
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
405
|
+
};
|
|
406
|
+
const se_DeleteSubscriptionCommand = async (input, context) => {
|
|
407
|
+
const headers = sharedHeaders("DeleteSubscription");
|
|
408
|
+
let body;
|
|
409
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
410
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
411
|
+
};
|
|
412
|
+
const se_DescribeAttackCommand = async (input, context) => {
|
|
413
|
+
const headers = sharedHeaders("DescribeAttack");
|
|
414
|
+
let body;
|
|
415
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
416
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
417
|
+
};
|
|
418
|
+
const se_DescribeAttackStatisticsCommand = async (input, context) => {
|
|
419
|
+
const headers = sharedHeaders("DescribeAttackStatistics");
|
|
420
|
+
let body;
|
|
421
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
422
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
423
|
+
};
|
|
424
|
+
const se_DescribeDRTAccessCommand = async (input, context) => {
|
|
425
|
+
const headers = sharedHeaders("DescribeDRTAccess");
|
|
426
|
+
let body;
|
|
427
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
428
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
429
|
+
};
|
|
430
|
+
const se_DescribeEmergencyContactSettingsCommand = async (input, context) => {
|
|
431
|
+
const headers = sharedHeaders("DescribeEmergencyContactSettings");
|
|
432
|
+
let body;
|
|
433
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
434
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
435
|
+
};
|
|
436
|
+
const se_DescribeProtectionCommand = async (input, context) => {
|
|
437
|
+
const headers = sharedHeaders("DescribeProtection");
|
|
438
|
+
let body;
|
|
439
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
440
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
441
|
+
};
|
|
442
|
+
const se_DescribeProtectionGroupCommand = async (input, context) => {
|
|
443
|
+
const headers = sharedHeaders("DescribeProtectionGroup");
|
|
444
|
+
let body;
|
|
445
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
446
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
447
|
+
};
|
|
448
|
+
const se_DescribeSubscriptionCommand = async (input, context) => {
|
|
449
|
+
const headers = sharedHeaders("DescribeSubscription");
|
|
450
|
+
let body;
|
|
451
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
452
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
453
|
+
};
|
|
454
|
+
const se_DisableApplicationLayerAutomaticResponseCommand = async (input, context) => {
|
|
455
|
+
const headers = sharedHeaders("DisableApplicationLayerAutomaticResponse");
|
|
456
|
+
let body;
|
|
457
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
458
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
459
|
+
};
|
|
460
|
+
const se_DisableProactiveEngagementCommand = async (input, context) => {
|
|
461
|
+
const headers = sharedHeaders("DisableProactiveEngagement");
|
|
462
|
+
let body;
|
|
463
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
464
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
465
|
+
};
|
|
466
|
+
const se_DisassociateDRTLogBucketCommand = async (input, context) => {
|
|
467
|
+
const headers = sharedHeaders("DisassociateDRTLogBucket");
|
|
468
|
+
let body;
|
|
469
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
470
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
471
|
+
};
|
|
472
|
+
const se_DisassociateDRTRoleCommand = async (input, context) => {
|
|
473
|
+
const headers = sharedHeaders("DisassociateDRTRole");
|
|
474
|
+
let body;
|
|
475
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
476
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
477
|
+
};
|
|
478
|
+
const se_DisassociateHealthCheckCommand = async (input, context) => {
|
|
479
|
+
const headers = sharedHeaders("DisassociateHealthCheck");
|
|
480
|
+
let body;
|
|
481
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
482
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
483
|
+
};
|
|
484
|
+
const se_EnableApplicationLayerAutomaticResponseCommand = async (input, context) => {
|
|
485
|
+
const headers = sharedHeaders("EnableApplicationLayerAutomaticResponse");
|
|
486
|
+
let body;
|
|
487
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
488
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
489
|
+
};
|
|
490
|
+
const se_EnableProactiveEngagementCommand = async (input, context) => {
|
|
491
|
+
const headers = sharedHeaders("EnableProactiveEngagement");
|
|
492
|
+
let body;
|
|
493
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
494
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
495
|
+
};
|
|
496
|
+
const se_GetSubscriptionStateCommand = async (input, context) => {
|
|
497
|
+
const headers = sharedHeaders("GetSubscriptionState");
|
|
498
|
+
let body;
|
|
499
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
500
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
501
|
+
};
|
|
502
|
+
const se_ListAttacksCommand = async (input, context) => {
|
|
503
|
+
const headers = sharedHeaders("ListAttacks");
|
|
504
|
+
let body;
|
|
505
|
+
body = JSON.stringify(se_ListAttacksRequest(input));
|
|
506
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
507
|
+
};
|
|
508
|
+
const se_ListProtectionGroupsCommand = async (input, context) => {
|
|
509
|
+
const headers = sharedHeaders("ListProtectionGroups");
|
|
510
|
+
let body;
|
|
511
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
512
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
513
|
+
};
|
|
514
|
+
const se_ListProtectionsCommand = async (input, context) => {
|
|
515
|
+
const headers = sharedHeaders("ListProtections");
|
|
516
|
+
let body;
|
|
517
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
518
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
519
|
+
};
|
|
520
|
+
const se_ListResourcesInProtectionGroupCommand = async (input, context) => {
|
|
521
|
+
const headers = sharedHeaders("ListResourcesInProtectionGroup");
|
|
522
|
+
let body;
|
|
523
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
524
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
525
|
+
};
|
|
526
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
527
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
528
|
+
let body;
|
|
529
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
530
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
531
|
+
};
|
|
532
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
533
|
+
const headers = sharedHeaders("TagResource");
|
|
534
|
+
let body;
|
|
535
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
536
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
537
|
+
};
|
|
538
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
539
|
+
const headers = sharedHeaders("UntagResource");
|
|
540
|
+
let body;
|
|
541
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
542
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
543
|
+
};
|
|
544
|
+
const se_UpdateApplicationLayerAutomaticResponseCommand = async (input, context) => {
|
|
545
|
+
const headers = sharedHeaders("UpdateApplicationLayerAutomaticResponse");
|
|
546
|
+
let body;
|
|
547
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
548
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
549
|
+
};
|
|
550
|
+
const se_UpdateEmergencyContactSettingsCommand = async (input, context) => {
|
|
551
|
+
const headers = sharedHeaders("UpdateEmergencyContactSettings");
|
|
552
|
+
let body;
|
|
553
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
554
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
555
|
+
};
|
|
556
|
+
const se_UpdateProtectionGroupCommand = async (input, context) => {
|
|
557
|
+
const headers = sharedHeaders("UpdateProtectionGroup");
|
|
558
|
+
let body;
|
|
559
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
560
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
561
|
+
};
|
|
562
|
+
const se_UpdateSubscriptionCommand = async (input, context) => {
|
|
563
|
+
const headers = sharedHeaders("UpdateSubscription");
|
|
564
|
+
let body;
|
|
565
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
566
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
567
|
+
};
|
|
568
|
+
const de_AssociateDRTLogBucketCommand = async (output, context) => {
|
|
569
|
+
if (output.statusCode >= 300) {
|
|
570
|
+
return de_CommandError(output, context);
|
|
571
|
+
}
|
|
572
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
573
|
+
let contents = {};
|
|
574
|
+
contents = smithyClient._json(data);
|
|
575
|
+
const response = {
|
|
576
|
+
$metadata: deserializeMetadata(output),
|
|
577
|
+
...contents,
|
|
578
|
+
};
|
|
579
|
+
return response;
|
|
580
|
+
};
|
|
581
|
+
const de_AssociateDRTRoleCommand = async (output, context) => {
|
|
582
|
+
if (output.statusCode >= 300) {
|
|
583
|
+
return de_CommandError(output, context);
|
|
584
|
+
}
|
|
585
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
586
|
+
let contents = {};
|
|
587
|
+
contents = smithyClient._json(data);
|
|
588
|
+
const response = {
|
|
589
|
+
$metadata: deserializeMetadata(output),
|
|
590
|
+
...contents,
|
|
591
|
+
};
|
|
592
|
+
return response;
|
|
593
|
+
};
|
|
594
|
+
const de_AssociateHealthCheckCommand = async (output, context) => {
|
|
595
|
+
if (output.statusCode >= 300) {
|
|
596
|
+
return de_CommandError(output, context);
|
|
597
|
+
}
|
|
598
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
599
|
+
let contents = {};
|
|
600
|
+
contents = smithyClient._json(data);
|
|
601
|
+
const response = {
|
|
602
|
+
$metadata: deserializeMetadata(output),
|
|
603
|
+
...contents,
|
|
604
|
+
};
|
|
605
|
+
return response;
|
|
606
|
+
};
|
|
607
|
+
const de_AssociateProactiveEngagementDetailsCommand = async (output, context) => {
|
|
608
|
+
if (output.statusCode >= 300) {
|
|
609
|
+
return de_CommandError(output, context);
|
|
610
|
+
}
|
|
611
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
612
|
+
let contents = {};
|
|
613
|
+
contents = smithyClient._json(data);
|
|
614
|
+
const response = {
|
|
615
|
+
$metadata: deserializeMetadata(output),
|
|
616
|
+
...contents,
|
|
617
|
+
};
|
|
618
|
+
return response;
|
|
619
|
+
};
|
|
620
|
+
const de_CreateProtectionCommand = async (output, context) => {
|
|
621
|
+
if (output.statusCode >= 300) {
|
|
622
|
+
return de_CommandError(output, context);
|
|
623
|
+
}
|
|
624
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
625
|
+
let contents = {};
|
|
626
|
+
contents = smithyClient._json(data);
|
|
627
|
+
const response = {
|
|
628
|
+
$metadata: deserializeMetadata(output),
|
|
629
|
+
...contents,
|
|
630
|
+
};
|
|
631
|
+
return response;
|
|
632
|
+
};
|
|
633
|
+
const de_CreateProtectionGroupCommand = async (output, context) => {
|
|
634
|
+
if (output.statusCode >= 300) {
|
|
635
|
+
return de_CommandError(output, context);
|
|
636
|
+
}
|
|
637
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
638
|
+
let contents = {};
|
|
639
|
+
contents = smithyClient._json(data);
|
|
640
|
+
const response = {
|
|
641
|
+
$metadata: deserializeMetadata(output),
|
|
642
|
+
...contents,
|
|
643
|
+
};
|
|
644
|
+
return response;
|
|
645
|
+
};
|
|
646
|
+
const de_CreateSubscriptionCommand = async (output, context) => {
|
|
647
|
+
if (output.statusCode >= 300) {
|
|
648
|
+
return de_CommandError(output, context);
|
|
649
|
+
}
|
|
650
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
651
|
+
let contents = {};
|
|
652
|
+
contents = smithyClient._json(data);
|
|
653
|
+
const response = {
|
|
654
|
+
$metadata: deserializeMetadata(output),
|
|
655
|
+
...contents,
|
|
656
|
+
};
|
|
657
|
+
return response;
|
|
658
|
+
};
|
|
659
|
+
const de_DeleteProtectionCommand = async (output, context) => {
|
|
660
|
+
if (output.statusCode >= 300) {
|
|
661
|
+
return de_CommandError(output, context);
|
|
662
|
+
}
|
|
663
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
664
|
+
let contents = {};
|
|
665
|
+
contents = smithyClient._json(data);
|
|
666
|
+
const response = {
|
|
667
|
+
$metadata: deserializeMetadata(output),
|
|
668
|
+
...contents,
|
|
669
|
+
};
|
|
670
|
+
return response;
|
|
671
|
+
};
|
|
672
|
+
const de_DeleteProtectionGroupCommand = async (output, context) => {
|
|
673
|
+
if (output.statusCode >= 300) {
|
|
674
|
+
return de_CommandError(output, context);
|
|
675
|
+
}
|
|
676
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
677
|
+
let contents = {};
|
|
678
|
+
contents = smithyClient._json(data);
|
|
679
|
+
const response = {
|
|
680
|
+
$metadata: deserializeMetadata(output),
|
|
681
|
+
...contents,
|
|
682
|
+
};
|
|
683
|
+
return response;
|
|
684
|
+
};
|
|
685
|
+
const de_DeleteSubscriptionCommand = async (output, context) => {
|
|
686
|
+
if (output.statusCode >= 300) {
|
|
687
|
+
return de_CommandError(output, context);
|
|
688
|
+
}
|
|
689
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
690
|
+
let contents = {};
|
|
691
|
+
contents = smithyClient._json(data);
|
|
692
|
+
const response = {
|
|
693
|
+
$metadata: deserializeMetadata(output),
|
|
694
|
+
...contents,
|
|
695
|
+
};
|
|
696
|
+
return response;
|
|
697
|
+
};
|
|
698
|
+
const de_DescribeAttackCommand = async (output, context) => {
|
|
699
|
+
if (output.statusCode >= 300) {
|
|
700
|
+
return de_CommandError(output, context);
|
|
701
|
+
}
|
|
702
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
703
|
+
let contents = {};
|
|
704
|
+
contents = de_DescribeAttackResponse(data);
|
|
705
|
+
const response = {
|
|
706
|
+
$metadata: deserializeMetadata(output),
|
|
707
|
+
...contents,
|
|
708
|
+
};
|
|
709
|
+
return response;
|
|
710
|
+
};
|
|
711
|
+
const de_DescribeAttackStatisticsCommand = async (output, context) => {
|
|
712
|
+
if (output.statusCode >= 300) {
|
|
713
|
+
return de_CommandError(output, context);
|
|
714
|
+
}
|
|
715
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
716
|
+
let contents = {};
|
|
717
|
+
contents = de_DescribeAttackStatisticsResponse(data);
|
|
718
|
+
const response = {
|
|
719
|
+
$metadata: deserializeMetadata(output),
|
|
720
|
+
...contents,
|
|
721
|
+
};
|
|
722
|
+
return response;
|
|
723
|
+
};
|
|
724
|
+
const de_DescribeDRTAccessCommand = async (output, context) => {
|
|
725
|
+
if (output.statusCode >= 300) {
|
|
726
|
+
return de_CommandError(output, context);
|
|
727
|
+
}
|
|
728
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
729
|
+
let contents = {};
|
|
730
|
+
contents = smithyClient._json(data);
|
|
731
|
+
const response = {
|
|
732
|
+
$metadata: deserializeMetadata(output),
|
|
733
|
+
...contents,
|
|
734
|
+
};
|
|
735
|
+
return response;
|
|
736
|
+
};
|
|
737
|
+
const de_DescribeEmergencyContactSettingsCommand = async (output, context) => {
|
|
738
|
+
if (output.statusCode >= 300) {
|
|
739
|
+
return de_CommandError(output, context);
|
|
740
|
+
}
|
|
741
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
742
|
+
let contents = {};
|
|
743
|
+
contents = smithyClient._json(data);
|
|
744
|
+
const response = {
|
|
745
|
+
$metadata: deserializeMetadata(output),
|
|
746
|
+
...contents,
|
|
747
|
+
};
|
|
748
|
+
return response;
|
|
749
|
+
};
|
|
750
|
+
const de_DescribeProtectionCommand = async (output, context) => {
|
|
751
|
+
if (output.statusCode >= 300) {
|
|
752
|
+
return de_CommandError(output, context);
|
|
753
|
+
}
|
|
754
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
755
|
+
let contents = {};
|
|
756
|
+
contents = smithyClient._json(data);
|
|
757
|
+
const response = {
|
|
758
|
+
$metadata: deserializeMetadata(output),
|
|
759
|
+
...contents,
|
|
760
|
+
};
|
|
761
|
+
return response;
|
|
762
|
+
};
|
|
763
|
+
const de_DescribeProtectionGroupCommand = async (output, context) => {
|
|
764
|
+
if (output.statusCode >= 300) {
|
|
765
|
+
return de_CommandError(output, context);
|
|
766
|
+
}
|
|
767
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
768
|
+
let contents = {};
|
|
769
|
+
contents = smithyClient._json(data);
|
|
770
|
+
const response = {
|
|
771
|
+
$metadata: deserializeMetadata(output),
|
|
772
|
+
...contents,
|
|
773
|
+
};
|
|
774
|
+
return response;
|
|
775
|
+
};
|
|
776
|
+
const de_DescribeSubscriptionCommand = async (output, context) => {
|
|
777
|
+
if (output.statusCode >= 300) {
|
|
778
|
+
return de_CommandError(output, context);
|
|
779
|
+
}
|
|
780
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
781
|
+
let contents = {};
|
|
782
|
+
contents = de_DescribeSubscriptionResponse(data);
|
|
783
|
+
const response = {
|
|
784
|
+
$metadata: deserializeMetadata(output),
|
|
785
|
+
...contents,
|
|
786
|
+
};
|
|
787
|
+
return response;
|
|
788
|
+
};
|
|
789
|
+
const de_DisableApplicationLayerAutomaticResponseCommand = async (output, context) => {
|
|
790
|
+
if (output.statusCode >= 300) {
|
|
791
|
+
return de_CommandError(output, context);
|
|
792
|
+
}
|
|
793
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
794
|
+
let contents = {};
|
|
795
|
+
contents = smithyClient._json(data);
|
|
796
|
+
const response = {
|
|
797
|
+
$metadata: deserializeMetadata(output),
|
|
798
|
+
...contents,
|
|
799
|
+
};
|
|
800
|
+
return response;
|
|
801
|
+
};
|
|
802
|
+
const de_DisableProactiveEngagementCommand = async (output, context) => {
|
|
803
|
+
if (output.statusCode >= 300) {
|
|
804
|
+
return de_CommandError(output, context);
|
|
805
|
+
}
|
|
806
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
807
|
+
let contents = {};
|
|
808
|
+
contents = smithyClient._json(data);
|
|
809
|
+
const response = {
|
|
810
|
+
$metadata: deserializeMetadata(output),
|
|
811
|
+
...contents,
|
|
812
|
+
};
|
|
813
|
+
return response;
|
|
814
|
+
};
|
|
815
|
+
const de_DisassociateDRTLogBucketCommand = async (output, context) => {
|
|
816
|
+
if (output.statusCode >= 300) {
|
|
817
|
+
return de_CommandError(output, context);
|
|
818
|
+
}
|
|
819
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
820
|
+
let contents = {};
|
|
821
|
+
contents = smithyClient._json(data);
|
|
822
|
+
const response = {
|
|
823
|
+
$metadata: deserializeMetadata(output),
|
|
824
|
+
...contents,
|
|
825
|
+
};
|
|
826
|
+
return response;
|
|
827
|
+
};
|
|
828
|
+
const de_DisassociateDRTRoleCommand = async (output, context) => {
|
|
829
|
+
if (output.statusCode >= 300) {
|
|
830
|
+
return de_CommandError(output, context);
|
|
831
|
+
}
|
|
832
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
833
|
+
let contents = {};
|
|
834
|
+
contents = smithyClient._json(data);
|
|
835
|
+
const response = {
|
|
836
|
+
$metadata: deserializeMetadata(output),
|
|
837
|
+
...contents,
|
|
838
|
+
};
|
|
839
|
+
return response;
|
|
840
|
+
};
|
|
841
|
+
const de_DisassociateHealthCheckCommand = async (output, context) => {
|
|
842
|
+
if (output.statusCode >= 300) {
|
|
843
|
+
return de_CommandError(output, context);
|
|
844
|
+
}
|
|
845
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
846
|
+
let contents = {};
|
|
847
|
+
contents = smithyClient._json(data);
|
|
848
|
+
const response = {
|
|
849
|
+
$metadata: deserializeMetadata(output),
|
|
850
|
+
...contents,
|
|
851
|
+
};
|
|
852
|
+
return response;
|
|
853
|
+
};
|
|
854
|
+
const de_EnableApplicationLayerAutomaticResponseCommand = async (output, context) => {
|
|
855
|
+
if (output.statusCode >= 300) {
|
|
856
|
+
return de_CommandError(output, context);
|
|
857
|
+
}
|
|
858
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
859
|
+
let contents = {};
|
|
860
|
+
contents = smithyClient._json(data);
|
|
861
|
+
const response = {
|
|
862
|
+
$metadata: deserializeMetadata(output),
|
|
863
|
+
...contents,
|
|
864
|
+
};
|
|
865
|
+
return response;
|
|
866
|
+
};
|
|
867
|
+
const de_EnableProactiveEngagementCommand = async (output, context) => {
|
|
868
|
+
if (output.statusCode >= 300) {
|
|
869
|
+
return de_CommandError(output, context);
|
|
870
|
+
}
|
|
871
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
872
|
+
let contents = {};
|
|
873
|
+
contents = smithyClient._json(data);
|
|
874
|
+
const response = {
|
|
875
|
+
$metadata: deserializeMetadata(output),
|
|
876
|
+
...contents,
|
|
877
|
+
};
|
|
878
|
+
return response;
|
|
879
|
+
};
|
|
880
|
+
const de_GetSubscriptionStateCommand = async (output, context) => {
|
|
881
|
+
if (output.statusCode >= 300) {
|
|
882
|
+
return de_CommandError(output, context);
|
|
883
|
+
}
|
|
884
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
885
|
+
let contents = {};
|
|
886
|
+
contents = smithyClient._json(data);
|
|
887
|
+
const response = {
|
|
888
|
+
$metadata: deserializeMetadata(output),
|
|
889
|
+
...contents,
|
|
890
|
+
};
|
|
891
|
+
return response;
|
|
892
|
+
};
|
|
893
|
+
const de_ListAttacksCommand = async (output, context) => {
|
|
894
|
+
if (output.statusCode >= 300) {
|
|
895
|
+
return de_CommandError(output, context);
|
|
896
|
+
}
|
|
897
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
898
|
+
let contents = {};
|
|
899
|
+
contents = de_ListAttacksResponse(data);
|
|
900
|
+
const response = {
|
|
901
|
+
$metadata: deserializeMetadata(output),
|
|
902
|
+
...contents,
|
|
903
|
+
};
|
|
904
|
+
return response;
|
|
905
|
+
};
|
|
906
|
+
const de_ListProtectionGroupsCommand = async (output, context) => {
|
|
907
|
+
if (output.statusCode >= 300) {
|
|
908
|
+
return de_CommandError(output, context);
|
|
909
|
+
}
|
|
910
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
911
|
+
let contents = {};
|
|
912
|
+
contents = smithyClient._json(data);
|
|
913
|
+
const response = {
|
|
914
|
+
$metadata: deserializeMetadata(output),
|
|
915
|
+
...contents,
|
|
916
|
+
};
|
|
917
|
+
return response;
|
|
918
|
+
};
|
|
919
|
+
const de_ListProtectionsCommand = async (output, context) => {
|
|
920
|
+
if (output.statusCode >= 300) {
|
|
921
|
+
return de_CommandError(output, context);
|
|
922
|
+
}
|
|
923
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
924
|
+
let contents = {};
|
|
925
|
+
contents = smithyClient._json(data);
|
|
926
|
+
const response = {
|
|
927
|
+
$metadata: deserializeMetadata(output),
|
|
928
|
+
...contents,
|
|
929
|
+
};
|
|
930
|
+
return response;
|
|
931
|
+
};
|
|
932
|
+
const de_ListResourcesInProtectionGroupCommand = async (output, context) => {
|
|
933
|
+
if (output.statusCode >= 300) {
|
|
934
|
+
return de_CommandError(output, context);
|
|
935
|
+
}
|
|
936
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
937
|
+
let contents = {};
|
|
938
|
+
contents = smithyClient._json(data);
|
|
939
|
+
const response = {
|
|
940
|
+
$metadata: deserializeMetadata(output),
|
|
941
|
+
...contents,
|
|
942
|
+
};
|
|
943
|
+
return response;
|
|
944
|
+
};
|
|
945
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
946
|
+
if (output.statusCode >= 300) {
|
|
947
|
+
return de_CommandError(output, context);
|
|
948
|
+
}
|
|
949
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
950
|
+
let contents = {};
|
|
951
|
+
contents = smithyClient._json(data);
|
|
952
|
+
const response = {
|
|
953
|
+
$metadata: deserializeMetadata(output),
|
|
954
|
+
...contents,
|
|
955
|
+
};
|
|
956
|
+
return response;
|
|
957
|
+
};
|
|
958
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
959
|
+
if (output.statusCode >= 300) {
|
|
960
|
+
return de_CommandError(output, context);
|
|
961
|
+
}
|
|
962
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
963
|
+
let contents = {};
|
|
964
|
+
contents = smithyClient._json(data);
|
|
965
|
+
const response = {
|
|
966
|
+
$metadata: deserializeMetadata(output),
|
|
967
|
+
...contents,
|
|
968
|
+
};
|
|
969
|
+
return response;
|
|
970
|
+
};
|
|
971
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
972
|
+
if (output.statusCode >= 300) {
|
|
973
|
+
return de_CommandError(output, context);
|
|
974
|
+
}
|
|
975
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
976
|
+
let contents = {};
|
|
977
|
+
contents = smithyClient._json(data);
|
|
978
|
+
const response = {
|
|
979
|
+
$metadata: deserializeMetadata(output),
|
|
980
|
+
...contents,
|
|
981
|
+
};
|
|
982
|
+
return response;
|
|
983
|
+
};
|
|
984
|
+
const de_UpdateApplicationLayerAutomaticResponseCommand = async (output, context) => {
|
|
985
|
+
if (output.statusCode >= 300) {
|
|
986
|
+
return de_CommandError(output, context);
|
|
987
|
+
}
|
|
988
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
989
|
+
let contents = {};
|
|
990
|
+
contents = smithyClient._json(data);
|
|
991
|
+
const response = {
|
|
992
|
+
$metadata: deserializeMetadata(output),
|
|
993
|
+
...contents,
|
|
994
|
+
};
|
|
995
|
+
return response;
|
|
996
|
+
};
|
|
997
|
+
const de_UpdateEmergencyContactSettingsCommand = async (output, context) => {
|
|
998
|
+
if (output.statusCode >= 300) {
|
|
999
|
+
return de_CommandError(output, context);
|
|
1000
|
+
}
|
|
1001
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
1002
|
+
let contents = {};
|
|
1003
|
+
contents = smithyClient._json(data);
|
|
1004
|
+
const response = {
|
|
1005
|
+
$metadata: deserializeMetadata(output),
|
|
1006
|
+
...contents,
|
|
1007
|
+
};
|
|
1008
|
+
return response;
|
|
1009
|
+
};
|
|
1010
|
+
const de_UpdateProtectionGroupCommand = async (output, context) => {
|
|
1011
|
+
if (output.statusCode >= 300) {
|
|
1012
|
+
return de_CommandError(output, context);
|
|
1013
|
+
}
|
|
1014
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
1015
|
+
let contents = {};
|
|
1016
|
+
contents = smithyClient._json(data);
|
|
1017
|
+
const response = {
|
|
1018
|
+
$metadata: deserializeMetadata(output),
|
|
1019
|
+
...contents,
|
|
1020
|
+
};
|
|
1021
|
+
return response;
|
|
1022
|
+
};
|
|
1023
|
+
const de_UpdateSubscriptionCommand = async (output, context) => {
|
|
1024
|
+
if (output.statusCode >= 300) {
|
|
1025
|
+
return de_CommandError(output, context);
|
|
1026
|
+
}
|
|
1027
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
1028
|
+
let contents = {};
|
|
1029
|
+
contents = smithyClient._json(data);
|
|
1030
|
+
const response = {
|
|
1031
|
+
$metadata: deserializeMetadata(output),
|
|
1032
|
+
...contents,
|
|
1033
|
+
};
|
|
1034
|
+
return response;
|
|
1035
|
+
};
|
|
1036
|
+
const de_CommandError = async (output, context) => {
|
|
1037
|
+
const parsedOutput = {
|
|
1038
|
+
...output,
|
|
1039
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
1040
|
+
};
|
|
1041
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1042
|
+
switch (errorCode) {
|
|
1043
|
+
case "AccessDeniedForDependencyException":
|
|
1044
|
+
case "com.amazonaws.shield#AccessDeniedForDependencyException":
|
|
1045
|
+
throw await de_AccessDeniedForDependencyExceptionRes(parsedOutput);
|
|
1046
|
+
case "InternalErrorException":
|
|
1047
|
+
case "com.amazonaws.shield#InternalErrorException":
|
|
1048
|
+
throw await de_InternalErrorExceptionRes(parsedOutput);
|
|
1049
|
+
case "InvalidOperationException":
|
|
1050
|
+
case "com.amazonaws.shield#InvalidOperationException":
|
|
1051
|
+
throw await de_InvalidOperationExceptionRes(parsedOutput);
|
|
1052
|
+
case "InvalidParameterException":
|
|
1053
|
+
case "com.amazonaws.shield#InvalidParameterException":
|
|
1054
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput);
|
|
1055
|
+
case "LimitsExceededException":
|
|
1056
|
+
case "com.amazonaws.shield#LimitsExceededException":
|
|
1057
|
+
throw await de_LimitsExceededExceptionRes(parsedOutput);
|
|
1058
|
+
case "NoAssociatedRoleException":
|
|
1059
|
+
case "com.amazonaws.shield#NoAssociatedRoleException":
|
|
1060
|
+
throw await de_NoAssociatedRoleExceptionRes(parsedOutput);
|
|
1061
|
+
case "OptimisticLockException":
|
|
1062
|
+
case "com.amazonaws.shield#OptimisticLockException":
|
|
1063
|
+
throw await de_OptimisticLockExceptionRes(parsedOutput);
|
|
1064
|
+
case "ResourceNotFoundException":
|
|
1065
|
+
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1066
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
1067
|
+
case "InvalidResourceException":
|
|
1068
|
+
case "com.amazonaws.shield#InvalidResourceException":
|
|
1069
|
+
throw await de_InvalidResourceExceptionRes(parsedOutput);
|
|
1070
|
+
case "ResourceAlreadyExistsException":
|
|
1071
|
+
case "com.amazonaws.shield#ResourceAlreadyExistsException":
|
|
1072
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput);
|
|
1073
|
+
case "LockedSubscriptionException":
|
|
1074
|
+
case "com.amazonaws.shield#LockedSubscriptionException":
|
|
1075
|
+
throw await de_LockedSubscriptionExceptionRes(parsedOutput);
|
|
1076
|
+
case "AccessDeniedException":
|
|
1077
|
+
case "com.amazonaws.shield#AccessDeniedException":
|
|
1078
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
1079
|
+
case "InvalidPaginationTokenException":
|
|
1080
|
+
case "com.amazonaws.shield#InvalidPaginationTokenException":
|
|
1081
|
+
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput);
|
|
1082
|
+
default:
|
|
1083
|
+
const parsedBody = parsedOutput.body;
|
|
1084
|
+
return throwDefaultError({
|
|
1085
|
+
output,
|
|
1086
|
+
parsedBody,
|
|
1087
|
+
errorCode,
|
|
1088
|
+
});
|
|
1089
|
+
}
|
|
263
1090
|
};
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
name = "AccessDeniedException";
|
|
271
|
-
$fault = "client";
|
|
272
|
-
/**
|
|
273
|
-
* @internal
|
|
274
|
-
*/
|
|
275
|
-
constructor(opts) {
|
|
276
|
-
super({
|
|
277
|
-
name: "AccessDeniedException",
|
|
278
|
-
$fault: "client",
|
|
279
|
-
...opts
|
|
1091
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1092
|
+
const body = parsedOutput.body;
|
|
1093
|
+
const deserialized = smithyClient._json(body);
|
|
1094
|
+
const exception = new AccessDeniedException({
|
|
1095
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1096
|
+
...deserialized,
|
|
280
1097
|
});
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
$fault = "client";
|
|
290
|
-
/**
|
|
291
|
-
* @internal
|
|
292
|
-
*/
|
|
293
|
-
constructor(opts) {
|
|
294
|
-
super({
|
|
295
|
-
name: "AccessDeniedForDependencyException",
|
|
296
|
-
$fault: "client",
|
|
297
|
-
...opts
|
|
1098
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1099
|
+
};
|
|
1100
|
+
const de_AccessDeniedForDependencyExceptionRes = async (parsedOutput, context) => {
|
|
1101
|
+
const body = parsedOutput.body;
|
|
1102
|
+
const deserialized = smithyClient._json(body);
|
|
1103
|
+
const exception = new AccessDeniedForDependencyException({
|
|
1104
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1105
|
+
...deserialized,
|
|
298
1106
|
});
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
static {
|
|
308
|
-
__name(this, "InternalErrorException");
|
|
309
|
-
}
|
|
310
|
-
name = "InternalErrorException";
|
|
311
|
-
$fault = "server";
|
|
312
|
-
/**
|
|
313
|
-
* @internal
|
|
314
|
-
*/
|
|
315
|
-
constructor(opts) {
|
|
316
|
-
super({
|
|
317
|
-
name: "InternalErrorException",
|
|
318
|
-
$fault: "server",
|
|
319
|
-
...opts
|
|
1107
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1108
|
+
};
|
|
1109
|
+
const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
|
|
1110
|
+
const body = parsedOutput.body;
|
|
1111
|
+
const deserialized = smithyClient._json(body);
|
|
1112
|
+
const exception = new InternalErrorException({
|
|
1113
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1114
|
+
...deserialized,
|
|
320
1115
|
});
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
$fault = "client";
|
|
330
|
-
/**
|
|
331
|
-
* @internal
|
|
332
|
-
*/
|
|
333
|
-
constructor(opts) {
|
|
334
|
-
super({
|
|
335
|
-
name: "InvalidOperationException",
|
|
336
|
-
$fault: "client",
|
|
337
|
-
...opts
|
|
1116
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1117
|
+
};
|
|
1118
|
+
const de_InvalidOperationExceptionRes = async (parsedOutput, context) => {
|
|
1119
|
+
const body = parsedOutput.body;
|
|
1120
|
+
const deserialized = smithyClient._json(body);
|
|
1121
|
+
const exception = new InvalidOperationException({
|
|
1122
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1123
|
+
...deserialized,
|
|
338
1124
|
});
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
static {
|
|
348
|
-
__name(this, "InvalidParameterException");
|
|
349
|
-
}
|
|
350
|
-
name = "InvalidParameterException";
|
|
351
|
-
$fault = "client";
|
|
352
|
-
/**
|
|
353
|
-
* <p>Additional information about the exception.</p>
|
|
354
|
-
* @public
|
|
355
|
-
*/
|
|
356
|
-
reason;
|
|
357
|
-
/**
|
|
358
|
-
* <p>Fields that caused the exception.</p>
|
|
359
|
-
* @public
|
|
360
|
-
*/
|
|
361
|
-
fields;
|
|
362
|
-
/**
|
|
363
|
-
* @internal
|
|
364
|
-
*/
|
|
365
|
-
constructor(opts) {
|
|
366
|
-
super({
|
|
367
|
-
name: "InvalidParameterException",
|
|
368
|
-
$fault: "client",
|
|
369
|
-
...opts
|
|
1125
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1126
|
+
};
|
|
1127
|
+
const de_InvalidPaginationTokenExceptionRes = async (parsedOutput, context) => {
|
|
1128
|
+
const body = parsedOutput.body;
|
|
1129
|
+
const deserialized = smithyClient._json(body);
|
|
1130
|
+
const exception = new InvalidPaginationTokenException({
|
|
1131
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1132
|
+
...deserialized,
|
|
370
1133
|
});
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
}
|
|
380
|
-
name = "LimitsExceededException";
|
|
381
|
-
$fault = "client";
|
|
382
|
-
/**
|
|
383
|
-
* <p>The type of limit that would be exceeded.</p>
|
|
384
|
-
* @public
|
|
385
|
-
*/
|
|
386
|
-
Type;
|
|
387
|
-
/**
|
|
388
|
-
* <p>The threshold that would be exceeded.</p>
|
|
389
|
-
* @public
|
|
390
|
-
*/
|
|
391
|
-
Limit;
|
|
392
|
-
/**
|
|
393
|
-
* @internal
|
|
394
|
-
*/
|
|
395
|
-
constructor(opts) {
|
|
396
|
-
super({
|
|
397
|
-
name: "LimitsExceededException",
|
|
398
|
-
$fault: "client",
|
|
399
|
-
...opts
|
|
1134
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1135
|
+
};
|
|
1136
|
+
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
1137
|
+
const body = parsedOutput.body;
|
|
1138
|
+
const deserialized = smithyClient._json(body);
|
|
1139
|
+
const exception = new InvalidParameterException({
|
|
1140
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1141
|
+
...deserialized,
|
|
400
1142
|
});
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
}
|
|
410
|
-
name = "NoAssociatedRoleException";
|
|
411
|
-
$fault = "client";
|
|
412
|
-
/**
|
|
413
|
-
* @internal
|
|
414
|
-
*/
|
|
415
|
-
constructor(opts) {
|
|
416
|
-
super({
|
|
417
|
-
name: "NoAssociatedRoleException",
|
|
418
|
-
$fault: "client",
|
|
419
|
-
...opts
|
|
1143
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1144
|
+
};
|
|
1145
|
+
const de_InvalidResourceExceptionRes = async (parsedOutput, context) => {
|
|
1146
|
+
const body = parsedOutput.body;
|
|
1147
|
+
const deserialized = smithyClient._json(body);
|
|
1148
|
+
const exception = new InvalidResourceException({
|
|
1149
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1150
|
+
...deserialized,
|
|
420
1151
|
});
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
$fault = "client";
|
|
430
|
-
/**
|
|
431
|
-
* @internal
|
|
432
|
-
*/
|
|
433
|
-
constructor(opts) {
|
|
434
|
-
super({
|
|
435
|
-
name: "OptimisticLockException",
|
|
436
|
-
$fault: "client",
|
|
437
|
-
...opts
|
|
1152
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1153
|
+
};
|
|
1154
|
+
const de_LimitsExceededExceptionRes = async (parsedOutput, context) => {
|
|
1155
|
+
const body = parsedOutput.body;
|
|
1156
|
+
const deserialized = smithyClient._json(body);
|
|
1157
|
+
const exception = new LimitsExceededException({
|
|
1158
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1159
|
+
...deserialized,
|
|
438
1160
|
});
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
$fault = "client";
|
|
448
|
-
/**
|
|
449
|
-
* <p>Type of resource.</p>
|
|
450
|
-
* @public
|
|
451
|
-
*/
|
|
452
|
-
resourceType;
|
|
453
|
-
/**
|
|
454
|
-
* @internal
|
|
455
|
-
*/
|
|
456
|
-
constructor(opts) {
|
|
457
|
-
super({
|
|
458
|
-
name: "ResourceNotFoundException",
|
|
459
|
-
$fault: "client",
|
|
460
|
-
...opts
|
|
1161
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1162
|
+
};
|
|
1163
|
+
const de_LockedSubscriptionExceptionRes = async (parsedOutput, context) => {
|
|
1164
|
+
const body = parsedOutput.body;
|
|
1165
|
+
const deserialized = smithyClient._json(body);
|
|
1166
|
+
const exception = new LockedSubscriptionException({
|
|
1167
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1168
|
+
...deserialized,
|
|
461
1169
|
});
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
name = "InvalidResourceException";
|
|
471
|
-
$fault = "client";
|
|
472
|
-
/**
|
|
473
|
-
* @internal
|
|
474
|
-
*/
|
|
475
|
-
constructor(opts) {
|
|
476
|
-
super({
|
|
477
|
-
name: "InvalidResourceException",
|
|
478
|
-
$fault: "client",
|
|
479
|
-
...opts
|
|
1170
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1171
|
+
};
|
|
1172
|
+
const de_NoAssociatedRoleExceptionRes = async (parsedOutput, context) => {
|
|
1173
|
+
const body = parsedOutput.body;
|
|
1174
|
+
const deserialized = smithyClient._json(body);
|
|
1175
|
+
const exception = new NoAssociatedRoleException({
|
|
1176
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1177
|
+
...deserialized,
|
|
480
1178
|
});
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
DESTINATION_URL: "DESTINATION_URL",
|
|
490
|
-
REFERRER: "REFERRER",
|
|
491
|
-
SOURCE_ASN: "SOURCE_ASN",
|
|
492
|
-
SOURCE_COUNTRY: "SOURCE_COUNTRY",
|
|
493
|
-
SOURCE_IP_ADDRESS: "SOURCE_IP_ADDRESS",
|
|
494
|
-
SOURCE_USER_AGENT: "SOURCE_USER_AGENT",
|
|
495
|
-
WORDPRESS_PINGBACK_REFLECTOR: "WORDPRESS_PINGBACK_REFLECTOR",
|
|
496
|
-
WORDPRESS_PINGBACK_SOURCE: "WORDPRESS_PINGBACK_SOURCE"
|
|
497
|
-
};
|
|
498
|
-
var Unit = {
|
|
499
|
-
BITS: "BITS",
|
|
500
|
-
BYTES: "BYTES",
|
|
501
|
-
PACKETS: "PACKETS",
|
|
502
|
-
REQUESTS: "REQUESTS"
|
|
503
|
-
};
|
|
504
|
-
var SubResourceType = {
|
|
505
|
-
IP: "IP",
|
|
506
|
-
URL: "URL"
|
|
507
|
-
};
|
|
508
|
-
var AutoRenew = {
|
|
509
|
-
DISABLED: "DISABLED",
|
|
510
|
-
ENABLED: "ENABLED"
|
|
511
|
-
};
|
|
512
|
-
var ResourceAlreadyExistsException = class _ResourceAlreadyExistsException extends ShieldServiceException {
|
|
513
|
-
static {
|
|
514
|
-
__name(this, "ResourceAlreadyExistsException");
|
|
515
|
-
}
|
|
516
|
-
name = "ResourceAlreadyExistsException";
|
|
517
|
-
$fault = "client";
|
|
518
|
-
/**
|
|
519
|
-
* <p>The type of resource that already exists.</p>
|
|
520
|
-
* @public
|
|
521
|
-
*/
|
|
522
|
-
resourceType;
|
|
523
|
-
/**
|
|
524
|
-
* @internal
|
|
525
|
-
*/
|
|
526
|
-
constructor(opts) {
|
|
527
|
-
super({
|
|
528
|
-
name: "ResourceAlreadyExistsException",
|
|
529
|
-
$fault: "client",
|
|
530
|
-
...opts
|
|
1179
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1180
|
+
};
|
|
1181
|
+
const de_OptimisticLockExceptionRes = async (parsedOutput, context) => {
|
|
1182
|
+
const body = parsedOutput.body;
|
|
1183
|
+
const deserialized = smithyClient._json(body);
|
|
1184
|
+
const exception = new OptimisticLockException({
|
|
1185
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1186
|
+
...deserialized,
|
|
531
1187
|
});
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
};
|
|
541
|
-
var ProtectionGroupPattern = {
|
|
542
|
-
ALL: "ALL",
|
|
543
|
-
ARBITRARY: "ARBITRARY",
|
|
544
|
-
BY_RESOURCE_TYPE: "BY_RESOURCE_TYPE"
|
|
545
|
-
};
|
|
546
|
-
var ProtectedResourceType = {
|
|
547
|
-
APPLICATION_LOAD_BALANCER: "APPLICATION_LOAD_BALANCER",
|
|
548
|
-
CLASSIC_LOAD_BALANCER: "CLASSIC_LOAD_BALANCER",
|
|
549
|
-
CLOUDFRONT_DISTRIBUTION: "CLOUDFRONT_DISTRIBUTION",
|
|
550
|
-
ELASTIC_IP_ALLOCATION: "ELASTIC_IP_ALLOCATION",
|
|
551
|
-
GLOBAL_ACCELERATOR: "GLOBAL_ACCELERATOR",
|
|
552
|
-
ROUTE_53_HOSTED_ZONE: "ROUTE_53_HOSTED_ZONE"
|
|
553
|
-
};
|
|
554
|
-
var LockedSubscriptionException = class _LockedSubscriptionException extends ShieldServiceException {
|
|
555
|
-
static {
|
|
556
|
-
__name(this, "LockedSubscriptionException");
|
|
557
|
-
}
|
|
558
|
-
name = "LockedSubscriptionException";
|
|
559
|
-
$fault = "client";
|
|
560
|
-
/**
|
|
561
|
-
* @internal
|
|
562
|
-
*/
|
|
563
|
-
constructor(opts) {
|
|
564
|
-
super({
|
|
565
|
-
name: "LockedSubscriptionException",
|
|
566
|
-
$fault: "client",
|
|
567
|
-
...opts
|
|
1188
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1189
|
+
};
|
|
1190
|
+
const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1191
|
+
const body = parsedOutput.body;
|
|
1192
|
+
const deserialized = smithyClient._json(body);
|
|
1193
|
+
const exception = new ResourceAlreadyExistsException({
|
|
1194
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1195
|
+
...deserialized,
|
|
568
1196
|
});
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
/**
|
|
588
|
-
* @internal
|
|
589
|
-
*/
|
|
590
|
-
constructor(opts) {
|
|
591
|
-
super({
|
|
592
|
-
name: "InvalidPaginationTokenException",
|
|
593
|
-
$fault: "client",
|
|
594
|
-
...opts
|
|
1197
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1198
|
+
};
|
|
1199
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1200
|
+
const body = parsedOutput.body;
|
|
1201
|
+
const deserialized = smithyClient._json(body);
|
|
1202
|
+
const exception = new ResourceNotFoundException({
|
|
1203
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1204
|
+
...deserialized,
|
|
1205
|
+
});
|
|
1206
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1207
|
+
};
|
|
1208
|
+
const se_ListAttacksRequest = (input, context) => {
|
|
1209
|
+
return smithyClient.take(input, {
|
|
1210
|
+
EndTime: (_) => se_TimeRange(_),
|
|
1211
|
+
MaxResults: [],
|
|
1212
|
+
NextToken: [],
|
|
1213
|
+
ResourceArns: smithyClient._json,
|
|
1214
|
+
StartTime: (_) => se_TimeRange(_),
|
|
595
1215
|
});
|
|
596
|
-
Object.setPrototypeOf(this, _InvalidPaginationTokenException.prototype);
|
|
597
|
-
}
|
|
598
|
-
};
|
|
599
|
-
|
|
600
|
-
// src/protocols/Aws_json1_1.ts
|
|
601
|
-
var se_AssociateDRTLogBucketCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
602
|
-
const headers = sharedHeaders("AssociateDRTLogBucket");
|
|
603
|
-
let body;
|
|
604
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
605
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
606
|
-
}, "se_AssociateDRTLogBucketCommand");
|
|
607
|
-
var se_AssociateDRTRoleCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
608
|
-
const headers = sharedHeaders("AssociateDRTRole");
|
|
609
|
-
let body;
|
|
610
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
611
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
612
|
-
}, "se_AssociateDRTRoleCommand");
|
|
613
|
-
var se_AssociateHealthCheckCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
614
|
-
const headers = sharedHeaders("AssociateHealthCheck");
|
|
615
|
-
let body;
|
|
616
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
617
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
618
|
-
}, "se_AssociateHealthCheckCommand");
|
|
619
|
-
var se_AssociateProactiveEngagementDetailsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
620
|
-
const headers = sharedHeaders("AssociateProactiveEngagementDetails");
|
|
621
|
-
let body;
|
|
622
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
623
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
624
|
-
}, "se_AssociateProactiveEngagementDetailsCommand");
|
|
625
|
-
var se_CreateProtectionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
626
|
-
const headers = sharedHeaders("CreateProtection");
|
|
627
|
-
let body;
|
|
628
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
629
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
630
|
-
}, "se_CreateProtectionCommand");
|
|
631
|
-
var se_CreateProtectionGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
632
|
-
const headers = sharedHeaders("CreateProtectionGroup");
|
|
633
|
-
let body;
|
|
634
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
635
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
636
|
-
}, "se_CreateProtectionGroupCommand");
|
|
637
|
-
var se_CreateSubscriptionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
638
|
-
const headers = sharedHeaders("CreateSubscription");
|
|
639
|
-
let body;
|
|
640
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
641
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
642
|
-
}, "se_CreateSubscriptionCommand");
|
|
643
|
-
var se_DeleteProtectionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
644
|
-
const headers = sharedHeaders("DeleteProtection");
|
|
645
|
-
let body;
|
|
646
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
647
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
648
|
-
}, "se_DeleteProtectionCommand");
|
|
649
|
-
var se_DeleteProtectionGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
650
|
-
const headers = sharedHeaders("DeleteProtectionGroup");
|
|
651
|
-
let body;
|
|
652
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
653
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
654
|
-
}, "se_DeleteProtectionGroupCommand");
|
|
655
|
-
var se_DeleteSubscriptionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
656
|
-
const headers = sharedHeaders("DeleteSubscription");
|
|
657
|
-
let body;
|
|
658
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
659
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
660
|
-
}, "se_DeleteSubscriptionCommand");
|
|
661
|
-
var se_DescribeAttackCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
662
|
-
const headers = sharedHeaders("DescribeAttack");
|
|
663
|
-
let body;
|
|
664
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
665
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
666
|
-
}, "se_DescribeAttackCommand");
|
|
667
|
-
var se_DescribeAttackStatisticsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
668
|
-
const headers = sharedHeaders("DescribeAttackStatistics");
|
|
669
|
-
let body;
|
|
670
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
671
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
672
|
-
}, "se_DescribeAttackStatisticsCommand");
|
|
673
|
-
var se_DescribeDRTAccessCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
674
|
-
const headers = sharedHeaders("DescribeDRTAccess");
|
|
675
|
-
let body;
|
|
676
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
677
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
678
|
-
}, "se_DescribeDRTAccessCommand");
|
|
679
|
-
var se_DescribeEmergencyContactSettingsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
680
|
-
const headers = sharedHeaders("DescribeEmergencyContactSettings");
|
|
681
|
-
let body;
|
|
682
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
683
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
684
|
-
}, "se_DescribeEmergencyContactSettingsCommand");
|
|
685
|
-
var se_DescribeProtectionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
686
|
-
const headers = sharedHeaders("DescribeProtection");
|
|
687
|
-
let body;
|
|
688
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
689
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
690
|
-
}, "se_DescribeProtectionCommand");
|
|
691
|
-
var se_DescribeProtectionGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
692
|
-
const headers = sharedHeaders("DescribeProtectionGroup");
|
|
693
|
-
let body;
|
|
694
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
695
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
696
|
-
}, "se_DescribeProtectionGroupCommand");
|
|
697
|
-
var se_DescribeSubscriptionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
698
|
-
const headers = sharedHeaders("DescribeSubscription");
|
|
699
|
-
let body;
|
|
700
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
701
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
702
|
-
}, "se_DescribeSubscriptionCommand");
|
|
703
|
-
var se_DisableApplicationLayerAutomaticResponseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
704
|
-
const headers = sharedHeaders("DisableApplicationLayerAutomaticResponse");
|
|
705
|
-
let body;
|
|
706
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
707
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
708
|
-
}, "se_DisableApplicationLayerAutomaticResponseCommand");
|
|
709
|
-
var se_DisableProactiveEngagementCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
710
|
-
const headers = sharedHeaders("DisableProactiveEngagement");
|
|
711
|
-
let body;
|
|
712
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
713
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
714
|
-
}, "se_DisableProactiveEngagementCommand");
|
|
715
|
-
var se_DisassociateDRTLogBucketCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
716
|
-
const headers = sharedHeaders("DisassociateDRTLogBucket");
|
|
717
|
-
let body;
|
|
718
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
719
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
720
|
-
}, "se_DisassociateDRTLogBucketCommand");
|
|
721
|
-
var se_DisassociateDRTRoleCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
722
|
-
const headers = sharedHeaders("DisassociateDRTRole");
|
|
723
|
-
let body;
|
|
724
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
725
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
726
|
-
}, "se_DisassociateDRTRoleCommand");
|
|
727
|
-
var se_DisassociateHealthCheckCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
728
|
-
const headers = sharedHeaders("DisassociateHealthCheck");
|
|
729
|
-
let body;
|
|
730
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
731
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
732
|
-
}, "se_DisassociateHealthCheckCommand");
|
|
733
|
-
var se_EnableApplicationLayerAutomaticResponseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
734
|
-
const headers = sharedHeaders("EnableApplicationLayerAutomaticResponse");
|
|
735
|
-
let body;
|
|
736
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
737
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
738
|
-
}, "se_EnableApplicationLayerAutomaticResponseCommand");
|
|
739
|
-
var se_EnableProactiveEngagementCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
740
|
-
const headers = sharedHeaders("EnableProactiveEngagement");
|
|
741
|
-
let body;
|
|
742
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
743
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
744
|
-
}, "se_EnableProactiveEngagementCommand");
|
|
745
|
-
var se_GetSubscriptionStateCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
746
|
-
const headers = sharedHeaders("GetSubscriptionState");
|
|
747
|
-
let body;
|
|
748
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
749
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
750
|
-
}, "se_GetSubscriptionStateCommand");
|
|
751
|
-
var se_ListAttacksCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
752
|
-
const headers = sharedHeaders("ListAttacks");
|
|
753
|
-
let body;
|
|
754
|
-
body = JSON.stringify(se_ListAttacksRequest(input, context));
|
|
755
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
756
|
-
}, "se_ListAttacksCommand");
|
|
757
|
-
var se_ListProtectionGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
758
|
-
const headers = sharedHeaders("ListProtectionGroups");
|
|
759
|
-
let body;
|
|
760
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
761
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
762
|
-
}, "se_ListProtectionGroupsCommand");
|
|
763
|
-
var se_ListProtectionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
764
|
-
const headers = sharedHeaders("ListProtections");
|
|
765
|
-
let body;
|
|
766
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
767
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
768
|
-
}, "se_ListProtectionsCommand");
|
|
769
|
-
var se_ListResourcesInProtectionGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
770
|
-
const headers = sharedHeaders("ListResourcesInProtectionGroup");
|
|
771
|
-
let body;
|
|
772
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
773
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
774
|
-
}, "se_ListResourcesInProtectionGroupCommand");
|
|
775
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
776
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
777
|
-
let body;
|
|
778
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
779
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
780
|
-
}, "se_ListTagsForResourceCommand");
|
|
781
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
782
|
-
const headers = sharedHeaders("TagResource");
|
|
783
|
-
let body;
|
|
784
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
785
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
786
|
-
}, "se_TagResourceCommand");
|
|
787
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
788
|
-
const headers = sharedHeaders("UntagResource");
|
|
789
|
-
let body;
|
|
790
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
791
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
792
|
-
}, "se_UntagResourceCommand");
|
|
793
|
-
var se_UpdateApplicationLayerAutomaticResponseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
794
|
-
const headers = sharedHeaders("UpdateApplicationLayerAutomaticResponse");
|
|
795
|
-
let body;
|
|
796
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
797
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
798
|
-
}, "se_UpdateApplicationLayerAutomaticResponseCommand");
|
|
799
|
-
var se_UpdateEmergencyContactSettingsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
800
|
-
const headers = sharedHeaders("UpdateEmergencyContactSettings");
|
|
801
|
-
let body;
|
|
802
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
803
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
804
|
-
}, "se_UpdateEmergencyContactSettingsCommand");
|
|
805
|
-
var se_UpdateProtectionGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
806
|
-
const headers = sharedHeaders("UpdateProtectionGroup");
|
|
807
|
-
let body;
|
|
808
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
809
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
810
|
-
}, "se_UpdateProtectionGroupCommand");
|
|
811
|
-
var se_UpdateSubscriptionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
812
|
-
const headers = sharedHeaders("UpdateSubscription");
|
|
813
|
-
let body;
|
|
814
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
815
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
816
|
-
}, "se_UpdateSubscriptionCommand");
|
|
817
|
-
var de_AssociateDRTLogBucketCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
818
|
-
if (output.statusCode >= 300) {
|
|
819
|
-
return de_CommandError(output, context);
|
|
820
|
-
}
|
|
821
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
822
|
-
let contents = {};
|
|
823
|
-
contents = (0, import_smithy_client._json)(data);
|
|
824
|
-
const response = {
|
|
825
|
-
$metadata: deserializeMetadata(output),
|
|
826
|
-
...contents
|
|
827
|
-
};
|
|
828
|
-
return response;
|
|
829
|
-
}, "de_AssociateDRTLogBucketCommand");
|
|
830
|
-
var de_AssociateDRTRoleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
831
|
-
if (output.statusCode >= 300) {
|
|
832
|
-
return de_CommandError(output, context);
|
|
833
|
-
}
|
|
834
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
835
|
-
let contents = {};
|
|
836
|
-
contents = (0, import_smithy_client._json)(data);
|
|
837
|
-
const response = {
|
|
838
|
-
$metadata: deserializeMetadata(output),
|
|
839
|
-
...contents
|
|
840
|
-
};
|
|
841
|
-
return response;
|
|
842
|
-
}, "de_AssociateDRTRoleCommand");
|
|
843
|
-
var de_AssociateHealthCheckCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
844
|
-
if (output.statusCode >= 300) {
|
|
845
|
-
return de_CommandError(output, context);
|
|
846
|
-
}
|
|
847
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
848
|
-
let contents = {};
|
|
849
|
-
contents = (0, import_smithy_client._json)(data);
|
|
850
|
-
const response = {
|
|
851
|
-
$metadata: deserializeMetadata(output),
|
|
852
|
-
...contents
|
|
853
|
-
};
|
|
854
|
-
return response;
|
|
855
|
-
}, "de_AssociateHealthCheckCommand");
|
|
856
|
-
var de_AssociateProactiveEngagementDetailsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
857
|
-
if (output.statusCode >= 300) {
|
|
858
|
-
return de_CommandError(output, context);
|
|
859
|
-
}
|
|
860
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
861
|
-
let contents = {};
|
|
862
|
-
contents = (0, import_smithy_client._json)(data);
|
|
863
|
-
const response = {
|
|
864
|
-
$metadata: deserializeMetadata(output),
|
|
865
|
-
...contents
|
|
866
|
-
};
|
|
867
|
-
return response;
|
|
868
|
-
}, "de_AssociateProactiveEngagementDetailsCommand");
|
|
869
|
-
var de_CreateProtectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
870
|
-
if (output.statusCode >= 300) {
|
|
871
|
-
return de_CommandError(output, context);
|
|
872
|
-
}
|
|
873
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
874
|
-
let contents = {};
|
|
875
|
-
contents = (0, import_smithy_client._json)(data);
|
|
876
|
-
const response = {
|
|
877
|
-
$metadata: deserializeMetadata(output),
|
|
878
|
-
...contents
|
|
879
|
-
};
|
|
880
|
-
return response;
|
|
881
|
-
}, "de_CreateProtectionCommand");
|
|
882
|
-
var de_CreateProtectionGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
883
|
-
if (output.statusCode >= 300) {
|
|
884
|
-
return de_CommandError(output, context);
|
|
885
|
-
}
|
|
886
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
887
|
-
let contents = {};
|
|
888
|
-
contents = (0, import_smithy_client._json)(data);
|
|
889
|
-
const response = {
|
|
890
|
-
$metadata: deserializeMetadata(output),
|
|
891
|
-
...contents
|
|
892
|
-
};
|
|
893
|
-
return response;
|
|
894
|
-
}, "de_CreateProtectionGroupCommand");
|
|
895
|
-
var de_CreateSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
896
|
-
if (output.statusCode >= 300) {
|
|
897
|
-
return de_CommandError(output, context);
|
|
898
|
-
}
|
|
899
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
900
|
-
let contents = {};
|
|
901
|
-
contents = (0, import_smithy_client._json)(data);
|
|
902
|
-
const response = {
|
|
903
|
-
$metadata: deserializeMetadata(output),
|
|
904
|
-
...contents
|
|
905
|
-
};
|
|
906
|
-
return response;
|
|
907
|
-
}, "de_CreateSubscriptionCommand");
|
|
908
|
-
var de_DeleteProtectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
909
|
-
if (output.statusCode >= 300) {
|
|
910
|
-
return de_CommandError(output, context);
|
|
911
|
-
}
|
|
912
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
913
|
-
let contents = {};
|
|
914
|
-
contents = (0, import_smithy_client._json)(data);
|
|
915
|
-
const response = {
|
|
916
|
-
$metadata: deserializeMetadata(output),
|
|
917
|
-
...contents
|
|
918
|
-
};
|
|
919
|
-
return response;
|
|
920
|
-
}, "de_DeleteProtectionCommand");
|
|
921
|
-
var de_DeleteProtectionGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
922
|
-
if (output.statusCode >= 300) {
|
|
923
|
-
return de_CommandError(output, context);
|
|
924
|
-
}
|
|
925
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
926
|
-
let contents = {};
|
|
927
|
-
contents = (0, import_smithy_client._json)(data);
|
|
928
|
-
const response = {
|
|
929
|
-
$metadata: deserializeMetadata(output),
|
|
930
|
-
...contents
|
|
931
|
-
};
|
|
932
|
-
return response;
|
|
933
|
-
}, "de_DeleteProtectionGroupCommand");
|
|
934
|
-
var de_DeleteSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
935
|
-
if (output.statusCode >= 300) {
|
|
936
|
-
return de_CommandError(output, context);
|
|
937
|
-
}
|
|
938
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
939
|
-
let contents = {};
|
|
940
|
-
contents = (0, import_smithy_client._json)(data);
|
|
941
|
-
const response = {
|
|
942
|
-
$metadata: deserializeMetadata(output),
|
|
943
|
-
...contents
|
|
944
|
-
};
|
|
945
|
-
return response;
|
|
946
|
-
}, "de_DeleteSubscriptionCommand");
|
|
947
|
-
var de_DescribeAttackCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
948
|
-
if (output.statusCode >= 300) {
|
|
949
|
-
return de_CommandError(output, context);
|
|
950
|
-
}
|
|
951
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
952
|
-
let contents = {};
|
|
953
|
-
contents = de_DescribeAttackResponse(data, context);
|
|
954
|
-
const response = {
|
|
955
|
-
$metadata: deserializeMetadata(output),
|
|
956
|
-
...contents
|
|
957
|
-
};
|
|
958
|
-
return response;
|
|
959
|
-
}, "de_DescribeAttackCommand");
|
|
960
|
-
var de_DescribeAttackStatisticsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
961
|
-
if (output.statusCode >= 300) {
|
|
962
|
-
return de_CommandError(output, context);
|
|
963
|
-
}
|
|
964
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
965
|
-
let contents = {};
|
|
966
|
-
contents = de_DescribeAttackStatisticsResponse(data, context);
|
|
967
|
-
const response = {
|
|
968
|
-
$metadata: deserializeMetadata(output),
|
|
969
|
-
...contents
|
|
970
|
-
};
|
|
971
|
-
return response;
|
|
972
|
-
}, "de_DescribeAttackStatisticsCommand");
|
|
973
|
-
var de_DescribeDRTAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
974
|
-
if (output.statusCode >= 300) {
|
|
975
|
-
return de_CommandError(output, context);
|
|
976
|
-
}
|
|
977
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
978
|
-
let contents = {};
|
|
979
|
-
contents = (0, import_smithy_client._json)(data);
|
|
980
|
-
const response = {
|
|
981
|
-
$metadata: deserializeMetadata(output),
|
|
982
|
-
...contents
|
|
983
|
-
};
|
|
984
|
-
return response;
|
|
985
|
-
}, "de_DescribeDRTAccessCommand");
|
|
986
|
-
var de_DescribeEmergencyContactSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
987
|
-
if (output.statusCode >= 300) {
|
|
988
|
-
return de_CommandError(output, context);
|
|
989
|
-
}
|
|
990
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
991
|
-
let contents = {};
|
|
992
|
-
contents = (0, import_smithy_client._json)(data);
|
|
993
|
-
const response = {
|
|
994
|
-
$metadata: deserializeMetadata(output),
|
|
995
|
-
...contents
|
|
996
|
-
};
|
|
997
|
-
return response;
|
|
998
|
-
}, "de_DescribeEmergencyContactSettingsCommand");
|
|
999
|
-
var de_DescribeProtectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1000
|
-
if (output.statusCode >= 300) {
|
|
1001
|
-
return de_CommandError(output, context);
|
|
1002
|
-
}
|
|
1003
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1004
|
-
let contents = {};
|
|
1005
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1006
|
-
const response = {
|
|
1007
|
-
$metadata: deserializeMetadata(output),
|
|
1008
|
-
...contents
|
|
1009
|
-
};
|
|
1010
|
-
return response;
|
|
1011
|
-
}, "de_DescribeProtectionCommand");
|
|
1012
|
-
var de_DescribeProtectionGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1013
|
-
if (output.statusCode >= 300) {
|
|
1014
|
-
return de_CommandError(output, context);
|
|
1015
|
-
}
|
|
1016
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1017
|
-
let contents = {};
|
|
1018
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1019
|
-
const response = {
|
|
1020
|
-
$metadata: deserializeMetadata(output),
|
|
1021
|
-
...contents
|
|
1022
|
-
};
|
|
1023
|
-
return response;
|
|
1024
|
-
}, "de_DescribeProtectionGroupCommand");
|
|
1025
|
-
var de_DescribeSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1026
|
-
if (output.statusCode >= 300) {
|
|
1027
|
-
return de_CommandError(output, context);
|
|
1028
|
-
}
|
|
1029
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1030
|
-
let contents = {};
|
|
1031
|
-
contents = de_DescribeSubscriptionResponse(data, context);
|
|
1032
|
-
const response = {
|
|
1033
|
-
$metadata: deserializeMetadata(output),
|
|
1034
|
-
...contents
|
|
1035
|
-
};
|
|
1036
|
-
return response;
|
|
1037
|
-
}, "de_DescribeSubscriptionCommand");
|
|
1038
|
-
var de_DisableApplicationLayerAutomaticResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1039
|
-
if (output.statusCode >= 300) {
|
|
1040
|
-
return de_CommandError(output, context);
|
|
1041
|
-
}
|
|
1042
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1043
|
-
let contents = {};
|
|
1044
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1045
|
-
const response = {
|
|
1046
|
-
$metadata: deserializeMetadata(output),
|
|
1047
|
-
...contents
|
|
1048
|
-
};
|
|
1049
|
-
return response;
|
|
1050
|
-
}, "de_DisableApplicationLayerAutomaticResponseCommand");
|
|
1051
|
-
var de_DisableProactiveEngagementCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1052
|
-
if (output.statusCode >= 300) {
|
|
1053
|
-
return de_CommandError(output, context);
|
|
1054
|
-
}
|
|
1055
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1056
|
-
let contents = {};
|
|
1057
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1058
|
-
const response = {
|
|
1059
|
-
$metadata: deserializeMetadata(output),
|
|
1060
|
-
...contents
|
|
1061
|
-
};
|
|
1062
|
-
return response;
|
|
1063
|
-
}, "de_DisableProactiveEngagementCommand");
|
|
1064
|
-
var de_DisassociateDRTLogBucketCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1065
|
-
if (output.statusCode >= 300) {
|
|
1066
|
-
return de_CommandError(output, context);
|
|
1067
|
-
}
|
|
1068
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1069
|
-
let contents = {};
|
|
1070
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1071
|
-
const response = {
|
|
1072
|
-
$metadata: deserializeMetadata(output),
|
|
1073
|
-
...contents
|
|
1074
|
-
};
|
|
1075
|
-
return response;
|
|
1076
|
-
}, "de_DisassociateDRTLogBucketCommand");
|
|
1077
|
-
var de_DisassociateDRTRoleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1078
|
-
if (output.statusCode >= 300) {
|
|
1079
|
-
return de_CommandError(output, context);
|
|
1080
|
-
}
|
|
1081
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1082
|
-
let contents = {};
|
|
1083
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1084
|
-
const response = {
|
|
1085
|
-
$metadata: deserializeMetadata(output),
|
|
1086
|
-
...contents
|
|
1087
|
-
};
|
|
1088
|
-
return response;
|
|
1089
|
-
}, "de_DisassociateDRTRoleCommand");
|
|
1090
|
-
var de_DisassociateHealthCheckCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1091
|
-
if (output.statusCode >= 300) {
|
|
1092
|
-
return de_CommandError(output, context);
|
|
1093
|
-
}
|
|
1094
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1095
|
-
let contents = {};
|
|
1096
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1097
|
-
const response = {
|
|
1098
|
-
$metadata: deserializeMetadata(output),
|
|
1099
|
-
...contents
|
|
1100
|
-
};
|
|
1101
|
-
return response;
|
|
1102
|
-
}, "de_DisassociateHealthCheckCommand");
|
|
1103
|
-
var de_EnableApplicationLayerAutomaticResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1104
|
-
if (output.statusCode >= 300) {
|
|
1105
|
-
return de_CommandError(output, context);
|
|
1106
|
-
}
|
|
1107
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1108
|
-
let contents = {};
|
|
1109
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1110
|
-
const response = {
|
|
1111
|
-
$metadata: deserializeMetadata(output),
|
|
1112
|
-
...contents
|
|
1113
|
-
};
|
|
1114
|
-
return response;
|
|
1115
|
-
}, "de_EnableApplicationLayerAutomaticResponseCommand");
|
|
1116
|
-
var de_EnableProactiveEngagementCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1117
|
-
if (output.statusCode >= 300) {
|
|
1118
|
-
return de_CommandError(output, context);
|
|
1119
|
-
}
|
|
1120
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1121
|
-
let contents = {};
|
|
1122
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1123
|
-
const response = {
|
|
1124
|
-
$metadata: deserializeMetadata(output),
|
|
1125
|
-
...contents
|
|
1126
|
-
};
|
|
1127
|
-
return response;
|
|
1128
|
-
}, "de_EnableProactiveEngagementCommand");
|
|
1129
|
-
var de_GetSubscriptionStateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1130
|
-
if (output.statusCode >= 300) {
|
|
1131
|
-
return de_CommandError(output, context);
|
|
1132
|
-
}
|
|
1133
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1134
|
-
let contents = {};
|
|
1135
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1136
|
-
const response = {
|
|
1137
|
-
$metadata: deserializeMetadata(output),
|
|
1138
|
-
...contents
|
|
1139
|
-
};
|
|
1140
|
-
return response;
|
|
1141
|
-
}, "de_GetSubscriptionStateCommand");
|
|
1142
|
-
var de_ListAttacksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1143
|
-
if (output.statusCode >= 300) {
|
|
1144
|
-
return de_CommandError(output, context);
|
|
1145
|
-
}
|
|
1146
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1147
|
-
let contents = {};
|
|
1148
|
-
contents = de_ListAttacksResponse(data, context);
|
|
1149
|
-
const response = {
|
|
1150
|
-
$metadata: deserializeMetadata(output),
|
|
1151
|
-
...contents
|
|
1152
|
-
};
|
|
1153
|
-
return response;
|
|
1154
|
-
}, "de_ListAttacksCommand");
|
|
1155
|
-
var de_ListProtectionGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1156
|
-
if (output.statusCode >= 300) {
|
|
1157
|
-
return de_CommandError(output, context);
|
|
1158
|
-
}
|
|
1159
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1160
|
-
let contents = {};
|
|
1161
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1162
|
-
const response = {
|
|
1163
|
-
$metadata: deserializeMetadata(output),
|
|
1164
|
-
...contents
|
|
1165
|
-
};
|
|
1166
|
-
return response;
|
|
1167
|
-
}, "de_ListProtectionGroupsCommand");
|
|
1168
|
-
var de_ListProtectionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1169
|
-
if (output.statusCode >= 300) {
|
|
1170
|
-
return de_CommandError(output, context);
|
|
1171
|
-
}
|
|
1172
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1173
|
-
let contents = {};
|
|
1174
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1175
|
-
const response = {
|
|
1176
|
-
$metadata: deserializeMetadata(output),
|
|
1177
|
-
...contents
|
|
1178
|
-
};
|
|
1179
|
-
return response;
|
|
1180
|
-
}, "de_ListProtectionsCommand");
|
|
1181
|
-
var de_ListResourcesInProtectionGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1182
|
-
if (output.statusCode >= 300) {
|
|
1183
|
-
return de_CommandError(output, context);
|
|
1184
|
-
}
|
|
1185
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1186
|
-
let contents = {};
|
|
1187
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1188
|
-
const response = {
|
|
1189
|
-
$metadata: deserializeMetadata(output),
|
|
1190
|
-
...contents
|
|
1191
|
-
};
|
|
1192
|
-
return response;
|
|
1193
|
-
}, "de_ListResourcesInProtectionGroupCommand");
|
|
1194
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1195
|
-
if (output.statusCode >= 300) {
|
|
1196
|
-
return de_CommandError(output, context);
|
|
1197
|
-
}
|
|
1198
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1199
|
-
let contents = {};
|
|
1200
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1201
|
-
const response = {
|
|
1202
|
-
$metadata: deserializeMetadata(output),
|
|
1203
|
-
...contents
|
|
1204
|
-
};
|
|
1205
|
-
return response;
|
|
1206
|
-
}, "de_ListTagsForResourceCommand");
|
|
1207
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1208
|
-
if (output.statusCode >= 300) {
|
|
1209
|
-
return de_CommandError(output, context);
|
|
1210
|
-
}
|
|
1211
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1212
|
-
let contents = {};
|
|
1213
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1214
|
-
const response = {
|
|
1215
|
-
$metadata: deserializeMetadata(output),
|
|
1216
|
-
...contents
|
|
1217
|
-
};
|
|
1218
|
-
return response;
|
|
1219
|
-
}, "de_TagResourceCommand");
|
|
1220
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1221
|
-
if (output.statusCode >= 300) {
|
|
1222
|
-
return de_CommandError(output, context);
|
|
1223
|
-
}
|
|
1224
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1225
|
-
let contents = {};
|
|
1226
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1227
|
-
const response = {
|
|
1228
|
-
$metadata: deserializeMetadata(output),
|
|
1229
|
-
...contents
|
|
1230
|
-
};
|
|
1231
|
-
return response;
|
|
1232
|
-
}, "de_UntagResourceCommand");
|
|
1233
|
-
var de_UpdateApplicationLayerAutomaticResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1234
|
-
if (output.statusCode >= 300) {
|
|
1235
|
-
return de_CommandError(output, context);
|
|
1236
|
-
}
|
|
1237
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1238
|
-
let contents = {};
|
|
1239
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1240
|
-
const response = {
|
|
1241
|
-
$metadata: deserializeMetadata(output),
|
|
1242
|
-
...contents
|
|
1243
|
-
};
|
|
1244
|
-
return response;
|
|
1245
|
-
}, "de_UpdateApplicationLayerAutomaticResponseCommand");
|
|
1246
|
-
var de_UpdateEmergencyContactSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1247
|
-
if (output.statusCode >= 300) {
|
|
1248
|
-
return de_CommandError(output, context);
|
|
1249
|
-
}
|
|
1250
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1251
|
-
let contents = {};
|
|
1252
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1253
|
-
const response = {
|
|
1254
|
-
$metadata: deserializeMetadata(output),
|
|
1255
|
-
...contents
|
|
1256
|
-
};
|
|
1257
|
-
return response;
|
|
1258
|
-
}, "de_UpdateEmergencyContactSettingsCommand");
|
|
1259
|
-
var de_UpdateProtectionGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1260
|
-
if (output.statusCode >= 300) {
|
|
1261
|
-
return de_CommandError(output, context);
|
|
1262
|
-
}
|
|
1263
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1264
|
-
let contents = {};
|
|
1265
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1266
|
-
const response = {
|
|
1267
|
-
$metadata: deserializeMetadata(output),
|
|
1268
|
-
...contents
|
|
1269
|
-
};
|
|
1270
|
-
return response;
|
|
1271
|
-
}, "de_UpdateProtectionGroupCommand");
|
|
1272
|
-
var de_UpdateSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1273
|
-
if (output.statusCode >= 300) {
|
|
1274
|
-
return de_CommandError(output, context);
|
|
1275
|
-
}
|
|
1276
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1277
|
-
let contents = {};
|
|
1278
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1279
|
-
const response = {
|
|
1280
|
-
$metadata: deserializeMetadata(output),
|
|
1281
|
-
...contents
|
|
1282
|
-
};
|
|
1283
|
-
return response;
|
|
1284
|
-
}, "de_UpdateSubscriptionCommand");
|
|
1285
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1286
|
-
const parsedOutput = {
|
|
1287
|
-
...output,
|
|
1288
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1289
|
-
};
|
|
1290
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1291
|
-
switch (errorCode) {
|
|
1292
|
-
case "AccessDeniedForDependencyException":
|
|
1293
|
-
case "com.amazonaws.shield#AccessDeniedForDependencyException":
|
|
1294
|
-
throw await de_AccessDeniedForDependencyExceptionRes(parsedOutput, context);
|
|
1295
|
-
case "InternalErrorException":
|
|
1296
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1297
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1298
|
-
case "InvalidOperationException":
|
|
1299
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
1300
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1301
|
-
case "InvalidParameterException":
|
|
1302
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
1303
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1304
|
-
case "LimitsExceededException":
|
|
1305
|
-
case "com.amazonaws.shield#LimitsExceededException":
|
|
1306
|
-
throw await de_LimitsExceededExceptionRes(parsedOutput, context);
|
|
1307
|
-
case "NoAssociatedRoleException":
|
|
1308
|
-
case "com.amazonaws.shield#NoAssociatedRoleException":
|
|
1309
|
-
throw await de_NoAssociatedRoleExceptionRes(parsedOutput, context);
|
|
1310
|
-
case "OptimisticLockException":
|
|
1311
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
1312
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1313
|
-
case "ResourceNotFoundException":
|
|
1314
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1315
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1316
|
-
case "InvalidResourceException":
|
|
1317
|
-
case "com.amazonaws.shield#InvalidResourceException":
|
|
1318
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1319
|
-
case "ResourceAlreadyExistsException":
|
|
1320
|
-
case "com.amazonaws.shield#ResourceAlreadyExistsException":
|
|
1321
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1322
|
-
case "LockedSubscriptionException":
|
|
1323
|
-
case "com.amazonaws.shield#LockedSubscriptionException":
|
|
1324
|
-
throw await de_LockedSubscriptionExceptionRes(parsedOutput, context);
|
|
1325
|
-
case "AccessDeniedException":
|
|
1326
|
-
case "com.amazonaws.shield#AccessDeniedException":
|
|
1327
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1328
|
-
case "InvalidPaginationTokenException":
|
|
1329
|
-
case "com.amazonaws.shield#InvalidPaginationTokenException":
|
|
1330
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
1331
|
-
default:
|
|
1332
|
-
const parsedBody = parsedOutput.body;
|
|
1333
|
-
return throwDefaultError({
|
|
1334
|
-
output,
|
|
1335
|
-
parsedBody,
|
|
1336
|
-
errorCode
|
|
1337
|
-
});
|
|
1338
|
-
}
|
|
1339
|
-
}, "de_CommandError");
|
|
1340
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1341
|
-
const body = parsedOutput.body;
|
|
1342
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1343
|
-
const exception = new AccessDeniedException({
|
|
1344
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1345
|
-
...deserialized
|
|
1346
|
-
});
|
|
1347
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1348
|
-
}, "de_AccessDeniedExceptionRes");
|
|
1349
|
-
var de_AccessDeniedForDependencyExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1350
|
-
const body = parsedOutput.body;
|
|
1351
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1352
|
-
const exception = new AccessDeniedForDependencyException({
|
|
1353
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1354
|
-
...deserialized
|
|
1355
|
-
});
|
|
1356
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1357
|
-
}, "de_AccessDeniedForDependencyExceptionRes");
|
|
1358
|
-
var de_InternalErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1359
|
-
const body = parsedOutput.body;
|
|
1360
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1361
|
-
const exception = new InternalErrorException({
|
|
1362
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1363
|
-
...deserialized
|
|
1364
|
-
});
|
|
1365
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1366
|
-
}, "de_InternalErrorExceptionRes");
|
|
1367
|
-
var de_InvalidOperationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1368
|
-
const body = parsedOutput.body;
|
|
1369
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1370
|
-
const exception = new InvalidOperationException({
|
|
1371
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1372
|
-
...deserialized
|
|
1373
|
-
});
|
|
1374
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1375
|
-
}, "de_InvalidOperationExceptionRes");
|
|
1376
|
-
var de_InvalidPaginationTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1377
|
-
const body = parsedOutput.body;
|
|
1378
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1379
|
-
const exception = new InvalidPaginationTokenException({
|
|
1380
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1381
|
-
...deserialized
|
|
1382
|
-
});
|
|
1383
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1384
|
-
}, "de_InvalidPaginationTokenExceptionRes");
|
|
1385
|
-
var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1386
|
-
const body = parsedOutput.body;
|
|
1387
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1388
|
-
const exception = new InvalidParameterException({
|
|
1389
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1390
|
-
...deserialized
|
|
1391
|
-
});
|
|
1392
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1393
|
-
}, "de_InvalidParameterExceptionRes");
|
|
1394
|
-
var de_InvalidResourceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1395
|
-
const body = parsedOutput.body;
|
|
1396
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1397
|
-
const exception = new InvalidResourceException({
|
|
1398
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1399
|
-
...deserialized
|
|
1400
|
-
});
|
|
1401
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1402
|
-
}, "de_InvalidResourceExceptionRes");
|
|
1403
|
-
var de_LimitsExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1404
|
-
const body = parsedOutput.body;
|
|
1405
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1406
|
-
const exception = new LimitsExceededException({
|
|
1407
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1408
|
-
...deserialized
|
|
1409
|
-
});
|
|
1410
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1411
|
-
}, "de_LimitsExceededExceptionRes");
|
|
1412
|
-
var de_LockedSubscriptionExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1413
|
-
const body = parsedOutput.body;
|
|
1414
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1415
|
-
const exception = new LockedSubscriptionException({
|
|
1416
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1417
|
-
...deserialized
|
|
1418
|
-
});
|
|
1419
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1420
|
-
}, "de_LockedSubscriptionExceptionRes");
|
|
1421
|
-
var de_NoAssociatedRoleExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1422
|
-
const body = parsedOutput.body;
|
|
1423
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1424
|
-
const exception = new NoAssociatedRoleException({
|
|
1425
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1426
|
-
...deserialized
|
|
1427
|
-
});
|
|
1428
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1429
|
-
}, "de_NoAssociatedRoleExceptionRes");
|
|
1430
|
-
var de_OptimisticLockExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1431
|
-
const body = parsedOutput.body;
|
|
1432
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1433
|
-
const exception = new OptimisticLockException({
|
|
1434
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1435
|
-
...deserialized
|
|
1436
|
-
});
|
|
1437
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1438
|
-
}, "de_OptimisticLockExceptionRes");
|
|
1439
|
-
var de_ResourceAlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1440
|
-
const body = parsedOutput.body;
|
|
1441
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1442
|
-
const exception = new ResourceAlreadyExistsException({
|
|
1443
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1444
|
-
...deserialized
|
|
1445
|
-
});
|
|
1446
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1447
|
-
}, "de_ResourceAlreadyExistsExceptionRes");
|
|
1448
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1449
|
-
const body = parsedOutput.body;
|
|
1450
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1451
|
-
const exception = new ResourceNotFoundException({
|
|
1452
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1453
|
-
...deserialized
|
|
1454
|
-
});
|
|
1455
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1456
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
1457
|
-
var se_ListAttacksRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1458
|
-
return (0, import_smithy_client.take)(input, {
|
|
1459
|
-
EndTime: /* @__PURE__ */ __name((_) => se_TimeRange(_, context), "EndTime"),
|
|
1460
|
-
MaxResults: [],
|
|
1461
|
-
NextToken: [],
|
|
1462
|
-
ResourceArns: import_smithy_client._json,
|
|
1463
|
-
StartTime: /* @__PURE__ */ __name((_) => se_TimeRange(_, context), "StartTime")
|
|
1464
|
-
});
|
|
1465
|
-
}, "se_ListAttacksRequest");
|
|
1466
|
-
var se_TimeRange = /* @__PURE__ */ __name((input, context) => {
|
|
1467
|
-
return (0, import_smithy_client.take)(input, {
|
|
1468
|
-
FromInclusive: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "FromInclusive"),
|
|
1469
|
-
ToExclusive: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "ToExclusive")
|
|
1470
|
-
});
|
|
1471
|
-
}, "se_TimeRange");
|
|
1472
|
-
var de_AttackDetail = /* @__PURE__ */ __name((output, context) => {
|
|
1473
|
-
return (0, import_smithy_client.take)(output, {
|
|
1474
|
-
AttackCounters: /* @__PURE__ */ __name((_) => de_SummarizedCounterList(_, context), "AttackCounters"),
|
|
1475
|
-
AttackId: import_smithy_client.expectString,
|
|
1476
|
-
AttackProperties: import_smithy_client._json,
|
|
1477
|
-
EndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "EndTime"),
|
|
1478
|
-
Mitigations: import_smithy_client._json,
|
|
1479
|
-
ResourceArn: import_smithy_client.expectString,
|
|
1480
|
-
StartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartTime"),
|
|
1481
|
-
SubResources: /* @__PURE__ */ __name((_) => de_SubResourceSummaryList(_, context), "SubResources")
|
|
1482
|
-
});
|
|
1483
|
-
}, "de_AttackDetail");
|
|
1484
|
-
var de_AttackStatisticsDataItem = /* @__PURE__ */ __name((output, context) => {
|
|
1485
|
-
return (0, import_smithy_client.take)(output, {
|
|
1486
|
-
AttackCount: import_smithy_client.expectLong,
|
|
1487
|
-
AttackVolume: /* @__PURE__ */ __name((_) => de_AttackVolume(_, context), "AttackVolume")
|
|
1488
|
-
});
|
|
1489
|
-
}, "de_AttackStatisticsDataItem");
|
|
1490
|
-
var de_AttackStatisticsDataList = /* @__PURE__ */ __name((output, context) => {
|
|
1491
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1492
|
-
return de_AttackStatisticsDataItem(entry, context);
|
|
1493
|
-
});
|
|
1494
|
-
return retVal;
|
|
1495
|
-
}, "de_AttackStatisticsDataList");
|
|
1496
|
-
var de_AttackSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
1497
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1498
|
-
return de_AttackSummary(entry, context);
|
|
1499
|
-
});
|
|
1500
|
-
return retVal;
|
|
1501
|
-
}, "de_AttackSummaries");
|
|
1502
|
-
var de_AttackSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1503
|
-
return (0, import_smithy_client.take)(output, {
|
|
1504
|
-
AttackId: import_smithy_client.expectString,
|
|
1505
|
-
AttackVectors: import_smithy_client._json,
|
|
1506
|
-
EndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "EndTime"),
|
|
1507
|
-
ResourceArn: import_smithy_client.expectString,
|
|
1508
|
-
StartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartTime")
|
|
1509
|
-
});
|
|
1510
|
-
}, "de_AttackSummary");
|
|
1511
|
-
var de_AttackVolume = /* @__PURE__ */ __name((output, context) => {
|
|
1512
|
-
return (0, import_smithy_client.take)(output, {
|
|
1513
|
-
BitsPerSecond: /* @__PURE__ */ __name((_) => de_AttackVolumeStatistics(_, context), "BitsPerSecond"),
|
|
1514
|
-
PacketsPerSecond: /* @__PURE__ */ __name((_) => de_AttackVolumeStatistics(_, context), "PacketsPerSecond"),
|
|
1515
|
-
RequestsPerSecond: /* @__PURE__ */ __name((_) => de_AttackVolumeStatistics(_, context), "RequestsPerSecond")
|
|
1516
|
-
});
|
|
1517
|
-
}, "de_AttackVolume");
|
|
1518
|
-
var de_AttackVolumeStatistics = /* @__PURE__ */ __name((output, context) => {
|
|
1519
|
-
return (0, import_smithy_client.take)(output, {
|
|
1520
|
-
Max: import_smithy_client.limitedParseDouble
|
|
1521
|
-
});
|
|
1522
|
-
}, "de_AttackVolumeStatistics");
|
|
1523
|
-
var de_DescribeAttackResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1524
|
-
return (0, import_smithy_client.take)(output, {
|
|
1525
|
-
Attack: /* @__PURE__ */ __name((_) => de_AttackDetail(_, context), "Attack")
|
|
1526
|
-
});
|
|
1527
|
-
}, "de_DescribeAttackResponse");
|
|
1528
|
-
var de_DescribeAttackStatisticsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1529
|
-
return (0, import_smithy_client.take)(output, {
|
|
1530
|
-
DataItems: /* @__PURE__ */ __name((_) => de_AttackStatisticsDataList(_, context), "DataItems"),
|
|
1531
|
-
TimeRange: /* @__PURE__ */ __name((_) => de_TimeRange(_, context), "TimeRange")
|
|
1532
|
-
});
|
|
1533
|
-
}, "de_DescribeAttackStatisticsResponse");
|
|
1534
|
-
var de_DescribeSubscriptionResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1535
|
-
return (0, import_smithy_client.take)(output, {
|
|
1536
|
-
Subscription: /* @__PURE__ */ __name((_) => de_Subscription(_, context), "Subscription")
|
|
1537
|
-
});
|
|
1538
|
-
}, "de_DescribeSubscriptionResponse");
|
|
1539
|
-
var de_ListAttacksResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1540
|
-
return (0, import_smithy_client.take)(output, {
|
|
1541
|
-
AttackSummaries: /* @__PURE__ */ __name((_) => de_AttackSummaries(_, context), "AttackSummaries"),
|
|
1542
|
-
NextToken: import_smithy_client.expectString
|
|
1543
|
-
});
|
|
1544
|
-
}, "de_ListAttacksResponse");
|
|
1545
|
-
var de_SubResourceSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1546
|
-
return (0, import_smithy_client.take)(output, {
|
|
1547
|
-
AttackVectors: /* @__PURE__ */ __name((_) => de_SummarizedAttackVectorList(_, context), "AttackVectors"),
|
|
1548
|
-
Counters: /* @__PURE__ */ __name((_) => de_SummarizedCounterList(_, context), "Counters"),
|
|
1549
|
-
Id: import_smithy_client.expectString,
|
|
1550
|
-
Type: import_smithy_client.expectString
|
|
1551
|
-
});
|
|
1552
|
-
}, "de_SubResourceSummary");
|
|
1553
|
-
var de_SubResourceSummaryList = /* @__PURE__ */ __name((output, context) => {
|
|
1554
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1555
|
-
return de_SubResourceSummary(entry, context);
|
|
1556
|
-
});
|
|
1557
|
-
return retVal;
|
|
1558
|
-
}, "de_SubResourceSummaryList");
|
|
1559
|
-
var de_Subscription = /* @__PURE__ */ __name((output, context) => {
|
|
1560
|
-
return (0, import_smithy_client.take)(output, {
|
|
1561
|
-
AutoRenew: import_smithy_client.expectString,
|
|
1562
|
-
EndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "EndTime"),
|
|
1563
|
-
Limits: import_smithy_client._json,
|
|
1564
|
-
ProactiveEngagementStatus: import_smithy_client.expectString,
|
|
1565
|
-
StartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartTime"),
|
|
1566
|
-
SubscriptionArn: import_smithy_client.expectString,
|
|
1567
|
-
SubscriptionLimits: import_smithy_client._json,
|
|
1568
|
-
TimeCommitmentInSeconds: import_smithy_client.expectLong
|
|
1569
|
-
});
|
|
1570
|
-
}, "de_Subscription");
|
|
1571
|
-
var de_SummarizedAttackVector = /* @__PURE__ */ __name((output, context) => {
|
|
1572
|
-
return (0, import_smithy_client.take)(output, {
|
|
1573
|
-
VectorCounters: /* @__PURE__ */ __name((_) => de_SummarizedCounterList(_, context), "VectorCounters"),
|
|
1574
|
-
VectorType: import_smithy_client.expectString
|
|
1575
|
-
});
|
|
1576
|
-
}, "de_SummarizedAttackVector");
|
|
1577
|
-
var de_SummarizedAttackVectorList = /* @__PURE__ */ __name((output, context) => {
|
|
1578
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1579
|
-
return de_SummarizedAttackVector(entry, context);
|
|
1580
|
-
});
|
|
1581
|
-
return retVal;
|
|
1582
|
-
}, "de_SummarizedAttackVectorList");
|
|
1583
|
-
var de_SummarizedCounter = /* @__PURE__ */ __name((output, context) => {
|
|
1584
|
-
return (0, import_smithy_client.take)(output, {
|
|
1585
|
-
Average: import_smithy_client.limitedParseDouble,
|
|
1586
|
-
Max: import_smithy_client.limitedParseDouble,
|
|
1587
|
-
N: import_smithy_client.expectInt32,
|
|
1588
|
-
Name: import_smithy_client.expectString,
|
|
1589
|
-
Sum: import_smithy_client.limitedParseDouble,
|
|
1590
|
-
Unit: import_smithy_client.expectString
|
|
1591
|
-
});
|
|
1592
|
-
}, "de_SummarizedCounter");
|
|
1593
|
-
var de_SummarizedCounterList = /* @__PURE__ */ __name((output, context) => {
|
|
1594
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1595
|
-
return de_SummarizedCounter(entry, context);
|
|
1596
|
-
});
|
|
1597
|
-
return retVal;
|
|
1598
|
-
}, "de_SummarizedCounterList");
|
|
1599
|
-
var de_TimeRange = /* @__PURE__ */ __name((output, context) => {
|
|
1600
|
-
return (0, import_smithy_client.take)(output, {
|
|
1601
|
-
FromInclusive: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "FromInclusive"),
|
|
1602
|
-
ToExclusive: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ToExclusive")
|
|
1603
|
-
});
|
|
1604
|
-
}, "de_TimeRange");
|
|
1605
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1606
|
-
httpStatusCode: output.statusCode,
|
|
1607
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1608
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1609
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
1610
|
-
}), "deserializeMetadata");
|
|
1611
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(ShieldServiceException);
|
|
1612
|
-
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
1613
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1614
|
-
const contents = {
|
|
1615
|
-
protocol,
|
|
1616
|
-
hostname,
|
|
1617
|
-
port,
|
|
1618
|
-
method: "POST",
|
|
1619
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1620
|
-
headers
|
|
1621
|
-
};
|
|
1622
|
-
if (resolvedHostname !== void 0) {
|
|
1623
|
-
contents.hostname = resolvedHostname;
|
|
1624
|
-
}
|
|
1625
|
-
if (body !== void 0) {
|
|
1626
|
-
contents.body = body;
|
|
1627
|
-
}
|
|
1628
|
-
return new import_protocol_http.HttpRequest(contents);
|
|
1629
|
-
}, "buildHttpRpcRequest");
|
|
1630
|
-
function sharedHeaders(operation) {
|
|
1631
|
-
return {
|
|
1632
|
-
"content-type": "application/x-amz-json-1.1",
|
|
1633
|
-
"x-amz-target": `AWSShield_20160616.${operation}`
|
|
1634
|
-
};
|
|
1635
|
-
}
|
|
1636
|
-
__name(sharedHeaders, "sharedHeaders");
|
|
1637
|
-
|
|
1638
|
-
// src/commands/AssociateDRTLogBucketCommand.ts
|
|
1639
|
-
var AssociateDRTLogBucketCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1640
|
-
return [
|
|
1641
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1642
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1643
|
-
];
|
|
1644
|
-
}).s("AWSShield_20160616", "AssociateDRTLogBucket", {}).n("ShieldClient", "AssociateDRTLogBucketCommand").f(void 0, void 0).ser(se_AssociateDRTLogBucketCommand).de(de_AssociateDRTLogBucketCommand).build() {
|
|
1645
|
-
static {
|
|
1646
|
-
__name(this, "AssociateDRTLogBucketCommand");
|
|
1647
|
-
}
|
|
1648
|
-
};
|
|
1649
|
-
|
|
1650
|
-
// src/commands/AssociateDRTRoleCommand.ts
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
var AssociateDRTRoleCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1655
|
-
return [
|
|
1656
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1657
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1658
|
-
];
|
|
1659
|
-
}).s("AWSShield_20160616", "AssociateDRTRole", {}).n("ShieldClient", "AssociateDRTRoleCommand").f(void 0, void 0).ser(se_AssociateDRTRoleCommand).de(de_AssociateDRTRoleCommand).build() {
|
|
1660
|
-
static {
|
|
1661
|
-
__name(this, "AssociateDRTRoleCommand");
|
|
1662
|
-
}
|
|
1663
|
-
};
|
|
1664
|
-
|
|
1665
|
-
// src/commands/AssociateHealthCheckCommand.ts
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
var AssociateHealthCheckCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1670
|
-
return [
|
|
1671
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1672
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1673
|
-
];
|
|
1674
|
-
}).s("AWSShield_20160616", "AssociateHealthCheck", {}).n("ShieldClient", "AssociateHealthCheckCommand").f(void 0, void 0).ser(se_AssociateHealthCheckCommand).de(de_AssociateHealthCheckCommand).build() {
|
|
1675
|
-
static {
|
|
1676
|
-
__name(this, "AssociateHealthCheckCommand");
|
|
1677
|
-
}
|
|
1678
|
-
};
|
|
1679
|
-
|
|
1680
|
-
// src/commands/AssociateProactiveEngagementDetailsCommand.ts
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
var AssociateProactiveEngagementDetailsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1685
|
-
return [
|
|
1686
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1687
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1688
|
-
];
|
|
1689
|
-
}).s("AWSShield_20160616", "AssociateProactiveEngagementDetails", {}).n("ShieldClient", "AssociateProactiveEngagementDetailsCommand").f(void 0, void 0).ser(se_AssociateProactiveEngagementDetailsCommand).de(de_AssociateProactiveEngagementDetailsCommand).build() {
|
|
1690
|
-
static {
|
|
1691
|
-
__name(this, "AssociateProactiveEngagementDetailsCommand");
|
|
1692
|
-
}
|
|
1693
|
-
};
|
|
1694
|
-
|
|
1695
|
-
// src/commands/CreateProtectionCommand.ts
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
var CreateProtectionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1700
|
-
return [
|
|
1701
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1702
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1703
|
-
];
|
|
1704
|
-
}).s("AWSShield_20160616", "CreateProtection", {}).n("ShieldClient", "CreateProtectionCommand").f(void 0, void 0).ser(se_CreateProtectionCommand).de(de_CreateProtectionCommand).build() {
|
|
1705
|
-
static {
|
|
1706
|
-
__name(this, "CreateProtectionCommand");
|
|
1707
|
-
}
|
|
1708
|
-
};
|
|
1709
|
-
|
|
1710
|
-
// src/commands/CreateProtectionGroupCommand.ts
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
var CreateProtectionGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1715
|
-
return [
|
|
1716
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1717
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1718
|
-
];
|
|
1719
|
-
}).s("AWSShield_20160616", "CreateProtectionGroup", {}).n("ShieldClient", "CreateProtectionGroupCommand").f(void 0, void 0).ser(se_CreateProtectionGroupCommand).de(de_CreateProtectionGroupCommand).build() {
|
|
1720
|
-
static {
|
|
1721
|
-
__name(this, "CreateProtectionGroupCommand");
|
|
1722
|
-
}
|
|
1723
|
-
};
|
|
1724
|
-
|
|
1725
|
-
// src/commands/CreateSubscriptionCommand.ts
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
var CreateSubscriptionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1730
|
-
return [
|
|
1731
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1732
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1733
|
-
];
|
|
1734
|
-
}).s("AWSShield_20160616", "CreateSubscription", {}).n("ShieldClient", "CreateSubscriptionCommand").f(void 0, void 0).ser(se_CreateSubscriptionCommand).de(de_CreateSubscriptionCommand).build() {
|
|
1735
|
-
static {
|
|
1736
|
-
__name(this, "CreateSubscriptionCommand");
|
|
1737
|
-
}
|
|
1738
|
-
};
|
|
1739
|
-
|
|
1740
|
-
// src/commands/DeleteProtectionCommand.ts
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
var DeleteProtectionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1745
|
-
return [
|
|
1746
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1747
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1748
|
-
];
|
|
1749
|
-
}).s("AWSShield_20160616", "DeleteProtection", {}).n("ShieldClient", "DeleteProtectionCommand").f(void 0, void 0).ser(se_DeleteProtectionCommand).de(de_DeleteProtectionCommand).build() {
|
|
1750
|
-
static {
|
|
1751
|
-
__name(this, "DeleteProtectionCommand");
|
|
1752
|
-
}
|
|
1753
|
-
};
|
|
1754
|
-
|
|
1755
|
-
// src/commands/DeleteProtectionGroupCommand.ts
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
var DeleteProtectionGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1760
|
-
return [
|
|
1761
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1762
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1763
|
-
];
|
|
1764
|
-
}).s("AWSShield_20160616", "DeleteProtectionGroup", {}).n("ShieldClient", "DeleteProtectionGroupCommand").f(void 0, void 0).ser(se_DeleteProtectionGroupCommand).de(de_DeleteProtectionGroupCommand).build() {
|
|
1765
|
-
static {
|
|
1766
|
-
__name(this, "DeleteProtectionGroupCommand");
|
|
1767
|
-
}
|
|
1768
|
-
};
|
|
1769
|
-
|
|
1770
|
-
// src/commands/DeleteSubscriptionCommand.ts
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
var DeleteSubscriptionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1775
|
-
return [
|
|
1776
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1777
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1778
|
-
];
|
|
1779
|
-
}).s("AWSShield_20160616", "DeleteSubscription", {}).n("ShieldClient", "DeleteSubscriptionCommand").f(void 0, void 0).ser(se_DeleteSubscriptionCommand).de(de_DeleteSubscriptionCommand).build() {
|
|
1780
|
-
static {
|
|
1781
|
-
__name(this, "DeleteSubscriptionCommand");
|
|
1782
|
-
}
|
|
1783
1216
|
};
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
var DescribeAttackCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1790
|
-
return [
|
|
1791
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1792
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1793
|
-
];
|
|
1794
|
-
}).s("AWSShield_20160616", "DescribeAttack", {}).n("ShieldClient", "DescribeAttackCommand").f(void 0, void 0).ser(se_DescribeAttackCommand).de(de_DescribeAttackCommand).build() {
|
|
1795
|
-
static {
|
|
1796
|
-
__name(this, "DescribeAttackCommand");
|
|
1797
|
-
}
|
|
1217
|
+
const se_TimeRange = (input, context) => {
|
|
1218
|
+
return smithyClient.take(input, {
|
|
1219
|
+
FromInclusive: (_) => _.getTime() / 1_000,
|
|
1220
|
+
ToExclusive: (_) => _.getTime() / 1_000,
|
|
1221
|
+
});
|
|
1798
1222
|
};
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
})
|
|
1810
|
-
static {
|
|
1811
|
-
__name(this, "DescribeAttackStatisticsCommand");
|
|
1812
|
-
}
|
|
1223
|
+
const de_AttackDetail = (output, context) => {
|
|
1224
|
+
return smithyClient.take(output, {
|
|
1225
|
+
AttackCounters: (_) => de_SummarizedCounterList(_),
|
|
1226
|
+
AttackId: smithyClient.expectString,
|
|
1227
|
+
AttackProperties: smithyClient._json,
|
|
1228
|
+
EndTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1229
|
+
Mitigations: smithyClient._json,
|
|
1230
|
+
ResourceArn: smithyClient.expectString,
|
|
1231
|
+
StartTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1232
|
+
SubResources: (_) => de_SubResourceSummaryList(_),
|
|
1233
|
+
});
|
|
1813
1234
|
};
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
var DescribeDRTAccessCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1820
|
-
return [
|
|
1821
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1822
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1823
|
-
];
|
|
1824
|
-
}).s("AWSShield_20160616", "DescribeDRTAccess", {}).n("ShieldClient", "DescribeDRTAccessCommand").f(void 0, void 0).ser(se_DescribeDRTAccessCommand).de(de_DescribeDRTAccessCommand).build() {
|
|
1825
|
-
static {
|
|
1826
|
-
__name(this, "DescribeDRTAccessCommand");
|
|
1827
|
-
}
|
|
1235
|
+
const de_AttackStatisticsDataItem = (output, context) => {
|
|
1236
|
+
return smithyClient.take(output, {
|
|
1237
|
+
AttackCount: smithyClient.expectLong,
|
|
1238
|
+
AttackVolume: (_) => de_AttackVolume(_),
|
|
1239
|
+
});
|
|
1828
1240
|
};
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1837
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1838
|
-
];
|
|
1839
|
-
}).s("AWSShield_20160616", "DescribeEmergencyContactSettings", {}).n("ShieldClient", "DescribeEmergencyContactSettingsCommand").f(void 0, void 0).ser(se_DescribeEmergencyContactSettingsCommand).de(de_DescribeEmergencyContactSettingsCommand).build() {
|
|
1840
|
-
static {
|
|
1841
|
-
__name(this, "DescribeEmergencyContactSettingsCommand");
|
|
1842
|
-
}
|
|
1241
|
+
const de_AttackStatisticsDataList = (output, context) => {
|
|
1242
|
+
const retVal = (output || [])
|
|
1243
|
+
.filter((e) => e != null)
|
|
1244
|
+
.map((entry) => {
|
|
1245
|
+
return de_AttackStatisticsDataItem(entry);
|
|
1246
|
+
});
|
|
1247
|
+
return retVal;
|
|
1843
1248
|
};
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1249
|
+
const de_AttackSummaries = (output, context) => {
|
|
1250
|
+
const retVal = (output || [])
|
|
1251
|
+
.filter((e) => e != null)
|
|
1252
|
+
.map((entry) => {
|
|
1253
|
+
return de_AttackSummary(entry);
|
|
1254
|
+
});
|
|
1255
|
+
return retVal;
|
|
1256
|
+
};
|
|
1257
|
+
const de_AttackSummary = (output, context) => {
|
|
1258
|
+
return smithyClient.take(output, {
|
|
1259
|
+
AttackId: smithyClient.expectString,
|
|
1260
|
+
AttackVectors: smithyClient._json,
|
|
1261
|
+
EndTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1262
|
+
ResourceArn: smithyClient.expectString,
|
|
1263
|
+
StartTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1264
|
+
});
|
|
1858
1265
|
};
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
return [
|
|
1866
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1867
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1868
|
-
];
|
|
1869
|
-
}).s("AWSShield_20160616", "DescribeProtectionGroup", {}).n("ShieldClient", "DescribeProtectionGroupCommand").f(void 0, void 0).ser(se_DescribeProtectionGroupCommand).de(de_DescribeProtectionGroupCommand).build() {
|
|
1870
|
-
static {
|
|
1871
|
-
__name(this, "DescribeProtectionGroupCommand");
|
|
1872
|
-
}
|
|
1266
|
+
const de_AttackVolume = (output, context) => {
|
|
1267
|
+
return smithyClient.take(output, {
|
|
1268
|
+
BitsPerSecond: (_) => de_AttackVolumeStatistics(_),
|
|
1269
|
+
PacketsPerSecond: (_) => de_AttackVolumeStatistics(_),
|
|
1270
|
+
RequestsPerSecond: (_) => de_AttackVolumeStatistics(_),
|
|
1271
|
+
});
|
|
1873
1272
|
};
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
var DescribeSubscriptionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1880
|
-
return [
|
|
1881
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1882
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1883
|
-
];
|
|
1884
|
-
}).s("AWSShield_20160616", "DescribeSubscription", {}).n("ShieldClient", "DescribeSubscriptionCommand").f(void 0, void 0).ser(se_DescribeSubscriptionCommand).de(de_DescribeSubscriptionCommand).build() {
|
|
1885
|
-
static {
|
|
1886
|
-
__name(this, "DescribeSubscriptionCommand");
|
|
1887
|
-
}
|
|
1273
|
+
const de_AttackVolumeStatistics = (output, context) => {
|
|
1274
|
+
return smithyClient.take(output, {
|
|
1275
|
+
Max: smithyClient.limitedParseDouble,
|
|
1276
|
+
});
|
|
1888
1277
|
};
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
var DisableApplicationLayerAutomaticResponseCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1895
|
-
return [
|
|
1896
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1897
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1898
|
-
];
|
|
1899
|
-
}).s("AWSShield_20160616", "DisableApplicationLayerAutomaticResponse", {}).n("ShieldClient", "DisableApplicationLayerAutomaticResponseCommand").f(void 0, void 0).ser(se_DisableApplicationLayerAutomaticResponseCommand).de(de_DisableApplicationLayerAutomaticResponseCommand).build() {
|
|
1900
|
-
static {
|
|
1901
|
-
__name(this, "DisableApplicationLayerAutomaticResponseCommand");
|
|
1902
|
-
}
|
|
1278
|
+
const de_DescribeAttackResponse = (output, context) => {
|
|
1279
|
+
return smithyClient.take(output, {
|
|
1280
|
+
Attack: (_) => de_AttackDetail(_),
|
|
1281
|
+
});
|
|
1903
1282
|
};
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
var DisableProactiveEngagementCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1910
|
-
return [
|
|
1911
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1912
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1913
|
-
];
|
|
1914
|
-
}).s("AWSShield_20160616", "DisableProactiveEngagement", {}).n("ShieldClient", "DisableProactiveEngagementCommand").f(void 0, void 0).ser(se_DisableProactiveEngagementCommand).de(de_DisableProactiveEngagementCommand).build() {
|
|
1915
|
-
static {
|
|
1916
|
-
__name(this, "DisableProactiveEngagementCommand");
|
|
1917
|
-
}
|
|
1283
|
+
const de_DescribeAttackStatisticsResponse = (output, context) => {
|
|
1284
|
+
return smithyClient.take(output, {
|
|
1285
|
+
DataItems: (_) => de_AttackStatisticsDataList(_),
|
|
1286
|
+
TimeRange: (_) => de_TimeRange(_),
|
|
1287
|
+
});
|
|
1918
1288
|
};
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
var DisassociateDRTLogBucketCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1925
|
-
return [
|
|
1926
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1927
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1928
|
-
];
|
|
1929
|
-
}).s("AWSShield_20160616", "DisassociateDRTLogBucket", {}).n("ShieldClient", "DisassociateDRTLogBucketCommand").f(void 0, void 0).ser(se_DisassociateDRTLogBucketCommand).de(de_DisassociateDRTLogBucketCommand).build() {
|
|
1930
|
-
static {
|
|
1931
|
-
__name(this, "DisassociateDRTLogBucketCommand");
|
|
1932
|
-
}
|
|
1289
|
+
const de_DescribeSubscriptionResponse = (output, context) => {
|
|
1290
|
+
return smithyClient.take(output, {
|
|
1291
|
+
Subscription: (_) => de_Subscription(_),
|
|
1292
|
+
});
|
|
1933
1293
|
};
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
var DisassociateDRTRoleCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1940
|
-
return [
|
|
1941
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1942
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1943
|
-
];
|
|
1944
|
-
}).s("AWSShield_20160616", "DisassociateDRTRole", {}).n("ShieldClient", "DisassociateDRTRoleCommand").f(void 0, void 0).ser(se_DisassociateDRTRoleCommand).de(de_DisassociateDRTRoleCommand).build() {
|
|
1945
|
-
static {
|
|
1946
|
-
__name(this, "DisassociateDRTRoleCommand");
|
|
1947
|
-
}
|
|
1294
|
+
const de_ListAttacksResponse = (output, context) => {
|
|
1295
|
+
return smithyClient.take(output, {
|
|
1296
|
+
AttackSummaries: (_) => de_AttackSummaries(_),
|
|
1297
|
+
NextToken: smithyClient.expectString,
|
|
1298
|
+
});
|
|
1948
1299
|
};
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1957
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1958
|
-
];
|
|
1959
|
-
}).s("AWSShield_20160616", "DisassociateHealthCheck", {}).n("ShieldClient", "DisassociateHealthCheckCommand").f(void 0, void 0).ser(se_DisassociateHealthCheckCommand).de(de_DisassociateHealthCheckCommand).build() {
|
|
1960
|
-
static {
|
|
1961
|
-
__name(this, "DisassociateHealthCheckCommand");
|
|
1962
|
-
}
|
|
1300
|
+
const de_SubResourceSummary = (output, context) => {
|
|
1301
|
+
return smithyClient.take(output, {
|
|
1302
|
+
AttackVectors: (_) => de_SummarizedAttackVectorList(_),
|
|
1303
|
+
Counters: (_) => de_SummarizedCounterList(_),
|
|
1304
|
+
Id: smithyClient.expectString,
|
|
1305
|
+
Type: smithyClient.expectString,
|
|
1306
|
+
});
|
|
1963
1307
|
};
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1308
|
+
const de_SubResourceSummaryList = (output, context) => {
|
|
1309
|
+
const retVal = (output || [])
|
|
1310
|
+
.filter((e) => e != null)
|
|
1311
|
+
.map((entry) => {
|
|
1312
|
+
return de_SubResourceSummary(entry);
|
|
1313
|
+
});
|
|
1314
|
+
return retVal;
|
|
1315
|
+
};
|
|
1316
|
+
const de_Subscription = (output, context) => {
|
|
1317
|
+
return smithyClient.take(output, {
|
|
1318
|
+
AutoRenew: smithyClient.expectString,
|
|
1319
|
+
EndTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1320
|
+
Limits: smithyClient._json,
|
|
1321
|
+
ProactiveEngagementStatus: smithyClient.expectString,
|
|
1322
|
+
StartTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1323
|
+
SubscriptionArn: smithyClient.expectString,
|
|
1324
|
+
SubscriptionLimits: smithyClient._json,
|
|
1325
|
+
TimeCommitmentInSeconds: smithyClient.expectLong,
|
|
1326
|
+
});
|
|
1978
1327
|
};
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
var EnableProactiveEngagementCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1985
|
-
return [
|
|
1986
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1987
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1988
|
-
];
|
|
1989
|
-
}).s("AWSShield_20160616", "EnableProactiveEngagement", {}).n("ShieldClient", "EnableProactiveEngagementCommand").f(void 0, void 0).ser(se_EnableProactiveEngagementCommand).de(de_EnableProactiveEngagementCommand).build() {
|
|
1990
|
-
static {
|
|
1991
|
-
__name(this, "EnableProactiveEngagementCommand");
|
|
1992
|
-
}
|
|
1328
|
+
const de_SummarizedAttackVector = (output, context) => {
|
|
1329
|
+
return smithyClient.take(output, {
|
|
1330
|
+
VectorCounters: (_) => de_SummarizedCounterList(_),
|
|
1331
|
+
VectorType: smithyClient.expectString,
|
|
1332
|
+
});
|
|
1993
1333
|
};
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
1334
|
+
const de_SummarizedAttackVectorList = (output, context) => {
|
|
1335
|
+
const retVal = (output || [])
|
|
1336
|
+
.filter((e) => e != null)
|
|
1337
|
+
.map((entry) => {
|
|
1338
|
+
return de_SummarizedAttackVector(entry);
|
|
1339
|
+
});
|
|
1340
|
+
return retVal;
|
|
1341
|
+
};
|
|
1342
|
+
const de_SummarizedCounter = (output, context) => {
|
|
1343
|
+
return smithyClient.take(output, {
|
|
1344
|
+
Average: smithyClient.limitedParseDouble,
|
|
1345
|
+
Max: smithyClient.limitedParseDouble,
|
|
1346
|
+
N: smithyClient.expectInt32,
|
|
1347
|
+
Name: smithyClient.expectString,
|
|
1348
|
+
Sum: smithyClient.limitedParseDouble,
|
|
1349
|
+
Unit: smithyClient.expectString,
|
|
1350
|
+
});
|
|
2008
1351
|
};
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2017
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2018
|
-
];
|
|
2019
|
-
}).s("AWSShield_20160616", "ListAttacks", {}).n("ShieldClient", "ListAttacksCommand").f(void 0, void 0).ser(se_ListAttacksCommand).de(de_ListAttacksCommand).build() {
|
|
2020
|
-
static {
|
|
2021
|
-
__name(this, "ListAttacksCommand");
|
|
2022
|
-
}
|
|
1352
|
+
const de_SummarizedCounterList = (output, context) => {
|
|
1353
|
+
const retVal = (output || [])
|
|
1354
|
+
.filter((e) => e != null)
|
|
1355
|
+
.map((entry) => {
|
|
1356
|
+
return de_SummarizedCounter(entry);
|
|
1357
|
+
});
|
|
1358
|
+
return retVal;
|
|
2023
1359
|
};
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
var ListProtectionGroupsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
2030
|
-
return [
|
|
2031
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2032
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2033
|
-
];
|
|
2034
|
-
}).s("AWSShield_20160616", "ListProtectionGroups", {}).n("ShieldClient", "ListProtectionGroupsCommand").f(void 0, void 0).ser(se_ListProtectionGroupsCommand).de(de_ListProtectionGroupsCommand).build() {
|
|
2035
|
-
static {
|
|
2036
|
-
__name(this, "ListProtectionGroupsCommand");
|
|
2037
|
-
}
|
|
1360
|
+
const de_TimeRange = (output, context) => {
|
|
1361
|
+
return smithyClient.take(output, {
|
|
1362
|
+
FromInclusive: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1363
|
+
ToExclusive: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1364
|
+
});
|
|
2038
1365
|
};
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
1366
|
+
const deserializeMetadata = (output) => ({
|
|
1367
|
+
httpStatusCode: output.statusCode,
|
|
1368
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1369
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1370
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1371
|
+
});
|
|
1372
|
+
const throwDefaultError = smithyClient.withBaseException(ShieldServiceException);
|
|
1373
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1374
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1375
|
+
const contents = {
|
|
1376
|
+
protocol,
|
|
1377
|
+
hostname,
|
|
1378
|
+
port,
|
|
1379
|
+
method: "POST",
|
|
1380
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1381
|
+
headers,
|
|
1382
|
+
};
|
|
1383
|
+
if (body !== undefined) {
|
|
1384
|
+
contents.body = body;
|
|
1385
|
+
}
|
|
1386
|
+
return new protocolHttp.HttpRequest(contents);
|
|
2053
1387
|
};
|
|
1388
|
+
function sharedHeaders(operation) {
|
|
1389
|
+
return {
|
|
1390
|
+
"content-type": "application/x-amz-json-1.1",
|
|
1391
|
+
"x-amz-target": `AWSShield_20160616.${operation}`,
|
|
1392
|
+
};
|
|
1393
|
+
}
|
|
2054
1394
|
|
|
2055
|
-
|
|
1395
|
+
class AssociateDRTLogBucketCommand extends smithyClient.Command
|
|
1396
|
+
.classBuilder()
|
|
1397
|
+
.ep(commonParams)
|
|
1398
|
+
.m(function (Command, cs, config, o) {
|
|
1399
|
+
return [
|
|
1400
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1401
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1402
|
+
];
|
|
1403
|
+
})
|
|
1404
|
+
.s("AWSShield_20160616", "AssociateDRTLogBucket", {})
|
|
1405
|
+
.n("ShieldClient", "AssociateDRTLogBucketCommand")
|
|
1406
|
+
.f(void 0, void 0)
|
|
1407
|
+
.ser(se_AssociateDRTLogBucketCommand)
|
|
1408
|
+
.de(de_AssociateDRTLogBucketCommand)
|
|
1409
|
+
.build() {
|
|
1410
|
+
}
|
|
2056
1411
|
|
|
1412
|
+
class AssociateDRTRoleCommand extends smithyClient.Command
|
|
1413
|
+
.classBuilder()
|
|
1414
|
+
.ep(commonParams)
|
|
1415
|
+
.m(function (Command, cs, config, o) {
|
|
1416
|
+
return [
|
|
1417
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1418
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1419
|
+
];
|
|
1420
|
+
})
|
|
1421
|
+
.s("AWSShield_20160616", "AssociateDRTRole", {})
|
|
1422
|
+
.n("ShieldClient", "AssociateDRTRoleCommand")
|
|
1423
|
+
.f(void 0, void 0)
|
|
1424
|
+
.ser(se_AssociateDRTRoleCommand)
|
|
1425
|
+
.de(de_AssociateDRTRoleCommand)
|
|
1426
|
+
.build() {
|
|
1427
|
+
}
|
|
2057
1428
|
|
|
1429
|
+
class AssociateHealthCheckCommand extends smithyClient.Command
|
|
1430
|
+
.classBuilder()
|
|
1431
|
+
.ep(commonParams)
|
|
1432
|
+
.m(function (Command, cs, config, o) {
|
|
1433
|
+
return [
|
|
1434
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1435
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1436
|
+
];
|
|
1437
|
+
})
|
|
1438
|
+
.s("AWSShield_20160616", "AssociateHealthCheck", {})
|
|
1439
|
+
.n("ShieldClient", "AssociateHealthCheckCommand")
|
|
1440
|
+
.f(void 0, void 0)
|
|
1441
|
+
.ser(se_AssociateHealthCheckCommand)
|
|
1442
|
+
.de(de_AssociateHealthCheckCommand)
|
|
1443
|
+
.build() {
|
|
1444
|
+
}
|
|
2058
1445
|
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
(
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
}
|
|
1446
|
+
class AssociateProactiveEngagementDetailsCommand extends smithyClient.Command
|
|
1447
|
+
.classBuilder()
|
|
1448
|
+
.ep(commonParams)
|
|
1449
|
+
.m(function (Command, cs, config, o) {
|
|
1450
|
+
return [
|
|
1451
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1452
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1453
|
+
];
|
|
1454
|
+
})
|
|
1455
|
+
.s("AWSShield_20160616", "AssociateProactiveEngagementDetails", {})
|
|
1456
|
+
.n("ShieldClient", "AssociateProactiveEngagementDetailsCommand")
|
|
1457
|
+
.f(void 0, void 0)
|
|
1458
|
+
.ser(se_AssociateProactiveEngagementDetailsCommand)
|
|
1459
|
+
.de(de_AssociateProactiveEngagementDetailsCommand)
|
|
1460
|
+
.build() {
|
|
1461
|
+
}
|
|
2069
1462
|
|
|
2070
|
-
|
|
1463
|
+
class CreateProtectionCommand extends smithyClient.Command
|
|
1464
|
+
.classBuilder()
|
|
1465
|
+
.ep(commonParams)
|
|
1466
|
+
.m(function (Command, cs, config, o) {
|
|
1467
|
+
return [
|
|
1468
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1469
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1470
|
+
];
|
|
1471
|
+
})
|
|
1472
|
+
.s("AWSShield_20160616", "CreateProtection", {})
|
|
1473
|
+
.n("ShieldClient", "CreateProtectionCommand")
|
|
1474
|
+
.f(void 0, void 0)
|
|
1475
|
+
.ser(se_CreateProtectionCommand)
|
|
1476
|
+
.de(de_CreateProtectionCommand)
|
|
1477
|
+
.build() {
|
|
1478
|
+
}
|
|
2071
1479
|
|
|
1480
|
+
class CreateProtectionGroupCommand extends smithyClient.Command
|
|
1481
|
+
.classBuilder()
|
|
1482
|
+
.ep(commonParams)
|
|
1483
|
+
.m(function (Command, cs, config, o) {
|
|
1484
|
+
return [
|
|
1485
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1486
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1487
|
+
];
|
|
1488
|
+
})
|
|
1489
|
+
.s("AWSShield_20160616", "CreateProtectionGroup", {})
|
|
1490
|
+
.n("ShieldClient", "CreateProtectionGroupCommand")
|
|
1491
|
+
.f(void 0, void 0)
|
|
1492
|
+
.ser(se_CreateProtectionGroupCommand)
|
|
1493
|
+
.de(de_CreateProtectionGroupCommand)
|
|
1494
|
+
.build() {
|
|
1495
|
+
}
|
|
2072
1496
|
|
|
1497
|
+
class CreateSubscriptionCommand extends smithyClient.Command
|
|
1498
|
+
.classBuilder()
|
|
1499
|
+
.ep(commonParams)
|
|
1500
|
+
.m(function (Command, cs, config, o) {
|
|
1501
|
+
return [
|
|
1502
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1503
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1504
|
+
];
|
|
1505
|
+
})
|
|
1506
|
+
.s("AWSShield_20160616", "CreateSubscription", {})
|
|
1507
|
+
.n("ShieldClient", "CreateSubscriptionCommand")
|
|
1508
|
+
.f(void 0, void 0)
|
|
1509
|
+
.ser(se_CreateSubscriptionCommand)
|
|
1510
|
+
.de(de_CreateSubscriptionCommand)
|
|
1511
|
+
.build() {
|
|
1512
|
+
}
|
|
2073
1513
|
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
(
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
}
|
|
1514
|
+
class DeleteProtectionCommand extends smithyClient.Command
|
|
1515
|
+
.classBuilder()
|
|
1516
|
+
.ep(commonParams)
|
|
1517
|
+
.m(function (Command, cs, config, o) {
|
|
1518
|
+
return [
|
|
1519
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1520
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1521
|
+
];
|
|
1522
|
+
})
|
|
1523
|
+
.s("AWSShield_20160616", "DeleteProtection", {})
|
|
1524
|
+
.n("ShieldClient", "DeleteProtectionCommand")
|
|
1525
|
+
.f(void 0, void 0)
|
|
1526
|
+
.ser(se_DeleteProtectionCommand)
|
|
1527
|
+
.de(de_DeleteProtectionCommand)
|
|
1528
|
+
.build() {
|
|
1529
|
+
}
|
|
2084
1530
|
|
|
2085
|
-
|
|
1531
|
+
class DeleteProtectionGroupCommand extends smithyClient.Command
|
|
1532
|
+
.classBuilder()
|
|
1533
|
+
.ep(commonParams)
|
|
1534
|
+
.m(function (Command, cs, config, o) {
|
|
1535
|
+
return [
|
|
1536
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1537
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1538
|
+
];
|
|
1539
|
+
})
|
|
1540
|
+
.s("AWSShield_20160616", "DeleteProtectionGroup", {})
|
|
1541
|
+
.n("ShieldClient", "DeleteProtectionGroupCommand")
|
|
1542
|
+
.f(void 0, void 0)
|
|
1543
|
+
.ser(se_DeleteProtectionGroupCommand)
|
|
1544
|
+
.de(de_DeleteProtectionGroupCommand)
|
|
1545
|
+
.build() {
|
|
1546
|
+
}
|
|
2086
1547
|
|
|
1548
|
+
class DeleteSubscriptionCommand extends smithyClient.Command
|
|
1549
|
+
.classBuilder()
|
|
1550
|
+
.ep(commonParams)
|
|
1551
|
+
.m(function (Command, cs, config, o) {
|
|
1552
|
+
return [
|
|
1553
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1554
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1555
|
+
];
|
|
1556
|
+
})
|
|
1557
|
+
.s("AWSShield_20160616", "DeleteSubscription", {})
|
|
1558
|
+
.n("ShieldClient", "DeleteSubscriptionCommand")
|
|
1559
|
+
.f(void 0, void 0)
|
|
1560
|
+
.ser(se_DeleteSubscriptionCommand)
|
|
1561
|
+
.de(de_DeleteSubscriptionCommand)
|
|
1562
|
+
.build() {
|
|
1563
|
+
}
|
|
2087
1564
|
|
|
1565
|
+
class DescribeAttackCommand extends smithyClient.Command
|
|
1566
|
+
.classBuilder()
|
|
1567
|
+
.ep(commonParams)
|
|
1568
|
+
.m(function (Command, cs, config, o) {
|
|
1569
|
+
return [
|
|
1570
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1571
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1572
|
+
];
|
|
1573
|
+
})
|
|
1574
|
+
.s("AWSShield_20160616", "DescribeAttack", {})
|
|
1575
|
+
.n("ShieldClient", "DescribeAttackCommand")
|
|
1576
|
+
.f(void 0, void 0)
|
|
1577
|
+
.ser(se_DescribeAttackCommand)
|
|
1578
|
+
.de(de_DescribeAttackCommand)
|
|
1579
|
+
.build() {
|
|
1580
|
+
}
|
|
2088
1581
|
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
(
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
}
|
|
1582
|
+
class DescribeAttackStatisticsCommand extends smithyClient.Command
|
|
1583
|
+
.classBuilder()
|
|
1584
|
+
.ep(commonParams)
|
|
1585
|
+
.m(function (Command, cs, config, o) {
|
|
1586
|
+
return [
|
|
1587
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1588
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1589
|
+
];
|
|
1590
|
+
})
|
|
1591
|
+
.s("AWSShield_20160616", "DescribeAttackStatistics", {})
|
|
1592
|
+
.n("ShieldClient", "DescribeAttackStatisticsCommand")
|
|
1593
|
+
.f(void 0, void 0)
|
|
1594
|
+
.ser(se_DescribeAttackStatisticsCommand)
|
|
1595
|
+
.de(de_DescribeAttackStatisticsCommand)
|
|
1596
|
+
.build() {
|
|
1597
|
+
}
|
|
2099
1598
|
|
|
2100
|
-
|
|
1599
|
+
class DescribeDRTAccessCommand extends smithyClient.Command
|
|
1600
|
+
.classBuilder()
|
|
1601
|
+
.ep(commonParams)
|
|
1602
|
+
.m(function (Command, cs, config, o) {
|
|
1603
|
+
return [
|
|
1604
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1605
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1606
|
+
];
|
|
1607
|
+
})
|
|
1608
|
+
.s("AWSShield_20160616", "DescribeDRTAccess", {})
|
|
1609
|
+
.n("ShieldClient", "DescribeDRTAccessCommand")
|
|
1610
|
+
.f(void 0, void 0)
|
|
1611
|
+
.ser(se_DescribeDRTAccessCommand)
|
|
1612
|
+
.de(de_DescribeDRTAccessCommand)
|
|
1613
|
+
.build() {
|
|
1614
|
+
}
|
|
2101
1615
|
|
|
1616
|
+
class DescribeEmergencyContactSettingsCommand extends smithyClient.Command
|
|
1617
|
+
.classBuilder()
|
|
1618
|
+
.ep(commonParams)
|
|
1619
|
+
.m(function (Command, cs, config, o) {
|
|
1620
|
+
return [
|
|
1621
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1622
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1623
|
+
];
|
|
1624
|
+
})
|
|
1625
|
+
.s("AWSShield_20160616", "DescribeEmergencyContactSettings", {})
|
|
1626
|
+
.n("ShieldClient", "DescribeEmergencyContactSettingsCommand")
|
|
1627
|
+
.f(void 0, void 0)
|
|
1628
|
+
.ser(se_DescribeEmergencyContactSettingsCommand)
|
|
1629
|
+
.de(de_DescribeEmergencyContactSettingsCommand)
|
|
1630
|
+
.build() {
|
|
1631
|
+
}
|
|
2102
1632
|
|
|
1633
|
+
class DescribeProtectionCommand extends smithyClient.Command
|
|
1634
|
+
.classBuilder()
|
|
1635
|
+
.ep(commonParams)
|
|
1636
|
+
.m(function (Command, cs, config, o) {
|
|
1637
|
+
return [
|
|
1638
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1639
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1640
|
+
];
|
|
1641
|
+
})
|
|
1642
|
+
.s("AWSShield_20160616", "DescribeProtection", {})
|
|
1643
|
+
.n("ShieldClient", "DescribeProtectionCommand")
|
|
1644
|
+
.f(void 0, void 0)
|
|
1645
|
+
.ser(se_DescribeProtectionCommand)
|
|
1646
|
+
.de(de_DescribeProtectionCommand)
|
|
1647
|
+
.build() {
|
|
1648
|
+
}
|
|
2103
1649
|
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
(
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
}
|
|
1650
|
+
class DescribeProtectionGroupCommand extends smithyClient.Command
|
|
1651
|
+
.classBuilder()
|
|
1652
|
+
.ep(commonParams)
|
|
1653
|
+
.m(function (Command, cs, config, o) {
|
|
1654
|
+
return [
|
|
1655
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1656
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1657
|
+
];
|
|
1658
|
+
})
|
|
1659
|
+
.s("AWSShield_20160616", "DescribeProtectionGroup", {})
|
|
1660
|
+
.n("ShieldClient", "DescribeProtectionGroupCommand")
|
|
1661
|
+
.f(void 0, void 0)
|
|
1662
|
+
.ser(se_DescribeProtectionGroupCommand)
|
|
1663
|
+
.de(de_DescribeProtectionGroupCommand)
|
|
1664
|
+
.build() {
|
|
1665
|
+
}
|
|
2114
1666
|
|
|
2115
|
-
|
|
1667
|
+
class DescribeSubscriptionCommand extends smithyClient.Command
|
|
1668
|
+
.classBuilder()
|
|
1669
|
+
.ep(commonParams)
|
|
1670
|
+
.m(function (Command, cs, config, o) {
|
|
1671
|
+
return [
|
|
1672
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1673
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1674
|
+
];
|
|
1675
|
+
})
|
|
1676
|
+
.s("AWSShield_20160616", "DescribeSubscription", {})
|
|
1677
|
+
.n("ShieldClient", "DescribeSubscriptionCommand")
|
|
1678
|
+
.f(void 0, void 0)
|
|
1679
|
+
.ser(se_DescribeSubscriptionCommand)
|
|
1680
|
+
.de(de_DescribeSubscriptionCommand)
|
|
1681
|
+
.build() {
|
|
1682
|
+
}
|
|
2116
1683
|
|
|
1684
|
+
class DisableApplicationLayerAutomaticResponseCommand extends smithyClient.Command
|
|
1685
|
+
.classBuilder()
|
|
1686
|
+
.ep(commonParams)
|
|
1687
|
+
.m(function (Command, cs, config, o) {
|
|
1688
|
+
return [
|
|
1689
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1690
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1691
|
+
];
|
|
1692
|
+
})
|
|
1693
|
+
.s("AWSShield_20160616", "DisableApplicationLayerAutomaticResponse", {})
|
|
1694
|
+
.n("ShieldClient", "DisableApplicationLayerAutomaticResponseCommand")
|
|
1695
|
+
.f(void 0, void 0)
|
|
1696
|
+
.ser(se_DisableApplicationLayerAutomaticResponseCommand)
|
|
1697
|
+
.de(de_DisableApplicationLayerAutomaticResponseCommand)
|
|
1698
|
+
.build() {
|
|
1699
|
+
}
|
|
2117
1700
|
|
|
1701
|
+
class DisableProactiveEngagementCommand extends smithyClient.Command
|
|
1702
|
+
.classBuilder()
|
|
1703
|
+
.ep(commonParams)
|
|
1704
|
+
.m(function (Command, cs, config, o) {
|
|
1705
|
+
return [
|
|
1706
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1707
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1708
|
+
];
|
|
1709
|
+
})
|
|
1710
|
+
.s("AWSShield_20160616", "DisableProactiveEngagement", {})
|
|
1711
|
+
.n("ShieldClient", "DisableProactiveEngagementCommand")
|
|
1712
|
+
.f(void 0, void 0)
|
|
1713
|
+
.ser(se_DisableProactiveEngagementCommand)
|
|
1714
|
+
.de(de_DisableProactiveEngagementCommand)
|
|
1715
|
+
.build() {
|
|
1716
|
+
}
|
|
2118
1717
|
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
(
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
}
|
|
1718
|
+
class DisassociateDRTLogBucketCommand extends smithyClient.Command
|
|
1719
|
+
.classBuilder()
|
|
1720
|
+
.ep(commonParams)
|
|
1721
|
+
.m(function (Command, cs, config, o) {
|
|
1722
|
+
return [
|
|
1723
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1724
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1725
|
+
];
|
|
1726
|
+
})
|
|
1727
|
+
.s("AWSShield_20160616", "DisassociateDRTLogBucket", {})
|
|
1728
|
+
.n("ShieldClient", "DisassociateDRTLogBucketCommand")
|
|
1729
|
+
.f(void 0, void 0)
|
|
1730
|
+
.ser(se_DisassociateDRTLogBucketCommand)
|
|
1731
|
+
.de(de_DisassociateDRTLogBucketCommand)
|
|
1732
|
+
.build() {
|
|
1733
|
+
}
|
|
2129
1734
|
|
|
2130
|
-
|
|
1735
|
+
class DisassociateDRTRoleCommand extends smithyClient.Command
|
|
1736
|
+
.classBuilder()
|
|
1737
|
+
.ep(commonParams)
|
|
1738
|
+
.m(function (Command, cs, config, o) {
|
|
1739
|
+
return [
|
|
1740
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1741
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1742
|
+
];
|
|
1743
|
+
})
|
|
1744
|
+
.s("AWSShield_20160616", "DisassociateDRTRole", {})
|
|
1745
|
+
.n("ShieldClient", "DisassociateDRTRoleCommand")
|
|
1746
|
+
.f(void 0, void 0)
|
|
1747
|
+
.ser(se_DisassociateDRTRoleCommand)
|
|
1748
|
+
.de(de_DisassociateDRTRoleCommand)
|
|
1749
|
+
.build() {
|
|
1750
|
+
}
|
|
2131
1751
|
|
|
1752
|
+
class DisassociateHealthCheckCommand extends smithyClient.Command
|
|
1753
|
+
.classBuilder()
|
|
1754
|
+
.ep(commonParams)
|
|
1755
|
+
.m(function (Command, cs, config, o) {
|
|
1756
|
+
return [
|
|
1757
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1758
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1759
|
+
];
|
|
1760
|
+
})
|
|
1761
|
+
.s("AWSShield_20160616", "DisassociateHealthCheck", {})
|
|
1762
|
+
.n("ShieldClient", "DisassociateHealthCheckCommand")
|
|
1763
|
+
.f(void 0, void 0)
|
|
1764
|
+
.ser(se_DisassociateHealthCheckCommand)
|
|
1765
|
+
.de(de_DisassociateHealthCheckCommand)
|
|
1766
|
+
.build() {
|
|
1767
|
+
}
|
|
2132
1768
|
|
|
1769
|
+
class EnableApplicationLayerAutomaticResponseCommand extends smithyClient.Command
|
|
1770
|
+
.classBuilder()
|
|
1771
|
+
.ep(commonParams)
|
|
1772
|
+
.m(function (Command, cs, config, o) {
|
|
1773
|
+
return [
|
|
1774
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1775
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1776
|
+
];
|
|
1777
|
+
})
|
|
1778
|
+
.s("AWSShield_20160616", "EnableApplicationLayerAutomaticResponse", {})
|
|
1779
|
+
.n("ShieldClient", "EnableApplicationLayerAutomaticResponseCommand")
|
|
1780
|
+
.f(void 0, void 0)
|
|
1781
|
+
.ser(se_EnableApplicationLayerAutomaticResponseCommand)
|
|
1782
|
+
.de(de_EnableApplicationLayerAutomaticResponseCommand)
|
|
1783
|
+
.build() {
|
|
1784
|
+
}
|
|
2133
1785
|
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
(
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
}
|
|
1786
|
+
class EnableProactiveEngagementCommand extends smithyClient.Command
|
|
1787
|
+
.classBuilder()
|
|
1788
|
+
.ep(commonParams)
|
|
1789
|
+
.m(function (Command, cs, config, o) {
|
|
1790
|
+
return [
|
|
1791
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1792
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1793
|
+
];
|
|
1794
|
+
})
|
|
1795
|
+
.s("AWSShield_20160616", "EnableProactiveEngagement", {})
|
|
1796
|
+
.n("ShieldClient", "EnableProactiveEngagementCommand")
|
|
1797
|
+
.f(void 0, void 0)
|
|
1798
|
+
.ser(se_EnableProactiveEngagementCommand)
|
|
1799
|
+
.de(de_EnableProactiveEngagementCommand)
|
|
1800
|
+
.build() {
|
|
1801
|
+
}
|
|
2144
1802
|
|
|
2145
|
-
|
|
1803
|
+
class GetSubscriptionStateCommand extends smithyClient.Command
|
|
1804
|
+
.classBuilder()
|
|
1805
|
+
.ep(commonParams)
|
|
1806
|
+
.m(function (Command, cs, config, o) {
|
|
1807
|
+
return [
|
|
1808
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1809
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1810
|
+
];
|
|
1811
|
+
})
|
|
1812
|
+
.s("AWSShield_20160616", "GetSubscriptionState", {})
|
|
1813
|
+
.n("ShieldClient", "GetSubscriptionStateCommand")
|
|
1814
|
+
.f(void 0, void 0)
|
|
1815
|
+
.ser(se_GetSubscriptionStateCommand)
|
|
1816
|
+
.de(de_GetSubscriptionStateCommand)
|
|
1817
|
+
.build() {
|
|
1818
|
+
}
|
|
2146
1819
|
|
|
1820
|
+
class ListAttacksCommand extends smithyClient.Command
|
|
1821
|
+
.classBuilder()
|
|
1822
|
+
.ep(commonParams)
|
|
1823
|
+
.m(function (Command, cs, config, o) {
|
|
1824
|
+
return [
|
|
1825
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1826
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1827
|
+
];
|
|
1828
|
+
})
|
|
1829
|
+
.s("AWSShield_20160616", "ListAttacks", {})
|
|
1830
|
+
.n("ShieldClient", "ListAttacksCommand")
|
|
1831
|
+
.f(void 0, void 0)
|
|
1832
|
+
.ser(se_ListAttacksCommand)
|
|
1833
|
+
.de(de_ListAttacksCommand)
|
|
1834
|
+
.build() {
|
|
1835
|
+
}
|
|
2147
1836
|
|
|
1837
|
+
class ListProtectionGroupsCommand extends smithyClient.Command
|
|
1838
|
+
.classBuilder()
|
|
1839
|
+
.ep(commonParams)
|
|
1840
|
+
.m(function (Command, cs, config, o) {
|
|
1841
|
+
return [
|
|
1842
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1843
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1844
|
+
];
|
|
1845
|
+
})
|
|
1846
|
+
.s("AWSShield_20160616", "ListProtectionGroups", {})
|
|
1847
|
+
.n("ShieldClient", "ListProtectionGroupsCommand")
|
|
1848
|
+
.f(void 0, void 0)
|
|
1849
|
+
.ser(se_ListProtectionGroupsCommand)
|
|
1850
|
+
.de(de_ListProtectionGroupsCommand)
|
|
1851
|
+
.build() {
|
|
1852
|
+
}
|
|
2148
1853
|
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
(
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
}
|
|
1854
|
+
class ListProtectionsCommand extends smithyClient.Command
|
|
1855
|
+
.classBuilder()
|
|
1856
|
+
.ep(commonParams)
|
|
1857
|
+
.m(function (Command, cs, config, o) {
|
|
1858
|
+
return [
|
|
1859
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1860
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1861
|
+
];
|
|
1862
|
+
})
|
|
1863
|
+
.s("AWSShield_20160616", "ListProtections", {})
|
|
1864
|
+
.n("ShieldClient", "ListProtectionsCommand")
|
|
1865
|
+
.f(void 0, void 0)
|
|
1866
|
+
.ser(se_ListProtectionsCommand)
|
|
1867
|
+
.de(de_ListProtectionsCommand)
|
|
1868
|
+
.build() {
|
|
1869
|
+
}
|
|
2159
1870
|
|
|
2160
|
-
|
|
1871
|
+
class ListResourcesInProtectionGroupCommand extends smithyClient.Command
|
|
1872
|
+
.classBuilder()
|
|
1873
|
+
.ep(commonParams)
|
|
1874
|
+
.m(function (Command, cs, config, o) {
|
|
1875
|
+
return [
|
|
1876
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1877
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1878
|
+
];
|
|
1879
|
+
})
|
|
1880
|
+
.s("AWSShield_20160616", "ListResourcesInProtectionGroup", {})
|
|
1881
|
+
.n("ShieldClient", "ListResourcesInProtectionGroupCommand")
|
|
1882
|
+
.f(void 0, void 0)
|
|
1883
|
+
.ser(se_ListResourcesInProtectionGroupCommand)
|
|
1884
|
+
.de(de_ListResourcesInProtectionGroupCommand)
|
|
1885
|
+
.build() {
|
|
1886
|
+
}
|
|
2161
1887
|
|
|
1888
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
1889
|
+
.classBuilder()
|
|
1890
|
+
.ep(commonParams)
|
|
1891
|
+
.m(function (Command, cs, config, o) {
|
|
1892
|
+
return [
|
|
1893
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1894
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1895
|
+
];
|
|
1896
|
+
})
|
|
1897
|
+
.s("AWSShield_20160616", "ListTagsForResource", {})
|
|
1898
|
+
.n("ShieldClient", "ListTagsForResourceCommand")
|
|
1899
|
+
.f(void 0, void 0)
|
|
1900
|
+
.ser(se_ListTagsForResourceCommand)
|
|
1901
|
+
.de(de_ListTagsForResourceCommand)
|
|
1902
|
+
.build() {
|
|
1903
|
+
}
|
|
2162
1904
|
|
|
1905
|
+
class TagResourceCommand extends smithyClient.Command
|
|
1906
|
+
.classBuilder()
|
|
1907
|
+
.ep(commonParams)
|
|
1908
|
+
.m(function (Command, cs, config, o) {
|
|
1909
|
+
return [
|
|
1910
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1911
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1912
|
+
];
|
|
1913
|
+
})
|
|
1914
|
+
.s("AWSShield_20160616", "TagResource", {})
|
|
1915
|
+
.n("ShieldClient", "TagResourceCommand")
|
|
1916
|
+
.f(void 0, void 0)
|
|
1917
|
+
.ser(se_TagResourceCommand)
|
|
1918
|
+
.de(de_TagResourceCommand)
|
|
1919
|
+
.build() {
|
|
1920
|
+
}
|
|
2163
1921
|
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
(
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
}
|
|
1922
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
1923
|
+
.classBuilder()
|
|
1924
|
+
.ep(commonParams)
|
|
1925
|
+
.m(function (Command, cs, config, o) {
|
|
1926
|
+
return [
|
|
1927
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1928
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1929
|
+
];
|
|
1930
|
+
})
|
|
1931
|
+
.s("AWSShield_20160616", "UntagResource", {})
|
|
1932
|
+
.n("ShieldClient", "UntagResourceCommand")
|
|
1933
|
+
.f(void 0, void 0)
|
|
1934
|
+
.ser(se_UntagResourceCommand)
|
|
1935
|
+
.de(de_UntagResourceCommand)
|
|
1936
|
+
.build() {
|
|
1937
|
+
}
|
|
2174
1938
|
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
DescribeProtectionCommand,
|
|
2192
|
-
DescribeProtectionGroupCommand,
|
|
2193
|
-
DescribeSubscriptionCommand,
|
|
2194
|
-
DisableApplicationLayerAutomaticResponseCommand,
|
|
2195
|
-
DisableProactiveEngagementCommand,
|
|
2196
|
-
DisassociateDRTLogBucketCommand,
|
|
2197
|
-
DisassociateDRTRoleCommand,
|
|
2198
|
-
DisassociateHealthCheckCommand,
|
|
2199
|
-
EnableApplicationLayerAutomaticResponseCommand,
|
|
2200
|
-
EnableProactiveEngagementCommand,
|
|
2201
|
-
GetSubscriptionStateCommand,
|
|
2202
|
-
ListAttacksCommand,
|
|
2203
|
-
ListProtectionGroupsCommand,
|
|
2204
|
-
ListProtectionsCommand,
|
|
2205
|
-
ListResourcesInProtectionGroupCommand,
|
|
2206
|
-
ListTagsForResourceCommand,
|
|
2207
|
-
TagResourceCommand,
|
|
2208
|
-
UntagResourceCommand,
|
|
2209
|
-
UpdateApplicationLayerAutomaticResponseCommand,
|
|
2210
|
-
UpdateEmergencyContactSettingsCommand,
|
|
2211
|
-
UpdateProtectionGroupCommand,
|
|
2212
|
-
UpdateSubscriptionCommand
|
|
2213
|
-
};
|
|
2214
|
-
var Shield = class extends ShieldClient {
|
|
2215
|
-
static {
|
|
2216
|
-
__name(this, "Shield");
|
|
2217
|
-
}
|
|
2218
|
-
};
|
|
2219
|
-
(0, import_smithy_client.createAggregatedClient)(commands, Shield);
|
|
1939
|
+
class UpdateApplicationLayerAutomaticResponseCommand extends smithyClient.Command
|
|
1940
|
+
.classBuilder()
|
|
1941
|
+
.ep(commonParams)
|
|
1942
|
+
.m(function (Command, cs, config, o) {
|
|
1943
|
+
return [
|
|
1944
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1945
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1946
|
+
];
|
|
1947
|
+
})
|
|
1948
|
+
.s("AWSShield_20160616", "UpdateApplicationLayerAutomaticResponse", {})
|
|
1949
|
+
.n("ShieldClient", "UpdateApplicationLayerAutomaticResponseCommand")
|
|
1950
|
+
.f(void 0, void 0)
|
|
1951
|
+
.ser(se_UpdateApplicationLayerAutomaticResponseCommand)
|
|
1952
|
+
.de(de_UpdateApplicationLayerAutomaticResponseCommand)
|
|
1953
|
+
.build() {
|
|
1954
|
+
}
|
|
2220
1955
|
|
|
2221
|
-
|
|
1956
|
+
class UpdateEmergencyContactSettingsCommand extends smithyClient.Command
|
|
1957
|
+
.classBuilder()
|
|
1958
|
+
.ep(commonParams)
|
|
1959
|
+
.m(function (Command, cs, config, o) {
|
|
1960
|
+
return [
|
|
1961
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1962
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1963
|
+
];
|
|
1964
|
+
})
|
|
1965
|
+
.s("AWSShield_20160616", "UpdateEmergencyContactSettings", {})
|
|
1966
|
+
.n("ShieldClient", "UpdateEmergencyContactSettingsCommand")
|
|
1967
|
+
.f(void 0, void 0)
|
|
1968
|
+
.ser(se_UpdateEmergencyContactSettingsCommand)
|
|
1969
|
+
.de(de_UpdateEmergencyContactSettingsCommand)
|
|
1970
|
+
.build() {
|
|
1971
|
+
}
|
|
2222
1972
|
|
|
2223
|
-
|
|
1973
|
+
class UpdateProtectionGroupCommand extends smithyClient.Command
|
|
1974
|
+
.classBuilder()
|
|
1975
|
+
.ep(commonParams)
|
|
1976
|
+
.m(function (Command, cs, config, o) {
|
|
1977
|
+
return [
|
|
1978
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1979
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1980
|
+
];
|
|
1981
|
+
})
|
|
1982
|
+
.s("AWSShield_20160616", "UpdateProtectionGroup", {})
|
|
1983
|
+
.n("ShieldClient", "UpdateProtectionGroupCommand")
|
|
1984
|
+
.f(void 0, void 0)
|
|
1985
|
+
.ser(se_UpdateProtectionGroupCommand)
|
|
1986
|
+
.de(de_UpdateProtectionGroupCommand)
|
|
1987
|
+
.build() {
|
|
1988
|
+
}
|
|
2224
1989
|
|
|
2225
|
-
|
|
1990
|
+
class UpdateSubscriptionCommand extends smithyClient.Command
|
|
1991
|
+
.classBuilder()
|
|
1992
|
+
.ep(commonParams)
|
|
1993
|
+
.m(function (Command, cs, config, o) {
|
|
1994
|
+
return [
|
|
1995
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1996
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1997
|
+
];
|
|
1998
|
+
})
|
|
1999
|
+
.s("AWSShield_20160616", "UpdateSubscription", {})
|
|
2000
|
+
.n("ShieldClient", "UpdateSubscriptionCommand")
|
|
2001
|
+
.f(void 0, void 0)
|
|
2002
|
+
.ser(se_UpdateSubscriptionCommand)
|
|
2003
|
+
.de(de_UpdateSubscriptionCommand)
|
|
2004
|
+
.build() {
|
|
2005
|
+
}
|
|
2226
2006
|
|
|
2227
|
-
|
|
2007
|
+
const commands = {
|
|
2008
|
+
AssociateDRTLogBucketCommand,
|
|
2009
|
+
AssociateDRTRoleCommand,
|
|
2010
|
+
AssociateHealthCheckCommand,
|
|
2011
|
+
AssociateProactiveEngagementDetailsCommand,
|
|
2012
|
+
CreateProtectionCommand,
|
|
2013
|
+
CreateProtectionGroupCommand,
|
|
2014
|
+
CreateSubscriptionCommand,
|
|
2015
|
+
DeleteProtectionCommand,
|
|
2016
|
+
DeleteProtectionGroupCommand,
|
|
2017
|
+
DeleteSubscriptionCommand,
|
|
2018
|
+
DescribeAttackCommand,
|
|
2019
|
+
DescribeAttackStatisticsCommand,
|
|
2020
|
+
DescribeDRTAccessCommand,
|
|
2021
|
+
DescribeEmergencyContactSettingsCommand,
|
|
2022
|
+
DescribeProtectionCommand,
|
|
2023
|
+
DescribeProtectionGroupCommand,
|
|
2024
|
+
DescribeSubscriptionCommand,
|
|
2025
|
+
DisableApplicationLayerAutomaticResponseCommand,
|
|
2026
|
+
DisableProactiveEngagementCommand,
|
|
2027
|
+
DisassociateDRTLogBucketCommand,
|
|
2028
|
+
DisassociateDRTRoleCommand,
|
|
2029
|
+
DisassociateHealthCheckCommand,
|
|
2030
|
+
EnableApplicationLayerAutomaticResponseCommand,
|
|
2031
|
+
EnableProactiveEngagementCommand,
|
|
2032
|
+
GetSubscriptionStateCommand,
|
|
2033
|
+
ListAttacksCommand,
|
|
2034
|
+
ListProtectionGroupsCommand,
|
|
2035
|
+
ListProtectionsCommand,
|
|
2036
|
+
ListResourcesInProtectionGroupCommand,
|
|
2037
|
+
ListTagsForResourceCommand,
|
|
2038
|
+
TagResourceCommand,
|
|
2039
|
+
UntagResourceCommand,
|
|
2040
|
+
UpdateApplicationLayerAutomaticResponseCommand,
|
|
2041
|
+
UpdateEmergencyContactSettingsCommand,
|
|
2042
|
+
UpdateProtectionGroupCommand,
|
|
2043
|
+
UpdateSubscriptionCommand,
|
|
2044
|
+
};
|
|
2045
|
+
class Shield extends ShieldClient {
|
|
2046
|
+
}
|
|
2047
|
+
smithyClient.createAggregatedClient(commands, Shield);
|
|
2228
2048
|
|
|
2229
|
-
|
|
2049
|
+
const paginateListAttacks = core.createPaginator(ShieldClient, ListAttacksCommand, "NextToken", "NextToken", "MaxResults");
|
|
2230
2050
|
|
|
2231
|
-
|
|
2051
|
+
const paginateListProtectionGroups = core.createPaginator(ShieldClient, ListProtectionGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
2232
2052
|
|
|
2233
|
-
|
|
2053
|
+
const paginateListProtections = core.createPaginator(ShieldClient, ListProtectionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
2234
2054
|
|
|
2235
|
-
|
|
2236
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
2055
|
+
const paginateListResourcesInProtectionGroup = core.createPaginator(ShieldClient, ListResourcesInProtectionGroupCommand, "NextToken", "NextToken", "MaxResults");
|
|
2237
2056
|
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
ShieldClient,
|
|
2242
|
-
Shield,
|
|
2243
|
-
$Command,
|
|
2244
|
-
AssociateDRTLogBucketCommand,
|
|
2245
|
-
AssociateDRTRoleCommand,
|
|
2246
|
-
AssociateHealthCheckCommand,
|
|
2247
|
-
AssociateProactiveEngagementDetailsCommand,
|
|
2248
|
-
CreateProtectionCommand,
|
|
2249
|
-
CreateProtectionGroupCommand,
|
|
2250
|
-
CreateSubscriptionCommand,
|
|
2251
|
-
DeleteProtectionCommand,
|
|
2252
|
-
DeleteProtectionGroupCommand,
|
|
2253
|
-
DeleteSubscriptionCommand,
|
|
2254
|
-
DescribeAttackCommand,
|
|
2255
|
-
DescribeAttackStatisticsCommand,
|
|
2256
|
-
DescribeDRTAccessCommand,
|
|
2257
|
-
DescribeEmergencyContactSettingsCommand,
|
|
2258
|
-
DescribeProtectionCommand,
|
|
2259
|
-
DescribeProtectionGroupCommand,
|
|
2260
|
-
DescribeSubscriptionCommand,
|
|
2261
|
-
DisableApplicationLayerAutomaticResponseCommand,
|
|
2262
|
-
DisableProactiveEngagementCommand,
|
|
2263
|
-
DisassociateDRTLogBucketCommand,
|
|
2264
|
-
DisassociateDRTRoleCommand,
|
|
2265
|
-
DisassociateHealthCheckCommand,
|
|
2266
|
-
EnableApplicationLayerAutomaticResponseCommand,
|
|
2267
|
-
EnableProactiveEngagementCommand,
|
|
2268
|
-
GetSubscriptionStateCommand,
|
|
2269
|
-
ListAttacksCommand,
|
|
2270
|
-
ListProtectionGroupsCommand,
|
|
2271
|
-
ListProtectionsCommand,
|
|
2272
|
-
ListResourcesInProtectionGroupCommand,
|
|
2273
|
-
ListTagsForResourceCommand,
|
|
2274
|
-
TagResourceCommand,
|
|
2275
|
-
UntagResourceCommand,
|
|
2276
|
-
UpdateApplicationLayerAutomaticResponseCommand,
|
|
2277
|
-
UpdateEmergencyContactSettingsCommand,
|
|
2278
|
-
UpdateProtectionGroupCommand,
|
|
2279
|
-
UpdateSubscriptionCommand,
|
|
2280
|
-
paginateListAttacks,
|
|
2281
|
-
paginateListProtectionGroups,
|
|
2282
|
-
paginateListProtections,
|
|
2283
|
-
paginateListResourcesInProtectionGroup,
|
|
2284
|
-
AccessDeniedException,
|
|
2285
|
-
AccessDeniedForDependencyException,
|
|
2286
|
-
ApplicationLayerAutomaticResponseStatus,
|
|
2287
|
-
InternalErrorException,
|
|
2288
|
-
InvalidOperationException,
|
|
2289
|
-
ValidationExceptionReason,
|
|
2290
|
-
InvalidParameterException,
|
|
2291
|
-
LimitsExceededException,
|
|
2292
|
-
NoAssociatedRoleException,
|
|
2293
|
-
OptimisticLockException,
|
|
2294
|
-
ResourceNotFoundException,
|
|
2295
|
-
InvalidResourceException,
|
|
2296
|
-
AttackLayer,
|
|
2297
|
-
AttackPropertyIdentifier,
|
|
2298
|
-
Unit,
|
|
2299
|
-
SubResourceType,
|
|
2300
|
-
AutoRenew,
|
|
2301
|
-
ResourceAlreadyExistsException,
|
|
2302
|
-
ProtectionGroupAggregation,
|
|
2303
|
-
ProtectionGroupPattern,
|
|
2304
|
-
ProtectedResourceType,
|
|
2305
|
-
LockedSubscriptionException,
|
|
2306
|
-
ProactiveEngagementStatus,
|
|
2307
|
-
SubscriptionState,
|
|
2308
|
-
InvalidPaginationTokenException
|
|
2057
|
+
Object.defineProperty(exports, "$Command", {
|
|
2058
|
+
enumerable: true,
|
|
2059
|
+
get: function () { return smithyClient.Command; }
|
|
2309
2060
|
});
|
|
2310
|
-
|
|
2061
|
+
Object.defineProperty(exports, "__Client", {
|
|
2062
|
+
enumerable: true,
|
|
2063
|
+
get: function () { return smithyClient.Client; }
|
|
2064
|
+
});
|
|
2065
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
2066
|
+
exports.AccessDeniedForDependencyException = AccessDeniedForDependencyException;
|
|
2067
|
+
exports.ApplicationLayerAutomaticResponseStatus = ApplicationLayerAutomaticResponseStatus;
|
|
2068
|
+
exports.AssociateDRTLogBucketCommand = AssociateDRTLogBucketCommand;
|
|
2069
|
+
exports.AssociateDRTRoleCommand = AssociateDRTRoleCommand;
|
|
2070
|
+
exports.AssociateHealthCheckCommand = AssociateHealthCheckCommand;
|
|
2071
|
+
exports.AssociateProactiveEngagementDetailsCommand = AssociateProactiveEngagementDetailsCommand;
|
|
2072
|
+
exports.AttackLayer = AttackLayer;
|
|
2073
|
+
exports.AttackPropertyIdentifier = AttackPropertyIdentifier;
|
|
2074
|
+
exports.AutoRenew = AutoRenew;
|
|
2075
|
+
exports.CreateProtectionCommand = CreateProtectionCommand;
|
|
2076
|
+
exports.CreateProtectionGroupCommand = CreateProtectionGroupCommand;
|
|
2077
|
+
exports.CreateSubscriptionCommand = CreateSubscriptionCommand;
|
|
2078
|
+
exports.DeleteProtectionCommand = DeleteProtectionCommand;
|
|
2079
|
+
exports.DeleteProtectionGroupCommand = DeleteProtectionGroupCommand;
|
|
2080
|
+
exports.DeleteSubscriptionCommand = DeleteSubscriptionCommand;
|
|
2081
|
+
exports.DescribeAttackCommand = DescribeAttackCommand;
|
|
2082
|
+
exports.DescribeAttackStatisticsCommand = DescribeAttackStatisticsCommand;
|
|
2083
|
+
exports.DescribeDRTAccessCommand = DescribeDRTAccessCommand;
|
|
2084
|
+
exports.DescribeEmergencyContactSettingsCommand = DescribeEmergencyContactSettingsCommand;
|
|
2085
|
+
exports.DescribeProtectionCommand = DescribeProtectionCommand;
|
|
2086
|
+
exports.DescribeProtectionGroupCommand = DescribeProtectionGroupCommand;
|
|
2087
|
+
exports.DescribeSubscriptionCommand = DescribeSubscriptionCommand;
|
|
2088
|
+
exports.DisableApplicationLayerAutomaticResponseCommand = DisableApplicationLayerAutomaticResponseCommand;
|
|
2089
|
+
exports.DisableProactiveEngagementCommand = DisableProactiveEngagementCommand;
|
|
2090
|
+
exports.DisassociateDRTLogBucketCommand = DisassociateDRTLogBucketCommand;
|
|
2091
|
+
exports.DisassociateDRTRoleCommand = DisassociateDRTRoleCommand;
|
|
2092
|
+
exports.DisassociateHealthCheckCommand = DisassociateHealthCheckCommand;
|
|
2093
|
+
exports.EnableApplicationLayerAutomaticResponseCommand = EnableApplicationLayerAutomaticResponseCommand;
|
|
2094
|
+
exports.EnableProactiveEngagementCommand = EnableProactiveEngagementCommand;
|
|
2095
|
+
exports.GetSubscriptionStateCommand = GetSubscriptionStateCommand;
|
|
2096
|
+
exports.InternalErrorException = InternalErrorException;
|
|
2097
|
+
exports.InvalidOperationException = InvalidOperationException;
|
|
2098
|
+
exports.InvalidPaginationTokenException = InvalidPaginationTokenException;
|
|
2099
|
+
exports.InvalidParameterException = InvalidParameterException;
|
|
2100
|
+
exports.InvalidResourceException = InvalidResourceException;
|
|
2101
|
+
exports.LimitsExceededException = LimitsExceededException;
|
|
2102
|
+
exports.ListAttacksCommand = ListAttacksCommand;
|
|
2103
|
+
exports.ListProtectionGroupsCommand = ListProtectionGroupsCommand;
|
|
2104
|
+
exports.ListProtectionsCommand = ListProtectionsCommand;
|
|
2105
|
+
exports.ListResourcesInProtectionGroupCommand = ListResourcesInProtectionGroupCommand;
|
|
2106
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
2107
|
+
exports.LockedSubscriptionException = LockedSubscriptionException;
|
|
2108
|
+
exports.NoAssociatedRoleException = NoAssociatedRoleException;
|
|
2109
|
+
exports.OptimisticLockException = OptimisticLockException;
|
|
2110
|
+
exports.ProactiveEngagementStatus = ProactiveEngagementStatus;
|
|
2111
|
+
exports.ProtectedResourceType = ProtectedResourceType;
|
|
2112
|
+
exports.ProtectionGroupAggregation = ProtectionGroupAggregation;
|
|
2113
|
+
exports.ProtectionGroupPattern = ProtectionGroupPattern;
|
|
2114
|
+
exports.ResourceAlreadyExistsException = ResourceAlreadyExistsException;
|
|
2115
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
2116
|
+
exports.Shield = Shield;
|
|
2117
|
+
exports.ShieldClient = ShieldClient;
|
|
2118
|
+
exports.ShieldServiceException = ShieldServiceException;
|
|
2119
|
+
exports.SubResourceType = SubResourceType;
|
|
2120
|
+
exports.SubscriptionState = SubscriptionState;
|
|
2121
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
2122
|
+
exports.Unit = Unit;
|
|
2123
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
2124
|
+
exports.UpdateApplicationLayerAutomaticResponseCommand = UpdateApplicationLayerAutomaticResponseCommand;
|
|
2125
|
+
exports.UpdateEmergencyContactSettingsCommand = UpdateEmergencyContactSettingsCommand;
|
|
2126
|
+
exports.UpdateProtectionGroupCommand = UpdateProtectionGroupCommand;
|
|
2127
|
+
exports.UpdateSubscriptionCommand = UpdateSubscriptionCommand;
|
|
2128
|
+
exports.ValidationExceptionReason = ValidationExceptionReason;
|
|
2129
|
+
exports.paginateListAttacks = paginateListAttacks;
|
|
2130
|
+
exports.paginateListProtectionGroups = paginateListProtectionGroups;
|
|
2131
|
+
exports.paginateListProtections = paginateListProtections;
|
|
2132
|
+
exports.paginateListResourcesInProtectionGroup = paginateListResourcesInProtectionGroup;
|