@aws-sdk/client-greengrass 3.53.0 → 3.55.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.
Files changed (110) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist-cjs/GreengrassClient.js +13 -13
  3. package/dist-cjs/commands/AssociateRoleToGroupCommand.js +3 -3
  4. package/dist-cjs/commands/AssociateServiceRoleToAccountCommand.js +3 -3
  5. package/dist-cjs/commands/CreateConnectorDefinitionCommand.js +3 -3
  6. package/dist-cjs/commands/CreateConnectorDefinitionVersionCommand.js +3 -3
  7. package/dist-cjs/commands/CreateCoreDefinitionCommand.js +3 -3
  8. package/dist-cjs/commands/CreateCoreDefinitionVersionCommand.js +3 -3
  9. package/dist-cjs/commands/CreateDeploymentCommand.js +3 -3
  10. package/dist-cjs/commands/CreateDeviceDefinitionCommand.js +3 -3
  11. package/dist-cjs/commands/CreateDeviceDefinitionVersionCommand.js +3 -3
  12. package/dist-cjs/commands/CreateFunctionDefinitionCommand.js +3 -3
  13. package/dist-cjs/commands/CreateFunctionDefinitionVersionCommand.js +3 -3
  14. package/dist-cjs/commands/CreateGroupCertificateAuthorityCommand.js +3 -3
  15. package/dist-cjs/commands/CreateGroupCommand.js +3 -3
  16. package/dist-cjs/commands/CreateGroupVersionCommand.js +3 -3
  17. package/dist-cjs/commands/CreateLoggerDefinitionCommand.js +3 -3
  18. package/dist-cjs/commands/CreateLoggerDefinitionVersionCommand.js +3 -3
  19. package/dist-cjs/commands/CreateResourceDefinitionCommand.js +3 -3
  20. package/dist-cjs/commands/CreateResourceDefinitionVersionCommand.js +3 -3
  21. package/dist-cjs/commands/CreateSoftwareUpdateJobCommand.js +3 -3
  22. package/dist-cjs/commands/CreateSubscriptionDefinitionCommand.js +3 -3
  23. package/dist-cjs/commands/CreateSubscriptionDefinitionVersionCommand.js +3 -3
  24. package/dist-cjs/commands/DeleteConnectorDefinitionCommand.js +3 -3
  25. package/dist-cjs/commands/DeleteCoreDefinitionCommand.js +3 -3
  26. package/dist-cjs/commands/DeleteDeviceDefinitionCommand.js +3 -3
  27. package/dist-cjs/commands/DeleteFunctionDefinitionCommand.js +3 -3
  28. package/dist-cjs/commands/DeleteGroupCommand.js +3 -3
  29. package/dist-cjs/commands/DeleteLoggerDefinitionCommand.js +3 -3
  30. package/dist-cjs/commands/DeleteResourceDefinitionCommand.js +3 -3
  31. package/dist-cjs/commands/DeleteSubscriptionDefinitionCommand.js +3 -3
  32. package/dist-cjs/commands/DisassociateRoleFromGroupCommand.js +3 -3
  33. package/dist-cjs/commands/DisassociateServiceRoleFromAccountCommand.js +3 -3
  34. package/dist-cjs/commands/GetAssociatedRoleCommand.js +3 -3
  35. package/dist-cjs/commands/GetBulkDeploymentStatusCommand.js +3 -3
  36. package/dist-cjs/commands/GetConnectivityInfoCommand.js +3 -3
  37. package/dist-cjs/commands/GetConnectorDefinitionCommand.js +3 -3
  38. package/dist-cjs/commands/GetConnectorDefinitionVersionCommand.js +3 -3
  39. package/dist-cjs/commands/GetCoreDefinitionCommand.js +3 -3
  40. package/dist-cjs/commands/GetCoreDefinitionVersionCommand.js +3 -3
  41. package/dist-cjs/commands/GetDeploymentStatusCommand.js +3 -3
  42. package/dist-cjs/commands/GetDeviceDefinitionCommand.js +3 -3
  43. package/dist-cjs/commands/GetDeviceDefinitionVersionCommand.js +3 -3
  44. package/dist-cjs/commands/GetFunctionDefinitionCommand.js +3 -3
  45. package/dist-cjs/commands/GetFunctionDefinitionVersionCommand.js +3 -3
  46. package/dist-cjs/commands/GetGroupCertificateAuthorityCommand.js +3 -3
  47. package/dist-cjs/commands/GetGroupCertificateConfigurationCommand.js +3 -3
  48. package/dist-cjs/commands/GetGroupCommand.js +3 -3
  49. package/dist-cjs/commands/GetGroupVersionCommand.js +3 -3
  50. package/dist-cjs/commands/GetLoggerDefinitionCommand.js +3 -3
  51. package/dist-cjs/commands/GetLoggerDefinitionVersionCommand.js +3 -3
  52. package/dist-cjs/commands/GetResourceDefinitionCommand.js +3 -3
  53. package/dist-cjs/commands/GetResourceDefinitionVersionCommand.js +3 -3
  54. package/dist-cjs/commands/GetServiceRoleForAccountCommand.js +3 -3
  55. package/dist-cjs/commands/GetSubscriptionDefinitionCommand.js +3 -3
  56. package/dist-cjs/commands/GetSubscriptionDefinitionVersionCommand.js +3 -3
  57. package/dist-cjs/commands/GetThingRuntimeConfigurationCommand.js +3 -3
  58. package/dist-cjs/commands/ListBulkDeploymentDetailedReportsCommand.js +3 -3
  59. package/dist-cjs/commands/ListBulkDeploymentsCommand.js +3 -3
  60. package/dist-cjs/commands/ListConnectorDefinitionVersionsCommand.js +3 -3
  61. package/dist-cjs/commands/ListConnectorDefinitionsCommand.js +3 -3
  62. package/dist-cjs/commands/ListCoreDefinitionVersionsCommand.js +3 -3
  63. package/dist-cjs/commands/ListCoreDefinitionsCommand.js +3 -3
  64. package/dist-cjs/commands/ListDeploymentsCommand.js +3 -3
  65. package/dist-cjs/commands/ListDeviceDefinitionVersionsCommand.js +3 -3
  66. package/dist-cjs/commands/ListDeviceDefinitionsCommand.js +3 -3
  67. package/dist-cjs/commands/ListFunctionDefinitionVersionsCommand.js +3 -3
  68. package/dist-cjs/commands/ListFunctionDefinitionsCommand.js +3 -3
  69. package/dist-cjs/commands/ListGroupCertificateAuthoritiesCommand.js +3 -3
  70. package/dist-cjs/commands/ListGroupVersionsCommand.js +3 -3
  71. package/dist-cjs/commands/ListGroupsCommand.js +3 -3
  72. package/dist-cjs/commands/ListLoggerDefinitionVersionsCommand.js +3 -3
  73. package/dist-cjs/commands/ListLoggerDefinitionsCommand.js +3 -3
  74. package/dist-cjs/commands/ListResourceDefinitionVersionsCommand.js +3 -3
  75. package/dist-cjs/commands/ListResourceDefinitionsCommand.js +3 -3
  76. package/dist-cjs/commands/ListSubscriptionDefinitionVersionsCommand.js +3 -3
  77. package/dist-cjs/commands/ListSubscriptionDefinitionsCommand.js +3 -3
  78. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  79. package/dist-cjs/commands/ResetDeploymentsCommand.js +3 -3
  80. package/dist-cjs/commands/StartBulkDeploymentCommand.js +3 -3
  81. package/dist-cjs/commands/StopBulkDeploymentCommand.js +3 -3
  82. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  83. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  84. package/dist-cjs/commands/UpdateConnectivityInfoCommand.js +3 -3
  85. package/dist-cjs/commands/UpdateConnectorDefinitionCommand.js +3 -3
  86. package/dist-cjs/commands/UpdateCoreDefinitionCommand.js +3 -3
  87. package/dist-cjs/commands/UpdateDeviceDefinitionCommand.js +3 -3
  88. package/dist-cjs/commands/UpdateFunctionDefinitionCommand.js +3 -3
  89. package/dist-cjs/commands/UpdateGroupCertificateConfigurationCommand.js +3 -3
  90. package/dist-cjs/commands/UpdateGroupCommand.js +3 -3
  91. package/dist-cjs/commands/UpdateLoggerDefinitionCommand.js +3 -3
  92. package/dist-cjs/commands/UpdateResourceDefinitionCommand.js +3 -3
  93. package/dist-cjs/commands/UpdateSubscriptionDefinitionCommand.js +3 -3
  94. package/dist-cjs/commands/UpdateThingRuntimeConfigurationCommand.js +3 -3
  95. package/dist-cjs/endpoints.js +1 -1
  96. package/dist-cjs/protocols/Aws_restJson1.js +589 -589
  97. package/dist-cjs/runtimeConfig.browser.js +4 -4
  98. package/dist-cjs/runtimeConfig.js +9 -9
  99. package/dist-cjs/runtimeConfig.native.js +1 -1
  100. package/dist-es/Greengrass.js +92 -92
  101. package/dist-es/protocols/Aws_restJson1.js +92 -92
  102. package/dist-types/GreengrassClient.d.ts +2 -2
  103. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  104. package/dist-types/runtimeConfig.d.ts +1 -1
  105. package/dist-types/runtimeConfig.native.d.ts +3 -3
  106. package/dist-types/ts3.4/GreengrassClient.d.ts +2 -2
  107. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  108. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  109. package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
  110. package/package.json +34 -34
