@aws-sdk/client-greengrass 3.928.0 → 3.929.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +3347 -3283
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/GreengrassClient.js +2 -0
- package/dist-es/commands/AssociateRoleToGroupCommand.js +3 -9
- package/dist-es/commands/AssociateServiceRoleToAccountCommand.js +3 -9
- package/dist-es/commands/CreateConnectorDefinitionCommand.js +3 -9
- package/dist-es/commands/CreateConnectorDefinitionVersionCommand.js +3 -9
- package/dist-es/commands/CreateCoreDefinitionCommand.js +3 -9
- package/dist-es/commands/CreateCoreDefinitionVersionCommand.js +3 -9
- package/dist-es/commands/CreateDeploymentCommand.js +3 -9
- package/dist-es/commands/CreateDeviceDefinitionCommand.js +3 -9
- package/dist-es/commands/CreateDeviceDefinitionVersionCommand.js +3 -9
- package/dist-es/commands/CreateFunctionDefinitionCommand.js +3 -9
- package/dist-es/commands/CreateFunctionDefinitionVersionCommand.js +3 -9
- package/dist-es/commands/CreateGroupCertificateAuthorityCommand.js +3 -9
- package/dist-es/commands/CreateGroupCommand.js +3 -9
- package/dist-es/commands/CreateGroupVersionCommand.js +3 -9
- package/dist-es/commands/CreateLoggerDefinitionCommand.js +3 -9
- package/dist-es/commands/CreateLoggerDefinitionVersionCommand.js +3 -9
- package/dist-es/commands/CreateResourceDefinitionCommand.js +3 -9
- package/dist-es/commands/CreateResourceDefinitionVersionCommand.js +3 -9
- package/dist-es/commands/CreateSoftwareUpdateJobCommand.js +3 -9
- package/dist-es/commands/CreateSubscriptionDefinitionCommand.js +3 -9
- package/dist-es/commands/CreateSubscriptionDefinitionVersionCommand.js +3 -9
- package/dist-es/commands/DeleteConnectorDefinitionCommand.js +3 -9
- package/dist-es/commands/DeleteCoreDefinitionCommand.js +3 -9
- package/dist-es/commands/DeleteDeviceDefinitionCommand.js +3 -9
- package/dist-es/commands/DeleteFunctionDefinitionCommand.js +3 -9
- package/dist-es/commands/DeleteGroupCommand.js +3 -9
- package/dist-es/commands/DeleteLoggerDefinitionCommand.js +3 -9
- package/dist-es/commands/DeleteResourceDefinitionCommand.js +3 -9
- package/dist-es/commands/DeleteSubscriptionDefinitionCommand.js +3 -9
- package/dist-es/commands/DisassociateRoleFromGroupCommand.js +3 -9
- package/dist-es/commands/DisassociateServiceRoleFromAccountCommand.js +3 -9
- package/dist-es/commands/GetAssociatedRoleCommand.js +3 -9
- package/dist-es/commands/GetBulkDeploymentStatusCommand.js +3 -9
- package/dist-es/commands/GetConnectivityInfoCommand.js +3 -9
- package/dist-es/commands/GetConnectorDefinitionCommand.js +3 -9
- package/dist-es/commands/GetConnectorDefinitionVersionCommand.js +3 -9
- package/dist-es/commands/GetCoreDefinitionCommand.js +3 -9
- package/dist-es/commands/GetCoreDefinitionVersionCommand.js +3 -9
- package/dist-es/commands/GetDeploymentStatusCommand.js +3 -9
- package/dist-es/commands/GetDeviceDefinitionCommand.js +3 -9
- package/dist-es/commands/GetDeviceDefinitionVersionCommand.js +3 -9
- package/dist-es/commands/GetFunctionDefinitionCommand.js +3 -9
- package/dist-es/commands/GetFunctionDefinitionVersionCommand.js +3 -9
- package/dist-es/commands/GetGroupCertificateAuthorityCommand.js +3 -9
- package/dist-es/commands/GetGroupCertificateConfigurationCommand.js +3 -9
- package/dist-es/commands/GetGroupCommand.js +3 -9
- package/dist-es/commands/GetGroupVersionCommand.js +3 -9
- package/dist-es/commands/GetLoggerDefinitionCommand.js +3 -9
- package/dist-es/commands/GetLoggerDefinitionVersionCommand.js +3 -9
- package/dist-es/commands/GetResourceDefinitionCommand.js +3 -9
- package/dist-es/commands/GetResourceDefinitionVersionCommand.js +3 -9
- package/dist-es/commands/GetServiceRoleForAccountCommand.js +3 -9
- package/dist-es/commands/GetSubscriptionDefinitionCommand.js +3 -9
- package/dist-es/commands/GetSubscriptionDefinitionVersionCommand.js +3 -9
- package/dist-es/commands/GetThingRuntimeConfigurationCommand.js +3 -9
- package/dist-es/commands/ListBulkDeploymentDetailedReportsCommand.js +3 -9
- package/dist-es/commands/ListBulkDeploymentsCommand.js +3 -9
- package/dist-es/commands/ListConnectorDefinitionVersionsCommand.js +3 -9
- package/dist-es/commands/ListConnectorDefinitionsCommand.js +3 -9
- package/dist-es/commands/ListCoreDefinitionVersionsCommand.js +3 -9
- package/dist-es/commands/ListCoreDefinitionsCommand.js +3 -9
- package/dist-es/commands/ListDeploymentsCommand.js +3 -9
- package/dist-es/commands/ListDeviceDefinitionVersionsCommand.js +3 -9
- package/dist-es/commands/ListDeviceDefinitionsCommand.js +3 -9
- package/dist-es/commands/ListFunctionDefinitionVersionsCommand.js +3 -9
- package/dist-es/commands/ListFunctionDefinitionsCommand.js +3 -9
- package/dist-es/commands/ListGroupCertificateAuthoritiesCommand.js +3 -9
- package/dist-es/commands/ListGroupVersionsCommand.js +3 -9
- package/dist-es/commands/ListGroupsCommand.js +3 -9
- package/dist-es/commands/ListLoggerDefinitionVersionsCommand.js +3 -9
- package/dist-es/commands/ListLoggerDefinitionsCommand.js +3 -9
- package/dist-es/commands/ListResourceDefinitionVersionsCommand.js +3 -9
- package/dist-es/commands/ListResourceDefinitionsCommand.js +3 -9
- package/dist-es/commands/ListSubscriptionDefinitionVersionsCommand.js +3 -9
- package/dist-es/commands/ListSubscriptionDefinitionsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ResetDeploymentsCommand.js +3 -9
- package/dist-es/commands/StartBulkDeploymentCommand.js +3 -9
- package/dist-es/commands/StopBulkDeploymentCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateConnectivityInfoCommand.js +3 -9
- package/dist-es/commands/UpdateConnectorDefinitionCommand.js +3 -9
- package/dist-es/commands/UpdateCoreDefinitionCommand.js +3 -9
- package/dist-es/commands/UpdateDeviceDefinitionCommand.js +3 -9
- package/dist-es/commands/UpdateFunctionDefinitionCommand.js +3 -9
- package/dist-es/commands/UpdateGroupCertificateConfigurationCommand.js +3 -9
- package/dist-es/commands/UpdateGroupCommand.js +3 -9
- package/dist-es/commands/UpdateLoggerDefinitionCommand.js +3 -9
- package/dist-es/commands/UpdateResourceDefinitionCommand.js +3 -9
- package/dist-es/commands/UpdateSubscriptionDefinitionCommand.js +3 -9
- package/dist-es/commands/UpdateThingRuntimeConfigurationCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +3164 -0
- package/dist-types/GreengrassClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +343 -0
- package/dist-types/ts3.4/GreengrassClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +348 -0
- package/package.json +2 -2
- package/dist-es/protocols/Aws_restJson1.js +0 -2639
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -830
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -1109
|
@@ -1,2639 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { GreengrassServiceException as __BaseException } from "../models/GreengrassServiceException";
|
|
5
|
-
import { BadRequestException, InternalServerErrorException, } from "../models/models_0";
|
|
6
|
-
export const se_AssociateRoleToGroupCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {
|
|
9
|
-
"content-type": "application/json",
|
|
10
|
-
};
|
|
11
|
-
b.bp("/greengrass/groups/{GroupId}/role");
|
|
12
|
-
b.p("GroupId", () => input.GroupId, "{GroupId}", false);
|
|
13
|
-
let body;
|
|
14
|
-
body = JSON.stringify(take(input, {
|
|
15
|
-
RoleArn: [],
|
|
16
|
-
}));
|
|
17
|
-
b.m("PUT").h(headers).b(body);
|
|
18
|
-
return b.build();
|
|
19
|
-
};
|
|
20
|
-
export const se_AssociateServiceRoleToAccountCommand = async (input, context) => {
|
|
21
|
-
const b = rb(input, context);
|
|
22
|
-
const headers = {
|
|
23
|
-
"content-type": "application/json",
|
|
24
|
-
};
|
|
25
|
-
b.bp("/greengrass/servicerole");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(take(input, {
|
|
28
|
-
RoleArn: [],
|
|
29
|
-
}));
|
|
30
|
-
b.m("PUT").h(headers).b(body);
|
|
31
|
-
return b.build();
|
|
32
|
-
};
|
|
33
|
-
export const se_CreateConnectorDefinitionCommand = async (input, context) => {
|
|
34
|
-
const b = rb(input, context);
|
|
35
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
36
|
-
"content-type": "application/json",
|
|
37
|
-
[_xact]: input[_ACT],
|
|
38
|
-
});
|
|
39
|
-
b.bp("/greengrass/definition/connectors");
|
|
40
|
-
let body;
|
|
41
|
-
body = JSON.stringify(take(input, {
|
|
42
|
-
InitialVersion: (_) => _json(_),
|
|
43
|
-
Name: [],
|
|
44
|
-
tags: (_) => _json(_),
|
|
45
|
-
}));
|
|
46
|
-
b.m("POST").h(headers).b(body);
|
|
47
|
-
return b.build();
|
|
48
|
-
};
|
|
49
|
-
export const se_CreateConnectorDefinitionVersionCommand = async (input, context) => {
|
|
50
|
-
const b = rb(input, context);
|
|
51
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
52
|
-
"content-type": "application/json",
|
|
53
|
-
[_xact]: input[_ACT],
|
|
54
|
-
});
|
|
55
|
-
b.bp("/greengrass/definition/connectors/{ConnectorDefinitionId}/versions");
|
|
56
|
-
b.p("ConnectorDefinitionId", () => input.ConnectorDefinitionId, "{ConnectorDefinitionId}", false);
|
|
57
|
-
let body;
|
|
58
|
-
body = JSON.stringify(take(input, {
|
|
59
|
-
Connectors: (_) => _json(_),
|
|
60
|
-
}));
|
|
61
|
-
b.m("POST").h(headers).b(body);
|
|
62
|
-
return b.build();
|
|
63
|
-
};
|
|
64
|
-
export const se_CreateCoreDefinitionCommand = async (input, context) => {
|
|
65
|
-
const b = rb(input, context);
|
|
66
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
67
|
-
"content-type": "application/json",
|
|
68
|
-
[_xact]: input[_ACT],
|
|
69
|
-
});
|
|
70
|
-
b.bp("/greengrass/definition/cores");
|
|
71
|
-
let body;
|
|
72
|
-
body = JSON.stringify(take(input, {
|
|
73
|
-
InitialVersion: (_) => _json(_),
|
|
74
|
-
Name: [],
|
|
75
|
-
tags: (_) => _json(_),
|
|
76
|
-
}));
|
|
77
|
-
b.m("POST").h(headers).b(body);
|
|
78
|
-
return b.build();
|
|
79
|
-
};
|
|
80
|
-
export const se_CreateCoreDefinitionVersionCommand = async (input, context) => {
|
|
81
|
-
const b = rb(input, context);
|
|
82
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
83
|
-
"content-type": "application/json",
|
|
84
|
-
[_xact]: input[_ACT],
|
|
85
|
-
});
|
|
86
|
-
b.bp("/greengrass/definition/cores/{CoreDefinitionId}/versions");
|
|
87
|
-
b.p("CoreDefinitionId", () => input.CoreDefinitionId, "{CoreDefinitionId}", false);
|
|
88
|
-
let body;
|
|
89
|
-
body = JSON.stringify(take(input, {
|
|
90
|
-
Cores: (_) => _json(_),
|
|
91
|
-
}));
|
|
92
|
-
b.m("POST").h(headers).b(body);
|
|
93
|
-
return b.build();
|
|
94
|
-
};
|
|
95
|
-
export const se_CreateDeploymentCommand = async (input, context) => {
|
|
96
|
-
const b = rb(input, context);
|
|
97
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
98
|
-
"content-type": "application/json",
|
|
99
|
-
[_xact]: input[_ACT],
|
|
100
|
-
});
|
|
101
|
-
b.bp("/greengrass/groups/{GroupId}/deployments");
|
|
102
|
-
b.p("GroupId", () => input.GroupId, "{GroupId}", false);
|
|
103
|
-
let body;
|
|
104
|
-
body = JSON.stringify(take(input, {
|
|
105
|
-
DeploymentId: [],
|
|
106
|
-
DeploymentType: [],
|
|
107
|
-
GroupVersionId: [],
|
|
108
|
-
}));
|
|
109
|
-
b.m("POST").h(headers).b(body);
|
|
110
|
-
return b.build();
|
|
111
|
-
};
|
|
112
|
-
export const se_CreateDeviceDefinitionCommand = async (input, context) => {
|
|
113
|
-
const b = rb(input, context);
|
|
114
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
115
|
-
"content-type": "application/json",
|
|
116
|
-
[_xact]: input[_ACT],
|
|
117
|
-
});
|
|
118
|
-
b.bp("/greengrass/definition/devices");
|
|
119
|
-
let body;
|
|
120
|
-
body = JSON.stringify(take(input, {
|
|
121
|
-
InitialVersion: (_) => _json(_),
|
|
122
|
-
Name: [],
|
|
123
|
-
tags: (_) => _json(_),
|
|
124
|
-
}));
|
|
125
|
-
b.m("POST").h(headers).b(body);
|
|
126
|
-
return b.build();
|
|
127
|
-
};
|
|
128
|
-
export const se_CreateDeviceDefinitionVersionCommand = async (input, context) => {
|
|
129
|
-
const b = rb(input, context);
|
|
130
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
131
|
-
"content-type": "application/json",
|
|
132
|
-
[_xact]: input[_ACT],
|
|
133
|
-
});
|
|
134
|
-
b.bp("/greengrass/definition/devices/{DeviceDefinitionId}/versions");
|
|
135
|
-
b.p("DeviceDefinitionId", () => input.DeviceDefinitionId, "{DeviceDefinitionId}", false);
|
|
136
|
-
let body;
|
|
137
|
-
body = JSON.stringify(take(input, {
|
|
138
|
-
Devices: (_) => _json(_),
|
|
139
|
-
}));
|
|
140
|
-
b.m("POST").h(headers).b(body);
|
|
141
|
-
return b.build();
|
|
142
|
-
};
|
|
143
|
-
export const se_CreateFunctionDefinitionCommand = async (input, context) => {
|
|
144
|
-
const b = rb(input, context);
|
|
145
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
146
|
-
"content-type": "application/json",
|
|
147
|
-
[_xact]: input[_ACT],
|
|
148
|
-
});
|
|
149
|
-
b.bp("/greengrass/definition/functions");
|
|
150
|
-
let body;
|
|
151
|
-
body = JSON.stringify(take(input, {
|
|
152
|
-
InitialVersion: (_) => _json(_),
|
|
153
|
-
Name: [],
|
|
154
|
-
tags: (_) => _json(_),
|
|
155
|
-
}));
|
|
156
|
-
b.m("POST").h(headers).b(body);
|
|
157
|
-
return b.build();
|
|
158
|
-
};
|
|
159
|
-
export const se_CreateFunctionDefinitionVersionCommand = async (input, context) => {
|
|
160
|
-
const b = rb(input, context);
|
|
161
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
162
|
-
"content-type": "application/json",
|
|
163
|
-
[_xact]: input[_ACT],
|
|
164
|
-
});
|
|
165
|
-
b.bp("/greengrass/definition/functions/{FunctionDefinitionId}/versions");
|
|
166
|
-
b.p("FunctionDefinitionId", () => input.FunctionDefinitionId, "{FunctionDefinitionId}", false);
|
|
167
|
-
let body;
|
|
168
|
-
body = JSON.stringify(take(input, {
|
|
169
|
-
DefaultConfig: (_) => _json(_),
|
|
170
|
-
Functions: (_) => _json(_),
|
|
171
|
-
}));
|
|
172
|
-
b.m("POST").h(headers).b(body);
|
|
173
|
-
return b.build();
|
|
174
|
-
};
|
|
175
|
-
export const se_CreateGroupCommand = async (input, context) => {
|
|
176
|
-
const b = rb(input, context);
|
|
177
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
178
|
-
"content-type": "application/json",
|
|
179
|
-
[_xact]: input[_ACT],
|
|
180
|
-
});
|
|
181
|
-
b.bp("/greengrass/groups");
|
|
182
|
-
let body;
|
|
183
|
-
body = JSON.stringify(take(input, {
|
|
184
|
-
InitialVersion: (_) => _json(_),
|
|
185
|
-
Name: [],
|
|
186
|
-
tags: (_) => _json(_),
|
|
187
|
-
}));
|
|
188
|
-
b.m("POST").h(headers).b(body);
|
|
189
|
-
return b.build();
|
|
190
|
-
};
|
|
191
|
-
export const se_CreateGroupCertificateAuthorityCommand = async (input, context) => {
|
|
192
|
-
const b = rb(input, context);
|
|
193
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
194
|
-
[_xact]: input[_ACT],
|
|
195
|
-
});
|
|
196
|
-
b.bp("/greengrass/groups/{GroupId}/certificateauthorities");
|
|
197
|
-
b.p("GroupId", () => input.GroupId, "{GroupId}", false);
|
|
198
|
-
let body;
|
|
199
|
-
b.m("POST").h(headers).b(body);
|
|
200
|
-
return b.build();
|
|
201
|
-
};
|
|
202
|
-
export const se_CreateGroupVersionCommand = async (input, context) => {
|
|
203
|
-
const b = rb(input, context);
|
|
204
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
205
|
-
"content-type": "application/json",
|
|
206
|
-
[_xact]: input[_ACT],
|
|
207
|
-
});
|
|
208
|
-
b.bp("/greengrass/groups/{GroupId}/versions");
|
|
209
|
-
b.p("GroupId", () => input.GroupId, "{GroupId}", false);
|
|
210
|
-
let body;
|
|
211
|
-
body = JSON.stringify(take(input, {
|
|
212
|
-
ConnectorDefinitionVersionArn: [],
|
|
213
|
-
CoreDefinitionVersionArn: [],
|
|
214
|
-
DeviceDefinitionVersionArn: [],
|
|
215
|
-
FunctionDefinitionVersionArn: [],
|
|
216
|
-
LoggerDefinitionVersionArn: [],
|
|
217
|
-
ResourceDefinitionVersionArn: [],
|
|
218
|
-
SubscriptionDefinitionVersionArn: [],
|
|
219
|
-
}));
|
|
220
|
-
b.m("POST").h(headers).b(body);
|
|
221
|
-
return b.build();
|
|
222
|
-
};
|
|
223
|
-
export const se_CreateLoggerDefinitionCommand = async (input, context) => {
|
|
224
|
-
const b = rb(input, context);
|
|
225
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
226
|
-
"content-type": "application/json",
|
|
227
|
-
[_xact]: input[_ACT],
|
|
228
|
-
});
|
|
229
|
-
b.bp("/greengrass/definition/loggers");
|
|
230
|
-
let body;
|
|
231
|
-
body = JSON.stringify(take(input, {
|
|
232
|
-
InitialVersion: (_) => _json(_),
|
|
233
|
-
Name: [],
|
|
234
|
-
tags: (_) => _json(_),
|
|
235
|
-
}));
|
|
236
|
-
b.m("POST").h(headers).b(body);
|
|
237
|
-
return b.build();
|
|
238
|
-
};
|
|
239
|
-
export const se_CreateLoggerDefinitionVersionCommand = async (input, context) => {
|
|
240
|
-
const b = rb(input, context);
|
|
241
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
242
|
-
"content-type": "application/json",
|
|
243
|
-
[_xact]: input[_ACT],
|
|
244
|
-
});
|
|
245
|
-
b.bp("/greengrass/definition/loggers/{LoggerDefinitionId}/versions");
|
|
246
|
-
b.p("LoggerDefinitionId", () => input.LoggerDefinitionId, "{LoggerDefinitionId}", false);
|
|
247
|
-
let body;
|
|
248
|
-
body = JSON.stringify(take(input, {
|
|
249
|
-
Loggers: (_) => _json(_),
|
|
250
|
-
}));
|
|
251
|
-
b.m("POST").h(headers).b(body);
|
|
252
|
-
return b.build();
|
|
253
|
-
};
|
|
254
|
-
export const se_CreateResourceDefinitionCommand = async (input, context) => {
|
|
255
|
-
const b = rb(input, context);
|
|
256
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
257
|
-
"content-type": "application/json",
|
|
258
|
-
[_xact]: input[_ACT],
|
|
259
|
-
});
|
|
260
|
-
b.bp("/greengrass/definition/resources");
|
|
261
|
-
let body;
|
|
262
|
-
body = JSON.stringify(take(input, {
|
|
263
|
-
InitialVersion: (_) => _json(_),
|
|
264
|
-
Name: [],
|
|
265
|
-
tags: (_) => _json(_),
|
|
266
|
-
}));
|
|
267
|
-
b.m("POST").h(headers).b(body);
|
|
268
|
-
return b.build();
|
|
269
|
-
};
|
|
270
|
-
export const se_CreateResourceDefinitionVersionCommand = async (input, context) => {
|
|
271
|
-
const b = rb(input, context);
|
|
272
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
273
|
-
"content-type": "application/json",
|
|
274
|
-
[_xact]: input[_ACT],
|
|
275
|
-
});
|
|
276
|
-
b.bp("/greengrass/definition/resources/{ResourceDefinitionId}/versions");
|
|
277
|
-
b.p("ResourceDefinitionId", () => input.ResourceDefinitionId, "{ResourceDefinitionId}", false);
|
|
278
|
-
let body;
|
|
279
|
-
body = JSON.stringify(take(input, {
|
|
280
|
-
Resources: (_) => _json(_),
|
|
281
|
-
}));
|
|
282
|
-
b.m("POST").h(headers).b(body);
|
|
283
|
-
return b.build();
|
|
284
|
-
};
|
|
285
|
-
export const se_CreateSoftwareUpdateJobCommand = async (input, context) => {
|
|
286
|
-
const b = rb(input, context);
|
|
287
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
288
|
-
"content-type": "application/json",
|
|
289
|
-
[_xact]: input[_ACT],
|
|
290
|
-
});
|
|
291
|
-
b.bp("/greengrass/updates");
|
|
292
|
-
let body;
|
|
293
|
-
body = JSON.stringify(take(input, {
|
|
294
|
-
S3UrlSignerRole: [],
|
|
295
|
-
SoftwareToUpdate: [],
|
|
296
|
-
UpdateAgentLogLevel: [],
|
|
297
|
-
UpdateTargets: (_) => _json(_),
|
|
298
|
-
UpdateTargetsArchitecture: [],
|
|
299
|
-
UpdateTargetsOperatingSystem: [],
|
|
300
|
-
}));
|
|
301
|
-
b.m("POST").h(headers).b(body);
|
|
302
|
-
return b.build();
|
|
303
|
-
};
|
|
304
|
-
export const se_CreateSubscriptionDefinitionCommand = async (input, context) => {
|
|
305
|
-
const b = rb(input, context);
|
|
306
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
307
|
-
"content-type": "application/json",
|
|
308
|
-
[_xact]: input[_ACT],
|
|
309
|
-
});
|
|
310
|
-
b.bp("/greengrass/definition/subscriptions");
|
|
311
|
-
let body;
|
|
312
|
-
body = JSON.stringify(take(input, {
|
|
313
|
-
InitialVersion: (_) => _json(_),
|
|
314
|
-
Name: [],
|
|
315
|
-
tags: (_) => _json(_),
|
|
316
|
-
}));
|
|
317
|
-
b.m("POST").h(headers).b(body);
|
|
318
|
-
return b.build();
|
|
319
|
-
};
|
|
320
|
-
export const se_CreateSubscriptionDefinitionVersionCommand = async (input, context) => {
|
|
321
|
-
const b = rb(input, context);
|
|
322
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
323
|
-
"content-type": "application/json",
|
|
324
|
-
[_xact]: input[_ACT],
|
|
325
|
-
});
|
|
326
|
-
b.bp("/greengrass/definition/subscriptions/{SubscriptionDefinitionId}/versions");
|
|
327
|
-
b.p("SubscriptionDefinitionId", () => input.SubscriptionDefinitionId, "{SubscriptionDefinitionId}", false);
|
|
328
|
-
let body;
|
|
329
|
-
body = JSON.stringify(take(input, {
|
|
330
|
-
Subscriptions: (_) => _json(_),
|
|
331
|
-
}));
|
|
332
|
-
b.m("POST").h(headers).b(body);
|
|
333
|
-
return b.build();
|
|
334
|
-
};
|
|
335
|
-
export const se_DeleteConnectorDefinitionCommand = async (input, context) => {
|
|
336
|
-
const b = rb(input, context);
|
|
337
|
-
const headers = {};
|
|
338
|
-
b.bp("/greengrass/definition/connectors/{ConnectorDefinitionId}");
|
|
339
|
-
b.p("ConnectorDefinitionId", () => input.ConnectorDefinitionId, "{ConnectorDefinitionId}", false);
|
|
340
|
-
let body;
|
|
341
|
-
b.m("DELETE").h(headers).b(body);
|
|
342
|
-
return b.build();
|
|
343
|
-
};
|
|
344
|
-
export const se_DeleteCoreDefinitionCommand = async (input, context) => {
|
|
345
|
-
const b = rb(input, context);
|
|
346
|
-
const headers = {};
|
|
347
|
-
b.bp("/greengrass/definition/cores/{CoreDefinitionId}");
|
|
348
|
-
b.p("CoreDefinitionId", () => input.CoreDefinitionId, "{CoreDefinitionId}", false);
|
|
349
|
-
let body;
|
|
350
|
-
b.m("DELETE").h(headers).b(body);
|
|
351
|
-
return b.build();
|
|
352
|
-
};
|
|
353
|
-
export const se_DeleteDeviceDefinitionCommand = async (input, context) => {
|
|
354
|
-
const b = rb(input, context);
|
|
355
|
-
const headers = {};
|
|
356
|
-
b.bp("/greengrass/definition/devices/{DeviceDefinitionId}");
|
|
357
|
-
b.p("DeviceDefinitionId", () => input.DeviceDefinitionId, "{DeviceDefinitionId}", false);
|
|
358
|
-
let body;
|
|
359
|
-
b.m("DELETE").h(headers).b(body);
|
|
360
|
-
return b.build();
|
|
361
|
-
};
|
|
362
|
-
export const se_DeleteFunctionDefinitionCommand = async (input, context) => {
|
|
363
|
-
const b = rb(input, context);
|
|
364
|
-
const headers = {};
|
|
365
|
-
b.bp("/greengrass/definition/functions/{FunctionDefinitionId}");
|
|
366
|
-
b.p("FunctionDefinitionId", () => input.FunctionDefinitionId, "{FunctionDefinitionId}", false);
|
|
367
|
-
let body;
|
|
368
|
-
b.m("DELETE").h(headers).b(body);
|
|
369
|
-
return b.build();
|
|
370
|
-
};
|
|
371
|
-
export const se_DeleteGroupCommand = async (input, context) => {
|
|
372
|
-
const b = rb(input, context);
|
|
373
|
-
const headers = {};
|
|
374
|
-
b.bp("/greengrass/groups/{GroupId}");
|
|
375
|
-
b.p("GroupId", () => input.GroupId, "{GroupId}", false);
|
|
376
|
-
let body;
|
|
377
|
-
b.m("DELETE").h(headers).b(body);
|
|
378
|
-
return b.build();
|
|
379
|
-
};
|
|
380
|
-
export const se_DeleteLoggerDefinitionCommand = async (input, context) => {
|
|
381
|
-
const b = rb(input, context);
|
|
382
|
-
const headers = {};
|
|
383
|
-
b.bp("/greengrass/definition/loggers/{LoggerDefinitionId}");
|
|
384
|
-
b.p("LoggerDefinitionId", () => input.LoggerDefinitionId, "{LoggerDefinitionId}", false);
|
|
385
|
-
let body;
|
|
386
|
-
b.m("DELETE").h(headers).b(body);
|
|
387
|
-
return b.build();
|
|
388
|
-
};
|
|
389
|
-
export const se_DeleteResourceDefinitionCommand = async (input, context) => {
|
|
390
|
-
const b = rb(input, context);
|
|
391
|
-
const headers = {};
|
|
392
|
-
b.bp("/greengrass/definition/resources/{ResourceDefinitionId}");
|
|
393
|
-
b.p("ResourceDefinitionId", () => input.ResourceDefinitionId, "{ResourceDefinitionId}", false);
|
|
394
|
-
let body;
|
|
395
|
-
b.m("DELETE").h(headers).b(body);
|
|
396
|
-
return b.build();
|
|
397
|
-
};
|
|
398
|
-
export const se_DeleteSubscriptionDefinitionCommand = async (input, context) => {
|
|
399
|
-
const b = rb(input, context);
|
|
400
|
-
const headers = {};
|
|
401
|
-
b.bp("/greengrass/definition/subscriptions/{SubscriptionDefinitionId}");
|
|
402
|
-
b.p("SubscriptionDefinitionId", () => input.SubscriptionDefinitionId, "{SubscriptionDefinitionId}", false);
|
|
403
|
-
let body;
|
|
404
|
-
b.m("DELETE").h(headers).b(body);
|
|
405
|
-
return b.build();
|
|
406
|
-
};
|
|
407
|
-
export const se_DisassociateRoleFromGroupCommand = async (input, context) => {
|
|
408
|
-
const b = rb(input, context);
|
|
409
|
-
const headers = {};
|
|
410
|
-
b.bp("/greengrass/groups/{GroupId}/role");
|
|
411
|
-
b.p("GroupId", () => input.GroupId, "{GroupId}", false);
|
|
412
|
-
let body;
|
|
413
|
-
b.m("DELETE").h(headers).b(body);
|
|
414
|
-
return b.build();
|
|
415
|
-
};
|
|
416
|
-
export const se_DisassociateServiceRoleFromAccountCommand = async (input, context) => {
|
|
417
|
-
const b = rb(input, context);
|
|
418
|
-
const headers = {};
|
|
419
|
-
b.bp("/greengrass/servicerole");
|
|
420
|
-
let body;
|
|
421
|
-
b.m("DELETE").h(headers).b(body);
|
|
422
|
-
return b.build();
|
|
423
|
-
};
|
|
424
|
-
export const se_GetAssociatedRoleCommand = async (input, context) => {
|
|
425
|
-
const b = rb(input, context);
|
|
426
|
-
const headers = {};
|
|
427
|
-
b.bp("/greengrass/groups/{GroupId}/role");
|
|
428
|
-
b.p("GroupId", () => input.GroupId, "{GroupId}", false);
|
|
429
|
-
let body;
|
|
430
|
-
b.m("GET").h(headers).b(body);
|
|
431
|
-
return b.build();
|
|
432
|
-
};
|
|
433
|
-
export const se_GetBulkDeploymentStatusCommand = async (input, context) => {
|
|
434
|
-
const b = rb(input, context);
|
|
435
|
-
const headers = {};
|
|
436
|
-
b.bp("/greengrass/bulk/deployments/{BulkDeploymentId}/status");
|
|
437
|
-
b.p("BulkDeploymentId", () => input.BulkDeploymentId, "{BulkDeploymentId}", false);
|
|
438
|
-
let body;
|
|
439
|
-
b.m("GET").h(headers).b(body);
|
|
440
|
-
return b.build();
|
|
441
|
-
};
|
|
442
|
-
export const se_GetConnectivityInfoCommand = async (input, context) => {
|
|
443
|
-
const b = rb(input, context);
|
|
444
|
-
const headers = {};
|
|
445
|
-
b.bp("/greengrass/things/{ThingName}/connectivityInfo");
|
|
446
|
-
b.p("ThingName", () => input.ThingName, "{ThingName}", false);
|
|
447
|
-
let body;
|
|
448
|
-
b.m("GET").h(headers).b(body);
|
|
449
|
-
return b.build();
|
|
450
|
-
};
|
|
451
|
-
export const se_GetConnectorDefinitionCommand = async (input, context) => {
|
|
452
|
-
const b = rb(input, context);
|
|
453
|
-
const headers = {};
|
|
454
|
-
b.bp("/greengrass/definition/connectors/{ConnectorDefinitionId}");
|
|
455
|
-
b.p("ConnectorDefinitionId", () => input.ConnectorDefinitionId, "{ConnectorDefinitionId}", false);
|
|
456
|
-
let body;
|
|
457
|
-
b.m("GET").h(headers).b(body);
|
|
458
|
-
return b.build();
|
|
459
|
-
};
|
|
460
|
-
export const se_GetConnectorDefinitionVersionCommand = async (input, context) => {
|
|
461
|
-
const b = rb(input, context);
|
|
462
|
-
const headers = {};
|
|
463
|
-
b.bp("/greengrass/definition/connectors/{ConnectorDefinitionId}/versions/{ConnectorDefinitionVersionId}");
|
|
464
|
-
b.p("ConnectorDefinitionId", () => input.ConnectorDefinitionId, "{ConnectorDefinitionId}", false);
|
|
465
|
-
b.p("ConnectorDefinitionVersionId", () => input.ConnectorDefinitionVersionId, "{ConnectorDefinitionVersionId}", false);
|
|
466
|
-
const query = map({
|
|
467
|
-
[_NT]: [, input[_NT]],
|
|
468
|
-
});
|
|
469
|
-
let body;
|
|
470
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
471
|
-
return b.build();
|
|
472
|
-
};
|
|
473
|
-
export const se_GetCoreDefinitionCommand = async (input, context) => {
|
|
474
|
-
const b = rb(input, context);
|
|
475
|
-
const headers = {};
|
|
476
|
-
b.bp("/greengrass/definition/cores/{CoreDefinitionId}");
|
|
477
|
-
b.p("CoreDefinitionId", () => input.CoreDefinitionId, "{CoreDefinitionId}", false);
|
|
478
|
-
let body;
|
|
479
|
-
b.m("GET").h(headers).b(body);
|
|
480
|
-
return b.build();
|
|
481
|
-
};
|
|
482
|
-
export const se_GetCoreDefinitionVersionCommand = async (input, context) => {
|
|
483
|
-
const b = rb(input, context);
|
|
484
|
-
const headers = {};
|
|
485
|
-
b.bp("/greengrass/definition/cores/{CoreDefinitionId}/versions/{CoreDefinitionVersionId}");
|
|
486
|
-
b.p("CoreDefinitionId", () => input.CoreDefinitionId, "{CoreDefinitionId}", false);
|
|
487
|
-
b.p("CoreDefinitionVersionId", () => input.CoreDefinitionVersionId, "{CoreDefinitionVersionId}", false);
|
|
488
|
-
let body;
|
|
489
|
-
b.m("GET").h(headers).b(body);
|
|
490
|
-
return b.build();
|
|
491
|
-
};
|
|
492
|
-
export const se_GetDeploymentStatusCommand = async (input, context) => {
|
|
493
|
-
const b = rb(input, context);
|
|
494
|
-
const headers = {};
|
|
495
|
-
b.bp("/greengrass/groups/{GroupId}/deployments/{DeploymentId}/status");
|
|
496
|
-
b.p("DeploymentId", () => input.DeploymentId, "{DeploymentId}", false);
|
|
497
|
-
b.p("GroupId", () => input.GroupId, "{GroupId}", false);
|
|
498
|
-
let body;
|
|
499
|
-
b.m("GET").h(headers).b(body);
|
|
500
|
-
return b.build();
|
|
501
|
-
};
|
|
502
|
-
export const se_GetDeviceDefinitionCommand = async (input, context) => {
|
|
503
|
-
const b = rb(input, context);
|
|
504
|
-
const headers = {};
|
|
505
|
-
b.bp("/greengrass/definition/devices/{DeviceDefinitionId}");
|
|
506
|
-
b.p("DeviceDefinitionId", () => input.DeviceDefinitionId, "{DeviceDefinitionId}", false);
|
|
507
|
-
let body;
|
|
508
|
-
b.m("GET").h(headers).b(body);
|
|
509
|
-
return b.build();
|
|
510
|
-
};
|
|
511
|
-
export const se_GetDeviceDefinitionVersionCommand = async (input, context) => {
|
|
512
|
-
const b = rb(input, context);
|
|
513
|
-
const headers = {};
|
|
514
|
-
b.bp("/greengrass/definition/devices/{DeviceDefinitionId}/versions/{DeviceDefinitionVersionId}");
|
|
515
|
-
b.p("DeviceDefinitionId", () => input.DeviceDefinitionId, "{DeviceDefinitionId}", false);
|
|
516
|
-
b.p("DeviceDefinitionVersionId", () => input.DeviceDefinitionVersionId, "{DeviceDefinitionVersionId}", false);
|
|
517
|
-
const query = map({
|
|
518
|
-
[_NT]: [, input[_NT]],
|
|
519
|
-
});
|
|
520
|
-
let body;
|
|
521
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
522
|
-
return b.build();
|
|
523
|
-
};
|
|
524
|
-
export const se_GetFunctionDefinitionCommand = async (input, context) => {
|
|
525
|
-
const b = rb(input, context);
|
|
526
|
-
const headers = {};
|
|
527
|
-
b.bp("/greengrass/definition/functions/{FunctionDefinitionId}");
|
|
528
|
-
b.p("FunctionDefinitionId", () => input.FunctionDefinitionId, "{FunctionDefinitionId}", false);
|
|
529
|
-
let body;
|
|
530
|
-
b.m("GET").h(headers).b(body);
|
|
531
|
-
return b.build();
|
|
532
|
-
};
|
|
533
|
-
export const se_GetFunctionDefinitionVersionCommand = async (input, context) => {
|
|
534
|
-
const b = rb(input, context);
|
|
535
|
-
const headers = {};
|
|
536
|
-
b.bp("/greengrass/definition/functions/{FunctionDefinitionId}/versions/{FunctionDefinitionVersionId}");
|
|
537
|
-
b.p("FunctionDefinitionId", () => input.FunctionDefinitionId, "{FunctionDefinitionId}", false);
|
|
538
|
-
b.p("FunctionDefinitionVersionId", () => input.FunctionDefinitionVersionId, "{FunctionDefinitionVersionId}", false);
|
|
539
|
-
const query = map({
|
|
540
|
-
[_NT]: [, input[_NT]],
|
|
541
|
-
});
|
|
542
|
-
let body;
|
|
543
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
544
|
-
return b.build();
|
|
545
|
-
};
|
|
546
|
-
export const se_GetGroupCommand = async (input, context) => {
|
|
547
|
-
const b = rb(input, context);
|
|
548
|
-
const headers = {};
|
|
549
|
-
b.bp("/greengrass/groups/{GroupId}");
|
|
550
|
-
b.p("GroupId", () => input.GroupId, "{GroupId}", false);
|
|
551
|
-
let body;
|
|
552
|
-
b.m("GET").h(headers).b(body);
|
|
553
|
-
return b.build();
|
|
554
|
-
};
|
|
555
|
-
export const se_GetGroupCertificateAuthorityCommand = async (input, context) => {
|
|
556
|
-
const b = rb(input, context);
|
|
557
|
-
const headers = {};
|
|
558
|
-
b.bp("/greengrass/groups/{GroupId}/certificateauthorities/{CertificateAuthorityId}");
|
|
559
|
-
b.p("CertificateAuthorityId", () => input.CertificateAuthorityId, "{CertificateAuthorityId}", false);
|
|
560
|
-
b.p("GroupId", () => input.GroupId, "{GroupId}", false);
|
|
561
|
-
let body;
|
|
562
|
-
b.m("GET").h(headers).b(body);
|
|
563
|
-
return b.build();
|
|
564
|
-
};
|
|
565
|
-
export const se_GetGroupCertificateConfigurationCommand = async (input, context) => {
|
|
566
|
-
const b = rb(input, context);
|
|
567
|
-
const headers = {};
|
|
568
|
-
b.bp("/greengrass/groups/{GroupId}/certificateauthorities/configuration/expiry");
|
|
569
|
-
b.p("GroupId", () => input.GroupId, "{GroupId}", false);
|
|
570
|
-
let body;
|
|
571
|
-
b.m("GET").h(headers).b(body);
|
|
572
|
-
return b.build();
|
|
573
|
-
};
|
|
574
|
-
export const se_GetGroupVersionCommand = async (input, context) => {
|
|
575
|
-
const b = rb(input, context);
|
|
576
|
-
const headers = {};
|
|
577
|
-
b.bp("/greengrass/groups/{GroupId}/versions/{GroupVersionId}");
|
|
578
|
-
b.p("GroupId", () => input.GroupId, "{GroupId}", false);
|
|
579
|
-
b.p("GroupVersionId", () => input.GroupVersionId, "{GroupVersionId}", false);
|
|
580
|
-
let body;
|
|
581
|
-
b.m("GET").h(headers).b(body);
|
|
582
|
-
return b.build();
|
|
583
|
-
};
|
|
584
|
-
export const se_GetLoggerDefinitionCommand = async (input, context) => {
|
|
585
|
-
const b = rb(input, context);
|
|
586
|
-
const headers = {};
|
|
587
|
-
b.bp("/greengrass/definition/loggers/{LoggerDefinitionId}");
|
|
588
|
-
b.p("LoggerDefinitionId", () => input.LoggerDefinitionId, "{LoggerDefinitionId}", false);
|
|
589
|
-
let body;
|
|
590
|
-
b.m("GET").h(headers).b(body);
|
|
591
|
-
return b.build();
|
|
592
|
-
};
|
|
593
|
-
export const se_GetLoggerDefinitionVersionCommand = async (input, context) => {
|
|
594
|
-
const b = rb(input, context);
|
|
595
|
-
const headers = {};
|
|
596
|
-
b.bp("/greengrass/definition/loggers/{LoggerDefinitionId}/versions/{LoggerDefinitionVersionId}");
|
|
597
|
-
b.p("LoggerDefinitionId", () => input.LoggerDefinitionId, "{LoggerDefinitionId}", false);
|
|
598
|
-
b.p("LoggerDefinitionVersionId", () => input.LoggerDefinitionVersionId, "{LoggerDefinitionVersionId}", false);
|
|
599
|
-
const query = map({
|
|
600
|
-
[_NT]: [, input[_NT]],
|
|
601
|
-
});
|
|
602
|
-
let body;
|
|
603
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
604
|
-
return b.build();
|
|
605
|
-
};
|
|
606
|
-
export const se_GetResourceDefinitionCommand = async (input, context) => {
|
|
607
|
-
const b = rb(input, context);
|
|
608
|
-
const headers = {};
|
|
609
|
-
b.bp("/greengrass/definition/resources/{ResourceDefinitionId}");
|
|
610
|
-
b.p("ResourceDefinitionId", () => input.ResourceDefinitionId, "{ResourceDefinitionId}", false);
|
|
611
|
-
let body;
|
|
612
|
-
b.m("GET").h(headers).b(body);
|
|
613
|
-
return b.build();
|
|
614
|
-
};
|
|
615
|
-
export const se_GetResourceDefinitionVersionCommand = async (input, context) => {
|
|
616
|
-
const b = rb(input, context);
|
|
617
|
-
const headers = {};
|
|
618
|
-
b.bp("/greengrass/definition/resources/{ResourceDefinitionId}/versions/{ResourceDefinitionVersionId}");
|
|
619
|
-
b.p("ResourceDefinitionId", () => input.ResourceDefinitionId, "{ResourceDefinitionId}", false);
|
|
620
|
-
b.p("ResourceDefinitionVersionId", () => input.ResourceDefinitionVersionId, "{ResourceDefinitionVersionId}", false);
|
|
621
|
-
let body;
|
|
622
|
-
b.m("GET").h(headers).b(body);
|
|
623
|
-
return b.build();
|
|
624
|
-
};
|
|
625
|
-
export const se_GetServiceRoleForAccountCommand = async (input, context) => {
|
|
626
|
-
const b = rb(input, context);
|
|
627
|
-
const headers = {};
|
|
628
|
-
b.bp("/greengrass/servicerole");
|
|
629
|
-
let body;
|
|
630
|
-
b.m("GET").h(headers).b(body);
|
|
631
|
-
return b.build();
|
|
632
|
-
};
|
|
633
|
-
export const se_GetSubscriptionDefinitionCommand = async (input, context) => {
|
|
634
|
-
const b = rb(input, context);
|
|
635
|
-
const headers = {};
|
|
636
|
-
b.bp("/greengrass/definition/subscriptions/{SubscriptionDefinitionId}");
|
|
637
|
-
b.p("SubscriptionDefinitionId", () => input.SubscriptionDefinitionId, "{SubscriptionDefinitionId}", false);
|
|
638
|
-
let body;
|
|
639
|
-
b.m("GET").h(headers).b(body);
|
|
640
|
-
return b.build();
|
|
641
|
-
};
|
|
642
|
-
export const se_GetSubscriptionDefinitionVersionCommand = async (input, context) => {
|
|
643
|
-
const b = rb(input, context);
|
|
644
|
-
const headers = {};
|
|
645
|
-
b.bp("/greengrass/definition/subscriptions/{SubscriptionDefinitionId}/versions/{SubscriptionDefinitionVersionId}");
|
|
646
|
-
b.p("SubscriptionDefinitionId", () => input.SubscriptionDefinitionId, "{SubscriptionDefinitionId}", false);
|
|
647
|
-
b.p("SubscriptionDefinitionVersionId", () => input.SubscriptionDefinitionVersionId, "{SubscriptionDefinitionVersionId}", false);
|
|
648
|
-
const query = map({
|
|
649
|
-
[_NT]: [, input[_NT]],
|
|
650
|
-
});
|
|
651
|
-
let body;
|
|
652
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
653
|
-
return b.build();
|
|
654
|
-
};
|
|
655
|
-
export const se_GetThingRuntimeConfigurationCommand = async (input, context) => {
|
|
656
|
-
const b = rb(input, context);
|
|
657
|
-
const headers = {};
|
|
658
|
-
b.bp("/greengrass/things/{ThingName}/runtimeconfig");
|
|
659
|
-
b.p("ThingName", () => input.ThingName, "{ThingName}", false);
|
|
660
|
-
let body;
|
|
661
|
-
b.m("GET").h(headers).b(body);
|
|
662
|
-
return b.build();
|
|
663
|
-
};
|
|
664
|
-
export const se_ListBulkDeploymentDetailedReportsCommand = async (input, context) => {
|
|
665
|
-
const b = rb(input, context);
|
|
666
|
-
const headers = {};
|
|
667
|
-
b.bp("/greengrass/bulk/deployments/{BulkDeploymentId}/detailed-reports");
|
|
668
|
-
b.p("BulkDeploymentId", () => input.BulkDeploymentId, "{BulkDeploymentId}", false);
|
|
669
|
-
const query = map({
|
|
670
|
-
[_MR]: [, input[_MR]],
|
|
671
|
-
[_NT]: [, input[_NT]],
|
|
672
|
-
});
|
|
673
|
-
let body;
|
|
674
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
675
|
-
return b.build();
|
|
676
|
-
};
|
|
677
|
-
export const se_ListBulkDeploymentsCommand = async (input, context) => {
|
|
678
|
-
const b = rb(input, context);
|
|
679
|
-
const headers = {};
|
|
680
|
-
b.bp("/greengrass/bulk/deployments");
|
|
681
|
-
const query = map({
|
|
682
|
-
[_MR]: [, input[_MR]],
|
|
683
|
-
[_NT]: [, input[_NT]],
|
|
684
|
-
});
|
|
685
|
-
let body;
|
|
686
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
687
|
-
return b.build();
|
|
688
|
-
};
|
|
689
|
-
export const se_ListConnectorDefinitionsCommand = async (input, context) => {
|
|
690
|
-
const b = rb(input, context);
|
|
691
|
-
const headers = {};
|
|
692
|
-
b.bp("/greengrass/definition/connectors");
|
|
693
|
-
const query = map({
|
|
694
|
-
[_MR]: [, input[_MR]],
|
|
695
|
-
[_NT]: [, input[_NT]],
|
|
696
|
-
});
|
|
697
|
-
let body;
|
|
698
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
699
|
-
return b.build();
|
|
700
|
-
};
|
|
701
|
-
export const se_ListConnectorDefinitionVersionsCommand = async (input, context) => {
|
|
702
|
-
const b = rb(input, context);
|
|
703
|
-
const headers = {};
|
|
704
|
-
b.bp("/greengrass/definition/connectors/{ConnectorDefinitionId}/versions");
|
|
705
|
-
b.p("ConnectorDefinitionId", () => input.ConnectorDefinitionId, "{ConnectorDefinitionId}", false);
|
|
706
|
-
const query = map({
|
|
707
|
-
[_MR]: [, input[_MR]],
|
|
708
|
-
[_NT]: [, input[_NT]],
|
|
709
|
-
});
|
|
710
|
-
let body;
|
|
711
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
712
|
-
return b.build();
|
|
713
|
-
};
|
|
714
|
-
export const se_ListCoreDefinitionsCommand = async (input, context) => {
|
|
715
|
-
const b = rb(input, context);
|
|
716
|
-
const headers = {};
|
|
717
|
-
b.bp("/greengrass/definition/cores");
|
|
718
|
-
const query = map({
|
|
719
|
-
[_MR]: [, input[_MR]],
|
|
720
|
-
[_NT]: [, input[_NT]],
|
|
721
|
-
});
|
|
722
|
-
let body;
|
|
723
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
724
|
-
return b.build();
|
|
725
|
-
};
|
|
726
|
-
export const se_ListCoreDefinitionVersionsCommand = async (input, context) => {
|
|
727
|
-
const b = rb(input, context);
|
|
728
|
-
const headers = {};
|
|
729
|
-
b.bp("/greengrass/definition/cores/{CoreDefinitionId}/versions");
|
|
730
|
-
b.p("CoreDefinitionId", () => input.CoreDefinitionId, "{CoreDefinitionId}", false);
|
|
731
|
-
const query = map({
|
|
732
|
-
[_MR]: [, input[_MR]],
|
|
733
|
-
[_NT]: [, input[_NT]],
|
|
734
|
-
});
|
|
735
|
-
let body;
|
|
736
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
737
|
-
return b.build();
|
|
738
|
-
};
|
|
739
|
-
export const se_ListDeploymentsCommand = async (input, context) => {
|
|
740
|
-
const b = rb(input, context);
|
|
741
|
-
const headers = {};
|
|
742
|
-
b.bp("/greengrass/groups/{GroupId}/deployments");
|
|
743
|
-
b.p("GroupId", () => input.GroupId, "{GroupId}", false);
|
|
744
|
-
const query = map({
|
|
745
|
-
[_MR]: [, input[_MR]],
|
|
746
|
-
[_NT]: [, input[_NT]],
|
|
747
|
-
});
|
|
748
|
-
let body;
|
|
749
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
750
|
-
return b.build();
|
|
751
|
-
};
|
|
752
|
-
export const se_ListDeviceDefinitionsCommand = async (input, context) => {
|
|
753
|
-
const b = rb(input, context);
|
|
754
|
-
const headers = {};
|
|
755
|
-
b.bp("/greengrass/definition/devices");
|
|
756
|
-
const query = map({
|
|
757
|
-
[_MR]: [, input[_MR]],
|
|
758
|
-
[_NT]: [, input[_NT]],
|
|
759
|
-
});
|
|
760
|
-
let body;
|
|
761
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
762
|
-
return b.build();
|
|
763
|
-
};
|
|
764
|
-
export const se_ListDeviceDefinitionVersionsCommand = async (input, context) => {
|
|
765
|
-
const b = rb(input, context);
|
|
766
|
-
const headers = {};
|
|
767
|
-
b.bp("/greengrass/definition/devices/{DeviceDefinitionId}/versions");
|
|
768
|
-
b.p("DeviceDefinitionId", () => input.DeviceDefinitionId, "{DeviceDefinitionId}", false);
|
|
769
|
-
const query = map({
|
|
770
|
-
[_MR]: [, input[_MR]],
|
|
771
|
-
[_NT]: [, input[_NT]],
|
|
772
|
-
});
|
|
773
|
-
let body;
|
|
774
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
775
|
-
return b.build();
|
|
776
|
-
};
|
|
777
|
-
export const se_ListFunctionDefinitionsCommand = async (input, context) => {
|
|
778
|
-
const b = rb(input, context);
|
|
779
|
-
const headers = {};
|
|
780
|
-
b.bp("/greengrass/definition/functions");
|
|
781
|
-
const query = map({
|
|
782
|
-
[_MR]: [, input[_MR]],
|
|
783
|
-
[_NT]: [, input[_NT]],
|
|
784
|
-
});
|
|
785
|
-
let body;
|
|
786
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
787
|
-
return b.build();
|
|
788
|
-
};
|
|
789
|
-
export const se_ListFunctionDefinitionVersionsCommand = async (input, context) => {
|
|
790
|
-
const b = rb(input, context);
|
|
791
|
-
const headers = {};
|
|
792
|
-
b.bp("/greengrass/definition/functions/{FunctionDefinitionId}/versions");
|
|
793
|
-
b.p("FunctionDefinitionId", () => input.FunctionDefinitionId, "{FunctionDefinitionId}", false);
|
|
794
|
-
const query = map({
|
|
795
|
-
[_MR]: [, input[_MR]],
|
|
796
|
-
[_NT]: [, input[_NT]],
|
|
797
|
-
});
|
|
798
|
-
let body;
|
|
799
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
800
|
-
return b.build();
|
|
801
|
-
};
|
|
802
|
-
export const se_ListGroupCertificateAuthoritiesCommand = async (input, context) => {
|
|
803
|
-
const b = rb(input, context);
|
|
804
|
-
const headers = {};
|
|
805
|
-
b.bp("/greengrass/groups/{GroupId}/certificateauthorities");
|
|
806
|
-
b.p("GroupId", () => input.GroupId, "{GroupId}", false);
|
|
807
|
-
let body;
|
|
808
|
-
b.m("GET").h(headers).b(body);
|
|
809
|
-
return b.build();
|
|
810
|
-
};
|
|
811
|
-
export const se_ListGroupsCommand = async (input, context) => {
|
|
812
|
-
const b = rb(input, context);
|
|
813
|
-
const headers = {};
|
|
814
|
-
b.bp("/greengrass/groups");
|
|
815
|
-
const query = map({
|
|
816
|
-
[_MR]: [, input[_MR]],
|
|
817
|
-
[_NT]: [, input[_NT]],
|
|
818
|
-
});
|
|
819
|
-
let body;
|
|
820
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
821
|
-
return b.build();
|
|
822
|
-
};
|
|
823
|
-
export const se_ListGroupVersionsCommand = async (input, context) => {
|
|
824
|
-
const b = rb(input, context);
|
|
825
|
-
const headers = {};
|
|
826
|
-
b.bp("/greengrass/groups/{GroupId}/versions");
|
|
827
|
-
b.p("GroupId", () => input.GroupId, "{GroupId}", false);
|
|
828
|
-
const query = map({
|
|
829
|
-
[_MR]: [, input[_MR]],
|
|
830
|
-
[_NT]: [, input[_NT]],
|
|
831
|
-
});
|
|
832
|
-
let body;
|
|
833
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
834
|
-
return b.build();
|
|
835
|
-
};
|
|
836
|
-
export const se_ListLoggerDefinitionsCommand = async (input, context) => {
|
|
837
|
-
const b = rb(input, context);
|
|
838
|
-
const headers = {};
|
|
839
|
-
b.bp("/greengrass/definition/loggers");
|
|
840
|
-
const query = map({
|
|
841
|
-
[_MR]: [, input[_MR]],
|
|
842
|
-
[_NT]: [, input[_NT]],
|
|
843
|
-
});
|
|
844
|
-
let body;
|
|
845
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
846
|
-
return b.build();
|
|
847
|
-
};
|
|
848
|
-
export const se_ListLoggerDefinitionVersionsCommand = async (input, context) => {
|
|
849
|
-
const b = rb(input, context);
|
|
850
|
-
const headers = {};
|
|
851
|
-
b.bp("/greengrass/definition/loggers/{LoggerDefinitionId}/versions");
|
|
852
|
-
b.p("LoggerDefinitionId", () => input.LoggerDefinitionId, "{LoggerDefinitionId}", false);
|
|
853
|
-
const query = map({
|
|
854
|
-
[_MR]: [, input[_MR]],
|
|
855
|
-
[_NT]: [, input[_NT]],
|
|
856
|
-
});
|
|
857
|
-
let body;
|
|
858
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
859
|
-
return b.build();
|
|
860
|
-
};
|
|
861
|
-
export const se_ListResourceDefinitionsCommand = async (input, context) => {
|
|
862
|
-
const b = rb(input, context);
|
|
863
|
-
const headers = {};
|
|
864
|
-
b.bp("/greengrass/definition/resources");
|
|
865
|
-
const query = map({
|
|
866
|
-
[_MR]: [, input[_MR]],
|
|
867
|
-
[_NT]: [, input[_NT]],
|
|
868
|
-
});
|
|
869
|
-
let body;
|
|
870
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
871
|
-
return b.build();
|
|
872
|
-
};
|
|
873
|
-
export const se_ListResourceDefinitionVersionsCommand = async (input, context) => {
|
|
874
|
-
const b = rb(input, context);
|
|
875
|
-
const headers = {};
|
|
876
|
-
b.bp("/greengrass/definition/resources/{ResourceDefinitionId}/versions");
|
|
877
|
-
b.p("ResourceDefinitionId", () => input.ResourceDefinitionId, "{ResourceDefinitionId}", false);
|
|
878
|
-
const query = map({
|
|
879
|
-
[_MR]: [, input[_MR]],
|
|
880
|
-
[_NT]: [, input[_NT]],
|
|
881
|
-
});
|
|
882
|
-
let body;
|
|
883
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
884
|
-
return b.build();
|
|
885
|
-
};
|
|
886
|
-
export const se_ListSubscriptionDefinitionsCommand = async (input, context) => {
|
|
887
|
-
const b = rb(input, context);
|
|
888
|
-
const headers = {};
|
|
889
|
-
b.bp("/greengrass/definition/subscriptions");
|
|
890
|
-
const query = map({
|
|
891
|
-
[_MR]: [, input[_MR]],
|
|
892
|
-
[_NT]: [, input[_NT]],
|
|
893
|
-
});
|
|
894
|
-
let body;
|
|
895
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
896
|
-
return b.build();
|
|
897
|
-
};
|
|
898
|
-
export const se_ListSubscriptionDefinitionVersionsCommand = async (input, context) => {
|
|
899
|
-
const b = rb(input, context);
|
|
900
|
-
const headers = {};
|
|
901
|
-
b.bp("/greengrass/definition/subscriptions/{SubscriptionDefinitionId}/versions");
|
|
902
|
-
b.p("SubscriptionDefinitionId", () => input.SubscriptionDefinitionId, "{SubscriptionDefinitionId}", false);
|
|
903
|
-
const query = map({
|
|
904
|
-
[_MR]: [, input[_MR]],
|
|
905
|
-
[_NT]: [, input[_NT]],
|
|
906
|
-
});
|
|
907
|
-
let body;
|
|
908
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
909
|
-
return b.build();
|
|
910
|
-
};
|
|
911
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
912
|
-
const b = rb(input, context);
|
|
913
|
-
const headers = {};
|
|
914
|
-
b.bp("/tags/{ResourceArn}");
|
|
915
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
916
|
-
let body;
|
|
917
|
-
b.m("GET").h(headers).b(body);
|
|
918
|
-
return b.build();
|
|
919
|
-
};
|
|
920
|
-
export const se_ResetDeploymentsCommand = async (input, context) => {
|
|
921
|
-
const b = rb(input, context);
|
|
922
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
923
|
-
"content-type": "application/json",
|
|
924
|
-
[_xact]: input[_ACT],
|
|
925
|
-
});
|
|
926
|
-
b.bp("/greengrass/groups/{GroupId}/deployments/$reset");
|
|
927
|
-
b.p("GroupId", () => input.GroupId, "{GroupId}", false);
|
|
928
|
-
let body;
|
|
929
|
-
body = JSON.stringify(take(input, {
|
|
930
|
-
Force: [],
|
|
931
|
-
}));
|
|
932
|
-
b.m("POST").h(headers).b(body);
|
|
933
|
-
return b.build();
|
|
934
|
-
};
|
|
935
|
-
export const se_StartBulkDeploymentCommand = async (input, context) => {
|
|
936
|
-
const b = rb(input, context);
|
|
937
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
938
|
-
"content-type": "application/json",
|
|
939
|
-
[_xact]: input[_ACT],
|
|
940
|
-
});
|
|
941
|
-
b.bp("/greengrass/bulk/deployments");
|
|
942
|
-
let body;
|
|
943
|
-
body = JSON.stringify(take(input, {
|
|
944
|
-
ExecutionRoleArn: [],
|
|
945
|
-
InputFileUri: [],
|
|
946
|
-
tags: (_) => _json(_),
|
|
947
|
-
}));
|
|
948
|
-
b.m("POST").h(headers).b(body);
|
|
949
|
-
return b.build();
|
|
950
|
-
};
|
|
951
|
-
export const se_StopBulkDeploymentCommand = async (input, context) => {
|
|
952
|
-
const b = rb(input, context);
|
|
953
|
-
const headers = {};
|
|
954
|
-
b.bp("/greengrass/bulk/deployments/{BulkDeploymentId}/$stop");
|
|
955
|
-
b.p("BulkDeploymentId", () => input.BulkDeploymentId, "{BulkDeploymentId}", false);
|
|
956
|
-
let body;
|
|
957
|
-
b.m("PUT").h(headers).b(body);
|
|
958
|
-
return b.build();
|
|
959
|
-
};
|
|
960
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
961
|
-
const b = rb(input, context);
|
|
962
|
-
const headers = {
|
|
963
|
-
"content-type": "application/json",
|
|
964
|
-
};
|
|
965
|
-
b.bp("/tags/{ResourceArn}");
|
|
966
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
967
|
-
let body;
|
|
968
|
-
body = JSON.stringify(take(input, {
|
|
969
|
-
tags: (_) => _json(_),
|
|
970
|
-
}));
|
|
971
|
-
b.m("POST").h(headers).b(body);
|
|
972
|
-
return b.build();
|
|
973
|
-
};
|
|
974
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
975
|
-
const b = rb(input, context);
|
|
976
|
-
const headers = {};
|
|
977
|
-
b.bp("/tags/{ResourceArn}");
|
|
978
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
979
|
-
const query = map({
|
|
980
|
-
[_tK]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
|
|
981
|
-
});
|
|
982
|
-
let body;
|
|
983
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
984
|
-
return b.build();
|
|
985
|
-
};
|
|
986
|
-
export const se_UpdateConnectivityInfoCommand = async (input, context) => {
|
|
987
|
-
const b = rb(input, context);
|
|
988
|
-
const headers = {
|
|
989
|
-
"content-type": "application/json",
|
|
990
|
-
};
|
|
991
|
-
b.bp("/greengrass/things/{ThingName}/connectivityInfo");
|
|
992
|
-
b.p("ThingName", () => input.ThingName, "{ThingName}", false);
|
|
993
|
-
let body;
|
|
994
|
-
body = JSON.stringify(take(input, {
|
|
995
|
-
ConnectivityInfo: (_) => _json(_),
|
|
996
|
-
}));
|
|
997
|
-
b.m("PUT").h(headers).b(body);
|
|
998
|
-
return b.build();
|
|
999
|
-
};
|
|
1000
|
-
export const se_UpdateConnectorDefinitionCommand = async (input, context) => {
|
|
1001
|
-
const b = rb(input, context);
|
|
1002
|
-
const headers = {
|
|
1003
|
-
"content-type": "application/json",
|
|
1004
|
-
};
|
|
1005
|
-
b.bp("/greengrass/definition/connectors/{ConnectorDefinitionId}");
|
|
1006
|
-
b.p("ConnectorDefinitionId", () => input.ConnectorDefinitionId, "{ConnectorDefinitionId}", false);
|
|
1007
|
-
let body;
|
|
1008
|
-
body = JSON.stringify(take(input, {
|
|
1009
|
-
Name: [],
|
|
1010
|
-
}));
|
|
1011
|
-
b.m("PUT").h(headers).b(body);
|
|
1012
|
-
return b.build();
|
|
1013
|
-
};
|
|
1014
|
-
export const se_UpdateCoreDefinitionCommand = async (input, context) => {
|
|
1015
|
-
const b = rb(input, context);
|
|
1016
|
-
const headers = {
|
|
1017
|
-
"content-type": "application/json",
|
|
1018
|
-
};
|
|
1019
|
-
b.bp("/greengrass/definition/cores/{CoreDefinitionId}");
|
|
1020
|
-
b.p("CoreDefinitionId", () => input.CoreDefinitionId, "{CoreDefinitionId}", false);
|
|
1021
|
-
let body;
|
|
1022
|
-
body = JSON.stringify(take(input, {
|
|
1023
|
-
Name: [],
|
|
1024
|
-
}));
|
|
1025
|
-
b.m("PUT").h(headers).b(body);
|
|
1026
|
-
return b.build();
|
|
1027
|
-
};
|
|
1028
|
-
export const se_UpdateDeviceDefinitionCommand = async (input, context) => {
|
|
1029
|
-
const b = rb(input, context);
|
|
1030
|
-
const headers = {
|
|
1031
|
-
"content-type": "application/json",
|
|
1032
|
-
};
|
|
1033
|
-
b.bp("/greengrass/definition/devices/{DeviceDefinitionId}");
|
|
1034
|
-
b.p("DeviceDefinitionId", () => input.DeviceDefinitionId, "{DeviceDefinitionId}", false);
|
|
1035
|
-
let body;
|
|
1036
|
-
body = JSON.stringify(take(input, {
|
|
1037
|
-
Name: [],
|
|
1038
|
-
}));
|
|
1039
|
-
b.m("PUT").h(headers).b(body);
|
|
1040
|
-
return b.build();
|
|
1041
|
-
};
|
|
1042
|
-
export const se_UpdateFunctionDefinitionCommand = async (input, context) => {
|
|
1043
|
-
const b = rb(input, context);
|
|
1044
|
-
const headers = {
|
|
1045
|
-
"content-type": "application/json",
|
|
1046
|
-
};
|
|
1047
|
-
b.bp("/greengrass/definition/functions/{FunctionDefinitionId}");
|
|
1048
|
-
b.p("FunctionDefinitionId", () => input.FunctionDefinitionId, "{FunctionDefinitionId}", false);
|
|
1049
|
-
let body;
|
|
1050
|
-
body = JSON.stringify(take(input, {
|
|
1051
|
-
Name: [],
|
|
1052
|
-
}));
|
|
1053
|
-
b.m("PUT").h(headers).b(body);
|
|
1054
|
-
return b.build();
|
|
1055
|
-
};
|
|
1056
|
-
export const se_UpdateGroupCommand = async (input, context) => {
|
|
1057
|
-
const b = rb(input, context);
|
|
1058
|
-
const headers = {
|
|
1059
|
-
"content-type": "application/json",
|
|
1060
|
-
};
|
|
1061
|
-
b.bp("/greengrass/groups/{GroupId}");
|
|
1062
|
-
b.p("GroupId", () => input.GroupId, "{GroupId}", false);
|
|
1063
|
-
let body;
|
|
1064
|
-
body = JSON.stringify(take(input, {
|
|
1065
|
-
Name: [],
|
|
1066
|
-
}));
|
|
1067
|
-
b.m("PUT").h(headers).b(body);
|
|
1068
|
-
return b.build();
|
|
1069
|
-
};
|
|
1070
|
-
export const se_UpdateGroupCertificateConfigurationCommand = async (input, context) => {
|
|
1071
|
-
const b = rb(input, context);
|
|
1072
|
-
const headers = {
|
|
1073
|
-
"content-type": "application/json",
|
|
1074
|
-
};
|
|
1075
|
-
b.bp("/greengrass/groups/{GroupId}/certificateauthorities/configuration/expiry");
|
|
1076
|
-
b.p("GroupId", () => input.GroupId, "{GroupId}", false);
|
|
1077
|
-
let body;
|
|
1078
|
-
body = JSON.stringify(take(input, {
|
|
1079
|
-
CertificateExpiryInMilliseconds: [],
|
|
1080
|
-
}));
|
|
1081
|
-
b.m("PUT").h(headers).b(body);
|
|
1082
|
-
return b.build();
|
|
1083
|
-
};
|
|
1084
|
-
export const se_UpdateLoggerDefinitionCommand = async (input, context) => {
|
|
1085
|
-
const b = rb(input, context);
|
|
1086
|
-
const headers = {
|
|
1087
|
-
"content-type": "application/json",
|
|
1088
|
-
};
|
|
1089
|
-
b.bp("/greengrass/definition/loggers/{LoggerDefinitionId}");
|
|
1090
|
-
b.p("LoggerDefinitionId", () => input.LoggerDefinitionId, "{LoggerDefinitionId}", false);
|
|
1091
|
-
let body;
|
|
1092
|
-
body = JSON.stringify(take(input, {
|
|
1093
|
-
Name: [],
|
|
1094
|
-
}));
|
|
1095
|
-
b.m("PUT").h(headers).b(body);
|
|
1096
|
-
return b.build();
|
|
1097
|
-
};
|
|
1098
|
-
export const se_UpdateResourceDefinitionCommand = async (input, context) => {
|
|
1099
|
-
const b = rb(input, context);
|
|
1100
|
-
const headers = {
|
|
1101
|
-
"content-type": "application/json",
|
|
1102
|
-
};
|
|
1103
|
-
b.bp("/greengrass/definition/resources/{ResourceDefinitionId}");
|
|
1104
|
-
b.p("ResourceDefinitionId", () => input.ResourceDefinitionId, "{ResourceDefinitionId}", false);
|
|
1105
|
-
let body;
|
|
1106
|
-
body = JSON.stringify(take(input, {
|
|
1107
|
-
Name: [],
|
|
1108
|
-
}));
|
|
1109
|
-
b.m("PUT").h(headers).b(body);
|
|
1110
|
-
return b.build();
|
|
1111
|
-
};
|
|
1112
|
-
export const se_UpdateSubscriptionDefinitionCommand = async (input, context) => {
|
|
1113
|
-
const b = rb(input, context);
|
|
1114
|
-
const headers = {
|
|
1115
|
-
"content-type": "application/json",
|
|
1116
|
-
};
|
|
1117
|
-
b.bp("/greengrass/definition/subscriptions/{SubscriptionDefinitionId}");
|
|
1118
|
-
b.p("SubscriptionDefinitionId", () => input.SubscriptionDefinitionId, "{SubscriptionDefinitionId}", false);
|
|
1119
|
-
let body;
|
|
1120
|
-
body = JSON.stringify(take(input, {
|
|
1121
|
-
Name: [],
|
|
1122
|
-
}));
|
|
1123
|
-
b.m("PUT").h(headers).b(body);
|
|
1124
|
-
return b.build();
|
|
1125
|
-
};
|
|
1126
|
-
export const se_UpdateThingRuntimeConfigurationCommand = async (input, context) => {
|
|
1127
|
-
const b = rb(input, context);
|
|
1128
|
-
const headers = {
|
|
1129
|
-
"content-type": "application/json",
|
|
1130
|
-
};
|
|
1131
|
-
b.bp("/greengrass/things/{ThingName}/runtimeconfig");
|
|
1132
|
-
b.p("ThingName", () => input.ThingName, "{ThingName}", false);
|
|
1133
|
-
let body;
|
|
1134
|
-
body = JSON.stringify(take(input, {
|
|
1135
|
-
TelemetryConfiguration: (_) => _json(_),
|
|
1136
|
-
}));
|
|
1137
|
-
b.m("PUT").h(headers).b(body);
|
|
1138
|
-
return b.build();
|
|
1139
|
-
};
|
|
1140
|
-
export const de_AssociateRoleToGroupCommand = async (output, context) => {
|
|
1141
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1142
|
-
return de_CommandError(output, context);
|
|
1143
|
-
}
|
|
1144
|
-
const contents = map({
|
|
1145
|
-
$metadata: deserializeMetadata(output),
|
|
1146
|
-
});
|
|
1147
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1148
|
-
const doc = take(data, {
|
|
1149
|
-
AssociatedAt: __expectString,
|
|
1150
|
-
});
|
|
1151
|
-
Object.assign(contents, doc);
|
|
1152
|
-
return contents;
|
|
1153
|
-
};
|
|
1154
|
-
export const de_AssociateServiceRoleToAccountCommand = async (output, context) => {
|
|
1155
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1156
|
-
return de_CommandError(output, context);
|
|
1157
|
-
}
|
|
1158
|
-
const contents = map({
|
|
1159
|
-
$metadata: deserializeMetadata(output),
|
|
1160
|
-
});
|
|
1161
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1162
|
-
const doc = take(data, {
|
|
1163
|
-
AssociatedAt: __expectString,
|
|
1164
|
-
});
|
|
1165
|
-
Object.assign(contents, doc);
|
|
1166
|
-
return contents;
|
|
1167
|
-
};
|
|
1168
|
-
export const de_CreateConnectorDefinitionCommand = async (output, context) => {
|
|
1169
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1170
|
-
return de_CommandError(output, context);
|
|
1171
|
-
}
|
|
1172
|
-
const contents = map({
|
|
1173
|
-
$metadata: deserializeMetadata(output),
|
|
1174
|
-
});
|
|
1175
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1176
|
-
const doc = take(data, {
|
|
1177
|
-
Arn: __expectString,
|
|
1178
|
-
CreationTimestamp: __expectString,
|
|
1179
|
-
Id: __expectString,
|
|
1180
|
-
LastUpdatedTimestamp: __expectString,
|
|
1181
|
-
LatestVersion: __expectString,
|
|
1182
|
-
LatestVersionArn: __expectString,
|
|
1183
|
-
Name: __expectString,
|
|
1184
|
-
});
|
|
1185
|
-
Object.assign(contents, doc);
|
|
1186
|
-
return contents;
|
|
1187
|
-
};
|
|
1188
|
-
export const de_CreateConnectorDefinitionVersionCommand = async (output, context) => {
|
|
1189
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1190
|
-
return de_CommandError(output, context);
|
|
1191
|
-
}
|
|
1192
|
-
const contents = map({
|
|
1193
|
-
$metadata: deserializeMetadata(output),
|
|
1194
|
-
});
|
|
1195
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1196
|
-
const doc = take(data, {
|
|
1197
|
-
Arn: __expectString,
|
|
1198
|
-
CreationTimestamp: __expectString,
|
|
1199
|
-
Id: __expectString,
|
|
1200
|
-
Version: __expectString,
|
|
1201
|
-
});
|
|
1202
|
-
Object.assign(contents, doc);
|
|
1203
|
-
return contents;
|
|
1204
|
-
};
|
|
1205
|
-
export const de_CreateCoreDefinitionCommand = async (output, context) => {
|
|
1206
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1207
|
-
return de_CommandError(output, context);
|
|
1208
|
-
}
|
|
1209
|
-
const contents = map({
|
|
1210
|
-
$metadata: deserializeMetadata(output),
|
|
1211
|
-
});
|
|
1212
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1213
|
-
const doc = take(data, {
|
|
1214
|
-
Arn: __expectString,
|
|
1215
|
-
CreationTimestamp: __expectString,
|
|
1216
|
-
Id: __expectString,
|
|
1217
|
-
LastUpdatedTimestamp: __expectString,
|
|
1218
|
-
LatestVersion: __expectString,
|
|
1219
|
-
LatestVersionArn: __expectString,
|
|
1220
|
-
Name: __expectString,
|
|
1221
|
-
});
|
|
1222
|
-
Object.assign(contents, doc);
|
|
1223
|
-
return contents;
|
|
1224
|
-
};
|
|
1225
|
-
export const de_CreateCoreDefinitionVersionCommand = async (output, context) => {
|
|
1226
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1227
|
-
return de_CommandError(output, context);
|
|
1228
|
-
}
|
|
1229
|
-
const contents = map({
|
|
1230
|
-
$metadata: deserializeMetadata(output),
|
|
1231
|
-
});
|
|
1232
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1233
|
-
const doc = take(data, {
|
|
1234
|
-
Arn: __expectString,
|
|
1235
|
-
CreationTimestamp: __expectString,
|
|
1236
|
-
Id: __expectString,
|
|
1237
|
-
Version: __expectString,
|
|
1238
|
-
});
|
|
1239
|
-
Object.assign(contents, doc);
|
|
1240
|
-
return contents;
|
|
1241
|
-
};
|
|
1242
|
-
export const de_CreateDeploymentCommand = async (output, context) => {
|
|
1243
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1244
|
-
return de_CommandError(output, context);
|
|
1245
|
-
}
|
|
1246
|
-
const contents = map({
|
|
1247
|
-
$metadata: deserializeMetadata(output),
|
|
1248
|
-
});
|
|
1249
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1250
|
-
const doc = take(data, {
|
|
1251
|
-
DeploymentArn: __expectString,
|
|
1252
|
-
DeploymentId: __expectString,
|
|
1253
|
-
});
|
|
1254
|
-
Object.assign(contents, doc);
|
|
1255
|
-
return contents;
|
|
1256
|
-
};
|
|
1257
|
-
export const de_CreateDeviceDefinitionCommand = async (output, context) => {
|
|
1258
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1259
|
-
return de_CommandError(output, context);
|
|
1260
|
-
}
|
|
1261
|
-
const contents = map({
|
|
1262
|
-
$metadata: deserializeMetadata(output),
|
|
1263
|
-
});
|
|
1264
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1265
|
-
const doc = take(data, {
|
|
1266
|
-
Arn: __expectString,
|
|
1267
|
-
CreationTimestamp: __expectString,
|
|
1268
|
-
Id: __expectString,
|
|
1269
|
-
LastUpdatedTimestamp: __expectString,
|
|
1270
|
-
LatestVersion: __expectString,
|
|
1271
|
-
LatestVersionArn: __expectString,
|
|
1272
|
-
Name: __expectString,
|
|
1273
|
-
});
|
|
1274
|
-
Object.assign(contents, doc);
|
|
1275
|
-
return contents;
|
|
1276
|
-
};
|
|
1277
|
-
export const de_CreateDeviceDefinitionVersionCommand = async (output, context) => {
|
|
1278
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1279
|
-
return de_CommandError(output, context);
|
|
1280
|
-
}
|
|
1281
|
-
const contents = map({
|
|
1282
|
-
$metadata: deserializeMetadata(output),
|
|
1283
|
-
});
|
|
1284
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1285
|
-
const doc = take(data, {
|
|
1286
|
-
Arn: __expectString,
|
|
1287
|
-
CreationTimestamp: __expectString,
|
|
1288
|
-
Id: __expectString,
|
|
1289
|
-
Version: __expectString,
|
|
1290
|
-
});
|
|
1291
|
-
Object.assign(contents, doc);
|
|
1292
|
-
return contents;
|
|
1293
|
-
};
|
|
1294
|
-
export const de_CreateFunctionDefinitionCommand = async (output, context) => {
|
|
1295
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1296
|
-
return de_CommandError(output, context);
|
|
1297
|
-
}
|
|
1298
|
-
const contents = map({
|
|
1299
|
-
$metadata: deserializeMetadata(output),
|
|
1300
|
-
});
|
|
1301
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1302
|
-
const doc = take(data, {
|
|
1303
|
-
Arn: __expectString,
|
|
1304
|
-
CreationTimestamp: __expectString,
|
|
1305
|
-
Id: __expectString,
|
|
1306
|
-
LastUpdatedTimestamp: __expectString,
|
|
1307
|
-
LatestVersion: __expectString,
|
|
1308
|
-
LatestVersionArn: __expectString,
|
|
1309
|
-
Name: __expectString,
|
|
1310
|
-
});
|
|
1311
|
-
Object.assign(contents, doc);
|
|
1312
|
-
return contents;
|
|
1313
|
-
};
|
|
1314
|
-
export const de_CreateFunctionDefinitionVersionCommand = async (output, context) => {
|
|
1315
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1316
|
-
return de_CommandError(output, context);
|
|
1317
|
-
}
|
|
1318
|
-
const contents = map({
|
|
1319
|
-
$metadata: deserializeMetadata(output),
|
|
1320
|
-
});
|
|
1321
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1322
|
-
const doc = take(data, {
|
|
1323
|
-
Arn: __expectString,
|
|
1324
|
-
CreationTimestamp: __expectString,
|
|
1325
|
-
Id: __expectString,
|
|
1326
|
-
Version: __expectString,
|
|
1327
|
-
});
|
|
1328
|
-
Object.assign(contents, doc);
|
|
1329
|
-
return contents;
|
|
1330
|
-
};
|
|
1331
|
-
export const de_CreateGroupCommand = async (output, context) => {
|
|
1332
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1333
|
-
return de_CommandError(output, context);
|
|
1334
|
-
}
|
|
1335
|
-
const contents = map({
|
|
1336
|
-
$metadata: deserializeMetadata(output),
|
|
1337
|
-
});
|
|
1338
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1339
|
-
const doc = take(data, {
|
|
1340
|
-
Arn: __expectString,
|
|
1341
|
-
CreationTimestamp: __expectString,
|
|
1342
|
-
Id: __expectString,
|
|
1343
|
-
LastUpdatedTimestamp: __expectString,
|
|
1344
|
-
LatestVersion: __expectString,
|
|
1345
|
-
LatestVersionArn: __expectString,
|
|
1346
|
-
Name: __expectString,
|
|
1347
|
-
});
|
|
1348
|
-
Object.assign(contents, doc);
|
|
1349
|
-
return contents;
|
|
1350
|
-
};
|
|
1351
|
-
export const de_CreateGroupCertificateAuthorityCommand = async (output, context) => {
|
|
1352
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1353
|
-
return de_CommandError(output, context);
|
|
1354
|
-
}
|
|
1355
|
-
const contents = map({
|
|
1356
|
-
$metadata: deserializeMetadata(output),
|
|
1357
|
-
});
|
|
1358
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1359
|
-
const doc = take(data, {
|
|
1360
|
-
GroupCertificateAuthorityArn: __expectString,
|
|
1361
|
-
});
|
|
1362
|
-
Object.assign(contents, doc);
|
|
1363
|
-
return contents;
|
|
1364
|
-
};
|
|
1365
|
-
export const de_CreateGroupVersionCommand = async (output, context) => {
|
|
1366
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1367
|
-
return de_CommandError(output, context);
|
|
1368
|
-
}
|
|
1369
|
-
const contents = map({
|
|
1370
|
-
$metadata: deserializeMetadata(output),
|
|
1371
|
-
});
|
|
1372
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1373
|
-
const doc = take(data, {
|
|
1374
|
-
Arn: __expectString,
|
|
1375
|
-
CreationTimestamp: __expectString,
|
|
1376
|
-
Id: __expectString,
|
|
1377
|
-
Version: __expectString,
|
|
1378
|
-
});
|
|
1379
|
-
Object.assign(contents, doc);
|
|
1380
|
-
return contents;
|
|
1381
|
-
};
|
|
1382
|
-
export const de_CreateLoggerDefinitionCommand = async (output, context) => {
|
|
1383
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1384
|
-
return de_CommandError(output, context);
|
|
1385
|
-
}
|
|
1386
|
-
const contents = map({
|
|
1387
|
-
$metadata: deserializeMetadata(output),
|
|
1388
|
-
});
|
|
1389
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1390
|
-
const doc = take(data, {
|
|
1391
|
-
Arn: __expectString,
|
|
1392
|
-
CreationTimestamp: __expectString,
|
|
1393
|
-
Id: __expectString,
|
|
1394
|
-
LastUpdatedTimestamp: __expectString,
|
|
1395
|
-
LatestVersion: __expectString,
|
|
1396
|
-
LatestVersionArn: __expectString,
|
|
1397
|
-
Name: __expectString,
|
|
1398
|
-
});
|
|
1399
|
-
Object.assign(contents, doc);
|
|
1400
|
-
return contents;
|
|
1401
|
-
};
|
|
1402
|
-
export const de_CreateLoggerDefinitionVersionCommand = async (output, context) => {
|
|
1403
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1404
|
-
return de_CommandError(output, context);
|
|
1405
|
-
}
|
|
1406
|
-
const contents = map({
|
|
1407
|
-
$metadata: deserializeMetadata(output),
|
|
1408
|
-
});
|
|
1409
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1410
|
-
const doc = take(data, {
|
|
1411
|
-
Arn: __expectString,
|
|
1412
|
-
CreationTimestamp: __expectString,
|
|
1413
|
-
Id: __expectString,
|
|
1414
|
-
Version: __expectString,
|
|
1415
|
-
});
|
|
1416
|
-
Object.assign(contents, doc);
|
|
1417
|
-
return contents;
|
|
1418
|
-
};
|
|
1419
|
-
export const de_CreateResourceDefinitionCommand = async (output, context) => {
|
|
1420
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1421
|
-
return de_CommandError(output, context);
|
|
1422
|
-
}
|
|
1423
|
-
const contents = map({
|
|
1424
|
-
$metadata: deserializeMetadata(output),
|
|
1425
|
-
});
|
|
1426
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1427
|
-
const doc = take(data, {
|
|
1428
|
-
Arn: __expectString,
|
|
1429
|
-
CreationTimestamp: __expectString,
|
|
1430
|
-
Id: __expectString,
|
|
1431
|
-
LastUpdatedTimestamp: __expectString,
|
|
1432
|
-
LatestVersion: __expectString,
|
|
1433
|
-
LatestVersionArn: __expectString,
|
|
1434
|
-
Name: __expectString,
|
|
1435
|
-
});
|
|
1436
|
-
Object.assign(contents, doc);
|
|
1437
|
-
return contents;
|
|
1438
|
-
};
|
|
1439
|
-
export const de_CreateResourceDefinitionVersionCommand = async (output, context) => {
|
|
1440
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1441
|
-
return de_CommandError(output, context);
|
|
1442
|
-
}
|
|
1443
|
-
const contents = map({
|
|
1444
|
-
$metadata: deserializeMetadata(output),
|
|
1445
|
-
});
|
|
1446
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1447
|
-
const doc = take(data, {
|
|
1448
|
-
Arn: __expectString,
|
|
1449
|
-
CreationTimestamp: __expectString,
|
|
1450
|
-
Id: __expectString,
|
|
1451
|
-
Version: __expectString,
|
|
1452
|
-
});
|
|
1453
|
-
Object.assign(contents, doc);
|
|
1454
|
-
return contents;
|
|
1455
|
-
};
|
|
1456
|
-
export const de_CreateSoftwareUpdateJobCommand = async (output, context) => {
|
|
1457
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1458
|
-
return de_CommandError(output, context);
|
|
1459
|
-
}
|
|
1460
|
-
const contents = map({
|
|
1461
|
-
$metadata: deserializeMetadata(output),
|
|
1462
|
-
});
|
|
1463
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1464
|
-
const doc = take(data, {
|
|
1465
|
-
IotJobArn: __expectString,
|
|
1466
|
-
IotJobId: __expectString,
|
|
1467
|
-
PlatformSoftwareVersion: __expectString,
|
|
1468
|
-
});
|
|
1469
|
-
Object.assign(contents, doc);
|
|
1470
|
-
return contents;
|
|
1471
|
-
};
|
|
1472
|
-
export const de_CreateSubscriptionDefinitionCommand = async (output, context) => {
|
|
1473
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1474
|
-
return de_CommandError(output, context);
|
|
1475
|
-
}
|
|
1476
|
-
const contents = map({
|
|
1477
|
-
$metadata: deserializeMetadata(output),
|
|
1478
|
-
});
|
|
1479
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1480
|
-
const doc = take(data, {
|
|
1481
|
-
Arn: __expectString,
|
|
1482
|
-
CreationTimestamp: __expectString,
|
|
1483
|
-
Id: __expectString,
|
|
1484
|
-
LastUpdatedTimestamp: __expectString,
|
|
1485
|
-
LatestVersion: __expectString,
|
|
1486
|
-
LatestVersionArn: __expectString,
|
|
1487
|
-
Name: __expectString,
|
|
1488
|
-
});
|
|
1489
|
-
Object.assign(contents, doc);
|
|
1490
|
-
return contents;
|
|
1491
|
-
};
|
|
1492
|
-
export const de_CreateSubscriptionDefinitionVersionCommand = async (output, context) => {
|
|
1493
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1494
|
-
return de_CommandError(output, context);
|
|
1495
|
-
}
|
|
1496
|
-
const contents = map({
|
|
1497
|
-
$metadata: deserializeMetadata(output),
|
|
1498
|
-
});
|
|
1499
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1500
|
-
const doc = take(data, {
|
|
1501
|
-
Arn: __expectString,
|
|
1502
|
-
CreationTimestamp: __expectString,
|
|
1503
|
-
Id: __expectString,
|
|
1504
|
-
Version: __expectString,
|
|
1505
|
-
});
|
|
1506
|
-
Object.assign(contents, doc);
|
|
1507
|
-
return contents;
|
|
1508
|
-
};
|
|
1509
|
-
export const de_DeleteConnectorDefinitionCommand = async (output, context) => {
|
|
1510
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1511
|
-
return de_CommandError(output, context);
|
|
1512
|
-
}
|
|
1513
|
-
const contents = map({
|
|
1514
|
-
$metadata: deserializeMetadata(output),
|
|
1515
|
-
});
|
|
1516
|
-
await collectBody(output.body, context);
|
|
1517
|
-
return contents;
|
|
1518
|
-
};
|
|
1519
|
-
export const de_DeleteCoreDefinitionCommand = async (output, context) => {
|
|
1520
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1521
|
-
return de_CommandError(output, context);
|
|
1522
|
-
}
|
|
1523
|
-
const contents = map({
|
|
1524
|
-
$metadata: deserializeMetadata(output),
|
|
1525
|
-
});
|
|
1526
|
-
await collectBody(output.body, context);
|
|
1527
|
-
return contents;
|
|
1528
|
-
};
|
|
1529
|
-
export const de_DeleteDeviceDefinitionCommand = async (output, context) => {
|
|
1530
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1531
|
-
return de_CommandError(output, context);
|
|
1532
|
-
}
|
|
1533
|
-
const contents = map({
|
|
1534
|
-
$metadata: deserializeMetadata(output),
|
|
1535
|
-
});
|
|
1536
|
-
await collectBody(output.body, context);
|
|
1537
|
-
return contents;
|
|
1538
|
-
};
|
|
1539
|
-
export const de_DeleteFunctionDefinitionCommand = async (output, context) => {
|
|
1540
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1541
|
-
return de_CommandError(output, context);
|
|
1542
|
-
}
|
|
1543
|
-
const contents = map({
|
|
1544
|
-
$metadata: deserializeMetadata(output),
|
|
1545
|
-
});
|
|
1546
|
-
await collectBody(output.body, context);
|
|
1547
|
-
return contents;
|
|
1548
|
-
};
|
|
1549
|
-
export const de_DeleteGroupCommand = async (output, context) => {
|
|
1550
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1551
|
-
return de_CommandError(output, context);
|
|
1552
|
-
}
|
|
1553
|
-
const contents = map({
|
|
1554
|
-
$metadata: deserializeMetadata(output),
|
|
1555
|
-
});
|
|
1556
|
-
await collectBody(output.body, context);
|
|
1557
|
-
return contents;
|
|
1558
|
-
};
|
|
1559
|
-
export const de_DeleteLoggerDefinitionCommand = async (output, context) => {
|
|
1560
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1561
|
-
return de_CommandError(output, context);
|
|
1562
|
-
}
|
|
1563
|
-
const contents = map({
|
|
1564
|
-
$metadata: deserializeMetadata(output),
|
|
1565
|
-
});
|
|
1566
|
-
await collectBody(output.body, context);
|
|
1567
|
-
return contents;
|
|
1568
|
-
};
|
|
1569
|
-
export const de_DeleteResourceDefinitionCommand = async (output, context) => {
|
|
1570
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1571
|
-
return de_CommandError(output, context);
|
|
1572
|
-
}
|
|
1573
|
-
const contents = map({
|
|
1574
|
-
$metadata: deserializeMetadata(output),
|
|
1575
|
-
});
|
|
1576
|
-
await collectBody(output.body, context);
|
|
1577
|
-
return contents;
|
|
1578
|
-
};
|
|
1579
|
-
export const de_DeleteSubscriptionDefinitionCommand = async (output, context) => {
|
|
1580
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1581
|
-
return de_CommandError(output, context);
|
|
1582
|
-
}
|
|
1583
|
-
const contents = map({
|
|
1584
|
-
$metadata: deserializeMetadata(output),
|
|
1585
|
-
});
|
|
1586
|
-
await collectBody(output.body, context);
|
|
1587
|
-
return contents;
|
|
1588
|
-
};
|
|
1589
|
-
export const de_DisassociateRoleFromGroupCommand = async (output, context) => {
|
|
1590
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1591
|
-
return de_CommandError(output, context);
|
|
1592
|
-
}
|
|
1593
|
-
const contents = map({
|
|
1594
|
-
$metadata: deserializeMetadata(output),
|
|
1595
|
-
});
|
|
1596
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1597
|
-
const doc = take(data, {
|
|
1598
|
-
DisassociatedAt: __expectString,
|
|
1599
|
-
});
|
|
1600
|
-
Object.assign(contents, doc);
|
|
1601
|
-
return contents;
|
|
1602
|
-
};
|
|
1603
|
-
export const de_DisassociateServiceRoleFromAccountCommand = async (output, context) => {
|
|
1604
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1605
|
-
return de_CommandError(output, context);
|
|
1606
|
-
}
|
|
1607
|
-
const contents = map({
|
|
1608
|
-
$metadata: deserializeMetadata(output),
|
|
1609
|
-
});
|
|
1610
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1611
|
-
const doc = take(data, {
|
|
1612
|
-
DisassociatedAt: __expectString,
|
|
1613
|
-
});
|
|
1614
|
-
Object.assign(contents, doc);
|
|
1615
|
-
return contents;
|
|
1616
|
-
};
|
|
1617
|
-
export const de_GetAssociatedRoleCommand = async (output, context) => {
|
|
1618
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1619
|
-
return de_CommandError(output, context);
|
|
1620
|
-
}
|
|
1621
|
-
const contents = map({
|
|
1622
|
-
$metadata: deserializeMetadata(output),
|
|
1623
|
-
});
|
|
1624
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1625
|
-
const doc = take(data, {
|
|
1626
|
-
AssociatedAt: __expectString,
|
|
1627
|
-
RoleArn: __expectString,
|
|
1628
|
-
});
|
|
1629
|
-
Object.assign(contents, doc);
|
|
1630
|
-
return contents;
|
|
1631
|
-
};
|
|
1632
|
-
export const de_GetBulkDeploymentStatusCommand = async (output, context) => {
|
|
1633
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1634
|
-
return de_CommandError(output, context);
|
|
1635
|
-
}
|
|
1636
|
-
const contents = map({
|
|
1637
|
-
$metadata: deserializeMetadata(output),
|
|
1638
|
-
});
|
|
1639
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1640
|
-
const doc = take(data, {
|
|
1641
|
-
BulkDeploymentMetrics: _json,
|
|
1642
|
-
BulkDeploymentStatus: __expectString,
|
|
1643
|
-
CreatedAt: __expectString,
|
|
1644
|
-
ErrorDetails: _json,
|
|
1645
|
-
ErrorMessage: __expectString,
|
|
1646
|
-
tags: _json,
|
|
1647
|
-
});
|
|
1648
|
-
Object.assign(contents, doc);
|
|
1649
|
-
return contents;
|
|
1650
|
-
};
|
|
1651
|
-
export const de_GetConnectivityInfoCommand = async (output, context) => {
|
|
1652
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1653
|
-
return de_CommandError(output, context);
|
|
1654
|
-
}
|
|
1655
|
-
const contents = map({
|
|
1656
|
-
$metadata: deserializeMetadata(output),
|
|
1657
|
-
});
|
|
1658
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1659
|
-
const doc = take(data, {
|
|
1660
|
-
ConnectivityInfo: _json,
|
|
1661
|
-
Message: [, __expectString, `message`],
|
|
1662
|
-
});
|
|
1663
|
-
Object.assign(contents, doc);
|
|
1664
|
-
return contents;
|
|
1665
|
-
};
|
|
1666
|
-
export const de_GetConnectorDefinitionCommand = async (output, context) => {
|
|
1667
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1668
|
-
return de_CommandError(output, context);
|
|
1669
|
-
}
|
|
1670
|
-
const contents = map({
|
|
1671
|
-
$metadata: deserializeMetadata(output),
|
|
1672
|
-
});
|
|
1673
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1674
|
-
const doc = take(data, {
|
|
1675
|
-
Arn: __expectString,
|
|
1676
|
-
CreationTimestamp: __expectString,
|
|
1677
|
-
Id: __expectString,
|
|
1678
|
-
LastUpdatedTimestamp: __expectString,
|
|
1679
|
-
LatestVersion: __expectString,
|
|
1680
|
-
LatestVersionArn: __expectString,
|
|
1681
|
-
Name: __expectString,
|
|
1682
|
-
tags: _json,
|
|
1683
|
-
});
|
|
1684
|
-
Object.assign(contents, doc);
|
|
1685
|
-
return contents;
|
|
1686
|
-
};
|
|
1687
|
-
export const de_GetConnectorDefinitionVersionCommand = async (output, context) => {
|
|
1688
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1689
|
-
return de_CommandError(output, context);
|
|
1690
|
-
}
|
|
1691
|
-
const contents = map({
|
|
1692
|
-
$metadata: deserializeMetadata(output),
|
|
1693
|
-
});
|
|
1694
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1695
|
-
const doc = take(data, {
|
|
1696
|
-
Arn: __expectString,
|
|
1697
|
-
CreationTimestamp: __expectString,
|
|
1698
|
-
Definition: _json,
|
|
1699
|
-
Id: __expectString,
|
|
1700
|
-
NextToken: __expectString,
|
|
1701
|
-
Version: __expectString,
|
|
1702
|
-
});
|
|
1703
|
-
Object.assign(contents, doc);
|
|
1704
|
-
return contents;
|
|
1705
|
-
};
|
|
1706
|
-
export const de_GetCoreDefinitionCommand = async (output, context) => {
|
|
1707
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1708
|
-
return de_CommandError(output, context);
|
|
1709
|
-
}
|
|
1710
|
-
const contents = map({
|
|
1711
|
-
$metadata: deserializeMetadata(output),
|
|
1712
|
-
});
|
|
1713
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1714
|
-
const doc = take(data, {
|
|
1715
|
-
Arn: __expectString,
|
|
1716
|
-
CreationTimestamp: __expectString,
|
|
1717
|
-
Id: __expectString,
|
|
1718
|
-
LastUpdatedTimestamp: __expectString,
|
|
1719
|
-
LatestVersion: __expectString,
|
|
1720
|
-
LatestVersionArn: __expectString,
|
|
1721
|
-
Name: __expectString,
|
|
1722
|
-
tags: _json,
|
|
1723
|
-
});
|
|
1724
|
-
Object.assign(contents, doc);
|
|
1725
|
-
return contents;
|
|
1726
|
-
};
|
|
1727
|
-
export const de_GetCoreDefinitionVersionCommand = async (output, context) => {
|
|
1728
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1729
|
-
return de_CommandError(output, context);
|
|
1730
|
-
}
|
|
1731
|
-
const contents = map({
|
|
1732
|
-
$metadata: deserializeMetadata(output),
|
|
1733
|
-
});
|
|
1734
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1735
|
-
const doc = take(data, {
|
|
1736
|
-
Arn: __expectString,
|
|
1737
|
-
CreationTimestamp: __expectString,
|
|
1738
|
-
Definition: _json,
|
|
1739
|
-
Id: __expectString,
|
|
1740
|
-
NextToken: __expectString,
|
|
1741
|
-
Version: __expectString,
|
|
1742
|
-
});
|
|
1743
|
-
Object.assign(contents, doc);
|
|
1744
|
-
return contents;
|
|
1745
|
-
};
|
|
1746
|
-
export const de_GetDeploymentStatusCommand = async (output, context) => {
|
|
1747
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1748
|
-
return de_CommandError(output, context);
|
|
1749
|
-
}
|
|
1750
|
-
const contents = map({
|
|
1751
|
-
$metadata: deserializeMetadata(output),
|
|
1752
|
-
});
|
|
1753
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1754
|
-
const doc = take(data, {
|
|
1755
|
-
DeploymentStatus: __expectString,
|
|
1756
|
-
DeploymentType: __expectString,
|
|
1757
|
-
ErrorDetails: _json,
|
|
1758
|
-
ErrorMessage: __expectString,
|
|
1759
|
-
UpdatedAt: __expectString,
|
|
1760
|
-
});
|
|
1761
|
-
Object.assign(contents, doc);
|
|
1762
|
-
return contents;
|
|
1763
|
-
};
|
|
1764
|
-
export const de_GetDeviceDefinitionCommand = async (output, context) => {
|
|
1765
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1766
|
-
return de_CommandError(output, context);
|
|
1767
|
-
}
|
|
1768
|
-
const contents = map({
|
|
1769
|
-
$metadata: deserializeMetadata(output),
|
|
1770
|
-
});
|
|
1771
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1772
|
-
const doc = take(data, {
|
|
1773
|
-
Arn: __expectString,
|
|
1774
|
-
CreationTimestamp: __expectString,
|
|
1775
|
-
Id: __expectString,
|
|
1776
|
-
LastUpdatedTimestamp: __expectString,
|
|
1777
|
-
LatestVersion: __expectString,
|
|
1778
|
-
LatestVersionArn: __expectString,
|
|
1779
|
-
Name: __expectString,
|
|
1780
|
-
tags: _json,
|
|
1781
|
-
});
|
|
1782
|
-
Object.assign(contents, doc);
|
|
1783
|
-
return contents;
|
|
1784
|
-
};
|
|
1785
|
-
export const de_GetDeviceDefinitionVersionCommand = async (output, context) => {
|
|
1786
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1787
|
-
return de_CommandError(output, context);
|
|
1788
|
-
}
|
|
1789
|
-
const contents = map({
|
|
1790
|
-
$metadata: deserializeMetadata(output),
|
|
1791
|
-
});
|
|
1792
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1793
|
-
const doc = take(data, {
|
|
1794
|
-
Arn: __expectString,
|
|
1795
|
-
CreationTimestamp: __expectString,
|
|
1796
|
-
Definition: _json,
|
|
1797
|
-
Id: __expectString,
|
|
1798
|
-
NextToken: __expectString,
|
|
1799
|
-
Version: __expectString,
|
|
1800
|
-
});
|
|
1801
|
-
Object.assign(contents, doc);
|
|
1802
|
-
return contents;
|
|
1803
|
-
};
|
|
1804
|
-
export const de_GetFunctionDefinitionCommand = async (output, context) => {
|
|
1805
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1806
|
-
return de_CommandError(output, context);
|
|
1807
|
-
}
|
|
1808
|
-
const contents = map({
|
|
1809
|
-
$metadata: deserializeMetadata(output),
|
|
1810
|
-
});
|
|
1811
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1812
|
-
const doc = take(data, {
|
|
1813
|
-
Arn: __expectString,
|
|
1814
|
-
CreationTimestamp: __expectString,
|
|
1815
|
-
Id: __expectString,
|
|
1816
|
-
LastUpdatedTimestamp: __expectString,
|
|
1817
|
-
LatestVersion: __expectString,
|
|
1818
|
-
LatestVersionArn: __expectString,
|
|
1819
|
-
Name: __expectString,
|
|
1820
|
-
tags: _json,
|
|
1821
|
-
});
|
|
1822
|
-
Object.assign(contents, doc);
|
|
1823
|
-
return contents;
|
|
1824
|
-
};
|
|
1825
|
-
export const de_GetFunctionDefinitionVersionCommand = async (output, context) => {
|
|
1826
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1827
|
-
return de_CommandError(output, context);
|
|
1828
|
-
}
|
|
1829
|
-
const contents = map({
|
|
1830
|
-
$metadata: deserializeMetadata(output),
|
|
1831
|
-
});
|
|
1832
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1833
|
-
const doc = take(data, {
|
|
1834
|
-
Arn: __expectString,
|
|
1835
|
-
CreationTimestamp: __expectString,
|
|
1836
|
-
Definition: _json,
|
|
1837
|
-
Id: __expectString,
|
|
1838
|
-
NextToken: __expectString,
|
|
1839
|
-
Version: __expectString,
|
|
1840
|
-
});
|
|
1841
|
-
Object.assign(contents, doc);
|
|
1842
|
-
return contents;
|
|
1843
|
-
};
|
|
1844
|
-
export const de_GetGroupCommand = async (output, context) => {
|
|
1845
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1846
|
-
return de_CommandError(output, context);
|
|
1847
|
-
}
|
|
1848
|
-
const contents = map({
|
|
1849
|
-
$metadata: deserializeMetadata(output),
|
|
1850
|
-
});
|
|
1851
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1852
|
-
const doc = take(data, {
|
|
1853
|
-
Arn: __expectString,
|
|
1854
|
-
CreationTimestamp: __expectString,
|
|
1855
|
-
Id: __expectString,
|
|
1856
|
-
LastUpdatedTimestamp: __expectString,
|
|
1857
|
-
LatestVersion: __expectString,
|
|
1858
|
-
LatestVersionArn: __expectString,
|
|
1859
|
-
Name: __expectString,
|
|
1860
|
-
tags: _json,
|
|
1861
|
-
});
|
|
1862
|
-
Object.assign(contents, doc);
|
|
1863
|
-
return contents;
|
|
1864
|
-
};
|
|
1865
|
-
export const de_GetGroupCertificateAuthorityCommand = async (output, context) => {
|
|
1866
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1867
|
-
return de_CommandError(output, context);
|
|
1868
|
-
}
|
|
1869
|
-
const contents = map({
|
|
1870
|
-
$metadata: deserializeMetadata(output),
|
|
1871
|
-
});
|
|
1872
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1873
|
-
const doc = take(data, {
|
|
1874
|
-
GroupCertificateAuthorityArn: __expectString,
|
|
1875
|
-
GroupCertificateAuthorityId: __expectString,
|
|
1876
|
-
PemEncodedCertificate: __expectString,
|
|
1877
|
-
});
|
|
1878
|
-
Object.assign(contents, doc);
|
|
1879
|
-
return contents;
|
|
1880
|
-
};
|
|
1881
|
-
export const de_GetGroupCertificateConfigurationCommand = async (output, context) => {
|
|
1882
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1883
|
-
return de_CommandError(output, context);
|
|
1884
|
-
}
|
|
1885
|
-
const contents = map({
|
|
1886
|
-
$metadata: deserializeMetadata(output),
|
|
1887
|
-
});
|
|
1888
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1889
|
-
const doc = take(data, {
|
|
1890
|
-
CertificateAuthorityExpiryInMilliseconds: __expectString,
|
|
1891
|
-
CertificateExpiryInMilliseconds: __expectString,
|
|
1892
|
-
GroupId: __expectString,
|
|
1893
|
-
});
|
|
1894
|
-
Object.assign(contents, doc);
|
|
1895
|
-
return contents;
|
|
1896
|
-
};
|
|
1897
|
-
export const de_GetGroupVersionCommand = async (output, context) => {
|
|
1898
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1899
|
-
return de_CommandError(output, context);
|
|
1900
|
-
}
|
|
1901
|
-
const contents = map({
|
|
1902
|
-
$metadata: deserializeMetadata(output),
|
|
1903
|
-
});
|
|
1904
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1905
|
-
const doc = take(data, {
|
|
1906
|
-
Arn: __expectString,
|
|
1907
|
-
CreationTimestamp: __expectString,
|
|
1908
|
-
Definition: _json,
|
|
1909
|
-
Id: __expectString,
|
|
1910
|
-
Version: __expectString,
|
|
1911
|
-
});
|
|
1912
|
-
Object.assign(contents, doc);
|
|
1913
|
-
return contents;
|
|
1914
|
-
};
|
|
1915
|
-
export const de_GetLoggerDefinitionCommand = async (output, context) => {
|
|
1916
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1917
|
-
return de_CommandError(output, context);
|
|
1918
|
-
}
|
|
1919
|
-
const contents = map({
|
|
1920
|
-
$metadata: deserializeMetadata(output),
|
|
1921
|
-
});
|
|
1922
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1923
|
-
const doc = take(data, {
|
|
1924
|
-
Arn: __expectString,
|
|
1925
|
-
CreationTimestamp: __expectString,
|
|
1926
|
-
Id: __expectString,
|
|
1927
|
-
LastUpdatedTimestamp: __expectString,
|
|
1928
|
-
LatestVersion: __expectString,
|
|
1929
|
-
LatestVersionArn: __expectString,
|
|
1930
|
-
Name: __expectString,
|
|
1931
|
-
tags: _json,
|
|
1932
|
-
});
|
|
1933
|
-
Object.assign(contents, doc);
|
|
1934
|
-
return contents;
|
|
1935
|
-
};
|
|
1936
|
-
export const de_GetLoggerDefinitionVersionCommand = async (output, context) => {
|
|
1937
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1938
|
-
return de_CommandError(output, context);
|
|
1939
|
-
}
|
|
1940
|
-
const contents = map({
|
|
1941
|
-
$metadata: deserializeMetadata(output),
|
|
1942
|
-
});
|
|
1943
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1944
|
-
const doc = take(data, {
|
|
1945
|
-
Arn: __expectString,
|
|
1946
|
-
CreationTimestamp: __expectString,
|
|
1947
|
-
Definition: _json,
|
|
1948
|
-
Id: __expectString,
|
|
1949
|
-
Version: __expectString,
|
|
1950
|
-
});
|
|
1951
|
-
Object.assign(contents, doc);
|
|
1952
|
-
return contents;
|
|
1953
|
-
};
|
|
1954
|
-
export const de_GetResourceDefinitionCommand = async (output, context) => {
|
|
1955
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1956
|
-
return de_CommandError(output, context);
|
|
1957
|
-
}
|
|
1958
|
-
const contents = map({
|
|
1959
|
-
$metadata: deserializeMetadata(output),
|
|
1960
|
-
});
|
|
1961
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1962
|
-
const doc = take(data, {
|
|
1963
|
-
Arn: __expectString,
|
|
1964
|
-
CreationTimestamp: __expectString,
|
|
1965
|
-
Id: __expectString,
|
|
1966
|
-
LastUpdatedTimestamp: __expectString,
|
|
1967
|
-
LatestVersion: __expectString,
|
|
1968
|
-
LatestVersionArn: __expectString,
|
|
1969
|
-
Name: __expectString,
|
|
1970
|
-
tags: _json,
|
|
1971
|
-
});
|
|
1972
|
-
Object.assign(contents, doc);
|
|
1973
|
-
return contents;
|
|
1974
|
-
};
|
|
1975
|
-
export const de_GetResourceDefinitionVersionCommand = async (output, context) => {
|
|
1976
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1977
|
-
return de_CommandError(output, context);
|
|
1978
|
-
}
|
|
1979
|
-
const contents = map({
|
|
1980
|
-
$metadata: deserializeMetadata(output),
|
|
1981
|
-
});
|
|
1982
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1983
|
-
const doc = take(data, {
|
|
1984
|
-
Arn: __expectString,
|
|
1985
|
-
CreationTimestamp: __expectString,
|
|
1986
|
-
Definition: _json,
|
|
1987
|
-
Id: __expectString,
|
|
1988
|
-
Version: __expectString,
|
|
1989
|
-
});
|
|
1990
|
-
Object.assign(contents, doc);
|
|
1991
|
-
return contents;
|
|
1992
|
-
};
|
|
1993
|
-
export const de_GetServiceRoleForAccountCommand = async (output, context) => {
|
|
1994
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1995
|
-
return de_CommandError(output, context);
|
|
1996
|
-
}
|
|
1997
|
-
const contents = map({
|
|
1998
|
-
$metadata: deserializeMetadata(output),
|
|
1999
|
-
});
|
|
2000
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2001
|
-
const doc = take(data, {
|
|
2002
|
-
AssociatedAt: __expectString,
|
|
2003
|
-
RoleArn: __expectString,
|
|
2004
|
-
});
|
|
2005
|
-
Object.assign(contents, doc);
|
|
2006
|
-
return contents;
|
|
2007
|
-
};
|
|
2008
|
-
export const de_GetSubscriptionDefinitionCommand = async (output, context) => {
|
|
2009
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2010
|
-
return de_CommandError(output, context);
|
|
2011
|
-
}
|
|
2012
|
-
const contents = map({
|
|
2013
|
-
$metadata: deserializeMetadata(output),
|
|
2014
|
-
});
|
|
2015
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2016
|
-
const doc = take(data, {
|
|
2017
|
-
Arn: __expectString,
|
|
2018
|
-
CreationTimestamp: __expectString,
|
|
2019
|
-
Id: __expectString,
|
|
2020
|
-
LastUpdatedTimestamp: __expectString,
|
|
2021
|
-
LatestVersion: __expectString,
|
|
2022
|
-
LatestVersionArn: __expectString,
|
|
2023
|
-
Name: __expectString,
|
|
2024
|
-
tags: _json,
|
|
2025
|
-
});
|
|
2026
|
-
Object.assign(contents, doc);
|
|
2027
|
-
return contents;
|
|
2028
|
-
};
|
|
2029
|
-
export const de_GetSubscriptionDefinitionVersionCommand = async (output, context) => {
|
|
2030
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2031
|
-
return de_CommandError(output, context);
|
|
2032
|
-
}
|
|
2033
|
-
const contents = map({
|
|
2034
|
-
$metadata: deserializeMetadata(output),
|
|
2035
|
-
});
|
|
2036
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2037
|
-
const doc = take(data, {
|
|
2038
|
-
Arn: __expectString,
|
|
2039
|
-
CreationTimestamp: __expectString,
|
|
2040
|
-
Definition: _json,
|
|
2041
|
-
Id: __expectString,
|
|
2042
|
-
NextToken: __expectString,
|
|
2043
|
-
Version: __expectString,
|
|
2044
|
-
});
|
|
2045
|
-
Object.assign(contents, doc);
|
|
2046
|
-
return contents;
|
|
2047
|
-
};
|
|
2048
|
-
export const de_GetThingRuntimeConfigurationCommand = async (output, context) => {
|
|
2049
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2050
|
-
return de_CommandError(output, context);
|
|
2051
|
-
}
|
|
2052
|
-
const contents = map({
|
|
2053
|
-
$metadata: deserializeMetadata(output),
|
|
2054
|
-
});
|
|
2055
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2056
|
-
const doc = take(data, {
|
|
2057
|
-
RuntimeConfiguration: _json,
|
|
2058
|
-
});
|
|
2059
|
-
Object.assign(contents, doc);
|
|
2060
|
-
return contents;
|
|
2061
|
-
};
|
|
2062
|
-
export const de_ListBulkDeploymentDetailedReportsCommand = async (output, context) => {
|
|
2063
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2064
|
-
return de_CommandError(output, context);
|
|
2065
|
-
}
|
|
2066
|
-
const contents = map({
|
|
2067
|
-
$metadata: deserializeMetadata(output),
|
|
2068
|
-
});
|
|
2069
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2070
|
-
const doc = take(data, {
|
|
2071
|
-
Deployments: _json,
|
|
2072
|
-
NextToken: __expectString,
|
|
2073
|
-
});
|
|
2074
|
-
Object.assign(contents, doc);
|
|
2075
|
-
return contents;
|
|
2076
|
-
};
|
|
2077
|
-
export const de_ListBulkDeploymentsCommand = async (output, context) => {
|
|
2078
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2079
|
-
return de_CommandError(output, context);
|
|
2080
|
-
}
|
|
2081
|
-
const contents = map({
|
|
2082
|
-
$metadata: deserializeMetadata(output),
|
|
2083
|
-
});
|
|
2084
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2085
|
-
const doc = take(data, {
|
|
2086
|
-
BulkDeployments: _json,
|
|
2087
|
-
NextToken: __expectString,
|
|
2088
|
-
});
|
|
2089
|
-
Object.assign(contents, doc);
|
|
2090
|
-
return contents;
|
|
2091
|
-
};
|
|
2092
|
-
export const de_ListConnectorDefinitionsCommand = async (output, context) => {
|
|
2093
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2094
|
-
return de_CommandError(output, context);
|
|
2095
|
-
}
|
|
2096
|
-
const contents = map({
|
|
2097
|
-
$metadata: deserializeMetadata(output),
|
|
2098
|
-
});
|
|
2099
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2100
|
-
const doc = take(data, {
|
|
2101
|
-
Definitions: (_) => de___listOfDefinitionInformation(_, context),
|
|
2102
|
-
NextToken: __expectString,
|
|
2103
|
-
});
|
|
2104
|
-
Object.assign(contents, doc);
|
|
2105
|
-
return contents;
|
|
2106
|
-
};
|
|
2107
|
-
export const de_ListConnectorDefinitionVersionsCommand = async (output, context) => {
|
|
2108
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2109
|
-
return de_CommandError(output, context);
|
|
2110
|
-
}
|
|
2111
|
-
const contents = map({
|
|
2112
|
-
$metadata: deserializeMetadata(output),
|
|
2113
|
-
});
|
|
2114
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2115
|
-
const doc = take(data, {
|
|
2116
|
-
NextToken: __expectString,
|
|
2117
|
-
Versions: _json,
|
|
2118
|
-
});
|
|
2119
|
-
Object.assign(contents, doc);
|
|
2120
|
-
return contents;
|
|
2121
|
-
};
|
|
2122
|
-
export const de_ListCoreDefinitionsCommand = async (output, context) => {
|
|
2123
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2124
|
-
return de_CommandError(output, context);
|
|
2125
|
-
}
|
|
2126
|
-
const contents = map({
|
|
2127
|
-
$metadata: deserializeMetadata(output),
|
|
2128
|
-
});
|
|
2129
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2130
|
-
const doc = take(data, {
|
|
2131
|
-
Definitions: (_) => de___listOfDefinitionInformation(_, context),
|
|
2132
|
-
NextToken: __expectString,
|
|
2133
|
-
});
|
|
2134
|
-
Object.assign(contents, doc);
|
|
2135
|
-
return contents;
|
|
2136
|
-
};
|
|
2137
|
-
export const de_ListCoreDefinitionVersionsCommand = async (output, context) => {
|
|
2138
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2139
|
-
return de_CommandError(output, context);
|
|
2140
|
-
}
|
|
2141
|
-
const contents = map({
|
|
2142
|
-
$metadata: deserializeMetadata(output),
|
|
2143
|
-
});
|
|
2144
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2145
|
-
const doc = take(data, {
|
|
2146
|
-
NextToken: __expectString,
|
|
2147
|
-
Versions: _json,
|
|
2148
|
-
});
|
|
2149
|
-
Object.assign(contents, doc);
|
|
2150
|
-
return contents;
|
|
2151
|
-
};
|
|
2152
|
-
export const de_ListDeploymentsCommand = async (output, context) => {
|
|
2153
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2154
|
-
return de_CommandError(output, context);
|
|
2155
|
-
}
|
|
2156
|
-
const contents = map({
|
|
2157
|
-
$metadata: deserializeMetadata(output),
|
|
2158
|
-
});
|
|
2159
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2160
|
-
const doc = take(data, {
|
|
2161
|
-
Deployments: _json,
|
|
2162
|
-
NextToken: __expectString,
|
|
2163
|
-
});
|
|
2164
|
-
Object.assign(contents, doc);
|
|
2165
|
-
return contents;
|
|
2166
|
-
};
|
|
2167
|
-
export const de_ListDeviceDefinitionsCommand = async (output, context) => {
|
|
2168
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2169
|
-
return de_CommandError(output, context);
|
|
2170
|
-
}
|
|
2171
|
-
const contents = map({
|
|
2172
|
-
$metadata: deserializeMetadata(output),
|
|
2173
|
-
});
|
|
2174
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2175
|
-
const doc = take(data, {
|
|
2176
|
-
Definitions: (_) => de___listOfDefinitionInformation(_, context),
|
|
2177
|
-
NextToken: __expectString,
|
|
2178
|
-
});
|
|
2179
|
-
Object.assign(contents, doc);
|
|
2180
|
-
return contents;
|
|
2181
|
-
};
|
|
2182
|
-
export const de_ListDeviceDefinitionVersionsCommand = async (output, context) => {
|
|
2183
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2184
|
-
return de_CommandError(output, context);
|
|
2185
|
-
}
|
|
2186
|
-
const contents = map({
|
|
2187
|
-
$metadata: deserializeMetadata(output),
|
|
2188
|
-
});
|
|
2189
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2190
|
-
const doc = take(data, {
|
|
2191
|
-
NextToken: __expectString,
|
|
2192
|
-
Versions: _json,
|
|
2193
|
-
});
|
|
2194
|
-
Object.assign(contents, doc);
|
|
2195
|
-
return contents;
|
|
2196
|
-
};
|
|
2197
|
-
export const de_ListFunctionDefinitionsCommand = async (output, context) => {
|
|
2198
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2199
|
-
return de_CommandError(output, context);
|
|
2200
|
-
}
|
|
2201
|
-
const contents = map({
|
|
2202
|
-
$metadata: deserializeMetadata(output),
|
|
2203
|
-
});
|
|
2204
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2205
|
-
const doc = take(data, {
|
|
2206
|
-
Definitions: (_) => de___listOfDefinitionInformation(_, context),
|
|
2207
|
-
NextToken: __expectString,
|
|
2208
|
-
});
|
|
2209
|
-
Object.assign(contents, doc);
|
|
2210
|
-
return contents;
|
|
2211
|
-
};
|
|
2212
|
-
export const de_ListFunctionDefinitionVersionsCommand = async (output, context) => {
|
|
2213
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2214
|
-
return de_CommandError(output, context);
|
|
2215
|
-
}
|
|
2216
|
-
const contents = map({
|
|
2217
|
-
$metadata: deserializeMetadata(output),
|
|
2218
|
-
});
|
|
2219
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2220
|
-
const doc = take(data, {
|
|
2221
|
-
NextToken: __expectString,
|
|
2222
|
-
Versions: _json,
|
|
2223
|
-
});
|
|
2224
|
-
Object.assign(contents, doc);
|
|
2225
|
-
return contents;
|
|
2226
|
-
};
|
|
2227
|
-
export const de_ListGroupCertificateAuthoritiesCommand = async (output, context) => {
|
|
2228
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2229
|
-
return de_CommandError(output, context);
|
|
2230
|
-
}
|
|
2231
|
-
const contents = map({
|
|
2232
|
-
$metadata: deserializeMetadata(output),
|
|
2233
|
-
});
|
|
2234
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2235
|
-
const doc = take(data, {
|
|
2236
|
-
GroupCertificateAuthorities: _json,
|
|
2237
|
-
});
|
|
2238
|
-
Object.assign(contents, doc);
|
|
2239
|
-
return contents;
|
|
2240
|
-
};
|
|
2241
|
-
export const de_ListGroupsCommand = async (output, context) => {
|
|
2242
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2243
|
-
return de_CommandError(output, context);
|
|
2244
|
-
}
|
|
2245
|
-
const contents = map({
|
|
2246
|
-
$metadata: deserializeMetadata(output),
|
|
2247
|
-
});
|
|
2248
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2249
|
-
const doc = take(data, {
|
|
2250
|
-
Groups: _json,
|
|
2251
|
-
NextToken: __expectString,
|
|
2252
|
-
});
|
|
2253
|
-
Object.assign(contents, doc);
|
|
2254
|
-
return contents;
|
|
2255
|
-
};
|
|
2256
|
-
export const de_ListGroupVersionsCommand = async (output, context) => {
|
|
2257
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2258
|
-
return de_CommandError(output, context);
|
|
2259
|
-
}
|
|
2260
|
-
const contents = map({
|
|
2261
|
-
$metadata: deserializeMetadata(output),
|
|
2262
|
-
});
|
|
2263
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2264
|
-
const doc = take(data, {
|
|
2265
|
-
NextToken: __expectString,
|
|
2266
|
-
Versions: _json,
|
|
2267
|
-
});
|
|
2268
|
-
Object.assign(contents, doc);
|
|
2269
|
-
return contents;
|
|
2270
|
-
};
|
|
2271
|
-
export const de_ListLoggerDefinitionsCommand = async (output, context) => {
|
|
2272
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2273
|
-
return de_CommandError(output, context);
|
|
2274
|
-
}
|
|
2275
|
-
const contents = map({
|
|
2276
|
-
$metadata: deserializeMetadata(output),
|
|
2277
|
-
});
|
|
2278
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2279
|
-
const doc = take(data, {
|
|
2280
|
-
Definitions: (_) => de___listOfDefinitionInformation(_, context),
|
|
2281
|
-
NextToken: __expectString,
|
|
2282
|
-
});
|
|
2283
|
-
Object.assign(contents, doc);
|
|
2284
|
-
return contents;
|
|
2285
|
-
};
|
|
2286
|
-
export const de_ListLoggerDefinitionVersionsCommand = async (output, context) => {
|
|
2287
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2288
|
-
return de_CommandError(output, context);
|
|
2289
|
-
}
|
|
2290
|
-
const contents = map({
|
|
2291
|
-
$metadata: deserializeMetadata(output),
|
|
2292
|
-
});
|
|
2293
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2294
|
-
const doc = take(data, {
|
|
2295
|
-
NextToken: __expectString,
|
|
2296
|
-
Versions: _json,
|
|
2297
|
-
});
|
|
2298
|
-
Object.assign(contents, doc);
|
|
2299
|
-
return contents;
|
|
2300
|
-
};
|
|
2301
|
-
export const de_ListResourceDefinitionsCommand = async (output, context) => {
|
|
2302
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2303
|
-
return de_CommandError(output, context);
|
|
2304
|
-
}
|
|
2305
|
-
const contents = map({
|
|
2306
|
-
$metadata: deserializeMetadata(output),
|
|
2307
|
-
});
|
|
2308
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2309
|
-
const doc = take(data, {
|
|
2310
|
-
Definitions: (_) => de___listOfDefinitionInformation(_, context),
|
|
2311
|
-
NextToken: __expectString,
|
|
2312
|
-
});
|
|
2313
|
-
Object.assign(contents, doc);
|
|
2314
|
-
return contents;
|
|
2315
|
-
};
|
|
2316
|
-
export const de_ListResourceDefinitionVersionsCommand = async (output, context) => {
|
|
2317
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2318
|
-
return de_CommandError(output, context);
|
|
2319
|
-
}
|
|
2320
|
-
const contents = map({
|
|
2321
|
-
$metadata: deserializeMetadata(output),
|
|
2322
|
-
});
|
|
2323
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2324
|
-
const doc = take(data, {
|
|
2325
|
-
NextToken: __expectString,
|
|
2326
|
-
Versions: _json,
|
|
2327
|
-
});
|
|
2328
|
-
Object.assign(contents, doc);
|
|
2329
|
-
return contents;
|
|
2330
|
-
};
|
|
2331
|
-
export const de_ListSubscriptionDefinitionsCommand = async (output, context) => {
|
|
2332
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2333
|
-
return de_CommandError(output, context);
|
|
2334
|
-
}
|
|
2335
|
-
const contents = map({
|
|
2336
|
-
$metadata: deserializeMetadata(output),
|
|
2337
|
-
});
|
|
2338
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2339
|
-
const doc = take(data, {
|
|
2340
|
-
Definitions: (_) => de___listOfDefinitionInformation(_, context),
|
|
2341
|
-
NextToken: __expectString,
|
|
2342
|
-
});
|
|
2343
|
-
Object.assign(contents, doc);
|
|
2344
|
-
return contents;
|
|
2345
|
-
};
|
|
2346
|
-
export const de_ListSubscriptionDefinitionVersionsCommand = async (output, context) => {
|
|
2347
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2348
|
-
return de_CommandError(output, context);
|
|
2349
|
-
}
|
|
2350
|
-
const contents = map({
|
|
2351
|
-
$metadata: deserializeMetadata(output),
|
|
2352
|
-
});
|
|
2353
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2354
|
-
const doc = take(data, {
|
|
2355
|
-
NextToken: __expectString,
|
|
2356
|
-
Versions: _json,
|
|
2357
|
-
});
|
|
2358
|
-
Object.assign(contents, doc);
|
|
2359
|
-
return contents;
|
|
2360
|
-
};
|
|
2361
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2362
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2363
|
-
return de_CommandError(output, context);
|
|
2364
|
-
}
|
|
2365
|
-
const contents = map({
|
|
2366
|
-
$metadata: deserializeMetadata(output),
|
|
2367
|
-
});
|
|
2368
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2369
|
-
const doc = take(data, {
|
|
2370
|
-
tags: _json,
|
|
2371
|
-
});
|
|
2372
|
-
Object.assign(contents, doc);
|
|
2373
|
-
return contents;
|
|
2374
|
-
};
|
|
2375
|
-
export const de_ResetDeploymentsCommand = async (output, context) => {
|
|
2376
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2377
|
-
return de_CommandError(output, context);
|
|
2378
|
-
}
|
|
2379
|
-
const contents = map({
|
|
2380
|
-
$metadata: deserializeMetadata(output),
|
|
2381
|
-
});
|
|
2382
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2383
|
-
const doc = take(data, {
|
|
2384
|
-
DeploymentArn: __expectString,
|
|
2385
|
-
DeploymentId: __expectString,
|
|
2386
|
-
});
|
|
2387
|
-
Object.assign(contents, doc);
|
|
2388
|
-
return contents;
|
|
2389
|
-
};
|
|
2390
|
-
export const de_StartBulkDeploymentCommand = async (output, context) => {
|
|
2391
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2392
|
-
return de_CommandError(output, context);
|
|
2393
|
-
}
|
|
2394
|
-
const contents = map({
|
|
2395
|
-
$metadata: deserializeMetadata(output),
|
|
2396
|
-
});
|
|
2397
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2398
|
-
const doc = take(data, {
|
|
2399
|
-
BulkDeploymentArn: __expectString,
|
|
2400
|
-
BulkDeploymentId: __expectString,
|
|
2401
|
-
});
|
|
2402
|
-
Object.assign(contents, doc);
|
|
2403
|
-
return contents;
|
|
2404
|
-
};
|
|
2405
|
-
export const de_StopBulkDeploymentCommand = async (output, context) => {
|
|
2406
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2407
|
-
return de_CommandError(output, context);
|
|
2408
|
-
}
|
|
2409
|
-
const contents = map({
|
|
2410
|
-
$metadata: deserializeMetadata(output),
|
|
2411
|
-
});
|
|
2412
|
-
await collectBody(output.body, context);
|
|
2413
|
-
return contents;
|
|
2414
|
-
};
|
|
2415
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
2416
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2417
|
-
return de_CommandError(output, context);
|
|
2418
|
-
}
|
|
2419
|
-
const contents = map({
|
|
2420
|
-
$metadata: deserializeMetadata(output),
|
|
2421
|
-
});
|
|
2422
|
-
await collectBody(output.body, context);
|
|
2423
|
-
return contents;
|
|
2424
|
-
};
|
|
2425
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
2426
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2427
|
-
return de_CommandError(output, context);
|
|
2428
|
-
}
|
|
2429
|
-
const contents = map({
|
|
2430
|
-
$metadata: deserializeMetadata(output),
|
|
2431
|
-
});
|
|
2432
|
-
await collectBody(output.body, context);
|
|
2433
|
-
return contents;
|
|
2434
|
-
};
|
|
2435
|
-
export const de_UpdateConnectivityInfoCommand = async (output, context) => {
|
|
2436
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2437
|
-
return de_CommandError(output, context);
|
|
2438
|
-
}
|
|
2439
|
-
const contents = map({
|
|
2440
|
-
$metadata: deserializeMetadata(output),
|
|
2441
|
-
});
|
|
2442
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2443
|
-
const doc = take(data, {
|
|
2444
|
-
Message: [, __expectString, `message`],
|
|
2445
|
-
Version: __expectString,
|
|
2446
|
-
});
|
|
2447
|
-
Object.assign(contents, doc);
|
|
2448
|
-
return contents;
|
|
2449
|
-
};
|
|
2450
|
-
export const de_UpdateConnectorDefinitionCommand = async (output, context) => {
|
|
2451
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2452
|
-
return de_CommandError(output, context);
|
|
2453
|
-
}
|
|
2454
|
-
const contents = map({
|
|
2455
|
-
$metadata: deserializeMetadata(output),
|
|
2456
|
-
});
|
|
2457
|
-
await collectBody(output.body, context);
|
|
2458
|
-
return contents;
|
|
2459
|
-
};
|
|
2460
|
-
export const de_UpdateCoreDefinitionCommand = async (output, context) => {
|
|
2461
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2462
|
-
return de_CommandError(output, context);
|
|
2463
|
-
}
|
|
2464
|
-
const contents = map({
|
|
2465
|
-
$metadata: deserializeMetadata(output),
|
|
2466
|
-
});
|
|
2467
|
-
await collectBody(output.body, context);
|
|
2468
|
-
return contents;
|
|
2469
|
-
};
|
|
2470
|
-
export const de_UpdateDeviceDefinitionCommand = async (output, context) => {
|
|
2471
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2472
|
-
return de_CommandError(output, context);
|
|
2473
|
-
}
|
|
2474
|
-
const contents = map({
|
|
2475
|
-
$metadata: deserializeMetadata(output),
|
|
2476
|
-
});
|
|
2477
|
-
await collectBody(output.body, context);
|
|
2478
|
-
return contents;
|
|
2479
|
-
};
|
|
2480
|
-
export const de_UpdateFunctionDefinitionCommand = async (output, context) => {
|
|
2481
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2482
|
-
return de_CommandError(output, context);
|
|
2483
|
-
}
|
|
2484
|
-
const contents = map({
|
|
2485
|
-
$metadata: deserializeMetadata(output),
|
|
2486
|
-
});
|
|
2487
|
-
await collectBody(output.body, context);
|
|
2488
|
-
return contents;
|
|
2489
|
-
};
|
|
2490
|
-
export const de_UpdateGroupCommand = async (output, context) => {
|
|
2491
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2492
|
-
return de_CommandError(output, context);
|
|
2493
|
-
}
|
|
2494
|
-
const contents = map({
|
|
2495
|
-
$metadata: deserializeMetadata(output),
|
|
2496
|
-
});
|
|
2497
|
-
await collectBody(output.body, context);
|
|
2498
|
-
return contents;
|
|
2499
|
-
};
|
|
2500
|
-
export const de_UpdateGroupCertificateConfigurationCommand = async (output, context) => {
|
|
2501
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2502
|
-
return de_CommandError(output, context);
|
|
2503
|
-
}
|
|
2504
|
-
const contents = map({
|
|
2505
|
-
$metadata: deserializeMetadata(output),
|
|
2506
|
-
});
|
|
2507
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2508
|
-
const doc = take(data, {
|
|
2509
|
-
CertificateAuthorityExpiryInMilliseconds: __expectString,
|
|
2510
|
-
CertificateExpiryInMilliseconds: __expectString,
|
|
2511
|
-
GroupId: __expectString,
|
|
2512
|
-
});
|
|
2513
|
-
Object.assign(contents, doc);
|
|
2514
|
-
return contents;
|
|
2515
|
-
};
|
|
2516
|
-
export const de_UpdateLoggerDefinitionCommand = async (output, context) => {
|
|
2517
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2518
|
-
return de_CommandError(output, context);
|
|
2519
|
-
}
|
|
2520
|
-
const contents = map({
|
|
2521
|
-
$metadata: deserializeMetadata(output),
|
|
2522
|
-
});
|
|
2523
|
-
await collectBody(output.body, context);
|
|
2524
|
-
return contents;
|
|
2525
|
-
};
|
|
2526
|
-
export const de_UpdateResourceDefinitionCommand = async (output, context) => {
|
|
2527
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2528
|
-
return de_CommandError(output, context);
|
|
2529
|
-
}
|
|
2530
|
-
const contents = map({
|
|
2531
|
-
$metadata: deserializeMetadata(output),
|
|
2532
|
-
});
|
|
2533
|
-
await collectBody(output.body, context);
|
|
2534
|
-
return contents;
|
|
2535
|
-
};
|
|
2536
|
-
export const de_UpdateSubscriptionDefinitionCommand = async (output, context) => {
|
|
2537
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2538
|
-
return de_CommandError(output, context);
|
|
2539
|
-
}
|
|
2540
|
-
const contents = map({
|
|
2541
|
-
$metadata: deserializeMetadata(output),
|
|
2542
|
-
});
|
|
2543
|
-
await collectBody(output.body, context);
|
|
2544
|
-
return contents;
|
|
2545
|
-
};
|
|
2546
|
-
export const de_UpdateThingRuntimeConfigurationCommand = async (output, context) => {
|
|
2547
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2548
|
-
return de_CommandError(output, context);
|
|
2549
|
-
}
|
|
2550
|
-
const contents = map({
|
|
2551
|
-
$metadata: deserializeMetadata(output),
|
|
2552
|
-
});
|
|
2553
|
-
await collectBody(output.body, context);
|
|
2554
|
-
return contents;
|
|
2555
|
-
};
|
|
2556
|
-
const de_CommandError = async (output, context) => {
|
|
2557
|
-
const parsedOutput = {
|
|
2558
|
-
...output,
|
|
2559
|
-
body: await parseErrorBody(output.body, context),
|
|
2560
|
-
};
|
|
2561
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2562
|
-
switch (errorCode) {
|
|
2563
|
-
case "BadRequestException":
|
|
2564
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
2565
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2566
|
-
case "InternalServerErrorException":
|
|
2567
|
-
case "com.amazonaws.greengrass#InternalServerErrorException":
|
|
2568
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2569
|
-
default:
|
|
2570
|
-
const parsedBody = parsedOutput.body;
|
|
2571
|
-
return throwDefaultError({
|
|
2572
|
-
output,
|
|
2573
|
-
parsedBody,
|
|
2574
|
-
errorCode,
|
|
2575
|
-
});
|
|
2576
|
-
}
|
|
2577
|
-
};
|
|
2578
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
2579
|
-
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
2580
|
-
const contents = map({});
|
|
2581
|
-
const data = parsedOutput.body;
|
|
2582
|
-
const doc = take(data, {
|
|
2583
|
-
ErrorDetails: _json,
|
|
2584
|
-
Message: __expectString,
|
|
2585
|
-
});
|
|
2586
|
-
Object.assign(contents, doc);
|
|
2587
|
-
const exception = new BadRequestException({
|
|
2588
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2589
|
-
...contents,
|
|
2590
|
-
});
|
|
2591
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2592
|
-
};
|
|
2593
|
-
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
2594
|
-
const contents = map({});
|
|
2595
|
-
const data = parsedOutput.body;
|
|
2596
|
-
const doc = take(data, {
|
|
2597
|
-
ErrorDetails: _json,
|
|
2598
|
-
Message: __expectString,
|
|
2599
|
-
});
|
|
2600
|
-
Object.assign(contents, doc);
|
|
2601
|
-
const exception = new InternalServerErrorException({
|
|
2602
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2603
|
-
...contents,
|
|
2604
|
-
});
|
|
2605
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2606
|
-
};
|
|
2607
|
-
const de___listOfDefinitionInformation = (output, context) => {
|
|
2608
|
-
const retVal = (output || [])
|
|
2609
|
-
.filter((e) => e != null)
|
|
2610
|
-
.map((entry) => {
|
|
2611
|
-
return de_DefinitionInformation(entry, context);
|
|
2612
|
-
});
|
|
2613
|
-
return retVal;
|
|
2614
|
-
};
|
|
2615
|
-
const de_DefinitionInformation = (output, context) => {
|
|
2616
|
-
return take(output, {
|
|
2617
|
-
Arn: __expectString,
|
|
2618
|
-
CreationTimestamp: __expectString,
|
|
2619
|
-
Id: __expectString,
|
|
2620
|
-
LastUpdatedTimestamp: __expectString,
|
|
2621
|
-
LatestVersion: __expectString,
|
|
2622
|
-
LatestVersionArn: __expectString,
|
|
2623
|
-
Name: __expectString,
|
|
2624
|
-
Tags: [, _json, `tags`],
|
|
2625
|
-
});
|
|
2626
|
-
};
|
|
2627
|
-
const deserializeMetadata = (output) => ({
|
|
2628
|
-
httpStatusCode: output.statusCode,
|
|
2629
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2630
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2631
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
2632
|
-
});
|
|
2633
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2634
|
-
const _ACT = "AmznClientToken";
|
|
2635
|
-
const _MR = "MaxResults";
|
|
2636
|
-
const _NT = "NextToken";
|
|
2637
|
-
const _TK = "TagKeys";
|
|
2638
|
-
const _tK = "tagKeys";
|
|
2639
|
-
const _xact = "x-amzn-client-token";
|