@aws-sdk/client-vpc-lattice 3.489.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/VPCLattice.js +1 -115
- package/dist-cjs/VPCLatticeClient.js +1 -43
- package/dist-cjs/commands/BatchUpdateRuleCommand.js +1 -28
- package/dist-cjs/commands/CreateAccessLogSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/CreateListenerCommand.js +1 -28
- package/dist-cjs/commands/CreateRuleCommand.js +1 -28
- package/dist-cjs/commands/CreateServiceCommand.js +1 -28
- package/dist-cjs/commands/CreateServiceNetworkCommand.js +1 -28
- package/dist-cjs/commands/CreateServiceNetworkServiceAssociationCommand.js +1 -28
- package/dist-cjs/commands/CreateServiceNetworkVpcAssociationCommand.js +1 -28
- package/dist-cjs/commands/CreateTargetGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteAccessLogSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/DeleteAuthPolicyCommand.js +1 -28
- package/dist-cjs/commands/DeleteListenerCommand.js +1 -28
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +1 -28
- package/dist-cjs/commands/DeleteRuleCommand.js +1 -28
- package/dist-cjs/commands/DeleteServiceCommand.js +1 -28
- package/dist-cjs/commands/DeleteServiceNetworkCommand.js +1 -28
- package/dist-cjs/commands/DeleteServiceNetworkServiceAssociationCommand.js +1 -28
- package/dist-cjs/commands/DeleteServiceNetworkVpcAssociationCommand.js +1 -28
- package/dist-cjs/commands/DeleteTargetGroupCommand.js +1 -28
- package/dist-cjs/commands/DeregisterTargetsCommand.js +1 -28
- package/dist-cjs/commands/GetAccessLogSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/GetAuthPolicyCommand.js +1 -28
- package/dist-cjs/commands/GetListenerCommand.js +1 -28
- package/dist-cjs/commands/GetResourcePolicyCommand.js +1 -28
- package/dist-cjs/commands/GetRuleCommand.js +1 -28
- package/dist-cjs/commands/GetServiceCommand.js +1 -28
- package/dist-cjs/commands/GetServiceNetworkCommand.js +1 -28
- package/dist-cjs/commands/GetServiceNetworkServiceAssociationCommand.js +1 -28
- package/dist-cjs/commands/GetServiceNetworkVpcAssociationCommand.js +1 -28
- package/dist-cjs/commands/GetTargetGroupCommand.js +1 -28
- package/dist-cjs/commands/ListAccessLogSubscriptionsCommand.js +1 -28
- package/dist-cjs/commands/ListListenersCommand.js +1 -28
- package/dist-cjs/commands/ListRulesCommand.js +1 -28
- package/dist-cjs/commands/ListServiceNetworkServiceAssociationsCommand.js +1 -28
- package/dist-cjs/commands/ListServiceNetworkVpcAssociationsCommand.js +1 -28
- package/dist-cjs/commands/ListServiceNetworksCommand.js +1 -28
- package/dist-cjs/commands/ListServicesCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListTargetGroupsCommand.js +1 -28
- package/dist-cjs/commands/ListTargetsCommand.js +1 -28
- package/dist-cjs/commands/PutAuthPolicyCommand.js +1 -28
- package/dist-cjs/commands/PutResourcePolicyCommand.js +1 -28
- package/dist-cjs/commands/RegisterTargetsCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateAccessLogSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/UpdateListenerCommand.js +1 -28
- package/dist-cjs/commands/UpdateRuleCommand.js +1 -28
- package/dist-cjs/commands/UpdateServiceCommand.js +1 -28
- package/dist-cjs/commands/UpdateServiceNetworkCommand.js +1 -28
- package/dist-cjs/commands/UpdateServiceNetworkVpcAssociationCommand.js +1 -28
- package/dist-cjs/commands/UpdateTargetGroupCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -55
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +5327 -11
- package/dist-cjs/models/VPCLatticeServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -244
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListAccessLogSubscriptionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListListenersPaginator.js +1 -7
- package/dist-cjs/pagination/ListRulesPaginator.js +1 -7
- package/dist-cjs/pagination/ListServiceNetworkServiceAssociationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListServiceNetworkVpcAssociationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListServiceNetworksPaginator.js +1 -7
- package/dist-cjs/pagination/ListServicesPaginator.js +1 -7
- package/dist-cjs/pagination/ListTargetGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/ListTargetsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -13
- package/dist-cjs/protocols/Aws_restJson1.js +1 -3667
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,3667 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.se_UpdateServiceNetworkCommand = exports.se_UpdateServiceCommand = exports.se_UpdateRuleCommand = exports.se_UpdateListenerCommand = exports.se_UpdateAccessLogSubscriptionCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RegisterTargetsCommand = exports.se_PutResourcePolicyCommand = exports.se_PutAuthPolicyCommand = exports.se_ListTargetsCommand = exports.se_ListTargetGroupsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListServicesCommand = exports.se_ListServiceNetworkVpcAssociationsCommand = exports.se_ListServiceNetworkServiceAssociationsCommand = exports.se_ListServiceNetworksCommand = exports.se_ListRulesCommand = exports.se_ListListenersCommand = exports.se_ListAccessLogSubscriptionsCommand = exports.se_GetTargetGroupCommand = exports.se_GetServiceNetworkVpcAssociationCommand = exports.se_GetServiceNetworkServiceAssociationCommand = exports.se_GetServiceNetworkCommand = exports.se_GetServiceCommand = exports.se_GetRuleCommand = exports.se_GetResourcePolicyCommand = exports.se_GetListenerCommand = exports.se_GetAuthPolicyCommand = exports.se_GetAccessLogSubscriptionCommand = exports.se_DeregisterTargetsCommand = exports.se_DeleteTargetGroupCommand = exports.se_DeleteServiceNetworkVpcAssociationCommand = exports.se_DeleteServiceNetworkServiceAssociationCommand = exports.se_DeleteServiceNetworkCommand = exports.se_DeleteServiceCommand = exports.se_DeleteRuleCommand = exports.se_DeleteResourcePolicyCommand = exports.se_DeleteListenerCommand = exports.se_DeleteAuthPolicyCommand = exports.se_DeleteAccessLogSubscriptionCommand = exports.se_CreateTargetGroupCommand = exports.se_CreateServiceNetworkVpcAssociationCommand = exports.se_CreateServiceNetworkServiceAssociationCommand = exports.se_CreateServiceNetworkCommand = exports.se_CreateServiceCommand = exports.se_CreateRuleCommand = exports.se_CreateListenerCommand = exports.se_CreateAccessLogSubscriptionCommand = exports.se_BatchUpdateRuleCommand = void 0;
|
|
4
|
-
exports.de_UpdateRuleCommand = exports.de_UpdateListenerCommand = exports.de_UpdateAccessLogSubscriptionCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RegisterTargetsCommand = exports.de_PutResourcePolicyCommand = exports.de_PutAuthPolicyCommand = exports.de_ListTargetsCommand = exports.de_ListTargetGroupsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListServicesCommand = exports.de_ListServiceNetworkVpcAssociationsCommand = exports.de_ListServiceNetworkServiceAssociationsCommand = exports.de_ListServiceNetworksCommand = exports.de_ListRulesCommand = exports.de_ListListenersCommand = exports.de_ListAccessLogSubscriptionsCommand = exports.de_GetTargetGroupCommand = exports.de_GetServiceNetworkVpcAssociationCommand = exports.de_GetServiceNetworkServiceAssociationCommand = exports.de_GetServiceNetworkCommand = exports.de_GetServiceCommand = exports.de_GetRuleCommand = exports.de_GetResourcePolicyCommand = exports.de_GetListenerCommand = exports.de_GetAuthPolicyCommand = exports.de_GetAccessLogSubscriptionCommand = exports.de_DeregisterTargetsCommand = exports.de_DeleteTargetGroupCommand = exports.de_DeleteServiceNetworkVpcAssociationCommand = exports.de_DeleteServiceNetworkServiceAssociationCommand = exports.de_DeleteServiceNetworkCommand = exports.de_DeleteServiceCommand = exports.de_DeleteRuleCommand = exports.de_DeleteResourcePolicyCommand = exports.de_DeleteListenerCommand = exports.de_DeleteAuthPolicyCommand = exports.de_DeleteAccessLogSubscriptionCommand = exports.de_CreateTargetGroupCommand = exports.de_CreateServiceNetworkVpcAssociationCommand = exports.de_CreateServiceNetworkServiceAssociationCommand = exports.de_CreateServiceNetworkCommand = exports.de_CreateServiceCommand = exports.de_CreateRuleCommand = exports.de_CreateListenerCommand = exports.de_CreateAccessLogSubscriptionCommand = exports.de_BatchUpdateRuleCommand = exports.se_UpdateTargetGroupCommand = exports.se_UpdateServiceNetworkVpcAssociationCommand = void 0;
|
|
5
|
-
exports.de_UpdateTargetGroupCommand = exports.de_UpdateServiceNetworkVpcAssociationCommand = exports.de_UpdateServiceNetworkCommand = exports.de_UpdateServiceCommand = void 0;
|
|
6
|
-
const core_1 = require("@aws-sdk/core");
|
|
7
|
-
const core_2 = require("@smithy/core");
|
|
8
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
9
|
-
const uuid_1 = require("uuid");
|
|
10
|
-
const models_0_1 = require("../models/models_0");
|
|
11
|
-
const VPCLatticeServiceException_1 = require("../models/VPCLatticeServiceException");
|
|
12
|
-
const se_BatchUpdateRuleCommand = async (input, context) => {
|
|
13
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
14
|
-
const headers = {
|
|
15
|
-
"content-type": "application/json",
|
|
16
|
-
};
|
|
17
|
-
b.bp("/services/{serviceIdentifier}/listeners/{listenerIdentifier}/rules");
|
|
18
|
-
b.p("serviceIdentifier", () => input.serviceIdentifier, "{serviceIdentifier}", false);
|
|
19
|
-
b.p("listenerIdentifier", () => input.listenerIdentifier, "{listenerIdentifier}", false);
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
22
|
-
rules: (_) => (0, smithy_client_1._json)(_),
|
|
23
|
-
}));
|
|
24
|
-
b.m("PATCH").h(headers).b(body);
|
|
25
|
-
return b.build();
|
|
26
|
-
};
|
|
27
|
-
exports.se_BatchUpdateRuleCommand = se_BatchUpdateRuleCommand;
|
|
28
|
-
const se_CreateAccessLogSubscriptionCommand = async (input, context) => {
|
|
29
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
30
|
-
const headers = {
|
|
31
|
-
"content-type": "application/json",
|
|
32
|
-
};
|
|
33
|
-
b.bp("/accesslogsubscriptions");
|
|
34
|
-
let body;
|
|
35
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
36
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
37
|
-
destinationArn: [],
|
|
38
|
-
resourceIdentifier: [],
|
|
39
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
40
|
-
}));
|
|
41
|
-
b.m("POST").h(headers).b(body);
|
|
42
|
-
return b.build();
|
|
43
|
-
};
|
|
44
|
-
exports.se_CreateAccessLogSubscriptionCommand = se_CreateAccessLogSubscriptionCommand;
|
|
45
|
-
const se_CreateListenerCommand = async (input, context) => {
|
|
46
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
47
|
-
const headers = {
|
|
48
|
-
"content-type": "application/json",
|
|
49
|
-
};
|
|
50
|
-
b.bp("/services/{serviceIdentifier}/listeners");
|
|
51
|
-
b.p("serviceIdentifier", () => input.serviceIdentifier, "{serviceIdentifier}", false);
|
|
52
|
-
let body;
|
|
53
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
54
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
55
|
-
defaultAction: (_) => (0, smithy_client_1._json)(_),
|
|
56
|
-
name: [],
|
|
57
|
-
port: [],
|
|
58
|
-
protocol: [],
|
|
59
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
60
|
-
}));
|
|
61
|
-
b.m("POST").h(headers).b(body);
|
|
62
|
-
return b.build();
|
|
63
|
-
};
|
|
64
|
-
exports.se_CreateListenerCommand = se_CreateListenerCommand;
|
|
65
|
-
const se_CreateRuleCommand = async (input, context) => {
|
|
66
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
67
|
-
const headers = {
|
|
68
|
-
"content-type": "application/json",
|
|
69
|
-
};
|
|
70
|
-
b.bp("/services/{serviceIdentifier}/listeners/{listenerIdentifier}/rules");
|
|
71
|
-
b.p("serviceIdentifier", () => input.serviceIdentifier, "{serviceIdentifier}", false);
|
|
72
|
-
b.p("listenerIdentifier", () => input.listenerIdentifier, "{listenerIdentifier}", false);
|
|
73
|
-
let body;
|
|
74
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
75
|
-
action: (_) => (0, smithy_client_1._json)(_),
|
|
76
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
77
|
-
match: (_) => (0, smithy_client_1._json)(_),
|
|
78
|
-
name: [],
|
|
79
|
-
priority: [],
|
|
80
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
81
|
-
}));
|
|
82
|
-
b.m("POST").h(headers).b(body);
|
|
83
|
-
return b.build();
|
|
84
|
-
};
|
|
85
|
-
exports.se_CreateRuleCommand = se_CreateRuleCommand;
|
|
86
|
-
const se_CreateServiceCommand = async (input, context) => {
|
|
87
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
88
|
-
const headers = {
|
|
89
|
-
"content-type": "application/json",
|
|
90
|
-
};
|
|
91
|
-
b.bp("/services");
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
94
|
-
authType: [],
|
|
95
|
-
certificateArn: [],
|
|
96
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
97
|
-
customDomainName: [],
|
|
98
|
-
name: [],
|
|
99
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
100
|
-
}));
|
|
101
|
-
b.m("POST").h(headers).b(body);
|
|
102
|
-
return b.build();
|
|
103
|
-
};
|
|
104
|
-
exports.se_CreateServiceCommand = se_CreateServiceCommand;
|
|
105
|
-
const se_CreateServiceNetworkCommand = async (input, context) => {
|
|
106
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
107
|
-
const headers = {
|
|
108
|
-
"content-type": "application/json",
|
|
109
|
-
};
|
|
110
|
-
b.bp("/servicenetworks");
|
|
111
|
-
let body;
|
|
112
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
113
|
-
authType: [],
|
|
114
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
115
|
-
name: [],
|
|
116
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
117
|
-
}));
|
|
118
|
-
b.m("POST").h(headers).b(body);
|
|
119
|
-
return b.build();
|
|
120
|
-
};
|
|
121
|
-
exports.se_CreateServiceNetworkCommand = se_CreateServiceNetworkCommand;
|
|
122
|
-
const se_CreateServiceNetworkServiceAssociationCommand = async (input, context) => {
|
|
123
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
124
|
-
const headers = {
|
|
125
|
-
"content-type": "application/json",
|
|
126
|
-
};
|
|
127
|
-
b.bp("/servicenetworkserviceassociations");
|
|
128
|
-
let body;
|
|
129
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
130
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
131
|
-
serviceIdentifier: [],
|
|
132
|
-
serviceNetworkIdentifier: [],
|
|
133
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
134
|
-
}));
|
|
135
|
-
b.m("POST").h(headers).b(body);
|
|
136
|
-
return b.build();
|
|
137
|
-
};
|
|
138
|
-
exports.se_CreateServiceNetworkServiceAssociationCommand = se_CreateServiceNetworkServiceAssociationCommand;
|
|
139
|
-
const se_CreateServiceNetworkVpcAssociationCommand = async (input, context) => {
|
|
140
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
141
|
-
const headers = {
|
|
142
|
-
"content-type": "application/json",
|
|
143
|
-
};
|
|
144
|
-
b.bp("/servicenetworkvpcassociations");
|
|
145
|
-
let body;
|
|
146
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
147
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
148
|
-
securityGroupIds: (_) => (0, smithy_client_1._json)(_),
|
|
149
|
-
serviceNetworkIdentifier: [],
|
|
150
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
151
|
-
vpcIdentifier: [],
|
|
152
|
-
}));
|
|
153
|
-
b.m("POST").h(headers).b(body);
|
|
154
|
-
return b.build();
|
|
155
|
-
};
|
|
156
|
-
exports.se_CreateServiceNetworkVpcAssociationCommand = se_CreateServiceNetworkVpcAssociationCommand;
|
|
157
|
-
const se_CreateTargetGroupCommand = async (input, context) => {
|
|
158
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
159
|
-
const headers = {
|
|
160
|
-
"content-type": "application/json",
|
|
161
|
-
};
|
|
162
|
-
b.bp("/targetgroups");
|
|
163
|
-
let body;
|
|
164
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
165
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
166
|
-
config: (_) => (0, smithy_client_1._json)(_),
|
|
167
|
-
name: [],
|
|
168
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
169
|
-
type: [],
|
|
170
|
-
}));
|
|
171
|
-
b.m("POST").h(headers).b(body);
|
|
172
|
-
return b.build();
|
|
173
|
-
};
|
|
174
|
-
exports.se_CreateTargetGroupCommand = se_CreateTargetGroupCommand;
|
|
175
|
-
const se_DeleteAccessLogSubscriptionCommand = async (input, context) => {
|
|
176
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
177
|
-
const headers = {};
|
|
178
|
-
b.bp("/accesslogsubscriptions/{accessLogSubscriptionIdentifier}");
|
|
179
|
-
b.p("accessLogSubscriptionIdentifier", () => input.accessLogSubscriptionIdentifier, "{accessLogSubscriptionIdentifier}", false);
|
|
180
|
-
let body;
|
|
181
|
-
b.m("DELETE").h(headers).b(body);
|
|
182
|
-
return b.build();
|
|
183
|
-
};
|
|
184
|
-
exports.se_DeleteAccessLogSubscriptionCommand = se_DeleteAccessLogSubscriptionCommand;
|
|
185
|
-
const se_DeleteAuthPolicyCommand = async (input, context) => {
|
|
186
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
187
|
-
const headers = {};
|
|
188
|
-
b.bp("/authpolicy/{resourceIdentifier}");
|
|
189
|
-
b.p("resourceIdentifier", () => input.resourceIdentifier, "{resourceIdentifier}", false);
|
|
190
|
-
let body;
|
|
191
|
-
b.m("DELETE").h(headers).b(body);
|
|
192
|
-
return b.build();
|
|
193
|
-
};
|
|
194
|
-
exports.se_DeleteAuthPolicyCommand = se_DeleteAuthPolicyCommand;
|
|
195
|
-
const se_DeleteListenerCommand = async (input, context) => {
|
|
196
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
197
|
-
const headers = {};
|
|
198
|
-
b.bp("/services/{serviceIdentifier}/listeners/{listenerIdentifier}");
|
|
199
|
-
b.p("serviceIdentifier", () => input.serviceIdentifier, "{serviceIdentifier}", false);
|
|
200
|
-
b.p("listenerIdentifier", () => input.listenerIdentifier, "{listenerIdentifier}", false);
|
|
201
|
-
let body;
|
|
202
|
-
b.m("DELETE").h(headers).b(body);
|
|
203
|
-
return b.build();
|
|
204
|
-
};
|
|
205
|
-
exports.se_DeleteListenerCommand = se_DeleteListenerCommand;
|
|
206
|
-
const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
207
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
208
|
-
const headers = {};
|
|
209
|
-
b.bp("/resourcepolicy/{resourceArn}");
|
|
210
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
211
|
-
let body;
|
|
212
|
-
b.m("DELETE").h(headers).b(body);
|
|
213
|
-
return b.build();
|
|
214
|
-
};
|
|
215
|
-
exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
|
|
216
|
-
const se_DeleteRuleCommand = async (input, context) => {
|
|
217
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
218
|
-
const headers = {};
|
|
219
|
-
b.bp("/services/{serviceIdentifier}/listeners/{listenerIdentifier}/rules/{ruleIdentifier}");
|
|
220
|
-
b.p("serviceIdentifier", () => input.serviceIdentifier, "{serviceIdentifier}", false);
|
|
221
|
-
b.p("listenerIdentifier", () => input.listenerIdentifier, "{listenerIdentifier}", false);
|
|
222
|
-
b.p("ruleIdentifier", () => input.ruleIdentifier, "{ruleIdentifier}", false);
|
|
223
|
-
let body;
|
|
224
|
-
b.m("DELETE").h(headers).b(body);
|
|
225
|
-
return b.build();
|
|
226
|
-
};
|
|
227
|
-
exports.se_DeleteRuleCommand = se_DeleteRuleCommand;
|
|
228
|
-
const se_DeleteServiceCommand = async (input, context) => {
|
|
229
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
230
|
-
const headers = {};
|
|
231
|
-
b.bp("/services/{serviceIdentifier}");
|
|
232
|
-
b.p("serviceIdentifier", () => input.serviceIdentifier, "{serviceIdentifier}", false);
|
|
233
|
-
let body;
|
|
234
|
-
b.m("DELETE").h(headers).b(body);
|
|
235
|
-
return b.build();
|
|
236
|
-
};
|
|
237
|
-
exports.se_DeleteServiceCommand = se_DeleteServiceCommand;
|
|
238
|
-
const se_DeleteServiceNetworkCommand = async (input, context) => {
|
|
239
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
240
|
-
const headers = {};
|
|
241
|
-
b.bp("/servicenetworks/{serviceNetworkIdentifier}");
|
|
242
|
-
b.p("serviceNetworkIdentifier", () => input.serviceNetworkIdentifier, "{serviceNetworkIdentifier}", false);
|
|
243
|
-
let body;
|
|
244
|
-
b.m("DELETE").h(headers).b(body);
|
|
245
|
-
return b.build();
|
|
246
|
-
};
|
|
247
|
-
exports.se_DeleteServiceNetworkCommand = se_DeleteServiceNetworkCommand;
|
|
248
|
-
const se_DeleteServiceNetworkServiceAssociationCommand = async (input, context) => {
|
|
249
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
250
|
-
const headers = {};
|
|
251
|
-
b.bp("/servicenetworkserviceassociations/{serviceNetworkServiceAssociationIdentifier}");
|
|
252
|
-
b.p("serviceNetworkServiceAssociationIdentifier", () => input.serviceNetworkServiceAssociationIdentifier, "{serviceNetworkServiceAssociationIdentifier}", false);
|
|
253
|
-
let body;
|
|
254
|
-
b.m("DELETE").h(headers).b(body);
|
|
255
|
-
return b.build();
|
|
256
|
-
};
|
|
257
|
-
exports.se_DeleteServiceNetworkServiceAssociationCommand = se_DeleteServiceNetworkServiceAssociationCommand;
|
|
258
|
-
const se_DeleteServiceNetworkVpcAssociationCommand = async (input, context) => {
|
|
259
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
260
|
-
const headers = {};
|
|
261
|
-
b.bp("/servicenetworkvpcassociations/{serviceNetworkVpcAssociationIdentifier}");
|
|
262
|
-
b.p("serviceNetworkVpcAssociationIdentifier", () => input.serviceNetworkVpcAssociationIdentifier, "{serviceNetworkVpcAssociationIdentifier}", false);
|
|
263
|
-
let body;
|
|
264
|
-
b.m("DELETE").h(headers).b(body);
|
|
265
|
-
return b.build();
|
|
266
|
-
};
|
|
267
|
-
exports.se_DeleteServiceNetworkVpcAssociationCommand = se_DeleteServiceNetworkVpcAssociationCommand;
|
|
268
|
-
const se_DeleteTargetGroupCommand = async (input, context) => {
|
|
269
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
270
|
-
const headers = {};
|
|
271
|
-
b.bp("/targetgroups/{targetGroupIdentifier}");
|
|
272
|
-
b.p("targetGroupIdentifier", () => input.targetGroupIdentifier, "{targetGroupIdentifier}", false);
|
|
273
|
-
let body;
|
|
274
|
-
b.m("DELETE").h(headers).b(body);
|
|
275
|
-
return b.build();
|
|
276
|
-
};
|
|
277
|
-
exports.se_DeleteTargetGroupCommand = se_DeleteTargetGroupCommand;
|
|
278
|
-
const se_DeregisterTargetsCommand = async (input, context) => {
|
|
279
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
280
|
-
const headers = {
|
|
281
|
-
"content-type": "application/json",
|
|
282
|
-
};
|
|
283
|
-
b.bp("/targetgroups/{targetGroupIdentifier}/deregistertargets");
|
|
284
|
-
b.p("targetGroupIdentifier", () => input.targetGroupIdentifier, "{targetGroupIdentifier}", false);
|
|
285
|
-
let body;
|
|
286
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
287
|
-
targets: (_) => (0, smithy_client_1._json)(_),
|
|
288
|
-
}));
|
|
289
|
-
b.m("POST").h(headers).b(body);
|
|
290
|
-
return b.build();
|
|
291
|
-
};
|
|
292
|
-
exports.se_DeregisterTargetsCommand = se_DeregisterTargetsCommand;
|
|
293
|
-
const se_GetAccessLogSubscriptionCommand = async (input, context) => {
|
|
294
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
295
|
-
const headers = {};
|
|
296
|
-
b.bp("/accesslogsubscriptions/{accessLogSubscriptionIdentifier}");
|
|
297
|
-
b.p("accessLogSubscriptionIdentifier", () => input.accessLogSubscriptionIdentifier, "{accessLogSubscriptionIdentifier}", false);
|
|
298
|
-
let body;
|
|
299
|
-
b.m("GET").h(headers).b(body);
|
|
300
|
-
return b.build();
|
|
301
|
-
};
|
|
302
|
-
exports.se_GetAccessLogSubscriptionCommand = se_GetAccessLogSubscriptionCommand;
|
|
303
|
-
const se_GetAuthPolicyCommand = async (input, context) => {
|
|
304
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
305
|
-
const headers = {};
|
|
306
|
-
b.bp("/authpolicy/{resourceIdentifier}");
|
|
307
|
-
b.p("resourceIdentifier", () => input.resourceIdentifier, "{resourceIdentifier}", false);
|
|
308
|
-
let body;
|
|
309
|
-
b.m("GET").h(headers).b(body);
|
|
310
|
-
return b.build();
|
|
311
|
-
};
|
|
312
|
-
exports.se_GetAuthPolicyCommand = se_GetAuthPolicyCommand;
|
|
313
|
-
const se_GetListenerCommand = async (input, context) => {
|
|
314
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
315
|
-
const headers = {};
|
|
316
|
-
b.bp("/services/{serviceIdentifier}/listeners/{listenerIdentifier}");
|
|
317
|
-
b.p("serviceIdentifier", () => input.serviceIdentifier, "{serviceIdentifier}", false);
|
|
318
|
-
b.p("listenerIdentifier", () => input.listenerIdentifier, "{listenerIdentifier}", false);
|
|
319
|
-
let body;
|
|
320
|
-
b.m("GET").h(headers).b(body);
|
|
321
|
-
return b.build();
|
|
322
|
-
};
|
|
323
|
-
exports.se_GetListenerCommand = se_GetListenerCommand;
|
|
324
|
-
const se_GetResourcePolicyCommand = async (input, context) => {
|
|
325
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
326
|
-
const headers = {};
|
|
327
|
-
b.bp("/resourcepolicy/{resourceArn}");
|
|
328
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
329
|
-
let body;
|
|
330
|
-
b.m("GET").h(headers).b(body);
|
|
331
|
-
return b.build();
|
|
332
|
-
};
|
|
333
|
-
exports.se_GetResourcePolicyCommand = se_GetResourcePolicyCommand;
|
|
334
|
-
const se_GetRuleCommand = async (input, context) => {
|
|
335
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
336
|
-
const headers = {};
|
|
337
|
-
b.bp("/services/{serviceIdentifier}/listeners/{listenerIdentifier}/rules/{ruleIdentifier}");
|
|
338
|
-
b.p("serviceIdentifier", () => input.serviceIdentifier, "{serviceIdentifier}", false);
|
|
339
|
-
b.p("listenerIdentifier", () => input.listenerIdentifier, "{listenerIdentifier}", false);
|
|
340
|
-
b.p("ruleIdentifier", () => input.ruleIdentifier, "{ruleIdentifier}", false);
|
|
341
|
-
let body;
|
|
342
|
-
b.m("GET").h(headers).b(body);
|
|
343
|
-
return b.build();
|
|
344
|
-
};
|
|
345
|
-
exports.se_GetRuleCommand = se_GetRuleCommand;
|
|
346
|
-
const se_GetServiceCommand = async (input, context) => {
|
|
347
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
348
|
-
const headers = {};
|
|
349
|
-
b.bp("/services/{serviceIdentifier}");
|
|
350
|
-
b.p("serviceIdentifier", () => input.serviceIdentifier, "{serviceIdentifier}", false);
|
|
351
|
-
let body;
|
|
352
|
-
b.m("GET").h(headers).b(body);
|
|
353
|
-
return b.build();
|
|
354
|
-
};
|
|
355
|
-
exports.se_GetServiceCommand = se_GetServiceCommand;
|
|
356
|
-
const se_GetServiceNetworkCommand = async (input, context) => {
|
|
357
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
358
|
-
const headers = {};
|
|
359
|
-
b.bp("/servicenetworks/{serviceNetworkIdentifier}");
|
|
360
|
-
b.p("serviceNetworkIdentifier", () => input.serviceNetworkIdentifier, "{serviceNetworkIdentifier}", false);
|
|
361
|
-
let body;
|
|
362
|
-
b.m("GET").h(headers).b(body);
|
|
363
|
-
return b.build();
|
|
364
|
-
};
|
|
365
|
-
exports.se_GetServiceNetworkCommand = se_GetServiceNetworkCommand;
|
|
366
|
-
const se_GetServiceNetworkServiceAssociationCommand = async (input, context) => {
|
|
367
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
368
|
-
const headers = {};
|
|
369
|
-
b.bp("/servicenetworkserviceassociations/{serviceNetworkServiceAssociationIdentifier}");
|
|
370
|
-
b.p("serviceNetworkServiceAssociationIdentifier", () => input.serviceNetworkServiceAssociationIdentifier, "{serviceNetworkServiceAssociationIdentifier}", false);
|
|
371
|
-
let body;
|
|
372
|
-
b.m("GET").h(headers).b(body);
|
|
373
|
-
return b.build();
|
|
374
|
-
};
|
|
375
|
-
exports.se_GetServiceNetworkServiceAssociationCommand = se_GetServiceNetworkServiceAssociationCommand;
|
|
376
|
-
const se_GetServiceNetworkVpcAssociationCommand = async (input, context) => {
|
|
377
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
378
|
-
const headers = {};
|
|
379
|
-
b.bp("/servicenetworkvpcassociations/{serviceNetworkVpcAssociationIdentifier}");
|
|
380
|
-
b.p("serviceNetworkVpcAssociationIdentifier", () => input.serviceNetworkVpcAssociationIdentifier, "{serviceNetworkVpcAssociationIdentifier}", false);
|
|
381
|
-
let body;
|
|
382
|
-
b.m("GET").h(headers).b(body);
|
|
383
|
-
return b.build();
|
|
384
|
-
};
|
|
385
|
-
exports.se_GetServiceNetworkVpcAssociationCommand = se_GetServiceNetworkVpcAssociationCommand;
|
|
386
|
-
const se_GetTargetGroupCommand = async (input, context) => {
|
|
387
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
388
|
-
const headers = {};
|
|
389
|
-
b.bp("/targetgroups/{targetGroupIdentifier}");
|
|
390
|
-
b.p("targetGroupIdentifier", () => input.targetGroupIdentifier, "{targetGroupIdentifier}", false);
|
|
391
|
-
let body;
|
|
392
|
-
b.m("GET").h(headers).b(body);
|
|
393
|
-
return b.build();
|
|
394
|
-
};
|
|
395
|
-
exports.se_GetTargetGroupCommand = se_GetTargetGroupCommand;
|
|
396
|
-
const se_ListAccessLogSubscriptionsCommand = async (input, context) => {
|
|
397
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
398
|
-
const headers = {};
|
|
399
|
-
b.bp("/accesslogsubscriptions");
|
|
400
|
-
const query = (0, smithy_client_1.map)({
|
|
401
|
-
[_rI]: [, (0, smithy_client_1.expectNonNull)(input[_rI], `resourceIdentifier`)],
|
|
402
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
403
|
-
[_nT]: [, input[_nT]],
|
|
404
|
-
});
|
|
405
|
-
let body;
|
|
406
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
407
|
-
return b.build();
|
|
408
|
-
};
|
|
409
|
-
exports.se_ListAccessLogSubscriptionsCommand = se_ListAccessLogSubscriptionsCommand;
|
|
410
|
-
const se_ListListenersCommand = async (input, context) => {
|
|
411
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
412
|
-
const headers = {};
|
|
413
|
-
b.bp("/services/{serviceIdentifier}/listeners");
|
|
414
|
-
b.p("serviceIdentifier", () => input.serviceIdentifier, "{serviceIdentifier}", false);
|
|
415
|
-
const query = (0, smithy_client_1.map)({
|
|
416
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
417
|
-
[_nT]: [, input[_nT]],
|
|
418
|
-
});
|
|
419
|
-
let body;
|
|
420
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
421
|
-
return b.build();
|
|
422
|
-
};
|
|
423
|
-
exports.se_ListListenersCommand = se_ListListenersCommand;
|
|
424
|
-
const se_ListRulesCommand = async (input, context) => {
|
|
425
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
426
|
-
const headers = {};
|
|
427
|
-
b.bp("/services/{serviceIdentifier}/listeners/{listenerIdentifier}/rules");
|
|
428
|
-
b.p("serviceIdentifier", () => input.serviceIdentifier, "{serviceIdentifier}", false);
|
|
429
|
-
b.p("listenerIdentifier", () => input.listenerIdentifier, "{listenerIdentifier}", false);
|
|
430
|
-
const query = (0, smithy_client_1.map)({
|
|
431
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
432
|
-
[_nT]: [, input[_nT]],
|
|
433
|
-
});
|
|
434
|
-
let body;
|
|
435
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
436
|
-
return b.build();
|
|
437
|
-
};
|
|
438
|
-
exports.se_ListRulesCommand = se_ListRulesCommand;
|
|
439
|
-
const se_ListServiceNetworksCommand = async (input, context) => {
|
|
440
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
441
|
-
const headers = {};
|
|
442
|
-
b.bp("/servicenetworks");
|
|
443
|
-
const query = (0, smithy_client_1.map)({
|
|
444
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
445
|
-
[_nT]: [, input[_nT]],
|
|
446
|
-
});
|
|
447
|
-
let body;
|
|
448
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
449
|
-
return b.build();
|
|
450
|
-
};
|
|
451
|
-
exports.se_ListServiceNetworksCommand = se_ListServiceNetworksCommand;
|
|
452
|
-
const se_ListServiceNetworkServiceAssociationsCommand = async (input, context) => {
|
|
453
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
454
|
-
const headers = {};
|
|
455
|
-
b.bp("/servicenetworkserviceassociations");
|
|
456
|
-
const query = (0, smithy_client_1.map)({
|
|
457
|
-
[_sNI]: [, input[_sNI]],
|
|
458
|
-
[_sI]: [, input[_sI]],
|
|
459
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
460
|
-
[_nT]: [, input[_nT]],
|
|
461
|
-
});
|
|
462
|
-
let body;
|
|
463
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
464
|
-
return b.build();
|
|
465
|
-
};
|
|
466
|
-
exports.se_ListServiceNetworkServiceAssociationsCommand = se_ListServiceNetworkServiceAssociationsCommand;
|
|
467
|
-
const se_ListServiceNetworkVpcAssociationsCommand = async (input, context) => {
|
|
468
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
469
|
-
const headers = {};
|
|
470
|
-
b.bp("/servicenetworkvpcassociations");
|
|
471
|
-
const query = (0, smithy_client_1.map)({
|
|
472
|
-
[_sNI]: [, input[_sNI]],
|
|
473
|
-
[_vI]: [, input[_vI]],
|
|
474
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
475
|
-
[_nT]: [, input[_nT]],
|
|
476
|
-
});
|
|
477
|
-
let body;
|
|
478
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
479
|
-
return b.build();
|
|
480
|
-
};
|
|
481
|
-
exports.se_ListServiceNetworkVpcAssociationsCommand = se_ListServiceNetworkVpcAssociationsCommand;
|
|
482
|
-
const se_ListServicesCommand = async (input, context) => {
|
|
483
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
484
|
-
const headers = {};
|
|
485
|
-
b.bp("/services");
|
|
486
|
-
const query = (0, smithy_client_1.map)({
|
|
487
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
488
|
-
[_nT]: [, input[_nT]],
|
|
489
|
-
});
|
|
490
|
-
let body;
|
|
491
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
492
|
-
return b.build();
|
|
493
|
-
};
|
|
494
|
-
exports.se_ListServicesCommand = se_ListServicesCommand;
|
|
495
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
496
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
497
|
-
const headers = {};
|
|
498
|
-
b.bp("/tags/{resourceArn}");
|
|
499
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
500
|
-
let body;
|
|
501
|
-
b.m("GET").h(headers).b(body);
|
|
502
|
-
return b.build();
|
|
503
|
-
};
|
|
504
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
505
|
-
const se_ListTargetGroupsCommand = async (input, context) => {
|
|
506
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
507
|
-
const headers = {};
|
|
508
|
-
b.bp("/targetgroups");
|
|
509
|
-
const query = (0, smithy_client_1.map)({
|
|
510
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
511
|
-
[_nT]: [, input[_nT]],
|
|
512
|
-
[_vI]: [, input[_vI]],
|
|
513
|
-
[_tGT]: [, input[_tGT]],
|
|
514
|
-
});
|
|
515
|
-
let body;
|
|
516
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
517
|
-
return b.build();
|
|
518
|
-
};
|
|
519
|
-
exports.se_ListTargetGroupsCommand = se_ListTargetGroupsCommand;
|
|
520
|
-
const se_ListTargetsCommand = async (input, context) => {
|
|
521
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
522
|
-
const headers = {
|
|
523
|
-
"content-type": "application/json",
|
|
524
|
-
};
|
|
525
|
-
b.bp("/targetgroups/{targetGroupIdentifier}/listtargets");
|
|
526
|
-
b.p("targetGroupIdentifier", () => input.targetGroupIdentifier, "{targetGroupIdentifier}", false);
|
|
527
|
-
const query = (0, smithy_client_1.map)({
|
|
528
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
529
|
-
[_nT]: [, input[_nT]],
|
|
530
|
-
});
|
|
531
|
-
let body;
|
|
532
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
533
|
-
targets: (_) => (0, smithy_client_1._json)(_),
|
|
534
|
-
}));
|
|
535
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
536
|
-
return b.build();
|
|
537
|
-
};
|
|
538
|
-
exports.se_ListTargetsCommand = se_ListTargetsCommand;
|
|
539
|
-
const se_PutAuthPolicyCommand = async (input, context) => {
|
|
540
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
541
|
-
const headers = {
|
|
542
|
-
"content-type": "application/json",
|
|
543
|
-
};
|
|
544
|
-
b.bp("/authpolicy/{resourceIdentifier}");
|
|
545
|
-
b.p("resourceIdentifier", () => input.resourceIdentifier, "{resourceIdentifier}", false);
|
|
546
|
-
let body;
|
|
547
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
548
|
-
policy: [],
|
|
549
|
-
}));
|
|
550
|
-
b.m("PUT").h(headers).b(body);
|
|
551
|
-
return b.build();
|
|
552
|
-
};
|
|
553
|
-
exports.se_PutAuthPolicyCommand = se_PutAuthPolicyCommand;
|
|
554
|
-
const se_PutResourcePolicyCommand = async (input, context) => {
|
|
555
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
556
|
-
const headers = {
|
|
557
|
-
"content-type": "application/json",
|
|
558
|
-
};
|
|
559
|
-
b.bp("/resourcepolicy/{resourceArn}");
|
|
560
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
561
|
-
let body;
|
|
562
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
563
|
-
policy: [],
|
|
564
|
-
}));
|
|
565
|
-
b.m("PUT").h(headers).b(body);
|
|
566
|
-
return b.build();
|
|
567
|
-
};
|
|
568
|
-
exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand;
|
|
569
|
-
const se_RegisterTargetsCommand = async (input, context) => {
|
|
570
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
571
|
-
const headers = {
|
|
572
|
-
"content-type": "application/json",
|
|
573
|
-
};
|
|
574
|
-
b.bp("/targetgroups/{targetGroupIdentifier}/registertargets");
|
|
575
|
-
b.p("targetGroupIdentifier", () => input.targetGroupIdentifier, "{targetGroupIdentifier}", false);
|
|
576
|
-
let body;
|
|
577
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
578
|
-
targets: (_) => (0, smithy_client_1._json)(_),
|
|
579
|
-
}));
|
|
580
|
-
b.m("POST").h(headers).b(body);
|
|
581
|
-
return b.build();
|
|
582
|
-
};
|
|
583
|
-
exports.se_RegisterTargetsCommand = se_RegisterTargetsCommand;
|
|
584
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
585
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
586
|
-
const headers = {
|
|
587
|
-
"content-type": "application/json",
|
|
588
|
-
};
|
|
589
|
-
b.bp("/tags/{resourceArn}");
|
|
590
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
591
|
-
let body;
|
|
592
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
593
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
594
|
-
}));
|
|
595
|
-
b.m("POST").h(headers).b(body);
|
|
596
|
-
return b.build();
|
|
597
|
-
};
|
|
598
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
599
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
600
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
601
|
-
const headers = {};
|
|
602
|
-
b.bp("/tags/{resourceArn}");
|
|
603
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
604
|
-
const query = (0, smithy_client_1.map)({
|
|
605
|
-
[_tK]: [
|
|
606
|
-
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
607
|
-
() => (input[_tK] || []).map((_entry) => _entry),
|
|
608
|
-
],
|
|
609
|
-
});
|
|
610
|
-
let body;
|
|
611
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
612
|
-
return b.build();
|
|
613
|
-
};
|
|
614
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
615
|
-
const se_UpdateAccessLogSubscriptionCommand = async (input, context) => {
|
|
616
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
617
|
-
const headers = {
|
|
618
|
-
"content-type": "application/json",
|
|
619
|
-
};
|
|
620
|
-
b.bp("/accesslogsubscriptions/{accessLogSubscriptionIdentifier}");
|
|
621
|
-
b.p("accessLogSubscriptionIdentifier", () => input.accessLogSubscriptionIdentifier, "{accessLogSubscriptionIdentifier}", false);
|
|
622
|
-
let body;
|
|
623
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
624
|
-
destinationArn: [],
|
|
625
|
-
}));
|
|
626
|
-
b.m("PATCH").h(headers).b(body);
|
|
627
|
-
return b.build();
|
|
628
|
-
};
|
|
629
|
-
exports.se_UpdateAccessLogSubscriptionCommand = se_UpdateAccessLogSubscriptionCommand;
|
|
630
|
-
const se_UpdateListenerCommand = async (input, context) => {
|
|
631
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
632
|
-
const headers = {
|
|
633
|
-
"content-type": "application/json",
|
|
634
|
-
};
|
|
635
|
-
b.bp("/services/{serviceIdentifier}/listeners/{listenerIdentifier}");
|
|
636
|
-
b.p("serviceIdentifier", () => input.serviceIdentifier, "{serviceIdentifier}", false);
|
|
637
|
-
b.p("listenerIdentifier", () => input.listenerIdentifier, "{listenerIdentifier}", false);
|
|
638
|
-
let body;
|
|
639
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
640
|
-
defaultAction: (_) => (0, smithy_client_1._json)(_),
|
|
641
|
-
}));
|
|
642
|
-
b.m("PATCH").h(headers).b(body);
|
|
643
|
-
return b.build();
|
|
644
|
-
};
|
|
645
|
-
exports.se_UpdateListenerCommand = se_UpdateListenerCommand;
|
|
646
|
-
const se_UpdateRuleCommand = async (input, context) => {
|
|
647
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
648
|
-
const headers = {
|
|
649
|
-
"content-type": "application/json",
|
|
650
|
-
};
|
|
651
|
-
b.bp("/services/{serviceIdentifier}/listeners/{listenerIdentifier}/rules/{ruleIdentifier}");
|
|
652
|
-
b.p("serviceIdentifier", () => input.serviceIdentifier, "{serviceIdentifier}", false);
|
|
653
|
-
b.p("listenerIdentifier", () => input.listenerIdentifier, "{listenerIdentifier}", false);
|
|
654
|
-
b.p("ruleIdentifier", () => input.ruleIdentifier, "{ruleIdentifier}", false);
|
|
655
|
-
let body;
|
|
656
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
657
|
-
action: (_) => (0, smithy_client_1._json)(_),
|
|
658
|
-
match: (_) => (0, smithy_client_1._json)(_),
|
|
659
|
-
priority: [],
|
|
660
|
-
}));
|
|
661
|
-
b.m("PATCH").h(headers).b(body);
|
|
662
|
-
return b.build();
|
|
663
|
-
};
|
|
664
|
-
exports.se_UpdateRuleCommand = se_UpdateRuleCommand;
|
|
665
|
-
const se_UpdateServiceCommand = async (input, context) => {
|
|
666
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
667
|
-
const headers = {
|
|
668
|
-
"content-type": "application/json",
|
|
669
|
-
};
|
|
670
|
-
b.bp("/services/{serviceIdentifier}");
|
|
671
|
-
b.p("serviceIdentifier", () => input.serviceIdentifier, "{serviceIdentifier}", false);
|
|
672
|
-
let body;
|
|
673
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
674
|
-
authType: [],
|
|
675
|
-
certificateArn: [],
|
|
676
|
-
}));
|
|
677
|
-
b.m("PATCH").h(headers).b(body);
|
|
678
|
-
return b.build();
|
|
679
|
-
};
|
|
680
|
-
exports.se_UpdateServiceCommand = se_UpdateServiceCommand;
|
|
681
|
-
const se_UpdateServiceNetworkCommand = async (input, context) => {
|
|
682
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
683
|
-
const headers = {
|
|
684
|
-
"content-type": "application/json",
|
|
685
|
-
};
|
|
686
|
-
b.bp("/servicenetworks/{serviceNetworkIdentifier}");
|
|
687
|
-
b.p("serviceNetworkIdentifier", () => input.serviceNetworkIdentifier, "{serviceNetworkIdentifier}", false);
|
|
688
|
-
let body;
|
|
689
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
690
|
-
authType: [],
|
|
691
|
-
}));
|
|
692
|
-
b.m("PATCH").h(headers).b(body);
|
|
693
|
-
return b.build();
|
|
694
|
-
};
|
|
695
|
-
exports.se_UpdateServiceNetworkCommand = se_UpdateServiceNetworkCommand;
|
|
696
|
-
const se_UpdateServiceNetworkVpcAssociationCommand = async (input, context) => {
|
|
697
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
698
|
-
const headers = {
|
|
699
|
-
"content-type": "application/json",
|
|
700
|
-
};
|
|
701
|
-
b.bp("/servicenetworkvpcassociations/{serviceNetworkVpcAssociationIdentifier}");
|
|
702
|
-
b.p("serviceNetworkVpcAssociationIdentifier", () => input.serviceNetworkVpcAssociationIdentifier, "{serviceNetworkVpcAssociationIdentifier}", false);
|
|
703
|
-
let body;
|
|
704
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
705
|
-
securityGroupIds: (_) => (0, smithy_client_1._json)(_),
|
|
706
|
-
}));
|
|
707
|
-
b.m("PATCH").h(headers).b(body);
|
|
708
|
-
return b.build();
|
|
709
|
-
};
|
|
710
|
-
exports.se_UpdateServiceNetworkVpcAssociationCommand = se_UpdateServiceNetworkVpcAssociationCommand;
|
|
711
|
-
const se_UpdateTargetGroupCommand = async (input, context) => {
|
|
712
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
713
|
-
const headers = {
|
|
714
|
-
"content-type": "application/json",
|
|
715
|
-
};
|
|
716
|
-
b.bp("/targetgroups/{targetGroupIdentifier}");
|
|
717
|
-
b.p("targetGroupIdentifier", () => input.targetGroupIdentifier, "{targetGroupIdentifier}", false);
|
|
718
|
-
let body;
|
|
719
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
720
|
-
healthCheck: (_) => (0, smithy_client_1._json)(_),
|
|
721
|
-
}));
|
|
722
|
-
b.m("PATCH").h(headers).b(body);
|
|
723
|
-
return b.build();
|
|
724
|
-
};
|
|
725
|
-
exports.se_UpdateTargetGroupCommand = se_UpdateTargetGroupCommand;
|
|
726
|
-
const de_BatchUpdateRuleCommand = async (output, context) => {
|
|
727
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
728
|
-
return de_BatchUpdateRuleCommandError(output, context);
|
|
729
|
-
}
|
|
730
|
-
const contents = (0, smithy_client_1.map)({
|
|
731
|
-
$metadata: deserializeMetadata(output),
|
|
732
|
-
});
|
|
733
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
734
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
735
|
-
successful: smithy_client_1._json,
|
|
736
|
-
unsuccessful: smithy_client_1._json,
|
|
737
|
-
});
|
|
738
|
-
Object.assign(contents, doc);
|
|
739
|
-
return contents;
|
|
740
|
-
};
|
|
741
|
-
exports.de_BatchUpdateRuleCommand = de_BatchUpdateRuleCommand;
|
|
742
|
-
const de_BatchUpdateRuleCommandError = async (output, context) => {
|
|
743
|
-
const parsedOutput = {
|
|
744
|
-
...output,
|
|
745
|
-
body: await parseErrorBody(output.body, context),
|
|
746
|
-
};
|
|
747
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
748
|
-
switch (errorCode) {
|
|
749
|
-
case "AccessDeniedException":
|
|
750
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
751
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
752
|
-
case "ConflictException":
|
|
753
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
754
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
755
|
-
case "InternalServerException":
|
|
756
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
757
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
758
|
-
case "ResourceNotFoundException":
|
|
759
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
760
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
761
|
-
case "ThrottlingException":
|
|
762
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
763
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
764
|
-
case "ValidationException":
|
|
765
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
766
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
767
|
-
default:
|
|
768
|
-
const parsedBody = parsedOutput.body;
|
|
769
|
-
return throwDefaultError({
|
|
770
|
-
output,
|
|
771
|
-
parsedBody,
|
|
772
|
-
errorCode,
|
|
773
|
-
});
|
|
774
|
-
}
|
|
775
|
-
};
|
|
776
|
-
const de_CreateAccessLogSubscriptionCommand = async (output, context) => {
|
|
777
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
778
|
-
return de_CreateAccessLogSubscriptionCommandError(output, context);
|
|
779
|
-
}
|
|
780
|
-
const contents = (0, smithy_client_1.map)({
|
|
781
|
-
$metadata: deserializeMetadata(output),
|
|
782
|
-
});
|
|
783
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
784
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
785
|
-
arn: smithy_client_1.expectString,
|
|
786
|
-
destinationArn: smithy_client_1.expectString,
|
|
787
|
-
id: smithy_client_1.expectString,
|
|
788
|
-
resourceArn: smithy_client_1.expectString,
|
|
789
|
-
resourceId: smithy_client_1.expectString,
|
|
790
|
-
});
|
|
791
|
-
Object.assign(contents, doc);
|
|
792
|
-
return contents;
|
|
793
|
-
};
|
|
794
|
-
exports.de_CreateAccessLogSubscriptionCommand = de_CreateAccessLogSubscriptionCommand;
|
|
795
|
-
const de_CreateAccessLogSubscriptionCommandError = async (output, context) => {
|
|
796
|
-
const parsedOutput = {
|
|
797
|
-
...output,
|
|
798
|
-
body: await parseErrorBody(output.body, context),
|
|
799
|
-
};
|
|
800
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
801
|
-
switch (errorCode) {
|
|
802
|
-
case "AccessDeniedException":
|
|
803
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
804
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
805
|
-
case "ConflictException":
|
|
806
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
807
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
808
|
-
case "InternalServerException":
|
|
809
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
810
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
811
|
-
case "ResourceNotFoundException":
|
|
812
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
813
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
814
|
-
case "ThrottlingException":
|
|
815
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
816
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
817
|
-
case "ValidationException":
|
|
818
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
819
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
820
|
-
default:
|
|
821
|
-
const parsedBody = parsedOutput.body;
|
|
822
|
-
return throwDefaultError({
|
|
823
|
-
output,
|
|
824
|
-
parsedBody,
|
|
825
|
-
errorCode,
|
|
826
|
-
});
|
|
827
|
-
}
|
|
828
|
-
};
|
|
829
|
-
const de_CreateListenerCommand = async (output, context) => {
|
|
830
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
831
|
-
return de_CreateListenerCommandError(output, context);
|
|
832
|
-
}
|
|
833
|
-
const contents = (0, smithy_client_1.map)({
|
|
834
|
-
$metadata: deserializeMetadata(output),
|
|
835
|
-
});
|
|
836
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
837
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
838
|
-
arn: smithy_client_1.expectString,
|
|
839
|
-
defaultAction: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
840
|
-
id: smithy_client_1.expectString,
|
|
841
|
-
name: smithy_client_1.expectString,
|
|
842
|
-
port: smithy_client_1.expectInt32,
|
|
843
|
-
protocol: smithy_client_1.expectString,
|
|
844
|
-
serviceArn: smithy_client_1.expectString,
|
|
845
|
-
serviceId: smithy_client_1.expectString,
|
|
846
|
-
});
|
|
847
|
-
Object.assign(contents, doc);
|
|
848
|
-
return contents;
|
|
849
|
-
};
|
|
850
|
-
exports.de_CreateListenerCommand = de_CreateListenerCommand;
|
|
851
|
-
const de_CreateListenerCommandError = async (output, context) => {
|
|
852
|
-
const parsedOutput = {
|
|
853
|
-
...output,
|
|
854
|
-
body: await parseErrorBody(output.body, context),
|
|
855
|
-
};
|
|
856
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
857
|
-
switch (errorCode) {
|
|
858
|
-
case "AccessDeniedException":
|
|
859
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
860
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
861
|
-
case "ConflictException":
|
|
862
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
863
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
864
|
-
case "InternalServerException":
|
|
865
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
866
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
867
|
-
case "ResourceNotFoundException":
|
|
868
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
869
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
870
|
-
case "ServiceQuotaExceededException":
|
|
871
|
-
case "com.amazonaws.vpclattice#ServiceQuotaExceededException":
|
|
872
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
873
|
-
case "ThrottlingException":
|
|
874
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
875
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
876
|
-
case "ValidationException":
|
|
877
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
878
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
879
|
-
default:
|
|
880
|
-
const parsedBody = parsedOutput.body;
|
|
881
|
-
return throwDefaultError({
|
|
882
|
-
output,
|
|
883
|
-
parsedBody,
|
|
884
|
-
errorCode,
|
|
885
|
-
});
|
|
886
|
-
}
|
|
887
|
-
};
|
|
888
|
-
const de_CreateRuleCommand = async (output, context) => {
|
|
889
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
890
|
-
return de_CreateRuleCommandError(output, context);
|
|
891
|
-
}
|
|
892
|
-
const contents = (0, smithy_client_1.map)({
|
|
893
|
-
$metadata: deserializeMetadata(output),
|
|
894
|
-
});
|
|
895
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
896
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
897
|
-
action: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
898
|
-
arn: smithy_client_1.expectString,
|
|
899
|
-
id: smithy_client_1.expectString,
|
|
900
|
-
match: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
901
|
-
name: smithy_client_1.expectString,
|
|
902
|
-
priority: smithy_client_1.expectInt32,
|
|
903
|
-
});
|
|
904
|
-
Object.assign(contents, doc);
|
|
905
|
-
return contents;
|
|
906
|
-
};
|
|
907
|
-
exports.de_CreateRuleCommand = de_CreateRuleCommand;
|
|
908
|
-
const de_CreateRuleCommandError = async (output, context) => {
|
|
909
|
-
const parsedOutput = {
|
|
910
|
-
...output,
|
|
911
|
-
body: await parseErrorBody(output.body, context),
|
|
912
|
-
};
|
|
913
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
914
|
-
switch (errorCode) {
|
|
915
|
-
case "AccessDeniedException":
|
|
916
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
917
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
918
|
-
case "ConflictException":
|
|
919
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
920
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
921
|
-
case "InternalServerException":
|
|
922
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
923
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
924
|
-
case "ResourceNotFoundException":
|
|
925
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
926
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
927
|
-
case "ServiceQuotaExceededException":
|
|
928
|
-
case "com.amazonaws.vpclattice#ServiceQuotaExceededException":
|
|
929
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
930
|
-
case "ThrottlingException":
|
|
931
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
932
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
933
|
-
case "ValidationException":
|
|
934
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
935
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
936
|
-
default:
|
|
937
|
-
const parsedBody = parsedOutput.body;
|
|
938
|
-
return throwDefaultError({
|
|
939
|
-
output,
|
|
940
|
-
parsedBody,
|
|
941
|
-
errorCode,
|
|
942
|
-
});
|
|
943
|
-
}
|
|
944
|
-
};
|
|
945
|
-
const de_CreateServiceCommand = async (output, context) => {
|
|
946
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
947
|
-
return de_CreateServiceCommandError(output, context);
|
|
948
|
-
}
|
|
949
|
-
const contents = (0, smithy_client_1.map)({
|
|
950
|
-
$metadata: deserializeMetadata(output),
|
|
951
|
-
});
|
|
952
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
953
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
954
|
-
arn: smithy_client_1.expectString,
|
|
955
|
-
authType: smithy_client_1.expectString,
|
|
956
|
-
certificateArn: smithy_client_1.expectString,
|
|
957
|
-
customDomainName: smithy_client_1.expectString,
|
|
958
|
-
dnsEntry: smithy_client_1._json,
|
|
959
|
-
id: smithy_client_1.expectString,
|
|
960
|
-
name: smithy_client_1.expectString,
|
|
961
|
-
status: smithy_client_1.expectString,
|
|
962
|
-
});
|
|
963
|
-
Object.assign(contents, doc);
|
|
964
|
-
return contents;
|
|
965
|
-
};
|
|
966
|
-
exports.de_CreateServiceCommand = de_CreateServiceCommand;
|
|
967
|
-
const de_CreateServiceCommandError = async (output, context) => {
|
|
968
|
-
const parsedOutput = {
|
|
969
|
-
...output,
|
|
970
|
-
body: await parseErrorBody(output.body, context),
|
|
971
|
-
};
|
|
972
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
973
|
-
switch (errorCode) {
|
|
974
|
-
case "AccessDeniedException":
|
|
975
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
976
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
977
|
-
case "ConflictException":
|
|
978
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
979
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
980
|
-
case "InternalServerException":
|
|
981
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
982
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
983
|
-
case "ResourceNotFoundException":
|
|
984
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
985
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
986
|
-
case "ServiceQuotaExceededException":
|
|
987
|
-
case "com.amazonaws.vpclattice#ServiceQuotaExceededException":
|
|
988
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
989
|
-
case "ThrottlingException":
|
|
990
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
991
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
992
|
-
case "ValidationException":
|
|
993
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
994
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
995
|
-
default:
|
|
996
|
-
const parsedBody = parsedOutput.body;
|
|
997
|
-
return throwDefaultError({
|
|
998
|
-
output,
|
|
999
|
-
parsedBody,
|
|
1000
|
-
errorCode,
|
|
1001
|
-
});
|
|
1002
|
-
}
|
|
1003
|
-
};
|
|
1004
|
-
const de_CreateServiceNetworkCommand = async (output, context) => {
|
|
1005
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1006
|
-
return de_CreateServiceNetworkCommandError(output, context);
|
|
1007
|
-
}
|
|
1008
|
-
const contents = (0, smithy_client_1.map)({
|
|
1009
|
-
$metadata: deserializeMetadata(output),
|
|
1010
|
-
});
|
|
1011
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1012
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1013
|
-
arn: smithy_client_1.expectString,
|
|
1014
|
-
authType: smithy_client_1.expectString,
|
|
1015
|
-
id: smithy_client_1.expectString,
|
|
1016
|
-
name: smithy_client_1.expectString,
|
|
1017
|
-
});
|
|
1018
|
-
Object.assign(contents, doc);
|
|
1019
|
-
return contents;
|
|
1020
|
-
};
|
|
1021
|
-
exports.de_CreateServiceNetworkCommand = de_CreateServiceNetworkCommand;
|
|
1022
|
-
const de_CreateServiceNetworkCommandError = async (output, context) => {
|
|
1023
|
-
const parsedOutput = {
|
|
1024
|
-
...output,
|
|
1025
|
-
body: await parseErrorBody(output.body, context),
|
|
1026
|
-
};
|
|
1027
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1028
|
-
switch (errorCode) {
|
|
1029
|
-
case "AccessDeniedException":
|
|
1030
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1031
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1032
|
-
case "ConflictException":
|
|
1033
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
1034
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1035
|
-
case "InternalServerException":
|
|
1036
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1037
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1038
|
-
case "ResourceNotFoundException":
|
|
1039
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1040
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1041
|
-
case "ServiceQuotaExceededException":
|
|
1042
|
-
case "com.amazonaws.vpclattice#ServiceQuotaExceededException":
|
|
1043
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1044
|
-
case "ThrottlingException":
|
|
1045
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1046
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1047
|
-
case "ValidationException":
|
|
1048
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1049
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1050
|
-
default:
|
|
1051
|
-
const parsedBody = parsedOutput.body;
|
|
1052
|
-
return throwDefaultError({
|
|
1053
|
-
output,
|
|
1054
|
-
parsedBody,
|
|
1055
|
-
errorCode,
|
|
1056
|
-
});
|
|
1057
|
-
}
|
|
1058
|
-
};
|
|
1059
|
-
const de_CreateServiceNetworkServiceAssociationCommand = async (output, context) => {
|
|
1060
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1061
|
-
return de_CreateServiceNetworkServiceAssociationCommandError(output, context);
|
|
1062
|
-
}
|
|
1063
|
-
const contents = (0, smithy_client_1.map)({
|
|
1064
|
-
$metadata: deserializeMetadata(output),
|
|
1065
|
-
});
|
|
1066
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1067
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1068
|
-
arn: smithy_client_1.expectString,
|
|
1069
|
-
createdBy: smithy_client_1.expectString,
|
|
1070
|
-
customDomainName: smithy_client_1.expectString,
|
|
1071
|
-
dnsEntry: smithy_client_1._json,
|
|
1072
|
-
id: smithy_client_1.expectString,
|
|
1073
|
-
status: smithy_client_1.expectString,
|
|
1074
|
-
});
|
|
1075
|
-
Object.assign(contents, doc);
|
|
1076
|
-
return contents;
|
|
1077
|
-
};
|
|
1078
|
-
exports.de_CreateServiceNetworkServiceAssociationCommand = de_CreateServiceNetworkServiceAssociationCommand;
|
|
1079
|
-
const de_CreateServiceNetworkServiceAssociationCommandError = async (output, context) => {
|
|
1080
|
-
const parsedOutput = {
|
|
1081
|
-
...output,
|
|
1082
|
-
body: await parseErrorBody(output.body, context),
|
|
1083
|
-
};
|
|
1084
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1085
|
-
switch (errorCode) {
|
|
1086
|
-
case "AccessDeniedException":
|
|
1087
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1088
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1089
|
-
case "ConflictException":
|
|
1090
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
1091
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1092
|
-
case "InternalServerException":
|
|
1093
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1094
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1095
|
-
case "ResourceNotFoundException":
|
|
1096
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1097
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1098
|
-
case "ServiceQuotaExceededException":
|
|
1099
|
-
case "com.amazonaws.vpclattice#ServiceQuotaExceededException":
|
|
1100
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1101
|
-
case "ThrottlingException":
|
|
1102
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1103
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1104
|
-
case "ValidationException":
|
|
1105
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1106
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1107
|
-
default:
|
|
1108
|
-
const parsedBody = parsedOutput.body;
|
|
1109
|
-
return throwDefaultError({
|
|
1110
|
-
output,
|
|
1111
|
-
parsedBody,
|
|
1112
|
-
errorCode,
|
|
1113
|
-
});
|
|
1114
|
-
}
|
|
1115
|
-
};
|
|
1116
|
-
const de_CreateServiceNetworkVpcAssociationCommand = async (output, context) => {
|
|
1117
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1118
|
-
return de_CreateServiceNetworkVpcAssociationCommandError(output, context);
|
|
1119
|
-
}
|
|
1120
|
-
const contents = (0, smithy_client_1.map)({
|
|
1121
|
-
$metadata: deserializeMetadata(output),
|
|
1122
|
-
});
|
|
1123
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1124
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1125
|
-
arn: smithy_client_1.expectString,
|
|
1126
|
-
createdBy: smithy_client_1.expectString,
|
|
1127
|
-
id: smithy_client_1.expectString,
|
|
1128
|
-
securityGroupIds: smithy_client_1._json,
|
|
1129
|
-
status: smithy_client_1.expectString,
|
|
1130
|
-
});
|
|
1131
|
-
Object.assign(contents, doc);
|
|
1132
|
-
return contents;
|
|
1133
|
-
};
|
|
1134
|
-
exports.de_CreateServiceNetworkVpcAssociationCommand = de_CreateServiceNetworkVpcAssociationCommand;
|
|
1135
|
-
const de_CreateServiceNetworkVpcAssociationCommandError = async (output, context) => {
|
|
1136
|
-
const parsedOutput = {
|
|
1137
|
-
...output,
|
|
1138
|
-
body: await parseErrorBody(output.body, context),
|
|
1139
|
-
};
|
|
1140
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1141
|
-
switch (errorCode) {
|
|
1142
|
-
case "AccessDeniedException":
|
|
1143
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1144
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1145
|
-
case "ConflictException":
|
|
1146
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
1147
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1148
|
-
case "InternalServerException":
|
|
1149
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1150
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1151
|
-
case "ResourceNotFoundException":
|
|
1152
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1153
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1154
|
-
case "ServiceQuotaExceededException":
|
|
1155
|
-
case "com.amazonaws.vpclattice#ServiceQuotaExceededException":
|
|
1156
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1157
|
-
case "ThrottlingException":
|
|
1158
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1159
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1160
|
-
case "ValidationException":
|
|
1161
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1162
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1163
|
-
default:
|
|
1164
|
-
const parsedBody = parsedOutput.body;
|
|
1165
|
-
return throwDefaultError({
|
|
1166
|
-
output,
|
|
1167
|
-
parsedBody,
|
|
1168
|
-
errorCode,
|
|
1169
|
-
});
|
|
1170
|
-
}
|
|
1171
|
-
};
|
|
1172
|
-
const de_CreateTargetGroupCommand = async (output, context) => {
|
|
1173
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1174
|
-
return de_CreateTargetGroupCommandError(output, context);
|
|
1175
|
-
}
|
|
1176
|
-
const contents = (0, smithy_client_1.map)({
|
|
1177
|
-
$metadata: deserializeMetadata(output),
|
|
1178
|
-
});
|
|
1179
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1180
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1181
|
-
arn: smithy_client_1.expectString,
|
|
1182
|
-
config: smithy_client_1._json,
|
|
1183
|
-
id: smithy_client_1.expectString,
|
|
1184
|
-
name: smithy_client_1.expectString,
|
|
1185
|
-
status: smithy_client_1.expectString,
|
|
1186
|
-
type: smithy_client_1.expectString,
|
|
1187
|
-
});
|
|
1188
|
-
Object.assign(contents, doc);
|
|
1189
|
-
return contents;
|
|
1190
|
-
};
|
|
1191
|
-
exports.de_CreateTargetGroupCommand = de_CreateTargetGroupCommand;
|
|
1192
|
-
const de_CreateTargetGroupCommandError = async (output, context) => {
|
|
1193
|
-
const parsedOutput = {
|
|
1194
|
-
...output,
|
|
1195
|
-
body: await parseErrorBody(output.body, context),
|
|
1196
|
-
};
|
|
1197
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1198
|
-
switch (errorCode) {
|
|
1199
|
-
case "AccessDeniedException":
|
|
1200
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1201
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1202
|
-
case "ConflictException":
|
|
1203
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
1204
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1205
|
-
case "InternalServerException":
|
|
1206
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1207
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1208
|
-
case "ResourceNotFoundException":
|
|
1209
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1210
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1211
|
-
case "ServiceQuotaExceededException":
|
|
1212
|
-
case "com.amazonaws.vpclattice#ServiceQuotaExceededException":
|
|
1213
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1214
|
-
case "ThrottlingException":
|
|
1215
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1216
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1217
|
-
case "ValidationException":
|
|
1218
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1219
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1220
|
-
default:
|
|
1221
|
-
const parsedBody = parsedOutput.body;
|
|
1222
|
-
return throwDefaultError({
|
|
1223
|
-
output,
|
|
1224
|
-
parsedBody,
|
|
1225
|
-
errorCode,
|
|
1226
|
-
});
|
|
1227
|
-
}
|
|
1228
|
-
};
|
|
1229
|
-
const de_DeleteAccessLogSubscriptionCommand = async (output, context) => {
|
|
1230
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1231
|
-
return de_DeleteAccessLogSubscriptionCommandError(output, context);
|
|
1232
|
-
}
|
|
1233
|
-
const contents = (0, smithy_client_1.map)({
|
|
1234
|
-
$metadata: deserializeMetadata(output),
|
|
1235
|
-
});
|
|
1236
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1237
|
-
return contents;
|
|
1238
|
-
};
|
|
1239
|
-
exports.de_DeleteAccessLogSubscriptionCommand = de_DeleteAccessLogSubscriptionCommand;
|
|
1240
|
-
const de_DeleteAccessLogSubscriptionCommandError = async (output, context) => {
|
|
1241
|
-
const parsedOutput = {
|
|
1242
|
-
...output,
|
|
1243
|
-
body: await parseErrorBody(output.body, context),
|
|
1244
|
-
};
|
|
1245
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1246
|
-
switch (errorCode) {
|
|
1247
|
-
case "AccessDeniedException":
|
|
1248
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1249
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1250
|
-
case "InternalServerException":
|
|
1251
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1252
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1253
|
-
case "ResourceNotFoundException":
|
|
1254
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1255
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1256
|
-
case "ThrottlingException":
|
|
1257
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1258
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1259
|
-
case "ValidationException":
|
|
1260
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1261
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1262
|
-
default:
|
|
1263
|
-
const parsedBody = parsedOutput.body;
|
|
1264
|
-
return throwDefaultError({
|
|
1265
|
-
output,
|
|
1266
|
-
parsedBody,
|
|
1267
|
-
errorCode,
|
|
1268
|
-
});
|
|
1269
|
-
}
|
|
1270
|
-
};
|
|
1271
|
-
const de_DeleteAuthPolicyCommand = async (output, context) => {
|
|
1272
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1273
|
-
return de_DeleteAuthPolicyCommandError(output, context);
|
|
1274
|
-
}
|
|
1275
|
-
const contents = (0, smithy_client_1.map)({
|
|
1276
|
-
$metadata: deserializeMetadata(output),
|
|
1277
|
-
});
|
|
1278
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1279
|
-
return contents;
|
|
1280
|
-
};
|
|
1281
|
-
exports.de_DeleteAuthPolicyCommand = de_DeleteAuthPolicyCommand;
|
|
1282
|
-
const de_DeleteAuthPolicyCommandError = async (output, context) => {
|
|
1283
|
-
const parsedOutput = {
|
|
1284
|
-
...output,
|
|
1285
|
-
body: await parseErrorBody(output.body, context),
|
|
1286
|
-
};
|
|
1287
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1288
|
-
switch (errorCode) {
|
|
1289
|
-
case "AccessDeniedException":
|
|
1290
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1291
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1292
|
-
case "InternalServerException":
|
|
1293
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1294
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1295
|
-
case "ResourceNotFoundException":
|
|
1296
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1297
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1298
|
-
case "ThrottlingException":
|
|
1299
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1300
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1301
|
-
case "ValidationException":
|
|
1302
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1303
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1304
|
-
default:
|
|
1305
|
-
const parsedBody = parsedOutput.body;
|
|
1306
|
-
return throwDefaultError({
|
|
1307
|
-
output,
|
|
1308
|
-
parsedBody,
|
|
1309
|
-
errorCode,
|
|
1310
|
-
});
|
|
1311
|
-
}
|
|
1312
|
-
};
|
|
1313
|
-
const de_DeleteListenerCommand = async (output, context) => {
|
|
1314
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1315
|
-
return de_DeleteListenerCommandError(output, context);
|
|
1316
|
-
}
|
|
1317
|
-
const contents = (0, smithy_client_1.map)({
|
|
1318
|
-
$metadata: deserializeMetadata(output),
|
|
1319
|
-
});
|
|
1320
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1321
|
-
return contents;
|
|
1322
|
-
};
|
|
1323
|
-
exports.de_DeleteListenerCommand = de_DeleteListenerCommand;
|
|
1324
|
-
const de_DeleteListenerCommandError = async (output, context) => {
|
|
1325
|
-
const parsedOutput = {
|
|
1326
|
-
...output,
|
|
1327
|
-
body: await parseErrorBody(output.body, context),
|
|
1328
|
-
};
|
|
1329
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1330
|
-
switch (errorCode) {
|
|
1331
|
-
case "AccessDeniedException":
|
|
1332
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1333
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1334
|
-
case "ConflictException":
|
|
1335
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
1336
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1337
|
-
case "InternalServerException":
|
|
1338
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1339
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1340
|
-
case "ResourceNotFoundException":
|
|
1341
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1342
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1343
|
-
case "ThrottlingException":
|
|
1344
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1345
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1346
|
-
case "ValidationException":
|
|
1347
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1348
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1349
|
-
default:
|
|
1350
|
-
const parsedBody = parsedOutput.body;
|
|
1351
|
-
return throwDefaultError({
|
|
1352
|
-
output,
|
|
1353
|
-
parsedBody,
|
|
1354
|
-
errorCode,
|
|
1355
|
-
});
|
|
1356
|
-
}
|
|
1357
|
-
};
|
|
1358
|
-
const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
1359
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1360
|
-
return de_DeleteResourcePolicyCommandError(output, context);
|
|
1361
|
-
}
|
|
1362
|
-
const contents = (0, smithy_client_1.map)({
|
|
1363
|
-
$metadata: deserializeMetadata(output),
|
|
1364
|
-
});
|
|
1365
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1366
|
-
return contents;
|
|
1367
|
-
};
|
|
1368
|
-
exports.de_DeleteResourcePolicyCommand = de_DeleteResourcePolicyCommand;
|
|
1369
|
-
const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
1370
|
-
const parsedOutput = {
|
|
1371
|
-
...output,
|
|
1372
|
-
body: await parseErrorBody(output.body, context),
|
|
1373
|
-
};
|
|
1374
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1375
|
-
switch (errorCode) {
|
|
1376
|
-
case "AccessDeniedException":
|
|
1377
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1378
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1379
|
-
case "InternalServerException":
|
|
1380
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1381
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1382
|
-
case "ResourceNotFoundException":
|
|
1383
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1384
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1385
|
-
case "ThrottlingException":
|
|
1386
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1387
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1388
|
-
case "ValidationException":
|
|
1389
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1390
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1391
|
-
default:
|
|
1392
|
-
const parsedBody = parsedOutput.body;
|
|
1393
|
-
return throwDefaultError({
|
|
1394
|
-
output,
|
|
1395
|
-
parsedBody,
|
|
1396
|
-
errorCode,
|
|
1397
|
-
});
|
|
1398
|
-
}
|
|
1399
|
-
};
|
|
1400
|
-
const de_DeleteRuleCommand = async (output, context) => {
|
|
1401
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1402
|
-
return de_DeleteRuleCommandError(output, context);
|
|
1403
|
-
}
|
|
1404
|
-
const contents = (0, smithy_client_1.map)({
|
|
1405
|
-
$metadata: deserializeMetadata(output),
|
|
1406
|
-
});
|
|
1407
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1408
|
-
return contents;
|
|
1409
|
-
};
|
|
1410
|
-
exports.de_DeleteRuleCommand = de_DeleteRuleCommand;
|
|
1411
|
-
const de_DeleteRuleCommandError = async (output, context) => {
|
|
1412
|
-
const parsedOutput = {
|
|
1413
|
-
...output,
|
|
1414
|
-
body: await parseErrorBody(output.body, context),
|
|
1415
|
-
};
|
|
1416
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1417
|
-
switch (errorCode) {
|
|
1418
|
-
case "AccessDeniedException":
|
|
1419
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1420
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1421
|
-
case "ConflictException":
|
|
1422
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
1423
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1424
|
-
case "InternalServerException":
|
|
1425
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1426
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1427
|
-
case "ResourceNotFoundException":
|
|
1428
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1429
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1430
|
-
case "ThrottlingException":
|
|
1431
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1432
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1433
|
-
case "ValidationException":
|
|
1434
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1435
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1436
|
-
default:
|
|
1437
|
-
const parsedBody = parsedOutput.body;
|
|
1438
|
-
return throwDefaultError({
|
|
1439
|
-
output,
|
|
1440
|
-
parsedBody,
|
|
1441
|
-
errorCode,
|
|
1442
|
-
});
|
|
1443
|
-
}
|
|
1444
|
-
};
|
|
1445
|
-
const de_DeleteServiceCommand = async (output, context) => {
|
|
1446
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1447
|
-
return de_DeleteServiceCommandError(output, context);
|
|
1448
|
-
}
|
|
1449
|
-
const contents = (0, smithy_client_1.map)({
|
|
1450
|
-
$metadata: deserializeMetadata(output),
|
|
1451
|
-
});
|
|
1452
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1453
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1454
|
-
arn: smithy_client_1.expectString,
|
|
1455
|
-
id: smithy_client_1.expectString,
|
|
1456
|
-
name: smithy_client_1.expectString,
|
|
1457
|
-
status: smithy_client_1.expectString,
|
|
1458
|
-
});
|
|
1459
|
-
Object.assign(contents, doc);
|
|
1460
|
-
return contents;
|
|
1461
|
-
};
|
|
1462
|
-
exports.de_DeleteServiceCommand = de_DeleteServiceCommand;
|
|
1463
|
-
const de_DeleteServiceCommandError = async (output, context) => {
|
|
1464
|
-
const parsedOutput = {
|
|
1465
|
-
...output,
|
|
1466
|
-
body: await parseErrorBody(output.body, context),
|
|
1467
|
-
};
|
|
1468
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1469
|
-
switch (errorCode) {
|
|
1470
|
-
case "AccessDeniedException":
|
|
1471
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1472
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1473
|
-
case "ConflictException":
|
|
1474
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
1475
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1476
|
-
case "InternalServerException":
|
|
1477
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1478
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1479
|
-
case "ResourceNotFoundException":
|
|
1480
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1481
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1482
|
-
case "ThrottlingException":
|
|
1483
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1484
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1485
|
-
case "ValidationException":
|
|
1486
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1487
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1488
|
-
default:
|
|
1489
|
-
const parsedBody = parsedOutput.body;
|
|
1490
|
-
return throwDefaultError({
|
|
1491
|
-
output,
|
|
1492
|
-
parsedBody,
|
|
1493
|
-
errorCode,
|
|
1494
|
-
});
|
|
1495
|
-
}
|
|
1496
|
-
};
|
|
1497
|
-
const de_DeleteServiceNetworkCommand = async (output, context) => {
|
|
1498
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1499
|
-
return de_DeleteServiceNetworkCommandError(output, context);
|
|
1500
|
-
}
|
|
1501
|
-
const contents = (0, smithy_client_1.map)({
|
|
1502
|
-
$metadata: deserializeMetadata(output),
|
|
1503
|
-
});
|
|
1504
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1505
|
-
return contents;
|
|
1506
|
-
};
|
|
1507
|
-
exports.de_DeleteServiceNetworkCommand = de_DeleteServiceNetworkCommand;
|
|
1508
|
-
const de_DeleteServiceNetworkCommandError = async (output, context) => {
|
|
1509
|
-
const parsedOutput = {
|
|
1510
|
-
...output,
|
|
1511
|
-
body: await parseErrorBody(output.body, context),
|
|
1512
|
-
};
|
|
1513
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1514
|
-
switch (errorCode) {
|
|
1515
|
-
case "AccessDeniedException":
|
|
1516
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1517
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1518
|
-
case "ConflictException":
|
|
1519
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
1520
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1521
|
-
case "InternalServerException":
|
|
1522
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1523
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1524
|
-
case "ResourceNotFoundException":
|
|
1525
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1526
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1527
|
-
case "ThrottlingException":
|
|
1528
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1529
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1530
|
-
case "ValidationException":
|
|
1531
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1532
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1533
|
-
default:
|
|
1534
|
-
const parsedBody = parsedOutput.body;
|
|
1535
|
-
return throwDefaultError({
|
|
1536
|
-
output,
|
|
1537
|
-
parsedBody,
|
|
1538
|
-
errorCode,
|
|
1539
|
-
});
|
|
1540
|
-
}
|
|
1541
|
-
};
|
|
1542
|
-
const de_DeleteServiceNetworkServiceAssociationCommand = async (output, context) => {
|
|
1543
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1544
|
-
return de_DeleteServiceNetworkServiceAssociationCommandError(output, context);
|
|
1545
|
-
}
|
|
1546
|
-
const contents = (0, smithy_client_1.map)({
|
|
1547
|
-
$metadata: deserializeMetadata(output),
|
|
1548
|
-
});
|
|
1549
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1550
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1551
|
-
arn: smithy_client_1.expectString,
|
|
1552
|
-
id: smithy_client_1.expectString,
|
|
1553
|
-
status: smithy_client_1.expectString,
|
|
1554
|
-
});
|
|
1555
|
-
Object.assign(contents, doc);
|
|
1556
|
-
return contents;
|
|
1557
|
-
};
|
|
1558
|
-
exports.de_DeleteServiceNetworkServiceAssociationCommand = de_DeleteServiceNetworkServiceAssociationCommand;
|
|
1559
|
-
const de_DeleteServiceNetworkServiceAssociationCommandError = async (output, context) => {
|
|
1560
|
-
const parsedOutput = {
|
|
1561
|
-
...output,
|
|
1562
|
-
body: await parseErrorBody(output.body, context),
|
|
1563
|
-
};
|
|
1564
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1565
|
-
switch (errorCode) {
|
|
1566
|
-
case "AccessDeniedException":
|
|
1567
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1568
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1569
|
-
case "ConflictException":
|
|
1570
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
1571
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1572
|
-
case "InternalServerException":
|
|
1573
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1574
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1575
|
-
case "ResourceNotFoundException":
|
|
1576
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1577
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1578
|
-
case "ThrottlingException":
|
|
1579
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1580
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1581
|
-
case "ValidationException":
|
|
1582
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1583
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1584
|
-
default:
|
|
1585
|
-
const parsedBody = parsedOutput.body;
|
|
1586
|
-
return throwDefaultError({
|
|
1587
|
-
output,
|
|
1588
|
-
parsedBody,
|
|
1589
|
-
errorCode,
|
|
1590
|
-
});
|
|
1591
|
-
}
|
|
1592
|
-
};
|
|
1593
|
-
const de_DeleteServiceNetworkVpcAssociationCommand = async (output, context) => {
|
|
1594
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1595
|
-
return de_DeleteServiceNetworkVpcAssociationCommandError(output, context);
|
|
1596
|
-
}
|
|
1597
|
-
const contents = (0, smithy_client_1.map)({
|
|
1598
|
-
$metadata: deserializeMetadata(output),
|
|
1599
|
-
});
|
|
1600
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1601
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1602
|
-
arn: smithy_client_1.expectString,
|
|
1603
|
-
id: smithy_client_1.expectString,
|
|
1604
|
-
status: smithy_client_1.expectString,
|
|
1605
|
-
});
|
|
1606
|
-
Object.assign(contents, doc);
|
|
1607
|
-
return contents;
|
|
1608
|
-
};
|
|
1609
|
-
exports.de_DeleteServiceNetworkVpcAssociationCommand = de_DeleteServiceNetworkVpcAssociationCommand;
|
|
1610
|
-
const de_DeleteServiceNetworkVpcAssociationCommandError = async (output, context) => {
|
|
1611
|
-
const parsedOutput = {
|
|
1612
|
-
...output,
|
|
1613
|
-
body: await parseErrorBody(output.body, context),
|
|
1614
|
-
};
|
|
1615
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1616
|
-
switch (errorCode) {
|
|
1617
|
-
case "AccessDeniedException":
|
|
1618
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1619
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1620
|
-
case "ConflictException":
|
|
1621
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
1622
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1623
|
-
case "InternalServerException":
|
|
1624
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1625
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1626
|
-
case "ResourceNotFoundException":
|
|
1627
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1628
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1629
|
-
case "ThrottlingException":
|
|
1630
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1631
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1632
|
-
case "ValidationException":
|
|
1633
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1634
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1635
|
-
default:
|
|
1636
|
-
const parsedBody = parsedOutput.body;
|
|
1637
|
-
return throwDefaultError({
|
|
1638
|
-
output,
|
|
1639
|
-
parsedBody,
|
|
1640
|
-
errorCode,
|
|
1641
|
-
});
|
|
1642
|
-
}
|
|
1643
|
-
};
|
|
1644
|
-
const de_DeleteTargetGroupCommand = async (output, context) => {
|
|
1645
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1646
|
-
return de_DeleteTargetGroupCommandError(output, context);
|
|
1647
|
-
}
|
|
1648
|
-
const contents = (0, smithy_client_1.map)({
|
|
1649
|
-
$metadata: deserializeMetadata(output),
|
|
1650
|
-
});
|
|
1651
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1652
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1653
|
-
arn: smithy_client_1.expectString,
|
|
1654
|
-
id: smithy_client_1.expectString,
|
|
1655
|
-
status: smithy_client_1.expectString,
|
|
1656
|
-
});
|
|
1657
|
-
Object.assign(contents, doc);
|
|
1658
|
-
return contents;
|
|
1659
|
-
};
|
|
1660
|
-
exports.de_DeleteTargetGroupCommand = de_DeleteTargetGroupCommand;
|
|
1661
|
-
const de_DeleteTargetGroupCommandError = async (output, context) => {
|
|
1662
|
-
const parsedOutput = {
|
|
1663
|
-
...output,
|
|
1664
|
-
body: await parseErrorBody(output.body, context),
|
|
1665
|
-
};
|
|
1666
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1667
|
-
switch (errorCode) {
|
|
1668
|
-
case "ConflictException":
|
|
1669
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
1670
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1671
|
-
case "InternalServerException":
|
|
1672
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1673
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1674
|
-
case "ResourceNotFoundException":
|
|
1675
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1676
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1677
|
-
case "ThrottlingException":
|
|
1678
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1679
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1680
|
-
case "ValidationException":
|
|
1681
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1682
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1683
|
-
default:
|
|
1684
|
-
const parsedBody = parsedOutput.body;
|
|
1685
|
-
return throwDefaultError({
|
|
1686
|
-
output,
|
|
1687
|
-
parsedBody,
|
|
1688
|
-
errorCode,
|
|
1689
|
-
});
|
|
1690
|
-
}
|
|
1691
|
-
};
|
|
1692
|
-
const de_DeregisterTargetsCommand = async (output, context) => {
|
|
1693
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1694
|
-
return de_DeregisterTargetsCommandError(output, context);
|
|
1695
|
-
}
|
|
1696
|
-
const contents = (0, smithy_client_1.map)({
|
|
1697
|
-
$metadata: deserializeMetadata(output),
|
|
1698
|
-
});
|
|
1699
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1700
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1701
|
-
successful: smithy_client_1._json,
|
|
1702
|
-
unsuccessful: smithy_client_1._json,
|
|
1703
|
-
});
|
|
1704
|
-
Object.assign(contents, doc);
|
|
1705
|
-
return contents;
|
|
1706
|
-
};
|
|
1707
|
-
exports.de_DeregisterTargetsCommand = de_DeregisterTargetsCommand;
|
|
1708
|
-
const de_DeregisterTargetsCommandError = async (output, context) => {
|
|
1709
|
-
const parsedOutput = {
|
|
1710
|
-
...output,
|
|
1711
|
-
body: await parseErrorBody(output.body, context),
|
|
1712
|
-
};
|
|
1713
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1714
|
-
switch (errorCode) {
|
|
1715
|
-
case "AccessDeniedException":
|
|
1716
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1717
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1718
|
-
case "ConflictException":
|
|
1719
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
1720
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1721
|
-
case "InternalServerException":
|
|
1722
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1723
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1724
|
-
case "ResourceNotFoundException":
|
|
1725
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1726
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1727
|
-
case "ThrottlingException":
|
|
1728
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1729
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1730
|
-
case "ValidationException":
|
|
1731
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1732
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1733
|
-
default:
|
|
1734
|
-
const parsedBody = parsedOutput.body;
|
|
1735
|
-
return throwDefaultError({
|
|
1736
|
-
output,
|
|
1737
|
-
parsedBody,
|
|
1738
|
-
errorCode,
|
|
1739
|
-
});
|
|
1740
|
-
}
|
|
1741
|
-
};
|
|
1742
|
-
const de_GetAccessLogSubscriptionCommand = async (output, context) => {
|
|
1743
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1744
|
-
return de_GetAccessLogSubscriptionCommandError(output, context);
|
|
1745
|
-
}
|
|
1746
|
-
const contents = (0, smithy_client_1.map)({
|
|
1747
|
-
$metadata: deserializeMetadata(output),
|
|
1748
|
-
});
|
|
1749
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1750
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1751
|
-
arn: smithy_client_1.expectString,
|
|
1752
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1753
|
-
destinationArn: smithy_client_1.expectString,
|
|
1754
|
-
id: smithy_client_1.expectString,
|
|
1755
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1756
|
-
resourceArn: smithy_client_1.expectString,
|
|
1757
|
-
resourceId: smithy_client_1.expectString,
|
|
1758
|
-
});
|
|
1759
|
-
Object.assign(contents, doc);
|
|
1760
|
-
return contents;
|
|
1761
|
-
};
|
|
1762
|
-
exports.de_GetAccessLogSubscriptionCommand = de_GetAccessLogSubscriptionCommand;
|
|
1763
|
-
const de_GetAccessLogSubscriptionCommandError = async (output, context) => {
|
|
1764
|
-
const parsedOutput = {
|
|
1765
|
-
...output,
|
|
1766
|
-
body: await parseErrorBody(output.body, context),
|
|
1767
|
-
};
|
|
1768
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1769
|
-
switch (errorCode) {
|
|
1770
|
-
case "AccessDeniedException":
|
|
1771
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1772
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1773
|
-
case "InternalServerException":
|
|
1774
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1775
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1776
|
-
case "ResourceNotFoundException":
|
|
1777
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1778
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1779
|
-
case "ThrottlingException":
|
|
1780
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1781
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1782
|
-
case "ValidationException":
|
|
1783
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1784
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1785
|
-
default:
|
|
1786
|
-
const parsedBody = parsedOutput.body;
|
|
1787
|
-
return throwDefaultError({
|
|
1788
|
-
output,
|
|
1789
|
-
parsedBody,
|
|
1790
|
-
errorCode,
|
|
1791
|
-
});
|
|
1792
|
-
}
|
|
1793
|
-
};
|
|
1794
|
-
const de_GetAuthPolicyCommand = async (output, context) => {
|
|
1795
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1796
|
-
return de_GetAuthPolicyCommandError(output, context);
|
|
1797
|
-
}
|
|
1798
|
-
const contents = (0, smithy_client_1.map)({
|
|
1799
|
-
$metadata: deserializeMetadata(output),
|
|
1800
|
-
});
|
|
1801
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1802
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1803
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1804
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1805
|
-
policy: smithy_client_1.expectString,
|
|
1806
|
-
state: smithy_client_1.expectString,
|
|
1807
|
-
});
|
|
1808
|
-
Object.assign(contents, doc);
|
|
1809
|
-
return contents;
|
|
1810
|
-
};
|
|
1811
|
-
exports.de_GetAuthPolicyCommand = de_GetAuthPolicyCommand;
|
|
1812
|
-
const de_GetAuthPolicyCommandError = async (output, context) => {
|
|
1813
|
-
const parsedOutput = {
|
|
1814
|
-
...output,
|
|
1815
|
-
body: await parseErrorBody(output.body, context),
|
|
1816
|
-
};
|
|
1817
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1818
|
-
switch (errorCode) {
|
|
1819
|
-
case "AccessDeniedException":
|
|
1820
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1821
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1822
|
-
case "InternalServerException":
|
|
1823
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1824
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1825
|
-
case "ResourceNotFoundException":
|
|
1826
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1827
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1828
|
-
case "ThrottlingException":
|
|
1829
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1830
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1831
|
-
case "ValidationException":
|
|
1832
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1833
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1834
|
-
default:
|
|
1835
|
-
const parsedBody = parsedOutput.body;
|
|
1836
|
-
return throwDefaultError({
|
|
1837
|
-
output,
|
|
1838
|
-
parsedBody,
|
|
1839
|
-
errorCode,
|
|
1840
|
-
});
|
|
1841
|
-
}
|
|
1842
|
-
};
|
|
1843
|
-
const de_GetListenerCommand = async (output, context) => {
|
|
1844
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1845
|
-
return de_GetListenerCommandError(output, context);
|
|
1846
|
-
}
|
|
1847
|
-
const contents = (0, smithy_client_1.map)({
|
|
1848
|
-
$metadata: deserializeMetadata(output),
|
|
1849
|
-
});
|
|
1850
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1851
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1852
|
-
arn: smithy_client_1.expectString,
|
|
1853
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1854
|
-
defaultAction: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
1855
|
-
id: smithy_client_1.expectString,
|
|
1856
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1857
|
-
name: smithy_client_1.expectString,
|
|
1858
|
-
port: smithy_client_1.expectInt32,
|
|
1859
|
-
protocol: smithy_client_1.expectString,
|
|
1860
|
-
serviceArn: smithy_client_1.expectString,
|
|
1861
|
-
serviceId: smithy_client_1.expectString,
|
|
1862
|
-
});
|
|
1863
|
-
Object.assign(contents, doc);
|
|
1864
|
-
return contents;
|
|
1865
|
-
};
|
|
1866
|
-
exports.de_GetListenerCommand = de_GetListenerCommand;
|
|
1867
|
-
const de_GetListenerCommandError = async (output, context) => {
|
|
1868
|
-
const parsedOutput = {
|
|
1869
|
-
...output,
|
|
1870
|
-
body: await parseErrorBody(output.body, context),
|
|
1871
|
-
};
|
|
1872
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1873
|
-
switch (errorCode) {
|
|
1874
|
-
case "AccessDeniedException":
|
|
1875
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1876
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1877
|
-
case "InternalServerException":
|
|
1878
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1879
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1880
|
-
case "ResourceNotFoundException":
|
|
1881
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1882
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1883
|
-
case "ThrottlingException":
|
|
1884
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1885
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1886
|
-
case "ValidationException":
|
|
1887
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1888
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1889
|
-
default:
|
|
1890
|
-
const parsedBody = parsedOutput.body;
|
|
1891
|
-
return throwDefaultError({
|
|
1892
|
-
output,
|
|
1893
|
-
parsedBody,
|
|
1894
|
-
errorCode,
|
|
1895
|
-
});
|
|
1896
|
-
}
|
|
1897
|
-
};
|
|
1898
|
-
const de_GetResourcePolicyCommand = async (output, context) => {
|
|
1899
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1900
|
-
return de_GetResourcePolicyCommandError(output, context);
|
|
1901
|
-
}
|
|
1902
|
-
const contents = (0, smithy_client_1.map)({
|
|
1903
|
-
$metadata: deserializeMetadata(output),
|
|
1904
|
-
});
|
|
1905
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1906
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1907
|
-
policy: smithy_client_1.expectString,
|
|
1908
|
-
});
|
|
1909
|
-
Object.assign(contents, doc);
|
|
1910
|
-
return contents;
|
|
1911
|
-
};
|
|
1912
|
-
exports.de_GetResourcePolicyCommand = de_GetResourcePolicyCommand;
|
|
1913
|
-
const de_GetResourcePolicyCommandError = async (output, context) => {
|
|
1914
|
-
const parsedOutput = {
|
|
1915
|
-
...output,
|
|
1916
|
-
body: await parseErrorBody(output.body, context),
|
|
1917
|
-
};
|
|
1918
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1919
|
-
switch (errorCode) {
|
|
1920
|
-
case "AccessDeniedException":
|
|
1921
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1922
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1923
|
-
case "InternalServerException":
|
|
1924
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1925
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1926
|
-
case "ResourceNotFoundException":
|
|
1927
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1928
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1929
|
-
case "ThrottlingException":
|
|
1930
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1931
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1932
|
-
case "ValidationException":
|
|
1933
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1934
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1935
|
-
default:
|
|
1936
|
-
const parsedBody = parsedOutput.body;
|
|
1937
|
-
return throwDefaultError({
|
|
1938
|
-
output,
|
|
1939
|
-
parsedBody,
|
|
1940
|
-
errorCode,
|
|
1941
|
-
});
|
|
1942
|
-
}
|
|
1943
|
-
};
|
|
1944
|
-
const de_GetRuleCommand = async (output, context) => {
|
|
1945
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1946
|
-
return de_GetRuleCommandError(output, context);
|
|
1947
|
-
}
|
|
1948
|
-
const contents = (0, smithy_client_1.map)({
|
|
1949
|
-
$metadata: deserializeMetadata(output),
|
|
1950
|
-
});
|
|
1951
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1952
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1953
|
-
action: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
1954
|
-
arn: smithy_client_1.expectString,
|
|
1955
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1956
|
-
id: smithy_client_1.expectString,
|
|
1957
|
-
isDefault: smithy_client_1.expectBoolean,
|
|
1958
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1959
|
-
match: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
1960
|
-
name: smithy_client_1.expectString,
|
|
1961
|
-
priority: smithy_client_1.expectInt32,
|
|
1962
|
-
});
|
|
1963
|
-
Object.assign(contents, doc);
|
|
1964
|
-
return contents;
|
|
1965
|
-
};
|
|
1966
|
-
exports.de_GetRuleCommand = de_GetRuleCommand;
|
|
1967
|
-
const de_GetRuleCommandError = async (output, context) => {
|
|
1968
|
-
const parsedOutput = {
|
|
1969
|
-
...output,
|
|
1970
|
-
body: await parseErrorBody(output.body, context),
|
|
1971
|
-
};
|
|
1972
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1973
|
-
switch (errorCode) {
|
|
1974
|
-
case "AccessDeniedException":
|
|
1975
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1976
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1977
|
-
case "InternalServerException":
|
|
1978
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1979
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1980
|
-
case "ResourceNotFoundException":
|
|
1981
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1982
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1983
|
-
case "ThrottlingException":
|
|
1984
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1985
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1986
|
-
case "ValidationException":
|
|
1987
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1988
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1989
|
-
default:
|
|
1990
|
-
const parsedBody = parsedOutput.body;
|
|
1991
|
-
return throwDefaultError({
|
|
1992
|
-
output,
|
|
1993
|
-
parsedBody,
|
|
1994
|
-
errorCode,
|
|
1995
|
-
});
|
|
1996
|
-
}
|
|
1997
|
-
};
|
|
1998
|
-
const de_GetServiceCommand = async (output, context) => {
|
|
1999
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2000
|
-
return de_GetServiceCommandError(output, context);
|
|
2001
|
-
}
|
|
2002
|
-
const contents = (0, smithy_client_1.map)({
|
|
2003
|
-
$metadata: deserializeMetadata(output),
|
|
2004
|
-
});
|
|
2005
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2006
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2007
|
-
arn: smithy_client_1.expectString,
|
|
2008
|
-
authType: smithy_client_1.expectString,
|
|
2009
|
-
certificateArn: smithy_client_1.expectString,
|
|
2010
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2011
|
-
customDomainName: smithy_client_1.expectString,
|
|
2012
|
-
dnsEntry: smithy_client_1._json,
|
|
2013
|
-
failureCode: smithy_client_1.expectString,
|
|
2014
|
-
failureMessage: smithy_client_1.expectString,
|
|
2015
|
-
id: smithy_client_1.expectString,
|
|
2016
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2017
|
-
name: smithy_client_1.expectString,
|
|
2018
|
-
status: smithy_client_1.expectString,
|
|
2019
|
-
});
|
|
2020
|
-
Object.assign(contents, doc);
|
|
2021
|
-
return contents;
|
|
2022
|
-
};
|
|
2023
|
-
exports.de_GetServiceCommand = de_GetServiceCommand;
|
|
2024
|
-
const de_GetServiceCommandError = async (output, context) => {
|
|
2025
|
-
const parsedOutput = {
|
|
2026
|
-
...output,
|
|
2027
|
-
body: await parseErrorBody(output.body, context),
|
|
2028
|
-
};
|
|
2029
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2030
|
-
switch (errorCode) {
|
|
2031
|
-
case "AccessDeniedException":
|
|
2032
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2033
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2034
|
-
case "InternalServerException":
|
|
2035
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2036
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2037
|
-
case "ResourceNotFoundException":
|
|
2038
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2039
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2040
|
-
case "ThrottlingException":
|
|
2041
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2042
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2043
|
-
case "ValidationException":
|
|
2044
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2045
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2046
|
-
default:
|
|
2047
|
-
const parsedBody = parsedOutput.body;
|
|
2048
|
-
return throwDefaultError({
|
|
2049
|
-
output,
|
|
2050
|
-
parsedBody,
|
|
2051
|
-
errorCode,
|
|
2052
|
-
});
|
|
2053
|
-
}
|
|
2054
|
-
};
|
|
2055
|
-
const de_GetServiceNetworkCommand = async (output, context) => {
|
|
2056
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2057
|
-
return de_GetServiceNetworkCommandError(output, context);
|
|
2058
|
-
}
|
|
2059
|
-
const contents = (0, smithy_client_1.map)({
|
|
2060
|
-
$metadata: deserializeMetadata(output),
|
|
2061
|
-
});
|
|
2062
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2063
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2064
|
-
arn: smithy_client_1.expectString,
|
|
2065
|
-
authType: smithy_client_1.expectString,
|
|
2066
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2067
|
-
id: smithy_client_1.expectString,
|
|
2068
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2069
|
-
name: smithy_client_1.expectString,
|
|
2070
|
-
numberOfAssociatedServices: smithy_client_1.expectLong,
|
|
2071
|
-
numberOfAssociatedVPCs: smithy_client_1.expectLong,
|
|
2072
|
-
});
|
|
2073
|
-
Object.assign(contents, doc);
|
|
2074
|
-
return contents;
|
|
2075
|
-
};
|
|
2076
|
-
exports.de_GetServiceNetworkCommand = de_GetServiceNetworkCommand;
|
|
2077
|
-
const de_GetServiceNetworkCommandError = async (output, context) => {
|
|
2078
|
-
const parsedOutput = {
|
|
2079
|
-
...output,
|
|
2080
|
-
body: await parseErrorBody(output.body, context),
|
|
2081
|
-
};
|
|
2082
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2083
|
-
switch (errorCode) {
|
|
2084
|
-
case "AccessDeniedException":
|
|
2085
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2086
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2087
|
-
case "InternalServerException":
|
|
2088
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2089
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2090
|
-
case "ResourceNotFoundException":
|
|
2091
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2092
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2093
|
-
case "ThrottlingException":
|
|
2094
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2095
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2096
|
-
case "ValidationException":
|
|
2097
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2098
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2099
|
-
default:
|
|
2100
|
-
const parsedBody = parsedOutput.body;
|
|
2101
|
-
return throwDefaultError({
|
|
2102
|
-
output,
|
|
2103
|
-
parsedBody,
|
|
2104
|
-
errorCode,
|
|
2105
|
-
});
|
|
2106
|
-
}
|
|
2107
|
-
};
|
|
2108
|
-
const de_GetServiceNetworkServiceAssociationCommand = async (output, context) => {
|
|
2109
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2110
|
-
return de_GetServiceNetworkServiceAssociationCommandError(output, context);
|
|
2111
|
-
}
|
|
2112
|
-
const contents = (0, smithy_client_1.map)({
|
|
2113
|
-
$metadata: deserializeMetadata(output),
|
|
2114
|
-
});
|
|
2115
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2116
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2117
|
-
arn: smithy_client_1.expectString,
|
|
2118
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2119
|
-
createdBy: smithy_client_1.expectString,
|
|
2120
|
-
customDomainName: smithy_client_1.expectString,
|
|
2121
|
-
dnsEntry: smithy_client_1._json,
|
|
2122
|
-
failureCode: smithy_client_1.expectString,
|
|
2123
|
-
failureMessage: smithy_client_1.expectString,
|
|
2124
|
-
id: smithy_client_1.expectString,
|
|
2125
|
-
serviceArn: smithy_client_1.expectString,
|
|
2126
|
-
serviceId: smithy_client_1.expectString,
|
|
2127
|
-
serviceName: smithy_client_1.expectString,
|
|
2128
|
-
serviceNetworkArn: smithy_client_1.expectString,
|
|
2129
|
-
serviceNetworkId: smithy_client_1.expectString,
|
|
2130
|
-
serviceNetworkName: smithy_client_1.expectString,
|
|
2131
|
-
status: smithy_client_1.expectString,
|
|
2132
|
-
});
|
|
2133
|
-
Object.assign(contents, doc);
|
|
2134
|
-
return contents;
|
|
2135
|
-
};
|
|
2136
|
-
exports.de_GetServiceNetworkServiceAssociationCommand = de_GetServiceNetworkServiceAssociationCommand;
|
|
2137
|
-
const de_GetServiceNetworkServiceAssociationCommandError = async (output, context) => {
|
|
2138
|
-
const parsedOutput = {
|
|
2139
|
-
...output,
|
|
2140
|
-
body: await parseErrorBody(output.body, context),
|
|
2141
|
-
};
|
|
2142
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2143
|
-
switch (errorCode) {
|
|
2144
|
-
case "AccessDeniedException":
|
|
2145
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2146
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2147
|
-
case "InternalServerException":
|
|
2148
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2149
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2150
|
-
case "ResourceNotFoundException":
|
|
2151
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2152
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2153
|
-
case "ThrottlingException":
|
|
2154
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2155
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2156
|
-
case "ValidationException":
|
|
2157
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2158
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2159
|
-
default:
|
|
2160
|
-
const parsedBody = parsedOutput.body;
|
|
2161
|
-
return throwDefaultError({
|
|
2162
|
-
output,
|
|
2163
|
-
parsedBody,
|
|
2164
|
-
errorCode,
|
|
2165
|
-
});
|
|
2166
|
-
}
|
|
2167
|
-
};
|
|
2168
|
-
const de_GetServiceNetworkVpcAssociationCommand = async (output, context) => {
|
|
2169
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2170
|
-
return de_GetServiceNetworkVpcAssociationCommandError(output, context);
|
|
2171
|
-
}
|
|
2172
|
-
const contents = (0, smithy_client_1.map)({
|
|
2173
|
-
$metadata: deserializeMetadata(output),
|
|
2174
|
-
});
|
|
2175
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2176
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2177
|
-
arn: smithy_client_1.expectString,
|
|
2178
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2179
|
-
createdBy: smithy_client_1.expectString,
|
|
2180
|
-
failureCode: smithy_client_1.expectString,
|
|
2181
|
-
failureMessage: smithy_client_1.expectString,
|
|
2182
|
-
id: smithy_client_1.expectString,
|
|
2183
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2184
|
-
securityGroupIds: smithy_client_1._json,
|
|
2185
|
-
serviceNetworkArn: smithy_client_1.expectString,
|
|
2186
|
-
serviceNetworkId: smithy_client_1.expectString,
|
|
2187
|
-
serviceNetworkName: smithy_client_1.expectString,
|
|
2188
|
-
status: smithy_client_1.expectString,
|
|
2189
|
-
vpcId: smithy_client_1.expectString,
|
|
2190
|
-
});
|
|
2191
|
-
Object.assign(contents, doc);
|
|
2192
|
-
return contents;
|
|
2193
|
-
};
|
|
2194
|
-
exports.de_GetServiceNetworkVpcAssociationCommand = de_GetServiceNetworkVpcAssociationCommand;
|
|
2195
|
-
const de_GetServiceNetworkVpcAssociationCommandError = async (output, context) => {
|
|
2196
|
-
const parsedOutput = {
|
|
2197
|
-
...output,
|
|
2198
|
-
body: await parseErrorBody(output.body, context),
|
|
2199
|
-
};
|
|
2200
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2201
|
-
switch (errorCode) {
|
|
2202
|
-
case "AccessDeniedException":
|
|
2203
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2204
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2205
|
-
case "InternalServerException":
|
|
2206
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2207
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2208
|
-
case "ResourceNotFoundException":
|
|
2209
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2210
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2211
|
-
case "ThrottlingException":
|
|
2212
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2213
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2214
|
-
case "ValidationException":
|
|
2215
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2216
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2217
|
-
default:
|
|
2218
|
-
const parsedBody = parsedOutput.body;
|
|
2219
|
-
return throwDefaultError({
|
|
2220
|
-
output,
|
|
2221
|
-
parsedBody,
|
|
2222
|
-
errorCode,
|
|
2223
|
-
});
|
|
2224
|
-
}
|
|
2225
|
-
};
|
|
2226
|
-
const de_GetTargetGroupCommand = async (output, context) => {
|
|
2227
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2228
|
-
return de_GetTargetGroupCommandError(output, context);
|
|
2229
|
-
}
|
|
2230
|
-
const contents = (0, smithy_client_1.map)({
|
|
2231
|
-
$metadata: deserializeMetadata(output),
|
|
2232
|
-
});
|
|
2233
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2234
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2235
|
-
arn: smithy_client_1.expectString,
|
|
2236
|
-
config: smithy_client_1._json,
|
|
2237
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2238
|
-
failureCode: smithy_client_1.expectString,
|
|
2239
|
-
failureMessage: smithy_client_1.expectString,
|
|
2240
|
-
id: smithy_client_1.expectString,
|
|
2241
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2242
|
-
name: smithy_client_1.expectString,
|
|
2243
|
-
serviceArns: smithy_client_1._json,
|
|
2244
|
-
status: smithy_client_1.expectString,
|
|
2245
|
-
type: smithy_client_1.expectString,
|
|
2246
|
-
});
|
|
2247
|
-
Object.assign(contents, doc);
|
|
2248
|
-
return contents;
|
|
2249
|
-
};
|
|
2250
|
-
exports.de_GetTargetGroupCommand = de_GetTargetGroupCommand;
|
|
2251
|
-
const de_GetTargetGroupCommandError = async (output, context) => {
|
|
2252
|
-
const parsedOutput = {
|
|
2253
|
-
...output,
|
|
2254
|
-
body: await parseErrorBody(output.body, context),
|
|
2255
|
-
};
|
|
2256
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2257
|
-
switch (errorCode) {
|
|
2258
|
-
case "AccessDeniedException":
|
|
2259
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2260
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2261
|
-
case "InternalServerException":
|
|
2262
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2263
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2264
|
-
case "ResourceNotFoundException":
|
|
2265
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2266
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2267
|
-
case "ThrottlingException":
|
|
2268
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2269
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2270
|
-
case "ValidationException":
|
|
2271
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2272
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2273
|
-
default:
|
|
2274
|
-
const parsedBody = parsedOutput.body;
|
|
2275
|
-
return throwDefaultError({
|
|
2276
|
-
output,
|
|
2277
|
-
parsedBody,
|
|
2278
|
-
errorCode,
|
|
2279
|
-
});
|
|
2280
|
-
}
|
|
2281
|
-
};
|
|
2282
|
-
const de_ListAccessLogSubscriptionsCommand = async (output, context) => {
|
|
2283
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2284
|
-
return de_ListAccessLogSubscriptionsCommandError(output, context);
|
|
2285
|
-
}
|
|
2286
|
-
const contents = (0, smithy_client_1.map)({
|
|
2287
|
-
$metadata: deserializeMetadata(output),
|
|
2288
|
-
});
|
|
2289
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2290
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2291
|
-
items: (_) => de_AccessLogSubscriptionList(_, context),
|
|
2292
|
-
nextToken: smithy_client_1.expectString,
|
|
2293
|
-
});
|
|
2294
|
-
Object.assign(contents, doc);
|
|
2295
|
-
return contents;
|
|
2296
|
-
};
|
|
2297
|
-
exports.de_ListAccessLogSubscriptionsCommand = de_ListAccessLogSubscriptionsCommand;
|
|
2298
|
-
const de_ListAccessLogSubscriptionsCommandError = 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 "AccessDeniedException":
|
|
2306
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2307
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2308
|
-
case "InternalServerException":
|
|
2309
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2310
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2311
|
-
case "ThrottlingException":
|
|
2312
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2313
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2314
|
-
case "ValidationException":
|
|
2315
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2316
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2317
|
-
default:
|
|
2318
|
-
const parsedBody = parsedOutput.body;
|
|
2319
|
-
return throwDefaultError({
|
|
2320
|
-
output,
|
|
2321
|
-
parsedBody,
|
|
2322
|
-
errorCode,
|
|
2323
|
-
});
|
|
2324
|
-
}
|
|
2325
|
-
};
|
|
2326
|
-
const de_ListListenersCommand = async (output, context) => {
|
|
2327
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2328
|
-
return de_ListListenersCommandError(output, context);
|
|
2329
|
-
}
|
|
2330
|
-
const contents = (0, smithy_client_1.map)({
|
|
2331
|
-
$metadata: deserializeMetadata(output),
|
|
2332
|
-
});
|
|
2333
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2334
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2335
|
-
items: (_) => de_ListenerSummaryList(_, context),
|
|
2336
|
-
nextToken: smithy_client_1.expectString,
|
|
2337
|
-
});
|
|
2338
|
-
Object.assign(contents, doc);
|
|
2339
|
-
return contents;
|
|
2340
|
-
};
|
|
2341
|
-
exports.de_ListListenersCommand = de_ListListenersCommand;
|
|
2342
|
-
const de_ListListenersCommandError = async (output, context) => {
|
|
2343
|
-
const parsedOutput = {
|
|
2344
|
-
...output,
|
|
2345
|
-
body: await parseErrorBody(output.body, context),
|
|
2346
|
-
};
|
|
2347
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2348
|
-
switch (errorCode) {
|
|
2349
|
-
case "AccessDeniedException":
|
|
2350
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2351
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2352
|
-
case "InternalServerException":
|
|
2353
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2354
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2355
|
-
case "ResourceNotFoundException":
|
|
2356
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2357
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2358
|
-
case "ThrottlingException":
|
|
2359
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2360
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2361
|
-
case "ValidationException":
|
|
2362
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2363
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2364
|
-
default:
|
|
2365
|
-
const parsedBody = parsedOutput.body;
|
|
2366
|
-
return throwDefaultError({
|
|
2367
|
-
output,
|
|
2368
|
-
parsedBody,
|
|
2369
|
-
errorCode,
|
|
2370
|
-
});
|
|
2371
|
-
}
|
|
2372
|
-
};
|
|
2373
|
-
const de_ListRulesCommand = async (output, context) => {
|
|
2374
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2375
|
-
return de_ListRulesCommandError(output, context);
|
|
2376
|
-
}
|
|
2377
|
-
const contents = (0, smithy_client_1.map)({
|
|
2378
|
-
$metadata: deserializeMetadata(output),
|
|
2379
|
-
});
|
|
2380
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2381
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2382
|
-
items: (_) => de_RuleSummaryList(_, context),
|
|
2383
|
-
nextToken: smithy_client_1.expectString,
|
|
2384
|
-
});
|
|
2385
|
-
Object.assign(contents, doc);
|
|
2386
|
-
return contents;
|
|
2387
|
-
};
|
|
2388
|
-
exports.de_ListRulesCommand = de_ListRulesCommand;
|
|
2389
|
-
const de_ListRulesCommandError = async (output, context) => {
|
|
2390
|
-
const parsedOutput = {
|
|
2391
|
-
...output,
|
|
2392
|
-
body: await parseErrorBody(output.body, context),
|
|
2393
|
-
};
|
|
2394
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2395
|
-
switch (errorCode) {
|
|
2396
|
-
case "AccessDeniedException":
|
|
2397
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2398
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2399
|
-
case "InternalServerException":
|
|
2400
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2401
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2402
|
-
case "ResourceNotFoundException":
|
|
2403
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2404
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2405
|
-
case "ThrottlingException":
|
|
2406
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2407
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2408
|
-
case "ValidationException":
|
|
2409
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2410
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2411
|
-
default:
|
|
2412
|
-
const parsedBody = parsedOutput.body;
|
|
2413
|
-
return throwDefaultError({
|
|
2414
|
-
output,
|
|
2415
|
-
parsedBody,
|
|
2416
|
-
errorCode,
|
|
2417
|
-
});
|
|
2418
|
-
}
|
|
2419
|
-
};
|
|
2420
|
-
const de_ListServiceNetworksCommand = async (output, context) => {
|
|
2421
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2422
|
-
return de_ListServiceNetworksCommandError(output, context);
|
|
2423
|
-
}
|
|
2424
|
-
const contents = (0, smithy_client_1.map)({
|
|
2425
|
-
$metadata: deserializeMetadata(output),
|
|
2426
|
-
});
|
|
2427
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2428
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2429
|
-
items: (_) => de_ServiceNetworkList(_, context),
|
|
2430
|
-
nextToken: smithy_client_1.expectString,
|
|
2431
|
-
});
|
|
2432
|
-
Object.assign(contents, doc);
|
|
2433
|
-
return contents;
|
|
2434
|
-
};
|
|
2435
|
-
exports.de_ListServiceNetworksCommand = de_ListServiceNetworksCommand;
|
|
2436
|
-
const de_ListServiceNetworksCommandError = async (output, context) => {
|
|
2437
|
-
const parsedOutput = {
|
|
2438
|
-
...output,
|
|
2439
|
-
body: await parseErrorBody(output.body, context),
|
|
2440
|
-
};
|
|
2441
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2442
|
-
switch (errorCode) {
|
|
2443
|
-
case "AccessDeniedException":
|
|
2444
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2445
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2446
|
-
case "InternalServerException":
|
|
2447
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2448
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2449
|
-
case "ThrottlingException":
|
|
2450
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2451
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2452
|
-
case "ValidationException":
|
|
2453
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2454
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2455
|
-
default:
|
|
2456
|
-
const parsedBody = parsedOutput.body;
|
|
2457
|
-
return throwDefaultError({
|
|
2458
|
-
output,
|
|
2459
|
-
parsedBody,
|
|
2460
|
-
errorCode,
|
|
2461
|
-
});
|
|
2462
|
-
}
|
|
2463
|
-
};
|
|
2464
|
-
const de_ListServiceNetworkServiceAssociationsCommand = async (output, context) => {
|
|
2465
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2466
|
-
return de_ListServiceNetworkServiceAssociationsCommandError(output, context);
|
|
2467
|
-
}
|
|
2468
|
-
const contents = (0, smithy_client_1.map)({
|
|
2469
|
-
$metadata: deserializeMetadata(output),
|
|
2470
|
-
});
|
|
2471
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2472
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2473
|
-
items: (_) => de_ServiceNetworkServiceAssociationList(_, context),
|
|
2474
|
-
nextToken: smithy_client_1.expectString,
|
|
2475
|
-
});
|
|
2476
|
-
Object.assign(contents, doc);
|
|
2477
|
-
return contents;
|
|
2478
|
-
};
|
|
2479
|
-
exports.de_ListServiceNetworkServiceAssociationsCommand = de_ListServiceNetworkServiceAssociationsCommand;
|
|
2480
|
-
const de_ListServiceNetworkServiceAssociationsCommandError = async (output, context) => {
|
|
2481
|
-
const parsedOutput = {
|
|
2482
|
-
...output,
|
|
2483
|
-
body: await parseErrorBody(output.body, context),
|
|
2484
|
-
};
|
|
2485
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2486
|
-
switch (errorCode) {
|
|
2487
|
-
case "AccessDeniedException":
|
|
2488
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2489
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2490
|
-
case "InternalServerException":
|
|
2491
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2492
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2493
|
-
case "ThrottlingException":
|
|
2494
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2495
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2496
|
-
case "ValidationException":
|
|
2497
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2498
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2499
|
-
default:
|
|
2500
|
-
const parsedBody = parsedOutput.body;
|
|
2501
|
-
return throwDefaultError({
|
|
2502
|
-
output,
|
|
2503
|
-
parsedBody,
|
|
2504
|
-
errorCode,
|
|
2505
|
-
});
|
|
2506
|
-
}
|
|
2507
|
-
};
|
|
2508
|
-
const de_ListServiceNetworkVpcAssociationsCommand = async (output, context) => {
|
|
2509
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2510
|
-
return de_ListServiceNetworkVpcAssociationsCommandError(output, context);
|
|
2511
|
-
}
|
|
2512
|
-
const contents = (0, smithy_client_1.map)({
|
|
2513
|
-
$metadata: deserializeMetadata(output),
|
|
2514
|
-
});
|
|
2515
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2516
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2517
|
-
items: (_) => de_ServiceNetworkVpcAssociationList(_, context),
|
|
2518
|
-
nextToken: smithy_client_1.expectString,
|
|
2519
|
-
});
|
|
2520
|
-
Object.assign(contents, doc);
|
|
2521
|
-
return contents;
|
|
2522
|
-
};
|
|
2523
|
-
exports.de_ListServiceNetworkVpcAssociationsCommand = de_ListServiceNetworkVpcAssociationsCommand;
|
|
2524
|
-
const de_ListServiceNetworkVpcAssociationsCommandError = async (output, context) => {
|
|
2525
|
-
const parsedOutput = {
|
|
2526
|
-
...output,
|
|
2527
|
-
body: await parseErrorBody(output.body, context),
|
|
2528
|
-
};
|
|
2529
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2530
|
-
switch (errorCode) {
|
|
2531
|
-
case "AccessDeniedException":
|
|
2532
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2533
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2534
|
-
case "InternalServerException":
|
|
2535
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2536
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2537
|
-
case "ThrottlingException":
|
|
2538
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2539
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2540
|
-
case "ValidationException":
|
|
2541
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2542
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2543
|
-
default:
|
|
2544
|
-
const parsedBody = parsedOutput.body;
|
|
2545
|
-
return throwDefaultError({
|
|
2546
|
-
output,
|
|
2547
|
-
parsedBody,
|
|
2548
|
-
errorCode,
|
|
2549
|
-
});
|
|
2550
|
-
}
|
|
2551
|
-
};
|
|
2552
|
-
const de_ListServicesCommand = async (output, context) => {
|
|
2553
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2554
|
-
return de_ListServicesCommandError(output, context);
|
|
2555
|
-
}
|
|
2556
|
-
const contents = (0, smithy_client_1.map)({
|
|
2557
|
-
$metadata: deserializeMetadata(output),
|
|
2558
|
-
});
|
|
2559
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2560
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2561
|
-
items: (_) => de_ServiceList(_, context),
|
|
2562
|
-
nextToken: smithy_client_1.expectString,
|
|
2563
|
-
});
|
|
2564
|
-
Object.assign(contents, doc);
|
|
2565
|
-
return contents;
|
|
2566
|
-
};
|
|
2567
|
-
exports.de_ListServicesCommand = de_ListServicesCommand;
|
|
2568
|
-
const de_ListServicesCommandError = async (output, context) => {
|
|
2569
|
-
const parsedOutput = {
|
|
2570
|
-
...output,
|
|
2571
|
-
body: await parseErrorBody(output.body, context),
|
|
2572
|
-
};
|
|
2573
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2574
|
-
switch (errorCode) {
|
|
2575
|
-
case "AccessDeniedException":
|
|
2576
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2577
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2578
|
-
case "InternalServerException":
|
|
2579
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2580
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2581
|
-
case "ThrottlingException":
|
|
2582
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2583
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2584
|
-
case "ValidationException":
|
|
2585
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2586
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2587
|
-
default:
|
|
2588
|
-
const parsedBody = parsedOutput.body;
|
|
2589
|
-
return throwDefaultError({
|
|
2590
|
-
output,
|
|
2591
|
-
parsedBody,
|
|
2592
|
-
errorCode,
|
|
2593
|
-
});
|
|
2594
|
-
}
|
|
2595
|
-
};
|
|
2596
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2597
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2598
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
2599
|
-
}
|
|
2600
|
-
const contents = (0, smithy_client_1.map)({
|
|
2601
|
-
$metadata: deserializeMetadata(output),
|
|
2602
|
-
});
|
|
2603
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2604
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2605
|
-
tags: smithy_client_1._json,
|
|
2606
|
-
});
|
|
2607
|
-
Object.assign(contents, doc);
|
|
2608
|
-
return contents;
|
|
2609
|
-
};
|
|
2610
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2611
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2612
|
-
const parsedOutput = {
|
|
2613
|
-
...output,
|
|
2614
|
-
body: await parseErrorBody(output.body, context),
|
|
2615
|
-
};
|
|
2616
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2617
|
-
switch (errorCode) {
|
|
2618
|
-
case "AccessDeniedException":
|
|
2619
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2620
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2621
|
-
case "InternalServerException":
|
|
2622
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2623
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2624
|
-
case "ResourceNotFoundException":
|
|
2625
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2626
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2627
|
-
case "ValidationException":
|
|
2628
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2629
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2630
|
-
default:
|
|
2631
|
-
const parsedBody = parsedOutput.body;
|
|
2632
|
-
return throwDefaultError({
|
|
2633
|
-
output,
|
|
2634
|
-
parsedBody,
|
|
2635
|
-
errorCode,
|
|
2636
|
-
});
|
|
2637
|
-
}
|
|
2638
|
-
};
|
|
2639
|
-
const de_ListTargetGroupsCommand = async (output, context) => {
|
|
2640
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2641
|
-
return de_ListTargetGroupsCommandError(output, context);
|
|
2642
|
-
}
|
|
2643
|
-
const contents = (0, smithy_client_1.map)({
|
|
2644
|
-
$metadata: deserializeMetadata(output),
|
|
2645
|
-
});
|
|
2646
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2647
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2648
|
-
items: (_) => de_TargetGroupList(_, context),
|
|
2649
|
-
nextToken: smithy_client_1.expectString,
|
|
2650
|
-
});
|
|
2651
|
-
Object.assign(contents, doc);
|
|
2652
|
-
return contents;
|
|
2653
|
-
};
|
|
2654
|
-
exports.de_ListTargetGroupsCommand = de_ListTargetGroupsCommand;
|
|
2655
|
-
const de_ListTargetGroupsCommandError = async (output, context) => {
|
|
2656
|
-
const parsedOutput = {
|
|
2657
|
-
...output,
|
|
2658
|
-
body: await parseErrorBody(output.body, context),
|
|
2659
|
-
};
|
|
2660
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2661
|
-
switch (errorCode) {
|
|
2662
|
-
case "AccessDeniedException":
|
|
2663
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2664
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2665
|
-
case "InternalServerException":
|
|
2666
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2667
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2668
|
-
case "ThrottlingException":
|
|
2669
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2670
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2671
|
-
case "ValidationException":
|
|
2672
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2673
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2674
|
-
default:
|
|
2675
|
-
const parsedBody = parsedOutput.body;
|
|
2676
|
-
return throwDefaultError({
|
|
2677
|
-
output,
|
|
2678
|
-
parsedBody,
|
|
2679
|
-
errorCode,
|
|
2680
|
-
});
|
|
2681
|
-
}
|
|
2682
|
-
};
|
|
2683
|
-
const de_ListTargetsCommand = async (output, context) => {
|
|
2684
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2685
|
-
return de_ListTargetsCommandError(output, context);
|
|
2686
|
-
}
|
|
2687
|
-
const contents = (0, smithy_client_1.map)({
|
|
2688
|
-
$metadata: deserializeMetadata(output),
|
|
2689
|
-
});
|
|
2690
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2691
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2692
|
-
items: smithy_client_1._json,
|
|
2693
|
-
nextToken: smithy_client_1.expectString,
|
|
2694
|
-
});
|
|
2695
|
-
Object.assign(contents, doc);
|
|
2696
|
-
return contents;
|
|
2697
|
-
};
|
|
2698
|
-
exports.de_ListTargetsCommand = de_ListTargetsCommand;
|
|
2699
|
-
const de_ListTargetsCommandError = async (output, context) => {
|
|
2700
|
-
const parsedOutput = {
|
|
2701
|
-
...output,
|
|
2702
|
-
body: await parseErrorBody(output.body, context),
|
|
2703
|
-
};
|
|
2704
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2705
|
-
switch (errorCode) {
|
|
2706
|
-
case "AccessDeniedException":
|
|
2707
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2708
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2709
|
-
case "InternalServerException":
|
|
2710
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2711
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2712
|
-
case "ResourceNotFoundException":
|
|
2713
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2714
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2715
|
-
case "ThrottlingException":
|
|
2716
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2717
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2718
|
-
case "ValidationException":
|
|
2719
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2720
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2721
|
-
default:
|
|
2722
|
-
const parsedBody = parsedOutput.body;
|
|
2723
|
-
return throwDefaultError({
|
|
2724
|
-
output,
|
|
2725
|
-
parsedBody,
|
|
2726
|
-
errorCode,
|
|
2727
|
-
});
|
|
2728
|
-
}
|
|
2729
|
-
};
|
|
2730
|
-
const de_PutAuthPolicyCommand = async (output, context) => {
|
|
2731
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2732
|
-
return de_PutAuthPolicyCommandError(output, context);
|
|
2733
|
-
}
|
|
2734
|
-
const contents = (0, smithy_client_1.map)({
|
|
2735
|
-
$metadata: deserializeMetadata(output),
|
|
2736
|
-
});
|
|
2737
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2738
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2739
|
-
policy: smithy_client_1.expectString,
|
|
2740
|
-
state: smithy_client_1.expectString,
|
|
2741
|
-
});
|
|
2742
|
-
Object.assign(contents, doc);
|
|
2743
|
-
return contents;
|
|
2744
|
-
};
|
|
2745
|
-
exports.de_PutAuthPolicyCommand = de_PutAuthPolicyCommand;
|
|
2746
|
-
const de_PutAuthPolicyCommandError = async (output, context) => {
|
|
2747
|
-
const parsedOutput = {
|
|
2748
|
-
...output,
|
|
2749
|
-
body: await parseErrorBody(output.body, context),
|
|
2750
|
-
};
|
|
2751
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2752
|
-
switch (errorCode) {
|
|
2753
|
-
case "AccessDeniedException":
|
|
2754
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2755
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2756
|
-
case "InternalServerException":
|
|
2757
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2758
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2759
|
-
case "ResourceNotFoundException":
|
|
2760
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2761
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2762
|
-
case "ThrottlingException":
|
|
2763
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2764
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2765
|
-
case "ValidationException":
|
|
2766
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2767
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2768
|
-
default:
|
|
2769
|
-
const parsedBody = parsedOutput.body;
|
|
2770
|
-
return throwDefaultError({
|
|
2771
|
-
output,
|
|
2772
|
-
parsedBody,
|
|
2773
|
-
errorCode,
|
|
2774
|
-
});
|
|
2775
|
-
}
|
|
2776
|
-
};
|
|
2777
|
-
const de_PutResourcePolicyCommand = async (output, context) => {
|
|
2778
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2779
|
-
return de_PutResourcePolicyCommandError(output, context);
|
|
2780
|
-
}
|
|
2781
|
-
const contents = (0, smithy_client_1.map)({
|
|
2782
|
-
$metadata: deserializeMetadata(output),
|
|
2783
|
-
});
|
|
2784
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2785
|
-
return contents;
|
|
2786
|
-
};
|
|
2787
|
-
exports.de_PutResourcePolicyCommand = de_PutResourcePolicyCommand;
|
|
2788
|
-
const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
2789
|
-
const parsedOutput = {
|
|
2790
|
-
...output,
|
|
2791
|
-
body: await parseErrorBody(output.body, context),
|
|
2792
|
-
};
|
|
2793
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2794
|
-
switch (errorCode) {
|
|
2795
|
-
case "AccessDeniedException":
|
|
2796
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2797
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2798
|
-
case "InternalServerException":
|
|
2799
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2800
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2801
|
-
case "ResourceNotFoundException":
|
|
2802
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2803
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2804
|
-
case "ThrottlingException":
|
|
2805
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2806
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2807
|
-
case "ValidationException":
|
|
2808
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2809
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2810
|
-
default:
|
|
2811
|
-
const parsedBody = parsedOutput.body;
|
|
2812
|
-
return throwDefaultError({
|
|
2813
|
-
output,
|
|
2814
|
-
parsedBody,
|
|
2815
|
-
errorCode,
|
|
2816
|
-
});
|
|
2817
|
-
}
|
|
2818
|
-
};
|
|
2819
|
-
const de_RegisterTargetsCommand = async (output, context) => {
|
|
2820
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2821
|
-
return de_RegisterTargetsCommandError(output, context);
|
|
2822
|
-
}
|
|
2823
|
-
const contents = (0, smithy_client_1.map)({
|
|
2824
|
-
$metadata: deserializeMetadata(output),
|
|
2825
|
-
});
|
|
2826
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2827
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2828
|
-
successful: smithy_client_1._json,
|
|
2829
|
-
unsuccessful: smithy_client_1._json,
|
|
2830
|
-
});
|
|
2831
|
-
Object.assign(contents, doc);
|
|
2832
|
-
return contents;
|
|
2833
|
-
};
|
|
2834
|
-
exports.de_RegisterTargetsCommand = de_RegisterTargetsCommand;
|
|
2835
|
-
const de_RegisterTargetsCommandError = async (output, context) => {
|
|
2836
|
-
const parsedOutput = {
|
|
2837
|
-
...output,
|
|
2838
|
-
body: await parseErrorBody(output.body, context),
|
|
2839
|
-
};
|
|
2840
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2841
|
-
switch (errorCode) {
|
|
2842
|
-
case "AccessDeniedException":
|
|
2843
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2844
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2845
|
-
case "ConflictException":
|
|
2846
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
2847
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2848
|
-
case "InternalServerException":
|
|
2849
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2850
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2851
|
-
case "ResourceNotFoundException":
|
|
2852
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2853
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2854
|
-
case "ServiceQuotaExceededException":
|
|
2855
|
-
case "com.amazonaws.vpclattice#ServiceQuotaExceededException":
|
|
2856
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2857
|
-
case "ThrottlingException":
|
|
2858
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2859
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2860
|
-
case "ValidationException":
|
|
2861
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2862
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2863
|
-
default:
|
|
2864
|
-
const parsedBody = parsedOutput.body;
|
|
2865
|
-
return throwDefaultError({
|
|
2866
|
-
output,
|
|
2867
|
-
parsedBody,
|
|
2868
|
-
errorCode,
|
|
2869
|
-
});
|
|
2870
|
-
}
|
|
2871
|
-
};
|
|
2872
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
2873
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2874
|
-
return de_TagResourceCommandError(output, context);
|
|
2875
|
-
}
|
|
2876
|
-
const contents = (0, smithy_client_1.map)({
|
|
2877
|
-
$metadata: deserializeMetadata(output),
|
|
2878
|
-
});
|
|
2879
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2880
|
-
return contents;
|
|
2881
|
-
};
|
|
2882
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
2883
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
2884
|
-
const parsedOutput = {
|
|
2885
|
-
...output,
|
|
2886
|
-
body: await parseErrorBody(output.body, context),
|
|
2887
|
-
};
|
|
2888
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2889
|
-
switch (errorCode) {
|
|
2890
|
-
case "AccessDeniedException":
|
|
2891
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2892
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2893
|
-
case "InternalServerException":
|
|
2894
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2895
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2896
|
-
case "ResourceNotFoundException":
|
|
2897
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2898
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2899
|
-
case "ThrottlingException":
|
|
2900
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2901
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2902
|
-
case "ValidationException":
|
|
2903
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2904
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2905
|
-
default:
|
|
2906
|
-
const parsedBody = parsedOutput.body;
|
|
2907
|
-
return throwDefaultError({
|
|
2908
|
-
output,
|
|
2909
|
-
parsedBody,
|
|
2910
|
-
errorCode,
|
|
2911
|
-
});
|
|
2912
|
-
}
|
|
2913
|
-
};
|
|
2914
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
2915
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2916
|
-
return de_UntagResourceCommandError(output, context);
|
|
2917
|
-
}
|
|
2918
|
-
const contents = (0, smithy_client_1.map)({
|
|
2919
|
-
$metadata: deserializeMetadata(output),
|
|
2920
|
-
});
|
|
2921
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2922
|
-
return contents;
|
|
2923
|
-
};
|
|
2924
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2925
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
2926
|
-
const parsedOutput = {
|
|
2927
|
-
...output,
|
|
2928
|
-
body: await parseErrorBody(output.body, context),
|
|
2929
|
-
};
|
|
2930
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2931
|
-
switch (errorCode) {
|
|
2932
|
-
case "AccessDeniedException":
|
|
2933
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2934
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2935
|
-
case "InternalServerException":
|
|
2936
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2937
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2938
|
-
case "ResourceNotFoundException":
|
|
2939
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2940
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2941
|
-
case "ValidationException":
|
|
2942
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2943
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2944
|
-
default:
|
|
2945
|
-
const parsedBody = parsedOutput.body;
|
|
2946
|
-
return throwDefaultError({
|
|
2947
|
-
output,
|
|
2948
|
-
parsedBody,
|
|
2949
|
-
errorCode,
|
|
2950
|
-
});
|
|
2951
|
-
}
|
|
2952
|
-
};
|
|
2953
|
-
const de_UpdateAccessLogSubscriptionCommand = async (output, context) => {
|
|
2954
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2955
|
-
return de_UpdateAccessLogSubscriptionCommandError(output, context);
|
|
2956
|
-
}
|
|
2957
|
-
const contents = (0, smithy_client_1.map)({
|
|
2958
|
-
$metadata: deserializeMetadata(output),
|
|
2959
|
-
});
|
|
2960
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2961
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2962
|
-
arn: smithy_client_1.expectString,
|
|
2963
|
-
destinationArn: smithy_client_1.expectString,
|
|
2964
|
-
id: smithy_client_1.expectString,
|
|
2965
|
-
resourceArn: smithy_client_1.expectString,
|
|
2966
|
-
resourceId: smithy_client_1.expectString,
|
|
2967
|
-
});
|
|
2968
|
-
Object.assign(contents, doc);
|
|
2969
|
-
return contents;
|
|
2970
|
-
};
|
|
2971
|
-
exports.de_UpdateAccessLogSubscriptionCommand = de_UpdateAccessLogSubscriptionCommand;
|
|
2972
|
-
const de_UpdateAccessLogSubscriptionCommandError = async (output, context) => {
|
|
2973
|
-
const parsedOutput = {
|
|
2974
|
-
...output,
|
|
2975
|
-
body: await parseErrorBody(output.body, context),
|
|
2976
|
-
};
|
|
2977
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2978
|
-
switch (errorCode) {
|
|
2979
|
-
case "AccessDeniedException":
|
|
2980
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2981
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2982
|
-
case "ConflictException":
|
|
2983
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
2984
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2985
|
-
case "InternalServerException":
|
|
2986
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2987
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2988
|
-
case "ResourceNotFoundException":
|
|
2989
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2990
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2991
|
-
case "ThrottlingException":
|
|
2992
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2993
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2994
|
-
case "ValidationException":
|
|
2995
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2996
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2997
|
-
default:
|
|
2998
|
-
const parsedBody = parsedOutput.body;
|
|
2999
|
-
return throwDefaultError({
|
|
3000
|
-
output,
|
|
3001
|
-
parsedBody,
|
|
3002
|
-
errorCode,
|
|
3003
|
-
});
|
|
3004
|
-
}
|
|
3005
|
-
};
|
|
3006
|
-
const de_UpdateListenerCommand = async (output, context) => {
|
|
3007
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3008
|
-
return de_UpdateListenerCommandError(output, context);
|
|
3009
|
-
}
|
|
3010
|
-
const contents = (0, smithy_client_1.map)({
|
|
3011
|
-
$metadata: deserializeMetadata(output),
|
|
3012
|
-
});
|
|
3013
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3014
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3015
|
-
arn: smithy_client_1.expectString,
|
|
3016
|
-
defaultAction: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
3017
|
-
id: smithy_client_1.expectString,
|
|
3018
|
-
name: smithy_client_1.expectString,
|
|
3019
|
-
port: smithy_client_1.expectInt32,
|
|
3020
|
-
protocol: smithy_client_1.expectString,
|
|
3021
|
-
serviceArn: smithy_client_1.expectString,
|
|
3022
|
-
serviceId: smithy_client_1.expectString,
|
|
3023
|
-
});
|
|
3024
|
-
Object.assign(contents, doc);
|
|
3025
|
-
return contents;
|
|
3026
|
-
};
|
|
3027
|
-
exports.de_UpdateListenerCommand = de_UpdateListenerCommand;
|
|
3028
|
-
const de_UpdateListenerCommandError = async (output, context) => {
|
|
3029
|
-
const parsedOutput = {
|
|
3030
|
-
...output,
|
|
3031
|
-
body: await parseErrorBody(output.body, context),
|
|
3032
|
-
};
|
|
3033
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3034
|
-
switch (errorCode) {
|
|
3035
|
-
case "AccessDeniedException":
|
|
3036
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
3037
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3038
|
-
case "ConflictException":
|
|
3039
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
3040
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3041
|
-
case "InternalServerException":
|
|
3042
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
3043
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3044
|
-
case "ResourceNotFoundException":
|
|
3045
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
3046
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3047
|
-
case "ThrottlingException":
|
|
3048
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
3049
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3050
|
-
case "ValidationException":
|
|
3051
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
3052
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3053
|
-
default:
|
|
3054
|
-
const parsedBody = parsedOutput.body;
|
|
3055
|
-
return throwDefaultError({
|
|
3056
|
-
output,
|
|
3057
|
-
parsedBody,
|
|
3058
|
-
errorCode,
|
|
3059
|
-
});
|
|
3060
|
-
}
|
|
3061
|
-
};
|
|
3062
|
-
const de_UpdateRuleCommand = async (output, context) => {
|
|
3063
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3064
|
-
return de_UpdateRuleCommandError(output, context);
|
|
3065
|
-
}
|
|
3066
|
-
const contents = (0, smithy_client_1.map)({
|
|
3067
|
-
$metadata: deserializeMetadata(output),
|
|
3068
|
-
});
|
|
3069
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3070
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3071
|
-
action: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
3072
|
-
arn: smithy_client_1.expectString,
|
|
3073
|
-
id: smithy_client_1.expectString,
|
|
3074
|
-
isDefault: smithy_client_1.expectBoolean,
|
|
3075
|
-
match: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
3076
|
-
name: smithy_client_1.expectString,
|
|
3077
|
-
priority: smithy_client_1.expectInt32,
|
|
3078
|
-
});
|
|
3079
|
-
Object.assign(contents, doc);
|
|
3080
|
-
return contents;
|
|
3081
|
-
};
|
|
3082
|
-
exports.de_UpdateRuleCommand = de_UpdateRuleCommand;
|
|
3083
|
-
const de_UpdateRuleCommandError = async (output, context) => {
|
|
3084
|
-
const parsedOutput = {
|
|
3085
|
-
...output,
|
|
3086
|
-
body: await parseErrorBody(output.body, context),
|
|
3087
|
-
};
|
|
3088
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3089
|
-
switch (errorCode) {
|
|
3090
|
-
case "AccessDeniedException":
|
|
3091
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
3092
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3093
|
-
case "ConflictException":
|
|
3094
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
3095
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3096
|
-
case "InternalServerException":
|
|
3097
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
3098
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3099
|
-
case "ResourceNotFoundException":
|
|
3100
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
3101
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3102
|
-
case "ThrottlingException":
|
|
3103
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
3104
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3105
|
-
case "ValidationException":
|
|
3106
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
3107
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3108
|
-
default:
|
|
3109
|
-
const parsedBody = parsedOutput.body;
|
|
3110
|
-
return throwDefaultError({
|
|
3111
|
-
output,
|
|
3112
|
-
parsedBody,
|
|
3113
|
-
errorCode,
|
|
3114
|
-
});
|
|
3115
|
-
}
|
|
3116
|
-
};
|
|
3117
|
-
const de_UpdateServiceCommand = async (output, context) => {
|
|
3118
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3119
|
-
return de_UpdateServiceCommandError(output, context);
|
|
3120
|
-
}
|
|
3121
|
-
const contents = (0, smithy_client_1.map)({
|
|
3122
|
-
$metadata: deserializeMetadata(output),
|
|
3123
|
-
});
|
|
3124
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3125
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3126
|
-
arn: smithy_client_1.expectString,
|
|
3127
|
-
authType: smithy_client_1.expectString,
|
|
3128
|
-
certificateArn: smithy_client_1.expectString,
|
|
3129
|
-
customDomainName: smithy_client_1.expectString,
|
|
3130
|
-
id: smithy_client_1.expectString,
|
|
3131
|
-
name: smithy_client_1.expectString,
|
|
3132
|
-
});
|
|
3133
|
-
Object.assign(contents, doc);
|
|
3134
|
-
return contents;
|
|
3135
|
-
};
|
|
3136
|
-
exports.de_UpdateServiceCommand = de_UpdateServiceCommand;
|
|
3137
|
-
const de_UpdateServiceCommandError = async (output, context) => {
|
|
3138
|
-
const parsedOutput = {
|
|
3139
|
-
...output,
|
|
3140
|
-
body: await parseErrorBody(output.body, context),
|
|
3141
|
-
};
|
|
3142
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3143
|
-
switch (errorCode) {
|
|
3144
|
-
case "AccessDeniedException":
|
|
3145
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
3146
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3147
|
-
case "ConflictException":
|
|
3148
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
3149
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3150
|
-
case "InternalServerException":
|
|
3151
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
3152
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3153
|
-
case "ResourceNotFoundException":
|
|
3154
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
3155
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3156
|
-
case "ThrottlingException":
|
|
3157
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
3158
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3159
|
-
case "ValidationException":
|
|
3160
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
3161
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3162
|
-
default:
|
|
3163
|
-
const parsedBody = parsedOutput.body;
|
|
3164
|
-
return throwDefaultError({
|
|
3165
|
-
output,
|
|
3166
|
-
parsedBody,
|
|
3167
|
-
errorCode,
|
|
3168
|
-
});
|
|
3169
|
-
}
|
|
3170
|
-
};
|
|
3171
|
-
const de_UpdateServiceNetworkCommand = async (output, context) => {
|
|
3172
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3173
|
-
return de_UpdateServiceNetworkCommandError(output, context);
|
|
3174
|
-
}
|
|
3175
|
-
const contents = (0, smithy_client_1.map)({
|
|
3176
|
-
$metadata: deserializeMetadata(output),
|
|
3177
|
-
});
|
|
3178
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3179
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3180
|
-
arn: smithy_client_1.expectString,
|
|
3181
|
-
authType: smithy_client_1.expectString,
|
|
3182
|
-
id: smithy_client_1.expectString,
|
|
3183
|
-
name: smithy_client_1.expectString,
|
|
3184
|
-
});
|
|
3185
|
-
Object.assign(contents, doc);
|
|
3186
|
-
return contents;
|
|
3187
|
-
};
|
|
3188
|
-
exports.de_UpdateServiceNetworkCommand = de_UpdateServiceNetworkCommand;
|
|
3189
|
-
const de_UpdateServiceNetworkCommandError = async (output, context) => {
|
|
3190
|
-
const parsedOutput = {
|
|
3191
|
-
...output,
|
|
3192
|
-
body: await parseErrorBody(output.body, context),
|
|
3193
|
-
};
|
|
3194
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3195
|
-
switch (errorCode) {
|
|
3196
|
-
case "AccessDeniedException":
|
|
3197
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
3198
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3199
|
-
case "ConflictException":
|
|
3200
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
3201
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3202
|
-
case "InternalServerException":
|
|
3203
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
3204
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3205
|
-
case "ResourceNotFoundException":
|
|
3206
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
3207
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3208
|
-
case "ThrottlingException":
|
|
3209
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
3210
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3211
|
-
case "ValidationException":
|
|
3212
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
3213
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3214
|
-
default:
|
|
3215
|
-
const parsedBody = parsedOutput.body;
|
|
3216
|
-
return throwDefaultError({
|
|
3217
|
-
output,
|
|
3218
|
-
parsedBody,
|
|
3219
|
-
errorCode,
|
|
3220
|
-
});
|
|
3221
|
-
}
|
|
3222
|
-
};
|
|
3223
|
-
const de_UpdateServiceNetworkVpcAssociationCommand = async (output, context) => {
|
|
3224
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3225
|
-
return de_UpdateServiceNetworkVpcAssociationCommandError(output, context);
|
|
3226
|
-
}
|
|
3227
|
-
const contents = (0, smithy_client_1.map)({
|
|
3228
|
-
$metadata: deserializeMetadata(output),
|
|
3229
|
-
});
|
|
3230
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3231
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3232
|
-
arn: smithy_client_1.expectString,
|
|
3233
|
-
createdBy: smithy_client_1.expectString,
|
|
3234
|
-
id: smithy_client_1.expectString,
|
|
3235
|
-
securityGroupIds: smithy_client_1._json,
|
|
3236
|
-
status: smithy_client_1.expectString,
|
|
3237
|
-
});
|
|
3238
|
-
Object.assign(contents, doc);
|
|
3239
|
-
return contents;
|
|
3240
|
-
};
|
|
3241
|
-
exports.de_UpdateServiceNetworkVpcAssociationCommand = de_UpdateServiceNetworkVpcAssociationCommand;
|
|
3242
|
-
const de_UpdateServiceNetworkVpcAssociationCommandError = async (output, context) => {
|
|
3243
|
-
const parsedOutput = {
|
|
3244
|
-
...output,
|
|
3245
|
-
body: await parseErrorBody(output.body, context),
|
|
3246
|
-
};
|
|
3247
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3248
|
-
switch (errorCode) {
|
|
3249
|
-
case "AccessDeniedException":
|
|
3250
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
3251
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3252
|
-
case "ConflictException":
|
|
3253
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
3254
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3255
|
-
case "InternalServerException":
|
|
3256
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
3257
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3258
|
-
case "ResourceNotFoundException":
|
|
3259
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
3260
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3261
|
-
case "ThrottlingException":
|
|
3262
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
3263
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3264
|
-
case "ValidationException":
|
|
3265
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
3266
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3267
|
-
default:
|
|
3268
|
-
const parsedBody = parsedOutput.body;
|
|
3269
|
-
return throwDefaultError({
|
|
3270
|
-
output,
|
|
3271
|
-
parsedBody,
|
|
3272
|
-
errorCode,
|
|
3273
|
-
});
|
|
3274
|
-
}
|
|
3275
|
-
};
|
|
3276
|
-
const de_UpdateTargetGroupCommand = async (output, context) => {
|
|
3277
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3278
|
-
return de_UpdateTargetGroupCommandError(output, context);
|
|
3279
|
-
}
|
|
3280
|
-
const contents = (0, smithy_client_1.map)({
|
|
3281
|
-
$metadata: deserializeMetadata(output),
|
|
3282
|
-
});
|
|
3283
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3284
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3285
|
-
arn: smithy_client_1.expectString,
|
|
3286
|
-
config: smithy_client_1._json,
|
|
3287
|
-
id: smithy_client_1.expectString,
|
|
3288
|
-
name: smithy_client_1.expectString,
|
|
3289
|
-
status: smithy_client_1.expectString,
|
|
3290
|
-
type: smithy_client_1.expectString,
|
|
3291
|
-
});
|
|
3292
|
-
Object.assign(contents, doc);
|
|
3293
|
-
return contents;
|
|
3294
|
-
};
|
|
3295
|
-
exports.de_UpdateTargetGroupCommand = de_UpdateTargetGroupCommand;
|
|
3296
|
-
const de_UpdateTargetGroupCommandError = async (output, context) => {
|
|
3297
|
-
const parsedOutput = {
|
|
3298
|
-
...output,
|
|
3299
|
-
body: await parseErrorBody(output.body, context),
|
|
3300
|
-
};
|
|
3301
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3302
|
-
switch (errorCode) {
|
|
3303
|
-
case "AccessDeniedException":
|
|
3304
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
3305
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3306
|
-
case "ConflictException":
|
|
3307
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
3308
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3309
|
-
case "InternalServerException":
|
|
3310
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
3311
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3312
|
-
case "ResourceNotFoundException":
|
|
3313
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
3314
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3315
|
-
case "ThrottlingException":
|
|
3316
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
3317
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3318
|
-
case "ValidationException":
|
|
3319
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
3320
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3321
|
-
default:
|
|
3322
|
-
const parsedBody = parsedOutput.body;
|
|
3323
|
-
return throwDefaultError({
|
|
3324
|
-
output,
|
|
3325
|
-
parsedBody,
|
|
3326
|
-
errorCode,
|
|
3327
|
-
});
|
|
3328
|
-
}
|
|
3329
|
-
};
|
|
3330
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(VPCLatticeServiceException_1.VPCLatticeServiceException);
|
|
3331
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3332
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3333
|
-
const data = parsedOutput.body;
|
|
3334
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3335
|
-
message: smithy_client_1.expectString,
|
|
3336
|
-
});
|
|
3337
|
-
Object.assign(contents, doc);
|
|
3338
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
3339
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3340
|
-
...contents,
|
|
3341
|
-
});
|
|
3342
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3343
|
-
};
|
|
3344
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
3345
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3346
|
-
const data = parsedOutput.body;
|
|
3347
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3348
|
-
message: smithy_client_1.expectString,
|
|
3349
|
-
resourceId: smithy_client_1.expectString,
|
|
3350
|
-
resourceType: smithy_client_1.expectString,
|
|
3351
|
-
});
|
|
3352
|
-
Object.assign(contents, doc);
|
|
3353
|
-
const exception = new models_0_1.ConflictException({
|
|
3354
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3355
|
-
...contents,
|
|
3356
|
-
});
|
|
3357
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3358
|
-
};
|
|
3359
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
3360
|
-
const contents = (0, smithy_client_1.map)({
|
|
3361
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
3362
|
-
});
|
|
3363
|
-
const data = parsedOutput.body;
|
|
3364
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3365
|
-
message: smithy_client_1.expectString,
|
|
3366
|
-
});
|
|
3367
|
-
Object.assign(contents, doc);
|
|
3368
|
-
const exception = new models_0_1.InternalServerException({
|
|
3369
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3370
|
-
...contents,
|
|
3371
|
-
});
|
|
3372
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3373
|
-
};
|
|
3374
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3375
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3376
|
-
const data = parsedOutput.body;
|
|
3377
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3378
|
-
message: smithy_client_1.expectString,
|
|
3379
|
-
resourceId: smithy_client_1.expectString,
|
|
3380
|
-
resourceType: smithy_client_1.expectString,
|
|
3381
|
-
});
|
|
3382
|
-
Object.assign(contents, doc);
|
|
3383
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
3384
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3385
|
-
...contents,
|
|
3386
|
-
});
|
|
3387
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3388
|
-
};
|
|
3389
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
3390
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3391
|
-
const data = parsedOutput.body;
|
|
3392
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3393
|
-
message: smithy_client_1.expectString,
|
|
3394
|
-
quotaCode: smithy_client_1.expectString,
|
|
3395
|
-
resourceId: smithy_client_1.expectString,
|
|
3396
|
-
resourceType: smithy_client_1.expectString,
|
|
3397
|
-
serviceCode: smithy_client_1.expectString,
|
|
3398
|
-
});
|
|
3399
|
-
Object.assign(contents, doc);
|
|
3400
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
3401
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3402
|
-
...contents,
|
|
3403
|
-
});
|
|
3404
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3405
|
-
};
|
|
3406
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
3407
|
-
const contents = (0, smithy_client_1.map)({
|
|
3408
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
3409
|
-
});
|
|
3410
|
-
const data = parsedOutput.body;
|
|
3411
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3412
|
-
message: smithy_client_1.expectString,
|
|
3413
|
-
quotaCode: smithy_client_1.expectString,
|
|
3414
|
-
serviceCode: smithy_client_1.expectString,
|
|
3415
|
-
});
|
|
3416
|
-
Object.assign(contents, doc);
|
|
3417
|
-
const exception = new models_0_1.ThrottlingException({
|
|
3418
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3419
|
-
...contents,
|
|
3420
|
-
});
|
|
3421
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3422
|
-
};
|
|
3423
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
3424
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3425
|
-
const data = parsedOutput.body;
|
|
3426
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3427
|
-
fieldList: smithy_client_1._json,
|
|
3428
|
-
message: smithy_client_1.expectString,
|
|
3429
|
-
reason: smithy_client_1.expectString,
|
|
3430
|
-
});
|
|
3431
|
-
Object.assign(contents, doc);
|
|
3432
|
-
const exception = new models_0_1.ValidationException({
|
|
3433
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3434
|
-
...contents,
|
|
3435
|
-
});
|
|
3436
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3437
|
-
};
|
|
3438
|
-
const de_AccessLogSubscriptionList = (output, context) => {
|
|
3439
|
-
const retVal = (output || [])
|
|
3440
|
-
.filter((e) => e != null)
|
|
3441
|
-
.map((entry) => {
|
|
3442
|
-
return de_AccessLogSubscriptionSummary(entry, context);
|
|
3443
|
-
});
|
|
3444
|
-
return retVal;
|
|
3445
|
-
};
|
|
3446
|
-
const de_AccessLogSubscriptionSummary = (output, context) => {
|
|
3447
|
-
return (0, smithy_client_1.take)(output, {
|
|
3448
|
-
arn: smithy_client_1.expectString,
|
|
3449
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3450
|
-
destinationArn: smithy_client_1.expectString,
|
|
3451
|
-
id: smithy_client_1.expectString,
|
|
3452
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3453
|
-
resourceArn: smithy_client_1.expectString,
|
|
3454
|
-
resourceId: smithy_client_1.expectString,
|
|
3455
|
-
});
|
|
3456
|
-
};
|
|
3457
|
-
const de_ListenerSummary = (output, context) => {
|
|
3458
|
-
return (0, smithy_client_1.take)(output, {
|
|
3459
|
-
arn: smithy_client_1.expectString,
|
|
3460
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3461
|
-
id: smithy_client_1.expectString,
|
|
3462
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3463
|
-
name: smithy_client_1.expectString,
|
|
3464
|
-
port: smithy_client_1.expectInt32,
|
|
3465
|
-
protocol: smithy_client_1.expectString,
|
|
3466
|
-
});
|
|
3467
|
-
};
|
|
3468
|
-
const de_ListenerSummaryList = (output, context) => {
|
|
3469
|
-
const retVal = (output || [])
|
|
3470
|
-
.filter((e) => e != null)
|
|
3471
|
-
.map((entry) => {
|
|
3472
|
-
return de_ListenerSummary(entry, context);
|
|
3473
|
-
});
|
|
3474
|
-
return retVal;
|
|
3475
|
-
};
|
|
3476
|
-
const de_RuleSummary = (output, context) => {
|
|
3477
|
-
return (0, smithy_client_1.take)(output, {
|
|
3478
|
-
arn: smithy_client_1.expectString,
|
|
3479
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3480
|
-
id: smithy_client_1.expectString,
|
|
3481
|
-
isDefault: smithy_client_1.expectBoolean,
|
|
3482
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3483
|
-
name: smithy_client_1.expectString,
|
|
3484
|
-
priority: smithy_client_1.expectInt32,
|
|
3485
|
-
});
|
|
3486
|
-
};
|
|
3487
|
-
const de_RuleSummaryList = (output, context) => {
|
|
3488
|
-
const retVal = (output || [])
|
|
3489
|
-
.filter((e) => e != null)
|
|
3490
|
-
.map((entry) => {
|
|
3491
|
-
return de_RuleSummary(entry, context);
|
|
3492
|
-
});
|
|
3493
|
-
return retVal;
|
|
3494
|
-
};
|
|
3495
|
-
const de_ServiceList = (output, context) => {
|
|
3496
|
-
const retVal = (output || [])
|
|
3497
|
-
.filter((e) => e != null)
|
|
3498
|
-
.map((entry) => {
|
|
3499
|
-
return de_ServiceSummary(entry, context);
|
|
3500
|
-
});
|
|
3501
|
-
return retVal;
|
|
3502
|
-
};
|
|
3503
|
-
const de_ServiceNetworkList = (output, context) => {
|
|
3504
|
-
const retVal = (output || [])
|
|
3505
|
-
.filter((e) => e != null)
|
|
3506
|
-
.map((entry) => {
|
|
3507
|
-
return de_ServiceNetworkSummary(entry, context);
|
|
3508
|
-
});
|
|
3509
|
-
return retVal;
|
|
3510
|
-
};
|
|
3511
|
-
const de_ServiceNetworkServiceAssociationList = (output, context) => {
|
|
3512
|
-
const retVal = (output || [])
|
|
3513
|
-
.filter((e) => e != null)
|
|
3514
|
-
.map((entry) => {
|
|
3515
|
-
return de_ServiceNetworkServiceAssociationSummary(entry, context);
|
|
3516
|
-
});
|
|
3517
|
-
return retVal;
|
|
3518
|
-
};
|
|
3519
|
-
const de_ServiceNetworkServiceAssociationSummary = (output, context) => {
|
|
3520
|
-
return (0, smithy_client_1.take)(output, {
|
|
3521
|
-
arn: smithy_client_1.expectString,
|
|
3522
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3523
|
-
createdBy: smithy_client_1.expectString,
|
|
3524
|
-
customDomainName: smithy_client_1.expectString,
|
|
3525
|
-
dnsEntry: smithy_client_1._json,
|
|
3526
|
-
id: smithy_client_1.expectString,
|
|
3527
|
-
serviceArn: smithy_client_1.expectString,
|
|
3528
|
-
serviceId: smithy_client_1.expectString,
|
|
3529
|
-
serviceName: smithy_client_1.expectString,
|
|
3530
|
-
serviceNetworkArn: smithy_client_1.expectString,
|
|
3531
|
-
serviceNetworkId: smithy_client_1.expectString,
|
|
3532
|
-
serviceNetworkName: smithy_client_1.expectString,
|
|
3533
|
-
status: smithy_client_1.expectString,
|
|
3534
|
-
});
|
|
3535
|
-
};
|
|
3536
|
-
const de_ServiceNetworkSummary = (output, context) => {
|
|
3537
|
-
return (0, smithy_client_1.take)(output, {
|
|
3538
|
-
arn: smithy_client_1.expectString,
|
|
3539
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3540
|
-
id: smithy_client_1.expectString,
|
|
3541
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3542
|
-
name: smithy_client_1.expectString,
|
|
3543
|
-
numberOfAssociatedServices: smithy_client_1.expectLong,
|
|
3544
|
-
numberOfAssociatedVPCs: smithy_client_1.expectLong,
|
|
3545
|
-
});
|
|
3546
|
-
};
|
|
3547
|
-
const de_ServiceNetworkVpcAssociationList = (output, context) => {
|
|
3548
|
-
const retVal = (output || [])
|
|
3549
|
-
.filter((e) => e != null)
|
|
3550
|
-
.map((entry) => {
|
|
3551
|
-
return de_ServiceNetworkVpcAssociationSummary(entry, context);
|
|
3552
|
-
});
|
|
3553
|
-
return retVal;
|
|
3554
|
-
};
|
|
3555
|
-
const de_ServiceNetworkVpcAssociationSummary = (output, context) => {
|
|
3556
|
-
return (0, smithy_client_1.take)(output, {
|
|
3557
|
-
arn: smithy_client_1.expectString,
|
|
3558
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3559
|
-
createdBy: smithy_client_1.expectString,
|
|
3560
|
-
id: smithy_client_1.expectString,
|
|
3561
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3562
|
-
serviceNetworkArn: smithy_client_1.expectString,
|
|
3563
|
-
serviceNetworkId: smithy_client_1.expectString,
|
|
3564
|
-
serviceNetworkName: smithy_client_1.expectString,
|
|
3565
|
-
status: smithy_client_1.expectString,
|
|
3566
|
-
vpcId: smithy_client_1.expectString,
|
|
3567
|
-
});
|
|
3568
|
-
};
|
|
3569
|
-
const de_ServiceSummary = (output, context) => {
|
|
3570
|
-
return (0, smithy_client_1.take)(output, {
|
|
3571
|
-
arn: smithy_client_1.expectString,
|
|
3572
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3573
|
-
customDomainName: smithy_client_1.expectString,
|
|
3574
|
-
dnsEntry: smithy_client_1._json,
|
|
3575
|
-
id: smithy_client_1.expectString,
|
|
3576
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3577
|
-
name: smithy_client_1.expectString,
|
|
3578
|
-
status: smithy_client_1.expectString,
|
|
3579
|
-
});
|
|
3580
|
-
};
|
|
3581
|
-
const de_TargetGroupList = (output, context) => {
|
|
3582
|
-
const retVal = (output || [])
|
|
3583
|
-
.filter((e) => e != null)
|
|
3584
|
-
.map((entry) => {
|
|
3585
|
-
return de_TargetGroupSummary(entry, context);
|
|
3586
|
-
});
|
|
3587
|
-
return retVal;
|
|
3588
|
-
};
|
|
3589
|
-
const de_TargetGroupSummary = (output, context) => {
|
|
3590
|
-
return (0, smithy_client_1.take)(output, {
|
|
3591
|
-
arn: smithy_client_1.expectString,
|
|
3592
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3593
|
-
id: smithy_client_1.expectString,
|
|
3594
|
-
ipAddressType: smithy_client_1.expectString,
|
|
3595
|
-
lambdaEventStructureVersion: smithy_client_1.expectString,
|
|
3596
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3597
|
-
name: smithy_client_1.expectString,
|
|
3598
|
-
port: smithy_client_1.expectInt32,
|
|
3599
|
-
protocol: smithy_client_1.expectString,
|
|
3600
|
-
serviceArns: smithy_client_1._json,
|
|
3601
|
-
status: smithy_client_1.expectString,
|
|
3602
|
-
type: smithy_client_1.expectString,
|
|
3603
|
-
vpcIdentifier: smithy_client_1.expectString,
|
|
3604
|
-
});
|
|
3605
|
-
};
|
|
3606
|
-
const deserializeMetadata = (output) => ({
|
|
3607
|
-
httpStatusCode: output.statusCode,
|
|
3608
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
3609
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3610
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
3611
|
-
});
|
|
3612
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3613
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
3614
|
-
value !== null &&
|
|
3615
|
-
value !== "" &&
|
|
3616
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
3617
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
3618
|
-
const _mR = "maxResults";
|
|
3619
|
-
const _nT = "nextToken";
|
|
3620
|
-
const _rAS = "retryAfterSeconds";
|
|
3621
|
-
const _rI = "resourceIdentifier";
|
|
3622
|
-
const _ra = "retry-after";
|
|
3623
|
-
const _sI = "serviceIdentifier";
|
|
3624
|
-
const _sNI = "serviceNetworkIdentifier";
|
|
3625
|
-
const _tGT = "targetGroupType";
|
|
3626
|
-
const _tK = "tagKeys";
|
|
3627
|
-
const _vI = "vpcIdentifier";
|
|
3628
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3629
|
-
if (encoded.length) {
|
|
3630
|
-
return JSON.parse(encoded);
|
|
3631
|
-
}
|
|
3632
|
-
return {};
|
|
3633
|
-
});
|
|
3634
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
3635
|
-
const value = await parseBody(errorBody, context);
|
|
3636
|
-
value.message = value.message ?? value.Message;
|
|
3637
|
-
return value;
|
|
3638
|
-
};
|
|
3639
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
3640
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3641
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
3642
|
-
let cleanValue = rawValue;
|
|
3643
|
-
if (typeof cleanValue === "number") {
|
|
3644
|
-
cleanValue = cleanValue.toString();
|
|
3645
|
-
}
|
|
3646
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
3647
|
-
cleanValue = cleanValue.split(",")[0];
|
|
3648
|
-
}
|
|
3649
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
3650
|
-
cleanValue = cleanValue.split(":")[0];
|
|
3651
|
-
}
|
|
3652
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
3653
|
-
cleanValue = cleanValue.split("#")[1];
|
|
3654
|
-
}
|
|
3655
|
-
return cleanValue;
|
|
3656
|
-
};
|
|
3657
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
3658
|
-
if (headerKey !== undefined) {
|
|
3659
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
3660
|
-
}
|
|
3661
|
-
if (data.code !== undefined) {
|
|
3662
|
-
return sanitizeErrorCode(data.code);
|
|
3663
|
-
}
|
|
3664
|
-
if (data["__type"] !== undefined) {
|
|
3665
|
-
return sanitizeErrorCode(data["__type"]);
|
|
3666
|
-
}
|
|
3667
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|