@@ -13,7 +13,7 @@ export var serializeAws_restJson1AssociateRoleToGroupCommand = function (input,
13
13
  headers = {
14
14
  "content-type": "application/json",
15
15
  };
16
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/groups/{GroupId}/role";
16
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/groups/{GroupId}/role";
17
17
  if (input.GroupId !== undefined) {
18
18
  labelValue = input.GroupId;
19
19
  if (labelValue.length <= 0) {
@@ -47,7 +47,7 @@ export var serializeAws_restJson1AssociateServiceRoleToAccountCommand = function
47
47
  headers = {
48
48
  "content-type": "application/json",
49
49
  };
50
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/servicerole";
50
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/servicerole";
51
51
  body = JSON.stringify(__assign({}, (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })));
52
52
  return [2, new __HttpRequest({
53
53
  protocol: protocol,
@@ -69,7 +69,7 @@ export var serializeAws_restJson1CreateConnectorDefinitionCommand = function (in
69
69
  case 1:
70
70
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
71
71
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.AmznClientToken) && { "x-amzn-client-token": input.AmznClientToken }));
72
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/definition/connectors";
72
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/definition/connectors";
73
73
  body = JSON.stringify(__assign(__assign(__assign({}, (input.InitialVersion !== undefined &&
74
74
  input.InitialVersion !== null && {
75
75
  InitialVersion: serializeAws_restJson1ConnectorDefinitionVersion(input.InitialVersion, context),
@@ -94,7 +94,7 @@ export var serializeAws_restJson1CreateConnectorDefinitionVersionCommand = funct
94
94
  case 1:
95
95
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
96
96
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.AmznClientToken) && { "x-amzn-client-token": input.AmznClientToken }));
97
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
97
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
98
98
  "/greengrass/definition/connectors/{ConnectorDefinitionId}/versions";
99
99
  if (input.ConnectorDefinitionId !== undefined) {
100
100
  labelValue = input.ConnectorDefinitionId;
@@ -128,7 +128,7 @@ export var serializeAws_restJson1CreateCoreDefinitionCommand = function (input,
128
128
  case 1:
129
129
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
130
130
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.AmznClientToken) && { "x-amzn-client-token": input.AmznClientToken }));
131
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/definition/cores";
131
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/definition/cores";
132
132
  body = JSON.stringify(__assign(__assign(__assign({}, (input.InitialVersion !== undefined &&
133
133
  input.InitialVersion !== null && {
134
134
  InitialVersion: serializeAws_restJson1CoreDefinitionVersion(input.InitialVersion, context),
@@ -153,7 +153,7 @@ export var serializeAws_restJson1CreateCoreDefinitionVersionCommand = function (
153
153
  case 1:
154
154
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
155
155
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.AmznClientToken) && { "x-amzn-client-token": input.AmznClientToken }));
156
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
156
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
157
157
  "/greengrass/definition/cores/{CoreDefinitionId}/versions";
158
158
  if (input.CoreDefinitionId !== undefined) {
159
159
  labelValue = input.CoreDefinitionId;
@@ -187,7 +187,7 @@ export var serializeAws_restJson1CreateDeploymentCommand = function (input, cont
187
187
  case 1:
188
188
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
189
189
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.AmznClientToken) && { "x-amzn-client-token": input.AmznClientToken }));
190
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/groups/{GroupId}/deployments";
190
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/groups/{GroupId}/deployments";
191
191
  if (input.GroupId !== undefined) {
192
192
  labelValue = input.GroupId;
193
193
  if (labelValue.length <= 0) {
@@ -221,7 +221,7 @@ export var serializeAws_restJson1CreateDeviceDefinitionCommand = function (input
221
221
  case 1:
222
222
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
223
223
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.AmznClientToken) && { "x-amzn-client-token": input.AmznClientToken }));
224
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/definition/devices";
224
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/definition/devices";
225
225
  body = JSON.stringify(__assign(__assign(__assign({}, (input.InitialVersion !== undefined &&
226
226
  input.InitialVersion !== null && {
227
227
  InitialVersion: serializeAws_restJson1DeviceDefinitionVersion(input.InitialVersion, context),
@@ -246,7 +246,7 @@ export var serializeAws_restJson1CreateDeviceDefinitionVersionCommand = function
246
246
  case 1:
247
247
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
248
248
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.AmznClientToken) && { "x-amzn-client-token": input.AmznClientToken }));
249
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
249
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
250
250
  "/greengrass/definition/devices/{DeviceDefinitionId}/versions";
251
251
  if (input.DeviceDefinitionId !== undefined) {
252
252
  labelValue = input.DeviceDefinitionId;
@@ -280,7 +280,7 @@ export var serializeAws_restJson1CreateFunctionDefinitionCommand = function (inp
280
280
  case 1:
281
281
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
282
282
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.AmznClientToken) && { "x-amzn-client-token": input.AmznClientToken }));
283
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/definition/functions";
283
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/definition/functions";
284
284
  body = JSON.stringify(__assign(__assign(__assign({}, (input.InitialVersion !== undefined &&
285
285
  input.InitialVersion !== null && {
286
286
  InitialVersion: serializeAws_restJson1FunctionDefinitionVersion(input.InitialVersion, context),
@@ -305,7 +305,7 @@ export var serializeAws_restJson1CreateFunctionDefinitionVersionCommand = functi
305
305
  case 1:
306
306
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
307
307
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.AmznClientToken) && { "x-amzn-client-token": input.AmznClientToken }));
308
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
308
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
309
309
  "/greengrass/definition/functions/{FunctionDefinitionId}/versions";
310
310
  if (input.FunctionDefinitionId !== undefined) {
311
311
  labelValue = input.FunctionDefinitionId;
@@ -342,7 +342,7 @@ export var serializeAws_restJson1CreateGroupCommand = function (input, context)
342
342
  case 1:
343
343
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
344
344
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.AmznClientToken) && { "x-amzn-client-token": input.AmznClientToken }));
345
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/groups";
345
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/groups";
346
346
  body = JSON.stringify(__assign(__assign(__assign({}, (input.InitialVersion !== undefined &&
347
347
  input.InitialVersion !== null && {
348
348
  InitialVersion: serializeAws_restJson1GroupVersion(input.InitialVersion, context),
@@ -367,7 +367,7 @@ export var serializeAws_restJson1CreateGroupCertificateAuthorityCommand = functi
367
367
  case 1:
368
368
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
369
369
  headers = __assign({}, (isSerializableHeaderValue(input.AmznClientToken) && { "x-amzn-client-token": input.AmznClientToken }));
370
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
370
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
371
371
  "/greengrass/groups/{GroupId}/certificateauthorities";
372
372
  if (input.GroupId !== undefined) {
373
373
  labelValue = input.GroupId;
@@ -399,7 +399,7 @@ export var serializeAws_restJson1CreateGroupVersionCommand = function (input, co
399
399
  case 1:
400
400
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
401
401
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.AmznClientToken) && { "x-amzn-client-token": input.AmznClientToken }));
402
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/groups/{GroupId}/versions";
402
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/groups/{GroupId}/versions";
403
403
  if (input.GroupId !== undefined) {
404
404
  labelValue = input.GroupId;
405
405
  if (labelValue.length <= 0) {
@@ -446,7 +446,7 @@ export var serializeAws_restJson1CreateLoggerDefinitionCommand = function (input
446
446
  case 1:
447
447
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
448
448
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.AmznClientToken) && { "x-amzn-client-token": input.AmznClientToken }));
449
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/definition/loggers";
449
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/definition/loggers";
450
450
  body = JSON.stringify(__assign(__assign(__assign({}, (input.InitialVersion !== undefined &&
451
451
  input.InitialVersion !== null && {
452
452
  InitialVersion: serializeAws_restJson1LoggerDefinitionVersion(input.InitialVersion, context),
@@ -471,7 +471,7 @@ export var serializeAws_restJson1CreateLoggerDefinitionVersionCommand = function
471
471
  case 1:
472
472
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
473
473
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.AmznClientToken) && { "x-amzn-client-token": input.AmznClientToken }));
474
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
474
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
475
475
  "/greengrass/definition/loggers/{LoggerDefinitionId}/versions";
476
476
  if (input.LoggerDefinitionId !== undefined) {
477
477
  labelValue = input.LoggerDefinitionId;
@@ -505,7 +505,7 @@ export var serializeAws_restJson1CreateResourceDefinitionCommand = function (inp
505
505
  case 1:
506
506
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
507
507
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.AmznClientToken) && { "x-amzn-client-token": input.AmznClientToken }));
508
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/definition/resources";
508
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/definition/resources";
509
509
  body = JSON.stringify(__assign(__assign(__assign({}, (input.InitialVersion !== undefined &&
510
510
  input.InitialVersion !== null && {
511
511
  InitialVersion: serializeAws_restJson1ResourceDefinitionVersion(input.InitialVersion, context),
@@ -530,7 +530,7 @@ export var serializeAws_restJson1CreateResourceDefinitionVersionCommand = functi
530
530
  case 1:
531
531
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
532
532
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.AmznClientToken) && { "x-amzn-client-token": input.AmznClientToken }));
533
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
533
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
534
534
  "/greengrass/definition/resources/{ResourceDefinitionId}/versions";
535
535
  if (input.ResourceDefinitionId !== undefined) {
536
536
  labelValue = input.ResourceDefinitionId;
@@ -564,7 +564,7 @@ export var serializeAws_restJson1CreateSoftwareUpdateJobCommand = function (inpu
564
564
  case 1:
565
565
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
566
566
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.AmznClientToken) && { "x-amzn-client-token": input.AmznClientToken }));
567
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/updates";
567
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/updates";
568
568
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.S3UrlSignerRole !== undefined &&
569
569
  input.S3UrlSignerRole !== null && { S3UrlSignerRole: input.S3UrlSignerRole })), (input.SoftwareToUpdate !== undefined &&
570
570
  input.SoftwareToUpdate !== null && { SoftwareToUpdate: input.SoftwareToUpdate })), (input.UpdateAgentLogLevel !== undefined &&
@@ -596,7 +596,7 @@ export var serializeAws_restJson1CreateSubscriptionDefinitionCommand = function
596
596
  case 1:
597
597
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
598
598
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.AmznClientToken) && { "x-amzn-client-token": input.AmznClientToken }));
599
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/definition/subscriptions";
599
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/definition/subscriptions";
600
600
  body = JSON.stringify(__assign(__assign(__assign({}, (input.InitialVersion !== undefined &&
601
601
  input.InitialVersion !== null && {
602
602
  InitialVersion: serializeAws_restJson1SubscriptionDefinitionVersion(input.InitialVersion, context),
@@ -621,7 +621,7 @@ export var serializeAws_restJson1CreateSubscriptionDefinitionVersionCommand = fu
621
621
  case 1:
622
622
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
623
623
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.AmznClientToken) && { "x-amzn-client-token": input.AmznClientToken }));
624
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
624
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
625
625
  "/greengrass/definition/subscriptions/{SubscriptionDefinitionId}/versions";
626
626
  if (input.SubscriptionDefinitionId !== undefined) {
627
627
  labelValue = input.SubscriptionDefinitionId;
@@ -657,7 +657,7 @@ export var serializeAws_restJson1DeleteConnectorDefinitionCommand = function (in
657
657
  case 1:
658
658
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
659
659
  headers = {};
660
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
660
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
661
661
  "/greengrass/definition/connectors/{ConnectorDefinitionId}";
662
662
  if (input.ConnectorDefinitionId !== undefined) {
663
663
  labelValue = input.ConnectorDefinitionId;
@@ -689,7 +689,7 @@ export var serializeAws_restJson1DeleteCoreDefinitionCommand = function (input,
689
689
  case 1:
690
690
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
691
691
  headers = {};
692
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
692
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
693
693
  "/greengrass/definition/cores/{CoreDefinitionId}";
694
694
  if (input.CoreDefinitionId !== undefined) {
695
695
  labelValue = input.CoreDefinitionId;
@@ -721,7 +721,7 @@ export var serializeAws_restJson1DeleteDeviceDefinitionCommand = function (input
721
721
  case 1:
722
722
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
723
723
  headers = {};
724
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
724
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
725
725
  "/greengrass/definition/devices/{DeviceDefinitionId}";
726
726
  if (input.DeviceDefinitionId !== undefined) {
727
727
  labelValue = input.DeviceDefinitionId;
@@ -753,7 +753,7 @@ export var serializeAws_restJson1DeleteFunctionDefinitionCommand = function (inp
753
753
  case 1:
754
754
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
755
755
  headers = {};
756
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
756
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
757
757
  "/greengrass/definition/functions/{FunctionDefinitionId}";
758
758
  if (input.FunctionDefinitionId !== undefined) {
759
759
  labelValue = input.FunctionDefinitionId;
@@ -785,7 +785,7 @@ export var serializeAws_restJson1DeleteGroupCommand = function (input, context)
785
785
  case 1:
786
786
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
787
787
  headers = {};
788
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/groups/{GroupId}";
788
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/groups/{GroupId}";
789
789
  if (input.GroupId !== undefined) {
790
790
  labelValue = input.GroupId;
791
791
  if (labelValue.length <= 0) {
@@ -816,7 +816,7 @@ export var serializeAws_restJson1DeleteLoggerDefinitionCommand = function (input
816
816
  case 1:
817
817
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
818
818
  headers = {};
819
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
819
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
820
820
  "/greengrass/definition/loggers/{LoggerDefinitionId}";
821
821
  if (input.LoggerDefinitionId !== undefined) {
822
822
  labelValue = input.LoggerDefinitionId;
@@ -848,7 +848,7 @@ export var serializeAws_restJson1DeleteResourceDefinitionCommand = function (inp
848
848
  case 1:
849
849
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
850
850
  headers = {};
851
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
851
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
852
852
  "/greengrass/definition/resources/{ResourceDefinitionId}";
853
853
  if (input.ResourceDefinitionId !== undefined) {
854
854
  labelValue = input.ResourceDefinitionId;
@@ -880,7 +880,7 @@ export var serializeAws_restJson1DeleteSubscriptionDefinitionCommand = function
880
880
  case 1:
881
881
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
882
882
  headers = {};
883
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
883
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
884
884
  "/greengrass/definition/subscriptions/{SubscriptionDefinitionId}";
885
885
  if (input.SubscriptionDefinitionId !== undefined) {
886
886
  labelValue = input.SubscriptionDefinitionId;
@@ -912,7 +912,7 @@ export var serializeAws_restJson1DisassociateRoleFromGroupCommand = function (in
912
912
  case 1:
913
913
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
914
914
  headers = {};
915
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/groups/{GroupId}/role";
915
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/groups/{GroupId}/role";
916
916
  if (input.GroupId !== undefined) {
917
917
  labelValue = input.GroupId;
918
918
  if (labelValue.length <= 0) {
@@ -945,7 +945,7 @@ export var serializeAws_restJson1DisassociateServiceRoleFromAccountCommand = fun
945
945
  headers = {
946
946
  "content-type": "application/json",
947
947
  };
948
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/servicerole";
948
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/servicerole";
949
949
  body = "";
950
950
  return [2, new __HttpRequest({
951
951
  protocol: protocol,
@@ -967,7 +967,7 @@ export var serializeAws_restJson1GetAssociatedRoleCommand = function (input, con
967
967
  case 1:
968
968
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
969
969
  headers = {};
970
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/groups/{GroupId}/role";
970
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/groups/{GroupId}/role";
971
971
  if (input.GroupId !== undefined) {
972
972
  labelValue = input.GroupId;
973
973
  if (labelValue.length <= 0) {
@@ -998,7 +998,7 @@ export var serializeAws_restJson1GetBulkDeploymentStatusCommand = function (inpu
998
998
  case 1:
999
999
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1000
1000
  headers = {};
1001
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1001
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1002
1002
  "/greengrass/bulk/deployments/{BulkDeploymentId}/status";
1003
1003
  if (input.BulkDeploymentId !== undefined) {
1004
1004
  labelValue = input.BulkDeploymentId;
@@ -1030,7 +1030,7 @@ export var serializeAws_restJson1GetConnectivityInfoCommand = function (input, c
1030
1030
  case 1:
1031
1031
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1032
1032
  headers = {};
1033
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1033
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1034
1034
  "/greengrass/things/{ThingName}/connectivityInfo";
1035
1035
  if (input.ThingName !== undefined) {
1036
1036
  labelValue = input.ThingName;
@@ -1062,7 +1062,7 @@ export var serializeAws_restJson1GetConnectorDefinitionCommand = function (input
1062
1062
  case 1:
1063
1063
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1064
1064
  headers = {};
1065
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1065
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1066
1066
  "/greengrass/definition/connectors/{ConnectorDefinitionId}";
1067
1067
  if (input.ConnectorDefinitionId !== undefined) {
1068
1068
  labelValue = input.ConnectorDefinitionId;
@@ -1094,7 +1094,7 @@ export var serializeAws_restJson1GetConnectorDefinitionVersionCommand = function
1094
1094
  case 1:
1095
1095
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1096
1096
  headers = {};
1097
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1097
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1098
1098
  "/greengrass/definition/connectors/{ConnectorDefinitionId}/versions/{ConnectorDefinitionVersionId}";
1099
1099
  if (input.ConnectorDefinitionId !== undefined) {
1100
1100
  labelValue = input.ConnectorDefinitionId;
@@ -1138,7 +1138,7 @@ export var serializeAws_restJson1GetCoreDefinitionCommand = function (input, con
1138
1138
  case 1:
1139
1139
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1140
1140
  headers = {};
1141
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1141
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1142
1142
  "/greengrass/definition/cores/{CoreDefinitionId}";
1143
1143
  if (input.CoreDefinitionId !== undefined) {
1144
1144
  labelValue = input.CoreDefinitionId;
@@ -1170,7 +1170,7 @@ export var serializeAws_restJson1GetCoreDefinitionVersionCommand = function (inp
1170
1170
  case 1:
1171
1171
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1172
1172
  headers = {};
1173
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1173
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1174
1174
  "/greengrass/definition/cores/{CoreDefinitionId}/versions/{CoreDefinitionVersionId}";
1175
1175
  if (input.CoreDefinitionId !== undefined) {
1176
1176
  labelValue = input.CoreDefinitionId;
@@ -1212,7 +1212,7 @@ export var serializeAws_restJson1GetDeploymentStatusCommand = function (input, c
1212
1212
  case 1:
1213
1213
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1214
1214
  headers = {};
1215
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1215
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1216
1216
  "/greengrass/groups/{GroupId}/deployments/{DeploymentId}/status";
1217
1217
  if (input.DeploymentId !== undefined) {
1218
1218
  labelValue = input.DeploymentId;
@@ -1254,7 +1254,7 @@ export var serializeAws_restJson1GetDeviceDefinitionCommand = function (input, c
1254
1254
  case 1:
1255
1255
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1256
1256
  headers = {};
1257
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1257
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1258
1258
  "/greengrass/definition/devices/{DeviceDefinitionId}";
1259
1259
  if (input.DeviceDefinitionId !== undefined) {
1260
1260
  labelValue = input.DeviceDefinitionId;
@@ -1286,7 +1286,7 @@ export var serializeAws_restJson1GetDeviceDefinitionVersionCommand = function (i
1286
1286
  case 1:
1287
1287
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1288
1288
  headers = {};
1289
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1289
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1290
1290
  "/greengrass/definition/devices/{DeviceDefinitionId}/versions/{DeviceDefinitionVersionId}";
1291
1291
  if (input.DeviceDefinitionId !== undefined) {
1292
1292
  labelValue = input.DeviceDefinitionId;
@@ -1330,7 +1330,7 @@ export var serializeAws_restJson1GetFunctionDefinitionCommand = function (input,
1330
1330
  case 1:
1331
1331
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1332
1332
  headers = {};
1333
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1333
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1334
1334
  "/greengrass/definition/functions/{FunctionDefinitionId}";
1335
1335
  if (input.FunctionDefinitionId !== undefined) {
1336
1336
  labelValue = input.FunctionDefinitionId;
@@ -1362,7 +1362,7 @@ export var serializeAws_restJson1GetFunctionDefinitionVersionCommand = function
1362
1362
  case 1:
1363
1363
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1364
1364
  headers = {};
1365
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1365
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1366
1366
  "/greengrass/definition/functions/{FunctionDefinitionId}/versions/{FunctionDefinitionVersionId}";
1367
1367
  if (input.FunctionDefinitionId !== undefined) {
1368
1368
  labelValue = input.FunctionDefinitionId;
@@ -1406,7 +1406,7 @@ export var serializeAws_restJson1GetGroupCommand = function (input, context) { r
1406
1406
  case 1:
1407
1407
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1408
1408
  headers = {};
1409
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/groups/{GroupId}";
1409
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/groups/{GroupId}";
1410
1410
  if (input.GroupId !== undefined) {
1411
1411
  labelValue = input.GroupId;
1412
1412
  if (labelValue.length <= 0) {
@@ -1437,7 +1437,7 @@ export var serializeAws_restJson1GetGroupCertificateAuthorityCommand = function
1437
1437
  case 1:
1438
1438
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1439
1439
  headers = {};
1440
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1440
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1441
1441
  "/greengrass/groups/{GroupId}/certificateauthorities/{CertificateAuthorityId}";
1442
1442
  if (input.CertificateAuthorityId !== undefined) {
1443
1443
  labelValue = input.CertificateAuthorityId;
@@ -1479,7 +1479,7 @@ export var serializeAws_restJson1GetGroupCertificateConfigurationCommand = funct
1479
1479
  case 1:
1480
1480
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1481
1481
  headers = {};
1482
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1482
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1483
1483
  "/greengrass/groups/{GroupId}/certificateauthorities/configuration/expiry";
1484
1484
  if (input.GroupId !== undefined) {
1485
1485
  labelValue = input.GroupId;
@@ -1511,7 +1511,7 @@ export var serializeAws_restJson1GetGroupVersionCommand = function (input, conte
1511
1511
  case 1:
1512
1512
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1513
1513
  headers = {};
1514
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1514
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1515
1515
  "/greengrass/groups/{GroupId}/versions/{GroupVersionId}";
1516
1516
  if (input.GroupId !== undefined) {
1517
1517
  labelValue = input.GroupId;
@@ -1553,7 +1553,7 @@ export var serializeAws_restJson1GetLoggerDefinitionCommand = function (input, c
1553
1553
  case 1:
1554
1554
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1555
1555
  headers = {};
1556
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1556
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1557
1557
  "/greengrass/definition/loggers/{LoggerDefinitionId}";
1558
1558
  if (input.LoggerDefinitionId !== undefined) {
1559
1559
  labelValue = input.LoggerDefinitionId;
@@ -1585,7 +1585,7 @@ export var serializeAws_restJson1GetLoggerDefinitionVersionCommand = function (i
1585
1585
  case 1:
1586
1586
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1587
1587
  headers = {};
1588
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1588
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1589
1589
  "/greengrass/definition/loggers/{LoggerDefinitionId}/versions/{LoggerDefinitionVersionId}";
1590
1590
  if (input.LoggerDefinitionId !== undefined) {
1591
1591
  labelValue = input.LoggerDefinitionId;
@@ -1629,7 +1629,7 @@ export var serializeAws_restJson1GetResourceDefinitionCommand = function (input,
1629
1629
  case 1:
1630
1630
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1631
1631
  headers = {};
1632
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1632
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1633
1633
  "/greengrass/definition/resources/{ResourceDefinitionId}";
1634
1634
  if (input.ResourceDefinitionId !== undefined) {
1635
1635
  labelValue = input.ResourceDefinitionId;
@@ -1661,7 +1661,7 @@ export var serializeAws_restJson1GetResourceDefinitionVersionCommand = function
1661
1661
  case 1:
1662
1662
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1663
1663
  headers = {};
1664
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1664
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1665
1665
  "/greengrass/definition/resources/{ResourceDefinitionId}/versions/{ResourceDefinitionVersionId}";
1666
1666
  if (input.ResourceDefinitionId !== undefined) {
1667
1667
  labelValue = input.ResourceDefinitionId;
@@ -1705,7 +1705,7 @@ export var serializeAws_restJson1GetServiceRoleForAccountCommand = function (inp
1705
1705
  headers = {
1706
1706
  "content-type": "application/json",
1707
1707
  };
1708
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/servicerole";
1708
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/servicerole";
1709
1709
  body = "";
1710
1710
  return [2, new __HttpRequest({
1711
1711
  protocol: protocol,
@@ -1727,7 +1727,7 @@ export var serializeAws_restJson1GetSubscriptionDefinitionCommand = function (in
1727
1727
  case 1:
1728
1728
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1729
1729
  headers = {};
1730
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1730
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1731
1731
  "/greengrass/definition/subscriptions/{SubscriptionDefinitionId}";
1732
1732
  if (input.SubscriptionDefinitionId !== undefined) {
1733
1733
  labelValue = input.SubscriptionDefinitionId;
@@ -1759,7 +1759,7 @@ export var serializeAws_restJson1GetSubscriptionDefinitionVersionCommand = funct
1759
1759
  case 1:
1760
1760
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1761
1761
  headers = {};
1762
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1762
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1763
1763
  "/greengrass/definition/subscriptions/{SubscriptionDefinitionId}/versions/{SubscriptionDefinitionVersionId}";
1764
1764
  if (input.SubscriptionDefinitionId !== undefined) {
1765
1765
  labelValue = input.SubscriptionDefinitionId;
@@ -1803,7 +1803,7 @@ export var serializeAws_restJson1GetThingRuntimeConfigurationCommand = function
1803
1803
  case 1:
1804
1804
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1805
1805
  headers = {};
1806
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1806
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1807
1807
  "/greengrass/things/{ThingName}/runtimeconfig";
1808
1808
  if (input.ThingName !== undefined) {
1809
1809
  labelValue = input.ThingName;
@@ -1835,7 +1835,7 @@ export var serializeAws_restJson1ListBulkDeploymentDetailedReportsCommand = func
1835
1835
  case 1:
1836
1836
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1837
1837
  headers = {};
1838
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1838
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1839
1839
  "/greengrass/bulk/deployments/{BulkDeploymentId}/detailed-reports";
1840
1840
  if (input.BulkDeploymentId !== undefined) {
1841
1841
  labelValue = input.BulkDeploymentId;
@@ -1869,7 +1869,7 @@ export var serializeAws_restJson1ListBulkDeploymentsCommand = function (input, c
1869
1869
  case 1:
1870
1870
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1871
1871
  headers = {};
1872
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/bulk/deployments";
1872
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/bulk/deployments";
1873
1873
  query = __assign(__assign({}, (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken }));
1874
1874
  return [2, new __HttpRequest({
1875
1875
  protocol: protocol,
@@ -1892,7 +1892,7 @@ export var serializeAws_restJson1ListConnectorDefinitionsCommand = function (inp
1892
1892
  case 1:
1893
1893
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1894
1894
  headers = {};
1895
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/definition/connectors";
1895
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/definition/connectors";
1896
1896
  query = __assign(__assign({}, (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken }));
1897
1897
  return [2, new __HttpRequest({
1898
1898
  protocol: protocol,
@@ -1915,7 +1915,7 @@ export var serializeAws_restJson1ListConnectorDefinitionVersionsCommand = functi
1915
1915
  case 1:
1916
1916
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1917
1917
  headers = {};
1918
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1918
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1919
1919
  "/greengrass/definition/connectors/{ConnectorDefinitionId}/versions";
1920
1920
  if (input.ConnectorDefinitionId !== undefined) {
1921
1921
  labelValue = input.ConnectorDefinitionId;
@@ -1949,7 +1949,7 @@ export var serializeAws_restJson1ListCoreDefinitionsCommand = function (input, c
1949
1949
  case 1:
1950
1950
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1951
1951
  headers = {};
1952
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/definition/cores";
1952
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/definition/cores";
1953
1953
  query = __assign(__assign({}, (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken }));
1954
1954
  return [2, new __HttpRequest({
1955
1955
  protocol: protocol,
@@ -1972,7 +1972,7 @@ export var serializeAws_restJson1ListCoreDefinitionVersionsCommand = function (i
1972
1972
  case 1:
1973
1973
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1974
1974
  headers = {};
1975
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1975
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1976
1976
  "/greengrass/definition/cores/{CoreDefinitionId}/versions";
1977
1977
  if (input.CoreDefinitionId !== undefined) {
1978
1978
  labelValue = input.CoreDefinitionId;
@@ -2006,7 +2006,7 @@ export var serializeAws_restJson1ListDeploymentsCommand = function (input, conte
2006
2006
  case 1:
2007
2007
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2008
2008
  headers = {};
2009
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/groups/{GroupId}/deployments";
2009
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/groups/{GroupId}/deployments";
2010
2010
  if (input.GroupId !== undefined) {
2011
2011
  labelValue = input.GroupId;
2012
2012
  if (labelValue.length <= 0) {
@@ -2039,7 +2039,7 @@ export var serializeAws_restJson1ListDeviceDefinitionsCommand = function (input,
2039
2039
  case 1:
2040
2040
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2041
2041
  headers = {};
2042
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/definition/devices";
2042
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/definition/devices";
2043
2043
  query = __assign(__assign({}, (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken }));
2044
2044
  return [2, new __HttpRequest({
2045
2045
  protocol: protocol,
@@ -2062,7 +2062,7 @@ export var serializeAws_restJson1ListDeviceDefinitionVersionsCommand = function
2062
2062
  case 1:
2063
2063
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2064
2064
  headers = {};
2065
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2065
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2066
2066
  "/greengrass/definition/devices/{DeviceDefinitionId}/versions";
2067
2067
  if (input.DeviceDefinitionId !== undefined) {
2068
2068
  labelValue = input.DeviceDefinitionId;
@@ -2096,7 +2096,7 @@ export var serializeAws_restJson1ListFunctionDefinitionsCommand = function (inpu
2096
2096
  case 1:
2097
2097
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2098
2098
  headers = {};
2099
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/definition/functions";
2099
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/definition/functions";
2100
2100
  query = __assign(__assign({}, (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken }));
2101
2101
  return [2, new __HttpRequest({
2102
2102
  protocol: protocol,
@@ -2119,7 +2119,7 @@ export var serializeAws_restJson1ListFunctionDefinitionVersionsCommand = functio
2119
2119
  case 1:
2120
2120
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2121
2121
  headers = {};
2122
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2122
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2123
2123
  "/greengrass/definition/functions/{FunctionDefinitionId}/versions";
2124
2124
  if (input.FunctionDefinitionId !== undefined) {
2125
2125
  labelValue = input.FunctionDefinitionId;
@@ -2153,7 +2153,7 @@ export var serializeAws_restJson1ListGroupCertificateAuthoritiesCommand = functi
2153
2153
  case 1:
2154
2154
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2155
2155
  headers = {};
2156
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2156
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2157
2157
  "/greengrass/groups/{GroupId}/certificateauthorities";
2158
2158
  if (input.GroupId !== undefined) {
2159
2159
  labelValue = input.GroupId;
@@ -2185,7 +2185,7 @@ export var serializeAws_restJson1ListGroupsCommand = function (input, context) {
2185
2185
  case 1:
2186
2186
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2187
2187
  headers = {};
2188
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/groups";
2188
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/groups";
2189
2189
  query = __assign(__assign({}, (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken }));
2190
2190
  return [2, new __HttpRequest({
2191
2191
  protocol: protocol,
@@ -2208,7 +2208,7 @@ export var serializeAws_restJson1ListGroupVersionsCommand = function (input, con
2208
2208
  case 1:
2209
2209
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2210
2210
  headers = {};
2211
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/groups/{GroupId}/versions";
2211
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/groups/{GroupId}/versions";
2212
2212
  if (input.GroupId !== undefined) {
2213
2213
  labelValue = input.GroupId;
2214
2214
  if (labelValue.length <= 0) {
@@ -2241,7 +2241,7 @@ export var serializeAws_restJson1ListLoggerDefinitionsCommand = function (input,
2241
2241
  case 1:
2242
2242
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2243
2243
  headers = {};
2244
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/definition/loggers";
2244
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/definition/loggers";
2245
2245
  query = __assign(__assign({}, (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken }));
2246
2246
  return [2, new __HttpRequest({
2247
2247
  protocol: protocol,
@@ -2264,7 +2264,7 @@ export var serializeAws_restJson1ListLoggerDefinitionVersionsCommand = function
2264
2264
  case 1:
2265
2265
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2266
2266
  headers = {};
2267
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2267
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2268
2268
  "/greengrass/definition/loggers/{LoggerDefinitionId}/versions";
2269
2269
  if (input.LoggerDefinitionId !== undefined) {
2270
2270
  labelValue = input.LoggerDefinitionId;
@@ -2298,7 +2298,7 @@ export var serializeAws_restJson1ListResourceDefinitionsCommand = function (inpu
2298
2298
  case 1:
2299
2299
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2300
2300
  headers = {};
2301
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/definition/resources";
2301
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/definition/resources";
2302
2302
  query = __assign(__assign({}, (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken }));
2303
2303
  return [2, new __HttpRequest({
2304
2304
  protocol: protocol,
@@ -2321,7 +2321,7 @@ export var serializeAws_restJson1ListResourceDefinitionVersionsCommand = functio
2321
2321
  case 1:
2322
2322
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2323
2323
  headers = {};
2324
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2324
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2325
2325
  "/greengrass/definition/resources/{ResourceDefinitionId}/versions";
2326
2326
  if (input.ResourceDefinitionId !== undefined) {
2327
2327
  labelValue = input.ResourceDefinitionId;
@@ -2355,7 +2355,7 @@ export var serializeAws_restJson1ListSubscriptionDefinitionsCommand = function (
2355
2355
  case 1:
2356
2356
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2357
2357
  headers = {};
2358
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/definition/subscriptions";
2358
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/definition/subscriptions";
2359
2359
  query = __assign(__assign({}, (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken }));
2360
2360
  return [2, new __HttpRequest({
2361
2361
  protocol: protocol,
@@ -2378,7 +2378,7 @@ export var serializeAws_restJson1ListSubscriptionDefinitionVersionsCommand = fun
2378
2378
  case 1:
2379
2379
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2380
2380
  headers = {};
2381
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2381
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2382
2382
  "/greengrass/definition/subscriptions/{SubscriptionDefinitionId}/versions";
2383
2383
  if (input.SubscriptionDefinitionId !== undefined) {
2384
2384
  labelValue = input.SubscriptionDefinitionId;
@@ -2412,7 +2412,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
2412
2412
  case 1:
2413
2413
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2414
2414
  headers = {};
2415
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
2415
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
2416
2416
  if (input.ResourceArn !== undefined) {
2417
2417
  labelValue = input.ResourceArn;
2418
2418
  if (labelValue.length <= 0) {
@@ -2443,7 +2443,7 @@ export var serializeAws_restJson1ResetDeploymentsCommand = function (input, cont
2443
2443
  case 1:
2444
2444
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2445
2445
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.AmznClientToken) && { "x-amzn-client-token": input.AmznClientToken }));
2446
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2446
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2447
2447
  "/greengrass/groups/{GroupId}/deployments/$reset";
2448
2448
  if (input.GroupId !== undefined) {
2449
2449
  labelValue = input.GroupId;
@@ -2476,7 +2476,7 @@ export var serializeAws_restJson1StartBulkDeploymentCommand = function (input, c
2476
2476
  case 1:
2477
2477
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2478
2478
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.AmznClientToken) && { "x-amzn-client-token": input.AmznClientToken }));
2479
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/bulk/deployments";
2479
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/bulk/deployments";
2480
2480
  body = JSON.stringify(__assign(__assign(__assign({}, (input.ExecutionRoleArn !== undefined &&
2481
2481
  input.ExecutionRoleArn !== null && { ExecutionRoleArn: input.ExecutionRoleArn })), (input.InputFileUri !== undefined && input.InputFileUri !== null && { InputFileUri: input.InputFileUri })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
2482
2482
  return [2, new __HttpRequest({
@@ -2499,7 +2499,7 @@ export var serializeAws_restJson1StopBulkDeploymentCommand = function (input, co
2499
2499
  case 1:
2500
2500
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2501
2501
  headers = {};
2502
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2502
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2503
2503
  "/greengrass/bulk/deployments/{BulkDeploymentId}/$stop";
2504
2504
  if (input.BulkDeploymentId !== undefined) {
2505
2505
  labelValue = input.BulkDeploymentId;
@@ -2533,7 +2533,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
2533
2533
  headers = {
2534
2534
  "content-type": "application/json",
2535
2535
  };
2536
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
2536
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
2537
2537
  if (input.ResourceArn !== undefined) {
2538
2538
  labelValue = input.ResourceArn;
2539
2539
  if (labelValue.length <= 0) {
@@ -2565,7 +2565,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
2565
2565
  case 1:
2566
2566
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2567
2567
  headers = {};
2568
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
2568
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
2569
2569
  if (input.ResourceArn !== undefined) {
2570
2570
  labelValue = input.ResourceArn;
2571
2571
  if (labelValue.length <= 0) {
@@ -2600,7 +2600,7 @@ export var serializeAws_restJson1UpdateConnectivityInfoCommand = function (input
2600
2600
  headers = {
2601
2601
  "content-type": "application/json",
2602
2602
  };
2603
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2603
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2604
2604
  "/greengrass/things/{ThingName}/connectivityInfo";
2605
2605
  if (input.ThingName !== undefined) {
2606
2606
  labelValue = input.ThingName;
@@ -2638,7 +2638,7 @@ export var serializeAws_restJson1UpdateConnectorDefinitionCommand = function (in
2638
2638
  headers = {
2639
2639
  "content-type": "application/json",
2640
2640
  };
2641
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2641
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2642
2642
  "/greengrass/definition/connectors/{ConnectorDefinitionId}";
2643
2643
  if (input.ConnectorDefinitionId !== undefined) {
2644
2644
  labelValue = input.ConnectorDefinitionId;
@@ -2673,7 +2673,7 @@ export var serializeAws_restJson1UpdateCoreDefinitionCommand = function (input,
2673
2673
  headers = {
2674
2674
  "content-type": "application/json",
2675
2675
  };
2676
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2676
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2677
2677
  "/greengrass/definition/cores/{CoreDefinitionId}";
2678
2678
  if (input.CoreDefinitionId !== undefined) {
2679
2679
  labelValue = input.CoreDefinitionId;
@@ -2708,7 +2708,7 @@ export var serializeAws_restJson1UpdateDeviceDefinitionCommand = function (input
2708
2708
  headers = {
2709
2709
  "content-type": "application/json",
2710
2710
  };
2711
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2711
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2712
2712
  "/greengrass/definition/devices/{DeviceDefinitionId}";
2713
2713
  if (input.DeviceDefinitionId !== undefined) {
2714
2714
  labelValue = input.DeviceDefinitionId;
@@ -2743,7 +2743,7 @@ export var serializeAws_restJson1UpdateFunctionDefinitionCommand = function (inp
2743
2743
  headers = {
2744
2744
  "content-type": "application/json",
2745
2745
  };
2746
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2746
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2747
2747
  "/greengrass/definition/functions/{FunctionDefinitionId}";
2748
2748
  if (input.FunctionDefinitionId !== undefined) {
2749
2749
  labelValue = input.FunctionDefinitionId;
@@ -2778,7 +2778,7 @@ export var serializeAws_restJson1UpdateGroupCommand = function (input, context)
2778
2778
  headers = {
2779
2779
  "content-type": "application/json",
2780
2780
  };
2781
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/groups/{GroupId}";
2781
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/groups/{GroupId}";
2782
2782
  if (input.GroupId !== undefined) {
2783
2783
  labelValue = input.GroupId;
2784
2784
  if (labelValue.length <= 0) {
@@ -2812,7 +2812,7 @@ export var serializeAws_restJson1UpdateGroupCertificateConfigurationCommand = fu
2812
2812
  headers = {
2813
2813
  "content-type": "application/json",
2814
2814
  };
2815
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2815
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2816
2816
  "/greengrass/groups/{GroupId}/certificateauthorities/configuration/expiry";
2817
2817
  if (input.GroupId !== undefined) {
2818
2818
  labelValue = input.GroupId;
@@ -2850,7 +2850,7 @@ export var serializeAws_restJson1UpdateLoggerDefinitionCommand = function (input
2850
2850
  headers = {
2851
2851
  "content-type": "application/json",
2852
2852
  };
2853
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2853
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2854
2854
  "/greengrass/definition/loggers/{LoggerDefinitionId}";
2855
2855
  if (input.LoggerDefinitionId !== undefined) {
2856
2856
  labelValue = input.LoggerDefinitionId;
@@ -2885,7 +2885,7 @@ export var serializeAws_restJson1UpdateResourceDefinitionCommand = function (inp
2885
2885
  headers = {
2886
2886
  "content-type": "application/json",
2887
2887
  };
2888
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2888
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2889
2889
  "/greengrass/definition/resources/{ResourceDefinitionId}";
2890
2890
  if (input.ResourceDefinitionId !== undefined) {
2891
2891
  labelValue = input.ResourceDefinitionId;
@@ -2920,7 +2920,7 @@ export var serializeAws_restJson1UpdateSubscriptionDefinitionCommand = function
2920
2920
  headers = {
2921
2921
  "content-type": "application/json",
2922
2922
  };
2923
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2923
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2924
2924
  "/greengrass/definition/subscriptions/{SubscriptionDefinitionId}";
2925
2925
  if (input.SubscriptionDefinitionId !== undefined) {
2926
2926
  labelValue = input.SubscriptionDefinitionId;
@@ -2955,7 +2955,7 @@ export var serializeAws_restJson1UpdateThingRuntimeConfigurationCommand = functi
2955
2955
  headers = {
2956
2956
  "content-type": "application/json",
2957
2957
  };
2958
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2958
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2959
2959
  "/greengrass/things/{ThingName}/runtimeconfig";
2960
2960
  if (input.ThingName !== undefined) {
2961
2961
  labelValue = input.ThingName;