@aws-sdk/client-iot 3.199.0 → 3.201.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/CHANGELOG.md +22 -0
- package/dist-cjs/commands/DeleteRegistrationCodeCommand.js +2 -1
- package/dist-cjs/commands/DeleteRoleAliasCommand.js +1 -2
- package/dist-cjs/commands/ListThingGroupsCommand.js +3 -3
- package/dist-cjs/endpoint/EndpointParameters.js +2 -3
- package/dist-cjs/models/models_0.js +14 -14
- package/dist-cjs/models/models_1.js +14 -14
- package/dist-cjs/models/models_2.js +11 -3
- package/dist-cjs/protocols/Aws_restJson1.js +283 -258
- package/dist-cjs/runtimeConfig.browser.js +16 -16
- package/dist-cjs/runtimeConfig.js +20 -19
- package/dist-cjs/runtimeConfig.native.js +1 -2
- package/dist-cjs/runtimeConfig.shared.js +8 -11
- package/dist-es/commands/DeleteRegistrationCodeCommand.js +2 -1
- package/dist-es/commands/DeleteRoleAliasCommand.js +1 -2
- package/dist-es/commands/ListThingGroupsCommand.js +1 -1
- package/dist-es/models/models_0.js +6 -6
- package/dist-es/models/models_1.js +6 -6
- package/dist-es/models/models_2.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +34 -0
- package/dist-types/commands/DeleteRegistrationCodeCommand.d.ts +2 -1
- package/dist-types/commands/DeleteRoleAliasCommand.d.ts +1 -2
- package/dist-types/commands/ListThingGroupsCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +67 -20
- package/dist-types/models/models_1.d.ts +21 -44
- package/dist-types/models/models_2.d.ts +45 -1
- package/dist-types/ts3.4/commands/DeleteRegistrationCodeCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/DeleteRoleAliasCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/ListThingGroupsCommand.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +19 -10
- package/dist-types/ts3.4/models/models_1.d.ts +10 -17
- package/dist-types/ts3.4/models/models_2.d.ts +17 -0
- package/package.json +33 -33
|
@@ -20,7 +20,7 @@ const models_2_1 = require("../models/models_2");
|
|
|
20
20
|
const serializeAws_restJson1AcceptCertificateTransferCommand = async (input, context) => {
|
|
21
21
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
22
22
|
const headers = {};
|
|
23
|
-
let resolvedPath = `${
|
|
23
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
24
24
|
"/accept-certificate-transfer/{certificateId}";
|
|
25
25
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "certificateId", () => input.certificateId, "{certificateId}", false);
|
|
26
26
|
const query = map({
|
|
@@ -44,7 +44,7 @@ const serializeAws_restJson1AddThingToBillingGroupCommand = async (input, contex
|
|
|
44
44
|
const headers = {
|
|
45
45
|
"content-type": "application/json",
|
|
46
46
|
};
|
|
47
|
-
const resolvedPath = `${
|
|
47
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/billing-groups/addThingToBillingGroup";
|
|
48
48
|
let body;
|
|
49
49
|
body = JSON.stringify({
|
|
50
50
|
...(input.billingGroupArn != null && { billingGroupArn: input.billingGroupArn }),
|
|
@@ -68,7 +68,7 @@ const serializeAws_restJson1AddThingToThingGroupCommand = async (input, context)
|
|
|
68
68
|
const headers = {
|
|
69
69
|
"content-type": "application/json",
|
|
70
70
|
};
|
|
71
|
-
const resolvedPath = `${
|
|
71
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-groups/addThingToThingGroup";
|
|
72
72
|
let body;
|
|
73
73
|
body = JSON.stringify({
|
|
74
74
|
...(input.overrideDynamicGroups != null && { overrideDynamicGroups: input.overrideDynamicGroups }),
|
|
@@ -93,7 +93,7 @@ const serializeAws_restJson1AssociateTargetsWithJobCommand = async (input, conte
|
|
|
93
93
|
const headers = {
|
|
94
94
|
"content-type": "application/json",
|
|
95
95
|
};
|
|
96
|
-
let resolvedPath = `${
|
|
96
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{jobId}/targets";
|
|
97
97
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
|
|
98
98
|
const query = map({
|
|
99
99
|
namespaceId: [, input.namespaceId],
|
|
@@ -120,7 +120,7 @@ const serializeAws_restJson1AttachPolicyCommand = async (input, context) => {
|
|
|
120
120
|
const headers = {
|
|
121
121
|
"content-type": "application/json",
|
|
122
122
|
};
|
|
123
|
-
let resolvedPath = `${
|
|
123
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/target-policies/{policyName}";
|
|
124
124
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "policyName", () => input.policyName, "{policyName}", false);
|
|
125
125
|
let body;
|
|
126
126
|
body = JSON.stringify({
|
|
@@ -142,7 +142,7 @@ const serializeAws_restJson1AttachPrincipalPolicyCommand = async (input, context
|
|
|
142
142
|
const headers = map({}, isSerializableHeaderValue, {
|
|
143
143
|
"x-amzn-iot-principal": input.principal,
|
|
144
144
|
});
|
|
145
|
-
let resolvedPath = `${
|
|
145
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/principal-policies/{policyName}";
|
|
146
146
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "policyName", () => input.policyName, "{policyName}", false);
|
|
147
147
|
let body;
|
|
148
148
|
return new protocol_http_1.HttpRequest({
|
|
@@ -159,7 +159,7 @@ exports.serializeAws_restJson1AttachPrincipalPolicyCommand = serializeAws_restJs
|
|
|
159
159
|
const serializeAws_restJson1AttachSecurityProfileCommand = async (input, context) => {
|
|
160
160
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
161
161
|
const headers = {};
|
|
162
|
-
let resolvedPath = `${
|
|
162
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
163
163
|
"/security-profiles/{securityProfileName}/targets";
|
|
164
164
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "securityProfileName", () => input.securityProfileName, "{securityProfileName}", false);
|
|
165
165
|
const query = map({
|
|
@@ -183,7 +183,7 @@ const serializeAws_restJson1AttachThingPrincipalCommand = async (input, context)
|
|
|
183
183
|
const headers = map({}, isSerializableHeaderValue, {
|
|
184
184
|
"x-amzn-principal": input.principal,
|
|
185
185
|
});
|
|
186
|
-
let resolvedPath = `${
|
|
186
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}/principals";
|
|
187
187
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "thingName", () => input.thingName, "{thingName}", false);
|
|
188
188
|
let body;
|
|
189
189
|
return new protocol_http_1.HttpRequest({
|
|
@@ -200,7 +200,7 @@ exports.serializeAws_restJson1AttachThingPrincipalCommand = serializeAws_restJso
|
|
|
200
200
|
const serializeAws_restJson1CancelAuditMitigationActionsTaskCommand = async (input, context) => {
|
|
201
201
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
202
202
|
const headers = {};
|
|
203
|
-
let resolvedPath = `${
|
|
203
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
204
204
|
"/audit/mitigationactions/tasks/{taskId}/cancel";
|
|
205
205
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "taskId", () => input.taskId, "{taskId}", false);
|
|
206
206
|
let body;
|
|
@@ -218,7 +218,7 @@ exports.serializeAws_restJson1CancelAuditMitigationActionsTaskCommand = serializ
|
|
|
218
218
|
const serializeAws_restJson1CancelAuditTaskCommand = async (input, context) => {
|
|
219
219
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
220
220
|
const headers = {};
|
|
221
|
-
let resolvedPath = `${
|
|
221
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/tasks/{taskId}/cancel";
|
|
222
222
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "taskId", () => input.taskId, "{taskId}", false);
|
|
223
223
|
let body;
|
|
224
224
|
return new protocol_http_1.HttpRequest({
|
|
@@ -235,7 +235,7 @@ exports.serializeAws_restJson1CancelAuditTaskCommand = serializeAws_restJson1Can
|
|
|
235
235
|
const serializeAws_restJson1CancelCertificateTransferCommand = async (input, context) => {
|
|
236
236
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
237
237
|
const headers = {};
|
|
238
|
-
let resolvedPath = `${
|
|
238
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
239
239
|
"/cancel-certificate-transfer/{certificateId}";
|
|
240
240
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "certificateId", () => input.certificateId, "{certificateId}", false);
|
|
241
241
|
let body;
|
|
@@ -253,7 +253,7 @@ exports.serializeAws_restJson1CancelCertificateTransferCommand = serializeAws_re
|
|
|
253
253
|
const serializeAws_restJson1CancelDetectMitigationActionsTaskCommand = async (input, context) => {
|
|
254
254
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
255
255
|
const headers = {};
|
|
256
|
-
let resolvedPath = `${
|
|
256
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
257
257
|
"/detect/mitigationactions/tasks/{taskId}/cancel";
|
|
258
258
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "taskId", () => input.taskId, "{taskId}", false);
|
|
259
259
|
let body;
|
|
@@ -273,7 +273,7 @@ const serializeAws_restJson1CancelJobCommand = async (input, context) => {
|
|
|
273
273
|
const headers = {
|
|
274
274
|
"content-type": "application/json",
|
|
275
275
|
};
|
|
276
|
-
let resolvedPath = `${
|
|
276
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{jobId}/cancel";
|
|
277
277
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
|
|
278
278
|
const query = map({
|
|
279
279
|
force: [() => input.force !== void 0, () => input.force.toString()],
|
|
@@ -300,7 +300,7 @@ const serializeAws_restJson1CancelJobExecutionCommand = async (input, context) =
|
|
|
300
300
|
const headers = {
|
|
301
301
|
"content-type": "application/json",
|
|
302
302
|
};
|
|
303
|
-
let resolvedPath = `${
|
|
303
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}/jobs/{jobId}/cancel";
|
|
304
304
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
|
|
305
305
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "thingName", () => input.thingName, "{thingName}", false);
|
|
306
306
|
const query = map({
|
|
@@ -330,7 +330,7 @@ const serializeAws_restJson1ClearDefaultAuthorizerCommand = async (input, contex
|
|
|
330
330
|
const headers = {
|
|
331
331
|
"content-type": "application/json",
|
|
332
332
|
};
|
|
333
|
-
const resolvedPath = `${
|
|
333
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/default-authorizer";
|
|
334
334
|
let body;
|
|
335
335
|
body = "";
|
|
336
336
|
return new protocol_http_1.HttpRequest({
|
|
@@ -347,7 +347,7 @@ exports.serializeAws_restJson1ClearDefaultAuthorizerCommand = serializeAws_restJ
|
|
|
347
347
|
const serializeAws_restJson1ConfirmTopicRuleDestinationCommand = async (input, context) => {
|
|
348
348
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
349
349
|
const headers = {};
|
|
350
|
-
let resolvedPath = `${
|
|
350
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/confirmdestination/{confirmationToken+}";
|
|
351
351
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "confirmationToken", () => input.confirmationToken, "{confirmationToken+}", true);
|
|
352
352
|
let body;
|
|
353
353
|
return new protocol_http_1.HttpRequest({
|
|
@@ -362,16 +362,15 @@ const serializeAws_restJson1ConfirmTopicRuleDestinationCommand = async (input, c
|
|
|
362
362
|
};
|
|
363
363
|
exports.serializeAws_restJson1ConfirmTopicRuleDestinationCommand = serializeAws_restJson1ConfirmTopicRuleDestinationCommand;
|
|
364
364
|
const serializeAws_restJson1CreateAuditSuppressionCommand = async (input, context) => {
|
|
365
|
-
var _a;
|
|
366
365
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
367
366
|
const headers = {
|
|
368
367
|
"content-type": "application/json",
|
|
369
368
|
};
|
|
370
|
-
const resolvedPath = `${
|
|
369
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/suppressions/create";
|
|
371
370
|
let body;
|
|
372
371
|
body = JSON.stringify({
|
|
373
372
|
...(input.checkName != null && { checkName: input.checkName }),
|
|
374
|
-
clientRequestToken:
|
|
373
|
+
clientRequestToken: input.clientRequestToken ?? (0, uuid_1.v4)(),
|
|
375
374
|
...(input.description != null && { description: input.description }),
|
|
376
375
|
...(input.expirationDate != null && { expirationDate: Math.round(input.expirationDate.getTime() / 1000) }),
|
|
377
376
|
...(input.resourceIdentifier != null && {
|
|
@@ -395,7 +394,7 @@ const serializeAws_restJson1CreateAuthorizerCommand = async (input, context) =>
|
|
|
395
394
|
const headers = {
|
|
396
395
|
"content-type": "application/json",
|
|
397
396
|
};
|
|
398
|
-
let resolvedPath = `${
|
|
397
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/authorizer/{authorizerName}";
|
|
399
398
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "authorizerName", () => input.authorizerName, "{authorizerName}", false);
|
|
400
399
|
let body;
|
|
401
400
|
body = JSON.stringify({
|
|
@@ -425,7 +424,7 @@ const serializeAws_restJson1CreateBillingGroupCommand = async (input, context) =
|
|
|
425
424
|
const headers = {
|
|
426
425
|
"content-type": "application/json",
|
|
427
426
|
};
|
|
428
|
-
let resolvedPath = `${
|
|
427
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/billing-groups/{billingGroupName}";
|
|
429
428
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "billingGroupName", () => input.billingGroupName, "{billingGroupName}", false);
|
|
430
429
|
let body;
|
|
431
430
|
body = JSON.stringify({
|
|
@@ -450,7 +449,7 @@ const serializeAws_restJson1CreateCertificateFromCsrCommand = async (input, cont
|
|
|
450
449
|
const headers = {
|
|
451
450
|
"content-type": "application/json",
|
|
452
451
|
};
|
|
453
|
-
const resolvedPath = `${
|
|
452
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/certificates";
|
|
454
453
|
const query = map({
|
|
455
454
|
setAsActive: [() => input.setAsActive !== void 0, () => input.setAsActive.toString()],
|
|
456
455
|
});
|
|
@@ -471,16 +470,15 @@ const serializeAws_restJson1CreateCertificateFromCsrCommand = async (input, cont
|
|
|
471
470
|
};
|
|
472
471
|
exports.serializeAws_restJson1CreateCertificateFromCsrCommand = serializeAws_restJson1CreateCertificateFromCsrCommand;
|
|
473
472
|
const serializeAws_restJson1CreateCustomMetricCommand = async (input, context) => {
|
|
474
|
-
var _a;
|
|
475
473
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
476
474
|
const headers = {
|
|
477
475
|
"content-type": "application/json",
|
|
478
476
|
};
|
|
479
|
-
let resolvedPath = `${
|
|
477
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/custom-metric/{metricName}";
|
|
480
478
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "metricName", () => input.metricName, "{metricName}", false);
|
|
481
479
|
let body;
|
|
482
480
|
body = JSON.stringify({
|
|
483
|
-
clientRequestToken:
|
|
481
|
+
clientRequestToken: input.clientRequestToken ?? (0, uuid_1.v4)(),
|
|
484
482
|
...(input.displayName != null && { displayName: input.displayName }),
|
|
485
483
|
...(input.metricType != null && { metricType: input.metricType }),
|
|
486
484
|
...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
@@ -497,16 +495,15 @@ const serializeAws_restJson1CreateCustomMetricCommand = async (input, context) =
|
|
|
497
495
|
};
|
|
498
496
|
exports.serializeAws_restJson1CreateCustomMetricCommand = serializeAws_restJson1CreateCustomMetricCommand;
|
|
499
497
|
const serializeAws_restJson1CreateDimensionCommand = async (input, context) => {
|
|
500
|
-
var _a;
|
|
501
498
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
502
499
|
const headers = {
|
|
503
500
|
"content-type": "application/json",
|
|
504
501
|
};
|
|
505
|
-
let resolvedPath = `${
|
|
502
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dimensions/{name}";
|
|
506
503
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
507
504
|
let body;
|
|
508
505
|
body = JSON.stringify({
|
|
509
|
-
clientRequestToken:
|
|
506
|
+
clientRequestToken: input.clientRequestToken ?? (0, uuid_1.v4)(),
|
|
510
507
|
...(input.stringValues != null && {
|
|
511
508
|
stringValues: serializeAws_restJson1DimensionStringValues(input.stringValues, context),
|
|
512
509
|
}),
|
|
@@ -529,7 +526,7 @@ const serializeAws_restJson1CreateDomainConfigurationCommand = async (input, con
|
|
|
529
526
|
const headers = {
|
|
530
527
|
"content-type": "application/json",
|
|
531
528
|
};
|
|
532
|
-
let resolvedPath = `${
|
|
529
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
533
530
|
"/domainConfigurations/{domainConfigurationName}";
|
|
534
531
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainConfigurationName", () => input.domainConfigurationName, "{domainConfigurationName}", false);
|
|
535
532
|
let body;
|
|
@@ -561,7 +558,7 @@ const serializeAws_restJson1CreateDynamicThingGroupCommand = async (input, conte
|
|
|
561
558
|
const headers = {
|
|
562
559
|
"content-type": "application/json",
|
|
563
560
|
};
|
|
564
|
-
let resolvedPath = `${
|
|
561
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dynamic-thing-groups/{thingGroupName}";
|
|
565
562
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "thingGroupName", () => input.thingGroupName, "{thingGroupName}", false);
|
|
566
563
|
let body;
|
|
567
564
|
body = JSON.stringify({
|
|
@@ -589,7 +586,7 @@ const serializeAws_restJson1CreateFleetMetricCommand = async (input, context) =>
|
|
|
589
586
|
const headers = {
|
|
590
587
|
"content-type": "application/json",
|
|
591
588
|
};
|
|
592
|
-
let resolvedPath = `${
|
|
589
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fleet-metric/{metricName}";
|
|
593
590
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "metricName", () => input.metricName, "{metricName}", false);
|
|
594
591
|
let body;
|
|
595
592
|
body = JSON.stringify({
|
|
@@ -621,7 +618,7 @@ const serializeAws_restJson1CreateJobCommand = async (input, context) => {
|
|
|
621
618
|
const headers = {
|
|
622
619
|
"content-type": "application/json",
|
|
623
620
|
};
|
|
624
|
-
let resolvedPath = `${
|
|
621
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{jobId}";
|
|
625
622
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
|
|
626
623
|
let body;
|
|
627
624
|
body = JSON.stringify({
|
|
@@ -666,7 +663,7 @@ const serializeAws_restJson1CreateJobTemplateCommand = async (input, context) =>
|
|
|
666
663
|
const headers = {
|
|
667
664
|
"content-type": "application/json",
|
|
668
665
|
};
|
|
669
|
-
let resolvedPath = `${
|
|
666
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/job-templates/{jobTemplateId}";
|
|
670
667
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobTemplateId", () => input.jobTemplateId, "{jobTemplateId}", false);
|
|
671
668
|
let body;
|
|
672
669
|
body = JSON.stringify({
|
|
@@ -703,7 +700,7 @@ exports.serializeAws_restJson1CreateJobTemplateCommand = serializeAws_restJson1C
|
|
|
703
700
|
const serializeAws_restJson1CreateKeysAndCertificateCommand = async (input, context) => {
|
|
704
701
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
705
702
|
const headers = {};
|
|
706
|
-
const resolvedPath = `${
|
|
703
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/keys-and-certificate";
|
|
707
704
|
const query = map({
|
|
708
705
|
setAsActive: [() => input.setAsActive !== void 0, () => input.setAsActive.toString()],
|
|
709
706
|
});
|
|
@@ -725,7 +722,7 @@ const serializeAws_restJson1CreateMitigationActionCommand = async (input, contex
|
|
|
725
722
|
const headers = {
|
|
726
723
|
"content-type": "application/json",
|
|
727
724
|
};
|
|
728
|
-
let resolvedPath = `${
|
|
725
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/mitigationactions/actions/{actionName}";
|
|
729
726
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "actionName", () => input.actionName, "{actionName}", false);
|
|
730
727
|
let body;
|
|
731
728
|
body = JSON.stringify({
|
|
@@ -751,7 +748,7 @@ const serializeAws_restJson1CreateOTAUpdateCommand = async (input, context) => {
|
|
|
751
748
|
const headers = {
|
|
752
749
|
"content-type": "application/json",
|
|
753
750
|
};
|
|
754
|
-
let resolvedPath = `${
|
|
751
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/otaUpdates/{otaUpdateId}";
|
|
755
752
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "otaUpdateId", () => input.otaUpdateId, "{otaUpdateId}", false);
|
|
756
753
|
let body;
|
|
757
754
|
body = JSON.stringify({
|
|
@@ -794,7 +791,7 @@ const serializeAws_restJson1CreatePolicyCommand = async (input, context) => {
|
|
|
794
791
|
const headers = {
|
|
795
792
|
"content-type": "application/json",
|
|
796
793
|
};
|
|
797
|
-
let resolvedPath = `${
|
|
794
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies/{policyName}";
|
|
798
795
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "policyName", () => input.policyName, "{policyName}", false);
|
|
799
796
|
let body;
|
|
800
797
|
body = JSON.stringify({
|
|
@@ -817,7 +814,7 @@ const serializeAws_restJson1CreatePolicyVersionCommand = async (input, context)
|
|
|
817
814
|
const headers = {
|
|
818
815
|
"content-type": "application/json",
|
|
819
816
|
};
|
|
820
|
-
let resolvedPath = `${
|
|
817
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies/{policyName}/version";
|
|
821
818
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "policyName", () => input.policyName, "{policyName}", false);
|
|
822
819
|
const query = map({
|
|
823
820
|
setAsDefault: [() => input.setAsDefault !== void 0, () => input.setAsDefault.toString()],
|
|
@@ -841,7 +838,7 @@ exports.serializeAws_restJson1CreatePolicyVersionCommand = serializeAws_restJson
|
|
|
841
838
|
const serializeAws_restJson1CreateProvisioningClaimCommand = async (input, context) => {
|
|
842
839
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
843
840
|
const headers = {};
|
|
844
|
-
let resolvedPath = `${
|
|
841
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
845
842
|
"/provisioning-templates/{templateName}/provisioning-claim";
|
|
846
843
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "templateName", () => input.templateName, "{templateName}", false);
|
|
847
844
|
let body;
|
|
@@ -861,7 +858,7 @@ const serializeAws_restJson1CreateProvisioningTemplateCommand = async (input, co
|
|
|
861
858
|
const headers = {
|
|
862
859
|
"content-type": "application/json",
|
|
863
860
|
};
|
|
864
|
-
const resolvedPath = `${
|
|
861
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/provisioning-templates";
|
|
865
862
|
let body;
|
|
866
863
|
body = JSON.stringify({
|
|
867
864
|
...(input.description != null && { description: input.description }),
|
|
@@ -891,7 +888,7 @@ const serializeAws_restJson1CreateProvisioningTemplateVersionCommand = async (in
|
|
|
891
888
|
const headers = {
|
|
892
889
|
"content-type": "application/json",
|
|
893
890
|
};
|
|
894
|
-
let resolvedPath = `${
|
|
891
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
895
892
|
"/provisioning-templates/{templateName}/versions";
|
|
896
893
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "templateName", () => input.templateName, "{templateName}", false);
|
|
897
894
|
const query = map({
|
|
@@ -918,7 +915,7 @@ const serializeAws_restJson1CreateRoleAliasCommand = async (input, context) => {
|
|
|
918
915
|
const headers = {
|
|
919
916
|
"content-type": "application/json",
|
|
920
917
|
};
|
|
921
|
-
let resolvedPath = `${
|
|
918
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/role-aliases/{roleAlias}";
|
|
922
919
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "roleAlias", () => input.roleAlias, "{roleAlias}", false);
|
|
923
920
|
let body;
|
|
924
921
|
body = JSON.stringify({
|
|
@@ -942,7 +939,7 @@ const serializeAws_restJson1CreateScheduledAuditCommand = async (input, context)
|
|
|
942
939
|
const headers = {
|
|
943
940
|
"content-type": "application/json",
|
|
944
941
|
};
|
|
945
|
-
let resolvedPath = `${
|
|
942
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
946
943
|
"/audit/scheduledaudits/{scheduledAuditName}";
|
|
947
944
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "scheduledAuditName", () => input.scheduledAuditName, "{scheduledAuditName}", false);
|
|
948
945
|
let body;
|
|
@@ -971,7 +968,7 @@ const serializeAws_restJson1CreateSecurityProfileCommand = async (input, context
|
|
|
971
968
|
const headers = {
|
|
972
969
|
"content-type": "application/json",
|
|
973
970
|
};
|
|
974
|
-
let resolvedPath = `${
|
|
971
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/security-profiles/{securityProfileName}";
|
|
975
972
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "securityProfileName", () => input.securityProfileName, "{securityProfileName}", false);
|
|
976
973
|
let body;
|
|
977
974
|
body = JSON.stringify({
|
|
@@ -1004,7 +1001,7 @@ const serializeAws_restJson1CreateStreamCommand = async (input, context) => {
|
|
|
1004
1001
|
const headers = {
|
|
1005
1002
|
"content-type": "application/json",
|
|
1006
1003
|
};
|
|
1007
|
-
let resolvedPath = `${
|
|
1004
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/streams/{streamId}";
|
|
1008
1005
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "streamId", () => input.streamId, "{streamId}", false);
|
|
1009
1006
|
let body;
|
|
1010
1007
|
body = JSON.stringify({
|
|
@@ -1029,7 +1026,7 @@ const serializeAws_restJson1CreateThingCommand = async (input, context) => {
|
|
|
1029
1026
|
const headers = {
|
|
1030
1027
|
"content-type": "application/json",
|
|
1031
1028
|
};
|
|
1032
|
-
let resolvedPath = `${
|
|
1029
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}";
|
|
1033
1030
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "thingName", () => input.thingName, "{thingName}", false);
|
|
1034
1031
|
let body;
|
|
1035
1032
|
body = JSON.stringify({
|
|
@@ -1055,7 +1052,7 @@ const serializeAws_restJson1CreateThingGroupCommand = async (input, context) =>
|
|
|
1055
1052
|
const headers = {
|
|
1056
1053
|
"content-type": "application/json",
|
|
1057
1054
|
};
|
|
1058
|
-
let resolvedPath = `${
|
|
1055
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-groups/{thingGroupName}";
|
|
1059
1056
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "thingGroupName", () => input.thingGroupName, "{thingGroupName}", false);
|
|
1060
1057
|
let body;
|
|
1061
1058
|
body = JSON.stringify({
|
|
@@ -1081,7 +1078,7 @@ const serializeAws_restJson1CreateThingTypeCommand = async (input, context) => {
|
|
|
1081
1078
|
const headers = {
|
|
1082
1079
|
"content-type": "application/json",
|
|
1083
1080
|
};
|
|
1084
|
-
let resolvedPath = `${
|
|
1081
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-types/{thingTypeName}";
|
|
1085
1082
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "thingTypeName", () => input.thingTypeName, "{thingTypeName}", false);
|
|
1086
1083
|
let body;
|
|
1087
1084
|
body = JSON.stringify({
|
|
@@ -1107,7 +1104,7 @@ const serializeAws_restJson1CreateTopicRuleCommand = async (input, context) => {
|
|
|
1107
1104
|
"content-type": "application/json",
|
|
1108
1105
|
"x-amz-tagging": input.tags,
|
|
1109
1106
|
});
|
|
1110
|
-
let resolvedPath = `${
|
|
1107
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{ruleName}";
|
|
1111
1108
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ruleName", () => input.ruleName, "{ruleName}", false);
|
|
1112
1109
|
let body;
|
|
1113
1110
|
if (input.topicRulePayload !== undefined) {
|
|
@@ -1133,7 +1130,7 @@ const serializeAws_restJson1CreateTopicRuleDestinationCommand = async (input, co
|
|
|
1133
1130
|
const headers = {
|
|
1134
1131
|
"content-type": "application/json",
|
|
1135
1132
|
};
|
|
1136
|
-
const resolvedPath = `${
|
|
1133
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/destinations";
|
|
1137
1134
|
let body;
|
|
1138
1135
|
body = JSON.stringify({
|
|
1139
1136
|
...(input.destinationConfiguration != null && {
|
|
@@ -1154,7 +1151,7 @@ exports.serializeAws_restJson1CreateTopicRuleDestinationCommand = serializeAws_r
|
|
|
1154
1151
|
const serializeAws_restJson1DeleteAccountAuditConfigurationCommand = async (input, context) => {
|
|
1155
1152
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1156
1153
|
const headers = {};
|
|
1157
|
-
const resolvedPath = `${
|
|
1154
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/configuration";
|
|
1158
1155
|
const query = map({
|
|
1159
1156
|
deleteScheduledAudits: [
|
|
1160
1157
|
() => input.deleteScheduledAudits !== void 0,
|
|
@@ -1179,7 +1176,7 @@ const serializeAws_restJson1DeleteAuditSuppressionCommand = async (input, contex
|
|
|
1179
1176
|
const headers = {
|
|
1180
1177
|
"content-type": "application/json",
|
|
1181
1178
|
};
|
|
1182
|
-
const resolvedPath = `${
|
|
1179
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/suppressions/delete";
|
|
1183
1180
|
let body;
|
|
1184
1181
|
body = JSON.stringify({
|
|
1185
1182
|
...(input.checkName != null && { checkName: input.checkName }),
|
|
@@ -1201,7 +1198,7 @@ exports.serializeAws_restJson1DeleteAuditSuppressionCommand = serializeAws_restJ
|
|
|
1201
1198
|
const serializeAws_restJson1DeleteAuthorizerCommand = async (input, context) => {
|
|
1202
1199
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1203
1200
|
const headers = {};
|
|
1204
|
-
let resolvedPath = `${
|
|
1201
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/authorizer/{authorizerName}";
|
|
1205
1202
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "authorizerName", () => input.authorizerName, "{authorizerName}", false);
|
|
1206
1203
|
let body;
|
|
1207
1204
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1218,7 +1215,7 @@ exports.serializeAws_restJson1DeleteAuthorizerCommand = serializeAws_restJson1De
|
|
|
1218
1215
|
const serializeAws_restJson1DeleteBillingGroupCommand = async (input, context) => {
|
|
1219
1216
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1220
1217
|
const headers = {};
|
|
1221
|
-
let resolvedPath = `${
|
|
1218
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/billing-groups/{billingGroupName}";
|
|
1222
1219
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "billingGroupName", () => input.billingGroupName, "{billingGroupName}", false);
|
|
1223
1220
|
const query = map({
|
|
1224
1221
|
expectedVersion: [() => input.expectedVersion !== void 0, () => input.expectedVersion.toString()],
|
|
@@ -1239,7 +1236,7 @@ exports.serializeAws_restJson1DeleteBillingGroupCommand = serializeAws_restJson1
|
|
|
1239
1236
|
const serializeAws_restJson1DeleteCACertificateCommand = async (input, context) => {
|
|
1240
1237
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1241
1238
|
const headers = {};
|
|
1242
|
-
let resolvedPath = `${
|
|
1239
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cacertificate/{certificateId}";
|
|
1243
1240
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "certificateId", () => input.certificateId, "{certificateId}", false);
|
|
1244
1241
|
let body;
|
|
1245
1242
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1256,7 +1253,7 @@ exports.serializeAws_restJson1DeleteCACertificateCommand = serializeAws_restJson
|
|
|
1256
1253
|
const serializeAws_restJson1DeleteCertificateCommand = async (input, context) => {
|
|
1257
1254
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1258
1255
|
const headers = {};
|
|
1259
|
-
let resolvedPath = `${
|
|
1256
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/certificates/{certificateId}";
|
|
1260
1257
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "certificateId", () => input.certificateId, "{certificateId}", false);
|
|
1261
1258
|
const query = map({
|
|
1262
1259
|
forceDelete: [() => input.forceDelete !== void 0, () => input.forceDelete.toString()],
|
|
@@ -1277,7 +1274,7 @@ exports.serializeAws_restJson1DeleteCertificateCommand = serializeAws_restJson1D
|
|
|
1277
1274
|
const serializeAws_restJson1DeleteCustomMetricCommand = async (input, context) => {
|
|
1278
1275
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1279
1276
|
const headers = {};
|
|
1280
|
-
let resolvedPath = `${
|
|
1277
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/custom-metric/{metricName}";
|
|
1281
1278
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "metricName", () => input.metricName, "{metricName}", false);
|
|
1282
1279
|
let body;
|
|
1283
1280
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1294,7 +1291,7 @@ exports.serializeAws_restJson1DeleteCustomMetricCommand = serializeAws_restJson1
|
|
|
1294
1291
|
const serializeAws_restJson1DeleteDimensionCommand = async (input, context) => {
|
|
1295
1292
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1296
1293
|
const headers = {};
|
|
1297
|
-
let resolvedPath = `${
|
|
1294
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dimensions/{name}";
|
|
1298
1295
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
1299
1296
|
let body;
|
|
1300
1297
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1311,7 +1308,7 @@ exports.serializeAws_restJson1DeleteDimensionCommand = serializeAws_restJson1Del
|
|
|
1311
1308
|
const serializeAws_restJson1DeleteDomainConfigurationCommand = async (input, context) => {
|
|
1312
1309
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1313
1310
|
const headers = {};
|
|
1314
|
-
let resolvedPath = `${
|
|
1311
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1315
1312
|
"/domainConfigurations/{domainConfigurationName}";
|
|
1316
1313
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainConfigurationName", () => input.domainConfigurationName, "{domainConfigurationName}", false);
|
|
1317
1314
|
let body;
|
|
@@ -1329,7 +1326,7 @@ exports.serializeAws_restJson1DeleteDomainConfigurationCommand = serializeAws_re
|
|
|
1329
1326
|
const serializeAws_restJson1DeleteDynamicThingGroupCommand = async (input, context) => {
|
|
1330
1327
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1331
1328
|
const headers = {};
|
|
1332
|
-
let resolvedPath = `${
|
|
1329
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dynamic-thing-groups/{thingGroupName}";
|
|
1333
1330
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "thingGroupName", () => input.thingGroupName, "{thingGroupName}", false);
|
|
1334
1331
|
const query = map({
|
|
1335
1332
|
expectedVersion: [() => input.expectedVersion !== void 0, () => input.expectedVersion.toString()],
|
|
@@ -1350,7 +1347,7 @@ exports.serializeAws_restJson1DeleteDynamicThingGroupCommand = serializeAws_rest
|
|
|
1350
1347
|
const serializeAws_restJson1DeleteFleetMetricCommand = async (input, context) => {
|
|
1351
1348
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1352
1349
|
const headers = {};
|
|
1353
|
-
let resolvedPath = `${
|
|
1350
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fleet-metric/{metricName}";
|
|
1354
1351
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "metricName", () => input.metricName, "{metricName}", false);
|
|
1355
1352
|
const query = map({
|
|
1356
1353
|
expectedVersion: [() => input.expectedVersion !== void 0, () => input.expectedVersion.toString()],
|
|
@@ -1371,7 +1368,7 @@ exports.serializeAws_restJson1DeleteFleetMetricCommand = serializeAws_restJson1D
|
|
|
1371
1368
|
const serializeAws_restJson1DeleteJobCommand = async (input, context) => {
|
|
1372
1369
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1373
1370
|
const headers = {};
|
|
1374
|
-
let resolvedPath = `${
|
|
1371
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{jobId}";
|
|
1375
1372
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
|
|
1376
1373
|
const query = map({
|
|
1377
1374
|
force: [() => input.force !== void 0, () => input.force.toString()],
|
|
@@ -1393,7 +1390,7 @@ exports.serializeAws_restJson1DeleteJobCommand = serializeAws_restJson1DeleteJob
|
|
|
1393
1390
|
const serializeAws_restJson1DeleteJobExecutionCommand = async (input, context) => {
|
|
1394
1391
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1395
1392
|
const headers = {};
|
|
1396
|
-
let resolvedPath = `${
|
|
1393
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1397
1394
|
"/things/{thingName}/jobs/{jobId}/executionNumber/{executionNumber}";
|
|
1398
1395
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
|
|
1399
1396
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "thingName", () => input.thingName, "{thingName}", false);
|
|
@@ -1418,7 +1415,7 @@ exports.serializeAws_restJson1DeleteJobExecutionCommand = serializeAws_restJson1
|
|
|
1418
1415
|
const serializeAws_restJson1DeleteJobTemplateCommand = async (input, context) => {
|
|
1419
1416
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1420
1417
|
const headers = {};
|
|
1421
|
-
let resolvedPath = `${
|
|
1418
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/job-templates/{jobTemplateId}";
|
|
1422
1419
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobTemplateId", () => input.jobTemplateId, "{jobTemplateId}", false);
|
|
1423
1420
|
let body;
|
|
1424
1421
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1435,7 +1432,7 @@ exports.serializeAws_restJson1DeleteJobTemplateCommand = serializeAws_restJson1D
|
|
|
1435
1432
|
const serializeAws_restJson1DeleteMitigationActionCommand = async (input, context) => {
|
|
1436
1433
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1437
1434
|
const headers = {};
|
|
1438
|
-
let resolvedPath = `${
|
|
1435
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/mitigationactions/actions/{actionName}";
|
|
1439
1436
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "actionName", () => input.actionName, "{actionName}", false);
|
|
1440
1437
|
let body;
|
|
1441
1438
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1452,7 +1449,7 @@ exports.serializeAws_restJson1DeleteMitigationActionCommand = serializeAws_restJ
|
|
|
1452
1449
|
const serializeAws_restJson1DeleteOTAUpdateCommand = async (input, context) => {
|
|
1453
1450
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1454
1451
|
const headers = {};
|
|
1455
|
-
let resolvedPath = `${
|
|
1452
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/otaUpdates/{otaUpdateId}";
|
|
1456
1453
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "otaUpdateId", () => input.otaUpdateId, "{otaUpdateId}", false);
|
|
1457
1454
|
const query = map({
|
|
1458
1455
|
deleteStream: [() => input.deleteStream !== void 0, () => input.deleteStream.toString()],
|
|
@@ -1474,7 +1471,7 @@ exports.serializeAws_restJson1DeleteOTAUpdateCommand = serializeAws_restJson1Del
|
|
|
1474
1471
|
const serializeAws_restJson1DeletePolicyCommand = async (input, context) => {
|
|
1475
1472
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1476
1473
|
const headers = {};
|
|
1477
|
-
let resolvedPath = `${
|
|
1474
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies/{policyName}";
|
|
1478
1475
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "policyName", () => input.policyName, "{policyName}", false);
|
|
1479
1476
|
let body;
|
|
1480
1477
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1491,7 +1488,7 @@ exports.serializeAws_restJson1DeletePolicyCommand = serializeAws_restJson1Delete
|
|
|
1491
1488
|
const serializeAws_restJson1DeletePolicyVersionCommand = async (input, context) => {
|
|
1492
1489
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1493
1490
|
const headers = {};
|
|
1494
|
-
let resolvedPath = `${
|
|
1491
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1495
1492
|
"/policies/{policyName}/version/{policyVersionId}";
|
|
1496
1493
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "policyName", () => input.policyName, "{policyName}", false);
|
|
1497
1494
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "policyVersionId", () => input.policyVersionId, "{policyVersionId}", false);
|
|
@@ -1510,7 +1507,7 @@ exports.serializeAws_restJson1DeletePolicyVersionCommand = serializeAws_restJson
|
|
|
1510
1507
|
const serializeAws_restJson1DeleteProvisioningTemplateCommand = async (input, context) => {
|
|
1511
1508
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1512
1509
|
const headers = {};
|
|
1513
|
-
let resolvedPath = `${
|
|
1510
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/provisioning-templates/{templateName}";
|
|
1514
1511
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "templateName", () => input.templateName, "{templateName}", false);
|
|
1515
1512
|
let body;
|
|
1516
1513
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1527,7 +1524,7 @@ exports.serializeAws_restJson1DeleteProvisioningTemplateCommand = serializeAws_r
|
|
|
1527
1524
|
const serializeAws_restJson1DeleteProvisioningTemplateVersionCommand = async (input, context) => {
|
|
1528
1525
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1529
1526
|
const headers = {};
|
|
1530
|
-
let resolvedPath = `${
|
|
1527
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1531
1528
|
"/provisioning-templates/{templateName}/versions/{versionId}";
|
|
1532
1529
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "templateName", () => input.templateName, "{templateName}", false);
|
|
1533
1530
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "versionId", () => input.versionId.toString(), "{versionId}", false);
|
|
@@ -1548,7 +1545,7 @@ const serializeAws_restJson1DeleteRegistrationCodeCommand = async (input, contex
|
|
|
1548
1545
|
const headers = {
|
|
1549
1546
|
"content-type": "application/json",
|
|
1550
1547
|
};
|
|
1551
|
-
const resolvedPath = `${
|
|
1548
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/registrationcode";
|
|
1552
1549
|
let body;
|
|
1553
1550
|
body = "";
|
|
1554
1551
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1565,7 +1562,7 @@ exports.serializeAws_restJson1DeleteRegistrationCodeCommand = serializeAws_restJ
|
|
|
1565
1562
|
const serializeAws_restJson1DeleteRoleAliasCommand = async (input, context) => {
|
|
1566
1563
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1567
1564
|
const headers = {};
|
|
1568
|
-
let resolvedPath = `${
|
|
1565
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/role-aliases/{roleAlias}";
|
|
1569
1566
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "roleAlias", () => input.roleAlias, "{roleAlias}", false);
|
|
1570
1567
|
let body;
|
|
1571
1568
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1582,7 +1579,7 @@ exports.serializeAws_restJson1DeleteRoleAliasCommand = serializeAws_restJson1Del
|
|
|
1582
1579
|
const serializeAws_restJson1DeleteScheduledAuditCommand = async (input, context) => {
|
|
1583
1580
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1584
1581
|
const headers = {};
|
|
1585
|
-
let resolvedPath = `${
|
|
1582
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1586
1583
|
"/audit/scheduledaudits/{scheduledAuditName}";
|
|
1587
1584
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "scheduledAuditName", () => input.scheduledAuditName, "{scheduledAuditName}", false);
|
|
1588
1585
|
let body;
|
|
@@ -1600,7 +1597,7 @@ exports.serializeAws_restJson1DeleteScheduledAuditCommand = serializeAws_restJso
|
|
|
1600
1597
|
const serializeAws_restJson1DeleteSecurityProfileCommand = async (input, context) => {
|
|
1601
1598
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1602
1599
|
const headers = {};
|
|
1603
|
-
let resolvedPath = `${
|
|
1600
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/security-profiles/{securityProfileName}";
|
|
1604
1601
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "securityProfileName", () => input.securityProfileName, "{securityProfileName}", false);
|
|
1605
1602
|
const query = map({
|
|
1606
1603
|
expectedVersion: [() => input.expectedVersion !== void 0, () => input.expectedVersion.toString()],
|
|
@@ -1621,7 +1618,7 @@ exports.serializeAws_restJson1DeleteSecurityProfileCommand = serializeAws_restJs
|
|
|
1621
1618
|
const serializeAws_restJson1DeleteStreamCommand = async (input, context) => {
|
|
1622
1619
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1623
1620
|
const headers = {};
|
|
1624
|
-
let resolvedPath = `${
|
|
1621
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/streams/{streamId}";
|
|
1625
1622
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "streamId", () => input.streamId, "{streamId}", false);
|
|
1626
1623
|
let body;
|
|
1627
1624
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1638,7 +1635,7 @@ exports.serializeAws_restJson1DeleteStreamCommand = serializeAws_restJson1Delete
|
|
|
1638
1635
|
const serializeAws_restJson1DeleteThingCommand = async (input, context) => {
|
|
1639
1636
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1640
1637
|
const headers = {};
|
|
1641
|
-
let resolvedPath = `${
|
|
1638
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}";
|
|
1642
1639
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "thingName", () => input.thingName, "{thingName}", false);
|
|
1643
1640
|
const query = map({
|
|
1644
1641
|
expectedVersion: [() => input.expectedVersion !== void 0, () => input.expectedVersion.toString()],
|
|
@@ -1659,7 +1656,7 @@ exports.serializeAws_restJson1DeleteThingCommand = serializeAws_restJson1DeleteT
|
|
|
1659
1656
|
const serializeAws_restJson1DeleteThingGroupCommand = async (input, context) => {
|
|
1660
1657
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1661
1658
|
const headers = {};
|
|
1662
|
-
let resolvedPath = `${
|
|
1659
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-groups/{thingGroupName}";
|
|
1663
1660
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "thingGroupName", () => input.thingGroupName, "{thingGroupName}", false);
|
|
1664
1661
|
const query = map({
|
|
1665
1662
|
expectedVersion: [() => input.expectedVersion !== void 0, () => input.expectedVersion.toString()],
|
|
@@ -1680,7 +1677,7 @@ exports.serializeAws_restJson1DeleteThingGroupCommand = serializeAws_restJson1De
|
|
|
1680
1677
|
const serializeAws_restJson1DeleteThingTypeCommand = async (input, context) => {
|
|
1681
1678
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1682
1679
|
const headers = {};
|
|
1683
|
-
let resolvedPath = `${
|
|
1680
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-types/{thingTypeName}";
|
|
1684
1681
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "thingTypeName", () => input.thingTypeName, "{thingTypeName}", false);
|
|
1685
1682
|
let body;
|
|
1686
1683
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1697,7 +1694,7 @@ exports.serializeAws_restJson1DeleteThingTypeCommand = serializeAws_restJson1Del
|
|
|
1697
1694
|
const serializeAws_restJson1DeleteTopicRuleCommand = async (input, context) => {
|
|
1698
1695
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1699
1696
|
const headers = {};
|
|
1700
|
-
let resolvedPath = `${
|
|
1697
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{ruleName}";
|
|
1701
1698
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ruleName", () => input.ruleName, "{ruleName}", false);
|
|
1702
1699
|
let body;
|
|
1703
1700
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1714,7 +1711,7 @@ exports.serializeAws_restJson1DeleteTopicRuleCommand = serializeAws_restJson1Del
|
|
|
1714
1711
|
const serializeAws_restJson1DeleteTopicRuleDestinationCommand = async (input, context) => {
|
|
1715
1712
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1716
1713
|
const headers = {};
|
|
1717
|
-
let resolvedPath = `${
|
|
1714
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/destinations/{arn+}";
|
|
1718
1715
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "arn", () => input.arn, "{arn+}", true);
|
|
1719
1716
|
let body;
|
|
1720
1717
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1731,7 +1728,7 @@ exports.serializeAws_restJson1DeleteTopicRuleDestinationCommand = serializeAws_r
|
|
|
1731
1728
|
const serializeAws_restJson1DeleteV2LoggingLevelCommand = async (input, context) => {
|
|
1732
1729
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1733
1730
|
const headers = {};
|
|
1734
|
-
const resolvedPath = `${
|
|
1731
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2LoggingLevel";
|
|
1735
1732
|
const query = map({
|
|
1736
1733
|
targetType: [, input.targetType],
|
|
1737
1734
|
targetName: [, input.targetName],
|
|
@@ -1754,7 +1751,7 @@ const serializeAws_restJson1DeprecateThingTypeCommand = async (input, context) =
|
|
|
1754
1751
|
const headers = {
|
|
1755
1752
|
"content-type": "application/json",
|
|
1756
1753
|
};
|
|
1757
|
-
let resolvedPath = `${
|
|
1754
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-types/{thingTypeName}/deprecate";
|
|
1758
1755
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "thingTypeName", () => input.thingTypeName, "{thingTypeName}", false);
|
|
1759
1756
|
let body;
|
|
1760
1757
|
body = JSON.stringify({
|
|
@@ -1776,7 +1773,7 @@ const serializeAws_restJson1DescribeAccountAuditConfigurationCommand = async (in
|
|
|
1776
1773
|
const headers = {
|
|
1777
1774
|
"content-type": "application/json",
|
|
1778
1775
|
};
|
|
1779
|
-
const resolvedPath = `${
|
|
1776
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/configuration";
|
|
1780
1777
|
let body;
|
|
1781
1778
|
body = "";
|
|
1782
1779
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1793,7 +1790,7 @@ exports.serializeAws_restJson1DescribeAccountAuditConfigurationCommand = seriali
|
|
|
1793
1790
|
const serializeAws_restJson1DescribeAuditFindingCommand = async (input, context) => {
|
|
1794
1791
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1795
1792
|
const headers = {};
|
|
1796
|
-
let resolvedPath = `${
|
|
1793
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/findings/{findingId}";
|
|
1797
1794
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "findingId", () => input.findingId, "{findingId}", false);
|
|
1798
1795
|
let body;
|
|
1799
1796
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1810,7 +1807,7 @@ exports.serializeAws_restJson1DescribeAuditFindingCommand = serializeAws_restJso
|
|
|
1810
1807
|
const serializeAws_restJson1DescribeAuditMitigationActionsTaskCommand = async (input, context) => {
|
|
1811
1808
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1812
1809
|
const headers = {};
|
|
1813
|
-
let resolvedPath = `${
|
|
1810
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/mitigationactions/tasks/{taskId}";
|
|
1814
1811
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "taskId", () => input.taskId, "{taskId}", false);
|
|
1815
1812
|
let body;
|
|
1816
1813
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1829,7 +1826,7 @@ const serializeAws_restJson1DescribeAuditSuppressionCommand = async (input, cont
|
|
|
1829
1826
|
const headers = {
|
|
1830
1827
|
"content-type": "application/json",
|
|
1831
1828
|
};
|
|
1832
|
-
const resolvedPath = `${
|
|
1829
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/suppressions/describe";
|
|
1833
1830
|
let body;
|
|
1834
1831
|
body = JSON.stringify({
|
|
1835
1832
|
...(input.checkName != null && { checkName: input.checkName }),
|
|
@@ -1851,7 +1848,7 @@ exports.serializeAws_restJson1DescribeAuditSuppressionCommand = serializeAws_res
|
|
|
1851
1848
|
const serializeAws_restJson1DescribeAuditTaskCommand = async (input, context) => {
|
|
1852
1849
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1853
1850
|
const headers = {};
|
|
1854
|
-
let resolvedPath = `${
|
|
1851
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/tasks/{taskId}";
|
|
1855
1852
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "taskId", () => input.taskId, "{taskId}", false);
|
|
1856
1853
|
let body;
|
|
1857
1854
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1868,7 +1865,7 @@ exports.serializeAws_restJson1DescribeAuditTaskCommand = serializeAws_restJson1D
|
|
|
1868
1865
|
const serializeAws_restJson1DescribeAuthorizerCommand = async (input, context) => {
|
|
1869
1866
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1870
1867
|
const headers = {};
|
|
1871
|
-
let resolvedPath = `${
|
|
1868
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/authorizer/{authorizerName}";
|
|
1872
1869
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "authorizerName", () => input.authorizerName, "{authorizerName}", false);
|
|
1873
1870
|
let body;
|
|
1874
1871
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1885,7 +1882,7 @@ exports.serializeAws_restJson1DescribeAuthorizerCommand = serializeAws_restJson1
|
|
|
1885
1882
|
const serializeAws_restJson1DescribeBillingGroupCommand = async (input, context) => {
|
|
1886
1883
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1887
1884
|
const headers = {};
|
|
1888
|
-
let resolvedPath = `${
|
|
1885
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/billing-groups/{billingGroupName}";
|
|
1889
1886
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "billingGroupName", () => input.billingGroupName, "{billingGroupName}", false);
|
|
1890
1887
|
let body;
|
|
1891
1888
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1902,7 +1899,7 @@ exports.serializeAws_restJson1DescribeBillingGroupCommand = serializeAws_restJso
|
|
|
1902
1899
|
const serializeAws_restJson1DescribeCACertificateCommand = async (input, context) => {
|
|
1903
1900
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1904
1901
|
const headers = {};
|
|
1905
|
-
let resolvedPath = `${
|
|
1902
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cacertificate/{certificateId}";
|
|
1906
1903
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "certificateId", () => input.certificateId, "{certificateId}", false);
|
|
1907
1904
|
let body;
|
|
1908
1905
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1919,7 +1916,7 @@ exports.serializeAws_restJson1DescribeCACertificateCommand = serializeAws_restJs
|
|
|
1919
1916
|
const serializeAws_restJson1DescribeCertificateCommand = async (input, context) => {
|
|
1920
1917
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1921
1918
|
const headers = {};
|
|
1922
|
-
let resolvedPath = `${
|
|
1919
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/certificates/{certificateId}";
|
|
1923
1920
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "certificateId", () => input.certificateId, "{certificateId}", false);
|
|
1924
1921
|
let body;
|
|
1925
1922
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1936,7 +1933,7 @@ exports.serializeAws_restJson1DescribeCertificateCommand = serializeAws_restJson
|
|
|
1936
1933
|
const serializeAws_restJson1DescribeCustomMetricCommand = async (input, context) => {
|
|
1937
1934
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1938
1935
|
const headers = {};
|
|
1939
|
-
let resolvedPath = `${
|
|
1936
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/custom-metric/{metricName}";
|
|
1940
1937
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "metricName", () => input.metricName, "{metricName}", false);
|
|
1941
1938
|
let body;
|
|
1942
1939
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1955,7 +1952,7 @@ const serializeAws_restJson1DescribeDefaultAuthorizerCommand = async (input, con
|
|
|
1955
1952
|
const headers = {
|
|
1956
1953
|
"content-type": "application/json",
|
|
1957
1954
|
};
|
|
1958
|
-
const resolvedPath = `${
|
|
1955
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/default-authorizer";
|
|
1959
1956
|
let body;
|
|
1960
1957
|
body = "";
|
|
1961
1958
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1972,7 +1969,7 @@ exports.serializeAws_restJson1DescribeDefaultAuthorizerCommand = serializeAws_re
|
|
|
1972
1969
|
const serializeAws_restJson1DescribeDetectMitigationActionsTaskCommand = async (input, context) => {
|
|
1973
1970
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1974
1971
|
const headers = {};
|
|
1975
|
-
let resolvedPath = `${
|
|
1972
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detect/mitigationactions/tasks/{taskId}";
|
|
1976
1973
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "taskId", () => input.taskId, "{taskId}", false);
|
|
1977
1974
|
let body;
|
|
1978
1975
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1989,7 +1986,7 @@ exports.serializeAws_restJson1DescribeDetectMitigationActionsTaskCommand = seria
|
|
|
1989
1986
|
const serializeAws_restJson1DescribeDimensionCommand = async (input, context) => {
|
|
1990
1987
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1991
1988
|
const headers = {};
|
|
1992
|
-
let resolvedPath = `${
|
|
1989
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dimensions/{name}";
|
|
1993
1990
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
1994
1991
|
let body;
|
|
1995
1992
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2006,7 +2003,7 @@ exports.serializeAws_restJson1DescribeDimensionCommand = serializeAws_restJson1D
|
|
|
2006
2003
|
const serializeAws_restJson1DescribeDomainConfigurationCommand = async (input, context) => {
|
|
2007
2004
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2008
2005
|
const headers = {};
|
|
2009
|
-
let resolvedPath = `${
|
|
2006
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2010
2007
|
"/domainConfigurations/{domainConfigurationName}";
|
|
2011
2008
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainConfigurationName", () => input.domainConfigurationName, "{domainConfigurationName}", false);
|
|
2012
2009
|
let body;
|
|
@@ -2024,7 +2021,7 @@ exports.serializeAws_restJson1DescribeDomainConfigurationCommand = serializeAws_
|
|
|
2024
2021
|
const serializeAws_restJson1DescribeEndpointCommand = async (input, context) => {
|
|
2025
2022
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2026
2023
|
const headers = {};
|
|
2027
|
-
const resolvedPath = `${
|
|
2024
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/endpoint";
|
|
2028
2025
|
const query = map({
|
|
2029
2026
|
endpointType: [, input.endpointType],
|
|
2030
2027
|
});
|
|
@@ -2046,7 +2043,7 @@ const serializeAws_restJson1DescribeEventConfigurationsCommand = async (input, c
|
|
|
2046
2043
|
const headers = {
|
|
2047
2044
|
"content-type": "application/json",
|
|
2048
2045
|
};
|
|
2049
|
-
const resolvedPath = `${
|
|
2046
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/event-configurations";
|
|
2050
2047
|
let body;
|
|
2051
2048
|
body = "";
|
|
2052
2049
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2063,7 +2060,7 @@ exports.serializeAws_restJson1DescribeEventConfigurationsCommand = serializeAws_
|
|
|
2063
2060
|
const serializeAws_restJson1DescribeFleetMetricCommand = async (input, context) => {
|
|
2064
2061
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2065
2062
|
const headers = {};
|
|
2066
|
-
let resolvedPath = `${
|
|
2063
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fleet-metric/{metricName}";
|
|
2067
2064
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "metricName", () => input.metricName, "{metricName}", false);
|
|
2068
2065
|
let body;
|
|
2069
2066
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2080,7 +2077,7 @@ exports.serializeAws_restJson1DescribeFleetMetricCommand = serializeAws_restJson
|
|
|
2080
2077
|
const serializeAws_restJson1DescribeIndexCommand = async (input, context) => {
|
|
2081
2078
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2082
2079
|
const headers = {};
|
|
2083
|
-
let resolvedPath = `${
|
|
2080
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/indices/{indexName}";
|
|
2084
2081
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "indexName", () => input.indexName, "{indexName}", false);
|
|
2085
2082
|
let body;
|
|
2086
2083
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2097,7 +2094,7 @@ exports.serializeAws_restJson1DescribeIndexCommand = serializeAws_restJson1Descr
|
|
|
2097
2094
|
const serializeAws_restJson1DescribeJobCommand = async (input, context) => {
|
|
2098
2095
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2099
2096
|
const headers = {};
|
|
2100
|
-
let resolvedPath = `${
|
|
2097
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{jobId}";
|
|
2101
2098
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
|
|
2102
2099
|
let body;
|
|
2103
2100
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2114,7 +2111,7 @@ exports.serializeAws_restJson1DescribeJobCommand = serializeAws_restJson1Describ
|
|
|
2114
2111
|
const serializeAws_restJson1DescribeJobExecutionCommand = async (input, context) => {
|
|
2115
2112
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2116
2113
|
const headers = {};
|
|
2117
|
-
let resolvedPath = `${
|
|
2114
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}/jobs/{jobId}";
|
|
2118
2115
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
|
|
2119
2116
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "thingName", () => input.thingName, "{thingName}", false);
|
|
2120
2117
|
const query = map({
|
|
@@ -2136,7 +2133,7 @@ exports.serializeAws_restJson1DescribeJobExecutionCommand = serializeAws_restJso
|
|
|
2136
2133
|
const serializeAws_restJson1DescribeJobTemplateCommand = async (input, context) => {
|
|
2137
2134
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2138
2135
|
const headers = {};
|
|
2139
|
-
let resolvedPath = `${
|
|
2136
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/job-templates/{jobTemplateId}";
|
|
2140
2137
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobTemplateId", () => input.jobTemplateId, "{jobTemplateId}", false);
|
|
2141
2138
|
let body;
|
|
2142
2139
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2153,7 +2150,7 @@ exports.serializeAws_restJson1DescribeJobTemplateCommand = serializeAws_restJson
|
|
|
2153
2150
|
const serializeAws_restJson1DescribeManagedJobTemplateCommand = async (input, context) => {
|
|
2154
2151
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2155
2152
|
const headers = {};
|
|
2156
|
-
let resolvedPath = `${
|
|
2153
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/managed-job-templates/{templateName}";
|
|
2157
2154
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "templateName", () => input.templateName, "{templateName}", false);
|
|
2158
2155
|
const query = map({
|
|
2159
2156
|
templateVersion: [, input.templateVersion],
|
|
@@ -2174,7 +2171,7 @@ exports.serializeAws_restJson1DescribeManagedJobTemplateCommand = serializeAws_r
|
|
|
2174
2171
|
const serializeAws_restJson1DescribeMitigationActionCommand = async (input, context) => {
|
|
2175
2172
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2176
2173
|
const headers = {};
|
|
2177
|
-
let resolvedPath = `${
|
|
2174
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/mitigationactions/actions/{actionName}";
|
|
2178
2175
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "actionName", () => input.actionName, "{actionName}", false);
|
|
2179
2176
|
let body;
|
|
2180
2177
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2191,7 +2188,7 @@ exports.serializeAws_restJson1DescribeMitigationActionCommand = serializeAws_res
|
|
|
2191
2188
|
const serializeAws_restJson1DescribeProvisioningTemplateCommand = async (input, context) => {
|
|
2192
2189
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2193
2190
|
const headers = {};
|
|
2194
|
-
let resolvedPath = `${
|
|
2191
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/provisioning-templates/{templateName}";
|
|
2195
2192
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "templateName", () => input.templateName, "{templateName}", false);
|
|
2196
2193
|
let body;
|
|
2197
2194
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2208,7 +2205,7 @@ exports.serializeAws_restJson1DescribeProvisioningTemplateCommand = serializeAws
|
|
|
2208
2205
|
const serializeAws_restJson1DescribeProvisioningTemplateVersionCommand = async (input, context) => {
|
|
2209
2206
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2210
2207
|
const headers = {};
|
|
2211
|
-
let resolvedPath = `${
|
|
2208
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2212
2209
|
"/provisioning-templates/{templateName}/versions/{versionId}";
|
|
2213
2210
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "templateName", () => input.templateName, "{templateName}", false);
|
|
2214
2211
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "versionId", () => input.versionId.toString(), "{versionId}", false);
|
|
@@ -2227,7 +2224,7 @@ exports.serializeAws_restJson1DescribeProvisioningTemplateVersionCommand = seria
|
|
|
2227
2224
|
const serializeAws_restJson1DescribeRoleAliasCommand = async (input, context) => {
|
|
2228
2225
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2229
2226
|
const headers = {};
|
|
2230
|
-
let resolvedPath = `${
|
|
2227
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/role-aliases/{roleAlias}";
|
|
2231
2228
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "roleAlias", () => input.roleAlias, "{roleAlias}", false);
|
|
2232
2229
|
let body;
|
|
2233
2230
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2244,7 +2241,7 @@ exports.serializeAws_restJson1DescribeRoleAliasCommand = serializeAws_restJson1D
|
|
|
2244
2241
|
const serializeAws_restJson1DescribeScheduledAuditCommand = async (input, context) => {
|
|
2245
2242
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2246
2243
|
const headers = {};
|
|
2247
|
-
let resolvedPath = `${
|
|
2244
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2248
2245
|
"/audit/scheduledaudits/{scheduledAuditName}";
|
|
2249
2246
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "scheduledAuditName", () => input.scheduledAuditName, "{scheduledAuditName}", false);
|
|
2250
2247
|
let body;
|
|
@@ -2262,7 +2259,7 @@ exports.serializeAws_restJson1DescribeScheduledAuditCommand = serializeAws_restJ
|
|
|
2262
2259
|
const serializeAws_restJson1DescribeSecurityProfileCommand = async (input, context) => {
|
|
2263
2260
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2264
2261
|
const headers = {};
|
|
2265
|
-
let resolvedPath = `${
|
|
2262
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/security-profiles/{securityProfileName}";
|
|
2266
2263
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "securityProfileName", () => input.securityProfileName, "{securityProfileName}", false);
|
|
2267
2264
|
let body;
|
|
2268
2265
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2279,7 +2276,7 @@ exports.serializeAws_restJson1DescribeSecurityProfileCommand = serializeAws_rest
|
|
|
2279
2276
|
const serializeAws_restJson1DescribeStreamCommand = async (input, context) => {
|
|
2280
2277
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2281
2278
|
const headers = {};
|
|
2282
|
-
let resolvedPath = `${
|
|
2279
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/streams/{streamId}";
|
|
2283
2280
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "streamId", () => input.streamId, "{streamId}", false);
|
|
2284
2281
|
let body;
|
|
2285
2282
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2296,7 +2293,7 @@ exports.serializeAws_restJson1DescribeStreamCommand = serializeAws_restJson1Desc
|
|
|
2296
2293
|
const serializeAws_restJson1DescribeThingCommand = async (input, context) => {
|
|
2297
2294
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2298
2295
|
const headers = {};
|
|
2299
|
-
let resolvedPath = `${
|
|
2296
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}";
|
|
2300
2297
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "thingName", () => input.thingName, "{thingName}", false);
|
|
2301
2298
|
let body;
|
|
2302
2299
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2313,7 +2310,7 @@ exports.serializeAws_restJson1DescribeThingCommand = serializeAws_restJson1Descr
|
|
|
2313
2310
|
const serializeAws_restJson1DescribeThingGroupCommand = async (input, context) => {
|
|
2314
2311
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2315
2312
|
const headers = {};
|
|
2316
|
-
let resolvedPath = `${
|
|
2313
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-groups/{thingGroupName}";
|
|
2317
2314
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "thingGroupName", () => input.thingGroupName, "{thingGroupName}", false);
|
|
2318
2315
|
let body;
|
|
2319
2316
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2330,7 +2327,7 @@ exports.serializeAws_restJson1DescribeThingGroupCommand = serializeAws_restJson1
|
|
|
2330
2327
|
const serializeAws_restJson1DescribeThingRegistrationTaskCommand = async (input, context) => {
|
|
2331
2328
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2332
2329
|
const headers = {};
|
|
2333
|
-
let resolvedPath = `${
|
|
2330
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-registration-tasks/{taskId}";
|
|
2334
2331
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "taskId", () => input.taskId, "{taskId}", false);
|
|
2335
2332
|
let body;
|
|
2336
2333
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2347,7 +2344,7 @@ exports.serializeAws_restJson1DescribeThingRegistrationTaskCommand = serializeAw
|
|
|
2347
2344
|
const serializeAws_restJson1DescribeThingTypeCommand = async (input, context) => {
|
|
2348
2345
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2349
2346
|
const headers = {};
|
|
2350
|
-
let resolvedPath = `${
|
|
2347
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-types/{thingTypeName}";
|
|
2351
2348
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "thingTypeName", () => input.thingTypeName, "{thingTypeName}", false);
|
|
2352
2349
|
let body;
|
|
2353
2350
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2366,7 +2363,7 @@ const serializeAws_restJson1DetachPolicyCommand = async (input, context) => {
|
|
|
2366
2363
|
const headers = {
|
|
2367
2364
|
"content-type": "application/json",
|
|
2368
2365
|
};
|
|
2369
|
-
let resolvedPath = `${
|
|
2366
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/target-policies/{policyName}";
|
|
2370
2367
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "policyName", () => input.policyName, "{policyName}", false);
|
|
2371
2368
|
let body;
|
|
2372
2369
|
body = JSON.stringify({
|
|
@@ -2388,7 +2385,7 @@ const serializeAws_restJson1DetachPrincipalPolicyCommand = async (input, context
|
|
|
2388
2385
|
const headers = map({}, isSerializableHeaderValue, {
|
|
2389
2386
|
"x-amzn-iot-principal": input.principal,
|
|
2390
2387
|
});
|
|
2391
|
-
let resolvedPath = `${
|
|
2388
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/principal-policies/{policyName}";
|
|
2392
2389
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "policyName", () => input.policyName, "{policyName}", false);
|
|
2393
2390
|
let body;
|
|
2394
2391
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2405,7 +2402,7 @@ exports.serializeAws_restJson1DetachPrincipalPolicyCommand = serializeAws_restJs
|
|
|
2405
2402
|
const serializeAws_restJson1DetachSecurityProfileCommand = async (input, context) => {
|
|
2406
2403
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2407
2404
|
const headers = {};
|
|
2408
|
-
let resolvedPath = `${
|
|
2405
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2409
2406
|
"/security-profiles/{securityProfileName}/targets";
|
|
2410
2407
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "securityProfileName", () => input.securityProfileName, "{securityProfileName}", false);
|
|
2411
2408
|
const query = map({
|
|
@@ -2429,7 +2426,7 @@ const serializeAws_restJson1DetachThingPrincipalCommand = async (input, context)
|
|
|
2429
2426
|
const headers = map({}, isSerializableHeaderValue, {
|
|
2430
2427
|
"x-amzn-principal": input.principal,
|
|
2431
2428
|
});
|
|
2432
|
-
let resolvedPath = `${
|
|
2429
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}/principals";
|
|
2433
2430
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "thingName", () => input.thingName, "{thingName}", false);
|
|
2434
2431
|
let body;
|
|
2435
2432
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2446,7 +2443,7 @@ exports.serializeAws_restJson1DetachThingPrincipalCommand = serializeAws_restJso
|
|
|
2446
2443
|
const serializeAws_restJson1DisableTopicRuleCommand = async (input, context) => {
|
|
2447
2444
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2448
2445
|
const headers = {};
|
|
2449
|
-
let resolvedPath = `${
|
|
2446
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{ruleName}/disable";
|
|
2450
2447
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ruleName", () => input.ruleName, "{ruleName}", false);
|
|
2451
2448
|
let body;
|
|
2452
2449
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2463,7 +2460,7 @@ exports.serializeAws_restJson1DisableTopicRuleCommand = serializeAws_restJson1Di
|
|
|
2463
2460
|
const serializeAws_restJson1EnableTopicRuleCommand = async (input, context) => {
|
|
2464
2461
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2465
2462
|
const headers = {};
|
|
2466
|
-
let resolvedPath = `${
|
|
2463
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{ruleName}/enable";
|
|
2467
2464
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ruleName", () => input.ruleName, "{ruleName}", false);
|
|
2468
2465
|
let body;
|
|
2469
2466
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2480,7 +2477,7 @@ exports.serializeAws_restJson1EnableTopicRuleCommand = serializeAws_restJson1Ena
|
|
|
2480
2477
|
const serializeAws_restJson1GetBehaviorModelTrainingSummariesCommand = async (input, context) => {
|
|
2481
2478
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2482
2479
|
const headers = {};
|
|
2483
|
-
const resolvedPath = `${
|
|
2480
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/behavior-model-training/summaries";
|
|
2484
2481
|
const query = map({
|
|
2485
2482
|
securityProfileName: [, input.securityProfileName],
|
|
2486
2483
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -2504,7 +2501,7 @@ const serializeAws_restJson1GetBucketsAggregationCommand = async (input, context
|
|
|
2504
2501
|
const headers = {
|
|
2505
2502
|
"content-type": "application/json",
|
|
2506
2503
|
};
|
|
2507
|
-
const resolvedPath = `${
|
|
2504
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/indices/buckets";
|
|
2508
2505
|
let body;
|
|
2509
2506
|
body = JSON.stringify({
|
|
2510
2507
|
...(input.aggregationField != null && { aggregationField: input.aggregationField }),
|
|
@@ -2531,7 +2528,7 @@ const serializeAws_restJson1GetCardinalityCommand = async (input, context) => {
|
|
|
2531
2528
|
const headers = {
|
|
2532
2529
|
"content-type": "application/json",
|
|
2533
2530
|
};
|
|
2534
|
-
const resolvedPath = `${
|
|
2531
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/indices/cardinality";
|
|
2535
2532
|
let body;
|
|
2536
2533
|
body = JSON.stringify({
|
|
2537
2534
|
...(input.aggregationField != null && { aggregationField: input.aggregationField }),
|
|
@@ -2555,7 +2552,7 @@ const serializeAws_restJson1GetEffectivePoliciesCommand = async (input, context)
|
|
|
2555
2552
|
const headers = {
|
|
2556
2553
|
"content-type": "application/json",
|
|
2557
2554
|
};
|
|
2558
|
-
const resolvedPath = `${
|
|
2555
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/effective-policies";
|
|
2559
2556
|
const query = map({
|
|
2560
2557
|
thingName: [, input.thingName],
|
|
2561
2558
|
});
|
|
@@ -2581,7 +2578,7 @@ const serializeAws_restJson1GetIndexingConfigurationCommand = async (input, cont
|
|
|
2581
2578
|
const headers = {
|
|
2582
2579
|
"content-type": "application/json",
|
|
2583
2580
|
};
|
|
2584
|
-
const resolvedPath = `${
|
|
2581
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/indexing/config";
|
|
2585
2582
|
let body;
|
|
2586
2583
|
body = "";
|
|
2587
2584
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2598,7 +2595,7 @@ exports.serializeAws_restJson1GetIndexingConfigurationCommand = serializeAws_res
|
|
|
2598
2595
|
const serializeAws_restJson1GetJobDocumentCommand = async (input, context) => {
|
|
2599
2596
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2600
2597
|
const headers = {};
|
|
2601
|
-
let resolvedPath = `${
|
|
2598
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{jobId}/job-document";
|
|
2602
2599
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
|
|
2603
2600
|
let body;
|
|
2604
2601
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2617,7 +2614,7 @@ const serializeAws_restJson1GetLoggingOptionsCommand = async (input, context) =>
|
|
|
2617
2614
|
const headers = {
|
|
2618
2615
|
"content-type": "application/json",
|
|
2619
2616
|
};
|
|
2620
|
-
const resolvedPath = `${
|
|
2617
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/loggingOptions";
|
|
2621
2618
|
let body;
|
|
2622
2619
|
body = "";
|
|
2623
2620
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2634,7 +2631,7 @@ exports.serializeAws_restJson1GetLoggingOptionsCommand = serializeAws_restJson1G
|
|
|
2634
2631
|
const serializeAws_restJson1GetOTAUpdateCommand = async (input, context) => {
|
|
2635
2632
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2636
2633
|
const headers = {};
|
|
2637
|
-
let resolvedPath = `${
|
|
2634
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/otaUpdates/{otaUpdateId}";
|
|
2638
2635
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "otaUpdateId", () => input.otaUpdateId, "{otaUpdateId}", false);
|
|
2639
2636
|
let body;
|
|
2640
2637
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2653,7 +2650,7 @@ const serializeAws_restJson1GetPercentilesCommand = async (input, context) => {
|
|
|
2653
2650
|
const headers = {
|
|
2654
2651
|
"content-type": "application/json",
|
|
2655
2652
|
};
|
|
2656
|
-
const resolvedPath = `${
|
|
2653
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/indices/percentiles";
|
|
2657
2654
|
let body;
|
|
2658
2655
|
body = JSON.stringify({
|
|
2659
2656
|
...(input.aggregationField != null && { aggregationField: input.aggregationField }),
|
|
@@ -2676,7 +2673,7 @@ exports.serializeAws_restJson1GetPercentilesCommand = serializeAws_restJson1GetP
|
|
|
2676
2673
|
const serializeAws_restJson1GetPolicyCommand = async (input, context) => {
|
|
2677
2674
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2678
2675
|
const headers = {};
|
|
2679
|
-
let resolvedPath = `${
|
|
2676
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies/{policyName}";
|
|
2680
2677
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "policyName", () => input.policyName, "{policyName}", false);
|
|
2681
2678
|
let body;
|
|
2682
2679
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2693,7 +2690,7 @@ exports.serializeAws_restJson1GetPolicyCommand = serializeAws_restJson1GetPolicy
|
|
|
2693
2690
|
const serializeAws_restJson1GetPolicyVersionCommand = async (input, context) => {
|
|
2694
2691
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2695
2692
|
const headers = {};
|
|
2696
|
-
let resolvedPath = `${
|
|
2693
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2697
2694
|
"/policies/{policyName}/version/{policyVersionId}";
|
|
2698
2695
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "policyName", () => input.policyName, "{policyName}", false);
|
|
2699
2696
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "policyVersionId", () => input.policyVersionId, "{policyVersionId}", false);
|
|
@@ -2714,7 +2711,7 @@ const serializeAws_restJson1GetRegistrationCodeCommand = async (input, context)
|
|
|
2714
2711
|
const headers = {
|
|
2715
2712
|
"content-type": "application/json",
|
|
2716
2713
|
};
|
|
2717
|
-
const resolvedPath = `${
|
|
2714
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/registrationcode";
|
|
2718
2715
|
let body;
|
|
2719
2716
|
body = "";
|
|
2720
2717
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2733,7 +2730,7 @@ const serializeAws_restJson1GetStatisticsCommand = async (input, context) => {
|
|
|
2733
2730
|
const headers = {
|
|
2734
2731
|
"content-type": "application/json",
|
|
2735
2732
|
};
|
|
2736
|
-
const resolvedPath = `${
|
|
2733
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/indices/statistics";
|
|
2737
2734
|
let body;
|
|
2738
2735
|
body = JSON.stringify({
|
|
2739
2736
|
...(input.aggregationField != null && { aggregationField: input.aggregationField }),
|
|
@@ -2755,7 +2752,7 @@ exports.serializeAws_restJson1GetStatisticsCommand = serializeAws_restJson1GetSt
|
|
|
2755
2752
|
const serializeAws_restJson1GetTopicRuleCommand = async (input, context) => {
|
|
2756
2753
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2757
2754
|
const headers = {};
|
|
2758
|
-
let resolvedPath = `${
|
|
2755
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{ruleName}";
|
|
2759
2756
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ruleName", () => input.ruleName, "{ruleName}", false);
|
|
2760
2757
|
let body;
|
|
2761
2758
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2772,7 +2769,7 @@ exports.serializeAws_restJson1GetTopicRuleCommand = serializeAws_restJson1GetTop
|
|
|
2772
2769
|
const serializeAws_restJson1GetTopicRuleDestinationCommand = async (input, context) => {
|
|
2773
2770
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2774
2771
|
const headers = {};
|
|
2775
|
-
let resolvedPath = `${
|
|
2772
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/destinations/{arn+}";
|
|
2776
2773
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "arn", () => input.arn, "{arn+}", true);
|
|
2777
2774
|
let body;
|
|
2778
2775
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2791,7 +2788,7 @@ const serializeAws_restJson1GetV2LoggingOptionsCommand = async (input, context)
|
|
|
2791
2788
|
const headers = {
|
|
2792
2789
|
"content-type": "application/json",
|
|
2793
2790
|
};
|
|
2794
|
-
const resolvedPath = `${
|
|
2791
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2LoggingOptions";
|
|
2795
2792
|
let body;
|
|
2796
2793
|
body = "";
|
|
2797
2794
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2808,7 +2805,7 @@ exports.serializeAws_restJson1GetV2LoggingOptionsCommand = serializeAws_restJson
|
|
|
2808
2805
|
const serializeAws_restJson1ListActiveViolationsCommand = async (input, context) => {
|
|
2809
2806
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2810
2807
|
const headers = {};
|
|
2811
|
-
const resolvedPath = `${
|
|
2808
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/active-violations";
|
|
2812
2809
|
const query = map({
|
|
2813
2810
|
thingName: [, input.thingName],
|
|
2814
2811
|
securityProfileName: [, input.securityProfileName],
|
|
@@ -2834,7 +2831,7 @@ exports.serializeAws_restJson1ListActiveViolationsCommand = serializeAws_restJso
|
|
|
2834
2831
|
const serializeAws_restJson1ListAttachedPoliciesCommand = async (input, context) => {
|
|
2835
2832
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2836
2833
|
const headers = {};
|
|
2837
|
-
let resolvedPath = `${
|
|
2834
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attached-policies/{target}";
|
|
2838
2835
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "target", () => input.target, "{target}", false);
|
|
2839
2836
|
const query = map({
|
|
2840
2837
|
recursive: [() => input.recursive !== void 0, () => input.recursive.toString()],
|
|
@@ -2859,7 +2856,7 @@ const serializeAws_restJson1ListAuditFindingsCommand = async (input, context) =>
|
|
|
2859
2856
|
const headers = {
|
|
2860
2857
|
"content-type": "application/json",
|
|
2861
2858
|
};
|
|
2862
|
-
const resolvedPath = `${
|
|
2859
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/findings";
|
|
2863
2860
|
let body;
|
|
2864
2861
|
body = JSON.stringify({
|
|
2865
2862
|
...(input.checkName != null && { checkName: input.checkName }),
|
|
@@ -2887,7 +2884,7 @@ exports.serializeAws_restJson1ListAuditFindingsCommand = serializeAws_restJson1L
|
|
|
2887
2884
|
const serializeAws_restJson1ListAuditMitigationActionsExecutionsCommand = async (input, context) => {
|
|
2888
2885
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2889
2886
|
const headers = {};
|
|
2890
|
-
const resolvedPath = `${
|
|
2887
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/mitigationactions/executions";
|
|
2891
2888
|
const query = map({
|
|
2892
2889
|
taskId: [, input.taskId],
|
|
2893
2890
|
actionStatus: [, input.actionStatus],
|
|
@@ -2911,7 +2908,7 @@ exports.serializeAws_restJson1ListAuditMitigationActionsExecutionsCommand = seri
|
|
|
2911
2908
|
const serializeAws_restJson1ListAuditMitigationActionsTasksCommand = async (input, context) => {
|
|
2912
2909
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2913
2910
|
const headers = {};
|
|
2914
|
-
const resolvedPath = `${
|
|
2911
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/mitigationactions/tasks";
|
|
2915
2912
|
const query = map({
|
|
2916
2913
|
auditTaskId: [, input.auditTaskId],
|
|
2917
2914
|
findingId: [, input.findingId],
|
|
@@ -2942,7 +2939,7 @@ const serializeAws_restJson1ListAuditSuppressionsCommand = async (input, context
|
|
|
2942
2939
|
const headers = {
|
|
2943
2940
|
"content-type": "application/json",
|
|
2944
2941
|
};
|
|
2945
|
-
const resolvedPath = `${
|
|
2942
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/suppressions/list";
|
|
2946
2943
|
let body;
|
|
2947
2944
|
body = JSON.stringify({
|
|
2948
2945
|
...(input.ascendingOrder != null && { ascendingOrder: input.ascendingOrder }),
|
|
@@ -2967,7 +2964,7 @@ exports.serializeAws_restJson1ListAuditSuppressionsCommand = serializeAws_restJs
|
|
|
2967
2964
|
const serializeAws_restJson1ListAuditTasksCommand = async (input, context) => {
|
|
2968
2965
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2969
2966
|
const headers = {};
|
|
2970
|
-
const resolvedPath = `${
|
|
2967
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/tasks";
|
|
2971
2968
|
const query = map({
|
|
2972
2969
|
startTime: [
|
|
2973
2970
|
() => input.startTime !== void 0,
|
|
@@ -2995,7 +2992,7 @@ exports.serializeAws_restJson1ListAuditTasksCommand = serializeAws_restJson1List
|
|
|
2995
2992
|
const serializeAws_restJson1ListAuthorizersCommand = async (input, context) => {
|
|
2996
2993
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2997
2994
|
const headers = {};
|
|
2998
|
-
const resolvedPath = `${
|
|
2995
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/authorizers";
|
|
2999
2996
|
const query = map({
|
|
3000
2997
|
pageSize: [() => input.pageSize !== void 0, () => input.pageSize.toString()],
|
|
3001
2998
|
marker: [, input.marker],
|
|
@@ -3018,7 +3015,7 @@ exports.serializeAws_restJson1ListAuthorizersCommand = serializeAws_restJson1Lis
|
|
|
3018
3015
|
const serializeAws_restJson1ListBillingGroupsCommand = async (input, context) => {
|
|
3019
3016
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3020
3017
|
const headers = {};
|
|
3021
|
-
const resolvedPath = `${
|
|
3018
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/billing-groups";
|
|
3022
3019
|
const query = map({
|
|
3023
3020
|
nextToken: [, input.nextToken],
|
|
3024
3021
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -3040,7 +3037,7 @@ exports.serializeAws_restJson1ListBillingGroupsCommand = serializeAws_restJson1L
|
|
|
3040
3037
|
const serializeAws_restJson1ListCACertificatesCommand = async (input, context) => {
|
|
3041
3038
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3042
3039
|
const headers = {};
|
|
3043
|
-
const resolvedPath = `${
|
|
3040
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cacertificates";
|
|
3044
3041
|
const query = map({
|
|
3045
3042
|
pageSize: [() => input.pageSize !== void 0, () => input.pageSize.toString()],
|
|
3046
3043
|
marker: [, input.marker],
|
|
@@ -3063,7 +3060,7 @@ exports.serializeAws_restJson1ListCACertificatesCommand = serializeAws_restJson1
|
|
|
3063
3060
|
const serializeAws_restJson1ListCertificatesCommand = async (input, context) => {
|
|
3064
3061
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3065
3062
|
const headers = {};
|
|
3066
|
-
const resolvedPath = `${
|
|
3063
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/certificates";
|
|
3067
3064
|
const query = map({
|
|
3068
3065
|
pageSize: [() => input.pageSize !== void 0, () => input.pageSize.toString()],
|
|
3069
3066
|
marker: [, input.marker],
|
|
@@ -3085,7 +3082,7 @@ exports.serializeAws_restJson1ListCertificatesCommand = serializeAws_restJson1Li
|
|
|
3085
3082
|
const serializeAws_restJson1ListCertificatesByCACommand = async (input, context) => {
|
|
3086
3083
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3087
3084
|
const headers = {};
|
|
3088
|
-
let resolvedPath = `${
|
|
3085
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/certificates-by-ca/{caCertificateId}";
|
|
3089
3086
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "caCertificateId", () => input.caCertificateId, "{caCertificateId}", false);
|
|
3090
3087
|
const query = map({
|
|
3091
3088
|
pageSize: [() => input.pageSize !== void 0, () => input.pageSize.toString()],
|
|
@@ -3108,7 +3105,7 @@ exports.serializeAws_restJson1ListCertificatesByCACommand = serializeAws_restJso
|
|
|
3108
3105
|
const serializeAws_restJson1ListCustomMetricsCommand = async (input, context) => {
|
|
3109
3106
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3110
3107
|
const headers = {};
|
|
3111
|
-
const resolvedPath = `${
|
|
3108
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/custom-metrics";
|
|
3112
3109
|
const query = map({
|
|
3113
3110
|
nextToken: [, input.nextToken],
|
|
3114
3111
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -3129,7 +3126,7 @@ exports.serializeAws_restJson1ListCustomMetricsCommand = serializeAws_restJson1L
|
|
|
3129
3126
|
const serializeAws_restJson1ListDetectMitigationActionsExecutionsCommand = async (input, context) => {
|
|
3130
3127
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3131
3128
|
const headers = {};
|
|
3132
|
-
const resolvedPath = `${
|
|
3129
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detect/mitigationactions/executions";
|
|
3133
3130
|
const query = map({
|
|
3134
3131
|
taskId: [, input.taskId],
|
|
3135
3132
|
violationId: [, input.violationId],
|
|
@@ -3158,7 +3155,7 @@ exports.serializeAws_restJson1ListDetectMitigationActionsExecutionsCommand = ser
|
|
|
3158
3155
|
const serializeAws_restJson1ListDetectMitigationActionsTasksCommand = async (input, context) => {
|
|
3159
3156
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3160
3157
|
const headers = {};
|
|
3161
|
-
const resolvedPath = `${
|
|
3158
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detect/mitigationactions/tasks";
|
|
3162
3159
|
const query = map({
|
|
3163
3160
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
3164
3161
|
nextToken: [, input.nextToken],
|
|
@@ -3184,7 +3181,7 @@ exports.serializeAws_restJson1ListDetectMitigationActionsTasksCommand = serializ
|
|
|
3184
3181
|
const serializeAws_restJson1ListDimensionsCommand = async (input, context) => {
|
|
3185
3182
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3186
3183
|
const headers = {};
|
|
3187
|
-
const resolvedPath = `${
|
|
3184
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dimensions";
|
|
3188
3185
|
const query = map({
|
|
3189
3186
|
nextToken: [, input.nextToken],
|
|
3190
3187
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -3205,7 +3202,7 @@ exports.serializeAws_restJson1ListDimensionsCommand = serializeAws_restJson1List
|
|
|
3205
3202
|
const serializeAws_restJson1ListDomainConfigurationsCommand = async (input, context) => {
|
|
3206
3203
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3207
3204
|
const headers = {};
|
|
3208
|
-
const resolvedPath = `${
|
|
3205
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domainConfigurations";
|
|
3209
3206
|
const query = map({
|
|
3210
3207
|
marker: [, input.marker],
|
|
3211
3208
|
pageSize: [() => input.pageSize !== void 0, () => input.pageSize.toString()],
|
|
@@ -3227,7 +3224,7 @@ exports.serializeAws_restJson1ListDomainConfigurationsCommand = serializeAws_res
|
|
|
3227
3224
|
const serializeAws_restJson1ListFleetMetricsCommand = async (input, context) => {
|
|
3228
3225
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3229
3226
|
const headers = {};
|
|
3230
|
-
const resolvedPath = `${
|
|
3227
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fleet-metrics";
|
|
3231
3228
|
const query = map({
|
|
3232
3229
|
nextToken: [, input.nextToken],
|
|
3233
3230
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -3248,7 +3245,7 @@ exports.serializeAws_restJson1ListFleetMetricsCommand = serializeAws_restJson1Li
|
|
|
3248
3245
|
const serializeAws_restJson1ListIndicesCommand = async (input, context) => {
|
|
3249
3246
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3250
3247
|
const headers = {};
|
|
3251
|
-
const resolvedPath = `${
|
|
3248
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/indices";
|
|
3252
3249
|
const query = map({
|
|
3253
3250
|
nextToken: [, input.nextToken],
|
|
3254
3251
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -3269,7 +3266,7 @@ exports.serializeAws_restJson1ListIndicesCommand = serializeAws_restJson1ListInd
|
|
|
3269
3266
|
const serializeAws_restJson1ListJobExecutionsForJobCommand = async (input, context) => {
|
|
3270
3267
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3271
3268
|
const headers = {};
|
|
3272
|
-
let resolvedPath = `${
|
|
3269
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{jobId}/things";
|
|
3273
3270
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
|
|
3274
3271
|
const query = map({
|
|
3275
3272
|
status: [, input.status],
|
|
@@ -3292,7 +3289,7 @@ exports.serializeAws_restJson1ListJobExecutionsForJobCommand = serializeAws_rest
|
|
|
3292
3289
|
const serializeAws_restJson1ListJobExecutionsForThingCommand = async (input, context) => {
|
|
3293
3290
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3294
3291
|
const headers = {};
|
|
3295
|
-
let resolvedPath = `${
|
|
3292
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}/jobs";
|
|
3296
3293
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "thingName", () => input.thingName, "{thingName}", false);
|
|
3297
3294
|
const query = map({
|
|
3298
3295
|
status: [, input.status],
|
|
@@ -3317,7 +3314,7 @@ exports.serializeAws_restJson1ListJobExecutionsForThingCommand = serializeAws_re
|
|
|
3317
3314
|
const serializeAws_restJson1ListJobsCommand = async (input, context) => {
|
|
3318
3315
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3319
3316
|
const headers = {};
|
|
3320
|
-
const resolvedPath = `${
|
|
3317
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs";
|
|
3321
3318
|
const query = map({
|
|
3322
3319
|
status: [, input.status],
|
|
3323
3320
|
targetSelection: [, input.targetSelection],
|
|
@@ -3343,7 +3340,7 @@ exports.serializeAws_restJson1ListJobsCommand = serializeAws_restJson1ListJobsCo
|
|
|
3343
3340
|
const serializeAws_restJson1ListJobTemplatesCommand = async (input, context) => {
|
|
3344
3341
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3345
3342
|
const headers = {};
|
|
3346
|
-
const resolvedPath = `${
|
|
3343
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/job-templates";
|
|
3347
3344
|
const query = map({
|
|
3348
3345
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
3349
3346
|
nextToken: [, input.nextToken],
|
|
@@ -3364,7 +3361,7 @@ exports.serializeAws_restJson1ListJobTemplatesCommand = serializeAws_restJson1Li
|
|
|
3364
3361
|
const serializeAws_restJson1ListManagedJobTemplatesCommand = async (input, context) => {
|
|
3365
3362
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3366
3363
|
const headers = {};
|
|
3367
|
-
const resolvedPath = `${
|
|
3364
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/managed-job-templates";
|
|
3368
3365
|
const query = map({
|
|
3369
3366
|
templateName: [, input.templateName],
|
|
3370
3367
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -3386,7 +3383,7 @@ exports.serializeAws_restJson1ListManagedJobTemplatesCommand = serializeAws_rest
|
|
|
3386
3383
|
const serializeAws_restJson1ListMetricValuesCommand = async (input, context) => {
|
|
3387
3384
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3388
3385
|
const headers = {};
|
|
3389
|
-
const resolvedPath = `${
|
|
3386
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metric-values";
|
|
3390
3387
|
const query = map({
|
|
3391
3388
|
thingName: [, input.thingName],
|
|
3392
3389
|
metricName: [, input.metricName],
|
|
@@ -3416,7 +3413,7 @@ exports.serializeAws_restJson1ListMetricValuesCommand = serializeAws_restJson1Li
|
|
|
3416
3413
|
const serializeAws_restJson1ListMitigationActionsCommand = async (input, context) => {
|
|
3417
3414
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3418
3415
|
const headers = {};
|
|
3419
|
-
const resolvedPath = `${
|
|
3416
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/mitigationactions/actions";
|
|
3420
3417
|
const query = map({
|
|
3421
3418
|
actionType: [, input.actionType],
|
|
3422
3419
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -3438,7 +3435,7 @@ exports.serializeAws_restJson1ListMitigationActionsCommand = serializeAws_restJs
|
|
|
3438
3435
|
const serializeAws_restJson1ListOTAUpdatesCommand = async (input, context) => {
|
|
3439
3436
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3440
3437
|
const headers = {};
|
|
3441
|
-
const resolvedPath = `${
|
|
3438
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/otaUpdates";
|
|
3442
3439
|
const query = map({
|
|
3443
3440
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
3444
3441
|
nextToken: [, input.nextToken],
|
|
@@ -3460,7 +3457,7 @@ exports.serializeAws_restJson1ListOTAUpdatesCommand = serializeAws_restJson1List
|
|
|
3460
3457
|
const serializeAws_restJson1ListOutgoingCertificatesCommand = async (input, context) => {
|
|
3461
3458
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3462
3459
|
const headers = {};
|
|
3463
|
-
const resolvedPath = `${
|
|
3460
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/certificates-out-going";
|
|
3464
3461
|
const query = map({
|
|
3465
3462
|
pageSize: [() => input.pageSize !== void 0, () => input.pageSize.toString()],
|
|
3466
3463
|
marker: [, input.marker],
|
|
@@ -3482,7 +3479,7 @@ exports.serializeAws_restJson1ListOutgoingCertificatesCommand = serializeAws_res
|
|
|
3482
3479
|
const serializeAws_restJson1ListPoliciesCommand = async (input, context) => {
|
|
3483
3480
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3484
3481
|
const headers = {};
|
|
3485
|
-
const resolvedPath = `${
|
|
3482
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies";
|
|
3486
3483
|
const query = map({
|
|
3487
3484
|
marker: [, input.marker],
|
|
3488
3485
|
pageSize: [() => input.pageSize !== void 0, () => input.pageSize.toString()],
|
|
@@ -3506,7 +3503,7 @@ const serializeAws_restJson1ListPolicyPrincipalsCommand = async (input, context)
|
|
|
3506
3503
|
const headers = map({}, isSerializableHeaderValue, {
|
|
3507
3504
|
"x-amzn-iot-policy": input.policyName,
|
|
3508
3505
|
});
|
|
3509
|
-
const resolvedPath = `${
|
|
3506
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy-principals";
|
|
3510
3507
|
const query = map({
|
|
3511
3508
|
marker: [, input.marker],
|
|
3512
3509
|
pageSize: [() => input.pageSize !== void 0, () => input.pageSize.toString()],
|
|
@@ -3528,7 +3525,7 @@ exports.serializeAws_restJson1ListPolicyPrincipalsCommand = serializeAws_restJso
|
|
|
3528
3525
|
const serializeAws_restJson1ListPolicyVersionsCommand = async (input, context) => {
|
|
3529
3526
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3530
3527
|
const headers = {};
|
|
3531
|
-
let resolvedPath = `${
|
|
3528
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies/{policyName}/version";
|
|
3532
3529
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "policyName", () => input.policyName, "{policyName}", false);
|
|
3533
3530
|
let body;
|
|
3534
3531
|
return new protocol_http_1.HttpRequest({
|
|
@@ -3547,7 +3544,7 @@ const serializeAws_restJson1ListPrincipalPoliciesCommand = async (input, context
|
|
|
3547
3544
|
const headers = map({}, isSerializableHeaderValue, {
|
|
3548
3545
|
"x-amzn-iot-principal": input.principal,
|
|
3549
3546
|
});
|
|
3550
|
-
const resolvedPath = `${
|
|
3547
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/principal-policies";
|
|
3551
3548
|
const query = map({
|
|
3552
3549
|
marker: [, input.marker],
|
|
3553
3550
|
pageSize: [() => input.pageSize !== void 0, () => input.pageSize.toString()],
|
|
@@ -3571,7 +3568,7 @@ const serializeAws_restJson1ListPrincipalThingsCommand = async (input, context)
|
|
|
3571
3568
|
const headers = map({}, isSerializableHeaderValue, {
|
|
3572
3569
|
"x-amzn-principal": input.principal,
|
|
3573
3570
|
});
|
|
3574
|
-
const resolvedPath = `${
|
|
3571
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/principals/things";
|
|
3575
3572
|
const query = map({
|
|
3576
3573
|
nextToken: [, input.nextToken],
|
|
3577
3574
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -3592,7 +3589,7 @@ exports.serializeAws_restJson1ListPrincipalThingsCommand = serializeAws_restJson
|
|
|
3592
3589
|
const serializeAws_restJson1ListProvisioningTemplatesCommand = async (input, context) => {
|
|
3593
3590
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3594
3591
|
const headers = {};
|
|
3595
|
-
const resolvedPath = `${
|
|
3592
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/provisioning-templates";
|
|
3596
3593
|
const query = map({
|
|
3597
3594
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
3598
3595
|
nextToken: [, input.nextToken],
|
|
@@ -3613,7 +3610,7 @@ exports.serializeAws_restJson1ListProvisioningTemplatesCommand = serializeAws_re
|
|
|
3613
3610
|
const serializeAws_restJson1ListProvisioningTemplateVersionsCommand = async (input, context) => {
|
|
3614
3611
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3615
3612
|
const headers = {};
|
|
3616
|
-
let resolvedPath = `${
|
|
3613
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
3617
3614
|
"/provisioning-templates/{templateName}/versions";
|
|
3618
3615
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "templateName", () => input.templateName, "{templateName}", false);
|
|
3619
3616
|
const query = map({
|
|
@@ -3636,7 +3633,7 @@ exports.serializeAws_restJson1ListProvisioningTemplateVersionsCommand = serializ
|
|
|
3636
3633
|
const serializeAws_restJson1ListRoleAliasesCommand = async (input, context) => {
|
|
3637
3634
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3638
3635
|
const headers = {};
|
|
3639
|
-
const resolvedPath = `${
|
|
3636
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/role-aliases";
|
|
3640
3637
|
const query = map({
|
|
3641
3638
|
pageSize: [() => input.pageSize !== void 0, () => input.pageSize.toString()],
|
|
3642
3639
|
marker: [, input.marker],
|
|
@@ -3658,7 +3655,7 @@ exports.serializeAws_restJson1ListRoleAliasesCommand = serializeAws_restJson1Lis
|
|
|
3658
3655
|
const serializeAws_restJson1ListScheduledAuditsCommand = async (input, context) => {
|
|
3659
3656
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3660
3657
|
const headers = {};
|
|
3661
|
-
const resolvedPath = `${
|
|
3658
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/scheduledaudits";
|
|
3662
3659
|
const query = map({
|
|
3663
3660
|
nextToken: [, input.nextToken],
|
|
3664
3661
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -3679,7 +3676,7 @@ exports.serializeAws_restJson1ListScheduledAuditsCommand = serializeAws_restJson
|
|
|
3679
3676
|
const serializeAws_restJson1ListSecurityProfilesCommand = async (input, context) => {
|
|
3680
3677
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3681
3678
|
const headers = {};
|
|
3682
|
-
const resolvedPath = `${
|
|
3679
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/security-profiles";
|
|
3683
3680
|
const query = map({
|
|
3684
3681
|
nextToken: [, input.nextToken],
|
|
3685
3682
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -3702,7 +3699,7 @@ exports.serializeAws_restJson1ListSecurityProfilesCommand = serializeAws_restJso
|
|
|
3702
3699
|
const serializeAws_restJson1ListSecurityProfilesForTargetCommand = async (input, context) => {
|
|
3703
3700
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3704
3701
|
const headers = {};
|
|
3705
|
-
const resolvedPath = `${
|
|
3702
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/security-profiles-for-target";
|
|
3706
3703
|
const query = map({
|
|
3707
3704
|
nextToken: [, input.nextToken],
|
|
3708
3705
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -3725,7 +3722,7 @@ exports.serializeAws_restJson1ListSecurityProfilesForTargetCommand = serializeAw
|
|
|
3725
3722
|
const serializeAws_restJson1ListStreamsCommand = async (input, context) => {
|
|
3726
3723
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3727
3724
|
const headers = {};
|
|
3728
|
-
const resolvedPath = `${
|
|
3725
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/streams";
|
|
3729
3726
|
const query = map({
|
|
3730
3727
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
3731
3728
|
nextToken: [, input.nextToken],
|
|
@@ -3747,7 +3744,7 @@ exports.serializeAws_restJson1ListStreamsCommand = serializeAws_restJson1ListStr
|
|
|
3747
3744
|
const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
|
|
3748
3745
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3749
3746
|
const headers = {};
|
|
3750
|
-
const resolvedPath = `${
|
|
3747
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
3751
3748
|
const query = map({
|
|
3752
3749
|
resourceArn: [, input.resourceArn],
|
|
3753
3750
|
nextToken: [, input.nextToken],
|
|
@@ -3768,7 +3765,7 @@ exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson
|
|
|
3768
3765
|
const serializeAws_restJson1ListTargetsForPolicyCommand = async (input, context) => {
|
|
3769
3766
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3770
3767
|
const headers = {};
|
|
3771
|
-
let resolvedPath = `${
|
|
3768
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy-targets/{policyName}";
|
|
3772
3769
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "policyName", () => input.policyName, "{policyName}", false);
|
|
3773
3770
|
const query = map({
|
|
3774
3771
|
marker: [, input.marker],
|
|
@@ -3790,7 +3787,7 @@ exports.serializeAws_restJson1ListTargetsForPolicyCommand = serializeAws_restJso
|
|
|
3790
3787
|
const serializeAws_restJson1ListTargetsForSecurityProfileCommand = async (input, context) => {
|
|
3791
3788
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3792
3789
|
const headers = {};
|
|
3793
|
-
let resolvedPath = `${
|
|
3790
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
3794
3791
|
"/security-profiles/{securityProfileName}/targets";
|
|
3795
3792
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "securityProfileName", () => input.securityProfileName, "{securityProfileName}", false);
|
|
3796
3793
|
const query = map({
|
|
@@ -3813,7 +3810,7 @@ exports.serializeAws_restJson1ListTargetsForSecurityProfileCommand = serializeAw
|
|
|
3813
3810
|
const serializeAws_restJson1ListThingGroupsCommand = async (input, context) => {
|
|
3814
3811
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3815
3812
|
const headers = {};
|
|
3816
|
-
const resolvedPath = `${
|
|
3813
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-groups";
|
|
3817
3814
|
const query = map({
|
|
3818
3815
|
nextToken: [, input.nextToken],
|
|
3819
3816
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -3837,7 +3834,7 @@ exports.serializeAws_restJson1ListThingGroupsCommand = serializeAws_restJson1Lis
|
|
|
3837
3834
|
const serializeAws_restJson1ListThingGroupsForThingCommand = async (input, context) => {
|
|
3838
3835
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3839
3836
|
const headers = {};
|
|
3840
|
-
let resolvedPath = `${
|
|
3837
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}/thing-groups";
|
|
3841
3838
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "thingName", () => input.thingName, "{thingName}", false);
|
|
3842
3839
|
const query = map({
|
|
3843
3840
|
nextToken: [, input.nextToken],
|
|
@@ -3859,7 +3856,7 @@ exports.serializeAws_restJson1ListThingGroupsForThingCommand = serializeAws_rest
|
|
|
3859
3856
|
const serializeAws_restJson1ListThingPrincipalsCommand = async (input, context) => {
|
|
3860
3857
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3861
3858
|
const headers = {};
|
|
3862
|
-
let resolvedPath = `${
|
|
3859
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}/principals";
|
|
3863
3860
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "thingName", () => input.thingName, "{thingName}", false);
|
|
3864
3861
|
const query = map({
|
|
3865
3862
|
nextToken: [, input.nextToken],
|
|
@@ -3881,7 +3878,7 @@ exports.serializeAws_restJson1ListThingPrincipalsCommand = serializeAws_restJson
|
|
|
3881
3878
|
const serializeAws_restJson1ListThingRegistrationTaskReportsCommand = async (input, context) => {
|
|
3882
3879
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3883
3880
|
const headers = {};
|
|
3884
|
-
let resolvedPath = `${
|
|
3881
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
3885
3882
|
"/thing-registration-tasks/{taskId}/reports";
|
|
3886
3883
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "taskId", () => input.taskId, "{taskId}", false);
|
|
3887
3884
|
const query = map({
|
|
@@ -3905,7 +3902,7 @@ exports.serializeAws_restJson1ListThingRegistrationTaskReportsCommand = serializ
|
|
|
3905
3902
|
const serializeAws_restJson1ListThingRegistrationTasksCommand = async (input, context) => {
|
|
3906
3903
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3907
3904
|
const headers = {};
|
|
3908
|
-
const resolvedPath = `${
|
|
3905
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-registration-tasks";
|
|
3909
3906
|
const query = map({
|
|
3910
3907
|
nextToken: [, input.nextToken],
|
|
3911
3908
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -3927,7 +3924,7 @@ exports.serializeAws_restJson1ListThingRegistrationTasksCommand = serializeAws_r
|
|
|
3927
3924
|
const serializeAws_restJson1ListThingsCommand = async (input, context) => {
|
|
3928
3925
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3929
3926
|
const headers = {};
|
|
3930
|
-
const resolvedPath = `${
|
|
3927
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things";
|
|
3931
3928
|
const query = map({
|
|
3932
3929
|
nextToken: [, input.nextToken],
|
|
3933
3930
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -3955,7 +3952,7 @@ exports.serializeAws_restJson1ListThingsCommand = serializeAws_restJson1ListThin
|
|
|
3955
3952
|
const serializeAws_restJson1ListThingsInBillingGroupCommand = async (input, context) => {
|
|
3956
3953
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3957
3954
|
const headers = {};
|
|
3958
|
-
let resolvedPath = `${
|
|
3955
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/billing-groups/{billingGroupName}/things";
|
|
3959
3956
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "billingGroupName", () => input.billingGroupName, "{billingGroupName}", false);
|
|
3960
3957
|
const query = map({
|
|
3961
3958
|
nextToken: [, input.nextToken],
|
|
@@ -3977,7 +3974,7 @@ exports.serializeAws_restJson1ListThingsInBillingGroupCommand = serializeAws_res
|
|
|
3977
3974
|
const serializeAws_restJson1ListThingsInThingGroupCommand = async (input, context) => {
|
|
3978
3975
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3979
3976
|
const headers = {};
|
|
3980
|
-
let resolvedPath = `${
|
|
3977
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-groups/{thingGroupName}/things";
|
|
3981
3978
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "thingGroupName", () => input.thingGroupName, "{thingGroupName}", false);
|
|
3982
3979
|
const query = map({
|
|
3983
3980
|
recursive: [() => input.recursive !== void 0, () => input.recursive.toString()],
|
|
@@ -4000,7 +3997,7 @@ exports.serializeAws_restJson1ListThingsInThingGroupCommand = serializeAws_restJ
|
|
|
4000
3997
|
const serializeAws_restJson1ListThingTypesCommand = async (input, context) => {
|
|
4001
3998
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4002
3999
|
const headers = {};
|
|
4003
|
-
const resolvedPath = `${
|
|
4000
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-types";
|
|
4004
4001
|
const query = map({
|
|
4005
4002
|
nextToken: [, input.nextToken],
|
|
4006
4003
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -4022,7 +4019,7 @@ exports.serializeAws_restJson1ListThingTypesCommand = serializeAws_restJson1List
|
|
|
4022
4019
|
const serializeAws_restJson1ListTopicRuleDestinationsCommand = async (input, context) => {
|
|
4023
4020
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4024
4021
|
const headers = {};
|
|
4025
|
-
const resolvedPath = `${
|
|
4022
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/destinations";
|
|
4026
4023
|
const query = map({
|
|
4027
4024
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
4028
4025
|
nextToken: [, input.nextToken],
|
|
@@ -4043,7 +4040,7 @@ exports.serializeAws_restJson1ListTopicRuleDestinationsCommand = serializeAws_re
|
|
|
4043
4040
|
const serializeAws_restJson1ListTopicRulesCommand = async (input, context) => {
|
|
4044
4041
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4045
4042
|
const headers = {};
|
|
4046
|
-
const resolvedPath = `${
|
|
4043
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules";
|
|
4047
4044
|
const query = map({
|
|
4048
4045
|
topic: [, input.topic],
|
|
4049
4046
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -4066,7 +4063,7 @@ exports.serializeAws_restJson1ListTopicRulesCommand = serializeAws_restJson1List
|
|
|
4066
4063
|
const serializeAws_restJson1ListV2LoggingLevelsCommand = async (input, context) => {
|
|
4067
4064
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4068
4065
|
const headers = {};
|
|
4069
|
-
const resolvedPath = `${
|
|
4066
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2LoggingLevel";
|
|
4070
4067
|
const query = map({
|
|
4071
4068
|
targetType: [, input.targetType],
|
|
4072
4069
|
nextToken: [, input.nextToken],
|
|
@@ -4088,7 +4085,7 @@ exports.serializeAws_restJson1ListV2LoggingLevelsCommand = serializeAws_restJson
|
|
|
4088
4085
|
const serializeAws_restJson1ListViolationEventsCommand = async (input, context) => {
|
|
4089
4086
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4090
4087
|
const headers = {};
|
|
4091
|
-
const resolvedPath = `${
|
|
4088
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/violation-events";
|
|
4092
4089
|
const query = map({
|
|
4093
4090
|
startTime: [
|
|
4094
4091
|
() => input.startTime !== void 0,
|
|
@@ -4121,7 +4118,7 @@ const serializeAws_restJson1PutVerificationStateOnViolationCommand = async (inpu
|
|
|
4121
4118
|
const headers = {
|
|
4122
4119
|
"content-type": "application/json",
|
|
4123
4120
|
};
|
|
4124
|
-
let resolvedPath = `${
|
|
4121
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
4125
4122
|
"/violations/verification-state/{violationId}";
|
|
4126
4123
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "violationId", () => input.violationId, "{violationId}", false);
|
|
4127
4124
|
let body;
|
|
@@ -4147,7 +4144,7 @@ const serializeAws_restJson1RegisterCACertificateCommand = async (input, context
|
|
|
4147
4144
|
const headers = {
|
|
4148
4145
|
"content-type": "application/json",
|
|
4149
4146
|
};
|
|
4150
|
-
const resolvedPath = `${
|
|
4147
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cacertificate";
|
|
4151
4148
|
const query = map({
|
|
4152
4149
|
setAsActive: [() => input.setAsActive !== void 0, () => input.setAsActive.toString()],
|
|
4153
4150
|
allowAutoRegistration: [
|
|
@@ -4182,7 +4179,7 @@ const serializeAws_restJson1RegisterCertificateCommand = async (input, context)
|
|
|
4182
4179
|
const headers = {
|
|
4183
4180
|
"content-type": "application/json",
|
|
4184
4181
|
};
|
|
4185
|
-
const resolvedPath = `${
|
|
4182
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/certificate/register";
|
|
4186
4183
|
const query = map({
|
|
4187
4184
|
setAsActive: [() => input.setAsActive !== void 0, () => input.setAsActive.toString()],
|
|
4188
4185
|
});
|
|
@@ -4209,7 +4206,7 @@ const serializeAws_restJson1RegisterCertificateWithoutCACommand = async (input,
|
|
|
4209
4206
|
const headers = {
|
|
4210
4207
|
"content-type": "application/json",
|
|
4211
4208
|
};
|
|
4212
|
-
const resolvedPath = `${
|
|
4209
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/certificate/register-no-ca";
|
|
4213
4210
|
let body;
|
|
4214
4211
|
body = JSON.stringify({
|
|
4215
4212
|
...(input.certificatePem != null && { certificatePem: input.certificatePem }),
|
|
@@ -4231,7 +4228,7 @@ const serializeAws_restJson1RegisterThingCommand = async (input, context) => {
|
|
|
4231
4228
|
const headers = {
|
|
4232
4229
|
"content-type": "application/json",
|
|
4233
4230
|
};
|
|
4234
|
-
const resolvedPath = `${
|
|
4231
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things";
|
|
4235
4232
|
let body;
|
|
4236
4233
|
body = JSON.stringify({
|
|
4237
4234
|
...(input.parameters != null && { parameters: serializeAws_restJson1Parameters(input.parameters, context) }),
|
|
@@ -4253,7 +4250,7 @@ const serializeAws_restJson1RejectCertificateTransferCommand = async (input, con
|
|
|
4253
4250
|
const headers = {
|
|
4254
4251
|
"content-type": "application/json",
|
|
4255
4252
|
};
|
|
4256
|
-
let resolvedPath = `${
|
|
4253
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
4257
4254
|
"/reject-certificate-transfer/{certificateId}";
|
|
4258
4255
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "certificateId", () => input.certificateId, "{certificateId}", false);
|
|
4259
4256
|
let body;
|
|
@@ -4276,7 +4273,7 @@ const serializeAws_restJson1RemoveThingFromBillingGroupCommand = async (input, c
|
|
|
4276
4273
|
const headers = {
|
|
4277
4274
|
"content-type": "application/json",
|
|
4278
4275
|
};
|
|
4279
|
-
const resolvedPath = `${
|
|
4276
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
4280
4277
|
"/billing-groups/removeThingFromBillingGroup";
|
|
4281
4278
|
let body;
|
|
4282
4279
|
body = JSON.stringify({
|
|
@@ -4301,7 +4298,7 @@ const serializeAws_restJson1RemoveThingFromThingGroupCommand = async (input, con
|
|
|
4301
4298
|
const headers = {
|
|
4302
4299
|
"content-type": "application/json",
|
|
4303
4300
|
};
|
|
4304
|
-
const resolvedPath = `${
|
|
4301
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-groups/removeThingFromThingGroup";
|
|
4305
4302
|
let body;
|
|
4306
4303
|
body = JSON.stringify({
|
|
4307
4304
|
...(input.thingArn != null && { thingArn: input.thingArn }),
|
|
@@ -4325,7 +4322,7 @@ const serializeAws_restJson1ReplaceTopicRuleCommand = async (input, context) =>
|
|
|
4325
4322
|
const headers = {
|
|
4326
4323
|
"content-type": "application/json",
|
|
4327
4324
|
};
|
|
4328
|
-
let resolvedPath = `${
|
|
4325
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{ruleName}";
|
|
4329
4326
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ruleName", () => input.ruleName, "{ruleName}", false);
|
|
4330
4327
|
let body;
|
|
4331
4328
|
if (input.topicRulePayload !== undefined) {
|
|
@@ -4351,7 +4348,7 @@ const serializeAws_restJson1SearchIndexCommand = async (input, context) => {
|
|
|
4351
4348
|
const headers = {
|
|
4352
4349
|
"content-type": "application/json",
|
|
4353
4350
|
};
|
|
4354
|
-
const resolvedPath = `${
|
|
4351
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/indices/search";
|
|
4355
4352
|
let body;
|
|
4356
4353
|
body = JSON.stringify({
|
|
4357
4354
|
...(input.indexName != null && { indexName: input.indexName }),
|
|
@@ -4376,7 +4373,7 @@ const serializeAws_restJson1SetDefaultAuthorizerCommand = async (input, context)
|
|
|
4376
4373
|
const headers = {
|
|
4377
4374
|
"content-type": "application/json",
|
|
4378
4375
|
};
|
|
4379
|
-
const resolvedPath = `${
|
|
4376
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/default-authorizer";
|
|
4380
4377
|
let body;
|
|
4381
4378
|
body = JSON.stringify({
|
|
4382
4379
|
...(input.authorizerName != null && { authorizerName: input.authorizerName }),
|
|
@@ -4395,7 +4392,7 @@ exports.serializeAws_restJson1SetDefaultAuthorizerCommand = serializeAws_restJso
|
|
|
4395
4392
|
const serializeAws_restJson1SetDefaultPolicyVersionCommand = async (input, context) => {
|
|
4396
4393
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4397
4394
|
const headers = {};
|
|
4398
|
-
let resolvedPath = `${
|
|
4395
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
4399
4396
|
"/policies/{policyName}/version/{policyVersionId}";
|
|
4400
4397
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "policyName", () => input.policyName, "{policyName}", false);
|
|
4401
4398
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "policyVersionId", () => input.policyVersionId, "{policyVersionId}", false);
|
|
@@ -4416,7 +4413,7 @@ const serializeAws_restJson1SetLoggingOptionsCommand = async (input, context) =>
|
|
|
4416
4413
|
const headers = {
|
|
4417
4414
|
"content-type": "application/json",
|
|
4418
4415
|
};
|
|
4419
|
-
const resolvedPath = `${
|
|
4416
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/loggingOptions";
|
|
4420
4417
|
let body;
|
|
4421
4418
|
if (input.loggingOptionsPayload !== undefined) {
|
|
4422
4419
|
body = serializeAws_restJson1LoggingOptionsPayload(input.loggingOptionsPayload, context);
|
|
@@ -4441,7 +4438,7 @@ const serializeAws_restJson1SetV2LoggingLevelCommand = async (input, context) =>
|
|
|
4441
4438
|
const headers = {
|
|
4442
4439
|
"content-type": "application/json",
|
|
4443
4440
|
};
|
|
4444
|
-
const resolvedPath = `${
|
|
4441
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2LoggingLevel";
|
|
4445
4442
|
let body;
|
|
4446
4443
|
body = JSON.stringify({
|
|
4447
4444
|
...(input.logLevel != null && { logLevel: input.logLevel }),
|
|
@@ -4463,7 +4460,7 @@ const serializeAws_restJson1SetV2LoggingOptionsCommand = async (input, context)
|
|
|
4463
4460
|
const headers = {
|
|
4464
4461
|
"content-type": "application/json",
|
|
4465
4462
|
};
|
|
4466
|
-
const resolvedPath = `${
|
|
4463
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2LoggingOptions";
|
|
4467
4464
|
let body;
|
|
4468
4465
|
body = JSON.stringify({
|
|
4469
4466
|
...(input.defaultLogLevel != null && { defaultLogLevel: input.defaultLogLevel }),
|
|
@@ -4482,19 +4479,18 @@ const serializeAws_restJson1SetV2LoggingOptionsCommand = async (input, context)
|
|
|
4482
4479
|
};
|
|
4483
4480
|
exports.serializeAws_restJson1SetV2LoggingOptionsCommand = serializeAws_restJson1SetV2LoggingOptionsCommand;
|
|
4484
4481
|
const serializeAws_restJson1StartAuditMitigationActionsTaskCommand = async (input, context) => {
|
|
4485
|
-
var _a;
|
|
4486
4482
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4487
4483
|
const headers = {
|
|
4488
4484
|
"content-type": "application/json",
|
|
4489
4485
|
};
|
|
4490
|
-
let resolvedPath = `${
|
|
4486
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/mitigationactions/tasks/{taskId}";
|
|
4491
4487
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "taskId", () => input.taskId, "{taskId}", false);
|
|
4492
4488
|
let body;
|
|
4493
4489
|
body = JSON.stringify({
|
|
4494
4490
|
...(input.auditCheckToActionsMapping != null && {
|
|
4495
4491
|
auditCheckToActionsMapping: serializeAws_restJson1AuditCheckToActionsMapping(input.auditCheckToActionsMapping, context),
|
|
4496
4492
|
}),
|
|
4497
|
-
clientRequestToken:
|
|
4493
|
+
clientRequestToken: input.clientRequestToken ?? (0, uuid_1.v4)(),
|
|
4498
4494
|
...(input.target != null && {
|
|
4499
4495
|
target: serializeAws_restJson1AuditMitigationActionsTaskTarget(input.target, context),
|
|
4500
4496
|
}),
|
|
@@ -4511,19 +4507,18 @@ const serializeAws_restJson1StartAuditMitigationActionsTaskCommand = async (inpu
|
|
|
4511
4507
|
};
|
|
4512
4508
|
exports.serializeAws_restJson1StartAuditMitigationActionsTaskCommand = serializeAws_restJson1StartAuditMitigationActionsTaskCommand;
|
|
4513
4509
|
const serializeAws_restJson1StartDetectMitigationActionsTaskCommand = async (input, context) => {
|
|
4514
|
-
var _a;
|
|
4515
4510
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4516
4511
|
const headers = {
|
|
4517
4512
|
"content-type": "application/json",
|
|
4518
4513
|
};
|
|
4519
|
-
let resolvedPath = `${
|
|
4514
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detect/mitigationactions/tasks/{taskId}";
|
|
4520
4515
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "taskId", () => input.taskId, "{taskId}", false);
|
|
4521
4516
|
let body;
|
|
4522
4517
|
body = JSON.stringify({
|
|
4523
4518
|
...(input.actions != null && {
|
|
4524
4519
|
actions: serializeAws_restJson1DetectMitigationActionsToExecuteList(input.actions, context),
|
|
4525
4520
|
}),
|
|
4526
|
-
clientRequestToken:
|
|
4521
|
+
clientRequestToken: input.clientRequestToken ?? (0, uuid_1.v4)(),
|
|
4527
4522
|
...(input.includeOnlyActiveViolations != null && {
|
|
4528
4523
|
includeOnlyActiveViolations: input.includeOnlyActiveViolations,
|
|
4529
4524
|
}),
|
|
@@ -4551,7 +4546,7 @@ const serializeAws_restJson1StartOnDemandAuditTaskCommand = async (input, contex
|
|
|
4551
4546
|
const headers = {
|
|
4552
4547
|
"content-type": "application/json",
|
|
4553
4548
|
};
|
|
4554
|
-
const resolvedPath = `${
|
|
4549
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/tasks";
|
|
4555
4550
|
let body;
|
|
4556
4551
|
body = JSON.stringify({
|
|
4557
4552
|
...(input.targetCheckNames != null && {
|
|
@@ -4574,7 +4569,7 @@ const serializeAws_restJson1StartThingRegistrationTaskCommand = async (input, co
|
|
|
4574
4569
|
const headers = {
|
|
4575
4570
|
"content-type": "application/json",
|
|
4576
4571
|
};
|
|
4577
|
-
const resolvedPath = `${
|
|
4572
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-registration-tasks";
|
|
4578
4573
|
let body;
|
|
4579
4574
|
body = JSON.stringify({
|
|
4580
4575
|
...(input.inputFileBucket != null && { inputFileBucket: input.inputFileBucket }),
|
|
@@ -4596,7 +4591,7 @@ exports.serializeAws_restJson1StartThingRegistrationTaskCommand = serializeAws_r
|
|
|
4596
4591
|
const serializeAws_restJson1StopThingRegistrationTaskCommand = async (input, context) => {
|
|
4597
4592
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4598
4593
|
const headers = {};
|
|
4599
|
-
let resolvedPath = `${
|
|
4594
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-registration-tasks/{taskId}/cancel";
|
|
4600
4595
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "taskId", () => input.taskId, "{taskId}", false);
|
|
4601
4596
|
let body;
|
|
4602
4597
|
return new protocol_http_1.HttpRequest({
|
|
@@ -4615,7 +4610,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
4615
4610
|
const headers = {
|
|
4616
4611
|
"content-type": "application/json",
|
|
4617
4612
|
};
|
|
4618
|
-
const resolvedPath = `${
|
|
4613
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
4619
4614
|
let body;
|
|
4620
4615
|
body = JSON.stringify({
|
|
4621
4616
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
@@ -4637,7 +4632,7 @@ const serializeAws_restJson1TestAuthorizationCommand = async (input, context) =>
|
|
|
4637
4632
|
const headers = {
|
|
4638
4633
|
"content-type": "application/json",
|
|
4639
4634
|
};
|
|
4640
|
-
const resolvedPath = `${
|
|
4635
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/test-authorization";
|
|
4641
4636
|
const query = map({
|
|
4642
4637
|
clientId: [, input.clientId],
|
|
4643
4638
|
});
|
|
@@ -4670,7 +4665,7 @@ const serializeAws_restJson1TestInvokeAuthorizerCommand = async (input, context)
|
|
|
4670
4665
|
const headers = {
|
|
4671
4666
|
"content-type": "application/json",
|
|
4672
4667
|
};
|
|
4673
|
-
let resolvedPath = `${
|
|
4668
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/authorizer/{authorizerName}/test";
|
|
4674
4669
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "authorizerName", () => input.authorizerName, "{authorizerName}", false);
|
|
4675
4670
|
let body;
|
|
4676
4671
|
body = JSON.stringify({
|
|
@@ -4696,7 +4691,7 @@ const serializeAws_restJson1TransferCertificateCommand = async (input, context)
|
|
|
4696
4691
|
const headers = {
|
|
4697
4692
|
"content-type": "application/json",
|
|
4698
4693
|
};
|
|
4699
|
-
let resolvedPath = `${
|
|
4694
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/transfer-certificate/{certificateId}";
|
|
4700
4695
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "certificateId", () => input.certificateId, "{certificateId}", false);
|
|
4701
4696
|
const query = map({
|
|
4702
4697
|
targetAwsAccount: [, input.targetAwsAccount],
|
|
@@ -4722,7 +4717,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
4722
4717
|
const headers = {
|
|
4723
4718
|
"content-type": "application/json",
|
|
4724
4719
|
};
|
|
4725
|
-
const resolvedPath = `${
|
|
4720
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/untag";
|
|
4726
4721
|
let body;
|
|
4727
4722
|
body = JSON.stringify({
|
|
4728
4723
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
@@ -4744,7 +4739,7 @@ const serializeAws_restJson1UpdateAccountAuditConfigurationCommand = async (inpu
|
|
|
4744
4739
|
const headers = {
|
|
4745
4740
|
"content-type": "application/json",
|
|
4746
4741
|
};
|
|
4747
|
-
const resolvedPath = `${
|
|
4742
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/configuration";
|
|
4748
4743
|
let body;
|
|
4749
4744
|
body = JSON.stringify({
|
|
4750
4745
|
...(input.auditCheckConfigurations != null && {
|
|
@@ -4771,7 +4766,7 @@ const serializeAws_restJson1UpdateAuditSuppressionCommand = async (input, contex
|
|
|
4771
4766
|
const headers = {
|
|
4772
4767
|
"content-type": "application/json",
|
|
4773
4768
|
};
|
|
4774
|
-
const resolvedPath = `${
|
|
4769
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/suppressions/update";
|
|
4775
4770
|
let body;
|
|
4776
4771
|
body = JSON.stringify({
|
|
4777
4772
|
...(input.checkName != null && { checkName: input.checkName }),
|
|
@@ -4798,7 +4793,7 @@ const serializeAws_restJson1UpdateAuthorizerCommand = async (input, context) =>
|
|
|
4798
4793
|
const headers = {
|
|
4799
4794
|
"content-type": "application/json",
|
|
4800
4795
|
};
|
|
4801
|
-
let resolvedPath = `${
|
|
4796
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/authorizer/{authorizerName}";
|
|
4802
4797
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "authorizerName", () => input.authorizerName, "{authorizerName}", false);
|
|
4803
4798
|
let body;
|
|
4804
4799
|
body = JSON.stringify({
|
|
@@ -4826,7 +4821,7 @@ const serializeAws_restJson1UpdateBillingGroupCommand = async (input, context) =
|
|
|
4826
4821
|
const headers = {
|
|
4827
4822
|
"content-type": "application/json",
|
|
4828
4823
|
};
|
|
4829
|
-
let resolvedPath = `${
|
|
4824
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/billing-groups/{billingGroupName}";
|
|
4830
4825
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "billingGroupName", () => input.billingGroupName, "{billingGroupName}", false);
|
|
4831
4826
|
let body;
|
|
4832
4827
|
body = JSON.stringify({
|
|
@@ -4851,7 +4846,7 @@ const serializeAws_restJson1UpdateCACertificateCommand = async (input, context)
|
|
|
4851
4846
|
const headers = {
|
|
4852
4847
|
"content-type": "application/json",
|
|
4853
4848
|
};
|
|
4854
|
-
let resolvedPath = `${
|
|
4849
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cacertificate/{certificateId}";
|
|
4855
4850
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "certificateId", () => input.certificateId, "{certificateId}", false);
|
|
4856
4851
|
const query = map({
|
|
4857
4852
|
newStatus: [, input.newStatus],
|
|
@@ -4879,7 +4874,7 @@ exports.serializeAws_restJson1UpdateCACertificateCommand = serializeAws_restJson
|
|
|
4879
4874
|
const serializeAws_restJson1UpdateCertificateCommand = async (input, context) => {
|
|
4880
4875
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4881
4876
|
const headers = {};
|
|
4882
|
-
let resolvedPath = `${
|
|
4877
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/certificates/{certificateId}";
|
|
4883
4878
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "certificateId", () => input.certificateId, "{certificateId}", false);
|
|
4884
4879
|
const query = map({
|
|
4885
4880
|
newStatus: [, input.newStatus],
|
|
@@ -4902,7 +4897,7 @@ const serializeAws_restJson1UpdateCustomMetricCommand = async (input, context) =
|
|
|
4902
4897
|
const headers = {
|
|
4903
4898
|
"content-type": "application/json",
|
|
4904
4899
|
};
|
|
4905
|
-
let resolvedPath = `${
|
|
4900
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/custom-metric/{metricName}";
|
|
4906
4901
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "metricName", () => input.metricName, "{metricName}", false);
|
|
4907
4902
|
let body;
|
|
4908
4903
|
body = JSON.stringify({
|
|
@@ -4924,7 +4919,7 @@ const serializeAws_restJson1UpdateDimensionCommand = async (input, context) => {
|
|
|
4924
4919
|
const headers = {
|
|
4925
4920
|
"content-type": "application/json",
|
|
4926
4921
|
};
|
|
4927
|
-
let resolvedPath = `${
|
|
4922
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dimensions/{name}";
|
|
4928
4923
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
4929
4924
|
let body;
|
|
4930
4925
|
body = JSON.stringify({
|
|
@@ -4948,7 +4943,7 @@ const serializeAws_restJson1UpdateDomainConfigurationCommand = async (input, con
|
|
|
4948
4943
|
const headers = {
|
|
4949
4944
|
"content-type": "application/json",
|
|
4950
4945
|
};
|
|
4951
|
-
let resolvedPath = `${
|
|
4946
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
4952
4947
|
"/domainConfigurations/{domainConfigurationName}";
|
|
4953
4948
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainConfigurationName", () => input.domainConfigurationName, "{domainConfigurationName}", false);
|
|
4954
4949
|
let body;
|
|
@@ -4975,7 +4970,7 @@ const serializeAws_restJson1UpdateDynamicThingGroupCommand = async (input, conte
|
|
|
4975
4970
|
const headers = {
|
|
4976
4971
|
"content-type": "application/json",
|
|
4977
4972
|
};
|
|
4978
|
-
let resolvedPath = `${
|
|
4973
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dynamic-thing-groups/{thingGroupName}";
|
|
4979
4974
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "thingGroupName", () => input.thingGroupName, "{thingGroupName}", false);
|
|
4980
4975
|
let body;
|
|
4981
4976
|
body = JSON.stringify({
|
|
@@ -5003,7 +4998,7 @@ const serializeAws_restJson1UpdateEventConfigurationsCommand = async (input, con
|
|
|
5003
4998
|
const headers = {
|
|
5004
4999
|
"content-type": "application/json",
|
|
5005
5000
|
};
|
|
5006
|
-
const resolvedPath = `${
|
|
5001
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/event-configurations";
|
|
5007
5002
|
let body;
|
|
5008
5003
|
body = JSON.stringify({
|
|
5009
5004
|
...(input.eventConfigurations != null && {
|
|
@@ -5026,7 +5021,7 @@ const serializeAws_restJson1UpdateFleetMetricCommand = async (input, context) =>
|
|
|
5026
5021
|
const headers = {
|
|
5027
5022
|
"content-type": "application/json",
|
|
5028
5023
|
};
|
|
5029
|
-
let resolvedPath = `${
|
|
5024
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fleet-metric/{metricName}";
|
|
5030
5025
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "metricName", () => input.metricName, "{metricName}", false);
|
|
5031
5026
|
let body;
|
|
5032
5027
|
body = JSON.stringify({
|
|
@@ -5058,7 +5053,7 @@ const serializeAws_restJson1UpdateIndexingConfigurationCommand = async (input, c
|
|
|
5058
5053
|
const headers = {
|
|
5059
5054
|
"content-type": "application/json",
|
|
5060
5055
|
};
|
|
5061
|
-
const resolvedPath = `${
|
|
5056
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/indexing/config";
|
|
5062
5057
|
let body;
|
|
5063
5058
|
body = JSON.stringify({
|
|
5064
5059
|
...(input.thingGroupIndexingConfiguration != null && {
|
|
@@ -5084,7 +5079,7 @@ const serializeAws_restJson1UpdateJobCommand = async (input, context) => {
|
|
|
5084
5079
|
const headers = {
|
|
5085
5080
|
"content-type": "application/json",
|
|
5086
5081
|
};
|
|
5087
|
-
let resolvedPath = `${
|
|
5082
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{jobId}";
|
|
5088
5083
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
|
|
5089
5084
|
const query = map({
|
|
5090
5085
|
namespaceId: [, input.namespaceId],
|
|
@@ -5123,7 +5118,7 @@ const serializeAws_restJson1UpdateMitigationActionCommand = async (input, contex
|
|
|
5123
5118
|
const headers = {
|
|
5124
5119
|
"content-type": "application/json",
|
|
5125
5120
|
};
|
|
5126
|
-
let resolvedPath = `${
|
|
5121
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/mitigationactions/actions/{actionName}";
|
|
5127
5122
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "actionName", () => input.actionName, "{actionName}", false);
|
|
5128
5123
|
let body;
|
|
5129
5124
|
body = JSON.stringify({
|
|
@@ -5148,7 +5143,7 @@ const serializeAws_restJson1UpdateProvisioningTemplateCommand = async (input, co
|
|
|
5148
5143
|
const headers = {
|
|
5149
5144
|
"content-type": "application/json",
|
|
5150
5145
|
};
|
|
5151
|
-
let resolvedPath = `${
|
|
5146
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/provisioning-templates/{templateName}";
|
|
5152
5147
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "templateName", () => input.templateName, "{templateName}", false);
|
|
5153
5148
|
let body;
|
|
5154
5149
|
body = JSON.stringify({
|
|
@@ -5177,7 +5172,7 @@ const serializeAws_restJson1UpdateRoleAliasCommand = async (input, context) => {
|
|
|
5177
5172
|
const headers = {
|
|
5178
5173
|
"content-type": "application/json",
|
|
5179
5174
|
};
|
|
5180
|
-
let resolvedPath = `${
|
|
5175
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/role-aliases/{roleAlias}";
|
|
5181
5176
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "roleAlias", () => input.roleAlias, "{roleAlias}", false);
|
|
5182
5177
|
let body;
|
|
5183
5178
|
body = JSON.stringify({
|
|
@@ -5200,7 +5195,7 @@ const serializeAws_restJson1UpdateScheduledAuditCommand = async (input, context)
|
|
|
5200
5195
|
const headers = {
|
|
5201
5196
|
"content-type": "application/json",
|
|
5202
5197
|
};
|
|
5203
|
-
let resolvedPath = `${
|
|
5198
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
5204
5199
|
"/audit/scheduledaudits/{scheduledAuditName}";
|
|
5205
5200
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "scheduledAuditName", () => input.scheduledAuditName, "{scheduledAuditName}", false);
|
|
5206
5201
|
let body;
|
|
@@ -5228,7 +5223,7 @@ const serializeAws_restJson1UpdateSecurityProfileCommand = async (input, context
|
|
|
5228
5223
|
const headers = {
|
|
5229
5224
|
"content-type": "application/json",
|
|
5230
5225
|
};
|
|
5231
|
-
let resolvedPath = `${
|
|
5226
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/security-profiles/{securityProfileName}";
|
|
5232
5227
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "securityProfileName", () => input.securityProfileName, "{securityProfileName}", false);
|
|
5233
5228
|
const query = map({
|
|
5234
5229
|
expectedVersion: [() => input.expectedVersion !== void 0, () => input.expectedVersion.toString()],
|
|
@@ -5269,7 +5264,7 @@ const serializeAws_restJson1UpdateStreamCommand = async (input, context) => {
|
|
|
5269
5264
|
const headers = {
|
|
5270
5265
|
"content-type": "application/json",
|
|
5271
5266
|
};
|
|
5272
|
-
let resolvedPath = `${
|
|
5267
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/streams/{streamId}";
|
|
5273
5268
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "streamId", () => input.streamId, "{streamId}", false);
|
|
5274
5269
|
let body;
|
|
5275
5270
|
body = JSON.stringify({
|
|
@@ -5293,7 +5288,7 @@ const serializeAws_restJson1UpdateThingCommand = async (input, context) => {
|
|
|
5293
5288
|
const headers = {
|
|
5294
5289
|
"content-type": "application/json",
|
|
5295
5290
|
};
|
|
5296
|
-
let resolvedPath = `${
|
|
5291
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}";
|
|
5297
5292
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "thingName", () => input.thingName, "{thingName}", false);
|
|
5298
5293
|
let body;
|
|
5299
5294
|
body = JSON.stringify({
|
|
@@ -5320,7 +5315,7 @@ const serializeAws_restJson1UpdateThingGroupCommand = async (input, context) =>
|
|
|
5320
5315
|
const headers = {
|
|
5321
5316
|
"content-type": "application/json",
|
|
5322
5317
|
};
|
|
5323
|
-
let resolvedPath = `${
|
|
5318
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-groups/{thingGroupName}";
|
|
5324
5319
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "thingGroupName", () => input.thingGroupName, "{thingGroupName}", false);
|
|
5325
5320
|
let body;
|
|
5326
5321
|
body = JSON.stringify({
|
|
@@ -5345,7 +5340,7 @@ const serializeAws_restJson1UpdateThingGroupsForThingCommand = async (input, con
|
|
|
5345
5340
|
const headers = {
|
|
5346
5341
|
"content-type": "application/json",
|
|
5347
5342
|
};
|
|
5348
|
-
const resolvedPath = `${
|
|
5343
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-groups/updateThingGroupsForThing";
|
|
5349
5344
|
let body;
|
|
5350
5345
|
body = JSON.stringify({
|
|
5351
5346
|
...(input.overrideDynamicGroups != null && { overrideDynamicGroups: input.overrideDynamicGroups }),
|
|
@@ -5373,7 +5368,7 @@ const serializeAws_restJson1UpdateTopicRuleDestinationCommand = async (input, co
|
|
|
5373
5368
|
const headers = {
|
|
5374
5369
|
"content-type": "application/json",
|
|
5375
5370
|
};
|
|
5376
|
-
const resolvedPath = `${
|
|
5371
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/destinations";
|
|
5377
5372
|
let body;
|
|
5378
5373
|
body = JSON.stringify({
|
|
5379
5374
|
...(input.arn != null && { arn: input.arn }),
|
|
@@ -5395,7 +5390,7 @@ const serializeAws_restJson1ValidateSecurityProfileBehaviorsCommand = async (inp
|
|
|
5395
5390
|
const headers = {
|
|
5396
5391
|
"content-type": "application/json",
|
|
5397
5392
|
};
|
|
5398
|
-
const resolvedPath = `${
|
|
5393
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/security-profile-behaviors/validate";
|
|
5399
5394
|
let body;
|
|
5400
5395
|
body = JSON.stringify({
|
|
5401
5396
|
...(input.behaviors != null && { behaviors: serializeAws_restJson1Behaviors(input.behaviors, context) }),
|
|
@@ -17543,6 +17538,7 @@ const serializeAws_restJson1Action = (input, context) => {
|
|
|
17543
17538
|
...(input.kafka != null && { kafka: serializeAws_restJson1KafkaAction(input.kafka, context) }),
|
|
17544
17539
|
...(input.kinesis != null && { kinesis: serializeAws_restJson1KinesisAction(input.kinesis, context) }),
|
|
17545
17540
|
...(input.lambda != null && { lambda: serializeAws_restJson1LambdaAction(input.lambda, context) }),
|
|
17541
|
+
...(input.location != null && { location: serializeAws_restJson1LocationAction(input.location, context) }),
|
|
17546
17542
|
...(input.openSearch != null && { openSearch: serializeAws_restJson1OpenSearchAction(input.openSearch, context) }),
|
|
17547
17543
|
...(input.republish != null && { republish: serializeAws_restJson1RepublishAction(input.republish, context) }),
|
|
17548
17544
|
...(input.s3 != null && { s3: serializeAws_restJson1S3Action(input.s3, context) }),
|
|
@@ -18205,6 +18201,22 @@ const serializeAws_restJson1LambdaAction = (input, context) => {
|
|
|
18205
18201
|
...(input.functionArn != null && { functionArn: input.functionArn }),
|
|
18206
18202
|
};
|
|
18207
18203
|
};
|
|
18204
|
+
const serializeAws_restJson1LocationAction = (input, context) => {
|
|
18205
|
+
return {
|
|
18206
|
+
...(input.deviceId != null && { deviceId: input.deviceId }),
|
|
18207
|
+
...(input.latitude != null && { latitude: input.latitude }),
|
|
18208
|
+
...(input.longitude != null && { longitude: input.longitude }),
|
|
18209
|
+
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
18210
|
+
...(input.timestamp != null && { timestamp: serializeAws_restJson1LocationTimestamp(input.timestamp, context) }),
|
|
18211
|
+
...(input.trackerName != null && { trackerName: input.trackerName }),
|
|
18212
|
+
};
|
|
18213
|
+
};
|
|
18214
|
+
const serializeAws_restJson1LocationTimestamp = (input, context) => {
|
|
18215
|
+
return {
|
|
18216
|
+
...(input.unit != null && { unit: input.unit }),
|
|
18217
|
+
...(input.value != null && { value: input.value }),
|
|
18218
|
+
};
|
|
18219
|
+
};
|
|
18208
18220
|
const serializeAws_restJson1LoggingOptionsPayload = (input, context) => {
|
|
18209
18221
|
return {
|
|
18210
18222
|
...(input.logLevel != null && { logLevel: input.logLevel }),
|
|
@@ -18859,6 +18871,7 @@ const deserializeAws_restJson1Action = (output, context) => {
|
|
|
18859
18871
|
kafka: output.kafka != null ? deserializeAws_restJson1KafkaAction(output.kafka, context) : undefined,
|
|
18860
18872
|
kinesis: output.kinesis != null ? deserializeAws_restJson1KinesisAction(output.kinesis, context) : undefined,
|
|
18861
18873
|
lambda: output.lambda != null ? deserializeAws_restJson1LambdaAction(output.lambda, context) : undefined,
|
|
18874
|
+
location: output.location != null ? deserializeAws_restJson1LocationAction(output.location, context) : undefined,
|
|
18862
18875
|
openSearch: output.openSearch != null ? deserializeAws_restJson1OpenSearchAction(output.openSearch, context) : undefined,
|
|
18863
18876
|
republish: output.republish != null ? deserializeAws_restJson1RepublishAction(output.republish, context) : undefined,
|
|
18864
18877
|
s3: output.s3 != null ? deserializeAws_restJson1S3Action(output.s3, context) : undefined,
|
|
@@ -20294,6 +20307,22 @@ const deserializeAws_restJson1LambdaAction = (output, context) => {
|
|
|
20294
20307
|
functionArn: (0, smithy_client_1.expectString)(output.functionArn),
|
|
20295
20308
|
};
|
|
20296
20309
|
};
|
|
20310
|
+
const deserializeAws_restJson1LocationAction = (output, context) => {
|
|
20311
|
+
return {
|
|
20312
|
+
deviceId: (0, smithy_client_1.expectString)(output.deviceId),
|
|
20313
|
+
latitude: (0, smithy_client_1.expectString)(output.latitude),
|
|
20314
|
+
longitude: (0, smithy_client_1.expectString)(output.longitude),
|
|
20315
|
+
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
20316
|
+
timestamp: output.timestamp != null ? deserializeAws_restJson1LocationTimestamp(output.timestamp, context) : undefined,
|
|
20317
|
+
trackerName: (0, smithy_client_1.expectString)(output.trackerName),
|
|
20318
|
+
};
|
|
20319
|
+
};
|
|
20320
|
+
const deserializeAws_restJson1LocationTimestamp = (output, context) => {
|
|
20321
|
+
return {
|
|
20322
|
+
unit: (0, smithy_client_1.expectString)(output.unit),
|
|
20323
|
+
value: (0, smithy_client_1.expectString)(output.value),
|
|
20324
|
+
};
|
|
20325
|
+
};
|
|
20297
20326
|
const deserializeAws_restJson1LogTarget = (output, context) => {
|
|
20298
20327
|
return {
|
|
20299
20328
|
targetName: (0, smithy_client_1.expectString)(output.targetName),
|
|
@@ -21779,15 +21808,12 @@ const deserializeAws_restJson1VpcDestinationSummary = (output, context) => {
|
|
|
21779
21808
|
vpcId: (0, smithy_client_1.expectString)(output.vpcId),
|
|
21780
21809
|
};
|
|
21781
21810
|
};
|
|
21782
|
-
const deserializeMetadata = (output) => {
|
|
21783
|
-
|
|
21784
|
-
|
|
21785
|
-
|
|
21786
|
-
|
|
21787
|
-
|
|
21788
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
21789
|
-
});
|
|
21790
|
-
};
|
|
21811
|
+
const deserializeMetadata = (output) => ({
|
|
21812
|
+
httpStatusCode: output.statusCode,
|
|
21813
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
21814
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
21815
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
21816
|
+
});
|
|
21791
21817
|
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
21792
21818
|
if (streamBody instanceof Uint8Array) {
|
|
21793
21819
|
return Promise.resolve(streamBody);
|
|
@@ -21807,9 +21833,8 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
21807
21833
|
return {};
|
|
21808
21834
|
});
|
|
21809
21835
|
const parseErrorBody = async (errorBody, context) => {
|
|
21810
|
-
var _a;
|
|
21811
21836
|
const value = await parseBody(errorBody, context);
|
|
21812
|
-
value.message =
|
|
21837
|
+
value.message = value.message ?? value.Message;
|
|
21813
21838
|
return value;
|
|
21814
21839
|
};
|
|
21815
21840
|
const loadRestJsonErrorCode = (output, data) => {
|