@aws-sdk/client-global-accelerator 3.927.0 → 3.929.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 +1759 -2091
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/GlobalAcceleratorClient.js +2 -0
- package/dist-es/commands/AddCustomRoutingEndpointsCommand.js +3 -9
- package/dist-es/commands/AddEndpointsCommand.js +3 -9
- package/dist-es/commands/AdvertiseByoipCidrCommand.js +3 -9
- package/dist-es/commands/AllowCustomRoutingTrafficCommand.js +3 -9
- package/dist-es/commands/CreateAcceleratorCommand.js +3 -9
- package/dist-es/commands/CreateCrossAccountAttachmentCommand.js +3 -9
- package/dist-es/commands/CreateCustomRoutingAcceleratorCommand.js +3 -9
- package/dist-es/commands/CreateCustomRoutingEndpointGroupCommand.js +3 -9
- package/dist-es/commands/CreateCustomRoutingListenerCommand.js +3 -9
- package/dist-es/commands/CreateEndpointGroupCommand.js +3 -9
- package/dist-es/commands/CreateListenerCommand.js +3 -9
- package/dist-es/commands/DeleteAcceleratorCommand.js +3 -9
- package/dist-es/commands/DeleteCrossAccountAttachmentCommand.js +3 -9
- package/dist-es/commands/DeleteCustomRoutingAcceleratorCommand.js +3 -9
- package/dist-es/commands/DeleteCustomRoutingEndpointGroupCommand.js +3 -9
- package/dist-es/commands/DeleteCustomRoutingListenerCommand.js +3 -9
- package/dist-es/commands/DeleteEndpointGroupCommand.js +3 -9
- package/dist-es/commands/DeleteListenerCommand.js +3 -9
- package/dist-es/commands/DenyCustomRoutingTrafficCommand.js +3 -9
- package/dist-es/commands/DeprovisionByoipCidrCommand.js +3 -9
- package/dist-es/commands/DescribeAcceleratorAttributesCommand.js +3 -9
- package/dist-es/commands/DescribeAcceleratorCommand.js +3 -9
- package/dist-es/commands/DescribeCrossAccountAttachmentCommand.js +3 -9
- package/dist-es/commands/DescribeCustomRoutingAcceleratorAttributesCommand.js +3 -9
- package/dist-es/commands/DescribeCustomRoutingAcceleratorCommand.js +3 -9
- package/dist-es/commands/DescribeCustomRoutingEndpointGroupCommand.js +3 -9
- package/dist-es/commands/DescribeCustomRoutingListenerCommand.js +3 -9
- package/dist-es/commands/DescribeEndpointGroupCommand.js +3 -9
- package/dist-es/commands/DescribeListenerCommand.js +3 -9
- package/dist-es/commands/ListAcceleratorsCommand.js +3 -9
- package/dist-es/commands/ListByoipCidrsCommand.js +3 -9
- package/dist-es/commands/ListCrossAccountAttachmentsCommand.js +3 -9
- package/dist-es/commands/ListCrossAccountResourceAccountsCommand.js +3 -9
- package/dist-es/commands/ListCrossAccountResourcesCommand.js +3 -9
- package/dist-es/commands/ListCustomRoutingAcceleratorsCommand.js +3 -9
- package/dist-es/commands/ListCustomRoutingEndpointGroupsCommand.js +3 -9
- package/dist-es/commands/ListCustomRoutingListenersCommand.js +3 -9
- package/dist-es/commands/ListCustomRoutingPortMappingsByDestinationCommand.js +3 -9
- package/dist-es/commands/ListCustomRoutingPortMappingsCommand.js +3 -9
- package/dist-es/commands/ListEndpointGroupsCommand.js +3 -9
- package/dist-es/commands/ListListenersCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ProvisionByoipCidrCommand.js +3 -9
- package/dist-es/commands/RemoveCustomRoutingEndpointsCommand.js +3 -9
- package/dist-es/commands/RemoveEndpointsCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateAcceleratorAttributesCommand.js +3 -9
- package/dist-es/commands/UpdateAcceleratorCommand.js +3 -9
- package/dist-es/commands/UpdateCrossAccountAttachmentCommand.js +3 -9
- package/dist-es/commands/UpdateCustomRoutingAcceleratorAttributesCommand.js +3 -9
- package/dist-es/commands/UpdateCustomRoutingAcceleratorCommand.js +3 -9
- package/dist-es/commands/UpdateCustomRoutingListenerCommand.js +3 -9
- package/dist-es/commands/UpdateEndpointGroupCommand.js +3 -9
- package/dist-es/commands/UpdateListenerCommand.js +3 -9
- package/dist-es/commands/WithdrawByoipCidrCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +1594 -0
- package/dist-types/GlobalAcceleratorClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +244 -0
- package/dist-types/ts3.4/GlobalAcceleratorClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +249 -0
- package/package.json +5 -6
- package/dist-es/protocols/Aws_json1_1.js +0 -1643
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -506
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -677
|
@@ -1,1643 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { GlobalAcceleratorServiceException as __BaseException } from "../models/GlobalAcceleratorServiceException";
|
|
6
|
-
import { AcceleratorNotDisabledException, AcceleratorNotFoundException, AccessDeniedException, AssociatedEndpointGroupFoundException, AssociatedListenerFoundException, AttachmentNotFoundException, ByoipCidrNotFoundException, ConflictException, EndpointAlreadyExistsException, EndpointGroupAlreadyExistsException, EndpointGroupNotFoundException, EndpointNotFoundException, IncorrectCidrStateException, InternalServiceErrorException, InvalidArgumentException, InvalidNextTokenException, InvalidPortRangeException, LimitExceededException, ListenerNotFoundException, TransactionInProgressException, } from "../models/models_0";
|
|
7
|
-
export const se_AddCustomRoutingEndpointsCommand = async (input, context) => {
|
|
8
|
-
const headers = sharedHeaders("AddCustomRoutingEndpoints");
|
|
9
|
-
let body;
|
|
10
|
-
body = JSON.stringify(_json(input));
|
|
11
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
12
|
-
};
|
|
13
|
-
export const se_AddEndpointsCommand = async (input, context) => {
|
|
14
|
-
const headers = sharedHeaders("AddEndpoints");
|
|
15
|
-
let body;
|
|
16
|
-
body = JSON.stringify(_json(input));
|
|
17
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
18
|
-
};
|
|
19
|
-
export const se_AdvertiseByoipCidrCommand = async (input, context) => {
|
|
20
|
-
const headers = sharedHeaders("AdvertiseByoipCidr");
|
|
21
|
-
let body;
|
|
22
|
-
body = JSON.stringify(_json(input));
|
|
23
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
24
|
-
};
|
|
25
|
-
export const se_AllowCustomRoutingTrafficCommand = async (input, context) => {
|
|
26
|
-
const headers = sharedHeaders("AllowCustomRoutingTraffic");
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify(_json(input));
|
|
29
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
30
|
-
};
|
|
31
|
-
export const se_CreateAcceleratorCommand = async (input, context) => {
|
|
32
|
-
const headers = sharedHeaders("CreateAccelerator");
|
|
33
|
-
let body;
|
|
34
|
-
body = JSON.stringify(se_CreateAcceleratorRequest(input, context));
|
|
35
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
|
-
};
|
|
37
|
-
export const se_CreateCrossAccountAttachmentCommand = async (input, context) => {
|
|
38
|
-
const headers = sharedHeaders("CreateCrossAccountAttachment");
|
|
39
|
-
let body;
|
|
40
|
-
body = JSON.stringify(se_CreateCrossAccountAttachmentRequest(input, context));
|
|
41
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
|
-
};
|
|
43
|
-
export const se_CreateCustomRoutingAcceleratorCommand = async (input, context) => {
|
|
44
|
-
const headers = sharedHeaders("CreateCustomRoutingAccelerator");
|
|
45
|
-
let body;
|
|
46
|
-
body = JSON.stringify(se_CreateCustomRoutingAcceleratorRequest(input, context));
|
|
47
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
|
-
};
|
|
49
|
-
export const se_CreateCustomRoutingEndpointGroupCommand = async (input, context) => {
|
|
50
|
-
const headers = sharedHeaders("CreateCustomRoutingEndpointGroup");
|
|
51
|
-
let body;
|
|
52
|
-
body = JSON.stringify(se_CreateCustomRoutingEndpointGroupRequest(input, context));
|
|
53
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
54
|
-
};
|
|
55
|
-
export const se_CreateCustomRoutingListenerCommand = async (input, context) => {
|
|
56
|
-
const headers = sharedHeaders("CreateCustomRoutingListener");
|
|
57
|
-
let body;
|
|
58
|
-
body = JSON.stringify(se_CreateCustomRoutingListenerRequest(input, context));
|
|
59
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
60
|
-
};
|
|
61
|
-
export const se_CreateEndpointGroupCommand = async (input, context) => {
|
|
62
|
-
const headers = sharedHeaders("CreateEndpointGroup");
|
|
63
|
-
let body;
|
|
64
|
-
body = JSON.stringify(se_CreateEndpointGroupRequest(input, context));
|
|
65
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
|
-
};
|
|
67
|
-
export const se_CreateListenerCommand = async (input, context) => {
|
|
68
|
-
const headers = sharedHeaders("CreateListener");
|
|
69
|
-
let body;
|
|
70
|
-
body = JSON.stringify(se_CreateListenerRequest(input, context));
|
|
71
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
72
|
-
};
|
|
73
|
-
export const se_DeleteAcceleratorCommand = async (input, context) => {
|
|
74
|
-
const headers = sharedHeaders("DeleteAccelerator");
|
|
75
|
-
let body;
|
|
76
|
-
body = JSON.stringify(_json(input));
|
|
77
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
|
-
};
|
|
79
|
-
export const se_DeleteCrossAccountAttachmentCommand = async (input, context) => {
|
|
80
|
-
const headers = sharedHeaders("DeleteCrossAccountAttachment");
|
|
81
|
-
let body;
|
|
82
|
-
body = JSON.stringify(_json(input));
|
|
83
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
84
|
-
};
|
|
85
|
-
export const se_DeleteCustomRoutingAcceleratorCommand = async (input, context) => {
|
|
86
|
-
const headers = sharedHeaders("DeleteCustomRoutingAccelerator");
|
|
87
|
-
let body;
|
|
88
|
-
body = JSON.stringify(_json(input));
|
|
89
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
90
|
-
};
|
|
91
|
-
export const se_DeleteCustomRoutingEndpointGroupCommand = async (input, context) => {
|
|
92
|
-
const headers = sharedHeaders("DeleteCustomRoutingEndpointGroup");
|
|
93
|
-
let body;
|
|
94
|
-
body = JSON.stringify(_json(input));
|
|
95
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
|
-
};
|
|
97
|
-
export const se_DeleteCustomRoutingListenerCommand = async (input, context) => {
|
|
98
|
-
const headers = sharedHeaders("DeleteCustomRoutingListener");
|
|
99
|
-
let body;
|
|
100
|
-
body = JSON.stringify(_json(input));
|
|
101
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
102
|
-
};
|
|
103
|
-
export const se_DeleteEndpointGroupCommand = async (input, context) => {
|
|
104
|
-
const headers = sharedHeaders("DeleteEndpointGroup");
|
|
105
|
-
let body;
|
|
106
|
-
body = JSON.stringify(_json(input));
|
|
107
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
108
|
-
};
|
|
109
|
-
export const se_DeleteListenerCommand = async (input, context) => {
|
|
110
|
-
const headers = sharedHeaders("DeleteListener");
|
|
111
|
-
let body;
|
|
112
|
-
body = JSON.stringify(_json(input));
|
|
113
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
114
|
-
};
|
|
115
|
-
export const se_DenyCustomRoutingTrafficCommand = async (input, context) => {
|
|
116
|
-
const headers = sharedHeaders("DenyCustomRoutingTraffic");
|
|
117
|
-
let body;
|
|
118
|
-
body = JSON.stringify(_json(input));
|
|
119
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
120
|
-
};
|
|
121
|
-
export const se_DeprovisionByoipCidrCommand = async (input, context) => {
|
|
122
|
-
const headers = sharedHeaders("DeprovisionByoipCidr");
|
|
123
|
-
let body;
|
|
124
|
-
body = JSON.stringify(_json(input));
|
|
125
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
|
-
};
|
|
127
|
-
export const se_DescribeAcceleratorCommand = async (input, context) => {
|
|
128
|
-
const headers = sharedHeaders("DescribeAccelerator");
|
|
129
|
-
let body;
|
|
130
|
-
body = JSON.stringify(_json(input));
|
|
131
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
132
|
-
};
|
|
133
|
-
export const se_DescribeAcceleratorAttributesCommand = async (input, context) => {
|
|
134
|
-
const headers = sharedHeaders("DescribeAcceleratorAttributes");
|
|
135
|
-
let body;
|
|
136
|
-
body = JSON.stringify(_json(input));
|
|
137
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
138
|
-
};
|
|
139
|
-
export const se_DescribeCrossAccountAttachmentCommand = async (input, context) => {
|
|
140
|
-
const headers = sharedHeaders("DescribeCrossAccountAttachment");
|
|
141
|
-
let body;
|
|
142
|
-
body = JSON.stringify(_json(input));
|
|
143
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
144
|
-
};
|
|
145
|
-
export const se_DescribeCustomRoutingAcceleratorCommand = async (input, context) => {
|
|
146
|
-
const headers = sharedHeaders("DescribeCustomRoutingAccelerator");
|
|
147
|
-
let body;
|
|
148
|
-
body = JSON.stringify(_json(input));
|
|
149
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
150
|
-
};
|
|
151
|
-
export const se_DescribeCustomRoutingAcceleratorAttributesCommand = async (input, context) => {
|
|
152
|
-
const headers = sharedHeaders("DescribeCustomRoutingAcceleratorAttributes");
|
|
153
|
-
let body;
|
|
154
|
-
body = JSON.stringify(_json(input));
|
|
155
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
|
-
};
|
|
157
|
-
export const se_DescribeCustomRoutingEndpointGroupCommand = async (input, context) => {
|
|
158
|
-
const headers = sharedHeaders("DescribeCustomRoutingEndpointGroup");
|
|
159
|
-
let body;
|
|
160
|
-
body = JSON.stringify(_json(input));
|
|
161
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
162
|
-
};
|
|
163
|
-
export const se_DescribeCustomRoutingListenerCommand = async (input, context) => {
|
|
164
|
-
const headers = sharedHeaders("DescribeCustomRoutingListener");
|
|
165
|
-
let body;
|
|
166
|
-
body = JSON.stringify(_json(input));
|
|
167
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
168
|
-
};
|
|
169
|
-
export const se_DescribeEndpointGroupCommand = async (input, context) => {
|
|
170
|
-
const headers = sharedHeaders("DescribeEndpointGroup");
|
|
171
|
-
let body;
|
|
172
|
-
body = JSON.stringify(_json(input));
|
|
173
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
174
|
-
};
|
|
175
|
-
export const se_DescribeListenerCommand = async (input, context) => {
|
|
176
|
-
const headers = sharedHeaders("DescribeListener");
|
|
177
|
-
let body;
|
|
178
|
-
body = JSON.stringify(_json(input));
|
|
179
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
180
|
-
};
|
|
181
|
-
export const se_ListAcceleratorsCommand = async (input, context) => {
|
|
182
|
-
const headers = sharedHeaders("ListAccelerators");
|
|
183
|
-
let body;
|
|
184
|
-
body = JSON.stringify(_json(input));
|
|
185
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
186
|
-
};
|
|
187
|
-
export const se_ListByoipCidrsCommand = async (input, context) => {
|
|
188
|
-
const headers = sharedHeaders("ListByoipCidrs");
|
|
189
|
-
let body;
|
|
190
|
-
body = JSON.stringify(_json(input));
|
|
191
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
192
|
-
};
|
|
193
|
-
export const se_ListCrossAccountAttachmentsCommand = async (input, context) => {
|
|
194
|
-
const headers = sharedHeaders("ListCrossAccountAttachments");
|
|
195
|
-
let body;
|
|
196
|
-
body = JSON.stringify(_json(input));
|
|
197
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
198
|
-
};
|
|
199
|
-
export const se_ListCrossAccountResourceAccountsCommand = async (input, context) => {
|
|
200
|
-
const headers = sharedHeaders("ListCrossAccountResourceAccounts");
|
|
201
|
-
let body;
|
|
202
|
-
body = JSON.stringify(_json(input));
|
|
203
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
204
|
-
};
|
|
205
|
-
export const se_ListCrossAccountResourcesCommand = async (input, context) => {
|
|
206
|
-
const headers = sharedHeaders("ListCrossAccountResources");
|
|
207
|
-
let body;
|
|
208
|
-
body = JSON.stringify(_json(input));
|
|
209
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
210
|
-
};
|
|
211
|
-
export const se_ListCustomRoutingAcceleratorsCommand = async (input, context) => {
|
|
212
|
-
const headers = sharedHeaders("ListCustomRoutingAccelerators");
|
|
213
|
-
let body;
|
|
214
|
-
body = JSON.stringify(_json(input));
|
|
215
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
216
|
-
};
|
|
217
|
-
export const se_ListCustomRoutingEndpointGroupsCommand = async (input, context) => {
|
|
218
|
-
const headers = sharedHeaders("ListCustomRoutingEndpointGroups");
|
|
219
|
-
let body;
|
|
220
|
-
body = JSON.stringify(_json(input));
|
|
221
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
222
|
-
};
|
|
223
|
-
export const se_ListCustomRoutingListenersCommand = async (input, context) => {
|
|
224
|
-
const headers = sharedHeaders("ListCustomRoutingListeners");
|
|
225
|
-
let body;
|
|
226
|
-
body = JSON.stringify(_json(input));
|
|
227
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
228
|
-
};
|
|
229
|
-
export const se_ListCustomRoutingPortMappingsCommand = async (input, context) => {
|
|
230
|
-
const headers = sharedHeaders("ListCustomRoutingPortMappings");
|
|
231
|
-
let body;
|
|
232
|
-
body = JSON.stringify(_json(input));
|
|
233
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
234
|
-
};
|
|
235
|
-
export const se_ListCustomRoutingPortMappingsByDestinationCommand = async (input, context) => {
|
|
236
|
-
const headers = sharedHeaders("ListCustomRoutingPortMappingsByDestination");
|
|
237
|
-
let body;
|
|
238
|
-
body = JSON.stringify(_json(input));
|
|
239
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
240
|
-
};
|
|
241
|
-
export const se_ListEndpointGroupsCommand = async (input, context) => {
|
|
242
|
-
const headers = sharedHeaders("ListEndpointGroups");
|
|
243
|
-
let body;
|
|
244
|
-
body = JSON.stringify(_json(input));
|
|
245
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
246
|
-
};
|
|
247
|
-
export const se_ListListenersCommand = async (input, context) => {
|
|
248
|
-
const headers = sharedHeaders("ListListeners");
|
|
249
|
-
let body;
|
|
250
|
-
body = JSON.stringify(_json(input));
|
|
251
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
252
|
-
};
|
|
253
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
254
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
255
|
-
let body;
|
|
256
|
-
body = JSON.stringify(_json(input));
|
|
257
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
258
|
-
};
|
|
259
|
-
export const se_ProvisionByoipCidrCommand = async (input, context) => {
|
|
260
|
-
const headers = sharedHeaders("ProvisionByoipCidr");
|
|
261
|
-
let body;
|
|
262
|
-
body = JSON.stringify(_json(input));
|
|
263
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
264
|
-
};
|
|
265
|
-
export const se_RemoveCustomRoutingEndpointsCommand = async (input, context) => {
|
|
266
|
-
const headers = sharedHeaders("RemoveCustomRoutingEndpoints");
|
|
267
|
-
let body;
|
|
268
|
-
body = JSON.stringify(_json(input));
|
|
269
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
270
|
-
};
|
|
271
|
-
export const se_RemoveEndpointsCommand = async (input, context) => {
|
|
272
|
-
const headers = sharedHeaders("RemoveEndpoints");
|
|
273
|
-
let body;
|
|
274
|
-
body = JSON.stringify(_json(input));
|
|
275
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
276
|
-
};
|
|
277
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
278
|
-
const headers = sharedHeaders("TagResource");
|
|
279
|
-
let body;
|
|
280
|
-
body = JSON.stringify(_json(input));
|
|
281
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
282
|
-
};
|
|
283
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
284
|
-
const headers = sharedHeaders("UntagResource");
|
|
285
|
-
let body;
|
|
286
|
-
body = JSON.stringify(_json(input));
|
|
287
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
288
|
-
};
|
|
289
|
-
export const se_UpdateAcceleratorCommand = async (input, context) => {
|
|
290
|
-
const headers = sharedHeaders("UpdateAccelerator");
|
|
291
|
-
let body;
|
|
292
|
-
body = JSON.stringify(_json(input));
|
|
293
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
294
|
-
};
|
|
295
|
-
export const se_UpdateAcceleratorAttributesCommand = async (input, context) => {
|
|
296
|
-
const headers = sharedHeaders("UpdateAcceleratorAttributes");
|
|
297
|
-
let body;
|
|
298
|
-
body = JSON.stringify(_json(input));
|
|
299
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
300
|
-
};
|
|
301
|
-
export const se_UpdateCrossAccountAttachmentCommand = async (input, context) => {
|
|
302
|
-
const headers = sharedHeaders("UpdateCrossAccountAttachment");
|
|
303
|
-
let body;
|
|
304
|
-
body = JSON.stringify(_json(input));
|
|
305
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
306
|
-
};
|
|
307
|
-
export const se_UpdateCustomRoutingAcceleratorCommand = async (input, context) => {
|
|
308
|
-
const headers = sharedHeaders("UpdateCustomRoutingAccelerator");
|
|
309
|
-
let body;
|
|
310
|
-
body = JSON.stringify(_json(input));
|
|
311
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
312
|
-
};
|
|
313
|
-
export const se_UpdateCustomRoutingAcceleratorAttributesCommand = async (input, context) => {
|
|
314
|
-
const headers = sharedHeaders("UpdateCustomRoutingAcceleratorAttributes");
|
|
315
|
-
let body;
|
|
316
|
-
body = JSON.stringify(_json(input));
|
|
317
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
318
|
-
};
|
|
319
|
-
export const se_UpdateCustomRoutingListenerCommand = async (input, context) => {
|
|
320
|
-
const headers = sharedHeaders("UpdateCustomRoutingListener");
|
|
321
|
-
let body;
|
|
322
|
-
body = JSON.stringify(_json(input));
|
|
323
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
324
|
-
};
|
|
325
|
-
export const se_UpdateEndpointGroupCommand = async (input, context) => {
|
|
326
|
-
const headers = sharedHeaders("UpdateEndpointGroup");
|
|
327
|
-
let body;
|
|
328
|
-
body = JSON.stringify(se_UpdateEndpointGroupRequest(input, context));
|
|
329
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
330
|
-
};
|
|
331
|
-
export const se_UpdateListenerCommand = async (input, context) => {
|
|
332
|
-
const headers = sharedHeaders("UpdateListener");
|
|
333
|
-
let body;
|
|
334
|
-
body = JSON.stringify(_json(input));
|
|
335
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
336
|
-
};
|
|
337
|
-
export const se_WithdrawByoipCidrCommand = async (input, context) => {
|
|
338
|
-
const headers = sharedHeaders("WithdrawByoipCidr");
|
|
339
|
-
let body;
|
|
340
|
-
body = JSON.stringify(_json(input));
|
|
341
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
342
|
-
};
|
|
343
|
-
export const de_AddCustomRoutingEndpointsCommand = async (output, context) => {
|
|
344
|
-
if (output.statusCode >= 300) {
|
|
345
|
-
return de_CommandError(output, context);
|
|
346
|
-
}
|
|
347
|
-
const data = await parseBody(output.body, context);
|
|
348
|
-
let contents = {};
|
|
349
|
-
contents = _json(data);
|
|
350
|
-
const response = {
|
|
351
|
-
$metadata: deserializeMetadata(output),
|
|
352
|
-
...contents,
|
|
353
|
-
};
|
|
354
|
-
return response;
|
|
355
|
-
};
|
|
356
|
-
export const de_AddEndpointsCommand = async (output, context) => {
|
|
357
|
-
if (output.statusCode >= 300) {
|
|
358
|
-
return de_CommandError(output, context);
|
|
359
|
-
}
|
|
360
|
-
const data = await parseBody(output.body, context);
|
|
361
|
-
let contents = {};
|
|
362
|
-
contents = _json(data);
|
|
363
|
-
const response = {
|
|
364
|
-
$metadata: deserializeMetadata(output),
|
|
365
|
-
...contents,
|
|
366
|
-
};
|
|
367
|
-
return response;
|
|
368
|
-
};
|
|
369
|
-
export const de_AdvertiseByoipCidrCommand = async (output, context) => {
|
|
370
|
-
if (output.statusCode >= 300) {
|
|
371
|
-
return de_CommandError(output, context);
|
|
372
|
-
}
|
|
373
|
-
const data = await parseBody(output.body, context);
|
|
374
|
-
let contents = {};
|
|
375
|
-
contents = de_AdvertiseByoipCidrResponse(data, context);
|
|
376
|
-
const response = {
|
|
377
|
-
$metadata: deserializeMetadata(output),
|
|
378
|
-
...contents,
|
|
379
|
-
};
|
|
380
|
-
return response;
|
|
381
|
-
};
|
|
382
|
-
export const de_AllowCustomRoutingTrafficCommand = async (output, context) => {
|
|
383
|
-
if (output.statusCode >= 300) {
|
|
384
|
-
return de_CommandError(output, context);
|
|
385
|
-
}
|
|
386
|
-
await collectBody(output.body, context);
|
|
387
|
-
const response = {
|
|
388
|
-
$metadata: deserializeMetadata(output),
|
|
389
|
-
};
|
|
390
|
-
return response;
|
|
391
|
-
};
|
|
392
|
-
export const de_CreateAcceleratorCommand = async (output, context) => {
|
|
393
|
-
if (output.statusCode >= 300) {
|
|
394
|
-
return de_CommandError(output, context);
|
|
395
|
-
}
|
|
396
|
-
const data = await parseBody(output.body, context);
|
|
397
|
-
let contents = {};
|
|
398
|
-
contents = de_CreateAcceleratorResponse(data, context);
|
|
399
|
-
const response = {
|
|
400
|
-
$metadata: deserializeMetadata(output),
|
|
401
|
-
...contents,
|
|
402
|
-
};
|
|
403
|
-
return response;
|
|
404
|
-
};
|
|
405
|
-
export const de_CreateCrossAccountAttachmentCommand = async (output, context) => {
|
|
406
|
-
if (output.statusCode >= 300) {
|
|
407
|
-
return de_CommandError(output, context);
|
|
408
|
-
}
|
|
409
|
-
const data = await parseBody(output.body, context);
|
|
410
|
-
let contents = {};
|
|
411
|
-
contents = de_CreateCrossAccountAttachmentResponse(data, context);
|
|
412
|
-
const response = {
|
|
413
|
-
$metadata: deserializeMetadata(output),
|
|
414
|
-
...contents,
|
|
415
|
-
};
|
|
416
|
-
return response;
|
|
417
|
-
};
|
|
418
|
-
export const de_CreateCustomRoutingAcceleratorCommand = async (output, context) => {
|
|
419
|
-
if (output.statusCode >= 300) {
|
|
420
|
-
return de_CommandError(output, context);
|
|
421
|
-
}
|
|
422
|
-
const data = await parseBody(output.body, context);
|
|
423
|
-
let contents = {};
|
|
424
|
-
contents = de_CreateCustomRoutingAcceleratorResponse(data, context);
|
|
425
|
-
const response = {
|
|
426
|
-
$metadata: deserializeMetadata(output),
|
|
427
|
-
...contents,
|
|
428
|
-
};
|
|
429
|
-
return response;
|
|
430
|
-
};
|
|
431
|
-
export const de_CreateCustomRoutingEndpointGroupCommand = async (output, context) => {
|
|
432
|
-
if (output.statusCode >= 300) {
|
|
433
|
-
return de_CommandError(output, context);
|
|
434
|
-
}
|
|
435
|
-
const data = await parseBody(output.body, context);
|
|
436
|
-
let contents = {};
|
|
437
|
-
contents = _json(data);
|
|
438
|
-
const response = {
|
|
439
|
-
$metadata: deserializeMetadata(output),
|
|
440
|
-
...contents,
|
|
441
|
-
};
|
|
442
|
-
return response;
|
|
443
|
-
};
|
|
444
|
-
export const de_CreateCustomRoutingListenerCommand = async (output, context) => {
|
|
445
|
-
if (output.statusCode >= 300) {
|
|
446
|
-
return de_CommandError(output, context);
|
|
447
|
-
}
|
|
448
|
-
const data = await parseBody(output.body, context);
|
|
449
|
-
let contents = {};
|
|
450
|
-
contents = _json(data);
|
|
451
|
-
const response = {
|
|
452
|
-
$metadata: deserializeMetadata(output),
|
|
453
|
-
...contents,
|
|
454
|
-
};
|
|
455
|
-
return response;
|
|
456
|
-
};
|
|
457
|
-
export const de_CreateEndpointGroupCommand = async (output, context) => {
|
|
458
|
-
if (output.statusCode >= 300) {
|
|
459
|
-
return de_CommandError(output, context);
|
|
460
|
-
}
|
|
461
|
-
const data = await parseBody(output.body, context);
|
|
462
|
-
let contents = {};
|
|
463
|
-
contents = de_CreateEndpointGroupResponse(data, context);
|
|
464
|
-
const response = {
|
|
465
|
-
$metadata: deserializeMetadata(output),
|
|
466
|
-
...contents,
|
|
467
|
-
};
|
|
468
|
-
return response;
|
|
469
|
-
};
|
|
470
|
-
export const de_CreateListenerCommand = async (output, context) => {
|
|
471
|
-
if (output.statusCode >= 300) {
|
|
472
|
-
return de_CommandError(output, context);
|
|
473
|
-
}
|
|
474
|
-
const data = await parseBody(output.body, context);
|
|
475
|
-
let contents = {};
|
|
476
|
-
contents = _json(data);
|
|
477
|
-
const response = {
|
|
478
|
-
$metadata: deserializeMetadata(output),
|
|
479
|
-
...contents,
|
|
480
|
-
};
|
|
481
|
-
return response;
|
|
482
|
-
};
|
|
483
|
-
export const de_DeleteAcceleratorCommand = async (output, context) => {
|
|
484
|
-
if (output.statusCode >= 300) {
|
|
485
|
-
return de_CommandError(output, context);
|
|
486
|
-
}
|
|
487
|
-
await collectBody(output.body, context);
|
|
488
|
-
const response = {
|
|
489
|
-
$metadata: deserializeMetadata(output),
|
|
490
|
-
};
|
|
491
|
-
return response;
|
|
492
|
-
};
|
|
493
|
-
export const de_DeleteCrossAccountAttachmentCommand = async (output, context) => {
|
|
494
|
-
if (output.statusCode >= 300) {
|
|
495
|
-
return de_CommandError(output, context);
|
|
496
|
-
}
|
|
497
|
-
await collectBody(output.body, context);
|
|
498
|
-
const response = {
|
|
499
|
-
$metadata: deserializeMetadata(output),
|
|
500
|
-
};
|
|
501
|
-
return response;
|
|
502
|
-
};
|
|
503
|
-
export const de_DeleteCustomRoutingAcceleratorCommand = async (output, context) => {
|
|
504
|
-
if (output.statusCode >= 300) {
|
|
505
|
-
return de_CommandError(output, context);
|
|
506
|
-
}
|
|
507
|
-
await collectBody(output.body, context);
|
|
508
|
-
const response = {
|
|
509
|
-
$metadata: deserializeMetadata(output),
|
|
510
|
-
};
|
|
511
|
-
return response;
|
|
512
|
-
};
|
|
513
|
-
export const de_DeleteCustomRoutingEndpointGroupCommand = async (output, context) => {
|
|
514
|
-
if (output.statusCode >= 300) {
|
|
515
|
-
return de_CommandError(output, context);
|
|
516
|
-
}
|
|
517
|
-
await collectBody(output.body, context);
|
|
518
|
-
const response = {
|
|
519
|
-
$metadata: deserializeMetadata(output),
|
|
520
|
-
};
|
|
521
|
-
return response;
|
|
522
|
-
};
|
|
523
|
-
export const de_DeleteCustomRoutingListenerCommand = async (output, context) => {
|
|
524
|
-
if (output.statusCode >= 300) {
|
|
525
|
-
return de_CommandError(output, context);
|
|
526
|
-
}
|
|
527
|
-
await collectBody(output.body, context);
|
|
528
|
-
const response = {
|
|
529
|
-
$metadata: deserializeMetadata(output),
|
|
530
|
-
};
|
|
531
|
-
return response;
|
|
532
|
-
};
|
|
533
|
-
export const de_DeleteEndpointGroupCommand = async (output, context) => {
|
|
534
|
-
if (output.statusCode >= 300) {
|
|
535
|
-
return de_CommandError(output, context);
|
|
536
|
-
}
|
|
537
|
-
await collectBody(output.body, context);
|
|
538
|
-
const response = {
|
|
539
|
-
$metadata: deserializeMetadata(output),
|
|
540
|
-
};
|
|
541
|
-
return response;
|
|
542
|
-
};
|
|
543
|
-
export const de_DeleteListenerCommand = async (output, context) => {
|
|
544
|
-
if (output.statusCode >= 300) {
|
|
545
|
-
return de_CommandError(output, context);
|
|
546
|
-
}
|
|
547
|
-
await collectBody(output.body, context);
|
|
548
|
-
const response = {
|
|
549
|
-
$metadata: deserializeMetadata(output),
|
|
550
|
-
};
|
|
551
|
-
return response;
|
|
552
|
-
};
|
|
553
|
-
export const de_DenyCustomRoutingTrafficCommand = async (output, context) => {
|
|
554
|
-
if (output.statusCode >= 300) {
|
|
555
|
-
return de_CommandError(output, context);
|
|
556
|
-
}
|
|
557
|
-
await collectBody(output.body, context);
|
|
558
|
-
const response = {
|
|
559
|
-
$metadata: deserializeMetadata(output),
|
|
560
|
-
};
|
|
561
|
-
return response;
|
|
562
|
-
};
|
|
563
|
-
export const de_DeprovisionByoipCidrCommand = async (output, context) => {
|
|
564
|
-
if (output.statusCode >= 300) {
|
|
565
|
-
return de_CommandError(output, context);
|
|
566
|
-
}
|
|
567
|
-
const data = await parseBody(output.body, context);
|
|
568
|
-
let contents = {};
|
|
569
|
-
contents = de_DeprovisionByoipCidrResponse(data, context);
|
|
570
|
-
const response = {
|
|
571
|
-
$metadata: deserializeMetadata(output),
|
|
572
|
-
...contents,
|
|
573
|
-
};
|
|
574
|
-
return response;
|
|
575
|
-
};
|
|
576
|
-
export const de_DescribeAcceleratorCommand = async (output, context) => {
|
|
577
|
-
if (output.statusCode >= 300) {
|
|
578
|
-
return de_CommandError(output, context);
|
|
579
|
-
}
|
|
580
|
-
const data = await parseBody(output.body, context);
|
|
581
|
-
let contents = {};
|
|
582
|
-
contents = de_DescribeAcceleratorResponse(data, context);
|
|
583
|
-
const response = {
|
|
584
|
-
$metadata: deserializeMetadata(output),
|
|
585
|
-
...contents,
|
|
586
|
-
};
|
|
587
|
-
return response;
|
|
588
|
-
};
|
|
589
|
-
export const de_DescribeAcceleratorAttributesCommand = async (output, context) => {
|
|
590
|
-
if (output.statusCode >= 300) {
|
|
591
|
-
return de_CommandError(output, context);
|
|
592
|
-
}
|
|
593
|
-
const data = await parseBody(output.body, context);
|
|
594
|
-
let contents = {};
|
|
595
|
-
contents = _json(data);
|
|
596
|
-
const response = {
|
|
597
|
-
$metadata: deserializeMetadata(output),
|
|
598
|
-
...contents,
|
|
599
|
-
};
|
|
600
|
-
return response;
|
|
601
|
-
};
|
|
602
|
-
export const de_DescribeCrossAccountAttachmentCommand = async (output, context) => {
|
|
603
|
-
if (output.statusCode >= 300) {
|
|
604
|
-
return de_CommandError(output, context);
|
|
605
|
-
}
|
|
606
|
-
const data = await parseBody(output.body, context);
|
|
607
|
-
let contents = {};
|
|
608
|
-
contents = de_DescribeCrossAccountAttachmentResponse(data, context);
|
|
609
|
-
const response = {
|
|
610
|
-
$metadata: deserializeMetadata(output),
|
|
611
|
-
...contents,
|
|
612
|
-
};
|
|
613
|
-
return response;
|
|
614
|
-
};
|
|
615
|
-
export const de_DescribeCustomRoutingAcceleratorCommand = async (output, context) => {
|
|
616
|
-
if (output.statusCode >= 300) {
|
|
617
|
-
return de_CommandError(output, context);
|
|
618
|
-
}
|
|
619
|
-
const data = await parseBody(output.body, context);
|
|
620
|
-
let contents = {};
|
|
621
|
-
contents = de_DescribeCustomRoutingAcceleratorResponse(data, context);
|
|
622
|
-
const response = {
|
|
623
|
-
$metadata: deserializeMetadata(output),
|
|
624
|
-
...contents,
|
|
625
|
-
};
|
|
626
|
-
return response;
|
|
627
|
-
};
|
|
628
|
-
export const de_DescribeCustomRoutingAcceleratorAttributesCommand = async (output, context) => {
|
|
629
|
-
if (output.statusCode >= 300) {
|
|
630
|
-
return de_CommandError(output, context);
|
|
631
|
-
}
|
|
632
|
-
const data = await parseBody(output.body, context);
|
|
633
|
-
let contents = {};
|
|
634
|
-
contents = _json(data);
|
|
635
|
-
const response = {
|
|
636
|
-
$metadata: deserializeMetadata(output),
|
|
637
|
-
...contents,
|
|
638
|
-
};
|
|
639
|
-
return response;
|
|
640
|
-
};
|
|
641
|
-
export const de_DescribeCustomRoutingEndpointGroupCommand = async (output, context) => {
|
|
642
|
-
if (output.statusCode >= 300) {
|
|
643
|
-
return de_CommandError(output, context);
|
|
644
|
-
}
|
|
645
|
-
const data = await parseBody(output.body, context);
|
|
646
|
-
let contents = {};
|
|
647
|
-
contents = _json(data);
|
|
648
|
-
const response = {
|
|
649
|
-
$metadata: deserializeMetadata(output),
|
|
650
|
-
...contents,
|
|
651
|
-
};
|
|
652
|
-
return response;
|
|
653
|
-
};
|
|
654
|
-
export const de_DescribeCustomRoutingListenerCommand = async (output, context) => {
|
|
655
|
-
if (output.statusCode >= 300) {
|
|
656
|
-
return de_CommandError(output, context);
|
|
657
|
-
}
|
|
658
|
-
const data = await parseBody(output.body, context);
|
|
659
|
-
let contents = {};
|
|
660
|
-
contents = _json(data);
|
|
661
|
-
const response = {
|
|
662
|
-
$metadata: deserializeMetadata(output),
|
|
663
|
-
...contents,
|
|
664
|
-
};
|
|
665
|
-
return response;
|
|
666
|
-
};
|
|
667
|
-
export const de_DescribeEndpointGroupCommand = async (output, context) => {
|
|
668
|
-
if (output.statusCode >= 300) {
|
|
669
|
-
return de_CommandError(output, context);
|
|
670
|
-
}
|
|
671
|
-
const data = await parseBody(output.body, context);
|
|
672
|
-
let contents = {};
|
|
673
|
-
contents = de_DescribeEndpointGroupResponse(data, context);
|
|
674
|
-
const response = {
|
|
675
|
-
$metadata: deserializeMetadata(output),
|
|
676
|
-
...contents,
|
|
677
|
-
};
|
|
678
|
-
return response;
|
|
679
|
-
};
|
|
680
|
-
export const de_DescribeListenerCommand = async (output, context) => {
|
|
681
|
-
if (output.statusCode >= 300) {
|
|
682
|
-
return de_CommandError(output, context);
|
|
683
|
-
}
|
|
684
|
-
const data = await parseBody(output.body, context);
|
|
685
|
-
let contents = {};
|
|
686
|
-
contents = _json(data);
|
|
687
|
-
const response = {
|
|
688
|
-
$metadata: deserializeMetadata(output),
|
|
689
|
-
...contents,
|
|
690
|
-
};
|
|
691
|
-
return response;
|
|
692
|
-
};
|
|
693
|
-
export const de_ListAcceleratorsCommand = async (output, context) => {
|
|
694
|
-
if (output.statusCode >= 300) {
|
|
695
|
-
return de_CommandError(output, context);
|
|
696
|
-
}
|
|
697
|
-
const data = await parseBody(output.body, context);
|
|
698
|
-
let contents = {};
|
|
699
|
-
contents = de_ListAcceleratorsResponse(data, context);
|
|
700
|
-
const response = {
|
|
701
|
-
$metadata: deserializeMetadata(output),
|
|
702
|
-
...contents,
|
|
703
|
-
};
|
|
704
|
-
return response;
|
|
705
|
-
};
|
|
706
|
-
export const de_ListByoipCidrsCommand = async (output, context) => {
|
|
707
|
-
if (output.statusCode >= 300) {
|
|
708
|
-
return de_CommandError(output, context);
|
|
709
|
-
}
|
|
710
|
-
const data = await parseBody(output.body, context);
|
|
711
|
-
let contents = {};
|
|
712
|
-
contents = de_ListByoipCidrsResponse(data, context);
|
|
713
|
-
const response = {
|
|
714
|
-
$metadata: deserializeMetadata(output),
|
|
715
|
-
...contents,
|
|
716
|
-
};
|
|
717
|
-
return response;
|
|
718
|
-
};
|
|
719
|
-
export const de_ListCrossAccountAttachmentsCommand = async (output, context) => {
|
|
720
|
-
if (output.statusCode >= 300) {
|
|
721
|
-
return de_CommandError(output, context);
|
|
722
|
-
}
|
|
723
|
-
const data = await parseBody(output.body, context);
|
|
724
|
-
let contents = {};
|
|
725
|
-
contents = de_ListCrossAccountAttachmentsResponse(data, context);
|
|
726
|
-
const response = {
|
|
727
|
-
$metadata: deserializeMetadata(output),
|
|
728
|
-
...contents,
|
|
729
|
-
};
|
|
730
|
-
return response;
|
|
731
|
-
};
|
|
732
|
-
export const de_ListCrossAccountResourceAccountsCommand = async (output, context) => {
|
|
733
|
-
if (output.statusCode >= 300) {
|
|
734
|
-
return de_CommandError(output, context);
|
|
735
|
-
}
|
|
736
|
-
const data = await parseBody(output.body, context);
|
|
737
|
-
let contents = {};
|
|
738
|
-
contents = _json(data);
|
|
739
|
-
const response = {
|
|
740
|
-
$metadata: deserializeMetadata(output),
|
|
741
|
-
...contents,
|
|
742
|
-
};
|
|
743
|
-
return response;
|
|
744
|
-
};
|
|
745
|
-
export const de_ListCrossAccountResourcesCommand = async (output, context) => {
|
|
746
|
-
if (output.statusCode >= 300) {
|
|
747
|
-
return de_CommandError(output, context);
|
|
748
|
-
}
|
|
749
|
-
const data = await parseBody(output.body, context);
|
|
750
|
-
let contents = {};
|
|
751
|
-
contents = _json(data);
|
|
752
|
-
const response = {
|
|
753
|
-
$metadata: deserializeMetadata(output),
|
|
754
|
-
...contents,
|
|
755
|
-
};
|
|
756
|
-
return response;
|
|
757
|
-
};
|
|
758
|
-
export const de_ListCustomRoutingAcceleratorsCommand = async (output, context) => {
|
|
759
|
-
if (output.statusCode >= 300) {
|
|
760
|
-
return de_CommandError(output, context);
|
|
761
|
-
}
|
|
762
|
-
const data = await parseBody(output.body, context);
|
|
763
|
-
let contents = {};
|
|
764
|
-
contents = de_ListCustomRoutingAcceleratorsResponse(data, context);
|
|
765
|
-
const response = {
|
|
766
|
-
$metadata: deserializeMetadata(output),
|
|
767
|
-
...contents,
|
|
768
|
-
};
|
|
769
|
-
return response;
|
|
770
|
-
};
|
|
771
|
-
export const de_ListCustomRoutingEndpointGroupsCommand = async (output, context) => {
|
|
772
|
-
if (output.statusCode >= 300) {
|
|
773
|
-
return de_CommandError(output, context);
|
|
774
|
-
}
|
|
775
|
-
const data = await parseBody(output.body, context);
|
|
776
|
-
let contents = {};
|
|
777
|
-
contents = _json(data);
|
|
778
|
-
const response = {
|
|
779
|
-
$metadata: deserializeMetadata(output),
|
|
780
|
-
...contents,
|
|
781
|
-
};
|
|
782
|
-
return response;
|
|
783
|
-
};
|
|
784
|
-
export const de_ListCustomRoutingListenersCommand = async (output, context) => {
|
|
785
|
-
if (output.statusCode >= 300) {
|
|
786
|
-
return de_CommandError(output, context);
|
|
787
|
-
}
|
|
788
|
-
const data = await parseBody(output.body, context);
|
|
789
|
-
let contents = {};
|
|
790
|
-
contents = _json(data);
|
|
791
|
-
const response = {
|
|
792
|
-
$metadata: deserializeMetadata(output),
|
|
793
|
-
...contents,
|
|
794
|
-
};
|
|
795
|
-
return response;
|
|
796
|
-
};
|
|
797
|
-
export const de_ListCustomRoutingPortMappingsCommand = async (output, context) => {
|
|
798
|
-
if (output.statusCode >= 300) {
|
|
799
|
-
return de_CommandError(output, context);
|
|
800
|
-
}
|
|
801
|
-
const data = await parseBody(output.body, context);
|
|
802
|
-
let contents = {};
|
|
803
|
-
contents = _json(data);
|
|
804
|
-
const response = {
|
|
805
|
-
$metadata: deserializeMetadata(output),
|
|
806
|
-
...contents,
|
|
807
|
-
};
|
|
808
|
-
return response;
|
|
809
|
-
};
|
|
810
|
-
export const de_ListCustomRoutingPortMappingsByDestinationCommand = async (output, context) => {
|
|
811
|
-
if (output.statusCode >= 300) {
|
|
812
|
-
return de_CommandError(output, context);
|
|
813
|
-
}
|
|
814
|
-
const data = await parseBody(output.body, context);
|
|
815
|
-
let contents = {};
|
|
816
|
-
contents = _json(data);
|
|
817
|
-
const response = {
|
|
818
|
-
$metadata: deserializeMetadata(output),
|
|
819
|
-
...contents,
|
|
820
|
-
};
|
|
821
|
-
return response;
|
|
822
|
-
};
|
|
823
|
-
export const de_ListEndpointGroupsCommand = async (output, context) => {
|
|
824
|
-
if (output.statusCode >= 300) {
|
|
825
|
-
return de_CommandError(output, context);
|
|
826
|
-
}
|
|
827
|
-
const data = await parseBody(output.body, context);
|
|
828
|
-
let contents = {};
|
|
829
|
-
contents = de_ListEndpointGroupsResponse(data, context);
|
|
830
|
-
const response = {
|
|
831
|
-
$metadata: deserializeMetadata(output),
|
|
832
|
-
...contents,
|
|
833
|
-
};
|
|
834
|
-
return response;
|
|
835
|
-
};
|
|
836
|
-
export const de_ListListenersCommand = async (output, context) => {
|
|
837
|
-
if (output.statusCode >= 300) {
|
|
838
|
-
return de_CommandError(output, context);
|
|
839
|
-
}
|
|
840
|
-
const data = await parseBody(output.body, context);
|
|
841
|
-
let contents = {};
|
|
842
|
-
contents = _json(data);
|
|
843
|
-
const response = {
|
|
844
|
-
$metadata: deserializeMetadata(output),
|
|
845
|
-
...contents,
|
|
846
|
-
};
|
|
847
|
-
return response;
|
|
848
|
-
};
|
|
849
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
850
|
-
if (output.statusCode >= 300) {
|
|
851
|
-
return de_CommandError(output, context);
|
|
852
|
-
}
|
|
853
|
-
const data = await parseBody(output.body, context);
|
|
854
|
-
let contents = {};
|
|
855
|
-
contents = _json(data);
|
|
856
|
-
const response = {
|
|
857
|
-
$metadata: deserializeMetadata(output),
|
|
858
|
-
...contents,
|
|
859
|
-
};
|
|
860
|
-
return response;
|
|
861
|
-
};
|
|
862
|
-
export const de_ProvisionByoipCidrCommand = async (output, context) => {
|
|
863
|
-
if (output.statusCode >= 300) {
|
|
864
|
-
return de_CommandError(output, context);
|
|
865
|
-
}
|
|
866
|
-
const data = await parseBody(output.body, context);
|
|
867
|
-
let contents = {};
|
|
868
|
-
contents = de_ProvisionByoipCidrResponse(data, context);
|
|
869
|
-
const response = {
|
|
870
|
-
$metadata: deserializeMetadata(output),
|
|
871
|
-
...contents,
|
|
872
|
-
};
|
|
873
|
-
return response;
|
|
874
|
-
};
|
|
875
|
-
export const de_RemoveCustomRoutingEndpointsCommand = async (output, context) => {
|
|
876
|
-
if (output.statusCode >= 300) {
|
|
877
|
-
return de_CommandError(output, context);
|
|
878
|
-
}
|
|
879
|
-
await collectBody(output.body, context);
|
|
880
|
-
const response = {
|
|
881
|
-
$metadata: deserializeMetadata(output),
|
|
882
|
-
};
|
|
883
|
-
return response;
|
|
884
|
-
};
|
|
885
|
-
export const de_RemoveEndpointsCommand = async (output, context) => {
|
|
886
|
-
if (output.statusCode >= 300) {
|
|
887
|
-
return de_CommandError(output, context);
|
|
888
|
-
}
|
|
889
|
-
await collectBody(output.body, context);
|
|
890
|
-
const response = {
|
|
891
|
-
$metadata: deserializeMetadata(output),
|
|
892
|
-
};
|
|
893
|
-
return response;
|
|
894
|
-
};
|
|
895
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
896
|
-
if (output.statusCode >= 300) {
|
|
897
|
-
return de_CommandError(output, context);
|
|
898
|
-
}
|
|
899
|
-
const data = await parseBody(output.body, context);
|
|
900
|
-
let contents = {};
|
|
901
|
-
contents = _json(data);
|
|
902
|
-
const response = {
|
|
903
|
-
$metadata: deserializeMetadata(output),
|
|
904
|
-
...contents,
|
|
905
|
-
};
|
|
906
|
-
return response;
|
|
907
|
-
};
|
|
908
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
909
|
-
if (output.statusCode >= 300) {
|
|
910
|
-
return de_CommandError(output, context);
|
|
911
|
-
}
|
|
912
|
-
const data = await parseBody(output.body, context);
|
|
913
|
-
let contents = {};
|
|
914
|
-
contents = _json(data);
|
|
915
|
-
const response = {
|
|
916
|
-
$metadata: deserializeMetadata(output),
|
|
917
|
-
...contents,
|
|
918
|
-
};
|
|
919
|
-
return response;
|
|
920
|
-
};
|
|
921
|
-
export const de_UpdateAcceleratorCommand = async (output, context) => {
|
|
922
|
-
if (output.statusCode >= 300) {
|
|
923
|
-
return de_CommandError(output, context);
|
|
924
|
-
}
|
|
925
|
-
const data = await parseBody(output.body, context);
|
|
926
|
-
let contents = {};
|
|
927
|
-
contents = de_UpdateAcceleratorResponse(data, context);
|
|
928
|
-
const response = {
|
|
929
|
-
$metadata: deserializeMetadata(output),
|
|
930
|
-
...contents,
|
|
931
|
-
};
|
|
932
|
-
return response;
|
|
933
|
-
};
|
|
934
|
-
export const de_UpdateAcceleratorAttributesCommand = async (output, context) => {
|
|
935
|
-
if (output.statusCode >= 300) {
|
|
936
|
-
return de_CommandError(output, context);
|
|
937
|
-
}
|
|
938
|
-
const data = await parseBody(output.body, context);
|
|
939
|
-
let contents = {};
|
|
940
|
-
contents = _json(data);
|
|
941
|
-
const response = {
|
|
942
|
-
$metadata: deserializeMetadata(output),
|
|
943
|
-
...contents,
|
|
944
|
-
};
|
|
945
|
-
return response;
|
|
946
|
-
};
|
|
947
|
-
export const de_UpdateCrossAccountAttachmentCommand = async (output, context) => {
|
|
948
|
-
if (output.statusCode >= 300) {
|
|
949
|
-
return de_CommandError(output, context);
|
|
950
|
-
}
|
|
951
|
-
const data = await parseBody(output.body, context);
|
|
952
|
-
let contents = {};
|
|
953
|
-
contents = de_UpdateCrossAccountAttachmentResponse(data, context);
|
|
954
|
-
const response = {
|
|
955
|
-
$metadata: deserializeMetadata(output),
|
|
956
|
-
...contents,
|
|
957
|
-
};
|
|
958
|
-
return response;
|
|
959
|
-
};
|
|
960
|
-
export const de_UpdateCustomRoutingAcceleratorCommand = async (output, context) => {
|
|
961
|
-
if (output.statusCode >= 300) {
|
|
962
|
-
return de_CommandError(output, context);
|
|
963
|
-
}
|
|
964
|
-
const data = await parseBody(output.body, context);
|
|
965
|
-
let contents = {};
|
|
966
|
-
contents = de_UpdateCustomRoutingAcceleratorResponse(data, context);
|
|
967
|
-
const response = {
|
|
968
|
-
$metadata: deserializeMetadata(output),
|
|
969
|
-
...contents,
|
|
970
|
-
};
|
|
971
|
-
return response;
|
|
972
|
-
};
|
|
973
|
-
export const de_UpdateCustomRoutingAcceleratorAttributesCommand = async (output, context) => {
|
|
974
|
-
if (output.statusCode >= 300) {
|
|
975
|
-
return de_CommandError(output, context);
|
|
976
|
-
}
|
|
977
|
-
const data = await parseBody(output.body, context);
|
|
978
|
-
let contents = {};
|
|
979
|
-
contents = _json(data);
|
|
980
|
-
const response = {
|
|
981
|
-
$metadata: deserializeMetadata(output),
|
|
982
|
-
...contents,
|
|
983
|
-
};
|
|
984
|
-
return response;
|
|
985
|
-
};
|
|
986
|
-
export const de_UpdateCustomRoutingListenerCommand = async (output, context) => {
|
|
987
|
-
if (output.statusCode >= 300) {
|
|
988
|
-
return de_CommandError(output, context);
|
|
989
|
-
}
|
|
990
|
-
const data = await parseBody(output.body, context);
|
|
991
|
-
let contents = {};
|
|
992
|
-
contents = _json(data);
|
|
993
|
-
const response = {
|
|
994
|
-
$metadata: deserializeMetadata(output),
|
|
995
|
-
...contents,
|
|
996
|
-
};
|
|
997
|
-
return response;
|
|
998
|
-
};
|
|
999
|
-
export const de_UpdateEndpointGroupCommand = async (output, context) => {
|
|
1000
|
-
if (output.statusCode >= 300) {
|
|
1001
|
-
return de_CommandError(output, context);
|
|
1002
|
-
}
|
|
1003
|
-
const data = await parseBody(output.body, context);
|
|
1004
|
-
let contents = {};
|
|
1005
|
-
contents = de_UpdateEndpointGroupResponse(data, context);
|
|
1006
|
-
const response = {
|
|
1007
|
-
$metadata: deserializeMetadata(output),
|
|
1008
|
-
...contents,
|
|
1009
|
-
};
|
|
1010
|
-
return response;
|
|
1011
|
-
};
|
|
1012
|
-
export const de_UpdateListenerCommand = async (output, context) => {
|
|
1013
|
-
if (output.statusCode >= 300) {
|
|
1014
|
-
return de_CommandError(output, context);
|
|
1015
|
-
}
|
|
1016
|
-
const data = await parseBody(output.body, context);
|
|
1017
|
-
let contents = {};
|
|
1018
|
-
contents = _json(data);
|
|
1019
|
-
const response = {
|
|
1020
|
-
$metadata: deserializeMetadata(output),
|
|
1021
|
-
...contents,
|
|
1022
|
-
};
|
|
1023
|
-
return response;
|
|
1024
|
-
};
|
|
1025
|
-
export const de_WithdrawByoipCidrCommand = async (output, context) => {
|
|
1026
|
-
if (output.statusCode >= 300) {
|
|
1027
|
-
return de_CommandError(output, context);
|
|
1028
|
-
}
|
|
1029
|
-
const data = await parseBody(output.body, context);
|
|
1030
|
-
let contents = {};
|
|
1031
|
-
contents = de_WithdrawByoipCidrResponse(data, context);
|
|
1032
|
-
const response = {
|
|
1033
|
-
$metadata: deserializeMetadata(output),
|
|
1034
|
-
...contents,
|
|
1035
|
-
};
|
|
1036
|
-
return response;
|
|
1037
|
-
};
|
|
1038
|
-
const de_CommandError = async (output, context) => {
|
|
1039
|
-
const parsedOutput = {
|
|
1040
|
-
...output,
|
|
1041
|
-
body: await parseErrorBody(output.body, context),
|
|
1042
|
-
};
|
|
1043
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1044
|
-
switch (errorCode) {
|
|
1045
|
-
case "AccessDeniedException":
|
|
1046
|
-
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
1047
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1048
|
-
case "ConflictException":
|
|
1049
|
-
case "com.amazonaws.globalaccelerator#ConflictException":
|
|
1050
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1051
|
-
case "EndpointAlreadyExistsException":
|
|
1052
|
-
case "com.amazonaws.globalaccelerator#EndpointAlreadyExistsException":
|
|
1053
|
-
throw await de_EndpointAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1054
|
-
case "EndpointGroupNotFoundException":
|
|
1055
|
-
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
|
|
1056
|
-
throw await de_EndpointGroupNotFoundExceptionRes(parsedOutput, context);
|
|
1057
|
-
case "InternalServiceErrorException":
|
|
1058
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1059
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1060
|
-
case "InvalidArgumentException":
|
|
1061
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1062
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1063
|
-
case "LimitExceededException":
|
|
1064
|
-
case "com.amazonaws.globalaccelerator#LimitExceededException":
|
|
1065
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1066
|
-
case "TransactionInProgressException":
|
|
1067
|
-
case "com.amazonaws.globalaccelerator#TransactionInProgressException":
|
|
1068
|
-
throw await de_TransactionInProgressExceptionRes(parsedOutput, context);
|
|
1069
|
-
case "ByoipCidrNotFoundException":
|
|
1070
|
-
case "com.amazonaws.globalaccelerator#ByoipCidrNotFoundException":
|
|
1071
|
-
throw await de_ByoipCidrNotFoundExceptionRes(parsedOutput, context);
|
|
1072
|
-
case "IncorrectCidrStateException":
|
|
1073
|
-
case "com.amazonaws.globalaccelerator#IncorrectCidrStateException":
|
|
1074
|
-
throw await de_IncorrectCidrStateExceptionRes(parsedOutput, context);
|
|
1075
|
-
case "AcceleratorNotFoundException":
|
|
1076
|
-
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
1077
|
-
throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
|
|
1078
|
-
case "EndpointGroupAlreadyExistsException":
|
|
1079
|
-
case "com.amazonaws.globalaccelerator#EndpointGroupAlreadyExistsException":
|
|
1080
|
-
throw await de_EndpointGroupAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1081
|
-
case "InvalidPortRangeException":
|
|
1082
|
-
case "com.amazonaws.globalaccelerator#InvalidPortRangeException":
|
|
1083
|
-
throw await de_InvalidPortRangeExceptionRes(parsedOutput, context);
|
|
1084
|
-
case "ListenerNotFoundException":
|
|
1085
|
-
case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
|
|
1086
|
-
throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
|
|
1087
|
-
case "AcceleratorNotDisabledException":
|
|
1088
|
-
case "com.amazonaws.globalaccelerator#AcceleratorNotDisabledException":
|
|
1089
|
-
throw await de_AcceleratorNotDisabledExceptionRes(parsedOutput, context);
|
|
1090
|
-
case "AssociatedListenerFoundException":
|
|
1091
|
-
case "com.amazonaws.globalaccelerator#AssociatedListenerFoundException":
|
|
1092
|
-
throw await de_AssociatedListenerFoundExceptionRes(parsedOutput, context);
|
|
1093
|
-
case "AttachmentNotFoundException":
|
|
1094
|
-
case "com.amazonaws.globalaccelerator#AttachmentNotFoundException":
|
|
1095
|
-
throw await de_AttachmentNotFoundExceptionRes(parsedOutput, context);
|
|
1096
|
-
case "AssociatedEndpointGroupFoundException":
|
|
1097
|
-
case "com.amazonaws.globalaccelerator#AssociatedEndpointGroupFoundException":
|
|
1098
|
-
throw await de_AssociatedEndpointGroupFoundExceptionRes(parsedOutput, context);
|
|
1099
|
-
case "InvalidNextTokenException":
|
|
1100
|
-
case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
|
|
1101
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1102
|
-
case "EndpointNotFoundException":
|
|
1103
|
-
case "com.amazonaws.globalaccelerator#EndpointNotFoundException":
|
|
1104
|
-
throw await de_EndpointNotFoundExceptionRes(parsedOutput, context);
|
|
1105
|
-
default:
|
|
1106
|
-
const parsedBody = parsedOutput.body;
|
|
1107
|
-
return throwDefaultError({
|
|
1108
|
-
output,
|
|
1109
|
-
parsedBody,
|
|
1110
|
-
errorCode,
|
|
1111
|
-
});
|
|
1112
|
-
}
|
|
1113
|
-
};
|
|
1114
|
-
const de_AcceleratorNotDisabledExceptionRes = async (parsedOutput, context) => {
|
|
1115
|
-
const body = parsedOutput.body;
|
|
1116
|
-
const deserialized = _json(body);
|
|
1117
|
-
const exception = new AcceleratorNotDisabledException({
|
|
1118
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1119
|
-
...deserialized,
|
|
1120
|
-
});
|
|
1121
|
-
return __decorateServiceException(exception, body);
|
|
1122
|
-
};
|
|
1123
|
-
const de_AcceleratorNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1124
|
-
const body = parsedOutput.body;
|
|
1125
|
-
const deserialized = _json(body);
|
|
1126
|
-
const exception = new AcceleratorNotFoundException({
|
|
1127
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1128
|
-
...deserialized,
|
|
1129
|
-
});
|
|
1130
|
-
return __decorateServiceException(exception, body);
|
|
1131
|
-
};
|
|
1132
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1133
|
-
const body = parsedOutput.body;
|
|
1134
|
-
const deserialized = _json(body);
|
|
1135
|
-
const exception = new AccessDeniedException({
|
|
1136
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1137
|
-
...deserialized,
|
|
1138
|
-
});
|
|
1139
|
-
return __decorateServiceException(exception, body);
|
|
1140
|
-
};
|
|
1141
|
-
const de_AssociatedEndpointGroupFoundExceptionRes = async (parsedOutput, context) => {
|
|
1142
|
-
const body = parsedOutput.body;
|
|
1143
|
-
const deserialized = _json(body);
|
|
1144
|
-
const exception = new AssociatedEndpointGroupFoundException({
|
|
1145
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1146
|
-
...deserialized,
|
|
1147
|
-
});
|
|
1148
|
-
return __decorateServiceException(exception, body);
|
|
1149
|
-
};
|
|
1150
|
-
const de_AssociatedListenerFoundExceptionRes = async (parsedOutput, context) => {
|
|
1151
|
-
const body = parsedOutput.body;
|
|
1152
|
-
const deserialized = _json(body);
|
|
1153
|
-
const exception = new AssociatedListenerFoundException({
|
|
1154
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1155
|
-
...deserialized,
|
|
1156
|
-
});
|
|
1157
|
-
return __decorateServiceException(exception, body);
|
|
1158
|
-
};
|
|
1159
|
-
const de_AttachmentNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1160
|
-
const body = parsedOutput.body;
|
|
1161
|
-
const deserialized = _json(body);
|
|
1162
|
-
const exception = new AttachmentNotFoundException({
|
|
1163
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1164
|
-
...deserialized,
|
|
1165
|
-
});
|
|
1166
|
-
return __decorateServiceException(exception, body);
|
|
1167
|
-
};
|
|
1168
|
-
const de_ByoipCidrNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1169
|
-
const body = parsedOutput.body;
|
|
1170
|
-
const deserialized = _json(body);
|
|
1171
|
-
const exception = new ByoipCidrNotFoundException({
|
|
1172
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1173
|
-
...deserialized,
|
|
1174
|
-
});
|
|
1175
|
-
return __decorateServiceException(exception, body);
|
|
1176
|
-
};
|
|
1177
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1178
|
-
const body = parsedOutput.body;
|
|
1179
|
-
const deserialized = _json(body);
|
|
1180
|
-
const exception = new ConflictException({
|
|
1181
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1182
|
-
...deserialized,
|
|
1183
|
-
});
|
|
1184
|
-
return __decorateServiceException(exception, body);
|
|
1185
|
-
};
|
|
1186
|
-
const de_EndpointAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1187
|
-
const body = parsedOutput.body;
|
|
1188
|
-
const deserialized = _json(body);
|
|
1189
|
-
const exception = new EndpointAlreadyExistsException({
|
|
1190
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1191
|
-
...deserialized,
|
|
1192
|
-
});
|
|
1193
|
-
return __decorateServiceException(exception, body);
|
|
1194
|
-
};
|
|
1195
|
-
const de_EndpointGroupAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1196
|
-
const body = parsedOutput.body;
|
|
1197
|
-
const deserialized = _json(body);
|
|
1198
|
-
const exception = new EndpointGroupAlreadyExistsException({
|
|
1199
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1200
|
-
...deserialized,
|
|
1201
|
-
});
|
|
1202
|
-
return __decorateServiceException(exception, body);
|
|
1203
|
-
};
|
|
1204
|
-
const de_EndpointGroupNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1205
|
-
const body = parsedOutput.body;
|
|
1206
|
-
const deserialized = _json(body);
|
|
1207
|
-
const exception = new EndpointGroupNotFoundException({
|
|
1208
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1209
|
-
...deserialized,
|
|
1210
|
-
});
|
|
1211
|
-
return __decorateServiceException(exception, body);
|
|
1212
|
-
};
|
|
1213
|
-
const de_EndpointNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1214
|
-
const body = parsedOutput.body;
|
|
1215
|
-
const deserialized = _json(body);
|
|
1216
|
-
const exception = new EndpointNotFoundException({
|
|
1217
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1218
|
-
...deserialized,
|
|
1219
|
-
});
|
|
1220
|
-
return __decorateServiceException(exception, body);
|
|
1221
|
-
};
|
|
1222
|
-
const de_IncorrectCidrStateExceptionRes = async (parsedOutput, context) => {
|
|
1223
|
-
const body = parsedOutput.body;
|
|
1224
|
-
const deserialized = _json(body);
|
|
1225
|
-
const exception = new IncorrectCidrStateException({
|
|
1226
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1227
|
-
...deserialized,
|
|
1228
|
-
});
|
|
1229
|
-
return __decorateServiceException(exception, body);
|
|
1230
|
-
};
|
|
1231
|
-
const de_InternalServiceErrorExceptionRes = async (parsedOutput, context) => {
|
|
1232
|
-
const body = parsedOutput.body;
|
|
1233
|
-
const deserialized = _json(body);
|
|
1234
|
-
const exception = new InternalServiceErrorException({
|
|
1235
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1236
|
-
...deserialized,
|
|
1237
|
-
});
|
|
1238
|
-
return __decorateServiceException(exception, body);
|
|
1239
|
-
};
|
|
1240
|
-
const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
|
|
1241
|
-
const body = parsedOutput.body;
|
|
1242
|
-
const deserialized = _json(body);
|
|
1243
|
-
const exception = new InvalidArgumentException({
|
|
1244
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1245
|
-
...deserialized,
|
|
1246
|
-
});
|
|
1247
|
-
return __decorateServiceException(exception, body);
|
|
1248
|
-
};
|
|
1249
|
-
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
1250
|
-
const body = parsedOutput.body;
|
|
1251
|
-
const deserialized = _json(body);
|
|
1252
|
-
const exception = new InvalidNextTokenException({
|
|
1253
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1254
|
-
...deserialized,
|
|
1255
|
-
});
|
|
1256
|
-
return __decorateServiceException(exception, body);
|
|
1257
|
-
};
|
|
1258
|
-
const de_InvalidPortRangeExceptionRes = async (parsedOutput, context) => {
|
|
1259
|
-
const body = parsedOutput.body;
|
|
1260
|
-
const deserialized = _json(body);
|
|
1261
|
-
const exception = new InvalidPortRangeException({
|
|
1262
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1263
|
-
...deserialized,
|
|
1264
|
-
});
|
|
1265
|
-
return __decorateServiceException(exception, body);
|
|
1266
|
-
};
|
|
1267
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1268
|
-
const body = parsedOutput.body;
|
|
1269
|
-
const deserialized = _json(body);
|
|
1270
|
-
const exception = new LimitExceededException({
|
|
1271
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1272
|
-
...deserialized,
|
|
1273
|
-
});
|
|
1274
|
-
return __decorateServiceException(exception, body);
|
|
1275
|
-
};
|
|
1276
|
-
const de_ListenerNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1277
|
-
const body = parsedOutput.body;
|
|
1278
|
-
const deserialized = _json(body);
|
|
1279
|
-
const exception = new ListenerNotFoundException({
|
|
1280
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1281
|
-
...deserialized,
|
|
1282
|
-
});
|
|
1283
|
-
return __decorateServiceException(exception, body);
|
|
1284
|
-
};
|
|
1285
|
-
const de_TransactionInProgressExceptionRes = async (parsedOutput, context) => {
|
|
1286
|
-
const body = parsedOutput.body;
|
|
1287
|
-
const deserialized = _json(body);
|
|
1288
|
-
const exception = new TransactionInProgressException({
|
|
1289
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1290
|
-
...deserialized,
|
|
1291
|
-
});
|
|
1292
|
-
return __decorateServiceException(exception, body);
|
|
1293
|
-
};
|
|
1294
|
-
const se_CreateAcceleratorRequest = (input, context) => {
|
|
1295
|
-
return take(input, {
|
|
1296
|
-
Enabled: [],
|
|
1297
|
-
IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1298
|
-
IpAddressType: [],
|
|
1299
|
-
IpAddresses: _json,
|
|
1300
|
-
Name: [],
|
|
1301
|
-
Tags: _json,
|
|
1302
|
-
});
|
|
1303
|
-
};
|
|
1304
|
-
const se_CreateCrossAccountAttachmentRequest = (input, context) => {
|
|
1305
|
-
return take(input, {
|
|
1306
|
-
IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1307
|
-
Name: [],
|
|
1308
|
-
Principals: _json,
|
|
1309
|
-
Resources: _json,
|
|
1310
|
-
Tags: _json,
|
|
1311
|
-
});
|
|
1312
|
-
};
|
|
1313
|
-
const se_CreateCustomRoutingAcceleratorRequest = (input, context) => {
|
|
1314
|
-
return take(input, {
|
|
1315
|
-
Enabled: [],
|
|
1316
|
-
IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1317
|
-
IpAddressType: [],
|
|
1318
|
-
IpAddresses: _json,
|
|
1319
|
-
Name: [],
|
|
1320
|
-
Tags: _json,
|
|
1321
|
-
});
|
|
1322
|
-
};
|
|
1323
|
-
const se_CreateCustomRoutingEndpointGroupRequest = (input, context) => {
|
|
1324
|
-
return take(input, {
|
|
1325
|
-
DestinationConfigurations: _json,
|
|
1326
|
-
EndpointGroupRegion: [],
|
|
1327
|
-
IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1328
|
-
ListenerArn: [],
|
|
1329
|
-
});
|
|
1330
|
-
};
|
|
1331
|
-
const se_CreateCustomRoutingListenerRequest = (input, context) => {
|
|
1332
|
-
return take(input, {
|
|
1333
|
-
AcceleratorArn: [],
|
|
1334
|
-
IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1335
|
-
PortRanges: _json,
|
|
1336
|
-
});
|
|
1337
|
-
};
|
|
1338
|
-
const se_CreateEndpointGroupRequest = (input, context) => {
|
|
1339
|
-
return take(input, {
|
|
1340
|
-
EndpointConfigurations: _json,
|
|
1341
|
-
EndpointGroupRegion: [],
|
|
1342
|
-
HealthCheckIntervalSeconds: [],
|
|
1343
|
-
HealthCheckPath: [],
|
|
1344
|
-
HealthCheckPort: [],
|
|
1345
|
-
HealthCheckProtocol: [],
|
|
1346
|
-
IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1347
|
-
ListenerArn: [],
|
|
1348
|
-
PortOverrides: _json,
|
|
1349
|
-
ThresholdCount: [],
|
|
1350
|
-
TrafficDialPercentage: __serializeFloat,
|
|
1351
|
-
});
|
|
1352
|
-
};
|
|
1353
|
-
const se_CreateListenerRequest = (input, context) => {
|
|
1354
|
-
return take(input, {
|
|
1355
|
-
AcceleratorArn: [],
|
|
1356
|
-
ClientAffinity: [],
|
|
1357
|
-
IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1358
|
-
PortRanges: _json,
|
|
1359
|
-
Protocol: [],
|
|
1360
|
-
});
|
|
1361
|
-
};
|
|
1362
|
-
const se_UpdateEndpointGroupRequest = (input, context) => {
|
|
1363
|
-
return take(input, {
|
|
1364
|
-
EndpointConfigurations: _json,
|
|
1365
|
-
EndpointGroupArn: [],
|
|
1366
|
-
HealthCheckIntervalSeconds: [],
|
|
1367
|
-
HealthCheckPath: [],
|
|
1368
|
-
HealthCheckPort: [],
|
|
1369
|
-
HealthCheckProtocol: [],
|
|
1370
|
-
PortOverrides: _json,
|
|
1371
|
-
ThresholdCount: [],
|
|
1372
|
-
TrafficDialPercentage: __serializeFloat,
|
|
1373
|
-
});
|
|
1374
|
-
};
|
|
1375
|
-
const de_Accelerator = (output, context) => {
|
|
1376
|
-
return take(output, {
|
|
1377
|
-
AcceleratorArn: __expectString,
|
|
1378
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1379
|
-
DnsName: __expectString,
|
|
1380
|
-
DualStackDnsName: __expectString,
|
|
1381
|
-
Enabled: __expectBoolean,
|
|
1382
|
-
Events: (_) => de_AcceleratorEvents(_, context),
|
|
1383
|
-
IpAddressType: __expectString,
|
|
1384
|
-
IpSets: _json,
|
|
1385
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1386
|
-
Name: __expectString,
|
|
1387
|
-
Status: __expectString,
|
|
1388
|
-
});
|
|
1389
|
-
};
|
|
1390
|
-
const de_AcceleratorEvent = (output, context) => {
|
|
1391
|
-
return take(output, {
|
|
1392
|
-
Message: __expectString,
|
|
1393
|
-
Timestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1394
|
-
});
|
|
1395
|
-
};
|
|
1396
|
-
const de_AcceleratorEvents = (output, context) => {
|
|
1397
|
-
const retVal = (output || [])
|
|
1398
|
-
.filter((e) => e != null)
|
|
1399
|
-
.map((entry) => {
|
|
1400
|
-
return de_AcceleratorEvent(entry, context);
|
|
1401
|
-
});
|
|
1402
|
-
return retVal;
|
|
1403
|
-
};
|
|
1404
|
-
const de_Accelerators = (output, context) => {
|
|
1405
|
-
const retVal = (output || [])
|
|
1406
|
-
.filter((e) => e != null)
|
|
1407
|
-
.map((entry) => {
|
|
1408
|
-
return de_Accelerator(entry, context);
|
|
1409
|
-
});
|
|
1410
|
-
return retVal;
|
|
1411
|
-
};
|
|
1412
|
-
const de_AdvertiseByoipCidrResponse = (output, context) => {
|
|
1413
|
-
return take(output, {
|
|
1414
|
-
ByoipCidr: (_) => de_ByoipCidr(_, context),
|
|
1415
|
-
});
|
|
1416
|
-
};
|
|
1417
|
-
const de_Attachment = (output, context) => {
|
|
1418
|
-
return take(output, {
|
|
1419
|
-
AttachmentArn: __expectString,
|
|
1420
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1421
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1422
|
-
Name: __expectString,
|
|
1423
|
-
Principals: _json,
|
|
1424
|
-
Resources: _json,
|
|
1425
|
-
});
|
|
1426
|
-
};
|
|
1427
|
-
const de_Attachments = (output, context) => {
|
|
1428
|
-
const retVal = (output || [])
|
|
1429
|
-
.filter((e) => e != null)
|
|
1430
|
-
.map((entry) => {
|
|
1431
|
-
return de_Attachment(entry, context);
|
|
1432
|
-
});
|
|
1433
|
-
return retVal;
|
|
1434
|
-
};
|
|
1435
|
-
const de_ByoipCidr = (output, context) => {
|
|
1436
|
-
return take(output, {
|
|
1437
|
-
Cidr: __expectString,
|
|
1438
|
-
Events: (_) => de_ByoipCidrEvents(_, context),
|
|
1439
|
-
State: __expectString,
|
|
1440
|
-
});
|
|
1441
|
-
};
|
|
1442
|
-
const de_ByoipCidrEvent = (output, context) => {
|
|
1443
|
-
return take(output, {
|
|
1444
|
-
Message: __expectString,
|
|
1445
|
-
Timestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1446
|
-
});
|
|
1447
|
-
};
|
|
1448
|
-
const de_ByoipCidrEvents = (output, context) => {
|
|
1449
|
-
const retVal = (output || [])
|
|
1450
|
-
.filter((e) => e != null)
|
|
1451
|
-
.map((entry) => {
|
|
1452
|
-
return de_ByoipCidrEvent(entry, context);
|
|
1453
|
-
});
|
|
1454
|
-
return retVal;
|
|
1455
|
-
};
|
|
1456
|
-
const de_ByoipCidrs = (output, context) => {
|
|
1457
|
-
const retVal = (output || [])
|
|
1458
|
-
.filter((e) => e != null)
|
|
1459
|
-
.map((entry) => {
|
|
1460
|
-
return de_ByoipCidr(entry, context);
|
|
1461
|
-
});
|
|
1462
|
-
return retVal;
|
|
1463
|
-
};
|
|
1464
|
-
const de_CreateAcceleratorResponse = (output, context) => {
|
|
1465
|
-
return take(output, {
|
|
1466
|
-
Accelerator: (_) => de_Accelerator(_, context),
|
|
1467
|
-
});
|
|
1468
|
-
};
|
|
1469
|
-
const de_CreateCrossAccountAttachmentResponse = (output, context) => {
|
|
1470
|
-
return take(output, {
|
|
1471
|
-
CrossAccountAttachment: (_) => de_Attachment(_, context),
|
|
1472
|
-
});
|
|
1473
|
-
};
|
|
1474
|
-
const de_CreateCustomRoutingAcceleratorResponse = (output, context) => {
|
|
1475
|
-
return take(output, {
|
|
1476
|
-
Accelerator: (_) => de_CustomRoutingAccelerator(_, context),
|
|
1477
|
-
});
|
|
1478
|
-
};
|
|
1479
|
-
const de_CreateEndpointGroupResponse = (output, context) => {
|
|
1480
|
-
return take(output, {
|
|
1481
|
-
EndpointGroup: (_) => de_EndpointGroup(_, context),
|
|
1482
|
-
});
|
|
1483
|
-
};
|
|
1484
|
-
const de_CustomRoutingAccelerator = (output, context) => {
|
|
1485
|
-
return take(output, {
|
|
1486
|
-
AcceleratorArn: __expectString,
|
|
1487
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1488
|
-
DnsName: __expectString,
|
|
1489
|
-
Enabled: __expectBoolean,
|
|
1490
|
-
IpAddressType: __expectString,
|
|
1491
|
-
IpSets: _json,
|
|
1492
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1493
|
-
Name: __expectString,
|
|
1494
|
-
Status: __expectString,
|
|
1495
|
-
});
|
|
1496
|
-
};
|
|
1497
|
-
const de_CustomRoutingAccelerators = (output, context) => {
|
|
1498
|
-
const retVal = (output || [])
|
|
1499
|
-
.filter((e) => e != null)
|
|
1500
|
-
.map((entry) => {
|
|
1501
|
-
return de_CustomRoutingAccelerator(entry, context);
|
|
1502
|
-
});
|
|
1503
|
-
return retVal;
|
|
1504
|
-
};
|
|
1505
|
-
const de_DeprovisionByoipCidrResponse = (output, context) => {
|
|
1506
|
-
return take(output, {
|
|
1507
|
-
ByoipCidr: (_) => de_ByoipCidr(_, context),
|
|
1508
|
-
});
|
|
1509
|
-
};
|
|
1510
|
-
const de_DescribeAcceleratorResponse = (output, context) => {
|
|
1511
|
-
return take(output, {
|
|
1512
|
-
Accelerator: (_) => de_Accelerator(_, context),
|
|
1513
|
-
});
|
|
1514
|
-
};
|
|
1515
|
-
const de_DescribeCrossAccountAttachmentResponse = (output, context) => {
|
|
1516
|
-
return take(output, {
|
|
1517
|
-
CrossAccountAttachment: (_) => de_Attachment(_, context),
|
|
1518
|
-
});
|
|
1519
|
-
};
|
|
1520
|
-
const de_DescribeCustomRoutingAcceleratorResponse = (output, context) => {
|
|
1521
|
-
return take(output, {
|
|
1522
|
-
Accelerator: (_) => de_CustomRoutingAccelerator(_, context),
|
|
1523
|
-
});
|
|
1524
|
-
};
|
|
1525
|
-
const de_DescribeEndpointGroupResponse = (output, context) => {
|
|
1526
|
-
return take(output, {
|
|
1527
|
-
EndpointGroup: (_) => de_EndpointGroup(_, context),
|
|
1528
|
-
});
|
|
1529
|
-
};
|
|
1530
|
-
const de_EndpointGroup = (output, context) => {
|
|
1531
|
-
return take(output, {
|
|
1532
|
-
EndpointDescriptions: _json,
|
|
1533
|
-
EndpointGroupArn: __expectString,
|
|
1534
|
-
EndpointGroupRegion: __expectString,
|
|
1535
|
-
HealthCheckIntervalSeconds: __expectInt32,
|
|
1536
|
-
HealthCheckPath: __expectString,
|
|
1537
|
-
HealthCheckPort: __expectInt32,
|
|
1538
|
-
HealthCheckProtocol: __expectString,
|
|
1539
|
-
PortOverrides: _json,
|
|
1540
|
-
ThresholdCount: __expectInt32,
|
|
1541
|
-
TrafficDialPercentage: __limitedParseFloat32,
|
|
1542
|
-
});
|
|
1543
|
-
};
|
|
1544
|
-
const de_EndpointGroups = (output, context) => {
|
|
1545
|
-
const retVal = (output || [])
|
|
1546
|
-
.filter((e) => e != null)
|
|
1547
|
-
.map((entry) => {
|
|
1548
|
-
return de_EndpointGroup(entry, context);
|
|
1549
|
-
});
|
|
1550
|
-
return retVal;
|
|
1551
|
-
};
|
|
1552
|
-
const de_ListAcceleratorsResponse = (output, context) => {
|
|
1553
|
-
return take(output, {
|
|
1554
|
-
Accelerators: (_) => de_Accelerators(_, context),
|
|
1555
|
-
NextToken: __expectString,
|
|
1556
|
-
});
|
|
1557
|
-
};
|
|
1558
|
-
const de_ListByoipCidrsResponse = (output, context) => {
|
|
1559
|
-
return take(output, {
|
|
1560
|
-
ByoipCidrs: (_) => de_ByoipCidrs(_, context),
|
|
1561
|
-
NextToken: __expectString,
|
|
1562
|
-
});
|
|
1563
|
-
};
|
|
1564
|
-
const de_ListCrossAccountAttachmentsResponse = (output, context) => {
|
|
1565
|
-
return take(output, {
|
|
1566
|
-
CrossAccountAttachments: (_) => de_Attachments(_, context),
|
|
1567
|
-
NextToken: __expectString,
|
|
1568
|
-
});
|
|
1569
|
-
};
|
|
1570
|
-
const de_ListCustomRoutingAcceleratorsResponse = (output, context) => {
|
|
1571
|
-
return take(output, {
|
|
1572
|
-
Accelerators: (_) => de_CustomRoutingAccelerators(_, context),
|
|
1573
|
-
NextToken: __expectString,
|
|
1574
|
-
});
|
|
1575
|
-
};
|
|
1576
|
-
const de_ListEndpointGroupsResponse = (output, context) => {
|
|
1577
|
-
return take(output, {
|
|
1578
|
-
EndpointGroups: (_) => de_EndpointGroups(_, context),
|
|
1579
|
-
NextToken: __expectString,
|
|
1580
|
-
});
|
|
1581
|
-
};
|
|
1582
|
-
const de_ProvisionByoipCidrResponse = (output, context) => {
|
|
1583
|
-
return take(output, {
|
|
1584
|
-
ByoipCidr: (_) => de_ByoipCidr(_, context),
|
|
1585
|
-
});
|
|
1586
|
-
};
|
|
1587
|
-
const de_UpdateAcceleratorResponse = (output, context) => {
|
|
1588
|
-
return take(output, {
|
|
1589
|
-
Accelerator: (_) => de_Accelerator(_, context),
|
|
1590
|
-
});
|
|
1591
|
-
};
|
|
1592
|
-
const de_UpdateCrossAccountAttachmentResponse = (output, context) => {
|
|
1593
|
-
return take(output, {
|
|
1594
|
-
CrossAccountAttachment: (_) => de_Attachment(_, context),
|
|
1595
|
-
});
|
|
1596
|
-
};
|
|
1597
|
-
const de_UpdateCustomRoutingAcceleratorResponse = (output, context) => {
|
|
1598
|
-
return take(output, {
|
|
1599
|
-
Accelerator: (_) => de_CustomRoutingAccelerator(_, context),
|
|
1600
|
-
});
|
|
1601
|
-
};
|
|
1602
|
-
const de_UpdateEndpointGroupResponse = (output, context) => {
|
|
1603
|
-
return take(output, {
|
|
1604
|
-
EndpointGroup: (_) => de_EndpointGroup(_, context),
|
|
1605
|
-
});
|
|
1606
|
-
};
|
|
1607
|
-
const de_WithdrawByoipCidrResponse = (output, context) => {
|
|
1608
|
-
return take(output, {
|
|
1609
|
-
ByoipCidr: (_) => de_ByoipCidr(_, context),
|
|
1610
|
-
});
|
|
1611
|
-
};
|
|
1612
|
-
const deserializeMetadata = (output) => ({
|
|
1613
|
-
httpStatusCode: output.statusCode,
|
|
1614
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1615
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1616
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1617
|
-
});
|
|
1618
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1619
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
1620
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1621
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1622
|
-
const contents = {
|
|
1623
|
-
protocol,
|
|
1624
|
-
hostname,
|
|
1625
|
-
port,
|
|
1626
|
-
method: "POST",
|
|
1627
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1628
|
-
headers,
|
|
1629
|
-
};
|
|
1630
|
-
if (resolvedHostname !== undefined) {
|
|
1631
|
-
contents.hostname = resolvedHostname;
|
|
1632
|
-
}
|
|
1633
|
-
if (body !== undefined) {
|
|
1634
|
-
contents.body = body;
|
|
1635
|
-
}
|
|
1636
|
-
return new __HttpRequest(contents);
|
|
1637
|
-
};
|
|
1638
|
-
function sharedHeaders(operation) {
|
|
1639
|
-
return {
|
|
1640
|
-
"content-type": "application/x-amz-json-1.1",
|
|
1641
|
-
"x-amz-target": `GlobalAccelerator_V20180706.${operation}`,
|
|
1642
|
-
};
|
|
1643
|
-
}
|