@aws-sdk/client-global-accelerator 3.490.0 → 3.495.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/GlobalAccelerator.js +1 -123
- package/dist-cjs/GlobalAcceleratorClient.js +1 -43
- package/dist-cjs/commands/AddCustomRoutingEndpointsCommand.js +1 -28
- package/dist-cjs/commands/AddEndpointsCommand.js +1 -28
- package/dist-cjs/commands/AdvertiseByoipCidrCommand.js +1 -28
- package/dist-cjs/commands/AllowCustomRoutingTrafficCommand.js +1 -28
- package/dist-cjs/commands/CreateAcceleratorCommand.js +1 -28
- package/dist-cjs/commands/CreateCrossAccountAttachmentCommand.js +1 -28
- package/dist-cjs/commands/CreateCustomRoutingAcceleratorCommand.js +1 -28
- package/dist-cjs/commands/CreateCustomRoutingEndpointGroupCommand.js +1 -28
- package/dist-cjs/commands/CreateCustomRoutingListenerCommand.js +1 -28
- package/dist-cjs/commands/CreateEndpointGroupCommand.js +1 -28
- package/dist-cjs/commands/CreateListenerCommand.js +1 -28
- package/dist-cjs/commands/DeleteAcceleratorCommand.js +1 -28
- package/dist-cjs/commands/DeleteCrossAccountAttachmentCommand.js +1 -28
- package/dist-cjs/commands/DeleteCustomRoutingAcceleratorCommand.js +1 -28
- package/dist-cjs/commands/DeleteCustomRoutingEndpointGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteCustomRoutingListenerCommand.js +1 -28
- package/dist-cjs/commands/DeleteEndpointGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteListenerCommand.js +1 -28
- package/dist-cjs/commands/DenyCustomRoutingTrafficCommand.js +1 -28
- package/dist-cjs/commands/DeprovisionByoipCidrCommand.js +1 -28
- package/dist-cjs/commands/DescribeAcceleratorAttributesCommand.js +1 -28
- package/dist-cjs/commands/DescribeAcceleratorCommand.js +1 -28
- package/dist-cjs/commands/DescribeCrossAccountAttachmentCommand.js +1 -28
- package/dist-cjs/commands/DescribeCustomRoutingAcceleratorAttributesCommand.js +1 -28
- package/dist-cjs/commands/DescribeCustomRoutingAcceleratorCommand.js +1 -28
- package/dist-cjs/commands/DescribeCustomRoutingEndpointGroupCommand.js +1 -28
- package/dist-cjs/commands/DescribeCustomRoutingListenerCommand.js +1 -28
- package/dist-cjs/commands/DescribeEndpointGroupCommand.js +1 -28
- package/dist-cjs/commands/DescribeListenerCommand.js +1 -28
- package/dist-cjs/commands/ListAcceleratorsCommand.js +1 -28
- package/dist-cjs/commands/ListByoipCidrsCommand.js +1 -28
- package/dist-cjs/commands/ListCrossAccountAttachmentsCommand.js +1 -28
- package/dist-cjs/commands/ListCrossAccountResourceAccountsCommand.js +1 -28
- package/dist-cjs/commands/ListCrossAccountResourcesCommand.js +1 -28
- package/dist-cjs/commands/ListCustomRoutingAcceleratorsCommand.js +1 -28
- package/dist-cjs/commands/ListCustomRoutingEndpointGroupsCommand.js +1 -28
- package/dist-cjs/commands/ListCustomRoutingListenersCommand.js +1 -28
- package/dist-cjs/commands/ListCustomRoutingPortMappingsByDestinationCommand.js +1 -28
- package/dist-cjs/commands/ListCustomRoutingPortMappingsCommand.js +1 -28
- package/dist-cjs/commands/ListEndpointGroupsCommand.js +1 -28
- package/dist-cjs/commands/ListListenersCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ProvisionByoipCidrCommand.js +1 -28
- package/dist-cjs/commands/RemoveCustomRoutingEndpointsCommand.js +1 -28
- package/dist-cjs/commands/RemoveEndpointsCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateAcceleratorAttributesCommand.js +1 -28
- package/dist-cjs/commands/UpdateAcceleratorCommand.js +1 -28
- package/dist-cjs/commands/UpdateCrossAccountAttachmentCommand.js +1 -28
- package/dist-cjs/commands/UpdateCustomRoutingAcceleratorAttributesCommand.js +1 -28
- package/dist-cjs/commands/UpdateCustomRoutingAcceleratorCommand.js +1 -28
- package/dist-cjs/commands/UpdateCustomRoutingListenerCommand.js +1 -28
- package/dist-cjs/commands/UpdateEndpointGroupCommand.js +1 -28
- package/dist-cjs/commands/UpdateListenerCommand.js +1 -28
- package/dist-cjs/commands/WithdrawByoipCidrCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -59
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +5012 -11
- package/dist-cjs/models/GlobalAcceleratorServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -339
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListAcceleratorsPaginator.js +1 -7
- package/dist-cjs/pagination/ListByoipCidrsPaginator.js +1 -7
- package/dist-cjs/pagination/ListCrossAccountAttachmentsPaginator.js +1 -7
- package/dist-cjs/pagination/ListCrossAccountResourcesPaginator.js +1 -7
- package/dist-cjs/pagination/ListCustomRoutingAcceleratorsPaginator.js +1 -7
- package/dist-cjs/pagination/ListCustomRoutingEndpointGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/ListCustomRoutingListenersPaginator.js +1 -7
- package/dist-cjs/pagination/ListCustomRoutingPortMappingsByDestinationPaginator.js +1 -7
- package/dist-cjs/pagination/ListCustomRoutingPortMappingsPaginator.js +1 -7
- package/dist-cjs/pagination/ListEndpointGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/ListListenersPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -15
- package/dist-cjs/protocols/Aws_json1_1.js +1 -3324
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,3324 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.se_UpdateCrossAccountAttachmentCommand = exports.se_UpdateAcceleratorAttributesCommand = exports.se_UpdateAcceleratorCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RemoveEndpointsCommand = exports.se_RemoveCustomRoutingEndpointsCommand = exports.se_ProvisionByoipCidrCommand = exports.se_ListTagsForResourceCommand = exports.se_ListListenersCommand = exports.se_ListEndpointGroupsCommand = exports.se_ListCustomRoutingPortMappingsByDestinationCommand = exports.se_ListCustomRoutingPortMappingsCommand = exports.se_ListCustomRoutingListenersCommand = exports.se_ListCustomRoutingEndpointGroupsCommand = exports.se_ListCustomRoutingAcceleratorsCommand = exports.se_ListCrossAccountResourcesCommand = exports.se_ListCrossAccountResourceAccountsCommand = exports.se_ListCrossAccountAttachmentsCommand = exports.se_ListByoipCidrsCommand = exports.se_ListAcceleratorsCommand = exports.se_DescribeListenerCommand = exports.se_DescribeEndpointGroupCommand = exports.se_DescribeCustomRoutingListenerCommand = exports.se_DescribeCustomRoutingEndpointGroupCommand = exports.se_DescribeCustomRoutingAcceleratorAttributesCommand = exports.se_DescribeCustomRoutingAcceleratorCommand = exports.se_DescribeCrossAccountAttachmentCommand = exports.se_DescribeAcceleratorAttributesCommand = exports.se_DescribeAcceleratorCommand = exports.se_DeprovisionByoipCidrCommand = exports.se_DenyCustomRoutingTrafficCommand = exports.se_DeleteListenerCommand = exports.se_DeleteEndpointGroupCommand = exports.se_DeleteCustomRoutingListenerCommand = exports.se_DeleteCustomRoutingEndpointGroupCommand = exports.se_DeleteCustomRoutingAcceleratorCommand = exports.se_DeleteCrossAccountAttachmentCommand = exports.se_DeleteAcceleratorCommand = exports.se_CreateListenerCommand = exports.se_CreateEndpointGroupCommand = exports.se_CreateCustomRoutingListenerCommand = exports.se_CreateCustomRoutingEndpointGroupCommand = exports.se_CreateCustomRoutingAcceleratorCommand = exports.se_CreateCrossAccountAttachmentCommand = exports.se_CreateAcceleratorCommand = exports.se_AllowCustomRoutingTrafficCommand = exports.se_AdvertiseByoipCidrCommand = exports.se_AddEndpointsCommand = exports.se_AddCustomRoutingEndpointsCommand = void 0;
|
|
4
|
-
exports.de_RemoveCustomRoutingEndpointsCommand = exports.de_ProvisionByoipCidrCommand = exports.de_ListTagsForResourceCommand = exports.de_ListListenersCommand = exports.de_ListEndpointGroupsCommand = exports.de_ListCustomRoutingPortMappingsByDestinationCommand = exports.de_ListCustomRoutingPortMappingsCommand = exports.de_ListCustomRoutingListenersCommand = exports.de_ListCustomRoutingEndpointGroupsCommand = exports.de_ListCustomRoutingAcceleratorsCommand = exports.de_ListCrossAccountResourcesCommand = exports.de_ListCrossAccountResourceAccountsCommand = exports.de_ListCrossAccountAttachmentsCommand = exports.de_ListByoipCidrsCommand = exports.de_ListAcceleratorsCommand = exports.de_DescribeListenerCommand = exports.de_DescribeEndpointGroupCommand = exports.de_DescribeCustomRoutingListenerCommand = exports.de_DescribeCustomRoutingEndpointGroupCommand = exports.de_DescribeCustomRoutingAcceleratorAttributesCommand = exports.de_DescribeCustomRoutingAcceleratorCommand = exports.de_DescribeCrossAccountAttachmentCommand = exports.de_DescribeAcceleratorAttributesCommand = exports.de_DescribeAcceleratorCommand = exports.de_DeprovisionByoipCidrCommand = exports.de_DenyCustomRoutingTrafficCommand = exports.de_DeleteListenerCommand = exports.de_DeleteEndpointGroupCommand = exports.de_DeleteCustomRoutingListenerCommand = exports.de_DeleteCustomRoutingEndpointGroupCommand = exports.de_DeleteCustomRoutingAcceleratorCommand = exports.de_DeleteCrossAccountAttachmentCommand = exports.de_DeleteAcceleratorCommand = exports.de_CreateListenerCommand = exports.de_CreateEndpointGroupCommand = exports.de_CreateCustomRoutingListenerCommand = exports.de_CreateCustomRoutingEndpointGroupCommand = exports.de_CreateCustomRoutingAcceleratorCommand = exports.de_CreateCrossAccountAttachmentCommand = exports.de_CreateAcceleratorCommand = exports.de_AllowCustomRoutingTrafficCommand = exports.de_AdvertiseByoipCidrCommand = exports.de_AddEndpointsCommand = exports.de_AddCustomRoutingEndpointsCommand = exports.se_WithdrawByoipCidrCommand = exports.se_UpdateListenerCommand = exports.se_UpdateEndpointGroupCommand = exports.se_UpdateCustomRoutingListenerCommand = exports.se_UpdateCustomRoutingAcceleratorAttributesCommand = exports.se_UpdateCustomRoutingAcceleratorCommand = void 0;
|
|
5
|
-
exports.de_WithdrawByoipCidrCommand = exports.de_UpdateListenerCommand = exports.de_UpdateEndpointGroupCommand = exports.de_UpdateCustomRoutingListenerCommand = exports.de_UpdateCustomRoutingAcceleratorAttributesCommand = exports.de_UpdateCustomRoutingAcceleratorCommand = exports.de_UpdateCrossAccountAttachmentCommand = exports.de_UpdateAcceleratorAttributesCommand = exports.de_UpdateAcceleratorCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RemoveEndpointsCommand = void 0;
|
|
6
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
-
const uuid_1 = require("uuid");
|
|
9
|
-
const GlobalAcceleratorServiceException_1 = require("../models/GlobalAcceleratorServiceException");
|
|
10
|
-
const models_0_1 = require("../models/models_0");
|
|
11
|
-
const se_AddCustomRoutingEndpointsCommand = async (input, context) => {
|
|
12
|
-
const headers = sharedHeaders("AddCustomRoutingEndpoints");
|
|
13
|
-
let body;
|
|
14
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
15
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
|
-
};
|
|
17
|
-
exports.se_AddCustomRoutingEndpointsCommand = se_AddCustomRoutingEndpointsCommand;
|
|
18
|
-
const se_AddEndpointsCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("AddEndpoints");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
exports.se_AddEndpointsCommand = se_AddEndpointsCommand;
|
|
25
|
-
const se_AdvertiseByoipCidrCommand = async (input, context) => {
|
|
26
|
-
const headers = sharedHeaders("AdvertiseByoipCidr");
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
29
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
30
|
-
};
|
|
31
|
-
exports.se_AdvertiseByoipCidrCommand = se_AdvertiseByoipCidrCommand;
|
|
32
|
-
const se_AllowCustomRoutingTrafficCommand = async (input, context) => {
|
|
33
|
-
const headers = sharedHeaders("AllowCustomRoutingTraffic");
|
|
34
|
-
let body;
|
|
35
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
36
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
|
-
};
|
|
38
|
-
exports.se_AllowCustomRoutingTrafficCommand = se_AllowCustomRoutingTrafficCommand;
|
|
39
|
-
const se_CreateAcceleratorCommand = async (input, context) => {
|
|
40
|
-
const headers = sharedHeaders("CreateAccelerator");
|
|
41
|
-
let body;
|
|
42
|
-
body = JSON.stringify(se_CreateAcceleratorRequest(input, context));
|
|
43
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
44
|
-
};
|
|
45
|
-
exports.se_CreateAcceleratorCommand = se_CreateAcceleratorCommand;
|
|
46
|
-
const se_CreateCrossAccountAttachmentCommand = async (input, context) => {
|
|
47
|
-
const headers = sharedHeaders("CreateCrossAccountAttachment");
|
|
48
|
-
let body;
|
|
49
|
-
body = JSON.stringify(se_CreateCrossAccountAttachmentRequest(input, context));
|
|
50
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
51
|
-
};
|
|
52
|
-
exports.se_CreateCrossAccountAttachmentCommand = se_CreateCrossAccountAttachmentCommand;
|
|
53
|
-
const se_CreateCustomRoutingAcceleratorCommand = async (input, context) => {
|
|
54
|
-
const headers = sharedHeaders("CreateCustomRoutingAccelerator");
|
|
55
|
-
let body;
|
|
56
|
-
body = JSON.stringify(se_CreateCustomRoutingAcceleratorRequest(input, context));
|
|
57
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
|
-
};
|
|
59
|
-
exports.se_CreateCustomRoutingAcceleratorCommand = se_CreateCustomRoutingAcceleratorCommand;
|
|
60
|
-
const se_CreateCustomRoutingEndpointGroupCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("CreateCustomRoutingEndpointGroup");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify(se_CreateCustomRoutingEndpointGroupRequest(input, context));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
exports.se_CreateCustomRoutingEndpointGroupCommand = se_CreateCustomRoutingEndpointGroupCommand;
|
|
67
|
-
const se_CreateCustomRoutingListenerCommand = async (input, context) => {
|
|
68
|
-
const headers = sharedHeaders("CreateCustomRoutingListener");
|
|
69
|
-
let body;
|
|
70
|
-
body = JSON.stringify(se_CreateCustomRoutingListenerRequest(input, context));
|
|
71
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
72
|
-
};
|
|
73
|
-
exports.se_CreateCustomRoutingListenerCommand = se_CreateCustomRoutingListenerCommand;
|
|
74
|
-
const se_CreateEndpointGroupCommand = async (input, context) => {
|
|
75
|
-
const headers = sharedHeaders("CreateEndpointGroup");
|
|
76
|
-
let body;
|
|
77
|
-
body = JSON.stringify(se_CreateEndpointGroupRequest(input, context));
|
|
78
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
79
|
-
};
|
|
80
|
-
exports.se_CreateEndpointGroupCommand = se_CreateEndpointGroupCommand;
|
|
81
|
-
const se_CreateListenerCommand = async (input, context) => {
|
|
82
|
-
const headers = sharedHeaders("CreateListener");
|
|
83
|
-
let body;
|
|
84
|
-
body = JSON.stringify(se_CreateListenerRequest(input, context));
|
|
85
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
|
-
};
|
|
87
|
-
exports.se_CreateListenerCommand = se_CreateListenerCommand;
|
|
88
|
-
const se_DeleteAcceleratorCommand = async (input, context) => {
|
|
89
|
-
const headers = sharedHeaders("DeleteAccelerator");
|
|
90
|
-
let body;
|
|
91
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
92
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
93
|
-
};
|
|
94
|
-
exports.se_DeleteAcceleratorCommand = se_DeleteAcceleratorCommand;
|
|
95
|
-
const se_DeleteCrossAccountAttachmentCommand = async (input, context) => {
|
|
96
|
-
const headers = sharedHeaders("DeleteCrossAccountAttachment");
|
|
97
|
-
let body;
|
|
98
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
99
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
100
|
-
};
|
|
101
|
-
exports.se_DeleteCrossAccountAttachmentCommand = se_DeleteCrossAccountAttachmentCommand;
|
|
102
|
-
const se_DeleteCustomRoutingAcceleratorCommand = async (input, context) => {
|
|
103
|
-
const headers = sharedHeaders("DeleteCustomRoutingAccelerator");
|
|
104
|
-
let body;
|
|
105
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
106
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
-
};
|
|
108
|
-
exports.se_DeleteCustomRoutingAcceleratorCommand = se_DeleteCustomRoutingAcceleratorCommand;
|
|
109
|
-
const se_DeleteCustomRoutingEndpointGroupCommand = async (input, context) => {
|
|
110
|
-
const headers = sharedHeaders("DeleteCustomRoutingEndpointGroup");
|
|
111
|
-
let body;
|
|
112
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
113
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
114
|
-
};
|
|
115
|
-
exports.se_DeleteCustomRoutingEndpointGroupCommand = se_DeleteCustomRoutingEndpointGroupCommand;
|
|
116
|
-
const se_DeleteCustomRoutingListenerCommand = async (input, context) => {
|
|
117
|
-
const headers = sharedHeaders("DeleteCustomRoutingListener");
|
|
118
|
-
let body;
|
|
119
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
120
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
|
-
};
|
|
122
|
-
exports.se_DeleteCustomRoutingListenerCommand = se_DeleteCustomRoutingListenerCommand;
|
|
123
|
-
const se_DeleteEndpointGroupCommand = async (input, context) => {
|
|
124
|
-
const headers = sharedHeaders("DeleteEndpointGroup");
|
|
125
|
-
let body;
|
|
126
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
127
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
128
|
-
};
|
|
129
|
-
exports.se_DeleteEndpointGroupCommand = se_DeleteEndpointGroupCommand;
|
|
130
|
-
const se_DeleteListenerCommand = async (input, context) => {
|
|
131
|
-
const headers = sharedHeaders("DeleteListener");
|
|
132
|
-
let body;
|
|
133
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
134
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
135
|
-
};
|
|
136
|
-
exports.se_DeleteListenerCommand = se_DeleteListenerCommand;
|
|
137
|
-
const se_DenyCustomRoutingTrafficCommand = async (input, context) => {
|
|
138
|
-
const headers = sharedHeaders("DenyCustomRoutingTraffic");
|
|
139
|
-
let body;
|
|
140
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
141
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
142
|
-
};
|
|
143
|
-
exports.se_DenyCustomRoutingTrafficCommand = se_DenyCustomRoutingTrafficCommand;
|
|
144
|
-
const se_DeprovisionByoipCidrCommand = async (input, context) => {
|
|
145
|
-
const headers = sharedHeaders("DeprovisionByoipCidr");
|
|
146
|
-
let body;
|
|
147
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
148
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
|
-
};
|
|
150
|
-
exports.se_DeprovisionByoipCidrCommand = se_DeprovisionByoipCidrCommand;
|
|
151
|
-
const se_DescribeAcceleratorCommand = async (input, context) => {
|
|
152
|
-
const headers = sharedHeaders("DescribeAccelerator");
|
|
153
|
-
let body;
|
|
154
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
155
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
|
-
};
|
|
157
|
-
exports.se_DescribeAcceleratorCommand = se_DescribeAcceleratorCommand;
|
|
158
|
-
const se_DescribeAcceleratorAttributesCommand = async (input, context) => {
|
|
159
|
-
const headers = sharedHeaders("DescribeAcceleratorAttributes");
|
|
160
|
-
let body;
|
|
161
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
162
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
163
|
-
};
|
|
164
|
-
exports.se_DescribeAcceleratorAttributesCommand = se_DescribeAcceleratorAttributesCommand;
|
|
165
|
-
const se_DescribeCrossAccountAttachmentCommand = async (input, context) => {
|
|
166
|
-
const headers = sharedHeaders("DescribeCrossAccountAttachment");
|
|
167
|
-
let body;
|
|
168
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
169
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
170
|
-
};
|
|
171
|
-
exports.se_DescribeCrossAccountAttachmentCommand = se_DescribeCrossAccountAttachmentCommand;
|
|
172
|
-
const se_DescribeCustomRoutingAcceleratorCommand = async (input, context) => {
|
|
173
|
-
const headers = sharedHeaders("DescribeCustomRoutingAccelerator");
|
|
174
|
-
let body;
|
|
175
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
176
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
|
-
};
|
|
178
|
-
exports.se_DescribeCustomRoutingAcceleratorCommand = se_DescribeCustomRoutingAcceleratorCommand;
|
|
179
|
-
const se_DescribeCustomRoutingAcceleratorAttributesCommand = async (input, context) => {
|
|
180
|
-
const headers = sharedHeaders("DescribeCustomRoutingAcceleratorAttributes");
|
|
181
|
-
let body;
|
|
182
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
183
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
|
-
};
|
|
185
|
-
exports.se_DescribeCustomRoutingAcceleratorAttributesCommand = se_DescribeCustomRoutingAcceleratorAttributesCommand;
|
|
186
|
-
const se_DescribeCustomRoutingEndpointGroupCommand = async (input, context) => {
|
|
187
|
-
const headers = sharedHeaders("DescribeCustomRoutingEndpointGroup");
|
|
188
|
-
let body;
|
|
189
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
190
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
191
|
-
};
|
|
192
|
-
exports.se_DescribeCustomRoutingEndpointGroupCommand = se_DescribeCustomRoutingEndpointGroupCommand;
|
|
193
|
-
const se_DescribeCustomRoutingListenerCommand = async (input, context) => {
|
|
194
|
-
const headers = sharedHeaders("DescribeCustomRoutingListener");
|
|
195
|
-
let body;
|
|
196
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
197
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
198
|
-
};
|
|
199
|
-
exports.se_DescribeCustomRoutingListenerCommand = se_DescribeCustomRoutingListenerCommand;
|
|
200
|
-
const se_DescribeEndpointGroupCommand = async (input, context) => {
|
|
201
|
-
const headers = sharedHeaders("DescribeEndpointGroup");
|
|
202
|
-
let body;
|
|
203
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
204
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
205
|
-
};
|
|
206
|
-
exports.se_DescribeEndpointGroupCommand = se_DescribeEndpointGroupCommand;
|
|
207
|
-
const se_DescribeListenerCommand = async (input, context) => {
|
|
208
|
-
const headers = sharedHeaders("DescribeListener");
|
|
209
|
-
let body;
|
|
210
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
211
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
212
|
-
};
|
|
213
|
-
exports.se_DescribeListenerCommand = se_DescribeListenerCommand;
|
|
214
|
-
const se_ListAcceleratorsCommand = async (input, context) => {
|
|
215
|
-
const headers = sharedHeaders("ListAccelerators");
|
|
216
|
-
let body;
|
|
217
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
218
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
219
|
-
};
|
|
220
|
-
exports.se_ListAcceleratorsCommand = se_ListAcceleratorsCommand;
|
|
221
|
-
const se_ListByoipCidrsCommand = async (input, context) => {
|
|
222
|
-
const headers = sharedHeaders("ListByoipCidrs");
|
|
223
|
-
let body;
|
|
224
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
225
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
226
|
-
};
|
|
227
|
-
exports.se_ListByoipCidrsCommand = se_ListByoipCidrsCommand;
|
|
228
|
-
const se_ListCrossAccountAttachmentsCommand = async (input, context) => {
|
|
229
|
-
const headers = sharedHeaders("ListCrossAccountAttachments");
|
|
230
|
-
let body;
|
|
231
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
232
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
233
|
-
};
|
|
234
|
-
exports.se_ListCrossAccountAttachmentsCommand = se_ListCrossAccountAttachmentsCommand;
|
|
235
|
-
const se_ListCrossAccountResourceAccountsCommand = async (input, context) => {
|
|
236
|
-
const headers = sharedHeaders("ListCrossAccountResourceAccounts");
|
|
237
|
-
let body;
|
|
238
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
239
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
240
|
-
};
|
|
241
|
-
exports.se_ListCrossAccountResourceAccountsCommand = se_ListCrossAccountResourceAccountsCommand;
|
|
242
|
-
const se_ListCrossAccountResourcesCommand = async (input, context) => {
|
|
243
|
-
const headers = sharedHeaders("ListCrossAccountResources");
|
|
244
|
-
let body;
|
|
245
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
246
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
|
-
};
|
|
248
|
-
exports.se_ListCrossAccountResourcesCommand = se_ListCrossAccountResourcesCommand;
|
|
249
|
-
const se_ListCustomRoutingAcceleratorsCommand = async (input, context) => {
|
|
250
|
-
const headers = sharedHeaders("ListCustomRoutingAccelerators");
|
|
251
|
-
let body;
|
|
252
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
253
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
254
|
-
};
|
|
255
|
-
exports.se_ListCustomRoutingAcceleratorsCommand = se_ListCustomRoutingAcceleratorsCommand;
|
|
256
|
-
const se_ListCustomRoutingEndpointGroupsCommand = async (input, context) => {
|
|
257
|
-
const headers = sharedHeaders("ListCustomRoutingEndpointGroups");
|
|
258
|
-
let body;
|
|
259
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
260
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
261
|
-
};
|
|
262
|
-
exports.se_ListCustomRoutingEndpointGroupsCommand = se_ListCustomRoutingEndpointGroupsCommand;
|
|
263
|
-
const se_ListCustomRoutingListenersCommand = async (input, context) => {
|
|
264
|
-
const headers = sharedHeaders("ListCustomRoutingListeners");
|
|
265
|
-
let body;
|
|
266
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
267
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
268
|
-
};
|
|
269
|
-
exports.se_ListCustomRoutingListenersCommand = se_ListCustomRoutingListenersCommand;
|
|
270
|
-
const se_ListCustomRoutingPortMappingsCommand = async (input, context) => {
|
|
271
|
-
const headers = sharedHeaders("ListCustomRoutingPortMappings");
|
|
272
|
-
let body;
|
|
273
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
274
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
275
|
-
};
|
|
276
|
-
exports.se_ListCustomRoutingPortMappingsCommand = se_ListCustomRoutingPortMappingsCommand;
|
|
277
|
-
const se_ListCustomRoutingPortMappingsByDestinationCommand = async (input, context) => {
|
|
278
|
-
const headers = sharedHeaders("ListCustomRoutingPortMappingsByDestination");
|
|
279
|
-
let body;
|
|
280
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
281
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
282
|
-
};
|
|
283
|
-
exports.se_ListCustomRoutingPortMappingsByDestinationCommand = se_ListCustomRoutingPortMappingsByDestinationCommand;
|
|
284
|
-
const se_ListEndpointGroupsCommand = async (input, context) => {
|
|
285
|
-
const headers = sharedHeaders("ListEndpointGroups");
|
|
286
|
-
let body;
|
|
287
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
288
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
289
|
-
};
|
|
290
|
-
exports.se_ListEndpointGroupsCommand = se_ListEndpointGroupsCommand;
|
|
291
|
-
const se_ListListenersCommand = async (input, context) => {
|
|
292
|
-
const headers = sharedHeaders("ListListeners");
|
|
293
|
-
let body;
|
|
294
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
295
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
296
|
-
};
|
|
297
|
-
exports.se_ListListenersCommand = se_ListListenersCommand;
|
|
298
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
299
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
300
|
-
let body;
|
|
301
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
302
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
303
|
-
};
|
|
304
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
305
|
-
const se_ProvisionByoipCidrCommand = async (input, context) => {
|
|
306
|
-
const headers = sharedHeaders("ProvisionByoipCidr");
|
|
307
|
-
let body;
|
|
308
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
309
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
310
|
-
};
|
|
311
|
-
exports.se_ProvisionByoipCidrCommand = se_ProvisionByoipCidrCommand;
|
|
312
|
-
const se_RemoveCustomRoutingEndpointsCommand = async (input, context) => {
|
|
313
|
-
const headers = sharedHeaders("RemoveCustomRoutingEndpoints");
|
|
314
|
-
let body;
|
|
315
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
316
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
|
-
};
|
|
318
|
-
exports.se_RemoveCustomRoutingEndpointsCommand = se_RemoveCustomRoutingEndpointsCommand;
|
|
319
|
-
const se_RemoveEndpointsCommand = async (input, context) => {
|
|
320
|
-
const headers = sharedHeaders("RemoveEndpoints");
|
|
321
|
-
let body;
|
|
322
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
323
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
324
|
-
};
|
|
325
|
-
exports.se_RemoveEndpointsCommand = se_RemoveEndpointsCommand;
|
|
326
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
327
|
-
const headers = sharedHeaders("TagResource");
|
|
328
|
-
let body;
|
|
329
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
330
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
331
|
-
};
|
|
332
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
333
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
334
|
-
const headers = sharedHeaders("UntagResource");
|
|
335
|
-
let body;
|
|
336
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
337
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
338
|
-
};
|
|
339
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
340
|
-
const se_UpdateAcceleratorCommand = async (input, context) => {
|
|
341
|
-
const headers = sharedHeaders("UpdateAccelerator");
|
|
342
|
-
let body;
|
|
343
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
344
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
345
|
-
};
|
|
346
|
-
exports.se_UpdateAcceleratorCommand = se_UpdateAcceleratorCommand;
|
|
347
|
-
const se_UpdateAcceleratorAttributesCommand = async (input, context) => {
|
|
348
|
-
const headers = sharedHeaders("UpdateAcceleratorAttributes");
|
|
349
|
-
let body;
|
|
350
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
351
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
352
|
-
};
|
|
353
|
-
exports.se_UpdateAcceleratorAttributesCommand = se_UpdateAcceleratorAttributesCommand;
|
|
354
|
-
const se_UpdateCrossAccountAttachmentCommand = async (input, context) => {
|
|
355
|
-
const headers = sharedHeaders("UpdateCrossAccountAttachment");
|
|
356
|
-
let body;
|
|
357
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
358
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
359
|
-
};
|
|
360
|
-
exports.se_UpdateCrossAccountAttachmentCommand = se_UpdateCrossAccountAttachmentCommand;
|
|
361
|
-
const se_UpdateCustomRoutingAcceleratorCommand = async (input, context) => {
|
|
362
|
-
const headers = sharedHeaders("UpdateCustomRoutingAccelerator");
|
|
363
|
-
let body;
|
|
364
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
365
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
366
|
-
};
|
|
367
|
-
exports.se_UpdateCustomRoutingAcceleratorCommand = se_UpdateCustomRoutingAcceleratorCommand;
|
|
368
|
-
const se_UpdateCustomRoutingAcceleratorAttributesCommand = async (input, context) => {
|
|
369
|
-
const headers = sharedHeaders("UpdateCustomRoutingAcceleratorAttributes");
|
|
370
|
-
let body;
|
|
371
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
372
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
373
|
-
};
|
|
374
|
-
exports.se_UpdateCustomRoutingAcceleratorAttributesCommand = se_UpdateCustomRoutingAcceleratorAttributesCommand;
|
|
375
|
-
const se_UpdateCustomRoutingListenerCommand = async (input, context) => {
|
|
376
|
-
const headers = sharedHeaders("UpdateCustomRoutingListener");
|
|
377
|
-
let body;
|
|
378
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
379
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
380
|
-
};
|
|
381
|
-
exports.se_UpdateCustomRoutingListenerCommand = se_UpdateCustomRoutingListenerCommand;
|
|
382
|
-
const se_UpdateEndpointGroupCommand = async (input, context) => {
|
|
383
|
-
const headers = sharedHeaders("UpdateEndpointGroup");
|
|
384
|
-
let body;
|
|
385
|
-
body = JSON.stringify(se_UpdateEndpointGroupRequest(input, context));
|
|
386
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
387
|
-
};
|
|
388
|
-
exports.se_UpdateEndpointGroupCommand = se_UpdateEndpointGroupCommand;
|
|
389
|
-
const se_UpdateListenerCommand = async (input, context) => {
|
|
390
|
-
const headers = sharedHeaders("UpdateListener");
|
|
391
|
-
let body;
|
|
392
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
393
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
394
|
-
};
|
|
395
|
-
exports.se_UpdateListenerCommand = se_UpdateListenerCommand;
|
|
396
|
-
const se_WithdrawByoipCidrCommand = async (input, context) => {
|
|
397
|
-
const headers = sharedHeaders("WithdrawByoipCidr");
|
|
398
|
-
let body;
|
|
399
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
400
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
401
|
-
};
|
|
402
|
-
exports.se_WithdrawByoipCidrCommand = se_WithdrawByoipCidrCommand;
|
|
403
|
-
const de_AddCustomRoutingEndpointsCommand = async (output, context) => {
|
|
404
|
-
if (output.statusCode >= 300) {
|
|
405
|
-
return de_AddCustomRoutingEndpointsCommandError(output, context);
|
|
406
|
-
}
|
|
407
|
-
const data = await parseBody(output.body, context);
|
|
408
|
-
let contents = {};
|
|
409
|
-
contents = (0, smithy_client_1._json)(data);
|
|
410
|
-
const response = {
|
|
411
|
-
$metadata: deserializeMetadata(output),
|
|
412
|
-
...contents,
|
|
413
|
-
};
|
|
414
|
-
return response;
|
|
415
|
-
};
|
|
416
|
-
exports.de_AddCustomRoutingEndpointsCommand = de_AddCustomRoutingEndpointsCommand;
|
|
417
|
-
const de_AddCustomRoutingEndpointsCommandError = async (output, context) => {
|
|
418
|
-
const parsedOutput = {
|
|
419
|
-
...output,
|
|
420
|
-
body: await parseErrorBody(output.body, context),
|
|
421
|
-
};
|
|
422
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
423
|
-
switch (errorCode) {
|
|
424
|
-
case "AccessDeniedException":
|
|
425
|
-
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
426
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
427
|
-
case "ConflictException":
|
|
428
|
-
case "com.amazonaws.globalaccelerator#ConflictException":
|
|
429
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
430
|
-
case "EndpointAlreadyExistsException":
|
|
431
|
-
case "com.amazonaws.globalaccelerator#EndpointAlreadyExistsException":
|
|
432
|
-
throw await de_EndpointAlreadyExistsExceptionRes(parsedOutput, context);
|
|
433
|
-
case "EndpointGroupNotFoundException":
|
|
434
|
-
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
|
|
435
|
-
throw await de_EndpointGroupNotFoundExceptionRes(parsedOutput, context);
|
|
436
|
-
case "InternalServiceErrorException":
|
|
437
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
438
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
439
|
-
case "InvalidArgumentException":
|
|
440
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
441
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
442
|
-
case "LimitExceededException":
|
|
443
|
-
case "com.amazonaws.globalaccelerator#LimitExceededException":
|
|
444
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
445
|
-
default:
|
|
446
|
-
const parsedBody = parsedOutput.body;
|
|
447
|
-
return throwDefaultError({
|
|
448
|
-
output,
|
|
449
|
-
parsedBody,
|
|
450
|
-
errorCode,
|
|
451
|
-
});
|
|
452
|
-
}
|
|
453
|
-
};
|
|
454
|
-
const de_AddEndpointsCommand = async (output, context) => {
|
|
455
|
-
if (output.statusCode >= 300) {
|
|
456
|
-
return de_AddEndpointsCommandError(output, context);
|
|
457
|
-
}
|
|
458
|
-
const data = await parseBody(output.body, context);
|
|
459
|
-
let contents = {};
|
|
460
|
-
contents = (0, smithy_client_1._json)(data);
|
|
461
|
-
const response = {
|
|
462
|
-
$metadata: deserializeMetadata(output),
|
|
463
|
-
...contents,
|
|
464
|
-
};
|
|
465
|
-
return response;
|
|
466
|
-
};
|
|
467
|
-
exports.de_AddEndpointsCommand = de_AddEndpointsCommand;
|
|
468
|
-
const de_AddEndpointsCommandError = async (output, context) => {
|
|
469
|
-
const parsedOutput = {
|
|
470
|
-
...output,
|
|
471
|
-
body: await parseErrorBody(output.body, context),
|
|
472
|
-
};
|
|
473
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
474
|
-
switch (errorCode) {
|
|
475
|
-
case "AccessDeniedException":
|
|
476
|
-
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
477
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
478
|
-
case "EndpointGroupNotFoundException":
|
|
479
|
-
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
|
|
480
|
-
throw await de_EndpointGroupNotFoundExceptionRes(parsedOutput, context);
|
|
481
|
-
case "InternalServiceErrorException":
|
|
482
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
483
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
484
|
-
case "InvalidArgumentException":
|
|
485
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
486
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
487
|
-
case "LimitExceededException":
|
|
488
|
-
case "com.amazonaws.globalaccelerator#LimitExceededException":
|
|
489
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
490
|
-
case "TransactionInProgressException":
|
|
491
|
-
case "com.amazonaws.globalaccelerator#TransactionInProgressException":
|
|
492
|
-
throw await de_TransactionInProgressExceptionRes(parsedOutput, context);
|
|
493
|
-
default:
|
|
494
|
-
const parsedBody = parsedOutput.body;
|
|
495
|
-
return throwDefaultError({
|
|
496
|
-
output,
|
|
497
|
-
parsedBody,
|
|
498
|
-
errorCode,
|
|
499
|
-
});
|
|
500
|
-
}
|
|
501
|
-
};
|
|
502
|
-
const de_AdvertiseByoipCidrCommand = async (output, context) => {
|
|
503
|
-
if (output.statusCode >= 300) {
|
|
504
|
-
return de_AdvertiseByoipCidrCommandError(output, context);
|
|
505
|
-
}
|
|
506
|
-
const data = await parseBody(output.body, context);
|
|
507
|
-
let contents = {};
|
|
508
|
-
contents = de_AdvertiseByoipCidrResponse(data, context);
|
|
509
|
-
const response = {
|
|
510
|
-
$metadata: deserializeMetadata(output),
|
|
511
|
-
...contents,
|
|
512
|
-
};
|
|
513
|
-
return response;
|
|
514
|
-
};
|
|
515
|
-
exports.de_AdvertiseByoipCidrCommand = de_AdvertiseByoipCidrCommand;
|
|
516
|
-
const de_AdvertiseByoipCidrCommandError = async (output, context) => {
|
|
517
|
-
const parsedOutput = {
|
|
518
|
-
...output,
|
|
519
|
-
body: await parseErrorBody(output.body, context),
|
|
520
|
-
};
|
|
521
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
522
|
-
switch (errorCode) {
|
|
523
|
-
case "AccessDeniedException":
|
|
524
|
-
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
525
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
526
|
-
case "ByoipCidrNotFoundException":
|
|
527
|
-
case "com.amazonaws.globalaccelerator#ByoipCidrNotFoundException":
|
|
528
|
-
throw await de_ByoipCidrNotFoundExceptionRes(parsedOutput, context);
|
|
529
|
-
case "IncorrectCidrStateException":
|
|
530
|
-
case "com.amazonaws.globalaccelerator#IncorrectCidrStateException":
|
|
531
|
-
throw await de_IncorrectCidrStateExceptionRes(parsedOutput, context);
|
|
532
|
-
case "InternalServiceErrorException":
|
|
533
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
534
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
535
|
-
case "InvalidArgumentException":
|
|
536
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
537
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
538
|
-
default:
|
|
539
|
-
const parsedBody = parsedOutput.body;
|
|
540
|
-
return throwDefaultError({
|
|
541
|
-
output,
|
|
542
|
-
parsedBody,
|
|
543
|
-
errorCode,
|
|
544
|
-
});
|
|
545
|
-
}
|
|
546
|
-
};
|
|
547
|
-
const de_AllowCustomRoutingTrafficCommand = async (output, context) => {
|
|
548
|
-
if (output.statusCode >= 300) {
|
|
549
|
-
return de_AllowCustomRoutingTrafficCommandError(output, context);
|
|
550
|
-
}
|
|
551
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
552
|
-
const response = {
|
|
553
|
-
$metadata: deserializeMetadata(output),
|
|
554
|
-
};
|
|
555
|
-
return response;
|
|
556
|
-
};
|
|
557
|
-
exports.de_AllowCustomRoutingTrafficCommand = de_AllowCustomRoutingTrafficCommand;
|
|
558
|
-
const de_AllowCustomRoutingTrafficCommandError = async (output, context) => {
|
|
559
|
-
const parsedOutput = {
|
|
560
|
-
...output,
|
|
561
|
-
body: await parseErrorBody(output.body, context),
|
|
562
|
-
};
|
|
563
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
564
|
-
switch (errorCode) {
|
|
565
|
-
case "EndpointGroupNotFoundException":
|
|
566
|
-
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
|
|
567
|
-
throw await de_EndpointGroupNotFoundExceptionRes(parsedOutput, context);
|
|
568
|
-
case "InternalServiceErrorException":
|
|
569
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
570
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
571
|
-
case "InvalidArgumentException":
|
|
572
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
573
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
574
|
-
default:
|
|
575
|
-
const parsedBody = parsedOutput.body;
|
|
576
|
-
return throwDefaultError({
|
|
577
|
-
output,
|
|
578
|
-
parsedBody,
|
|
579
|
-
errorCode,
|
|
580
|
-
});
|
|
581
|
-
}
|
|
582
|
-
};
|
|
583
|
-
const de_CreateAcceleratorCommand = async (output, context) => {
|
|
584
|
-
if (output.statusCode >= 300) {
|
|
585
|
-
return de_CreateAcceleratorCommandError(output, context);
|
|
586
|
-
}
|
|
587
|
-
const data = await parseBody(output.body, context);
|
|
588
|
-
let contents = {};
|
|
589
|
-
contents = de_CreateAcceleratorResponse(data, context);
|
|
590
|
-
const response = {
|
|
591
|
-
$metadata: deserializeMetadata(output),
|
|
592
|
-
...contents,
|
|
593
|
-
};
|
|
594
|
-
return response;
|
|
595
|
-
};
|
|
596
|
-
exports.de_CreateAcceleratorCommand = de_CreateAcceleratorCommand;
|
|
597
|
-
const de_CreateAcceleratorCommandError = async (output, context) => {
|
|
598
|
-
const parsedOutput = {
|
|
599
|
-
...output,
|
|
600
|
-
body: await parseErrorBody(output.body, context),
|
|
601
|
-
};
|
|
602
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
603
|
-
switch (errorCode) {
|
|
604
|
-
case "InternalServiceErrorException":
|
|
605
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
606
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
607
|
-
case "InvalidArgumentException":
|
|
608
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
609
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
610
|
-
case "LimitExceededException":
|
|
611
|
-
case "com.amazonaws.globalaccelerator#LimitExceededException":
|
|
612
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
613
|
-
default:
|
|
614
|
-
const parsedBody = parsedOutput.body;
|
|
615
|
-
return throwDefaultError({
|
|
616
|
-
output,
|
|
617
|
-
parsedBody,
|
|
618
|
-
errorCode,
|
|
619
|
-
});
|
|
620
|
-
}
|
|
621
|
-
};
|
|
622
|
-
const de_CreateCrossAccountAttachmentCommand = async (output, context) => {
|
|
623
|
-
if (output.statusCode >= 300) {
|
|
624
|
-
return de_CreateCrossAccountAttachmentCommandError(output, context);
|
|
625
|
-
}
|
|
626
|
-
const data = await parseBody(output.body, context);
|
|
627
|
-
let contents = {};
|
|
628
|
-
contents = de_CreateCrossAccountAttachmentResponse(data, context);
|
|
629
|
-
const response = {
|
|
630
|
-
$metadata: deserializeMetadata(output),
|
|
631
|
-
...contents,
|
|
632
|
-
};
|
|
633
|
-
return response;
|
|
634
|
-
};
|
|
635
|
-
exports.de_CreateCrossAccountAttachmentCommand = de_CreateCrossAccountAttachmentCommand;
|
|
636
|
-
const de_CreateCrossAccountAttachmentCommandError = async (output, context) => {
|
|
637
|
-
const parsedOutput = {
|
|
638
|
-
...output,
|
|
639
|
-
body: await parseErrorBody(output.body, context),
|
|
640
|
-
};
|
|
641
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
642
|
-
switch (errorCode) {
|
|
643
|
-
case "AccessDeniedException":
|
|
644
|
-
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
645
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
646
|
-
case "InternalServiceErrorException":
|
|
647
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
648
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
649
|
-
case "InvalidArgumentException":
|
|
650
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
651
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
652
|
-
case "LimitExceededException":
|
|
653
|
-
case "com.amazonaws.globalaccelerator#LimitExceededException":
|
|
654
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
655
|
-
case "TransactionInProgressException":
|
|
656
|
-
case "com.amazonaws.globalaccelerator#TransactionInProgressException":
|
|
657
|
-
throw await de_TransactionInProgressExceptionRes(parsedOutput, context);
|
|
658
|
-
default:
|
|
659
|
-
const parsedBody = parsedOutput.body;
|
|
660
|
-
return throwDefaultError({
|
|
661
|
-
output,
|
|
662
|
-
parsedBody,
|
|
663
|
-
errorCode,
|
|
664
|
-
});
|
|
665
|
-
}
|
|
666
|
-
};
|
|
667
|
-
const de_CreateCustomRoutingAcceleratorCommand = async (output, context) => {
|
|
668
|
-
if (output.statusCode >= 300) {
|
|
669
|
-
return de_CreateCustomRoutingAcceleratorCommandError(output, context);
|
|
670
|
-
}
|
|
671
|
-
const data = await parseBody(output.body, context);
|
|
672
|
-
let contents = {};
|
|
673
|
-
contents = de_CreateCustomRoutingAcceleratorResponse(data, context);
|
|
674
|
-
const response = {
|
|
675
|
-
$metadata: deserializeMetadata(output),
|
|
676
|
-
...contents,
|
|
677
|
-
};
|
|
678
|
-
return response;
|
|
679
|
-
};
|
|
680
|
-
exports.de_CreateCustomRoutingAcceleratorCommand = de_CreateCustomRoutingAcceleratorCommand;
|
|
681
|
-
const de_CreateCustomRoutingAcceleratorCommandError = async (output, context) => {
|
|
682
|
-
const parsedOutput = {
|
|
683
|
-
...output,
|
|
684
|
-
body: await parseErrorBody(output.body, context),
|
|
685
|
-
};
|
|
686
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
687
|
-
switch (errorCode) {
|
|
688
|
-
case "AccessDeniedException":
|
|
689
|
-
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
690
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
691
|
-
case "InternalServiceErrorException":
|
|
692
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
693
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
694
|
-
case "InvalidArgumentException":
|
|
695
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
696
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
697
|
-
case "LimitExceededException":
|
|
698
|
-
case "com.amazonaws.globalaccelerator#LimitExceededException":
|
|
699
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
700
|
-
default:
|
|
701
|
-
const parsedBody = parsedOutput.body;
|
|
702
|
-
return throwDefaultError({
|
|
703
|
-
output,
|
|
704
|
-
parsedBody,
|
|
705
|
-
errorCode,
|
|
706
|
-
});
|
|
707
|
-
}
|
|
708
|
-
};
|
|
709
|
-
const de_CreateCustomRoutingEndpointGroupCommand = async (output, context) => {
|
|
710
|
-
if (output.statusCode >= 300) {
|
|
711
|
-
return de_CreateCustomRoutingEndpointGroupCommandError(output, context);
|
|
712
|
-
}
|
|
713
|
-
const data = await parseBody(output.body, context);
|
|
714
|
-
let contents = {};
|
|
715
|
-
contents = (0, smithy_client_1._json)(data);
|
|
716
|
-
const response = {
|
|
717
|
-
$metadata: deserializeMetadata(output),
|
|
718
|
-
...contents,
|
|
719
|
-
};
|
|
720
|
-
return response;
|
|
721
|
-
};
|
|
722
|
-
exports.de_CreateCustomRoutingEndpointGroupCommand = de_CreateCustomRoutingEndpointGroupCommand;
|
|
723
|
-
const de_CreateCustomRoutingEndpointGroupCommandError = async (output, context) => {
|
|
724
|
-
const parsedOutput = {
|
|
725
|
-
...output,
|
|
726
|
-
body: await parseErrorBody(output.body, context),
|
|
727
|
-
};
|
|
728
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
729
|
-
switch (errorCode) {
|
|
730
|
-
case "AcceleratorNotFoundException":
|
|
731
|
-
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
732
|
-
throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
|
|
733
|
-
case "AccessDeniedException":
|
|
734
|
-
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
735
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
736
|
-
case "EndpointGroupAlreadyExistsException":
|
|
737
|
-
case "com.amazonaws.globalaccelerator#EndpointGroupAlreadyExistsException":
|
|
738
|
-
throw await de_EndpointGroupAlreadyExistsExceptionRes(parsedOutput, context);
|
|
739
|
-
case "InternalServiceErrorException":
|
|
740
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
741
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
742
|
-
case "InvalidArgumentException":
|
|
743
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
744
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
745
|
-
case "InvalidPortRangeException":
|
|
746
|
-
case "com.amazonaws.globalaccelerator#InvalidPortRangeException":
|
|
747
|
-
throw await de_InvalidPortRangeExceptionRes(parsedOutput, context);
|
|
748
|
-
case "LimitExceededException":
|
|
749
|
-
case "com.amazonaws.globalaccelerator#LimitExceededException":
|
|
750
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
751
|
-
case "ListenerNotFoundException":
|
|
752
|
-
case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
|
|
753
|
-
throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
|
|
754
|
-
default:
|
|
755
|
-
const parsedBody = parsedOutput.body;
|
|
756
|
-
return throwDefaultError({
|
|
757
|
-
output,
|
|
758
|
-
parsedBody,
|
|
759
|
-
errorCode,
|
|
760
|
-
});
|
|
761
|
-
}
|
|
762
|
-
};
|
|
763
|
-
const de_CreateCustomRoutingListenerCommand = async (output, context) => {
|
|
764
|
-
if (output.statusCode >= 300) {
|
|
765
|
-
return de_CreateCustomRoutingListenerCommandError(output, context);
|
|
766
|
-
}
|
|
767
|
-
const data = await parseBody(output.body, context);
|
|
768
|
-
let contents = {};
|
|
769
|
-
contents = (0, smithy_client_1._json)(data);
|
|
770
|
-
const response = {
|
|
771
|
-
$metadata: deserializeMetadata(output),
|
|
772
|
-
...contents,
|
|
773
|
-
};
|
|
774
|
-
return response;
|
|
775
|
-
};
|
|
776
|
-
exports.de_CreateCustomRoutingListenerCommand = de_CreateCustomRoutingListenerCommand;
|
|
777
|
-
const de_CreateCustomRoutingListenerCommandError = async (output, context) => {
|
|
778
|
-
const parsedOutput = {
|
|
779
|
-
...output,
|
|
780
|
-
body: await parseErrorBody(output.body, context),
|
|
781
|
-
};
|
|
782
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
783
|
-
switch (errorCode) {
|
|
784
|
-
case "AcceleratorNotFoundException":
|
|
785
|
-
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
786
|
-
throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
|
|
787
|
-
case "InternalServiceErrorException":
|
|
788
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
789
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
790
|
-
case "InvalidArgumentException":
|
|
791
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
792
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
793
|
-
case "InvalidPortRangeException":
|
|
794
|
-
case "com.amazonaws.globalaccelerator#InvalidPortRangeException":
|
|
795
|
-
throw await de_InvalidPortRangeExceptionRes(parsedOutput, context);
|
|
796
|
-
case "LimitExceededException":
|
|
797
|
-
case "com.amazonaws.globalaccelerator#LimitExceededException":
|
|
798
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
799
|
-
default:
|
|
800
|
-
const parsedBody = parsedOutput.body;
|
|
801
|
-
return throwDefaultError({
|
|
802
|
-
output,
|
|
803
|
-
parsedBody,
|
|
804
|
-
errorCode,
|
|
805
|
-
});
|
|
806
|
-
}
|
|
807
|
-
};
|
|
808
|
-
const de_CreateEndpointGroupCommand = async (output, context) => {
|
|
809
|
-
if (output.statusCode >= 300) {
|
|
810
|
-
return de_CreateEndpointGroupCommandError(output, context);
|
|
811
|
-
}
|
|
812
|
-
const data = await parseBody(output.body, context);
|
|
813
|
-
let contents = {};
|
|
814
|
-
contents = de_CreateEndpointGroupResponse(data, context);
|
|
815
|
-
const response = {
|
|
816
|
-
$metadata: deserializeMetadata(output),
|
|
817
|
-
...contents,
|
|
818
|
-
};
|
|
819
|
-
return response;
|
|
820
|
-
};
|
|
821
|
-
exports.de_CreateEndpointGroupCommand = de_CreateEndpointGroupCommand;
|
|
822
|
-
const de_CreateEndpointGroupCommandError = async (output, context) => {
|
|
823
|
-
const parsedOutput = {
|
|
824
|
-
...output,
|
|
825
|
-
body: await parseErrorBody(output.body, context),
|
|
826
|
-
};
|
|
827
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
828
|
-
switch (errorCode) {
|
|
829
|
-
case "AcceleratorNotFoundException":
|
|
830
|
-
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
831
|
-
throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
|
|
832
|
-
case "AccessDeniedException":
|
|
833
|
-
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
834
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
835
|
-
case "EndpointGroupAlreadyExistsException":
|
|
836
|
-
case "com.amazonaws.globalaccelerator#EndpointGroupAlreadyExistsException":
|
|
837
|
-
throw await de_EndpointGroupAlreadyExistsExceptionRes(parsedOutput, context);
|
|
838
|
-
case "InternalServiceErrorException":
|
|
839
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
840
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
841
|
-
case "InvalidArgumentException":
|
|
842
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
843
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
844
|
-
case "LimitExceededException":
|
|
845
|
-
case "com.amazonaws.globalaccelerator#LimitExceededException":
|
|
846
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
847
|
-
case "ListenerNotFoundException":
|
|
848
|
-
case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
|
|
849
|
-
throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
|
|
850
|
-
default:
|
|
851
|
-
const parsedBody = parsedOutput.body;
|
|
852
|
-
return throwDefaultError({
|
|
853
|
-
output,
|
|
854
|
-
parsedBody,
|
|
855
|
-
errorCode,
|
|
856
|
-
});
|
|
857
|
-
}
|
|
858
|
-
};
|
|
859
|
-
const de_CreateListenerCommand = async (output, context) => {
|
|
860
|
-
if (output.statusCode >= 300) {
|
|
861
|
-
return de_CreateListenerCommandError(output, context);
|
|
862
|
-
}
|
|
863
|
-
const data = await parseBody(output.body, context);
|
|
864
|
-
let contents = {};
|
|
865
|
-
contents = (0, smithy_client_1._json)(data);
|
|
866
|
-
const response = {
|
|
867
|
-
$metadata: deserializeMetadata(output),
|
|
868
|
-
...contents,
|
|
869
|
-
};
|
|
870
|
-
return response;
|
|
871
|
-
};
|
|
872
|
-
exports.de_CreateListenerCommand = de_CreateListenerCommand;
|
|
873
|
-
const de_CreateListenerCommandError = async (output, context) => {
|
|
874
|
-
const parsedOutput = {
|
|
875
|
-
...output,
|
|
876
|
-
body: await parseErrorBody(output.body, context),
|
|
877
|
-
};
|
|
878
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
879
|
-
switch (errorCode) {
|
|
880
|
-
case "AcceleratorNotFoundException":
|
|
881
|
-
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
882
|
-
throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
|
|
883
|
-
case "InternalServiceErrorException":
|
|
884
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
885
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
886
|
-
case "InvalidArgumentException":
|
|
887
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
888
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
889
|
-
case "InvalidPortRangeException":
|
|
890
|
-
case "com.amazonaws.globalaccelerator#InvalidPortRangeException":
|
|
891
|
-
throw await de_InvalidPortRangeExceptionRes(parsedOutput, context);
|
|
892
|
-
case "LimitExceededException":
|
|
893
|
-
case "com.amazonaws.globalaccelerator#LimitExceededException":
|
|
894
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
895
|
-
default:
|
|
896
|
-
const parsedBody = parsedOutput.body;
|
|
897
|
-
return throwDefaultError({
|
|
898
|
-
output,
|
|
899
|
-
parsedBody,
|
|
900
|
-
errorCode,
|
|
901
|
-
});
|
|
902
|
-
}
|
|
903
|
-
};
|
|
904
|
-
const de_DeleteAcceleratorCommand = async (output, context) => {
|
|
905
|
-
if (output.statusCode >= 300) {
|
|
906
|
-
return de_DeleteAcceleratorCommandError(output, context);
|
|
907
|
-
}
|
|
908
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
909
|
-
const response = {
|
|
910
|
-
$metadata: deserializeMetadata(output),
|
|
911
|
-
};
|
|
912
|
-
return response;
|
|
913
|
-
};
|
|
914
|
-
exports.de_DeleteAcceleratorCommand = de_DeleteAcceleratorCommand;
|
|
915
|
-
const de_DeleteAcceleratorCommandError = async (output, context) => {
|
|
916
|
-
const parsedOutput = {
|
|
917
|
-
...output,
|
|
918
|
-
body: await parseErrorBody(output.body, context),
|
|
919
|
-
};
|
|
920
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
921
|
-
switch (errorCode) {
|
|
922
|
-
case "AcceleratorNotDisabledException":
|
|
923
|
-
case "com.amazonaws.globalaccelerator#AcceleratorNotDisabledException":
|
|
924
|
-
throw await de_AcceleratorNotDisabledExceptionRes(parsedOutput, context);
|
|
925
|
-
case "AcceleratorNotFoundException":
|
|
926
|
-
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
927
|
-
throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
|
|
928
|
-
case "AssociatedListenerFoundException":
|
|
929
|
-
case "com.amazonaws.globalaccelerator#AssociatedListenerFoundException":
|
|
930
|
-
throw await de_AssociatedListenerFoundExceptionRes(parsedOutput, context);
|
|
931
|
-
case "InternalServiceErrorException":
|
|
932
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
933
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
934
|
-
case "InvalidArgumentException":
|
|
935
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
936
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
937
|
-
default:
|
|
938
|
-
const parsedBody = parsedOutput.body;
|
|
939
|
-
return throwDefaultError({
|
|
940
|
-
output,
|
|
941
|
-
parsedBody,
|
|
942
|
-
errorCode,
|
|
943
|
-
});
|
|
944
|
-
}
|
|
945
|
-
};
|
|
946
|
-
const de_DeleteCrossAccountAttachmentCommand = async (output, context) => {
|
|
947
|
-
if (output.statusCode >= 300) {
|
|
948
|
-
return de_DeleteCrossAccountAttachmentCommandError(output, context);
|
|
949
|
-
}
|
|
950
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
951
|
-
const response = {
|
|
952
|
-
$metadata: deserializeMetadata(output),
|
|
953
|
-
};
|
|
954
|
-
return response;
|
|
955
|
-
};
|
|
956
|
-
exports.de_DeleteCrossAccountAttachmentCommand = de_DeleteCrossAccountAttachmentCommand;
|
|
957
|
-
const de_DeleteCrossAccountAttachmentCommandError = async (output, context) => {
|
|
958
|
-
const parsedOutput = {
|
|
959
|
-
...output,
|
|
960
|
-
body: await parseErrorBody(output.body, context),
|
|
961
|
-
};
|
|
962
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
963
|
-
switch (errorCode) {
|
|
964
|
-
case "AccessDeniedException":
|
|
965
|
-
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
966
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
967
|
-
case "AttachmentNotFoundException":
|
|
968
|
-
case "com.amazonaws.globalaccelerator#AttachmentNotFoundException":
|
|
969
|
-
throw await de_AttachmentNotFoundExceptionRes(parsedOutput, context);
|
|
970
|
-
case "InternalServiceErrorException":
|
|
971
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
972
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
973
|
-
case "InvalidArgumentException":
|
|
974
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
975
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
976
|
-
case "TransactionInProgressException":
|
|
977
|
-
case "com.amazonaws.globalaccelerator#TransactionInProgressException":
|
|
978
|
-
throw await de_TransactionInProgressExceptionRes(parsedOutput, context);
|
|
979
|
-
default:
|
|
980
|
-
const parsedBody = parsedOutput.body;
|
|
981
|
-
return throwDefaultError({
|
|
982
|
-
output,
|
|
983
|
-
parsedBody,
|
|
984
|
-
errorCode,
|
|
985
|
-
});
|
|
986
|
-
}
|
|
987
|
-
};
|
|
988
|
-
const de_DeleteCustomRoutingAcceleratorCommand = async (output, context) => {
|
|
989
|
-
if (output.statusCode >= 300) {
|
|
990
|
-
return de_DeleteCustomRoutingAcceleratorCommandError(output, context);
|
|
991
|
-
}
|
|
992
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
993
|
-
const response = {
|
|
994
|
-
$metadata: deserializeMetadata(output),
|
|
995
|
-
};
|
|
996
|
-
return response;
|
|
997
|
-
};
|
|
998
|
-
exports.de_DeleteCustomRoutingAcceleratorCommand = de_DeleteCustomRoutingAcceleratorCommand;
|
|
999
|
-
const de_DeleteCustomRoutingAcceleratorCommandError = async (output, context) => {
|
|
1000
|
-
const parsedOutput = {
|
|
1001
|
-
...output,
|
|
1002
|
-
body: await parseErrorBody(output.body, context),
|
|
1003
|
-
};
|
|
1004
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1005
|
-
switch (errorCode) {
|
|
1006
|
-
case "AcceleratorNotDisabledException":
|
|
1007
|
-
case "com.amazonaws.globalaccelerator#AcceleratorNotDisabledException":
|
|
1008
|
-
throw await de_AcceleratorNotDisabledExceptionRes(parsedOutput, context);
|
|
1009
|
-
case "AcceleratorNotFoundException":
|
|
1010
|
-
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
1011
|
-
throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
|
|
1012
|
-
case "AssociatedListenerFoundException":
|
|
1013
|
-
case "com.amazonaws.globalaccelerator#AssociatedListenerFoundException":
|
|
1014
|
-
throw await de_AssociatedListenerFoundExceptionRes(parsedOutput, context);
|
|
1015
|
-
case "InternalServiceErrorException":
|
|
1016
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1017
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1018
|
-
case "InvalidArgumentException":
|
|
1019
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1020
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1021
|
-
default:
|
|
1022
|
-
const parsedBody = parsedOutput.body;
|
|
1023
|
-
return throwDefaultError({
|
|
1024
|
-
output,
|
|
1025
|
-
parsedBody,
|
|
1026
|
-
errorCode,
|
|
1027
|
-
});
|
|
1028
|
-
}
|
|
1029
|
-
};
|
|
1030
|
-
const de_DeleteCustomRoutingEndpointGroupCommand = async (output, context) => {
|
|
1031
|
-
if (output.statusCode >= 300) {
|
|
1032
|
-
return de_DeleteCustomRoutingEndpointGroupCommandError(output, context);
|
|
1033
|
-
}
|
|
1034
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1035
|
-
const response = {
|
|
1036
|
-
$metadata: deserializeMetadata(output),
|
|
1037
|
-
};
|
|
1038
|
-
return response;
|
|
1039
|
-
};
|
|
1040
|
-
exports.de_DeleteCustomRoutingEndpointGroupCommand = de_DeleteCustomRoutingEndpointGroupCommand;
|
|
1041
|
-
const de_DeleteCustomRoutingEndpointGroupCommandError = async (output, context) => {
|
|
1042
|
-
const parsedOutput = {
|
|
1043
|
-
...output,
|
|
1044
|
-
body: await parseErrorBody(output.body, context),
|
|
1045
|
-
};
|
|
1046
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1047
|
-
switch (errorCode) {
|
|
1048
|
-
case "EndpointGroupNotFoundException":
|
|
1049
|
-
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
|
|
1050
|
-
throw await de_EndpointGroupNotFoundExceptionRes(parsedOutput, context);
|
|
1051
|
-
case "InternalServiceErrorException":
|
|
1052
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1053
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1054
|
-
case "InvalidArgumentException":
|
|
1055
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1056
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1057
|
-
default:
|
|
1058
|
-
const parsedBody = parsedOutput.body;
|
|
1059
|
-
return throwDefaultError({
|
|
1060
|
-
output,
|
|
1061
|
-
parsedBody,
|
|
1062
|
-
errorCode,
|
|
1063
|
-
});
|
|
1064
|
-
}
|
|
1065
|
-
};
|
|
1066
|
-
const de_DeleteCustomRoutingListenerCommand = async (output, context) => {
|
|
1067
|
-
if (output.statusCode >= 300) {
|
|
1068
|
-
return de_DeleteCustomRoutingListenerCommandError(output, context);
|
|
1069
|
-
}
|
|
1070
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1071
|
-
const response = {
|
|
1072
|
-
$metadata: deserializeMetadata(output),
|
|
1073
|
-
};
|
|
1074
|
-
return response;
|
|
1075
|
-
};
|
|
1076
|
-
exports.de_DeleteCustomRoutingListenerCommand = de_DeleteCustomRoutingListenerCommand;
|
|
1077
|
-
const de_DeleteCustomRoutingListenerCommandError = async (output, context) => {
|
|
1078
|
-
const parsedOutput = {
|
|
1079
|
-
...output,
|
|
1080
|
-
body: await parseErrorBody(output.body, context),
|
|
1081
|
-
};
|
|
1082
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1083
|
-
switch (errorCode) {
|
|
1084
|
-
case "AssociatedEndpointGroupFoundException":
|
|
1085
|
-
case "com.amazonaws.globalaccelerator#AssociatedEndpointGroupFoundException":
|
|
1086
|
-
throw await de_AssociatedEndpointGroupFoundExceptionRes(parsedOutput, context);
|
|
1087
|
-
case "InternalServiceErrorException":
|
|
1088
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1089
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1090
|
-
case "InvalidArgumentException":
|
|
1091
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1092
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1093
|
-
case "ListenerNotFoundException":
|
|
1094
|
-
case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
|
|
1095
|
-
throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
|
|
1096
|
-
default:
|
|
1097
|
-
const parsedBody = parsedOutput.body;
|
|
1098
|
-
return throwDefaultError({
|
|
1099
|
-
output,
|
|
1100
|
-
parsedBody,
|
|
1101
|
-
errorCode,
|
|
1102
|
-
});
|
|
1103
|
-
}
|
|
1104
|
-
};
|
|
1105
|
-
const de_DeleteEndpointGroupCommand = async (output, context) => {
|
|
1106
|
-
if (output.statusCode >= 300) {
|
|
1107
|
-
return de_DeleteEndpointGroupCommandError(output, context);
|
|
1108
|
-
}
|
|
1109
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1110
|
-
const response = {
|
|
1111
|
-
$metadata: deserializeMetadata(output),
|
|
1112
|
-
};
|
|
1113
|
-
return response;
|
|
1114
|
-
};
|
|
1115
|
-
exports.de_DeleteEndpointGroupCommand = de_DeleteEndpointGroupCommand;
|
|
1116
|
-
const de_DeleteEndpointGroupCommandError = async (output, context) => {
|
|
1117
|
-
const parsedOutput = {
|
|
1118
|
-
...output,
|
|
1119
|
-
body: await parseErrorBody(output.body, context),
|
|
1120
|
-
};
|
|
1121
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1122
|
-
switch (errorCode) {
|
|
1123
|
-
case "EndpointGroupNotFoundException":
|
|
1124
|
-
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
|
|
1125
|
-
throw await de_EndpointGroupNotFoundExceptionRes(parsedOutput, context);
|
|
1126
|
-
case "InternalServiceErrorException":
|
|
1127
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1128
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1129
|
-
case "InvalidArgumentException":
|
|
1130
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1131
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1132
|
-
default:
|
|
1133
|
-
const parsedBody = parsedOutput.body;
|
|
1134
|
-
return throwDefaultError({
|
|
1135
|
-
output,
|
|
1136
|
-
parsedBody,
|
|
1137
|
-
errorCode,
|
|
1138
|
-
});
|
|
1139
|
-
}
|
|
1140
|
-
};
|
|
1141
|
-
const de_DeleteListenerCommand = async (output, context) => {
|
|
1142
|
-
if (output.statusCode >= 300) {
|
|
1143
|
-
return de_DeleteListenerCommandError(output, context);
|
|
1144
|
-
}
|
|
1145
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1146
|
-
const response = {
|
|
1147
|
-
$metadata: deserializeMetadata(output),
|
|
1148
|
-
};
|
|
1149
|
-
return response;
|
|
1150
|
-
};
|
|
1151
|
-
exports.de_DeleteListenerCommand = de_DeleteListenerCommand;
|
|
1152
|
-
const de_DeleteListenerCommandError = async (output, context) => {
|
|
1153
|
-
const parsedOutput = {
|
|
1154
|
-
...output,
|
|
1155
|
-
body: await parseErrorBody(output.body, context),
|
|
1156
|
-
};
|
|
1157
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1158
|
-
switch (errorCode) {
|
|
1159
|
-
case "AssociatedEndpointGroupFoundException":
|
|
1160
|
-
case "com.amazonaws.globalaccelerator#AssociatedEndpointGroupFoundException":
|
|
1161
|
-
throw await de_AssociatedEndpointGroupFoundExceptionRes(parsedOutput, context);
|
|
1162
|
-
case "InternalServiceErrorException":
|
|
1163
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1164
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1165
|
-
case "InvalidArgumentException":
|
|
1166
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1167
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1168
|
-
case "ListenerNotFoundException":
|
|
1169
|
-
case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
|
|
1170
|
-
throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
|
|
1171
|
-
default:
|
|
1172
|
-
const parsedBody = parsedOutput.body;
|
|
1173
|
-
return throwDefaultError({
|
|
1174
|
-
output,
|
|
1175
|
-
parsedBody,
|
|
1176
|
-
errorCode,
|
|
1177
|
-
});
|
|
1178
|
-
}
|
|
1179
|
-
};
|
|
1180
|
-
const de_DenyCustomRoutingTrafficCommand = async (output, context) => {
|
|
1181
|
-
if (output.statusCode >= 300) {
|
|
1182
|
-
return de_DenyCustomRoutingTrafficCommandError(output, context);
|
|
1183
|
-
}
|
|
1184
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1185
|
-
const response = {
|
|
1186
|
-
$metadata: deserializeMetadata(output),
|
|
1187
|
-
};
|
|
1188
|
-
return response;
|
|
1189
|
-
};
|
|
1190
|
-
exports.de_DenyCustomRoutingTrafficCommand = de_DenyCustomRoutingTrafficCommand;
|
|
1191
|
-
const de_DenyCustomRoutingTrafficCommandError = async (output, context) => {
|
|
1192
|
-
const parsedOutput = {
|
|
1193
|
-
...output,
|
|
1194
|
-
body: await parseErrorBody(output.body, context),
|
|
1195
|
-
};
|
|
1196
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1197
|
-
switch (errorCode) {
|
|
1198
|
-
case "EndpointGroupNotFoundException":
|
|
1199
|
-
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
|
|
1200
|
-
throw await de_EndpointGroupNotFoundExceptionRes(parsedOutput, context);
|
|
1201
|
-
case "InternalServiceErrorException":
|
|
1202
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1203
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1204
|
-
case "InvalidArgumentException":
|
|
1205
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1206
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1207
|
-
default:
|
|
1208
|
-
const parsedBody = parsedOutput.body;
|
|
1209
|
-
return throwDefaultError({
|
|
1210
|
-
output,
|
|
1211
|
-
parsedBody,
|
|
1212
|
-
errorCode,
|
|
1213
|
-
});
|
|
1214
|
-
}
|
|
1215
|
-
};
|
|
1216
|
-
const de_DeprovisionByoipCidrCommand = async (output, context) => {
|
|
1217
|
-
if (output.statusCode >= 300) {
|
|
1218
|
-
return de_DeprovisionByoipCidrCommandError(output, context);
|
|
1219
|
-
}
|
|
1220
|
-
const data = await parseBody(output.body, context);
|
|
1221
|
-
let contents = {};
|
|
1222
|
-
contents = de_DeprovisionByoipCidrResponse(data, context);
|
|
1223
|
-
const response = {
|
|
1224
|
-
$metadata: deserializeMetadata(output),
|
|
1225
|
-
...contents,
|
|
1226
|
-
};
|
|
1227
|
-
return response;
|
|
1228
|
-
};
|
|
1229
|
-
exports.de_DeprovisionByoipCidrCommand = de_DeprovisionByoipCidrCommand;
|
|
1230
|
-
const de_DeprovisionByoipCidrCommandError = async (output, context) => {
|
|
1231
|
-
const parsedOutput = {
|
|
1232
|
-
...output,
|
|
1233
|
-
body: await parseErrorBody(output.body, context),
|
|
1234
|
-
};
|
|
1235
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1236
|
-
switch (errorCode) {
|
|
1237
|
-
case "AccessDeniedException":
|
|
1238
|
-
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
1239
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1240
|
-
case "ByoipCidrNotFoundException":
|
|
1241
|
-
case "com.amazonaws.globalaccelerator#ByoipCidrNotFoundException":
|
|
1242
|
-
throw await de_ByoipCidrNotFoundExceptionRes(parsedOutput, context);
|
|
1243
|
-
case "IncorrectCidrStateException":
|
|
1244
|
-
case "com.amazonaws.globalaccelerator#IncorrectCidrStateException":
|
|
1245
|
-
throw await de_IncorrectCidrStateExceptionRes(parsedOutput, context);
|
|
1246
|
-
case "InternalServiceErrorException":
|
|
1247
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1248
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1249
|
-
case "InvalidArgumentException":
|
|
1250
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1251
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1252
|
-
default:
|
|
1253
|
-
const parsedBody = parsedOutput.body;
|
|
1254
|
-
return throwDefaultError({
|
|
1255
|
-
output,
|
|
1256
|
-
parsedBody,
|
|
1257
|
-
errorCode,
|
|
1258
|
-
});
|
|
1259
|
-
}
|
|
1260
|
-
};
|
|
1261
|
-
const de_DescribeAcceleratorCommand = async (output, context) => {
|
|
1262
|
-
if (output.statusCode >= 300) {
|
|
1263
|
-
return de_DescribeAcceleratorCommandError(output, context);
|
|
1264
|
-
}
|
|
1265
|
-
const data = await parseBody(output.body, context);
|
|
1266
|
-
let contents = {};
|
|
1267
|
-
contents = de_DescribeAcceleratorResponse(data, context);
|
|
1268
|
-
const response = {
|
|
1269
|
-
$metadata: deserializeMetadata(output),
|
|
1270
|
-
...contents,
|
|
1271
|
-
};
|
|
1272
|
-
return response;
|
|
1273
|
-
};
|
|
1274
|
-
exports.de_DescribeAcceleratorCommand = de_DescribeAcceleratorCommand;
|
|
1275
|
-
const de_DescribeAcceleratorCommandError = async (output, context) => {
|
|
1276
|
-
const parsedOutput = {
|
|
1277
|
-
...output,
|
|
1278
|
-
body: await parseErrorBody(output.body, context),
|
|
1279
|
-
};
|
|
1280
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1281
|
-
switch (errorCode) {
|
|
1282
|
-
case "AcceleratorNotFoundException":
|
|
1283
|
-
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
1284
|
-
throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
|
|
1285
|
-
case "InternalServiceErrorException":
|
|
1286
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1287
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1288
|
-
case "InvalidArgumentException":
|
|
1289
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1290
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1291
|
-
default:
|
|
1292
|
-
const parsedBody = parsedOutput.body;
|
|
1293
|
-
return throwDefaultError({
|
|
1294
|
-
output,
|
|
1295
|
-
parsedBody,
|
|
1296
|
-
errorCode,
|
|
1297
|
-
});
|
|
1298
|
-
}
|
|
1299
|
-
};
|
|
1300
|
-
const de_DescribeAcceleratorAttributesCommand = async (output, context) => {
|
|
1301
|
-
if (output.statusCode >= 300) {
|
|
1302
|
-
return de_DescribeAcceleratorAttributesCommandError(output, context);
|
|
1303
|
-
}
|
|
1304
|
-
const data = await parseBody(output.body, context);
|
|
1305
|
-
let contents = {};
|
|
1306
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1307
|
-
const response = {
|
|
1308
|
-
$metadata: deserializeMetadata(output),
|
|
1309
|
-
...contents,
|
|
1310
|
-
};
|
|
1311
|
-
return response;
|
|
1312
|
-
};
|
|
1313
|
-
exports.de_DescribeAcceleratorAttributesCommand = de_DescribeAcceleratorAttributesCommand;
|
|
1314
|
-
const de_DescribeAcceleratorAttributesCommandError = async (output, context) => {
|
|
1315
|
-
const parsedOutput = {
|
|
1316
|
-
...output,
|
|
1317
|
-
body: await parseErrorBody(output.body, context),
|
|
1318
|
-
};
|
|
1319
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1320
|
-
switch (errorCode) {
|
|
1321
|
-
case "AcceleratorNotFoundException":
|
|
1322
|
-
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
1323
|
-
throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
|
|
1324
|
-
case "InternalServiceErrorException":
|
|
1325
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1326
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1327
|
-
case "InvalidArgumentException":
|
|
1328
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1329
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1330
|
-
default:
|
|
1331
|
-
const parsedBody = parsedOutput.body;
|
|
1332
|
-
return throwDefaultError({
|
|
1333
|
-
output,
|
|
1334
|
-
parsedBody,
|
|
1335
|
-
errorCode,
|
|
1336
|
-
});
|
|
1337
|
-
}
|
|
1338
|
-
};
|
|
1339
|
-
const de_DescribeCrossAccountAttachmentCommand = async (output, context) => {
|
|
1340
|
-
if (output.statusCode >= 300) {
|
|
1341
|
-
return de_DescribeCrossAccountAttachmentCommandError(output, context);
|
|
1342
|
-
}
|
|
1343
|
-
const data = await parseBody(output.body, context);
|
|
1344
|
-
let contents = {};
|
|
1345
|
-
contents = de_DescribeCrossAccountAttachmentResponse(data, context);
|
|
1346
|
-
const response = {
|
|
1347
|
-
$metadata: deserializeMetadata(output),
|
|
1348
|
-
...contents,
|
|
1349
|
-
};
|
|
1350
|
-
return response;
|
|
1351
|
-
};
|
|
1352
|
-
exports.de_DescribeCrossAccountAttachmentCommand = de_DescribeCrossAccountAttachmentCommand;
|
|
1353
|
-
const de_DescribeCrossAccountAttachmentCommandError = async (output, context) => {
|
|
1354
|
-
const parsedOutput = {
|
|
1355
|
-
...output,
|
|
1356
|
-
body: await parseErrorBody(output.body, context),
|
|
1357
|
-
};
|
|
1358
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1359
|
-
switch (errorCode) {
|
|
1360
|
-
case "AccessDeniedException":
|
|
1361
|
-
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
1362
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1363
|
-
case "AttachmentNotFoundException":
|
|
1364
|
-
case "com.amazonaws.globalaccelerator#AttachmentNotFoundException":
|
|
1365
|
-
throw await de_AttachmentNotFoundExceptionRes(parsedOutput, context);
|
|
1366
|
-
case "InternalServiceErrorException":
|
|
1367
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1368
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1369
|
-
case "InvalidArgumentException":
|
|
1370
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1371
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1372
|
-
default:
|
|
1373
|
-
const parsedBody = parsedOutput.body;
|
|
1374
|
-
return throwDefaultError({
|
|
1375
|
-
output,
|
|
1376
|
-
parsedBody,
|
|
1377
|
-
errorCode,
|
|
1378
|
-
});
|
|
1379
|
-
}
|
|
1380
|
-
};
|
|
1381
|
-
const de_DescribeCustomRoutingAcceleratorCommand = async (output, context) => {
|
|
1382
|
-
if (output.statusCode >= 300) {
|
|
1383
|
-
return de_DescribeCustomRoutingAcceleratorCommandError(output, context);
|
|
1384
|
-
}
|
|
1385
|
-
const data = await parseBody(output.body, context);
|
|
1386
|
-
let contents = {};
|
|
1387
|
-
contents = de_DescribeCustomRoutingAcceleratorResponse(data, context);
|
|
1388
|
-
const response = {
|
|
1389
|
-
$metadata: deserializeMetadata(output),
|
|
1390
|
-
...contents,
|
|
1391
|
-
};
|
|
1392
|
-
return response;
|
|
1393
|
-
};
|
|
1394
|
-
exports.de_DescribeCustomRoutingAcceleratorCommand = de_DescribeCustomRoutingAcceleratorCommand;
|
|
1395
|
-
const de_DescribeCustomRoutingAcceleratorCommandError = async (output, context) => {
|
|
1396
|
-
const parsedOutput = {
|
|
1397
|
-
...output,
|
|
1398
|
-
body: await parseErrorBody(output.body, context),
|
|
1399
|
-
};
|
|
1400
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1401
|
-
switch (errorCode) {
|
|
1402
|
-
case "AcceleratorNotFoundException":
|
|
1403
|
-
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
1404
|
-
throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
|
|
1405
|
-
case "InternalServiceErrorException":
|
|
1406
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1407
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1408
|
-
case "InvalidArgumentException":
|
|
1409
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1410
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1411
|
-
default:
|
|
1412
|
-
const parsedBody = parsedOutput.body;
|
|
1413
|
-
return throwDefaultError({
|
|
1414
|
-
output,
|
|
1415
|
-
parsedBody,
|
|
1416
|
-
errorCode,
|
|
1417
|
-
});
|
|
1418
|
-
}
|
|
1419
|
-
};
|
|
1420
|
-
const de_DescribeCustomRoutingAcceleratorAttributesCommand = async (output, context) => {
|
|
1421
|
-
if (output.statusCode >= 300) {
|
|
1422
|
-
return de_DescribeCustomRoutingAcceleratorAttributesCommandError(output, context);
|
|
1423
|
-
}
|
|
1424
|
-
const data = await parseBody(output.body, context);
|
|
1425
|
-
let contents = {};
|
|
1426
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1427
|
-
const response = {
|
|
1428
|
-
$metadata: deserializeMetadata(output),
|
|
1429
|
-
...contents,
|
|
1430
|
-
};
|
|
1431
|
-
return response;
|
|
1432
|
-
};
|
|
1433
|
-
exports.de_DescribeCustomRoutingAcceleratorAttributesCommand = de_DescribeCustomRoutingAcceleratorAttributesCommand;
|
|
1434
|
-
const de_DescribeCustomRoutingAcceleratorAttributesCommandError = async (output, context) => {
|
|
1435
|
-
const parsedOutput = {
|
|
1436
|
-
...output,
|
|
1437
|
-
body: await parseErrorBody(output.body, context),
|
|
1438
|
-
};
|
|
1439
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1440
|
-
switch (errorCode) {
|
|
1441
|
-
case "AcceleratorNotFoundException":
|
|
1442
|
-
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
1443
|
-
throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
|
|
1444
|
-
case "InternalServiceErrorException":
|
|
1445
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1446
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1447
|
-
case "InvalidArgumentException":
|
|
1448
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1449
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1450
|
-
default:
|
|
1451
|
-
const parsedBody = parsedOutput.body;
|
|
1452
|
-
return throwDefaultError({
|
|
1453
|
-
output,
|
|
1454
|
-
parsedBody,
|
|
1455
|
-
errorCode,
|
|
1456
|
-
});
|
|
1457
|
-
}
|
|
1458
|
-
};
|
|
1459
|
-
const de_DescribeCustomRoutingEndpointGroupCommand = async (output, context) => {
|
|
1460
|
-
if (output.statusCode >= 300) {
|
|
1461
|
-
return de_DescribeCustomRoutingEndpointGroupCommandError(output, context);
|
|
1462
|
-
}
|
|
1463
|
-
const data = await parseBody(output.body, context);
|
|
1464
|
-
let contents = {};
|
|
1465
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1466
|
-
const response = {
|
|
1467
|
-
$metadata: deserializeMetadata(output),
|
|
1468
|
-
...contents,
|
|
1469
|
-
};
|
|
1470
|
-
return response;
|
|
1471
|
-
};
|
|
1472
|
-
exports.de_DescribeCustomRoutingEndpointGroupCommand = de_DescribeCustomRoutingEndpointGroupCommand;
|
|
1473
|
-
const de_DescribeCustomRoutingEndpointGroupCommandError = async (output, context) => {
|
|
1474
|
-
const parsedOutput = {
|
|
1475
|
-
...output,
|
|
1476
|
-
body: await parseErrorBody(output.body, context),
|
|
1477
|
-
};
|
|
1478
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1479
|
-
switch (errorCode) {
|
|
1480
|
-
case "EndpointGroupNotFoundException":
|
|
1481
|
-
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
|
|
1482
|
-
throw await de_EndpointGroupNotFoundExceptionRes(parsedOutput, context);
|
|
1483
|
-
case "InternalServiceErrorException":
|
|
1484
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1485
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1486
|
-
case "InvalidArgumentException":
|
|
1487
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1488
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1489
|
-
default:
|
|
1490
|
-
const parsedBody = parsedOutput.body;
|
|
1491
|
-
return throwDefaultError({
|
|
1492
|
-
output,
|
|
1493
|
-
parsedBody,
|
|
1494
|
-
errorCode,
|
|
1495
|
-
});
|
|
1496
|
-
}
|
|
1497
|
-
};
|
|
1498
|
-
const de_DescribeCustomRoutingListenerCommand = async (output, context) => {
|
|
1499
|
-
if (output.statusCode >= 300) {
|
|
1500
|
-
return de_DescribeCustomRoutingListenerCommandError(output, context);
|
|
1501
|
-
}
|
|
1502
|
-
const data = await parseBody(output.body, context);
|
|
1503
|
-
let contents = {};
|
|
1504
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1505
|
-
const response = {
|
|
1506
|
-
$metadata: deserializeMetadata(output),
|
|
1507
|
-
...contents,
|
|
1508
|
-
};
|
|
1509
|
-
return response;
|
|
1510
|
-
};
|
|
1511
|
-
exports.de_DescribeCustomRoutingListenerCommand = de_DescribeCustomRoutingListenerCommand;
|
|
1512
|
-
const de_DescribeCustomRoutingListenerCommandError = async (output, context) => {
|
|
1513
|
-
const parsedOutput = {
|
|
1514
|
-
...output,
|
|
1515
|
-
body: await parseErrorBody(output.body, context),
|
|
1516
|
-
};
|
|
1517
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1518
|
-
switch (errorCode) {
|
|
1519
|
-
case "InternalServiceErrorException":
|
|
1520
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1521
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1522
|
-
case "InvalidArgumentException":
|
|
1523
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1524
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1525
|
-
case "ListenerNotFoundException":
|
|
1526
|
-
case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
|
|
1527
|
-
throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
|
|
1528
|
-
default:
|
|
1529
|
-
const parsedBody = parsedOutput.body;
|
|
1530
|
-
return throwDefaultError({
|
|
1531
|
-
output,
|
|
1532
|
-
parsedBody,
|
|
1533
|
-
errorCode,
|
|
1534
|
-
});
|
|
1535
|
-
}
|
|
1536
|
-
};
|
|
1537
|
-
const de_DescribeEndpointGroupCommand = async (output, context) => {
|
|
1538
|
-
if (output.statusCode >= 300) {
|
|
1539
|
-
return de_DescribeEndpointGroupCommandError(output, context);
|
|
1540
|
-
}
|
|
1541
|
-
const data = await parseBody(output.body, context);
|
|
1542
|
-
let contents = {};
|
|
1543
|
-
contents = de_DescribeEndpointGroupResponse(data, context);
|
|
1544
|
-
const response = {
|
|
1545
|
-
$metadata: deserializeMetadata(output),
|
|
1546
|
-
...contents,
|
|
1547
|
-
};
|
|
1548
|
-
return response;
|
|
1549
|
-
};
|
|
1550
|
-
exports.de_DescribeEndpointGroupCommand = de_DescribeEndpointGroupCommand;
|
|
1551
|
-
const de_DescribeEndpointGroupCommandError = async (output, context) => {
|
|
1552
|
-
const parsedOutput = {
|
|
1553
|
-
...output,
|
|
1554
|
-
body: await parseErrorBody(output.body, context),
|
|
1555
|
-
};
|
|
1556
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1557
|
-
switch (errorCode) {
|
|
1558
|
-
case "EndpointGroupNotFoundException":
|
|
1559
|
-
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
|
|
1560
|
-
throw await de_EndpointGroupNotFoundExceptionRes(parsedOutput, context);
|
|
1561
|
-
case "InternalServiceErrorException":
|
|
1562
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1563
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1564
|
-
case "InvalidArgumentException":
|
|
1565
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1566
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1567
|
-
default:
|
|
1568
|
-
const parsedBody = parsedOutput.body;
|
|
1569
|
-
return throwDefaultError({
|
|
1570
|
-
output,
|
|
1571
|
-
parsedBody,
|
|
1572
|
-
errorCode,
|
|
1573
|
-
});
|
|
1574
|
-
}
|
|
1575
|
-
};
|
|
1576
|
-
const de_DescribeListenerCommand = async (output, context) => {
|
|
1577
|
-
if (output.statusCode >= 300) {
|
|
1578
|
-
return de_DescribeListenerCommandError(output, context);
|
|
1579
|
-
}
|
|
1580
|
-
const data = await parseBody(output.body, context);
|
|
1581
|
-
let contents = {};
|
|
1582
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1583
|
-
const response = {
|
|
1584
|
-
$metadata: deserializeMetadata(output),
|
|
1585
|
-
...contents,
|
|
1586
|
-
};
|
|
1587
|
-
return response;
|
|
1588
|
-
};
|
|
1589
|
-
exports.de_DescribeListenerCommand = de_DescribeListenerCommand;
|
|
1590
|
-
const de_DescribeListenerCommandError = async (output, context) => {
|
|
1591
|
-
const parsedOutput = {
|
|
1592
|
-
...output,
|
|
1593
|
-
body: await parseErrorBody(output.body, context),
|
|
1594
|
-
};
|
|
1595
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1596
|
-
switch (errorCode) {
|
|
1597
|
-
case "InternalServiceErrorException":
|
|
1598
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1599
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1600
|
-
case "InvalidArgumentException":
|
|
1601
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1602
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1603
|
-
case "ListenerNotFoundException":
|
|
1604
|
-
case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
|
|
1605
|
-
throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
|
|
1606
|
-
default:
|
|
1607
|
-
const parsedBody = parsedOutput.body;
|
|
1608
|
-
return throwDefaultError({
|
|
1609
|
-
output,
|
|
1610
|
-
parsedBody,
|
|
1611
|
-
errorCode,
|
|
1612
|
-
});
|
|
1613
|
-
}
|
|
1614
|
-
};
|
|
1615
|
-
const de_ListAcceleratorsCommand = async (output, context) => {
|
|
1616
|
-
if (output.statusCode >= 300) {
|
|
1617
|
-
return de_ListAcceleratorsCommandError(output, context);
|
|
1618
|
-
}
|
|
1619
|
-
const data = await parseBody(output.body, context);
|
|
1620
|
-
let contents = {};
|
|
1621
|
-
contents = de_ListAcceleratorsResponse(data, context);
|
|
1622
|
-
const response = {
|
|
1623
|
-
$metadata: deserializeMetadata(output),
|
|
1624
|
-
...contents,
|
|
1625
|
-
};
|
|
1626
|
-
return response;
|
|
1627
|
-
};
|
|
1628
|
-
exports.de_ListAcceleratorsCommand = de_ListAcceleratorsCommand;
|
|
1629
|
-
const de_ListAcceleratorsCommandError = async (output, context) => {
|
|
1630
|
-
const parsedOutput = {
|
|
1631
|
-
...output,
|
|
1632
|
-
body: await parseErrorBody(output.body, context),
|
|
1633
|
-
};
|
|
1634
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1635
|
-
switch (errorCode) {
|
|
1636
|
-
case "InternalServiceErrorException":
|
|
1637
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1638
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1639
|
-
case "InvalidArgumentException":
|
|
1640
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1641
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1642
|
-
case "InvalidNextTokenException":
|
|
1643
|
-
case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
|
|
1644
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1645
|
-
default:
|
|
1646
|
-
const parsedBody = parsedOutput.body;
|
|
1647
|
-
return throwDefaultError({
|
|
1648
|
-
output,
|
|
1649
|
-
parsedBody,
|
|
1650
|
-
errorCode,
|
|
1651
|
-
});
|
|
1652
|
-
}
|
|
1653
|
-
};
|
|
1654
|
-
const de_ListByoipCidrsCommand = async (output, context) => {
|
|
1655
|
-
if (output.statusCode >= 300) {
|
|
1656
|
-
return de_ListByoipCidrsCommandError(output, context);
|
|
1657
|
-
}
|
|
1658
|
-
const data = await parseBody(output.body, context);
|
|
1659
|
-
let contents = {};
|
|
1660
|
-
contents = de_ListByoipCidrsResponse(data, context);
|
|
1661
|
-
const response = {
|
|
1662
|
-
$metadata: deserializeMetadata(output),
|
|
1663
|
-
...contents,
|
|
1664
|
-
};
|
|
1665
|
-
return response;
|
|
1666
|
-
};
|
|
1667
|
-
exports.de_ListByoipCidrsCommand = de_ListByoipCidrsCommand;
|
|
1668
|
-
const de_ListByoipCidrsCommandError = async (output, context) => {
|
|
1669
|
-
const parsedOutput = {
|
|
1670
|
-
...output,
|
|
1671
|
-
body: await parseErrorBody(output.body, context),
|
|
1672
|
-
};
|
|
1673
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1674
|
-
switch (errorCode) {
|
|
1675
|
-
case "AccessDeniedException":
|
|
1676
|
-
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
1677
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1678
|
-
case "InternalServiceErrorException":
|
|
1679
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1680
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1681
|
-
case "InvalidArgumentException":
|
|
1682
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1683
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1684
|
-
case "InvalidNextTokenException":
|
|
1685
|
-
case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
|
|
1686
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1687
|
-
default:
|
|
1688
|
-
const parsedBody = parsedOutput.body;
|
|
1689
|
-
return throwDefaultError({
|
|
1690
|
-
output,
|
|
1691
|
-
parsedBody,
|
|
1692
|
-
errorCode,
|
|
1693
|
-
});
|
|
1694
|
-
}
|
|
1695
|
-
};
|
|
1696
|
-
const de_ListCrossAccountAttachmentsCommand = async (output, context) => {
|
|
1697
|
-
if (output.statusCode >= 300) {
|
|
1698
|
-
return de_ListCrossAccountAttachmentsCommandError(output, context);
|
|
1699
|
-
}
|
|
1700
|
-
const data = await parseBody(output.body, context);
|
|
1701
|
-
let contents = {};
|
|
1702
|
-
contents = de_ListCrossAccountAttachmentsResponse(data, context);
|
|
1703
|
-
const response = {
|
|
1704
|
-
$metadata: deserializeMetadata(output),
|
|
1705
|
-
...contents,
|
|
1706
|
-
};
|
|
1707
|
-
return response;
|
|
1708
|
-
};
|
|
1709
|
-
exports.de_ListCrossAccountAttachmentsCommand = de_ListCrossAccountAttachmentsCommand;
|
|
1710
|
-
const de_ListCrossAccountAttachmentsCommandError = async (output, context) => {
|
|
1711
|
-
const parsedOutput = {
|
|
1712
|
-
...output,
|
|
1713
|
-
body: await parseErrorBody(output.body, context),
|
|
1714
|
-
};
|
|
1715
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1716
|
-
switch (errorCode) {
|
|
1717
|
-
case "AccessDeniedException":
|
|
1718
|
-
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
1719
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1720
|
-
case "InternalServiceErrorException":
|
|
1721
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1722
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1723
|
-
case "InvalidArgumentException":
|
|
1724
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1725
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1726
|
-
case "InvalidNextTokenException":
|
|
1727
|
-
case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
|
|
1728
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1729
|
-
default:
|
|
1730
|
-
const parsedBody = parsedOutput.body;
|
|
1731
|
-
return throwDefaultError({
|
|
1732
|
-
output,
|
|
1733
|
-
parsedBody,
|
|
1734
|
-
errorCode,
|
|
1735
|
-
});
|
|
1736
|
-
}
|
|
1737
|
-
};
|
|
1738
|
-
const de_ListCrossAccountResourceAccountsCommand = async (output, context) => {
|
|
1739
|
-
if (output.statusCode >= 300) {
|
|
1740
|
-
return de_ListCrossAccountResourceAccountsCommandError(output, context);
|
|
1741
|
-
}
|
|
1742
|
-
const data = await parseBody(output.body, context);
|
|
1743
|
-
let contents = {};
|
|
1744
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1745
|
-
const response = {
|
|
1746
|
-
$metadata: deserializeMetadata(output),
|
|
1747
|
-
...contents,
|
|
1748
|
-
};
|
|
1749
|
-
return response;
|
|
1750
|
-
};
|
|
1751
|
-
exports.de_ListCrossAccountResourceAccountsCommand = de_ListCrossAccountResourceAccountsCommand;
|
|
1752
|
-
const de_ListCrossAccountResourceAccountsCommandError = async (output, context) => {
|
|
1753
|
-
const parsedOutput = {
|
|
1754
|
-
...output,
|
|
1755
|
-
body: await parseErrorBody(output.body, context),
|
|
1756
|
-
};
|
|
1757
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1758
|
-
switch (errorCode) {
|
|
1759
|
-
case "AccessDeniedException":
|
|
1760
|
-
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
1761
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1762
|
-
case "InternalServiceErrorException":
|
|
1763
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1764
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1765
|
-
default:
|
|
1766
|
-
const parsedBody = parsedOutput.body;
|
|
1767
|
-
return throwDefaultError({
|
|
1768
|
-
output,
|
|
1769
|
-
parsedBody,
|
|
1770
|
-
errorCode,
|
|
1771
|
-
});
|
|
1772
|
-
}
|
|
1773
|
-
};
|
|
1774
|
-
const de_ListCrossAccountResourcesCommand = async (output, context) => {
|
|
1775
|
-
if (output.statusCode >= 300) {
|
|
1776
|
-
return de_ListCrossAccountResourcesCommandError(output, context);
|
|
1777
|
-
}
|
|
1778
|
-
const data = await parseBody(output.body, context);
|
|
1779
|
-
let contents = {};
|
|
1780
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1781
|
-
const response = {
|
|
1782
|
-
$metadata: deserializeMetadata(output),
|
|
1783
|
-
...contents,
|
|
1784
|
-
};
|
|
1785
|
-
return response;
|
|
1786
|
-
};
|
|
1787
|
-
exports.de_ListCrossAccountResourcesCommand = de_ListCrossAccountResourcesCommand;
|
|
1788
|
-
const de_ListCrossAccountResourcesCommandError = async (output, context) => {
|
|
1789
|
-
const parsedOutput = {
|
|
1790
|
-
...output,
|
|
1791
|
-
body: await parseErrorBody(output.body, context),
|
|
1792
|
-
};
|
|
1793
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1794
|
-
switch (errorCode) {
|
|
1795
|
-
case "AcceleratorNotFoundException":
|
|
1796
|
-
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
1797
|
-
throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
|
|
1798
|
-
case "AccessDeniedException":
|
|
1799
|
-
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
1800
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1801
|
-
case "InternalServiceErrorException":
|
|
1802
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1803
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1804
|
-
case "InvalidArgumentException":
|
|
1805
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1806
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1807
|
-
case "InvalidNextTokenException":
|
|
1808
|
-
case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
|
|
1809
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1810
|
-
default:
|
|
1811
|
-
const parsedBody = parsedOutput.body;
|
|
1812
|
-
return throwDefaultError({
|
|
1813
|
-
output,
|
|
1814
|
-
parsedBody,
|
|
1815
|
-
errorCode,
|
|
1816
|
-
});
|
|
1817
|
-
}
|
|
1818
|
-
};
|
|
1819
|
-
const de_ListCustomRoutingAcceleratorsCommand = async (output, context) => {
|
|
1820
|
-
if (output.statusCode >= 300) {
|
|
1821
|
-
return de_ListCustomRoutingAcceleratorsCommandError(output, context);
|
|
1822
|
-
}
|
|
1823
|
-
const data = await parseBody(output.body, context);
|
|
1824
|
-
let contents = {};
|
|
1825
|
-
contents = de_ListCustomRoutingAcceleratorsResponse(data, context);
|
|
1826
|
-
const response = {
|
|
1827
|
-
$metadata: deserializeMetadata(output),
|
|
1828
|
-
...contents,
|
|
1829
|
-
};
|
|
1830
|
-
return response;
|
|
1831
|
-
};
|
|
1832
|
-
exports.de_ListCustomRoutingAcceleratorsCommand = de_ListCustomRoutingAcceleratorsCommand;
|
|
1833
|
-
const de_ListCustomRoutingAcceleratorsCommandError = async (output, context) => {
|
|
1834
|
-
const parsedOutput = {
|
|
1835
|
-
...output,
|
|
1836
|
-
body: await parseErrorBody(output.body, context),
|
|
1837
|
-
};
|
|
1838
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1839
|
-
switch (errorCode) {
|
|
1840
|
-
case "InternalServiceErrorException":
|
|
1841
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1842
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1843
|
-
case "InvalidArgumentException":
|
|
1844
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1845
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1846
|
-
case "InvalidNextTokenException":
|
|
1847
|
-
case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
|
|
1848
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1849
|
-
default:
|
|
1850
|
-
const parsedBody = parsedOutput.body;
|
|
1851
|
-
return throwDefaultError({
|
|
1852
|
-
output,
|
|
1853
|
-
parsedBody,
|
|
1854
|
-
errorCode,
|
|
1855
|
-
});
|
|
1856
|
-
}
|
|
1857
|
-
};
|
|
1858
|
-
const de_ListCustomRoutingEndpointGroupsCommand = async (output, context) => {
|
|
1859
|
-
if (output.statusCode >= 300) {
|
|
1860
|
-
return de_ListCustomRoutingEndpointGroupsCommandError(output, context);
|
|
1861
|
-
}
|
|
1862
|
-
const data = await parseBody(output.body, context);
|
|
1863
|
-
let contents = {};
|
|
1864
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1865
|
-
const response = {
|
|
1866
|
-
$metadata: deserializeMetadata(output),
|
|
1867
|
-
...contents,
|
|
1868
|
-
};
|
|
1869
|
-
return response;
|
|
1870
|
-
};
|
|
1871
|
-
exports.de_ListCustomRoutingEndpointGroupsCommand = de_ListCustomRoutingEndpointGroupsCommand;
|
|
1872
|
-
const de_ListCustomRoutingEndpointGroupsCommandError = async (output, context) => {
|
|
1873
|
-
const parsedOutput = {
|
|
1874
|
-
...output,
|
|
1875
|
-
body: await parseErrorBody(output.body, context),
|
|
1876
|
-
};
|
|
1877
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1878
|
-
switch (errorCode) {
|
|
1879
|
-
case "InternalServiceErrorException":
|
|
1880
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1881
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1882
|
-
case "InvalidArgumentException":
|
|
1883
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1884
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1885
|
-
case "InvalidNextTokenException":
|
|
1886
|
-
case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
|
|
1887
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1888
|
-
case "ListenerNotFoundException":
|
|
1889
|
-
case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
|
|
1890
|
-
throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
|
|
1891
|
-
default:
|
|
1892
|
-
const parsedBody = parsedOutput.body;
|
|
1893
|
-
return throwDefaultError({
|
|
1894
|
-
output,
|
|
1895
|
-
parsedBody,
|
|
1896
|
-
errorCode,
|
|
1897
|
-
});
|
|
1898
|
-
}
|
|
1899
|
-
};
|
|
1900
|
-
const de_ListCustomRoutingListenersCommand = async (output, context) => {
|
|
1901
|
-
if (output.statusCode >= 300) {
|
|
1902
|
-
return de_ListCustomRoutingListenersCommandError(output, context);
|
|
1903
|
-
}
|
|
1904
|
-
const data = await parseBody(output.body, context);
|
|
1905
|
-
let contents = {};
|
|
1906
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1907
|
-
const response = {
|
|
1908
|
-
$metadata: deserializeMetadata(output),
|
|
1909
|
-
...contents,
|
|
1910
|
-
};
|
|
1911
|
-
return response;
|
|
1912
|
-
};
|
|
1913
|
-
exports.de_ListCustomRoutingListenersCommand = de_ListCustomRoutingListenersCommand;
|
|
1914
|
-
const de_ListCustomRoutingListenersCommandError = async (output, context) => {
|
|
1915
|
-
const parsedOutput = {
|
|
1916
|
-
...output,
|
|
1917
|
-
body: await parseErrorBody(output.body, context),
|
|
1918
|
-
};
|
|
1919
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1920
|
-
switch (errorCode) {
|
|
1921
|
-
case "AcceleratorNotFoundException":
|
|
1922
|
-
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
1923
|
-
throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
|
|
1924
|
-
case "InternalServiceErrorException":
|
|
1925
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1926
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1927
|
-
case "InvalidArgumentException":
|
|
1928
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1929
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1930
|
-
case "InvalidNextTokenException":
|
|
1931
|
-
case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
|
|
1932
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1933
|
-
default:
|
|
1934
|
-
const parsedBody = parsedOutput.body;
|
|
1935
|
-
return throwDefaultError({
|
|
1936
|
-
output,
|
|
1937
|
-
parsedBody,
|
|
1938
|
-
errorCode,
|
|
1939
|
-
});
|
|
1940
|
-
}
|
|
1941
|
-
};
|
|
1942
|
-
const de_ListCustomRoutingPortMappingsCommand = async (output, context) => {
|
|
1943
|
-
if (output.statusCode >= 300) {
|
|
1944
|
-
return de_ListCustomRoutingPortMappingsCommandError(output, context);
|
|
1945
|
-
}
|
|
1946
|
-
const data = await parseBody(output.body, context);
|
|
1947
|
-
let contents = {};
|
|
1948
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1949
|
-
const response = {
|
|
1950
|
-
$metadata: deserializeMetadata(output),
|
|
1951
|
-
...contents,
|
|
1952
|
-
};
|
|
1953
|
-
return response;
|
|
1954
|
-
};
|
|
1955
|
-
exports.de_ListCustomRoutingPortMappingsCommand = de_ListCustomRoutingPortMappingsCommand;
|
|
1956
|
-
const de_ListCustomRoutingPortMappingsCommandError = async (output, context) => {
|
|
1957
|
-
const parsedOutput = {
|
|
1958
|
-
...output,
|
|
1959
|
-
body: await parseErrorBody(output.body, context),
|
|
1960
|
-
};
|
|
1961
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1962
|
-
switch (errorCode) {
|
|
1963
|
-
case "AcceleratorNotFoundException":
|
|
1964
|
-
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
1965
|
-
throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
|
|
1966
|
-
case "EndpointGroupNotFoundException":
|
|
1967
|
-
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
|
|
1968
|
-
throw await de_EndpointGroupNotFoundExceptionRes(parsedOutput, context);
|
|
1969
|
-
case "InternalServiceErrorException":
|
|
1970
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1971
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1972
|
-
case "InvalidArgumentException":
|
|
1973
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1974
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1975
|
-
case "InvalidNextTokenException":
|
|
1976
|
-
case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
|
|
1977
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1978
|
-
default:
|
|
1979
|
-
const parsedBody = parsedOutput.body;
|
|
1980
|
-
return throwDefaultError({
|
|
1981
|
-
output,
|
|
1982
|
-
parsedBody,
|
|
1983
|
-
errorCode,
|
|
1984
|
-
});
|
|
1985
|
-
}
|
|
1986
|
-
};
|
|
1987
|
-
const de_ListCustomRoutingPortMappingsByDestinationCommand = async (output, context) => {
|
|
1988
|
-
if (output.statusCode >= 300) {
|
|
1989
|
-
return de_ListCustomRoutingPortMappingsByDestinationCommandError(output, context);
|
|
1990
|
-
}
|
|
1991
|
-
const data = await parseBody(output.body, context);
|
|
1992
|
-
let contents = {};
|
|
1993
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1994
|
-
const response = {
|
|
1995
|
-
$metadata: deserializeMetadata(output),
|
|
1996
|
-
...contents,
|
|
1997
|
-
};
|
|
1998
|
-
return response;
|
|
1999
|
-
};
|
|
2000
|
-
exports.de_ListCustomRoutingPortMappingsByDestinationCommand = de_ListCustomRoutingPortMappingsByDestinationCommand;
|
|
2001
|
-
const de_ListCustomRoutingPortMappingsByDestinationCommandError = async (output, context) => {
|
|
2002
|
-
const parsedOutput = {
|
|
2003
|
-
...output,
|
|
2004
|
-
body: await parseErrorBody(output.body, context),
|
|
2005
|
-
};
|
|
2006
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2007
|
-
switch (errorCode) {
|
|
2008
|
-
case "EndpointNotFoundException":
|
|
2009
|
-
case "com.amazonaws.globalaccelerator#EndpointNotFoundException":
|
|
2010
|
-
throw await de_EndpointNotFoundExceptionRes(parsedOutput, context);
|
|
2011
|
-
case "InternalServiceErrorException":
|
|
2012
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2013
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2014
|
-
case "InvalidArgumentException":
|
|
2015
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2016
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2017
|
-
case "InvalidNextTokenException":
|
|
2018
|
-
case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
|
|
2019
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2020
|
-
default:
|
|
2021
|
-
const parsedBody = parsedOutput.body;
|
|
2022
|
-
return throwDefaultError({
|
|
2023
|
-
output,
|
|
2024
|
-
parsedBody,
|
|
2025
|
-
errorCode,
|
|
2026
|
-
});
|
|
2027
|
-
}
|
|
2028
|
-
};
|
|
2029
|
-
const de_ListEndpointGroupsCommand = async (output, context) => {
|
|
2030
|
-
if (output.statusCode >= 300) {
|
|
2031
|
-
return de_ListEndpointGroupsCommandError(output, context);
|
|
2032
|
-
}
|
|
2033
|
-
const data = await parseBody(output.body, context);
|
|
2034
|
-
let contents = {};
|
|
2035
|
-
contents = de_ListEndpointGroupsResponse(data, context);
|
|
2036
|
-
const response = {
|
|
2037
|
-
$metadata: deserializeMetadata(output),
|
|
2038
|
-
...contents,
|
|
2039
|
-
};
|
|
2040
|
-
return response;
|
|
2041
|
-
};
|
|
2042
|
-
exports.de_ListEndpointGroupsCommand = de_ListEndpointGroupsCommand;
|
|
2043
|
-
const de_ListEndpointGroupsCommandError = async (output, context) => {
|
|
2044
|
-
const parsedOutput = {
|
|
2045
|
-
...output,
|
|
2046
|
-
body: await parseErrorBody(output.body, context),
|
|
2047
|
-
};
|
|
2048
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2049
|
-
switch (errorCode) {
|
|
2050
|
-
case "InternalServiceErrorException":
|
|
2051
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2052
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2053
|
-
case "InvalidArgumentException":
|
|
2054
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2055
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2056
|
-
case "InvalidNextTokenException":
|
|
2057
|
-
case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
|
|
2058
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2059
|
-
case "ListenerNotFoundException":
|
|
2060
|
-
case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
|
|
2061
|
-
throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
|
|
2062
|
-
default:
|
|
2063
|
-
const parsedBody = parsedOutput.body;
|
|
2064
|
-
return throwDefaultError({
|
|
2065
|
-
output,
|
|
2066
|
-
parsedBody,
|
|
2067
|
-
errorCode,
|
|
2068
|
-
});
|
|
2069
|
-
}
|
|
2070
|
-
};
|
|
2071
|
-
const de_ListListenersCommand = async (output, context) => {
|
|
2072
|
-
if (output.statusCode >= 300) {
|
|
2073
|
-
return de_ListListenersCommandError(output, context);
|
|
2074
|
-
}
|
|
2075
|
-
const data = await parseBody(output.body, context);
|
|
2076
|
-
let contents = {};
|
|
2077
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2078
|
-
const response = {
|
|
2079
|
-
$metadata: deserializeMetadata(output),
|
|
2080
|
-
...contents,
|
|
2081
|
-
};
|
|
2082
|
-
return response;
|
|
2083
|
-
};
|
|
2084
|
-
exports.de_ListListenersCommand = de_ListListenersCommand;
|
|
2085
|
-
const de_ListListenersCommandError = async (output, context) => {
|
|
2086
|
-
const parsedOutput = {
|
|
2087
|
-
...output,
|
|
2088
|
-
body: await parseErrorBody(output.body, context),
|
|
2089
|
-
};
|
|
2090
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2091
|
-
switch (errorCode) {
|
|
2092
|
-
case "AcceleratorNotFoundException":
|
|
2093
|
-
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
2094
|
-
throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
|
|
2095
|
-
case "InternalServiceErrorException":
|
|
2096
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2097
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2098
|
-
case "InvalidArgumentException":
|
|
2099
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2100
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2101
|
-
case "InvalidNextTokenException":
|
|
2102
|
-
case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
|
|
2103
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2104
|
-
default:
|
|
2105
|
-
const parsedBody = parsedOutput.body;
|
|
2106
|
-
return throwDefaultError({
|
|
2107
|
-
output,
|
|
2108
|
-
parsedBody,
|
|
2109
|
-
errorCode,
|
|
2110
|
-
});
|
|
2111
|
-
}
|
|
2112
|
-
};
|
|
2113
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2114
|
-
if (output.statusCode >= 300) {
|
|
2115
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
2116
|
-
}
|
|
2117
|
-
const data = await parseBody(output.body, context);
|
|
2118
|
-
let contents = {};
|
|
2119
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2120
|
-
const response = {
|
|
2121
|
-
$metadata: deserializeMetadata(output),
|
|
2122
|
-
...contents,
|
|
2123
|
-
};
|
|
2124
|
-
return response;
|
|
2125
|
-
};
|
|
2126
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2127
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2128
|
-
const parsedOutput = {
|
|
2129
|
-
...output,
|
|
2130
|
-
body: await parseErrorBody(output.body, context),
|
|
2131
|
-
};
|
|
2132
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2133
|
-
switch (errorCode) {
|
|
2134
|
-
case "AcceleratorNotFoundException":
|
|
2135
|
-
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
2136
|
-
throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
|
|
2137
|
-
case "InternalServiceErrorException":
|
|
2138
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2139
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2140
|
-
case "InvalidArgumentException":
|
|
2141
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2142
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2143
|
-
default:
|
|
2144
|
-
const parsedBody = parsedOutput.body;
|
|
2145
|
-
return throwDefaultError({
|
|
2146
|
-
output,
|
|
2147
|
-
parsedBody,
|
|
2148
|
-
errorCode,
|
|
2149
|
-
});
|
|
2150
|
-
}
|
|
2151
|
-
};
|
|
2152
|
-
const de_ProvisionByoipCidrCommand = async (output, context) => {
|
|
2153
|
-
if (output.statusCode >= 300) {
|
|
2154
|
-
return de_ProvisionByoipCidrCommandError(output, context);
|
|
2155
|
-
}
|
|
2156
|
-
const data = await parseBody(output.body, context);
|
|
2157
|
-
let contents = {};
|
|
2158
|
-
contents = de_ProvisionByoipCidrResponse(data, context);
|
|
2159
|
-
const response = {
|
|
2160
|
-
$metadata: deserializeMetadata(output),
|
|
2161
|
-
...contents,
|
|
2162
|
-
};
|
|
2163
|
-
return response;
|
|
2164
|
-
};
|
|
2165
|
-
exports.de_ProvisionByoipCidrCommand = de_ProvisionByoipCidrCommand;
|
|
2166
|
-
const de_ProvisionByoipCidrCommandError = async (output, context) => {
|
|
2167
|
-
const parsedOutput = {
|
|
2168
|
-
...output,
|
|
2169
|
-
body: await parseErrorBody(output.body, context),
|
|
2170
|
-
};
|
|
2171
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2172
|
-
switch (errorCode) {
|
|
2173
|
-
case "AccessDeniedException":
|
|
2174
|
-
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
2175
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2176
|
-
case "IncorrectCidrStateException":
|
|
2177
|
-
case "com.amazonaws.globalaccelerator#IncorrectCidrStateException":
|
|
2178
|
-
throw await de_IncorrectCidrStateExceptionRes(parsedOutput, context);
|
|
2179
|
-
case "InternalServiceErrorException":
|
|
2180
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2181
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2182
|
-
case "InvalidArgumentException":
|
|
2183
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2184
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2185
|
-
case "LimitExceededException":
|
|
2186
|
-
case "com.amazonaws.globalaccelerator#LimitExceededException":
|
|
2187
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2188
|
-
default:
|
|
2189
|
-
const parsedBody = parsedOutput.body;
|
|
2190
|
-
return throwDefaultError({
|
|
2191
|
-
output,
|
|
2192
|
-
parsedBody,
|
|
2193
|
-
errorCode,
|
|
2194
|
-
});
|
|
2195
|
-
}
|
|
2196
|
-
};
|
|
2197
|
-
const de_RemoveCustomRoutingEndpointsCommand = async (output, context) => {
|
|
2198
|
-
if (output.statusCode >= 300) {
|
|
2199
|
-
return de_RemoveCustomRoutingEndpointsCommandError(output, context);
|
|
2200
|
-
}
|
|
2201
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2202
|
-
const response = {
|
|
2203
|
-
$metadata: deserializeMetadata(output),
|
|
2204
|
-
};
|
|
2205
|
-
return response;
|
|
2206
|
-
};
|
|
2207
|
-
exports.de_RemoveCustomRoutingEndpointsCommand = de_RemoveCustomRoutingEndpointsCommand;
|
|
2208
|
-
const de_RemoveCustomRoutingEndpointsCommandError = async (output, context) => {
|
|
2209
|
-
const parsedOutput = {
|
|
2210
|
-
...output,
|
|
2211
|
-
body: await parseErrorBody(output.body, context),
|
|
2212
|
-
};
|
|
2213
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2214
|
-
switch (errorCode) {
|
|
2215
|
-
case "AccessDeniedException":
|
|
2216
|
-
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
2217
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2218
|
-
case "ConflictException":
|
|
2219
|
-
case "com.amazonaws.globalaccelerator#ConflictException":
|
|
2220
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2221
|
-
case "EndpointGroupNotFoundException":
|
|
2222
|
-
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
|
|
2223
|
-
throw await de_EndpointGroupNotFoundExceptionRes(parsedOutput, context);
|
|
2224
|
-
case "EndpointNotFoundException":
|
|
2225
|
-
case "com.amazonaws.globalaccelerator#EndpointNotFoundException":
|
|
2226
|
-
throw await de_EndpointNotFoundExceptionRes(parsedOutput, context);
|
|
2227
|
-
case "InternalServiceErrorException":
|
|
2228
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2229
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2230
|
-
case "InvalidArgumentException":
|
|
2231
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2232
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2233
|
-
default:
|
|
2234
|
-
const parsedBody = parsedOutput.body;
|
|
2235
|
-
return throwDefaultError({
|
|
2236
|
-
output,
|
|
2237
|
-
parsedBody,
|
|
2238
|
-
errorCode,
|
|
2239
|
-
});
|
|
2240
|
-
}
|
|
2241
|
-
};
|
|
2242
|
-
const de_RemoveEndpointsCommand = async (output, context) => {
|
|
2243
|
-
if (output.statusCode >= 300) {
|
|
2244
|
-
return de_RemoveEndpointsCommandError(output, context);
|
|
2245
|
-
}
|
|
2246
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2247
|
-
const response = {
|
|
2248
|
-
$metadata: deserializeMetadata(output),
|
|
2249
|
-
};
|
|
2250
|
-
return response;
|
|
2251
|
-
};
|
|
2252
|
-
exports.de_RemoveEndpointsCommand = de_RemoveEndpointsCommand;
|
|
2253
|
-
const de_RemoveEndpointsCommandError = async (output, context) => {
|
|
2254
|
-
const parsedOutput = {
|
|
2255
|
-
...output,
|
|
2256
|
-
body: await parseErrorBody(output.body, context),
|
|
2257
|
-
};
|
|
2258
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2259
|
-
switch (errorCode) {
|
|
2260
|
-
case "AccessDeniedException":
|
|
2261
|
-
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
2262
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2263
|
-
case "EndpointGroupNotFoundException":
|
|
2264
|
-
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
|
|
2265
|
-
throw await de_EndpointGroupNotFoundExceptionRes(parsedOutput, context);
|
|
2266
|
-
case "InternalServiceErrorException":
|
|
2267
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2268
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2269
|
-
case "InvalidArgumentException":
|
|
2270
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2271
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2272
|
-
case "TransactionInProgressException":
|
|
2273
|
-
case "com.amazonaws.globalaccelerator#TransactionInProgressException":
|
|
2274
|
-
throw await de_TransactionInProgressExceptionRes(parsedOutput, context);
|
|
2275
|
-
default:
|
|
2276
|
-
const parsedBody = parsedOutput.body;
|
|
2277
|
-
return throwDefaultError({
|
|
2278
|
-
output,
|
|
2279
|
-
parsedBody,
|
|
2280
|
-
errorCode,
|
|
2281
|
-
});
|
|
2282
|
-
}
|
|
2283
|
-
};
|
|
2284
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
2285
|
-
if (output.statusCode >= 300) {
|
|
2286
|
-
return de_TagResourceCommandError(output, context);
|
|
2287
|
-
}
|
|
2288
|
-
const data = await parseBody(output.body, context);
|
|
2289
|
-
let contents = {};
|
|
2290
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2291
|
-
const response = {
|
|
2292
|
-
$metadata: deserializeMetadata(output),
|
|
2293
|
-
...contents,
|
|
2294
|
-
};
|
|
2295
|
-
return response;
|
|
2296
|
-
};
|
|
2297
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
2298
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
2299
|
-
const parsedOutput = {
|
|
2300
|
-
...output,
|
|
2301
|
-
body: await parseErrorBody(output.body, context),
|
|
2302
|
-
};
|
|
2303
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2304
|
-
switch (errorCode) {
|
|
2305
|
-
case "AcceleratorNotFoundException":
|
|
2306
|
-
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
2307
|
-
throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
|
|
2308
|
-
case "InternalServiceErrorException":
|
|
2309
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2310
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2311
|
-
case "InvalidArgumentException":
|
|
2312
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2313
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2314
|
-
default:
|
|
2315
|
-
const parsedBody = parsedOutput.body;
|
|
2316
|
-
return throwDefaultError({
|
|
2317
|
-
output,
|
|
2318
|
-
parsedBody,
|
|
2319
|
-
errorCode,
|
|
2320
|
-
});
|
|
2321
|
-
}
|
|
2322
|
-
};
|
|
2323
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
2324
|
-
if (output.statusCode >= 300) {
|
|
2325
|
-
return de_UntagResourceCommandError(output, context);
|
|
2326
|
-
}
|
|
2327
|
-
const data = await parseBody(output.body, context);
|
|
2328
|
-
let contents = {};
|
|
2329
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2330
|
-
const response = {
|
|
2331
|
-
$metadata: deserializeMetadata(output),
|
|
2332
|
-
...contents,
|
|
2333
|
-
};
|
|
2334
|
-
return response;
|
|
2335
|
-
};
|
|
2336
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2337
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
2338
|
-
const parsedOutput = {
|
|
2339
|
-
...output,
|
|
2340
|
-
body: await parseErrorBody(output.body, context),
|
|
2341
|
-
};
|
|
2342
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2343
|
-
switch (errorCode) {
|
|
2344
|
-
case "AcceleratorNotFoundException":
|
|
2345
|
-
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
2346
|
-
throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
|
|
2347
|
-
case "InternalServiceErrorException":
|
|
2348
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2349
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2350
|
-
case "InvalidArgumentException":
|
|
2351
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2352
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2353
|
-
default:
|
|
2354
|
-
const parsedBody = parsedOutput.body;
|
|
2355
|
-
return throwDefaultError({
|
|
2356
|
-
output,
|
|
2357
|
-
parsedBody,
|
|
2358
|
-
errorCode,
|
|
2359
|
-
});
|
|
2360
|
-
}
|
|
2361
|
-
};
|
|
2362
|
-
const de_UpdateAcceleratorCommand = async (output, context) => {
|
|
2363
|
-
if (output.statusCode >= 300) {
|
|
2364
|
-
return de_UpdateAcceleratorCommandError(output, context);
|
|
2365
|
-
}
|
|
2366
|
-
const data = await parseBody(output.body, context);
|
|
2367
|
-
let contents = {};
|
|
2368
|
-
contents = de_UpdateAcceleratorResponse(data, context);
|
|
2369
|
-
const response = {
|
|
2370
|
-
$metadata: deserializeMetadata(output),
|
|
2371
|
-
...contents,
|
|
2372
|
-
};
|
|
2373
|
-
return response;
|
|
2374
|
-
};
|
|
2375
|
-
exports.de_UpdateAcceleratorCommand = de_UpdateAcceleratorCommand;
|
|
2376
|
-
const de_UpdateAcceleratorCommandError = async (output, context) => {
|
|
2377
|
-
const parsedOutput = {
|
|
2378
|
-
...output,
|
|
2379
|
-
body: await parseErrorBody(output.body, context),
|
|
2380
|
-
};
|
|
2381
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2382
|
-
switch (errorCode) {
|
|
2383
|
-
case "AcceleratorNotFoundException":
|
|
2384
|
-
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
2385
|
-
throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
|
|
2386
|
-
case "AccessDeniedException":
|
|
2387
|
-
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
2388
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2389
|
-
case "InternalServiceErrorException":
|
|
2390
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2391
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2392
|
-
case "InvalidArgumentException":
|
|
2393
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2394
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2395
|
-
default:
|
|
2396
|
-
const parsedBody = parsedOutput.body;
|
|
2397
|
-
return throwDefaultError({
|
|
2398
|
-
output,
|
|
2399
|
-
parsedBody,
|
|
2400
|
-
errorCode,
|
|
2401
|
-
});
|
|
2402
|
-
}
|
|
2403
|
-
};
|
|
2404
|
-
const de_UpdateAcceleratorAttributesCommand = async (output, context) => {
|
|
2405
|
-
if (output.statusCode >= 300) {
|
|
2406
|
-
return de_UpdateAcceleratorAttributesCommandError(output, context);
|
|
2407
|
-
}
|
|
2408
|
-
const data = await parseBody(output.body, context);
|
|
2409
|
-
let contents = {};
|
|
2410
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2411
|
-
const response = {
|
|
2412
|
-
$metadata: deserializeMetadata(output),
|
|
2413
|
-
...contents,
|
|
2414
|
-
};
|
|
2415
|
-
return response;
|
|
2416
|
-
};
|
|
2417
|
-
exports.de_UpdateAcceleratorAttributesCommand = de_UpdateAcceleratorAttributesCommand;
|
|
2418
|
-
const de_UpdateAcceleratorAttributesCommandError = async (output, context) => {
|
|
2419
|
-
const parsedOutput = {
|
|
2420
|
-
...output,
|
|
2421
|
-
body: await parseErrorBody(output.body, context),
|
|
2422
|
-
};
|
|
2423
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2424
|
-
switch (errorCode) {
|
|
2425
|
-
case "AcceleratorNotFoundException":
|
|
2426
|
-
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
2427
|
-
throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
|
|
2428
|
-
case "AccessDeniedException":
|
|
2429
|
-
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
2430
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2431
|
-
case "InternalServiceErrorException":
|
|
2432
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2433
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2434
|
-
case "InvalidArgumentException":
|
|
2435
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2436
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2437
|
-
default:
|
|
2438
|
-
const parsedBody = parsedOutput.body;
|
|
2439
|
-
return throwDefaultError({
|
|
2440
|
-
output,
|
|
2441
|
-
parsedBody,
|
|
2442
|
-
errorCode,
|
|
2443
|
-
});
|
|
2444
|
-
}
|
|
2445
|
-
};
|
|
2446
|
-
const de_UpdateCrossAccountAttachmentCommand = async (output, context) => {
|
|
2447
|
-
if (output.statusCode >= 300) {
|
|
2448
|
-
return de_UpdateCrossAccountAttachmentCommandError(output, context);
|
|
2449
|
-
}
|
|
2450
|
-
const data = await parseBody(output.body, context);
|
|
2451
|
-
let contents = {};
|
|
2452
|
-
contents = de_UpdateCrossAccountAttachmentResponse(data, context);
|
|
2453
|
-
const response = {
|
|
2454
|
-
$metadata: deserializeMetadata(output),
|
|
2455
|
-
...contents,
|
|
2456
|
-
};
|
|
2457
|
-
return response;
|
|
2458
|
-
};
|
|
2459
|
-
exports.de_UpdateCrossAccountAttachmentCommand = de_UpdateCrossAccountAttachmentCommand;
|
|
2460
|
-
const de_UpdateCrossAccountAttachmentCommandError = async (output, context) => {
|
|
2461
|
-
const parsedOutput = {
|
|
2462
|
-
...output,
|
|
2463
|
-
body: await parseErrorBody(output.body, context),
|
|
2464
|
-
};
|
|
2465
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2466
|
-
switch (errorCode) {
|
|
2467
|
-
case "AccessDeniedException":
|
|
2468
|
-
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
2469
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2470
|
-
case "AttachmentNotFoundException":
|
|
2471
|
-
case "com.amazonaws.globalaccelerator#AttachmentNotFoundException":
|
|
2472
|
-
throw await de_AttachmentNotFoundExceptionRes(parsedOutput, context);
|
|
2473
|
-
case "InternalServiceErrorException":
|
|
2474
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2475
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2476
|
-
case "InvalidArgumentException":
|
|
2477
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2478
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2479
|
-
case "LimitExceededException":
|
|
2480
|
-
case "com.amazonaws.globalaccelerator#LimitExceededException":
|
|
2481
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2482
|
-
case "TransactionInProgressException":
|
|
2483
|
-
case "com.amazonaws.globalaccelerator#TransactionInProgressException":
|
|
2484
|
-
throw await de_TransactionInProgressExceptionRes(parsedOutput, context);
|
|
2485
|
-
default:
|
|
2486
|
-
const parsedBody = parsedOutput.body;
|
|
2487
|
-
return throwDefaultError({
|
|
2488
|
-
output,
|
|
2489
|
-
parsedBody,
|
|
2490
|
-
errorCode,
|
|
2491
|
-
});
|
|
2492
|
-
}
|
|
2493
|
-
};
|
|
2494
|
-
const de_UpdateCustomRoutingAcceleratorCommand = async (output, context) => {
|
|
2495
|
-
if (output.statusCode >= 300) {
|
|
2496
|
-
return de_UpdateCustomRoutingAcceleratorCommandError(output, context);
|
|
2497
|
-
}
|
|
2498
|
-
const data = await parseBody(output.body, context);
|
|
2499
|
-
let contents = {};
|
|
2500
|
-
contents = de_UpdateCustomRoutingAcceleratorResponse(data, context);
|
|
2501
|
-
const response = {
|
|
2502
|
-
$metadata: deserializeMetadata(output),
|
|
2503
|
-
...contents,
|
|
2504
|
-
};
|
|
2505
|
-
return response;
|
|
2506
|
-
};
|
|
2507
|
-
exports.de_UpdateCustomRoutingAcceleratorCommand = de_UpdateCustomRoutingAcceleratorCommand;
|
|
2508
|
-
const de_UpdateCustomRoutingAcceleratorCommandError = async (output, context) => {
|
|
2509
|
-
const parsedOutput = {
|
|
2510
|
-
...output,
|
|
2511
|
-
body: await parseErrorBody(output.body, context),
|
|
2512
|
-
};
|
|
2513
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2514
|
-
switch (errorCode) {
|
|
2515
|
-
case "AcceleratorNotFoundException":
|
|
2516
|
-
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
2517
|
-
throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
|
|
2518
|
-
case "InternalServiceErrorException":
|
|
2519
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2520
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2521
|
-
case "InvalidArgumentException":
|
|
2522
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2523
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2524
|
-
default:
|
|
2525
|
-
const parsedBody = parsedOutput.body;
|
|
2526
|
-
return throwDefaultError({
|
|
2527
|
-
output,
|
|
2528
|
-
parsedBody,
|
|
2529
|
-
errorCode,
|
|
2530
|
-
});
|
|
2531
|
-
}
|
|
2532
|
-
};
|
|
2533
|
-
const de_UpdateCustomRoutingAcceleratorAttributesCommand = async (output, context) => {
|
|
2534
|
-
if (output.statusCode >= 300) {
|
|
2535
|
-
return de_UpdateCustomRoutingAcceleratorAttributesCommandError(output, context);
|
|
2536
|
-
}
|
|
2537
|
-
const data = await parseBody(output.body, context);
|
|
2538
|
-
let contents = {};
|
|
2539
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2540
|
-
const response = {
|
|
2541
|
-
$metadata: deserializeMetadata(output),
|
|
2542
|
-
...contents,
|
|
2543
|
-
};
|
|
2544
|
-
return response;
|
|
2545
|
-
};
|
|
2546
|
-
exports.de_UpdateCustomRoutingAcceleratorAttributesCommand = de_UpdateCustomRoutingAcceleratorAttributesCommand;
|
|
2547
|
-
const de_UpdateCustomRoutingAcceleratorAttributesCommandError = async (output, context) => {
|
|
2548
|
-
const parsedOutput = {
|
|
2549
|
-
...output,
|
|
2550
|
-
body: await parseErrorBody(output.body, context),
|
|
2551
|
-
};
|
|
2552
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2553
|
-
switch (errorCode) {
|
|
2554
|
-
case "AcceleratorNotFoundException":
|
|
2555
|
-
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
2556
|
-
throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
|
|
2557
|
-
case "AccessDeniedException":
|
|
2558
|
-
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
2559
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2560
|
-
case "InternalServiceErrorException":
|
|
2561
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2562
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2563
|
-
case "InvalidArgumentException":
|
|
2564
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2565
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2566
|
-
default:
|
|
2567
|
-
const parsedBody = parsedOutput.body;
|
|
2568
|
-
return throwDefaultError({
|
|
2569
|
-
output,
|
|
2570
|
-
parsedBody,
|
|
2571
|
-
errorCode,
|
|
2572
|
-
});
|
|
2573
|
-
}
|
|
2574
|
-
};
|
|
2575
|
-
const de_UpdateCustomRoutingListenerCommand = async (output, context) => {
|
|
2576
|
-
if (output.statusCode >= 300) {
|
|
2577
|
-
return de_UpdateCustomRoutingListenerCommandError(output, context);
|
|
2578
|
-
}
|
|
2579
|
-
const data = await parseBody(output.body, context);
|
|
2580
|
-
let contents = {};
|
|
2581
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2582
|
-
const response = {
|
|
2583
|
-
$metadata: deserializeMetadata(output),
|
|
2584
|
-
...contents,
|
|
2585
|
-
};
|
|
2586
|
-
return response;
|
|
2587
|
-
};
|
|
2588
|
-
exports.de_UpdateCustomRoutingListenerCommand = de_UpdateCustomRoutingListenerCommand;
|
|
2589
|
-
const de_UpdateCustomRoutingListenerCommandError = async (output, context) => {
|
|
2590
|
-
const parsedOutput = {
|
|
2591
|
-
...output,
|
|
2592
|
-
body: await parseErrorBody(output.body, context),
|
|
2593
|
-
};
|
|
2594
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2595
|
-
switch (errorCode) {
|
|
2596
|
-
case "InternalServiceErrorException":
|
|
2597
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2598
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2599
|
-
case "InvalidArgumentException":
|
|
2600
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2601
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2602
|
-
case "InvalidPortRangeException":
|
|
2603
|
-
case "com.amazonaws.globalaccelerator#InvalidPortRangeException":
|
|
2604
|
-
throw await de_InvalidPortRangeExceptionRes(parsedOutput, context);
|
|
2605
|
-
case "LimitExceededException":
|
|
2606
|
-
case "com.amazonaws.globalaccelerator#LimitExceededException":
|
|
2607
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2608
|
-
case "ListenerNotFoundException":
|
|
2609
|
-
case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
|
|
2610
|
-
throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
|
|
2611
|
-
default:
|
|
2612
|
-
const parsedBody = parsedOutput.body;
|
|
2613
|
-
return throwDefaultError({
|
|
2614
|
-
output,
|
|
2615
|
-
parsedBody,
|
|
2616
|
-
errorCode,
|
|
2617
|
-
});
|
|
2618
|
-
}
|
|
2619
|
-
};
|
|
2620
|
-
const de_UpdateEndpointGroupCommand = async (output, context) => {
|
|
2621
|
-
if (output.statusCode >= 300) {
|
|
2622
|
-
return de_UpdateEndpointGroupCommandError(output, context);
|
|
2623
|
-
}
|
|
2624
|
-
const data = await parseBody(output.body, context);
|
|
2625
|
-
let contents = {};
|
|
2626
|
-
contents = de_UpdateEndpointGroupResponse(data, context);
|
|
2627
|
-
const response = {
|
|
2628
|
-
$metadata: deserializeMetadata(output),
|
|
2629
|
-
...contents,
|
|
2630
|
-
};
|
|
2631
|
-
return response;
|
|
2632
|
-
};
|
|
2633
|
-
exports.de_UpdateEndpointGroupCommand = de_UpdateEndpointGroupCommand;
|
|
2634
|
-
const de_UpdateEndpointGroupCommandError = async (output, context) => {
|
|
2635
|
-
const parsedOutput = {
|
|
2636
|
-
...output,
|
|
2637
|
-
body: await parseErrorBody(output.body, context),
|
|
2638
|
-
};
|
|
2639
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2640
|
-
switch (errorCode) {
|
|
2641
|
-
case "AccessDeniedException":
|
|
2642
|
-
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
2643
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2644
|
-
case "EndpointGroupNotFoundException":
|
|
2645
|
-
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
|
|
2646
|
-
throw await de_EndpointGroupNotFoundExceptionRes(parsedOutput, context);
|
|
2647
|
-
case "InternalServiceErrorException":
|
|
2648
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2649
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2650
|
-
case "InvalidArgumentException":
|
|
2651
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2652
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2653
|
-
case "LimitExceededException":
|
|
2654
|
-
case "com.amazonaws.globalaccelerator#LimitExceededException":
|
|
2655
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2656
|
-
default:
|
|
2657
|
-
const parsedBody = parsedOutput.body;
|
|
2658
|
-
return throwDefaultError({
|
|
2659
|
-
output,
|
|
2660
|
-
parsedBody,
|
|
2661
|
-
errorCode,
|
|
2662
|
-
});
|
|
2663
|
-
}
|
|
2664
|
-
};
|
|
2665
|
-
const de_UpdateListenerCommand = async (output, context) => {
|
|
2666
|
-
if (output.statusCode >= 300) {
|
|
2667
|
-
return de_UpdateListenerCommandError(output, context);
|
|
2668
|
-
}
|
|
2669
|
-
const data = await parseBody(output.body, context);
|
|
2670
|
-
let contents = {};
|
|
2671
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2672
|
-
const response = {
|
|
2673
|
-
$metadata: deserializeMetadata(output),
|
|
2674
|
-
...contents,
|
|
2675
|
-
};
|
|
2676
|
-
return response;
|
|
2677
|
-
};
|
|
2678
|
-
exports.de_UpdateListenerCommand = de_UpdateListenerCommand;
|
|
2679
|
-
const de_UpdateListenerCommandError = async (output, context) => {
|
|
2680
|
-
const parsedOutput = {
|
|
2681
|
-
...output,
|
|
2682
|
-
body: await parseErrorBody(output.body, context),
|
|
2683
|
-
};
|
|
2684
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2685
|
-
switch (errorCode) {
|
|
2686
|
-
case "InternalServiceErrorException":
|
|
2687
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2688
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2689
|
-
case "InvalidArgumentException":
|
|
2690
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2691
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2692
|
-
case "InvalidPortRangeException":
|
|
2693
|
-
case "com.amazonaws.globalaccelerator#InvalidPortRangeException":
|
|
2694
|
-
throw await de_InvalidPortRangeExceptionRes(parsedOutput, context);
|
|
2695
|
-
case "LimitExceededException":
|
|
2696
|
-
case "com.amazonaws.globalaccelerator#LimitExceededException":
|
|
2697
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2698
|
-
case "ListenerNotFoundException":
|
|
2699
|
-
case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
|
|
2700
|
-
throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
|
|
2701
|
-
default:
|
|
2702
|
-
const parsedBody = parsedOutput.body;
|
|
2703
|
-
return throwDefaultError({
|
|
2704
|
-
output,
|
|
2705
|
-
parsedBody,
|
|
2706
|
-
errorCode,
|
|
2707
|
-
});
|
|
2708
|
-
}
|
|
2709
|
-
};
|
|
2710
|
-
const de_WithdrawByoipCidrCommand = async (output, context) => {
|
|
2711
|
-
if (output.statusCode >= 300) {
|
|
2712
|
-
return de_WithdrawByoipCidrCommandError(output, context);
|
|
2713
|
-
}
|
|
2714
|
-
const data = await parseBody(output.body, context);
|
|
2715
|
-
let contents = {};
|
|
2716
|
-
contents = de_WithdrawByoipCidrResponse(data, context);
|
|
2717
|
-
const response = {
|
|
2718
|
-
$metadata: deserializeMetadata(output),
|
|
2719
|
-
...contents,
|
|
2720
|
-
};
|
|
2721
|
-
return response;
|
|
2722
|
-
};
|
|
2723
|
-
exports.de_WithdrawByoipCidrCommand = de_WithdrawByoipCidrCommand;
|
|
2724
|
-
const de_WithdrawByoipCidrCommandError = async (output, context) => {
|
|
2725
|
-
const parsedOutput = {
|
|
2726
|
-
...output,
|
|
2727
|
-
body: await parseErrorBody(output.body, context),
|
|
2728
|
-
};
|
|
2729
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2730
|
-
switch (errorCode) {
|
|
2731
|
-
case "AccessDeniedException":
|
|
2732
|
-
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
2733
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2734
|
-
case "ByoipCidrNotFoundException":
|
|
2735
|
-
case "com.amazonaws.globalaccelerator#ByoipCidrNotFoundException":
|
|
2736
|
-
throw await de_ByoipCidrNotFoundExceptionRes(parsedOutput, context);
|
|
2737
|
-
case "IncorrectCidrStateException":
|
|
2738
|
-
case "com.amazonaws.globalaccelerator#IncorrectCidrStateException":
|
|
2739
|
-
throw await de_IncorrectCidrStateExceptionRes(parsedOutput, context);
|
|
2740
|
-
case "InternalServiceErrorException":
|
|
2741
|
-
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2742
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2743
|
-
case "InvalidArgumentException":
|
|
2744
|
-
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2745
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2746
|
-
default:
|
|
2747
|
-
const parsedBody = parsedOutput.body;
|
|
2748
|
-
return throwDefaultError({
|
|
2749
|
-
output,
|
|
2750
|
-
parsedBody,
|
|
2751
|
-
errorCode,
|
|
2752
|
-
});
|
|
2753
|
-
}
|
|
2754
|
-
};
|
|
2755
|
-
const de_AcceleratorNotDisabledExceptionRes = async (parsedOutput, context) => {
|
|
2756
|
-
const body = parsedOutput.body;
|
|
2757
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2758
|
-
const exception = new models_0_1.AcceleratorNotDisabledException({
|
|
2759
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2760
|
-
...deserialized,
|
|
2761
|
-
});
|
|
2762
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2763
|
-
};
|
|
2764
|
-
const de_AcceleratorNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2765
|
-
const body = parsedOutput.body;
|
|
2766
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2767
|
-
const exception = new models_0_1.AcceleratorNotFoundException({
|
|
2768
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2769
|
-
...deserialized,
|
|
2770
|
-
});
|
|
2771
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2772
|
-
};
|
|
2773
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2774
|
-
const body = parsedOutput.body;
|
|
2775
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2776
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
2777
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2778
|
-
...deserialized,
|
|
2779
|
-
});
|
|
2780
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2781
|
-
};
|
|
2782
|
-
const de_AssociatedEndpointGroupFoundExceptionRes = async (parsedOutput, context) => {
|
|
2783
|
-
const body = parsedOutput.body;
|
|
2784
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2785
|
-
const exception = new models_0_1.AssociatedEndpointGroupFoundException({
|
|
2786
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2787
|
-
...deserialized,
|
|
2788
|
-
});
|
|
2789
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2790
|
-
};
|
|
2791
|
-
const de_AssociatedListenerFoundExceptionRes = async (parsedOutput, context) => {
|
|
2792
|
-
const body = parsedOutput.body;
|
|
2793
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2794
|
-
const exception = new models_0_1.AssociatedListenerFoundException({
|
|
2795
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2796
|
-
...deserialized,
|
|
2797
|
-
});
|
|
2798
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2799
|
-
};
|
|
2800
|
-
const de_AttachmentNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2801
|
-
const body = parsedOutput.body;
|
|
2802
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2803
|
-
const exception = new models_0_1.AttachmentNotFoundException({
|
|
2804
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2805
|
-
...deserialized,
|
|
2806
|
-
});
|
|
2807
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2808
|
-
};
|
|
2809
|
-
const de_ByoipCidrNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2810
|
-
const body = parsedOutput.body;
|
|
2811
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2812
|
-
const exception = new models_0_1.ByoipCidrNotFoundException({
|
|
2813
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2814
|
-
...deserialized,
|
|
2815
|
-
});
|
|
2816
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2817
|
-
};
|
|
2818
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2819
|
-
const body = parsedOutput.body;
|
|
2820
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2821
|
-
const exception = new models_0_1.ConflictException({
|
|
2822
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2823
|
-
...deserialized,
|
|
2824
|
-
});
|
|
2825
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2826
|
-
};
|
|
2827
|
-
const de_EndpointAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
2828
|
-
const body = parsedOutput.body;
|
|
2829
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2830
|
-
const exception = new models_0_1.EndpointAlreadyExistsException({
|
|
2831
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2832
|
-
...deserialized,
|
|
2833
|
-
});
|
|
2834
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2835
|
-
};
|
|
2836
|
-
const de_EndpointGroupAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
2837
|
-
const body = parsedOutput.body;
|
|
2838
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2839
|
-
const exception = new models_0_1.EndpointGroupAlreadyExistsException({
|
|
2840
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2841
|
-
...deserialized,
|
|
2842
|
-
});
|
|
2843
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2844
|
-
};
|
|
2845
|
-
const de_EndpointGroupNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2846
|
-
const body = parsedOutput.body;
|
|
2847
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2848
|
-
const exception = new models_0_1.EndpointGroupNotFoundException({
|
|
2849
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2850
|
-
...deserialized,
|
|
2851
|
-
});
|
|
2852
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2853
|
-
};
|
|
2854
|
-
const de_EndpointNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2855
|
-
const body = parsedOutput.body;
|
|
2856
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2857
|
-
const exception = new models_0_1.EndpointNotFoundException({
|
|
2858
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2859
|
-
...deserialized,
|
|
2860
|
-
});
|
|
2861
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2862
|
-
};
|
|
2863
|
-
const de_IncorrectCidrStateExceptionRes = async (parsedOutput, context) => {
|
|
2864
|
-
const body = parsedOutput.body;
|
|
2865
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2866
|
-
const exception = new models_0_1.IncorrectCidrStateException({
|
|
2867
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2868
|
-
...deserialized,
|
|
2869
|
-
});
|
|
2870
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2871
|
-
};
|
|
2872
|
-
const de_InternalServiceErrorExceptionRes = async (parsedOutput, context) => {
|
|
2873
|
-
const body = parsedOutput.body;
|
|
2874
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2875
|
-
const exception = new models_0_1.InternalServiceErrorException({
|
|
2876
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2877
|
-
...deserialized,
|
|
2878
|
-
});
|
|
2879
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2880
|
-
};
|
|
2881
|
-
const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
|
|
2882
|
-
const body = parsedOutput.body;
|
|
2883
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2884
|
-
const exception = new models_0_1.InvalidArgumentException({
|
|
2885
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2886
|
-
...deserialized,
|
|
2887
|
-
});
|
|
2888
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2889
|
-
};
|
|
2890
|
-
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
2891
|
-
const body = parsedOutput.body;
|
|
2892
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2893
|
-
const exception = new models_0_1.InvalidNextTokenException({
|
|
2894
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2895
|
-
...deserialized,
|
|
2896
|
-
});
|
|
2897
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2898
|
-
};
|
|
2899
|
-
const de_InvalidPortRangeExceptionRes = async (parsedOutput, context) => {
|
|
2900
|
-
const body = parsedOutput.body;
|
|
2901
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2902
|
-
const exception = new models_0_1.InvalidPortRangeException({
|
|
2903
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2904
|
-
...deserialized,
|
|
2905
|
-
});
|
|
2906
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2907
|
-
};
|
|
2908
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2909
|
-
const body = parsedOutput.body;
|
|
2910
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2911
|
-
const exception = new models_0_1.LimitExceededException({
|
|
2912
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2913
|
-
...deserialized,
|
|
2914
|
-
});
|
|
2915
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2916
|
-
};
|
|
2917
|
-
const de_ListenerNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2918
|
-
const body = parsedOutput.body;
|
|
2919
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2920
|
-
const exception = new models_0_1.ListenerNotFoundException({
|
|
2921
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2922
|
-
...deserialized,
|
|
2923
|
-
});
|
|
2924
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2925
|
-
};
|
|
2926
|
-
const de_TransactionInProgressExceptionRes = async (parsedOutput, context) => {
|
|
2927
|
-
const body = parsedOutput.body;
|
|
2928
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2929
|
-
const exception = new models_0_1.TransactionInProgressException({
|
|
2930
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2931
|
-
...deserialized,
|
|
2932
|
-
});
|
|
2933
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2934
|
-
};
|
|
2935
|
-
const se_CreateAcceleratorRequest = (input, context) => {
|
|
2936
|
-
return (0, smithy_client_1.take)(input, {
|
|
2937
|
-
Enabled: [],
|
|
2938
|
-
IdempotencyToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
2939
|
-
IpAddressType: [],
|
|
2940
|
-
IpAddresses: smithy_client_1._json,
|
|
2941
|
-
Name: [],
|
|
2942
|
-
Tags: smithy_client_1._json,
|
|
2943
|
-
});
|
|
2944
|
-
};
|
|
2945
|
-
const se_CreateCrossAccountAttachmentRequest = (input, context) => {
|
|
2946
|
-
return (0, smithy_client_1.take)(input, {
|
|
2947
|
-
IdempotencyToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
2948
|
-
Name: [],
|
|
2949
|
-
Principals: smithy_client_1._json,
|
|
2950
|
-
Resources: smithy_client_1._json,
|
|
2951
|
-
Tags: smithy_client_1._json,
|
|
2952
|
-
});
|
|
2953
|
-
};
|
|
2954
|
-
const se_CreateCustomRoutingAcceleratorRequest = (input, context) => {
|
|
2955
|
-
return (0, smithy_client_1.take)(input, {
|
|
2956
|
-
Enabled: [],
|
|
2957
|
-
IdempotencyToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
2958
|
-
IpAddressType: [],
|
|
2959
|
-
IpAddresses: smithy_client_1._json,
|
|
2960
|
-
Name: [],
|
|
2961
|
-
Tags: smithy_client_1._json,
|
|
2962
|
-
});
|
|
2963
|
-
};
|
|
2964
|
-
const se_CreateCustomRoutingEndpointGroupRequest = (input, context) => {
|
|
2965
|
-
return (0, smithy_client_1.take)(input, {
|
|
2966
|
-
DestinationConfigurations: smithy_client_1._json,
|
|
2967
|
-
EndpointGroupRegion: [],
|
|
2968
|
-
IdempotencyToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
2969
|
-
ListenerArn: [],
|
|
2970
|
-
});
|
|
2971
|
-
};
|
|
2972
|
-
const se_CreateCustomRoutingListenerRequest = (input, context) => {
|
|
2973
|
-
return (0, smithy_client_1.take)(input, {
|
|
2974
|
-
AcceleratorArn: [],
|
|
2975
|
-
IdempotencyToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
2976
|
-
PortRanges: smithy_client_1._json,
|
|
2977
|
-
});
|
|
2978
|
-
};
|
|
2979
|
-
const se_CreateEndpointGroupRequest = (input, context) => {
|
|
2980
|
-
return (0, smithy_client_1.take)(input, {
|
|
2981
|
-
EndpointConfigurations: smithy_client_1._json,
|
|
2982
|
-
EndpointGroupRegion: [],
|
|
2983
|
-
HealthCheckIntervalSeconds: [],
|
|
2984
|
-
HealthCheckPath: [],
|
|
2985
|
-
HealthCheckPort: [],
|
|
2986
|
-
HealthCheckProtocol: [],
|
|
2987
|
-
IdempotencyToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
2988
|
-
ListenerArn: [],
|
|
2989
|
-
PortOverrides: smithy_client_1._json,
|
|
2990
|
-
ThresholdCount: [],
|
|
2991
|
-
TrafficDialPercentage: smithy_client_1.serializeFloat,
|
|
2992
|
-
});
|
|
2993
|
-
};
|
|
2994
|
-
const se_CreateListenerRequest = (input, context) => {
|
|
2995
|
-
return (0, smithy_client_1.take)(input, {
|
|
2996
|
-
AcceleratorArn: [],
|
|
2997
|
-
ClientAffinity: [],
|
|
2998
|
-
IdempotencyToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
2999
|
-
PortRanges: smithy_client_1._json,
|
|
3000
|
-
Protocol: [],
|
|
3001
|
-
});
|
|
3002
|
-
};
|
|
3003
|
-
const se_UpdateEndpointGroupRequest = (input, context) => {
|
|
3004
|
-
return (0, smithy_client_1.take)(input, {
|
|
3005
|
-
EndpointConfigurations: smithy_client_1._json,
|
|
3006
|
-
EndpointGroupArn: [],
|
|
3007
|
-
HealthCheckIntervalSeconds: [],
|
|
3008
|
-
HealthCheckPath: [],
|
|
3009
|
-
HealthCheckPort: [],
|
|
3010
|
-
HealthCheckProtocol: [],
|
|
3011
|
-
PortOverrides: smithy_client_1._json,
|
|
3012
|
-
ThresholdCount: [],
|
|
3013
|
-
TrafficDialPercentage: smithy_client_1.serializeFloat,
|
|
3014
|
-
});
|
|
3015
|
-
};
|
|
3016
|
-
const de_Accelerator = (output, context) => {
|
|
3017
|
-
return (0, smithy_client_1.take)(output, {
|
|
3018
|
-
AcceleratorArn: smithy_client_1.expectString,
|
|
3019
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3020
|
-
DnsName: smithy_client_1.expectString,
|
|
3021
|
-
DualStackDnsName: smithy_client_1.expectString,
|
|
3022
|
-
Enabled: smithy_client_1.expectBoolean,
|
|
3023
|
-
Events: (_) => de_AcceleratorEvents(_, context),
|
|
3024
|
-
IpAddressType: smithy_client_1.expectString,
|
|
3025
|
-
IpSets: smithy_client_1._json,
|
|
3026
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3027
|
-
Name: smithy_client_1.expectString,
|
|
3028
|
-
Status: smithy_client_1.expectString,
|
|
3029
|
-
});
|
|
3030
|
-
};
|
|
3031
|
-
const de_AcceleratorEvent = (output, context) => {
|
|
3032
|
-
return (0, smithy_client_1.take)(output, {
|
|
3033
|
-
Message: smithy_client_1.expectString,
|
|
3034
|
-
Timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3035
|
-
});
|
|
3036
|
-
};
|
|
3037
|
-
const de_AcceleratorEvents = (output, context) => {
|
|
3038
|
-
const retVal = (output || [])
|
|
3039
|
-
.filter((e) => e != null)
|
|
3040
|
-
.map((entry) => {
|
|
3041
|
-
return de_AcceleratorEvent(entry, context);
|
|
3042
|
-
});
|
|
3043
|
-
return retVal;
|
|
3044
|
-
};
|
|
3045
|
-
const de_Accelerators = (output, context) => {
|
|
3046
|
-
const retVal = (output || [])
|
|
3047
|
-
.filter((e) => e != null)
|
|
3048
|
-
.map((entry) => {
|
|
3049
|
-
return de_Accelerator(entry, context);
|
|
3050
|
-
});
|
|
3051
|
-
return retVal;
|
|
3052
|
-
};
|
|
3053
|
-
const de_AdvertiseByoipCidrResponse = (output, context) => {
|
|
3054
|
-
return (0, smithy_client_1.take)(output, {
|
|
3055
|
-
ByoipCidr: (_) => de_ByoipCidr(_, context),
|
|
3056
|
-
});
|
|
3057
|
-
};
|
|
3058
|
-
const de_Attachment = (output, context) => {
|
|
3059
|
-
return (0, smithy_client_1.take)(output, {
|
|
3060
|
-
AttachmentArn: smithy_client_1.expectString,
|
|
3061
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3062
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3063
|
-
Name: smithy_client_1.expectString,
|
|
3064
|
-
Principals: smithy_client_1._json,
|
|
3065
|
-
Resources: smithy_client_1._json,
|
|
3066
|
-
});
|
|
3067
|
-
};
|
|
3068
|
-
const de_Attachments = (output, context) => {
|
|
3069
|
-
const retVal = (output || [])
|
|
3070
|
-
.filter((e) => e != null)
|
|
3071
|
-
.map((entry) => {
|
|
3072
|
-
return de_Attachment(entry, context);
|
|
3073
|
-
});
|
|
3074
|
-
return retVal;
|
|
3075
|
-
};
|
|
3076
|
-
const de_ByoipCidr = (output, context) => {
|
|
3077
|
-
return (0, smithy_client_1.take)(output, {
|
|
3078
|
-
Cidr: smithy_client_1.expectString,
|
|
3079
|
-
Events: (_) => de_ByoipCidrEvents(_, context),
|
|
3080
|
-
State: smithy_client_1.expectString,
|
|
3081
|
-
});
|
|
3082
|
-
};
|
|
3083
|
-
const de_ByoipCidrEvent = (output, context) => {
|
|
3084
|
-
return (0, smithy_client_1.take)(output, {
|
|
3085
|
-
Message: smithy_client_1.expectString,
|
|
3086
|
-
Timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3087
|
-
});
|
|
3088
|
-
};
|
|
3089
|
-
const de_ByoipCidrEvents = (output, context) => {
|
|
3090
|
-
const retVal = (output || [])
|
|
3091
|
-
.filter((e) => e != null)
|
|
3092
|
-
.map((entry) => {
|
|
3093
|
-
return de_ByoipCidrEvent(entry, context);
|
|
3094
|
-
});
|
|
3095
|
-
return retVal;
|
|
3096
|
-
};
|
|
3097
|
-
const de_ByoipCidrs = (output, context) => {
|
|
3098
|
-
const retVal = (output || [])
|
|
3099
|
-
.filter((e) => e != null)
|
|
3100
|
-
.map((entry) => {
|
|
3101
|
-
return de_ByoipCidr(entry, context);
|
|
3102
|
-
});
|
|
3103
|
-
return retVal;
|
|
3104
|
-
};
|
|
3105
|
-
const de_CreateAcceleratorResponse = (output, context) => {
|
|
3106
|
-
return (0, smithy_client_1.take)(output, {
|
|
3107
|
-
Accelerator: (_) => de_Accelerator(_, context),
|
|
3108
|
-
});
|
|
3109
|
-
};
|
|
3110
|
-
const de_CreateCrossAccountAttachmentResponse = (output, context) => {
|
|
3111
|
-
return (0, smithy_client_1.take)(output, {
|
|
3112
|
-
CrossAccountAttachment: (_) => de_Attachment(_, context),
|
|
3113
|
-
});
|
|
3114
|
-
};
|
|
3115
|
-
const de_CreateCustomRoutingAcceleratorResponse = (output, context) => {
|
|
3116
|
-
return (0, smithy_client_1.take)(output, {
|
|
3117
|
-
Accelerator: (_) => de_CustomRoutingAccelerator(_, context),
|
|
3118
|
-
});
|
|
3119
|
-
};
|
|
3120
|
-
const de_CreateEndpointGroupResponse = (output, context) => {
|
|
3121
|
-
return (0, smithy_client_1.take)(output, {
|
|
3122
|
-
EndpointGroup: (_) => de_EndpointGroup(_, context),
|
|
3123
|
-
});
|
|
3124
|
-
};
|
|
3125
|
-
const de_CustomRoutingAccelerator = (output, context) => {
|
|
3126
|
-
return (0, smithy_client_1.take)(output, {
|
|
3127
|
-
AcceleratorArn: smithy_client_1.expectString,
|
|
3128
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3129
|
-
DnsName: smithy_client_1.expectString,
|
|
3130
|
-
Enabled: smithy_client_1.expectBoolean,
|
|
3131
|
-
IpAddressType: smithy_client_1.expectString,
|
|
3132
|
-
IpSets: smithy_client_1._json,
|
|
3133
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3134
|
-
Name: smithy_client_1.expectString,
|
|
3135
|
-
Status: smithy_client_1.expectString,
|
|
3136
|
-
});
|
|
3137
|
-
};
|
|
3138
|
-
const de_CustomRoutingAccelerators = (output, context) => {
|
|
3139
|
-
const retVal = (output || [])
|
|
3140
|
-
.filter((e) => e != null)
|
|
3141
|
-
.map((entry) => {
|
|
3142
|
-
return de_CustomRoutingAccelerator(entry, context);
|
|
3143
|
-
});
|
|
3144
|
-
return retVal;
|
|
3145
|
-
};
|
|
3146
|
-
const de_DeprovisionByoipCidrResponse = (output, context) => {
|
|
3147
|
-
return (0, smithy_client_1.take)(output, {
|
|
3148
|
-
ByoipCidr: (_) => de_ByoipCidr(_, context),
|
|
3149
|
-
});
|
|
3150
|
-
};
|
|
3151
|
-
const de_DescribeAcceleratorResponse = (output, context) => {
|
|
3152
|
-
return (0, smithy_client_1.take)(output, {
|
|
3153
|
-
Accelerator: (_) => de_Accelerator(_, context),
|
|
3154
|
-
});
|
|
3155
|
-
};
|
|
3156
|
-
const de_DescribeCrossAccountAttachmentResponse = (output, context) => {
|
|
3157
|
-
return (0, smithy_client_1.take)(output, {
|
|
3158
|
-
CrossAccountAttachment: (_) => de_Attachment(_, context),
|
|
3159
|
-
});
|
|
3160
|
-
};
|
|
3161
|
-
const de_DescribeCustomRoutingAcceleratorResponse = (output, context) => {
|
|
3162
|
-
return (0, smithy_client_1.take)(output, {
|
|
3163
|
-
Accelerator: (_) => de_CustomRoutingAccelerator(_, context),
|
|
3164
|
-
});
|
|
3165
|
-
};
|
|
3166
|
-
const de_DescribeEndpointGroupResponse = (output, context) => {
|
|
3167
|
-
return (0, smithy_client_1.take)(output, {
|
|
3168
|
-
EndpointGroup: (_) => de_EndpointGroup(_, context),
|
|
3169
|
-
});
|
|
3170
|
-
};
|
|
3171
|
-
const de_EndpointGroup = (output, context) => {
|
|
3172
|
-
return (0, smithy_client_1.take)(output, {
|
|
3173
|
-
EndpointDescriptions: smithy_client_1._json,
|
|
3174
|
-
EndpointGroupArn: smithy_client_1.expectString,
|
|
3175
|
-
EndpointGroupRegion: smithy_client_1.expectString,
|
|
3176
|
-
HealthCheckIntervalSeconds: smithy_client_1.expectInt32,
|
|
3177
|
-
HealthCheckPath: smithy_client_1.expectString,
|
|
3178
|
-
HealthCheckPort: smithy_client_1.expectInt32,
|
|
3179
|
-
HealthCheckProtocol: smithy_client_1.expectString,
|
|
3180
|
-
PortOverrides: smithy_client_1._json,
|
|
3181
|
-
ThresholdCount: smithy_client_1.expectInt32,
|
|
3182
|
-
TrafficDialPercentage: smithy_client_1.limitedParseFloat32,
|
|
3183
|
-
});
|
|
3184
|
-
};
|
|
3185
|
-
const de_EndpointGroups = (output, context) => {
|
|
3186
|
-
const retVal = (output || [])
|
|
3187
|
-
.filter((e) => e != null)
|
|
3188
|
-
.map((entry) => {
|
|
3189
|
-
return de_EndpointGroup(entry, context);
|
|
3190
|
-
});
|
|
3191
|
-
return retVal;
|
|
3192
|
-
};
|
|
3193
|
-
const de_ListAcceleratorsResponse = (output, context) => {
|
|
3194
|
-
return (0, smithy_client_1.take)(output, {
|
|
3195
|
-
Accelerators: (_) => de_Accelerators(_, context),
|
|
3196
|
-
NextToken: smithy_client_1.expectString,
|
|
3197
|
-
});
|
|
3198
|
-
};
|
|
3199
|
-
const de_ListByoipCidrsResponse = (output, context) => {
|
|
3200
|
-
return (0, smithy_client_1.take)(output, {
|
|
3201
|
-
ByoipCidrs: (_) => de_ByoipCidrs(_, context),
|
|
3202
|
-
NextToken: smithy_client_1.expectString,
|
|
3203
|
-
});
|
|
3204
|
-
};
|
|
3205
|
-
const de_ListCrossAccountAttachmentsResponse = (output, context) => {
|
|
3206
|
-
return (0, smithy_client_1.take)(output, {
|
|
3207
|
-
CrossAccountAttachments: (_) => de_Attachments(_, context),
|
|
3208
|
-
NextToken: smithy_client_1.expectString,
|
|
3209
|
-
});
|
|
3210
|
-
};
|
|
3211
|
-
const de_ListCustomRoutingAcceleratorsResponse = (output, context) => {
|
|
3212
|
-
return (0, smithy_client_1.take)(output, {
|
|
3213
|
-
Accelerators: (_) => de_CustomRoutingAccelerators(_, context),
|
|
3214
|
-
NextToken: smithy_client_1.expectString,
|
|
3215
|
-
});
|
|
3216
|
-
};
|
|
3217
|
-
const de_ListEndpointGroupsResponse = (output, context) => {
|
|
3218
|
-
return (0, smithy_client_1.take)(output, {
|
|
3219
|
-
EndpointGroups: (_) => de_EndpointGroups(_, context),
|
|
3220
|
-
NextToken: smithy_client_1.expectString,
|
|
3221
|
-
});
|
|
3222
|
-
};
|
|
3223
|
-
const de_ProvisionByoipCidrResponse = (output, context) => {
|
|
3224
|
-
return (0, smithy_client_1.take)(output, {
|
|
3225
|
-
ByoipCidr: (_) => de_ByoipCidr(_, context),
|
|
3226
|
-
});
|
|
3227
|
-
};
|
|
3228
|
-
const de_UpdateAcceleratorResponse = (output, context) => {
|
|
3229
|
-
return (0, smithy_client_1.take)(output, {
|
|
3230
|
-
Accelerator: (_) => de_Accelerator(_, context),
|
|
3231
|
-
});
|
|
3232
|
-
};
|
|
3233
|
-
const de_UpdateCrossAccountAttachmentResponse = (output, context) => {
|
|
3234
|
-
return (0, smithy_client_1.take)(output, {
|
|
3235
|
-
CrossAccountAttachment: (_) => de_Attachment(_, context),
|
|
3236
|
-
});
|
|
3237
|
-
};
|
|
3238
|
-
const de_UpdateCustomRoutingAcceleratorResponse = (output, context) => {
|
|
3239
|
-
return (0, smithy_client_1.take)(output, {
|
|
3240
|
-
Accelerator: (_) => de_CustomRoutingAccelerator(_, context),
|
|
3241
|
-
});
|
|
3242
|
-
};
|
|
3243
|
-
const de_UpdateEndpointGroupResponse = (output, context) => {
|
|
3244
|
-
return (0, smithy_client_1.take)(output, {
|
|
3245
|
-
EndpointGroup: (_) => de_EndpointGroup(_, context),
|
|
3246
|
-
});
|
|
3247
|
-
};
|
|
3248
|
-
const de_WithdrawByoipCidrResponse = (output, context) => {
|
|
3249
|
-
return (0, smithy_client_1.take)(output, {
|
|
3250
|
-
ByoipCidr: (_) => de_ByoipCidr(_, context),
|
|
3251
|
-
});
|
|
3252
|
-
};
|
|
3253
|
-
const deserializeMetadata = (output) => ({
|
|
3254
|
-
httpStatusCode: output.statusCode,
|
|
3255
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
3256
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3257
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
3258
|
-
});
|
|
3259
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3260
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException);
|
|
3261
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3262
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3263
|
-
const contents = {
|
|
3264
|
-
protocol,
|
|
3265
|
-
hostname,
|
|
3266
|
-
port,
|
|
3267
|
-
method: "POST",
|
|
3268
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
3269
|
-
headers,
|
|
3270
|
-
};
|
|
3271
|
-
if (resolvedHostname !== undefined) {
|
|
3272
|
-
contents.hostname = resolvedHostname;
|
|
3273
|
-
}
|
|
3274
|
-
if (body !== undefined) {
|
|
3275
|
-
contents.body = body;
|
|
3276
|
-
}
|
|
3277
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
3278
|
-
};
|
|
3279
|
-
function sharedHeaders(operation) {
|
|
3280
|
-
return {
|
|
3281
|
-
"content-type": "application/x-amz-json-1.1",
|
|
3282
|
-
"x-amz-target": `GlobalAccelerator_V20180706.${operation}`,
|
|
3283
|
-
};
|
|
3284
|
-
}
|
|
3285
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3286
|
-
if (encoded.length) {
|
|
3287
|
-
return JSON.parse(encoded);
|
|
3288
|
-
}
|
|
3289
|
-
return {};
|
|
3290
|
-
});
|
|
3291
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
3292
|
-
const value = await parseBody(errorBody, context);
|
|
3293
|
-
value.message = value.message ?? value.Message;
|
|
3294
|
-
return value;
|
|
3295
|
-
};
|
|
3296
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
3297
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3298
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
3299
|
-
let cleanValue = rawValue;
|
|
3300
|
-
if (typeof cleanValue === "number") {
|
|
3301
|
-
cleanValue = cleanValue.toString();
|
|
3302
|
-
}
|
|
3303
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
3304
|
-
cleanValue = cleanValue.split(",")[0];
|
|
3305
|
-
}
|
|
3306
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
3307
|
-
cleanValue = cleanValue.split(":")[0];
|
|
3308
|
-
}
|
|
3309
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
3310
|
-
cleanValue = cleanValue.split("#")[1];
|
|
3311
|
-
}
|
|
3312
|
-
return cleanValue;
|
|
3313
|
-
};
|
|
3314
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
3315
|
-
if (headerKey !== undefined) {
|
|
3316
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
3317
|
-
}
|
|
3318
|
-
if (data.code !== undefined) {
|
|
3319
|
-
return sanitizeErrorCode(data.code);
|
|
3320
|
-
}
|
|
3321
|
-
if (data["__type"] !== undefined) {
|
|
3322
|
-
return sanitizeErrorCode(data["__type"]);
|
|
3323
|
-
}
|
|
3324
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|