@aws-sdk/client-greengrassv2 3.899.0 → 3.906.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +2213 -2417
- package/package.json +38 -38
package/dist-cjs/index.js
CHANGED
|
@@ -1,2455 +1,2251 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
BatchDisassociateClientDeviceFromCoreDeviceCommand: () => BatchDisassociateClientDeviceFromCoreDeviceCommand,
|
|
28
|
-
CancelDeploymentCommand: () => CancelDeploymentCommand,
|
|
29
|
-
CloudComponentState: () => CloudComponentState,
|
|
30
|
-
ComponentDependencyType: () => ComponentDependencyType,
|
|
31
|
-
ComponentVisibilityScope: () => ComponentVisibilityScope,
|
|
32
|
-
ConflictException: () => ConflictException,
|
|
33
|
-
CoreDeviceStatus: () => CoreDeviceStatus,
|
|
34
|
-
CreateComponentVersionCommand: () => CreateComponentVersionCommand,
|
|
35
|
-
CreateDeploymentCommand: () => CreateDeploymentCommand,
|
|
36
|
-
DeleteComponentCommand: () => DeleteComponentCommand,
|
|
37
|
-
DeleteCoreDeviceCommand: () => DeleteCoreDeviceCommand,
|
|
38
|
-
DeleteDeploymentCommand: () => DeleteDeploymentCommand,
|
|
39
|
-
DeploymentComponentUpdatePolicyAction: () => DeploymentComponentUpdatePolicyAction,
|
|
40
|
-
DeploymentFailureHandlingPolicy: () => DeploymentFailureHandlingPolicy,
|
|
41
|
-
DeploymentHistoryFilter: () => DeploymentHistoryFilter,
|
|
42
|
-
DeploymentStatus: () => DeploymentStatus,
|
|
43
|
-
DescribeComponentCommand: () => DescribeComponentCommand,
|
|
44
|
-
DisassociateServiceRoleFromAccountCommand: () => DisassociateServiceRoleFromAccountCommand,
|
|
45
|
-
EffectiveDeploymentExecutionStatus: () => EffectiveDeploymentExecutionStatus,
|
|
46
|
-
GetComponentCommand: () => GetComponentCommand,
|
|
47
|
-
GetComponentVersionArtifactCommand: () => GetComponentVersionArtifactCommand,
|
|
48
|
-
GetConnectivityInfoCommand: () => GetConnectivityInfoCommand,
|
|
49
|
-
GetCoreDeviceCommand: () => GetCoreDeviceCommand,
|
|
50
|
-
GetDeploymentCommand: () => GetDeploymentCommand,
|
|
51
|
-
GetServiceRoleForAccountCommand: () => GetServiceRoleForAccountCommand,
|
|
52
|
-
GreengrassV2: () => GreengrassV2,
|
|
53
|
-
GreengrassV2Client: () => GreengrassV2Client,
|
|
54
|
-
GreengrassV2ServiceException: () => GreengrassV2ServiceException,
|
|
55
|
-
InstalledComponentLifecycleState: () => InstalledComponentLifecycleState,
|
|
56
|
-
InstalledComponentTopologyFilter: () => InstalledComponentTopologyFilter,
|
|
57
|
-
InternalServerException: () => InternalServerException,
|
|
58
|
-
IoTJobAbortAction: () => IoTJobAbortAction,
|
|
59
|
-
IoTJobExecutionFailureType: () => IoTJobExecutionFailureType,
|
|
60
|
-
IotEndpointType: () => IotEndpointType,
|
|
61
|
-
LambdaEventSourceType: () => LambdaEventSourceType,
|
|
62
|
-
LambdaFilesystemPermission: () => LambdaFilesystemPermission,
|
|
63
|
-
LambdaInputPayloadEncodingType: () => LambdaInputPayloadEncodingType,
|
|
64
|
-
LambdaIsolationMode: () => LambdaIsolationMode,
|
|
65
|
-
ListClientDevicesAssociatedWithCoreDeviceCommand: () => ListClientDevicesAssociatedWithCoreDeviceCommand,
|
|
66
|
-
ListComponentVersionsCommand: () => ListComponentVersionsCommand,
|
|
67
|
-
ListComponentsCommand: () => ListComponentsCommand,
|
|
68
|
-
ListCoreDevicesCommand: () => ListCoreDevicesCommand,
|
|
69
|
-
ListDeploymentsCommand: () => ListDeploymentsCommand,
|
|
70
|
-
ListEffectiveDeploymentsCommand: () => ListEffectiveDeploymentsCommand,
|
|
71
|
-
ListInstalledComponentsCommand: () => ListInstalledComponentsCommand,
|
|
72
|
-
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
73
|
-
RecipeOutputFormat: () => RecipeOutputFormat,
|
|
74
|
-
RequestAlreadyInProgressException: () => RequestAlreadyInProgressException,
|
|
75
|
-
ResolveComponentCandidatesCommand: () => ResolveComponentCandidatesCommand,
|
|
76
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
77
|
-
S3EndpointType: () => S3EndpointType,
|
|
78
|
-
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
79
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
80
|
-
ThrottlingException: () => ThrottlingException,
|
|
81
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
82
|
-
UpdateConnectivityInfoCommand: () => UpdateConnectivityInfoCommand,
|
|
83
|
-
ValidationException: () => ValidationException,
|
|
84
|
-
ValidationExceptionReason: () => ValidationExceptionReason,
|
|
85
|
-
VendorGuidance: () => VendorGuidance,
|
|
86
|
-
__Client: () => import_smithy_client.Client,
|
|
87
|
-
paginateListClientDevicesAssociatedWithCoreDevice: () => paginateListClientDevicesAssociatedWithCoreDevice,
|
|
88
|
-
paginateListComponentVersions: () => paginateListComponentVersions,
|
|
89
|
-
paginateListComponents: () => paginateListComponents,
|
|
90
|
-
paginateListCoreDevices: () => paginateListCoreDevices,
|
|
91
|
-
paginateListDeployments: () => paginateListDeployments,
|
|
92
|
-
paginateListEffectiveDeployments: () => paginateListEffectiveDeployments,
|
|
93
|
-
paginateListInstalledComponents: () => paginateListInstalledComponents
|
|
94
|
-
});
|
|
95
|
-
module.exports = __toCommonJS(index_exports);
|
|
96
|
-
|
|
97
|
-
// src/GreengrassV2Client.ts
|
|
98
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
99
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
100
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
101
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
102
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
103
|
-
var import_core = require("@smithy/core");
|
|
104
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
105
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
106
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
107
|
-
|
|
108
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
109
|
-
|
|
110
|
-
// src/endpoint/EndpointParameters.ts
|
|
111
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
112
|
-
return Object.assign(options, {
|
|
113
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
114
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
115
|
-
defaultSigningName: "greengrass"
|
|
116
|
-
});
|
|
117
|
-
}, "resolveClientEndpointParameters");
|
|
118
|
-
var commonParams = {
|
|
119
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
120
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
121
|
-
Region: { type: "builtInParams", name: "region" },
|
|
122
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
var uuid = require('@smithy/uuid');
|
|
20
|
+
|
|
21
|
+
const resolveClientEndpointParameters = (options) => {
|
|
22
|
+
return Object.assign(options, {
|
|
23
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
24
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
25
|
+
defaultSigningName: "greengrass",
|
|
26
|
+
});
|
|
123
27
|
};
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
28
|
+
const commonParams = {
|
|
29
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
30
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
31
|
+
Region: { type: "builtInParams", name: "region" },
|
|
32
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
36
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
37
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
38
|
+
let _credentials = runtimeConfig.credentials;
|
|
39
|
+
return {
|
|
40
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
41
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
42
|
+
if (index === -1) {
|
|
43
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
httpAuthSchemes() {
|
|
50
|
+
return _httpAuthSchemes;
|
|
51
|
+
},
|
|
52
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
53
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
54
|
+
},
|
|
55
|
+
httpAuthSchemeProvider() {
|
|
56
|
+
return _httpAuthSchemeProvider;
|
|
57
|
+
},
|
|
58
|
+
setCredentials(credentials) {
|
|
59
|
+
_credentials = credentials;
|
|
60
|
+
},
|
|
61
|
+
credentials() {
|
|
62
|
+
return _credentials;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
67
|
+
return {
|
|
68
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
69
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
70
|
+
credentials: config.credentials(),
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
75
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
76
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
77
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
class GreengrassV2Client extends smithyClient.Client {
|
|
81
|
+
config;
|
|
82
|
+
constructor(...[configuration]) {
|
|
83
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
84
|
+
super(_config_0);
|
|
85
|
+
this.initConfig = _config_0;
|
|
86
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
87
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
88
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
89
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
90
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
91
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
92
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
93
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
94
|
+
this.config = _config_8;
|
|
95
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
102
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultGreengrassV2HttpAuthSchemeParametersProvider,
|
|
103
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
104
|
+
"aws.auth#sigv4": config.credentials,
|
|
105
|
+
}),
|
|
106
|
+
}));
|
|
107
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
161
108
|
}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
167
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
168
|
-
credentials: config.credentials()
|
|
169
|
-
};
|
|
170
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
171
|
-
|
|
172
|
-
// src/runtimeExtensions.ts
|
|
173
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
174
|
-
const extensionConfiguration = Object.assign(
|
|
175
|
-
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
176
|
-
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
177
|
-
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
178
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
179
|
-
);
|
|
180
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
181
|
-
return Object.assign(
|
|
182
|
-
runtimeConfig,
|
|
183
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
184
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
185
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
186
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
187
|
-
);
|
|
188
|
-
}, "resolveRuntimeExtensions");
|
|
109
|
+
destroy() {
|
|
110
|
+
super.destroy();
|
|
111
|
+
}
|
|
112
|
+
}
|
|
189
113
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
114
|
+
class GreengrassV2ServiceException extends smithyClient.ServiceException {
|
|
115
|
+
constructor(options) {
|
|
116
|
+
super(options);
|
|
117
|
+
Object.setPrototypeOf(this, GreengrassV2ServiceException.prototype);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
class AccessDeniedException extends GreengrassV2ServiceException {
|
|
122
|
+
name = "AccessDeniedException";
|
|
123
|
+
$fault = "client";
|
|
124
|
+
constructor(opts) {
|
|
125
|
+
super({
|
|
126
|
+
name: "AccessDeniedException",
|
|
127
|
+
$fault: "client",
|
|
128
|
+
...opts,
|
|
129
|
+
});
|
|
130
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
class InternalServerException extends GreengrassV2ServiceException {
|
|
134
|
+
name = "InternalServerException";
|
|
135
|
+
$fault = "server";
|
|
136
|
+
retryAfterSeconds;
|
|
137
|
+
constructor(opts) {
|
|
138
|
+
super({
|
|
139
|
+
name: "InternalServerException",
|
|
140
|
+
$fault: "server",
|
|
141
|
+
...opts,
|
|
142
|
+
});
|
|
143
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
144
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
const ValidationExceptionReason = {
|
|
148
|
+
CANNOT_PARSE: "CANNOT_PARSE",
|
|
149
|
+
FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
|
|
150
|
+
OTHER: "OTHER",
|
|
151
|
+
UNKNOWN_OPERATION: "UNKNOWN_OPERATION",
|
|
152
|
+
};
|
|
153
|
+
class ValidationException extends GreengrassV2ServiceException {
|
|
154
|
+
name = "ValidationException";
|
|
155
|
+
$fault = "client";
|
|
156
|
+
reason;
|
|
157
|
+
fields;
|
|
158
|
+
constructor(opts) {
|
|
159
|
+
super({
|
|
160
|
+
name: "ValidationException",
|
|
161
|
+
$fault: "client",
|
|
162
|
+
...opts,
|
|
163
|
+
});
|
|
164
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
165
|
+
this.reason = opts.reason;
|
|
166
|
+
this.fields = opts.fields;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
class ResourceNotFoundException extends GreengrassV2ServiceException {
|
|
170
|
+
name = "ResourceNotFoundException";
|
|
171
|
+
$fault = "client";
|
|
172
|
+
resourceId;
|
|
173
|
+
resourceType;
|
|
174
|
+
constructor(opts) {
|
|
175
|
+
super({
|
|
176
|
+
name: "ResourceNotFoundException",
|
|
177
|
+
$fault: "client",
|
|
178
|
+
...opts,
|
|
179
|
+
});
|
|
180
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
181
|
+
this.resourceId = opts.resourceId;
|
|
182
|
+
this.resourceType = opts.resourceType;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
class ThrottlingException extends GreengrassV2ServiceException {
|
|
186
|
+
name = "ThrottlingException";
|
|
187
|
+
$fault = "client";
|
|
188
|
+
quotaCode;
|
|
189
|
+
serviceCode;
|
|
190
|
+
retryAfterSeconds;
|
|
191
|
+
constructor(opts) {
|
|
192
|
+
super({
|
|
193
|
+
name: "ThrottlingException",
|
|
194
|
+
$fault: "client",
|
|
195
|
+
...opts,
|
|
196
|
+
});
|
|
197
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
198
|
+
this.quotaCode = opts.quotaCode;
|
|
199
|
+
this.serviceCode = opts.serviceCode;
|
|
200
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
class ConflictException extends GreengrassV2ServiceException {
|
|
204
|
+
name = "ConflictException";
|
|
205
|
+
$fault = "client";
|
|
206
|
+
resourceId;
|
|
207
|
+
resourceType;
|
|
208
|
+
constructor(opts) {
|
|
209
|
+
super({
|
|
210
|
+
name: "ConflictException",
|
|
211
|
+
$fault: "client",
|
|
212
|
+
...opts,
|
|
213
|
+
});
|
|
214
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
215
|
+
this.resourceId = opts.resourceId;
|
|
216
|
+
this.resourceType = opts.resourceType;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
const CloudComponentState = {
|
|
220
|
+
DEPLOYABLE: "DEPLOYABLE",
|
|
221
|
+
DEPRECATED: "DEPRECATED",
|
|
222
|
+
FAILED: "FAILED",
|
|
223
|
+
INITIATED: "INITIATED",
|
|
224
|
+
REQUESTED: "REQUESTED",
|
|
225
|
+
};
|
|
226
|
+
const VendorGuidance = {
|
|
227
|
+
ACTIVE: "ACTIVE",
|
|
228
|
+
DELETED: "DELETED",
|
|
229
|
+
DISCONTINUED: "DISCONTINUED",
|
|
230
|
+
};
|
|
231
|
+
const ComponentDependencyType = {
|
|
232
|
+
HARD: "HARD",
|
|
233
|
+
SOFT: "SOFT",
|
|
234
|
+
};
|
|
235
|
+
const ComponentVisibilityScope = {
|
|
236
|
+
PRIVATE: "PRIVATE",
|
|
237
|
+
PUBLIC: "PUBLIC",
|
|
238
|
+
};
|
|
239
|
+
const CoreDeviceStatus = {
|
|
240
|
+
HEALTHY: "HEALTHY",
|
|
241
|
+
UNHEALTHY: "UNHEALTHY",
|
|
242
|
+
};
|
|
243
|
+
const LambdaEventSourceType = {
|
|
244
|
+
IOT_CORE: "IOT_CORE",
|
|
245
|
+
PUB_SUB: "PUB_SUB",
|
|
246
|
+
};
|
|
247
|
+
const LambdaInputPayloadEncodingType = {
|
|
248
|
+
BINARY: "binary",
|
|
249
|
+
JSON: "json",
|
|
250
|
+
};
|
|
251
|
+
const LambdaFilesystemPermission = {
|
|
252
|
+
RO: "ro",
|
|
253
|
+
RW: "rw",
|
|
254
|
+
};
|
|
255
|
+
const LambdaIsolationMode = {
|
|
256
|
+
GREENGRASS_CONTAINER: "GreengrassContainer",
|
|
257
|
+
NO_CONTAINER: "NoContainer",
|
|
258
|
+
};
|
|
259
|
+
class RequestAlreadyInProgressException extends GreengrassV2ServiceException {
|
|
260
|
+
name = "RequestAlreadyInProgressException";
|
|
261
|
+
$fault = "client";
|
|
262
|
+
constructor(opts) {
|
|
263
|
+
super({
|
|
264
|
+
name: "RequestAlreadyInProgressException",
|
|
265
|
+
$fault: "client",
|
|
266
|
+
...opts,
|
|
267
|
+
});
|
|
268
|
+
Object.setPrototypeOf(this, RequestAlreadyInProgressException.prototype);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
class ServiceQuotaExceededException extends GreengrassV2ServiceException {
|
|
272
|
+
name = "ServiceQuotaExceededException";
|
|
273
|
+
$fault = "client";
|
|
274
|
+
resourceId;
|
|
275
|
+
resourceType;
|
|
276
|
+
quotaCode;
|
|
277
|
+
serviceCode;
|
|
278
|
+
constructor(opts) {
|
|
279
|
+
super({
|
|
280
|
+
name: "ServiceQuotaExceededException",
|
|
281
|
+
$fault: "client",
|
|
282
|
+
...opts,
|
|
283
|
+
});
|
|
284
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
285
|
+
this.resourceId = opts.resourceId;
|
|
286
|
+
this.resourceType = opts.resourceType;
|
|
287
|
+
this.quotaCode = opts.quotaCode;
|
|
288
|
+
this.serviceCode = opts.serviceCode;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
const DeploymentComponentUpdatePolicyAction = {
|
|
292
|
+
NOTIFY_COMPONENTS: "NOTIFY_COMPONENTS",
|
|
293
|
+
SKIP_NOTIFY_COMPONENTS: "SKIP_NOTIFY_COMPONENTS",
|
|
294
|
+
};
|
|
295
|
+
const DeploymentFailureHandlingPolicy = {
|
|
296
|
+
DO_NOTHING: "DO_NOTHING",
|
|
297
|
+
ROLLBACK: "ROLLBACK",
|
|
298
|
+
};
|
|
299
|
+
const IoTJobAbortAction = {
|
|
300
|
+
CANCEL: "CANCEL",
|
|
301
|
+
};
|
|
302
|
+
const IoTJobExecutionFailureType = {
|
|
303
|
+
ALL: "ALL",
|
|
304
|
+
FAILED: "FAILED",
|
|
305
|
+
REJECTED: "REJECTED",
|
|
306
|
+
TIMED_OUT: "TIMED_OUT",
|
|
307
|
+
};
|
|
308
|
+
const DeploymentStatus = {
|
|
309
|
+
ACTIVE: "ACTIVE",
|
|
310
|
+
CANCELED: "CANCELED",
|
|
311
|
+
COMPLETED: "COMPLETED",
|
|
312
|
+
FAILED: "FAILED",
|
|
313
|
+
INACTIVE: "INACTIVE",
|
|
314
|
+
};
|
|
315
|
+
const DeploymentHistoryFilter = {
|
|
316
|
+
ALL: "ALL",
|
|
317
|
+
LATEST_ONLY: "LATEST_ONLY",
|
|
318
|
+
};
|
|
319
|
+
const EffectiveDeploymentExecutionStatus = {
|
|
320
|
+
CANCELED: "CANCELED",
|
|
321
|
+
COMPLETED: "COMPLETED",
|
|
322
|
+
FAILED: "FAILED",
|
|
323
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
324
|
+
QUEUED: "QUEUED",
|
|
325
|
+
REJECTED: "REJECTED",
|
|
326
|
+
SUCCEEDED: "SUCCEEDED",
|
|
327
|
+
TIMED_OUT: "TIMED_OUT",
|
|
328
|
+
};
|
|
329
|
+
const RecipeOutputFormat = {
|
|
330
|
+
JSON: "JSON",
|
|
331
|
+
YAML: "YAML",
|
|
332
|
+
};
|
|
333
|
+
const IotEndpointType = {
|
|
334
|
+
fips: "fips",
|
|
335
|
+
standard: "standard",
|
|
336
|
+
};
|
|
337
|
+
const S3EndpointType = {
|
|
338
|
+
GLOBAL: "GLOBAL",
|
|
339
|
+
REGIONAL: "REGIONAL",
|
|
340
|
+
};
|
|
341
|
+
const InstalledComponentTopologyFilter = {
|
|
342
|
+
ALL: "ALL",
|
|
343
|
+
ROOT: "ROOT",
|
|
344
|
+
};
|
|
345
|
+
const InstalledComponentLifecycleState = {
|
|
346
|
+
BROKEN: "BROKEN",
|
|
347
|
+
ERRORED: "ERRORED",
|
|
348
|
+
FINISHED: "FINISHED",
|
|
349
|
+
INSTALLED: "INSTALLED",
|
|
350
|
+
NEW: "NEW",
|
|
351
|
+
RUNNING: "RUNNING",
|
|
352
|
+
STARTING: "STARTING",
|
|
353
|
+
STOPPING: "STOPPING",
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
const se_AssociateServiceRoleToAccountCommand = async (input, context) => {
|
|
357
|
+
const b = core.requestBuilder(input, context);
|
|
358
|
+
const headers = {
|
|
359
|
+
"content-type": "application/json",
|
|
360
|
+
};
|
|
361
|
+
b.bp("/greengrass/servicerole");
|
|
362
|
+
let body;
|
|
363
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
364
|
+
RoleArn: [, , `roleArn`],
|
|
365
|
+
}));
|
|
366
|
+
b.m("PUT").h(headers).b(body);
|
|
367
|
+
return b.build();
|
|
368
|
+
};
|
|
369
|
+
const se_BatchAssociateClientDeviceWithCoreDeviceCommand = async (input, context) => {
|
|
370
|
+
const b = core.requestBuilder(input, context);
|
|
371
|
+
const headers = {
|
|
372
|
+
"content-type": "application/json",
|
|
373
|
+
};
|
|
374
|
+
b.bp("/greengrass/v2/coreDevices/{coreDeviceThingName}/associateClientDevices");
|
|
375
|
+
b.p("coreDeviceThingName", () => input.coreDeviceThingName, "{coreDeviceThingName}", false);
|
|
376
|
+
let body;
|
|
377
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
378
|
+
entries: (_) => smithyClient._json(_),
|
|
379
|
+
}));
|
|
380
|
+
b.m("POST").h(headers).b(body);
|
|
381
|
+
return b.build();
|
|
382
|
+
};
|
|
383
|
+
const se_BatchDisassociateClientDeviceFromCoreDeviceCommand = async (input, context) => {
|
|
384
|
+
const b = core.requestBuilder(input, context);
|
|
385
|
+
const headers = {
|
|
386
|
+
"content-type": "application/json",
|
|
387
|
+
};
|
|
388
|
+
b.bp("/greengrass/v2/coreDevices/{coreDeviceThingName}/disassociateClientDevices");
|
|
389
|
+
b.p("coreDeviceThingName", () => input.coreDeviceThingName, "{coreDeviceThingName}", false);
|
|
390
|
+
let body;
|
|
391
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
392
|
+
entries: (_) => smithyClient._json(_),
|
|
393
|
+
}));
|
|
394
|
+
b.m("POST").h(headers).b(body);
|
|
395
|
+
return b.build();
|
|
396
|
+
};
|
|
397
|
+
const se_CancelDeploymentCommand = async (input, context) => {
|
|
398
|
+
const b = core.requestBuilder(input, context);
|
|
399
|
+
const headers = {};
|
|
400
|
+
b.bp("/greengrass/v2/deployments/{deploymentId}/cancel");
|
|
401
|
+
b.p("deploymentId", () => input.deploymentId, "{deploymentId}", false);
|
|
402
|
+
let body;
|
|
403
|
+
b.m("POST").h(headers).b(body);
|
|
404
|
+
return b.build();
|
|
405
|
+
};
|
|
406
|
+
const se_CreateComponentVersionCommand = async (input, context) => {
|
|
407
|
+
const b = core.requestBuilder(input, context);
|
|
408
|
+
const headers = {
|
|
409
|
+
"content-type": "application/json",
|
|
410
|
+
};
|
|
411
|
+
b.bp("/greengrass/v2/createComponentVersion");
|
|
412
|
+
let body;
|
|
413
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
414
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
415
|
+
inlineRecipe: (_) => context.base64Encoder(_),
|
|
416
|
+
lambdaFunction: (_) => smithyClient._json(_),
|
|
417
|
+
tags: (_) => smithyClient._json(_),
|
|
418
|
+
}));
|
|
419
|
+
b.m("POST").h(headers).b(body);
|
|
420
|
+
return b.build();
|
|
421
|
+
};
|
|
422
|
+
const se_CreateDeploymentCommand = async (input, context) => {
|
|
423
|
+
const b = core.requestBuilder(input, context);
|
|
424
|
+
const headers = {
|
|
425
|
+
"content-type": "application/json",
|
|
426
|
+
};
|
|
427
|
+
b.bp("/greengrass/v2/deployments");
|
|
428
|
+
let body;
|
|
429
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
430
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
431
|
+
components: (_) => se_ComponentDeploymentSpecifications(_),
|
|
432
|
+
deploymentName: [],
|
|
433
|
+
deploymentPolicies: (_) => smithyClient._json(_),
|
|
434
|
+
iotJobConfiguration: (_) => se_DeploymentIoTJobConfiguration(_),
|
|
435
|
+
parentTargetArn: [],
|
|
436
|
+
tags: (_) => smithyClient._json(_),
|
|
437
|
+
targetArn: [],
|
|
438
|
+
}));
|
|
439
|
+
b.m("POST").h(headers).b(body);
|
|
440
|
+
return b.build();
|
|
441
|
+
};
|
|
442
|
+
const se_DeleteComponentCommand = async (input, context) => {
|
|
443
|
+
const b = core.requestBuilder(input, context);
|
|
444
|
+
const headers = {};
|
|
445
|
+
b.bp("/greengrass/v2/components/{arn}");
|
|
446
|
+
b.p("arn", () => input.arn, "{arn}", false);
|
|
447
|
+
let body;
|
|
448
|
+
b.m("DELETE").h(headers).b(body);
|
|
449
|
+
return b.build();
|
|
450
|
+
};
|
|
451
|
+
const se_DeleteCoreDeviceCommand = async (input, context) => {
|
|
452
|
+
const b = core.requestBuilder(input, context);
|
|
453
|
+
const headers = {};
|
|
454
|
+
b.bp("/greengrass/v2/coreDevices/{coreDeviceThingName}");
|
|
455
|
+
b.p("coreDeviceThingName", () => input.coreDeviceThingName, "{coreDeviceThingName}", false);
|
|
456
|
+
let body;
|
|
457
|
+
b.m("DELETE").h(headers).b(body);
|
|
458
|
+
return b.build();
|
|
459
|
+
};
|
|
460
|
+
const se_DeleteDeploymentCommand = async (input, context) => {
|
|
461
|
+
const b = core.requestBuilder(input, context);
|
|
462
|
+
const headers = {};
|
|
463
|
+
b.bp("/greengrass/v2/deployments/{deploymentId}");
|
|
464
|
+
b.p("deploymentId", () => input.deploymentId, "{deploymentId}", false);
|
|
465
|
+
let body;
|
|
466
|
+
b.m("DELETE").h(headers).b(body);
|
|
467
|
+
return b.build();
|
|
468
|
+
};
|
|
469
|
+
const se_DescribeComponentCommand = async (input, context) => {
|
|
470
|
+
const b = core.requestBuilder(input, context);
|
|
471
|
+
const headers = {};
|
|
472
|
+
b.bp("/greengrass/v2/components/{arn}/metadata");
|
|
473
|
+
b.p("arn", () => input.arn, "{arn}", false);
|
|
474
|
+
let body;
|
|
475
|
+
b.m("GET").h(headers).b(body);
|
|
476
|
+
return b.build();
|
|
477
|
+
};
|
|
478
|
+
const se_DisassociateServiceRoleFromAccountCommand = async (input, context) => {
|
|
479
|
+
const b = core.requestBuilder(input, context);
|
|
480
|
+
const headers = {};
|
|
481
|
+
b.bp("/greengrass/servicerole");
|
|
482
|
+
let body;
|
|
483
|
+
b.m("DELETE").h(headers).b(body);
|
|
484
|
+
return b.build();
|
|
485
|
+
};
|
|
486
|
+
const se_GetComponentCommand = async (input, context) => {
|
|
487
|
+
const b = core.requestBuilder(input, context);
|
|
488
|
+
const headers = {};
|
|
489
|
+
b.bp("/greengrass/v2/components/{arn}");
|
|
490
|
+
b.p("arn", () => input.arn, "{arn}", false);
|
|
491
|
+
const query = smithyClient.map({
|
|
492
|
+
[_rOF]: [, input[_rOF]],
|
|
493
|
+
});
|
|
494
|
+
let body;
|
|
495
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
496
|
+
return b.build();
|
|
497
|
+
};
|
|
498
|
+
const se_GetComponentVersionArtifactCommand = async (input, context) => {
|
|
499
|
+
const b = core.requestBuilder(input, context);
|
|
500
|
+
const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
|
|
501
|
+
[_xaiet]: input[_iET],
|
|
502
|
+
});
|
|
503
|
+
b.bp("/greengrass/v2/components/{arn}/artifacts/{artifactName+}");
|
|
504
|
+
b.p("arn", () => input.arn, "{arn}", false);
|
|
505
|
+
b.p("artifactName", () => input.artifactName, "{artifactName+}", true);
|
|
506
|
+
const query = smithyClient.map({
|
|
507
|
+
[_sET]: [, input[_sET]],
|
|
508
|
+
});
|
|
509
|
+
let body;
|
|
510
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
511
|
+
return b.build();
|
|
512
|
+
};
|
|
513
|
+
const se_GetConnectivityInfoCommand = async (input, context) => {
|
|
514
|
+
const b = core.requestBuilder(input, context);
|
|
515
|
+
const headers = {};
|
|
516
|
+
b.bp("/greengrass/things/{thingName}/connectivityInfo");
|
|
517
|
+
b.p("thingName", () => input.thingName, "{thingName}", false);
|
|
518
|
+
let body;
|
|
519
|
+
b.m("GET").h(headers).b(body);
|
|
520
|
+
return b.build();
|
|
521
|
+
};
|
|
522
|
+
const se_GetCoreDeviceCommand = async (input, context) => {
|
|
523
|
+
const b = core.requestBuilder(input, context);
|
|
524
|
+
const headers = {};
|
|
525
|
+
b.bp("/greengrass/v2/coreDevices/{coreDeviceThingName}");
|
|
526
|
+
b.p("coreDeviceThingName", () => input.coreDeviceThingName, "{coreDeviceThingName}", false);
|
|
527
|
+
let body;
|
|
528
|
+
b.m("GET").h(headers).b(body);
|
|
529
|
+
return b.build();
|
|
530
|
+
};
|
|
531
|
+
const se_GetDeploymentCommand = async (input, context) => {
|
|
532
|
+
const b = core.requestBuilder(input, context);
|
|
533
|
+
const headers = {};
|
|
534
|
+
b.bp("/greengrass/v2/deployments/{deploymentId}");
|
|
535
|
+
b.p("deploymentId", () => input.deploymentId, "{deploymentId}", false);
|
|
536
|
+
let body;
|
|
537
|
+
b.m("GET").h(headers).b(body);
|
|
538
|
+
return b.build();
|
|
539
|
+
};
|
|
540
|
+
const se_GetServiceRoleForAccountCommand = async (input, context) => {
|
|
541
|
+
const b = core.requestBuilder(input, context);
|
|
542
|
+
const headers = {};
|
|
543
|
+
b.bp("/greengrass/servicerole");
|
|
544
|
+
let body;
|
|
545
|
+
b.m("GET").h(headers).b(body);
|
|
546
|
+
return b.build();
|
|
547
|
+
};
|
|
548
|
+
const se_ListClientDevicesAssociatedWithCoreDeviceCommand = async (input, context) => {
|
|
549
|
+
const b = core.requestBuilder(input, context);
|
|
550
|
+
const headers = {};
|
|
551
|
+
b.bp("/greengrass/v2/coreDevices/{coreDeviceThingName}/associatedClientDevices");
|
|
552
|
+
b.p("coreDeviceThingName", () => input.coreDeviceThingName, "{coreDeviceThingName}", false);
|
|
553
|
+
const query = smithyClient.map({
|
|
554
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
555
|
+
[_nT]: [, input[_nT]],
|
|
556
|
+
});
|
|
557
|
+
let body;
|
|
558
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
559
|
+
return b.build();
|
|
560
|
+
};
|
|
561
|
+
const se_ListComponentsCommand = async (input, context) => {
|
|
562
|
+
const b = core.requestBuilder(input, context);
|
|
563
|
+
const headers = {};
|
|
564
|
+
b.bp("/greengrass/v2/components");
|
|
565
|
+
const query = smithyClient.map({
|
|
566
|
+
[_s]: [, input[_s]],
|
|
567
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
568
|
+
[_nT]: [, input[_nT]],
|
|
569
|
+
});
|
|
570
|
+
let body;
|
|
571
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
572
|
+
return b.build();
|
|
573
|
+
};
|
|
574
|
+
const se_ListComponentVersionsCommand = async (input, context) => {
|
|
575
|
+
const b = core.requestBuilder(input, context);
|
|
576
|
+
const headers = {};
|
|
577
|
+
b.bp("/greengrass/v2/components/{arn}/versions");
|
|
578
|
+
b.p("arn", () => input.arn, "{arn}", false);
|
|
579
|
+
const query = smithyClient.map({
|
|
580
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
581
|
+
[_nT]: [, input[_nT]],
|
|
582
|
+
});
|
|
583
|
+
let body;
|
|
584
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
585
|
+
return b.build();
|
|
586
|
+
};
|
|
587
|
+
const se_ListCoreDevicesCommand = async (input, context) => {
|
|
588
|
+
const b = core.requestBuilder(input, context);
|
|
589
|
+
const headers = {};
|
|
590
|
+
b.bp("/greengrass/v2/coreDevices");
|
|
591
|
+
const query = smithyClient.map({
|
|
592
|
+
[_tGA]: [, input[_tGA]],
|
|
593
|
+
[_st]: [, input[_st]],
|
|
594
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
595
|
+
[_nT]: [, input[_nT]],
|
|
596
|
+
[_r]: [, input[_r]],
|
|
597
|
+
});
|
|
598
|
+
let body;
|
|
599
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
600
|
+
return b.build();
|
|
601
|
+
};
|
|
602
|
+
const se_ListDeploymentsCommand = async (input, context) => {
|
|
603
|
+
const b = core.requestBuilder(input, context);
|
|
604
|
+
const headers = {};
|
|
605
|
+
b.bp("/greengrass/v2/deployments");
|
|
606
|
+
const query = smithyClient.map({
|
|
607
|
+
[_tA]: [, input[_tA]],
|
|
608
|
+
[_hF]: [, input[_hF]],
|
|
609
|
+
[_pTA]: [, input[_pTA]],
|
|
610
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
611
|
+
[_nT]: [, input[_nT]],
|
|
612
|
+
});
|
|
613
|
+
let body;
|
|
614
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
615
|
+
return b.build();
|
|
616
|
+
};
|
|
617
|
+
const se_ListEffectiveDeploymentsCommand = async (input, context) => {
|
|
618
|
+
const b = core.requestBuilder(input, context);
|
|
619
|
+
const headers = {};
|
|
620
|
+
b.bp("/greengrass/v2/coreDevices/{coreDeviceThingName}/effectiveDeployments");
|
|
621
|
+
b.p("coreDeviceThingName", () => input.coreDeviceThingName, "{coreDeviceThingName}", false);
|
|
622
|
+
const query = smithyClient.map({
|
|
623
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
624
|
+
[_nT]: [, input[_nT]],
|
|
625
|
+
});
|
|
626
|
+
let body;
|
|
627
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
628
|
+
return b.build();
|
|
629
|
+
};
|
|
630
|
+
const se_ListInstalledComponentsCommand = async (input, context) => {
|
|
631
|
+
const b = core.requestBuilder(input, context);
|
|
632
|
+
const headers = {};
|
|
633
|
+
b.bp("/greengrass/v2/coreDevices/{coreDeviceThingName}/installedComponents");
|
|
634
|
+
b.p("coreDeviceThingName", () => input.coreDeviceThingName, "{coreDeviceThingName}", false);
|
|
635
|
+
const query = smithyClient.map({
|
|
636
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
637
|
+
[_nT]: [, input[_nT]],
|
|
638
|
+
[_tF]: [, input[_tF]],
|
|
639
|
+
});
|
|
640
|
+
let body;
|
|
641
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
642
|
+
return b.build();
|
|
643
|
+
};
|
|
644
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
645
|
+
const b = core.requestBuilder(input, context);
|
|
646
|
+
const headers = {};
|
|
647
|
+
b.bp("/tags/{resourceArn}");
|
|
648
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
649
|
+
let body;
|
|
650
|
+
b.m("GET").h(headers).b(body);
|
|
651
|
+
return b.build();
|
|
652
|
+
};
|
|
653
|
+
const se_ResolveComponentCandidatesCommand = async (input, context) => {
|
|
654
|
+
const b = core.requestBuilder(input, context);
|
|
655
|
+
const headers = {
|
|
656
|
+
"content-type": "application/json",
|
|
657
|
+
};
|
|
658
|
+
b.bp("/greengrass/v2/resolveComponentCandidates");
|
|
659
|
+
let body;
|
|
660
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
661
|
+
componentCandidates: (_) => smithyClient._json(_),
|
|
662
|
+
platform: (_) => smithyClient._json(_),
|
|
663
|
+
}));
|
|
664
|
+
b.m("POST").h(headers).b(body);
|
|
665
|
+
return b.build();
|
|
666
|
+
};
|
|
667
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
668
|
+
const b = core.requestBuilder(input, context);
|
|
669
|
+
const headers = {
|
|
670
|
+
"content-type": "application/json",
|
|
671
|
+
};
|
|
672
|
+
b.bp("/tags/{resourceArn}");
|
|
673
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
674
|
+
let body;
|
|
675
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
676
|
+
tags: (_) => smithyClient._json(_),
|
|
677
|
+
}));
|
|
678
|
+
b.m("POST").h(headers).b(body);
|
|
679
|
+
return b.build();
|
|
680
|
+
};
|
|
681
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
682
|
+
const b = core.requestBuilder(input, context);
|
|
683
|
+
const headers = {};
|
|
684
|
+
b.bp("/tags/{resourceArn}");
|
|
685
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
686
|
+
const query = smithyClient.map({
|
|
687
|
+
[_tK]: [smithyClient.expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
688
|
+
});
|
|
689
|
+
let body;
|
|
690
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
691
|
+
return b.build();
|
|
692
|
+
};
|
|
693
|
+
const se_UpdateConnectivityInfoCommand = async (input, context) => {
|
|
694
|
+
const b = core.requestBuilder(input, context);
|
|
695
|
+
const headers = {
|
|
696
|
+
"content-type": "application/json",
|
|
697
|
+
};
|
|
698
|
+
b.bp("/greengrass/things/{thingName}/connectivityInfo");
|
|
699
|
+
b.p("thingName", () => input.thingName, "{thingName}", false);
|
|
700
|
+
let body;
|
|
701
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
702
|
+
ConnectivityInfo: [, (_) => se_connectivityInfoList(_), `connectivityInfo`],
|
|
703
|
+
}));
|
|
704
|
+
b.m("PUT").h(headers).b(body);
|
|
705
|
+
return b.build();
|
|
706
|
+
};
|
|
707
|
+
const de_AssociateServiceRoleToAccountCommand = async (output, context) => {
|
|
708
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
709
|
+
return de_CommandError(output, context);
|
|
710
|
+
}
|
|
711
|
+
const contents = smithyClient.map({
|
|
712
|
+
$metadata: deserializeMetadata(output),
|
|
713
|
+
});
|
|
714
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
715
|
+
const doc = smithyClient.take(data, {
|
|
716
|
+
associatedAt: [, smithyClient.expectString, `AssociatedAt`],
|
|
717
|
+
});
|
|
718
|
+
Object.assign(contents, doc);
|
|
719
|
+
return contents;
|
|
236
720
|
};
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
var import_uuid = require("@smithy/uuid");
|
|
251
|
-
|
|
252
|
-
// src/models/GreengrassV2ServiceException.ts
|
|
253
|
-
|
|
254
|
-
var GreengrassV2ServiceException = class _GreengrassV2ServiceException extends import_smithy_client.ServiceException {
|
|
255
|
-
static {
|
|
256
|
-
__name(this, "GreengrassV2ServiceException");
|
|
257
|
-
}
|
|
258
|
-
/**
|
|
259
|
-
* @internal
|
|
260
|
-
*/
|
|
261
|
-
constructor(options) {
|
|
262
|
-
super(options);
|
|
263
|
-
Object.setPrototypeOf(this, _GreengrassV2ServiceException.prototype);
|
|
264
|
-
}
|
|
721
|
+
const de_BatchAssociateClientDeviceWithCoreDeviceCommand = async (output, context) => {
|
|
722
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
723
|
+
return de_CommandError(output, context);
|
|
724
|
+
}
|
|
725
|
+
const contents = smithyClient.map({
|
|
726
|
+
$metadata: deserializeMetadata(output),
|
|
727
|
+
});
|
|
728
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
729
|
+
const doc = smithyClient.take(data, {
|
|
730
|
+
errorEntries: smithyClient._json,
|
|
731
|
+
});
|
|
732
|
+
Object.assign(contents, doc);
|
|
733
|
+
return contents;
|
|
265
734
|
};
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
name: "AccessDeniedException",
|
|
280
|
-
$fault: "client",
|
|
281
|
-
...opts
|
|
282
|
-
});
|
|
283
|
-
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
284
|
-
}
|
|
285
|
-
};
|
|
286
|
-
var InternalServerException = class _InternalServerException extends GreengrassV2ServiceException {
|
|
287
|
-
static {
|
|
288
|
-
__name(this, "InternalServerException");
|
|
289
|
-
}
|
|
290
|
-
name = "InternalServerException";
|
|
291
|
-
$fault = "server";
|
|
292
|
-
/**
|
|
293
|
-
* <p>The amount of time to wait before you retry the request.</p>
|
|
294
|
-
* @public
|
|
295
|
-
*/
|
|
296
|
-
retryAfterSeconds;
|
|
297
|
-
/**
|
|
298
|
-
* @internal
|
|
299
|
-
*/
|
|
300
|
-
constructor(opts) {
|
|
301
|
-
super({
|
|
302
|
-
name: "InternalServerException",
|
|
303
|
-
$fault: "server",
|
|
304
|
-
...opts
|
|
305
|
-
});
|
|
306
|
-
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
307
|
-
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
308
|
-
}
|
|
309
|
-
};
|
|
310
|
-
var ValidationExceptionReason = {
|
|
311
|
-
CANNOT_PARSE: "CANNOT_PARSE",
|
|
312
|
-
FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
|
|
313
|
-
OTHER: "OTHER",
|
|
314
|
-
UNKNOWN_OPERATION: "UNKNOWN_OPERATION"
|
|
315
|
-
};
|
|
316
|
-
var ValidationException = class _ValidationException extends GreengrassV2ServiceException {
|
|
317
|
-
static {
|
|
318
|
-
__name(this, "ValidationException");
|
|
319
|
-
}
|
|
320
|
-
name = "ValidationException";
|
|
321
|
-
$fault = "client";
|
|
322
|
-
/**
|
|
323
|
-
* <p>The reason for the validation exception.</p>
|
|
324
|
-
* @public
|
|
325
|
-
*/
|
|
326
|
-
reason;
|
|
327
|
-
/**
|
|
328
|
-
* <p>The list of fields that failed to validate.</p>
|
|
329
|
-
* @public
|
|
330
|
-
*/
|
|
331
|
-
fields;
|
|
332
|
-
/**
|
|
333
|
-
* @internal
|
|
334
|
-
*/
|
|
335
|
-
constructor(opts) {
|
|
336
|
-
super({
|
|
337
|
-
name: "ValidationException",
|
|
338
|
-
$fault: "client",
|
|
339
|
-
...opts
|
|
340
|
-
});
|
|
341
|
-
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
342
|
-
this.reason = opts.reason;
|
|
343
|
-
this.fields = opts.fields;
|
|
344
|
-
}
|
|
345
|
-
};
|
|
346
|
-
var ResourceNotFoundException = class _ResourceNotFoundException extends GreengrassV2ServiceException {
|
|
347
|
-
static {
|
|
348
|
-
__name(this, "ResourceNotFoundException");
|
|
349
|
-
}
|
|
350
|
-
name = "ResourceNotFoundException";
|
|
351
|
-
$fault = "client";
|
|
352
|
-
/**
|
|
353
|
-
* <p>The ID of the resource that isn't found.</p>
|
|
354
|
-
* @public
|
|
355
|
-
*/
|
|
356
|
-
resourceId;
|
|
357
|
-
/**
|
|
358
|
-
* <p>The type of the resource that isn't found.</p>
|
|
359
|
-
* @public
|
|
360
|
-
*/
|
|
361
|
-
resourceType;
|
|
362
|
-
/**
|
|
363
|
-
* @internal
|
|
364
|
-
*/
|
|
365
|
-
constructor(opts) {
|
|
366
|
-
super({
|
|
367
|
-
name: "ResourceNotFoundException",
|
|
368
|
-
$fault: "client",
|
|
369
|
-
...opts
|
|
370
|
-
});
|
|
371
|
-
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
372
|
-
this.resourceId = opts.resourceId;
|
|
373
|
-
this.resourceType = opts.resourceType;
|
|
374
|
-
}
|
|
375
|
-
};
|
|
376
|
-
var ThrottlingException = class _ThrottlingException extends GreengrassV2ServiceException {
|
|
377
|
-
static {
|
|
378
|
-
__name(this, "ThrottlingException");
|
|
379
|
-
}
|
|
380
|
-
name = "ThrottlingException";
|
|
381
|
-
$fault = "client";
|
|
382
|
-
/**
|
|
383
|
-
* <p>The code for the quota in <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/intro.html">Service Quotas</a>.</p>
|
|
384
|
-
* @public
|
|
385
|
-
*/
|
|
386
|
-
quotaCode;
|
|
387
|
-
/**
|
|
388
|
-
* <p>The code for the service in <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/intro.html">Service Quotas</a>.</p>
|
|
389
|
-
* @public
|
|
390
|
-
*/
|
|
391
|
-
serviceCode;
|
|
392
|
-
/**
|
|
393
|
-
* <p>The amount of time to wait before you retry the request.</p>
|
|
394
|
-
* @public
|
|
395
|
-
*/
|
|
396
|
-
retryAfterSeconds;
|
|
397
|
-
/**
|
|
398
|
-
* @internal
|
|
399
|
-
*/
|
|
400
|
-
constructor(opts) {
|
|
401
|
-
super({
|
|
402
|
-
name: "ThrottlingException",
|
|
403
|
-
$fault: "client",
|
|
404
|
-
...opts
|
|
405
|
-
});
|
|
406
|
-
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
407
|
-
this.quotaCode = opts.quotaCode;
|
|
408
|
-
this.serviceCode = opts.serviceCode;
|
|
409
|
-
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
410
|
-
}
|
|
411
|
-
};
|
|
412
|
-
var ConflictException = class _ConflictException extends GreengrassV2ServiceException {
|
|
413
|
-
static {
|
|
414
|
-
__name(this, "ConflictException");
|
|
415
|
-
}
|
|
416
|
-
name = "ConflictException";
|
|
417
|
-
$fault = "client";
|
|
418
|
-
/**
|
|
419
|
-
* <p>The ID of the resource that conflicts with the request.</p>
|
|
420
|
-
* @public
|
|
421
|
-
*/
|
|
422
|
-
resourceId;
|
|
423
|
-
/**
|
|
424
|
-
* <p>The type of the resource that conflicts with the request.</p>
|
|
425
|
-
* @public
|
|
426
|
-
*/
|
|
427
|
-
resourceType;
|
|
428
|
-
/**
|
|
429
|
-
* @internal
|
|
430
|
-
*/
|
|
431
|
-
constructor(opts) {
|
|
432
|
-
super({
|
|
433
|
-
name: "ConflictException",
|
|
434
|
-
$fault: "client",
|
|
435
|
-
...opts
|
|
436
|
-
});
|
|
437
|
-
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
438
|
-
this.resourceId = opts.resourceId;
|
|
439
|
-
this.resourceType = opts.resourceType;
|
|
440
|
-
}
|
|
441
|
-
};
|
|
442
|
-
var CloudComponentState = {
|
|
443
|
-
DEPLOYABLE: "DEPLOYABLE",
|
|
444
|
-
DEPRECATED: "DEPRECATED",
|
|
445
|
-
FAILED: "FAILED",
|
|
446
|
-
INITIATED: "INITIATED",
|
|
447
|
-
REQUESTED: "REQUESTED"
|
|
448
|
-
};
|
|
449
|
-
var VendorGuidance = {
|
|
450
|
-
ACTIVE: "ACTIVE",
|
|
451
|
-
DELETED: "DELETED",
|
|
452
|
-
DISCONTINUED: "DISCONTINUED"
|
|
453
|
-
};
|
|
454
|
-
var ComponentDependencyType = {
|
|
455
|
-
HARD: "HARD",
|
|
456
|
-
SOFT: "SOFT"
|
|
457
|
-
};
|
|
458
|
-
var ComponentVisibilityScope = {
|
|
459
|
-
PRIVATE: "PRIVATE",
|
|
460
|
-
PUBLIC: "PUBLIC"
|
|
461
|
-
};
|
|
462
|
-
var CoreDeviceStatus = {
|
|
463
|
-
HEALTHY: "HEALTHY",
|
|
464
|
-
UNHEALTHY: "UNHEALTHY"
|
|
465
|
-
};
|
|
466
|
-
var LambdaEventSourceType = {
|
|
467
|
-
IOT_CORE: "IOT_CORE",
|
|
468
|
-
PUB_SUB: "PUB_SUB"
|
|
469
|
-
};
|
|
470
|
-
var LambdaInputPayloadEncodingType = {
|
|
471
|
-
BINARY: "binary",
|
|
472
|
-
JSON: "json"
|
|
473
|
-
};
|
|
474
|
-
var LambdaFilesystemPermission = {
|
|
475
|
-
RO: "ro",
|
|
476
|
-
RW: "rw"
|
|
477
|
-
};
|
|
478
|
-
var LambdaIsolationMode = {
|
|
479
|
-
GREENGRASS_CONTAINER: "GreengrassContainer",
|
|
480
|
-
NO_CONTAINER: "NoContainer"
|
|
481
|
-
};
|
|
482
|
-
var RequestAlreadyInProgressException = class _RequestAlreadyInProgressException extends GreengrassV2ServiceException {
|
|
483
|
-
static {
|
|
484
|
-
__name(this, "RequestAlreadyInProgressException");
|
|
485
|
-
}
|
|
486
|
-
name = "RequestAlreadyInProgressException";
|
|
487
|
-
$fault = "client";
|
|
488
|
-
/**
|
|
489
|
-
* @internal
|
|
490
|
-
*/
|
|
491
|
-
constructor(opts) {
|
|
492
|
-
super({
|
|
493
|
-
name: "RequestAlreadyInProgressException",
|
|
494
|
-
$fault: "client",
|
|
495
|
-
...opts
|
|
496
|
-
});
|
|
497
|
-
Object.setPrototypeOf(this, _RequestAlreadyInProgressException.prototype);
|
|
498
|
-
}
|
|
499
|
-
};
|
|
500
|
-
var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends GreengrassV2ServiceException {
|
|
501
|
-
static {
|
|
502
|
-
__name(this, "ServiceQuotaExceededException");
|
|
503
|
-
}
|
|
504
|
-
name = "ServiceQuotaExceededException";
|
|
505
|
-
$fault = "client";
|
|
506
|
-
/**
|
|
507
|
-
* <p>The ID of the resource that exceeds the service quota.</p>
|
|
508
|
-
* @public
|
|
509
|
-
*/
|
|
510
|
-
resourceId;
|
|
511
|
-
/**
|
|
512
|
-
* <p>The type of the resource that exceeds the service quota.</p>
|
|
513
|
-
* @public
|
|
514
|
-
*/
|
|
515
|
-
resourceType;
|
|
516
|
-
/**
|
|
517
|
-
* <p>The code for the quota in <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/intro.html">Service Quotas</a>.</p>
|
|
518
|
-
* @public
|
|
519
|
-
*/
|
|
520
|
-
quotaCode;
|
|
521
|
-
/**
|
|
522
|
-
* <p>The code for the service in <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/intro.html">Service Quotas</a>.</p>
|
|
523
|
-
* @public
|
|
524
|
-
*/
|
|
525
|
-
serviceCode;
|
|
526
|
-
/**
|
|
527
|
-
* @internal
|
|
528
|
-
*/
|
|
529
|
-
constructor(opts) {
|
|
530
|
-
super({
|
|
531
|
-
name: "ServiceQuotaExceededException",
|
|
532
|
-
$fault: "client",
|
|
533
|
-
...opts
|
|
534
|
-
});
|
|
535
|
-
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
536
|
-
this.resourceId = opts.resourceId;
|
|
537
|
-
this.resourceType = opts.resourceType;
|
|
538
|
-
this.quotaCode = opts.quotaCode;
|
|
539
|
-
this.serviceCode = opts.serviceCode;
|
|
540
|
-
}
|
|
541
|
-
};
|
|
542
|
-
var DeploymentComponentUpdatePolicyAction = {
|
|
543
|
-
NOTIFY_COMPONENTS: "NOTIFY_COMPONENTS",
|
|
544
|
-
SKIP_NOTIFY_COMPONENTS: "SKIP_NOTIFY_COMPONENTS"
|
|
545
|
-
};
|
|
546
|
-
var DeploymentFailureHandlingPolicy = {
|
|
547
|
-
DO_NOTHING: "DO_NOTHING",
|
|
548
|
-
ROLLBACK: "ROLLBACK"
|
|
549
|
-
};
|
|
550
|
-
var IoTJobAbortAction = {
|
|
551
|
-
CANCEL: "CANCEL"
|
|
552
|
-
};
|
|
553
|
-
var IoTJobExecutionFailureType = {
|
|
554
|
-
ALL: "ALL",
|
|
555
|
-
FAILED: "FAILED",
|
|
556
|
-
REJECTED: "REJECTED",
|
|
557
|
-
TIMED_OUT: "TIMED_OUT"
|
|
558
|
-
};
|
|
559
|
-
var DeploymentStatus = {
|
|
560
|
-
ACTIVE: "ACTIVE",
|
|
561
|
-
CANCELED: "CANCELED",
|
|
562
|
-
COMPLETED: "COMPLETED",
|
|
563
|
-
FAILED: "FAILED",
|
|
564
|
-
INACTIVE: "INACTIVE"
|
|
565
|
-
};
|
|
566
|
-
var DeploymentHistoryFilter = {
|
|
567
|
-
ALL: "ALL",
|
|
568
|
-
LATEST_ONLY: "LATEST_ONLY"
|
|
569
|
-
};
|
|
570
|
-
var EffectiveDeploymentExecutionStatus = {
|
|
571
|
-
CANCELED: "CANCELED",
|
|
572
|
-
COMPLETED: "COMPLETED",
|
|
573
|
-
FAILED: "FAILED",
|
|
574
|
-
IN_PROGRESS: "IN_PROGRESS",
|
|
575
|
-
QUEUED: "QUEUED",
|
|
576
|
-
REJECTED: "REJECTED",
|
|
577
|
-
SUCCEEDED: "SUCCEEDED",
|
|
578
|
-
TIMED_OUT: "TIMED_OUT"
|
|
579
|
-
};
|
|
580
|
-
var RecipeOutputFormat = {
|
|
581
|
-
JSON: "JSON",
|
|
582
|
-
YAML: "YAML"
|
|
583
|
-
};
|
|
584
|
-
var IotEndpointType = {
|
|
585
|
-
fips: "fips",
|
|
586
|
-
standard: "standard"
|
|
587
|
-
};
|
|
588
|
-
var S3EndpointType = {
|
|
589
|
-
GLOBAL: "GLOBAL",
|
|
590
|
-
REGIONAL: "REGIONAL"
|
|
591
|
-
};
|
|
592
|
-
var InstalledComponentTopologyFilter = {
|
|
593
|
-
ALL: "ALL",
|
|
594
|
-
ROOT: "ROOT"
|
|
595
|
-
};
|
|
596
|
-
var InstalledComponentLifecycleState = {
|
|
597
|
-
BROKEN: "BROKEN",
|
|
598
|
-
ERRORED: "ERRORED",
|
|
599
|
-
FINISHED: "FINISHED",
|
|
600
|
-
INSTALLED: "INSTALLED",
|
|
601
|
-
NEW: "NEW",
|
|
602
|
-
RUNNING: "RUNNING",
|
|
603
|
-
STARTING: "STARTING",
|
|
604
|
-
STOPPING: "STOPPING"
|
|
735
|
+
const de_BatchDisassociateClientDeviceFromCoreDeviceCommand = async (output, context) => {
|
|
736
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
737
|
+
return de_CommandError(output, context);
|
|
738
|
+
}
|
|
739
|
+
const contents = smithyClient.map({
|
|
740
|
+
$metadata: deserializeMetadata(output),
|
|
741
|
+
});
|
|
742
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
743
|
+
const doc = smithyClient.take(data, {
|
|
744
|
+
errorEntries: smithyClient._json,
|
|
745
|
+
});
|
|
746
|
+
Object.assign(contents, doc);
|
|
747
|
+
return contents;
|
|
605
748
|
};
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
})
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
})
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
847
|
-
return b.build();
|
|
848
|
-
}, "se_ListComponentVersionsCommand");
|
|
849
|
-
var se_ListCoreDevicesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
850
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
851
|
-
const headers = {};
|
|
852
|
-
b.bp("/greengrass/v2/coreDevices");
|
|
853
|
-
const query = (0, import_smithy_client.map)({
|
|
854
|
-
[_tGA]: [, input[_tGA]],
|
|
855
|
-
[_st]: [, input[_st]],
|
|
856
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
857
|
-
[_nT]: [, input[_nT]],
|
|
858
|
-
[_r]: [, input[_r]]
|
|
859
|
-
});
|
|
860
|
-
let body;
|
|
861
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
862
|
-
return b.build();
|
|
863
|
-
}, "se_ListCoreDevicesCommand");
|
|
864
|
-
var se_ListDeploymentsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
865
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
866
|
-
const headers = {};
|
|
867
|
-
b.bp("/greengrass/v2/deployments");
|
|
868
|
-
const query = (0, import_smithy_client.map)({
|
|
869
|
-
[_tA]: [, input[_tA]],
|
|
870
|
-
[_hF]: [, input[_hF]],
|
|
871
|
-
[_pTA]: [, input[_pTA]],
|
|
872
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
873
|
-
[_nT]: [, input[_nT]]
|
|
874
|
-
});
|
|
875
|
-
let body;
|
|
876
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
877
|
-
return b.build();
|
|
878
|
-
}, "se_ListDeploymentsCommand");
|
|
879
|
-
var se_ListEffectiveDeploymentsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
880
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
881
|
-
const headers = {};
|
|
882
|
-
b.bp("/greengrass/v2/coreDevices/{coreDeviceThingName}/effectiveDeployments");
|
|
883
|
-
b.p("coreDeviceThingName", () => input.coreDeviceThingName, "{coreDeviceThingName}", false);
|
|
884
|
-
const query = (0, import_smithy_client.map)({
|
|
885
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
886
|
-
[_nT]: [, input[_nT]]
|
|
887
|
-
});
|
|
888
|
-
let body;
|
|
889
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
890
|
-
return b.build();
|
|
891
|
-
}, "se_ListEffectiveDeploymentsCommand");
|
|
892
|
-
var se_ListInstalledComponentsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
893
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
894
|
-
const headers = {};
|
|
895
|
-
b.bp("/greengrass/v2/coreDevices/{coreDeviceThingName}/installedComponents");
|
|
896
|
-
b.p("coreDeviceThingName", () => input.coreDeviceThingName, "{coreDeviceThingName}", false);
|
|
897
|
-
const query = (0, import_smithy_client.map)({
|
|
898
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
899
|
-
[_nT]: [, input[_nT]],
|
|
900
|
-
[_tF]: [, input[_tF]]
|
|
901
|
-
});
|
|
902
|
-
let body;
|
|
903
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
904
|
-
return b.build();
|
|
905
|
-
}, "se_ListInstalledComponentsCommand");
|
|
906
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
907
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
908
|
-
const headers = {};
|
|
909
|
-
b.bp("/tags/{resourceArn}");
|
|
910
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
911
|
-
let body;
|
|
912
|
-
b.m("GET").h(headers).b(body);
|
|
913
|
-
return b.build();
|
|
914
|
-
}, "se_ListTagsForResourceCommand");
|
|
915
|
-
var se_ResolveComponentCandidatesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
916
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
917
|
-
const headers = {
|
|
918
|
-
"content-type": "application/json"
|
|
919
|
-
};
|
|
920
|
-
b.bp("/greengrass/v2/resolveComponentCandidates");
|
|
921
|
-
let body;
|
|
922
|
-
body = JSON.stringify(
|
|
923
|
-
(0, import_smithy_client.take)(input, {
|
|
924
|
-
componentCandidates: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "componentCandidates"),
|
|
925
|
-
platform: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "platform")
|
|
926
|
-
})
|
|
927
|
-
);
|
|
928
|
-
b.m("POST").h(headers).b(body);
|
|
929
|
-
return b.build();
|
|
930
|
-
}, "se_ResolveComponentCandidatesCommand");
|
|
931
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
932
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
933
|
-
const headers = {
|
|
934
|
-
"content-type": "application/json"
|
|
935
|
-
};
|
|
936
|
-
b.bp("/tags/{resourceArn}");
|
|
937
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
938
|
-
let body;
|
|
939
|
-
body = JSON.stringify(
|
|
940
|
-
(0, import_smithy_client.take)(input, {
|
|
941
|
-
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
|
|
942
|
-
})
|
|
943
|
-
);
|
|
944
|
-
b.m("POST").h(headers).b(body);
|
|
945
|
-
return b.build();
|
|
946
|
-
}, "se_TagResourceCommand");
|
|
947
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
948
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
949
|
-
const headers = {};
|
|
950
|
-
b.bp("/tags/{resourceArn}");
|
|
951
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
952
|
-
const query = (0, import_smithy_client.map)({
|
|
953
|
-
[_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]
|
|
954
|
-
});
|
|
955
|
-
let body;
|
|
956
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
957
|
-
return b.build();
|
|
958
|
-
}, "se_UntagResourceCommand");
|
|
959
|
-
var se_UpdateConnectivityInfoCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
960
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
961
|
-
const headers = {
|
|
962
|
-
"content-type": "application/json"
|
|
963
|
-
};
|
|
964
|
-
b.bp("/greengrass/things/{thingName}/connectivityInfo");
|
|
965
|
-
b.p("thingName", () => input.thingName, "{thingName}", false);
|
|
966
|
-
let body;
|
|
967
|
-
body = JSON.stringify(
|
|
968
|
-
(0, import_smithy_client.take)(input, {
|
|
969
|
-
ConnectivityInfo: [, (_) => se_connectivityInfoList(_, context), `connectivityInfo`]
|
|
970
|
-
})
|
|
971
|
-
);
|
|
972
|
-
b.m("PUT").h(headers).b(body);
|
|
973
|
-
return b.build();
|
|
974
|
-
}, "se_UpdateConnectivityInfoCommand");
|
|
975
|
-
var de_AssociateServiceRoleToAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
976
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
977
|
-
return de_CommandError(output, context);
|
|
978
|
-
}
|
|
979
|
-
const contents = (0, import_smithy_client.map)({
|
|
980
|
-
$metadata: deserializeMetadata(output)
|
|
981
|
-
});
|
|
982
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
983
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
984
|
-
associatedAt: [, import_smithy_client.expectString, `AssociatedAt`]
|
|
985
|
-
});
|
|
986
|
-
Object.assign(contents, doc);
|
|
987
|
-
return contents;
|
|
988
|
-
}, "de_AssociateServiceRoleToAccountCommand");
|
|
989
|
-
var de_BatchAssociateClientDeviceWithCoreDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
990
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
991
|
-
return de_CommandError(output, context);
|
|
992
|
-
}
|
|
993
|
-
const contents = (0, import_smithy_client.map)({
|
|
994
|
-
$metadata: deserializeMetadata(output)
|
|
995
|
-
});
|
|
996
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
997
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
998
|
-
errorEntries: import_smithy_client._json
|
|
999
|
-
});
|
|
1000
|
-
Object.assign(contents, doc);
|
|
1001
|
-
return contents;
|
|
1002
|
-
}, "de_BatchAssociateClientDeviceWithCoreDeviceCommand");
|
|
1003
|
-
var de_BatchDisassociateClientDeviceFromCoreDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1004
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1005
|
-
return de_CommandError(output, context);
|
|
1006
|
-
}
|
|
1007
|
-
const contents = (0, import_smithy_client.map)({
|
|
1008
|
-
$metadata: deserializeMetadata(output)
|
|
1009
|
-
});
|
|
1010
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1011
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1012
|
-
errorEntries: import_smithy_client._json
|
|
1013
|
-
});
|
|
1014
|
-
Object.assign(contents, doc);
|
|
1015
|
-
return contents;
|
|
1016
|
-
}, "de_BatchDisassociateClientDeviceFromCoreDeviceCommand");
|
|
1017
|
-
var de_CancelDeploymentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1018
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1019
|
-
return de_CommandError(output, context);
|
|
1020
|
-
}
|
|
1021
|
-
const contents = (0, import_smithy_client.map)({
|
|
1022
|
-
$metadata: deserializeMetadata(output)
|
|
1023
|
-
});
|
|
1024
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1025
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1026
|
-
message: import_smithy_client.expectString
|
|
1027
|
-
});
|
|
1028
|
-
Object.assign(contents, doc);
|
|
1029
|
-
return contents;
|
|
1030
|
-
}, "de_CancelDeploymentCommand");
|
|
1031
|
-
var de_CreateComponentVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1032
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1033
|
-
return de_CommandError(output, context);
|
|
1034
|
-
}
|
|
1035
|
-
const contents = (0, import_smithy_client.map)({
|
|
1036
|
-
$metadata: deserializeMetadata(output)
|
|
1037
|
-
});
|
|
1038
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1039
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1040
|
-
arn: import_smithy_client.expectString,
|
|
1041
|
-
componentName: import_smithy_client.expectString,
|
|
1042
|
-
componentVersion: import_smithy_client.expectString,
|
|
1043
|
-
creationTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTimestamp"),
|
|
1044
|
-
status: import_smithy_client._json
|
|
1045
|
-
});
|
|
1046
|
-
Object.assign(contents, doc);
|
|
1047
|
-
return contents;
|
|
1048
|
-
}, "de_CreateComponentVersionCommand");
|
|
1049
|
-
var de_CreateDeploymentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1050
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1051
|
-
return de_CommandError(output, context);
|
|
1052
|
-
}
|
|
1053
|
-
const contents = (0, import_smithy_client.map)({
|
|
1054
|
-
$metadata: deserializeMetadata(output)
|
|
1055
|
-
});
|
|
1056
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1057
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1058
|
-
deploymentId: import_smithy_client.expectString,
|
|
1059
|
-
iotJobArn: import_smithy_client.expectString,
|
|
1060
|
-
iotJobId: import_smithy_client.expectString
|
|
1061
|
-
});
|
|
1062
|
-
Object.assign(contents, doc);
|
|
1063
|
-
return contents;
|
|
1064
|
-
}, "de_CreateDeploymentCommand");
|
|
1065
|
-
var de_DeleteComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1066
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1067
|
-
return de_CommandError(output, context);
|
|
1068
|
-
}
|
|
1069
|
-
const contents = (0, import_smithy_client.map)({
|
|
1070
|
-
$metadata: deserializeMetadata(output)
|
|
1071
|
-
});
|
|
1072
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1073
|
-
return contents;
|
|
1074
|
-
}, "de_DeleteComponentCommand");
|
|
1075
|
-
var de_DeleteCoreDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1076
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1077
|
-
return de_CommandError(output, context);
|
|
1078
|
-
}
|
|
1079
|
-
const contents = (0, import_smithy_client.map)({
|
|
1080
|
-
$metadata: deserializeMetadata(output)
|
|
1081
|
-
});
|
|
1082
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1083
|
-
return contents;
|
|
1084
|
-
}, "de_DeleteCoreDeviceCommand");
|
|
1085
|
-
var de_DeleteDeploymentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1086
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1087
|
-
return de_CommandError(output, context);
|
|
1088
|
-
}
|
|
1089
|
-
const contents = (0, import_smithy_client.map)({
|
|
1090
|
-
$metadata: deserializeMetadata(output)
|
|
1091
|
-
});
|
|
1092
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1093
|
-
return contents;
|
|
1094
|
-
}, "de_DeleteDeploymentCommand");
|
|
1095
|
-
var de_DescribeComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1096
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1097
|
-
return de_CommandError(output, context);
|
|
1098
|
-
}
|
|
1099
|
-
const contents = (0, import_smithy_client.map)({
|
|
1100
|
-
$metadata: deserializeMetadata(output)
|
|
1101
|
-
});
|
|
1102
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1103
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1104
|
-
arn: import_smithy_client.expectString,
|
|
1105
|
-
componentName: import_smithy_client.expectString,
|
|
1106
|
-
componentVersion: import_smithy_client.expectString,
|
|
1107
|
-
creationTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTimestamp"),
|
|
1108
|
-
description: import_smithy_client.expectString,
|
|
1109
|
-
platforms: import_smithy_client._json,
|
|
1110
|
-
publisher: import_smithy_client.expectString,
|
|
1111
|
-
status: import_smithy_client._json,
|
|
1112
|
-
tags: import_smithy_client._json
|
|
1113
|
-
});
|
|
1114
|
-
Object.assign(contents, doc);
|
|
1115
|
-
return contents;
|
|
1116
|
-
}, "de_DescribeComponentCommand");
|
|
1117
|
-
var de_DisassociateServiceRoleFromAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1118
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1119
|
-
return de_CommandError(output, context);
|
|
1120
|
-
}
|
|
1121
|
-
const contents = (0, import_smithy_client.map)({
|
|
1122
|
-
$metadata: deserializeMetadata(output)
|
|
1123
|
-
});
|
|
1124
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1125
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1126
|
-
disassociatedAt: [, import_smithy_client.expectString, `DisassociatedAt`]
|
|
1127
|
-
});
|
|
1128
|
-
Object.assign(contents, doc);
|
|
1129
|
-
return contents;
|
|
1130
|
-
}, "de_DisassociateServiceRoleFromAccountCommand");
|
|
1131
|
-
var de_GetComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1132
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1133
|
-
return de_CommandError(output, context);
|
|
1134
|
-
}
|
|
1135
|
-
const contents = (0, import_smithy_client.map)({
|
|
1136
|
-
$metadata: deserializeMetadata(output)
|
|
1137
|
-
});
|
|
1138
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1139
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1140
|
-
recipe: context.base64Decoder,
|
|
1141
|
-
recipeOutputFormat: import_smithy_client.expectString,
|
|
1142
|
-
tags: import_smithy_client._json
|
|
1143
|
-
});
|
|
1144
|
-
Object.assign(contents, doc);
|
|
1145
|
-
return contents;
|
|
1146
|
-
}, "de_GetComponentCommand");
|
|
1147
|
-
var de_GetComponentVersionArtifactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1148
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1149
|
-
return de_CommandError(output, context);
|
|
1150
|
-
}
|
|
1151
|
-
const contents = (0, import_smithy_client.map)({
|
|
1152
|
-
$metadata: deserializeMetadata(output)
|
|
1153
|
-
});
|
|
1154
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1155
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1156
|
-
preSignedUrl: import_smithy_client.expectString
|
|
1157
|
-
});
|
|
1158
|
-
Object.assign(contents, doc);
|
|
1159
|
-
return contents;
|
|
1160
|
-
}, "de_GetComponentVersionArtifactCommand");
|
|
1161
|
-
var de_GetConnectivityInfoCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1162
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1163
|
-
return de_CommandError(output, context);
|
|
1164
|
-
}
|
|
1165
|
-
const contents = (0, import_smithy_client.map)({
|
|
1166
|
-
$metadata: deserializeMetadata(output)
|
|
1167
|
-
});
|
|
1168
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1169
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1170
|
-
connectivityInfo: [, (_) => de_connectivityInfoList(_, context), `ConnectivityInfo`],
|
|
1171
|
-
message: [, import_smithy_client.expectString, `Message`]
|
|
1172
|
-
});
|
|
1173
|
-
Object.assign(contents, doc);
|
|
1174
|
-
return contents;
|
|
1175
|
-
}, "de_GetConnectivityInfoCommand");
|
|
1176
|
-
var de_GetCoreDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1177
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1178
|
-
return de_CommandError(output, context);
|
|
1179
|
-
}
|
|
1180
|
-
const contents = (0, import_smithy_client.map)({
|
|
1181
|
-
$metadata: deserializeMetadata(output)
|
|
1182
|
-
});
|
|
1183
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1184
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1185
|
-
architecture: import_smithy_client.expectString,
|
|
1186
|
-
coreDeviceThingName: import_smithy_client.expectString,
|
|
1187
|
-
coreVersion: import_smithy_client.expectString,
|
|
1188
|
-
lastStatusUpdateTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastStatusUpdateTimestamp"),
|
|
1189
|
-
platform: import_smithy_client.expectString,
|
|
1190
|
-
runtime: import_smithy_client.expectString,
|
|
1191
|
-
status: import_smithy_client.expectString,
|
|
1192
|
-
tags: import_smithy_client._json
|
|
1193
|
-
});
|
|
1194
|
-
Object.assign(contents, doc);
|
|
1195
|
-
return contents;
|
|
1196
|
-
}, "de_GetCoreDeviceCommand");
|
|
1197
|
-
var de_GetDeploymentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1198
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1199
|
-
return de_CommandError(output, context);
|
|
1200
|
-
}
|
|
1201
|
-
const contents = (0, import_smithy_client.map)({
|
|
1202
|
-
$metadata: deserializeMetadata(output)
|
|
1203
|
-
});
|
|
1204
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1205
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1206
|
-
components: /* @__PURE__ */ __name((_) => de_ComponentDeploymentSpecifications(_, context), "components"),
|
|
1207
|
-
creationTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTimestamp"),
|
|
1208
|
-
deploymentId: import_smithy_client.expectString,
|
|
1209
|
-
deploymentName: import_smithy_client.expectString,
|
|
1210
|
-
deploymentPolicies: import_smithy_client._json,
|
|
1211
|
-
deploymentStatus: import_smithy_client.expectString,
|
|
1212
|
-
iotJobArn: import_smithy_client.expectString,
|
|
1213
|
-
iotJobConfiguration: /* @__PURE__ */ __name((_) => de_DeploymentIoTJobConfiguration(_, context), "iotJobConfiguration"),
|
|
1214
|
-
iotJobId: import_smithy_client.expectString,
|
|
1215
|
-
isLatestForTarget: import_smithy_client.expectBoolean,
|
|
1216
|
-
parentTargetArn: import_smithy_client.expectString,
|
|
1217
|
-
revisionId: import_smithy_client.expectString,
|
|
1218
|
-
tags: import_smithy_client._json,
|
|
1219
|
-
targetArn: import_smithy_client.expectString
|
|
1220
|
-
});
|
|
1221
|
-
Object.assign(contents, doc);
|
|
1222
|
-
return contents;
|
|
1223
|
-
}, "de_GetDeploymentCommand");
|
|
1224
|
-
var de_GetServiceRoleForAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1225
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1226
|
-
return de_CommandError(output, context);
|
|
1227
|
-
}
|
|
1228
|
-
const contents = (0, import_smithy_client.map)({
|
|
1229
|
-
$metadata: deserializeMetadata(output)
|
|
1230
|
-
});
|
|
1231
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1232
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1233
|
-
associatedAt: [, import_smithy_client.expectString, `AssociatedAt`],
|
|
1234
|
-
roleArn: [, import_smithy_client.expectString, `RoleArn`]
|
|
1235
|
-
});
|
|
1236
|
-
Object.assign(contents, doc);
|
|
1237
|
-
return contents;
|
|
1238
|
-
}, "de_GetServiceRoleForAccountCommand");
|
|
1239
|
-
var de_ListClientDevicesAssociatedWithCoreDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1240
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1241
|
-
return de_CommandError(output, context);
|
|
1242
|
-
}
|
|
1243
|
-
const contents = (0, import_smithy_client.map)({
|
|
1244
|
-
$metadata: deserializeMetadata(output)
|
|
1245
|
-
});
|
|
1246
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1247
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1248
|
-
associatedClientDevices: /* @__PURE__ */ __name((_) => de_AssociatedClientDeviceList(_, context), "associatedClientDevices"),
|
|
1249
|
-
nextToken: import_smithy_client.expectString
|
|
1250
|
-
});
|
|
1251
|
-
Object.assign(contents, doc);
|
|
1252
|
-
return contents;
|
|
1253
|
-
}, "de_ListClientDevicesAssociatedWithCoreDeviceCommand");
|
|
1254
|
-
var de_ListComponentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1255
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1256
|
-
return de_CommandError(output, context);
|
|
1257
|
-
}
|
|
1258
|
-
const contents = (0, import_smithy_client.map)({
|
|
1259
|
-
$metadata: deserializeMetadata(output)
|
|
1260
|
-
});
|
|
1261
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1262
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1263
|
-
components: /* @__PURE__ */ __name((_) => de_ComponentList(_, context), "components"),
|
|
1264
|
-
nextToken: import_smithy_client.expectString
|
|
1265
|
-
});
|
|
1266
|
-
Object.assign(contents, doc);
|
|
1267
|
-
return contents;
|
|
1268
|
-
}, "de_ListComponentsCommand");
|
|
1269
|
-
var de_ListComponentVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1270
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1271
|
-
return de_CommandError(output, context);
|
|
1272
|
-
}
|
|
1273
|
-
const contents = (0, import_smithy_client.map)({
|
|
1274
|
-
$metadata: deserializeMetadata(output)
|
|
1275
|
-
});
|
|
1276
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1277
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1278
|
-
componentVersions: import_smithy_client._json,
|
|
1279
|
-
nextToken: import_smithy_client.expectString
|
|
1280
|
-
});
|
|
1281
|
-
Object.assign(contents, doc);
|
|
1282
|
-
return contents;
|
|
1283
|
-
}, "de_ListComponentVersionsCommand");
|
|
1284
|
-
var de_ListCoreDevicesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1285
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1286
|
-
return de_CommandError(output, context);
|
|
1287
|
-
}
|
|
1288
|
-
const contents = (0, import_smithy_client.map)({
|
|
1289
|
-
$metadata: deserializeMetadata(output)
|
|
1290
|
-
});
|
|
1291
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1292
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1293
|
-
coreDevices: /* @__PURE__ */ __name((_) => de_CoreDevicesList(_, context), "coreDevices"),
|
|
1294
|
-
nextToken: import_smithy_client.expectString
|
|
1295
|
-
});
|
|
1296
|
-
Object.assign(contents, doc);
|
|
1297
|
-
return contents;
|
|
1298
|
-
}, "de_ListCoreDevicesCommand");
|
|
1299
|
-
var de_ListDeploymentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1300
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1301
|
-
return de_CommandError(output, context);
|
|
1302
|
-
}
|
|
1303
|
-
const contents = (0, import_smithy_client.map)({
|
|
1304
|
-
$metadata: deserializeMetadata(output)
|
|
1305
|
-
});
|
|
1306
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1307
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1308
|
-
deployments: /* @__PURE__ */ __name((_) => de_DeploymentList(_, context), "deployments"),
|
|
1309
|
-
nextToken: import_smithy_client.expectString
|
|
1310
|
-
});
|
|
1311
|
-
Object.assign(contents, doc);
|
|
1312
|
-
return contents;
|
|
1313
|
-
}, "de_ListDeploymentsCommand");
|
|
1314
|
-
var de_ListEffectiveDeploymentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1315
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1316
|
-
return de_CommandError(output, context);
|
|
1317
|
-
}
|
|
1318
|
-
const contents = (0, import_smithy_client.map)({
|
|
1319
|
-
$metadata: deserializeMetadata(output)
|
|
1320
|
-
});
|
|
1321
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1322
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1323
|
-
effectiveDeployments: /* @__PURE__ */ __name((_) => de_EffectiveDeploymentsList(_, context), "effectiveDeployments"),
|
|
1324
|
-
nextToken: import_smithy_client.expectString
|
|
1325
|
-
});
|
|
1326
|
-
Object.assign(contents, doc);
|
|
1327
|
-
return contents;
|
|
1328
|
-
}, "de_ListEffectiveDeploymentsCommand");
|
|
1329
|
-
var de_ListInstalledComponentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1330
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1331
|
-
return de_CommandError(output, context);
|
|
1332
|
-
}
|
|
1333
|
-
const contents = (0, import_smithy_client.map)({
|
|
1334
|
-
$metadata: deserializeMetadata(output)
|
|
1335
|
-
});
|
|
1336
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1337
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1338
|
-
installedComponents: /* @__PURE__ */ __name((_) => de_InstalledComponentList(_, context), "installedComponents"),
|
|
1339
|
-
nextToken: import_smithy_client.expectString
|
|
1340
|
-
});
|
|
1341
|
-
Object.assign(contents, doc);
|
|
1342
|
-
return contents;
|
|
1343
|
-
}, "de_ListInstalledComponentsCommand");
|
|
1344
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1345
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1346
|
-
return de_CommandError(output, context);
|
|
1347
|
-
}
|
|
1348
|
-
const contents = (0, import_smithy_client.map)({
|
|
1349
|
-
$metadata: deserializeMetadata(output)
|
|
1350
|
-
});
|
|
1351
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1352
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1353
|
-
tags: import_smithy_client._json
|
|
1354
|
-
});
|
|
1355
|
-
Object.assign(contents, doc);
|
|
1356
|
-
return contents;
|
|
1357
|
-
}, "de_ListTagsForResourceCommand");
|
|
1358
|
-
var de_ResolveComponentCandidatesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1359
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1360
|
-
return de_CommandError(output, context);
|
|
1361
|
-
}
|
|
1362
|
-
const contents = (0, import_smithy_client.map)({
|
|
1363
|
-
$metadata: deserializeMetadata(output)
|
|
1364
|
-
});
|
|
1365
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1366
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1367
|
-
resolvedComponentVersions: /* @__PURE__ */ __name((_) => de_ResolvedComponentVersionsList(_, context), "resolvedComponentVersions")
|
|
1368
|
-
});
|
|
1369
|
-
Object.assign(contents, doc);
|
|
1370
|
-
return contents;
|
|
1371
|
-
}, "de_ResolveComponentCandidatesCommand");
|
|
1372
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1373
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1374
|
-
return de_CommandError(output, context);
|
|
1375
|
-
}
|
|
1376
|
-
const contents = (0, import_smithy_client.map)({
|
|
1377
|
-
$metadata: deserializeMetadata(output)
|
|
1378
|
-
});
|
|
1379
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1380
|
-
return contents;
|
|
1381
|
-
}, "de_TagResourceCommand");
|
|
1382
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1383
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1384
|
-
return de_CommandError(output, context);
|
|
1385
|
-
}
|
|
1386
|
-
const contents = (0, import_smithy_client.map)({
|
|
1387
|
-
$metadata: deserializeMetadata(output)
|
|
1388
|
-
});
|
|
1389
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1390
|
-
return contents;
|
|
1391
|
-
}, "de_UntagResourceCommand");
|
|
1392
|
-
var de_UpdateConnectivityInfoCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1393
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1394
|
-
return de_CommandError(output, context);
|
|
1395
|
-
}
|
|
1396
|
-
const contents = (0, import_smithy_client.map)({
|
|
1397
|
-
$metadata: deserializeMetadata(output)
|
|
1398
|
-
});
|
|
1399
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1400
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1401
|
-
message: [, import_smithy_client.expectString, `Message`],
|
|
1402
|
-
version: [, import_smithy_client.expectString, `Version`]
|
|
1403
|
-
});
|
|
1404
|
-
Object.assign(contents, doc);
|
|
1405
|
-
return contents;
|
|
1406
|
-
}, "de_UpdateConnectivityInfoCommand");
|
|
1407
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1408
|
-
const parsedOutput = {
|
|
1409
|
-
...output,
|
|
1410
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1411
|
-
};
|
|
1412
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1413
|
-
switch (errorCode) {
|
|
1414
|
-
case "InternalServerException":
|
|
1415
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1416
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1417
|
-
case "ValidationException":
|
|
1418
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1419
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1420
|
-
case "AccessDeniedException":
|
|
1421
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1422
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1423
|
-
case "ResourceNotFoundException":
|
|
1424
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1425
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1426
|
-
case "ThrottlingException":
|
|
1427
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1428
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1429
|
-
case "ConflictException":
|
|
1430
|
-
case "com.amazonaws.greengrassv2#ConflictException":
|
|
1431
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1432
|
-
case "RequestAlreadyInProgressException":
|
|
1433
|
-
case "com.amazonaws.greengrassv2#RequestAlreadyInProgressException":
|
|
1434
|
-
throw await de_RequestAlreadyInProgressExceptionRes(parsedOutput, context);
|
|
1435
|
-
case "ServiceQuotaExceededException":
|
|
1436
|
-
case "com.amazonaws.greengrassv2#ServiceQuotaExceededException":
|
|
1437
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1438
|
-
default:
|
|
1439
|
-
const parsedBody = parsedOutput.body;
|
|
1440
|
-
return throwDefaultError({
|
|
1441
|
-
output,
|
|
1442
|
-
parsedBody,
|
|
1443
|
-
errorCode
|
|
1444
|
-
});
|
|
1445
|
-
}
|
|
1446
|
-
}, "de_CommandError");
|
|
1447
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(GreengrassV2ServiceException);
|
|
1448
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1449
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1450
|
-
const data = parsedOutput.body;
|
|
1451
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1452
|
-
message: import_smithy_client.expectString
|
|
1453
|
-
});
|
|
1454
|
-
Object.assign(contents, doc);
|
|
1455
|
-
const exception = new AccessDeniedException({
|
|
1456
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1457
|
-
...contents
|
|
1458
|
-
});
|
|
1459
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1460
|
-
}, "de_AccessDeniedExceptionRes");
|
|
1461
|
-
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1462
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1463
|
-
const data = parsedOutput.body;
|
|
1464
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1465
|
-
message: import_smithy_client.expectString,
|
|
1466
|
-
resourceId: import_smithy_client.expectString,
|
|
1467
|
-
resourceType: import_smithy_client.expectString
|
|
1468
|
-
});
|
|
1469
|
-
Object.assign(contents, doc);
|
|
1470
|
-
const exception = new ConflictException({
|
|
1471
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1472
|
-
...contents
|
|
1473
|
-
});
|
|
1474
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1475
|
-
}, "de_ConflictExceptionRes");
|
|
1476
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1477
|
-
const contents = (0, import_smithy_client.map)({
|
|
1478
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
|
|
1479
|
-
});
|
|
1480
|
-
const data = parsedOutput.body;
|
|
1481
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1482
|
-
message: import_smithy_client.expectString
|
|
1483
|
-
});
|
|
1484
|
-
Object.assign(contents, doc);
|
|
1485
|
-
const exception = new InternalServerException({
|
|
1486
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1487
|
-
...contents
|
|
1488
|
-
});
|
|
1489
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1490
|
-
}, "de_InternalServerExceptionRes");
|
|
1491
|
-
var de_RequestAlreadyInProgressExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1492
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1493
|
-
const data = parsedOutput.body;
|
|
1494
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1495
|
-
message: import_smithy_client.expectString
|
|
1496
|
-
});
|
|
1497
|
-
Object.assign(contents, doc);
|
|
1498
|
-
const exception = new RequestAlreadyInProgressException({
|
|
1499
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1500
|
-
...contents
|
|
1501
|
-
});
|
|
1502
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1503
|
-
}, "de_RequestAlreadyInProgressExceptionRes");
|
|
1504
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1505
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1506
|
-
const data = parsedOutput.body;
|
|
1507
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1508
|
-
message: import_smithy_client.expectString,
|
|
1509
|
-
resourceId: import_smithy_client.expectString,
|
|
1510
|
-
resourceType: import_smithy_client.expectString
|
|
1511
|
-
});
|
|
1512
|
-
Object.assign(contents, doc);
|
|
1513
|
-
const exception = new ResourceNotFoundException({
|
|
1514
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1515
|
-
...contents
|
|
1516
|
-
});
|
|
1517
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1518
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
1519
|
-
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1520
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1521
|
-
const data = parsedOutput.body;
|
|
1522
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1523
|
-
message: import_smithy_client.expectString,
|
|
1524
|
-
quotaCode: import_smithy_client.expectString,
|
|
1525
|
-
resourceId: import_smithy_client.expectString,
|
|
1526
|
-
resourceType: import_smithy_client.expectString,
|
|
1527
|
-
serviceCode: import_smithy_client.expectString
|
|
1528
|
-
});
|
|
1529
|
-
Object.assign(contents, doc);
|
|
1530
|
-
const exception = new ServiceQuotaExceededException({
|
|
1531
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1532
|
-
...contents
|
|
1533
|
-
});
|
|
1534
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1535
|
-
}, "de_ServiceQuotaExceededExceptionRes");
|
|
1536
|
-
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1537
|
-
const contents = (0, import_smithy_client.map)({
|
|
1538
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
|
|
1539
|
-
});
|
|
1540
|
-
const data = parsedOutput.body;
|
|
1541
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1542
|
-
message: import_smithy_client.expectString,
|
|
1543
|
-
quotaCode: import_smithy_client.expectString,
|
|
1544
|
-
serviceCode: import_smithy_client.expectString
|
|
1545
|
-
});
|
|
1546
|
-
Object.assign(contents, doc);
|
|
1547
|
-
const exception = new ThrottlingException({
|
|
1548
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1549
|
-
...contents
|
|
1550
|
-
});
|
|
1551
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1552
|
-
}, "de_ThrottlingExceptionRes");
|
|
1553
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1554
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1555
|
-
const data = parsedOutput.body;
|
|
1556
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1557
|
-
fields: import_smithy_client._json,
|
|
1558
|
-
message: import_smithy_client.expectString,
|
|
1559
|
-
reason: import_smithy_client.expectString
|
|
1560
|
-
});
|
|
1561
|
-
Object.assign(contents, doc);
|
|
1562
|
-
const exception = new ValidationException({
|
|
1563
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1564
|
-
...contents
|
|
1565
|
-
});
|
|
1566
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1567
|
-
}, "de_ValidationExceptionRes");
|
|
1568
|
-
var se_ComponentDeploymentSpecification = /* @__PURE__ */ __name((input, context) => {
|
|
1569
|
-
return (0, import_smithy_client.take)(input, {
|
|
1570
|
-
componentVersion: [],
|
|
1571
|
-
configurationUpdate: import_smithy_client._json,
|
|
1572
|
-
runWith: /* @__PURE__ */ __name((_) => se_ComponentRunWith(_, context), "runWith")
|
|
1573
|
-
});
|
|
1574
|
-
}, "se_ComponentDeploymentSpecification");
|
|
1575
|
-
var se_ComponentDeploymentSpecifications = /* @__PURE__ */ __name((input, context) => {
|
|
1576
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1577
|
-
if (value === null) {
|
|
1578
|
-
return acc;
|
|
749
|
+
const de_CancelDeploymentCommand = async (output, context) => {
|
|
750
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
751
|
+
return de_CommandError(output, context);
|
|
752
|
+
}
|
|
753
|
+
const contents = smithyClient.map({
|
|
754
|
+
$metadata: deserializeMetadata(output),
|
|
755
|
+
});
|
|
756
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
757
|
+
const doc = smithyClient.take(data, {
|
|
758
|
+
message: smithyClient.expectString,
|
|
759
|
+
});
|
|
760
|
+
Object.assign(contents, doc);
|
|
761
|
+
return contents;
|
|
762
|
+
};
|
|
763
|
+
const de_CreateComponentVersionCommand = async (output, context) => {
|
|
764
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
765
|
+
return de_CommandError(output, context);
|
|
766
|
+
}
|
|
767
|
+
const contents = smithyClient.map({
|
|
768
|
+
$metadata: deserializeMetadata(output),
|
|
769
|
+
});
|
|
770
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
771
|
+
const doc = smithyClient.take(data, {
|
|
772
|
+
arn: smithyClient.expectString,
|
|
773
|
+
componentName: smithyClient.expectString,
|
|
774
|
+
componentVersion: smithyClient.expectString,
|
|
775
|
+
creationTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
776
|
+
status: smithyClient._json,
|
|
777
|
+
});
|
|
778
|
+
Object.assign(contents, doc);
|
|
779
|
+
return contents;
|
|
780
|
+
};
|
|
781
|
+
const de_CreateDeploymentCommand = async (output, context) => {
|
|
782
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
783
|
+
return de_CommandError(output, context);
|
|
784
|
+
}
|
|
785
|
+
const contents = smithyClient.map({
|
|
786
|
+
$metadata: deserializeMetadata(output),
|
|
787
|
+
});
|
|
788
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
789
|
+
const doc = smithyClient.take(data, {
|
|
790
|
+
deploymentId: smithyClient.expectString,
|
|
791
|
+
iotJobArn: smithyClient.expectString,
|
|
792
|
+
iotJobId: smithyClient.expectString,
|
|
793
|
+
});
|
|
794
|
+
Object.assign(contents, doc);
|
|
795
|
+
return contents;
|
|
796
|
+
};
|
|
797
|
+
const de_DeleteComponentCommand = async (output, context) => {
|
|
798
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
799
|
+
return de_CommandError(output, context);
|
|
800
|
+
}
|
|
801
|
+
const contents = smithyClient.map({
|
|
802
|
+
$metadata: deserializeMetadata(output),
|
|
803
|
+
});
|
|
804
|
+
await smithyClient.collectBody(output.body, context);
|
|
805
|
+
return contents;
|
|
806
|
+
};
|
|
807
|
+
const de_DeleteCoreDeviceCommand = async (output, context) => {
|
|
808
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
809
|
+
return de_CommandError(output, context);
|
|
810
|
+
}
|
|
811
|
+
const contents = smithyClient.map({
|
|
812
|
+
$metadata: deserializeMetadata(output),
|
|
813
|
+
});
|
|
814
|
+
await smithyClient.collectBody(output.body, context);
|
|
815
|
+
return contents;
|
|
816
|
+
};
|
|
817
|
+
const de_DeleteDeploymentCommand = async (output, context) => {
|
|
818
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
819
|
+
return de_CommandError(output, context);
|
|
820
|
+
}
|
|
821
|
+
const contents = smithyClient.map({
|
|
822
|
+
$metadata: deserializeMetadata(output),
|
|
823
|
+
});
|
|
824
|
+
await smithyClient.collectBody(output.body, context);
|
|
825
|
+
return contents;
|
|
826
|
+
};
|
|
827
|
+
const de_DescribeComponentCommand = async (output, context) => {
|
|
828
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
829
|
+
return de_CommandError(output, context);
|
|
830
|
+
}
|
|
831
|
+
const contents = smithyClient.map({
|
|
832
|
+
$metadata: deserializeMetadata(output),
|
|
833
|
+
});
|
|
834
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
835
|
+
const doc = smithyClient.take(data, {
|
|
836
|
+
arn: smithyClient.expectString,
|
|
837
|
+
componentName: smithyClient.expectString,
|
|
838
|
+
componentVersion: smithyClient.expectString,
|
|
839
|
+
creationTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
840
|
+
description: smithyClient.expectString,
|
|
841
|
+
platforms: smithyClient._json,
|
|
842
|
+
publisher: smithyClient.expectString,
|
|
843
|
+
status: smithyClient._json,
|
|
844
|
+
tags: smithyClient._json,
|
|
845
|
+
});
|
|
846
|
+
Object.assign(contents, doc);
|
|
847
|
+
return contents;
|
|
848
|
+
};
|
|
849
|
+
const de_DisassociateServiceRoleFromAccountCommand = async (output, context) => {
|
|
850
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
851
|
+
return de_CommandError(output, context);
|
|
852
|
+
}
|
|
853
|
+
const contents = smithyClient.map({
|
|
854
|
+
$metadata: deserializeMetadata(output),
|
|
855
|
+
});
|
|
856
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
857
|
+
const doc = smithyClient.take(data, {
|
|
858
|
+
disassociatedAt: [, smithyClient.expectString, `DisassociatedAt`],
|
|
859
|
+
});
|
|
860
|
+
Object.assign(contents, doc);
|
|
861
|
+
return contents;
|
|
862
|
+
};
|
|
863
|
+
const de_GetComponentCommand = async (output, context) => {
|
|
864
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
865
|
+
return de_CommandError(output, context);
|
|
866
|
+
}
|
|
867
|
+
const contents = smithyClient.map({
|
|
868
|
+
$metadata: deserializeMetadata(output),
|
|
869
|
+
});
|
|
870
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
871
|
+
const doc = smithyClient.take(data, {
|
|
872
|
+
recipe: context.base64Decoder,
|
|
873
|
+
recipeOutputFormat: smithyClient.expectString,
|
|
874
|
+
tags: smithyClient._json,
|
|
875
|
+
});
|
|
876
|
+
Object.assign(contents, doc);
|
|
877
|
+
return contents;
|
|
878
|
+
};
|
|
879
|
+
const de_GetComponentVersionArtifactCommand = async (output, context) => {
|
|
880
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
881
|
+
return de_CommandError(output, context);
|
|
882
|
+
}
|
|
883
|
+
const contents = smithyClient.map({
|
|
884
|
+
$metadata: deserializeMetadata(output),
|
|
885
|
+
});
|
|
886
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
887
|
+
const doc = smithyClient.take(data, {
|
|
888
|
+
preSignedUrl: smithyClient.expectString,
|
|
889
|
+
});
|
|
890
|
+
Object.assign(contents, doc);
|
|
891
|
+
return contents;
|
|
892
|
+
};
|
|
893
|
+
const de_GetConnectivityInfoCommand = async (output, context) => {
|
|
894
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
895
|
+
return de_CommandError(output, context);
|
|
896
|
+
}
|
|
897
|
+
const contents = smithyClient.map({
|
|
898
|
+
$metadata: deserializeMetadata(output),
|
|
899
|
+
});
|
|
900
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
901
|
+
const doc = smithyClient.take(data, {
|
|
902
|
+
connectivityInfo: [, (_) => de_connectivityInfoList(_), `ConnectivityInfo`],
|
|
903
|
+
message: [, smithyClient.expectString, `Message`],
|
|
904
|
+
});
|
|
905
|
+
Object.assign(contents, doc);
|
|
906
|
+
return contents;
|
|
907
|
+
};
|
|
908
|
+
const de_GetCoreDeviceCommand = async (output, context) => {
|
|
909
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
910
|
+
return de_CommandError(output, context);
|
|
911
|
+
}
|
|
912
|
+
const contents = smithyClient.map({
|
|
913
|
+
$metadata: deserializeMetadata(output),
|
|
914
|
+
});
|
|
915
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
916
|
+
const doc = smithyClient.take(data, {
|
|
917
|
+
architecture: smithyClient.expectString,
|
|
918
|
+
coreDeviceThingName: smithyClient.expectString,
|
|
919
|
+
coreVersion: smithyClient.expectString,
|
|
920
|
+
lastStatusUpdateTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
921
|
+
platform: smithyClient.expectString,
|
|
922
|
+
runtime: smithyClient.expectString,
|
|
923
|
+
status: smithyClient.expectString,
|
|
924
|
+
tags: smithyClient._json,
|
|
925
|
+
});
|
|
926
|
+
Object.assign(contents, doc);
|
|
927
|
+
return contents;
|
|
928
|
+
};
|
|
929
|
+
const de_GetDeploymentCommand = async (output, context) => {
|
|
930
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
931
|
+
return de_CommandError(output, context);
|
|
932
|
+
}
|
|
933
|
+
const contents = smithyClient.map({
|
|
934
|
+
$metadata: deserializeMetadata(output),
|
|
935
|
+
});
|
|
936
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
937
|
+
const doc = smithyClient.take(data, {
|
|
938
|
+
components: (_) => de_ComponentDeploymentSpecifications(_),
|
|
939
|
+
creationTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
940
|
+
deploymentId: smithyClient.expectString,
|
|
941
|
+
deploymentName: smithyClient.expectString,
|
|
942
|
+
deploymentPolicies: smithyClient._json,
|
|
943
|
+
deploymentStatus: smithyClient.expectString,
|
|
944
|
+
iotJobArn: smithyClient.expectString,
|
|
945
|
+
iotJobConfiguration: (_) => de_DeploymentIoTJobConfiguration(_),
|
|
946
|
+
iotJobId: smithyClient.expectString,
|
|
947
|
+
isLatestForTarget: smithyClient.expectBoolean,
|
|
948
|
+
parentTargetArn: smithyClient.expectString,
|
|
949
|
+
revisionId: smithyClient.expectString,
|
|
950
|
+
tags: smithyClient._json,
|
|
951
|
+
targetArn: smithyClient.expectString,
|
|
952
|
+
});
|
|
953
|
+
Object.assign(contents, doc);
|
|
954
|
+
return contents;
|
|
955
|
+
};
|
|
956
|
+
const de_GetServiceRoleForAccountCommand = async (output, context) => {
|
|
957
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
958
|
+
return de_CommandError(output, context);
|
|
959
|
+
}
|
|
960
|
+
const contents = smithyClient.map({
|
|
961
|
+
$metadata: deserializeMetadata(output),
|
|
962
|
+
});
|
|
963
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
964
|
+
const doc = smithyClient.take(data, {
|
|
965
|
+
associatedAt: [, smithyClient.expectString, `AssociatedAt`],
|
|
966
|
+
roleArn: [, smithyClient.expectString, `RoleArn`],
|
|
967
|
+
});
|
|
968
|
+
Object.assign(contents, doc);
|
|
969
|
+
return contents;
|
|
970
|
+
};
|
|
971
|
+
const de_ListClientDevicesAssociatedWithCoreDeviceCommand = async (output, context) => {
|
|
972
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
973
|
+
return de_CommandError(output, context);
|
|
974
|
+
}
|
|
975
|
+
const contents = smithyClient.map({
|
|
976
|
+
$metadata: deserializeMetadata(output),
|
|
977
|
+
});
|
|
978
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
979
|
+
const doc = smithyClient.take(data, {
|
|
980
|
+
associatedClientDevices: (_) => de_AssociatedClientDeviceList(_),
|
|
981
|
+
nextToken: smithyClient.expectString,
|
|
982
|
+
});
|
|
983
|
+
Object.assign(contents, doc);
|
|
984
|
+
return contents;
|
|
985
|
+
};
|
|
986
|
+
const de_ListComponentsCommand = async (output, context) => {
|
|
987
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
988
|
+
return de_CommandError(output, context);
|
|
1579
989
|
}
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
}
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
}
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
990
|
+
const contents = smithyClient.map({
|
|
991
|
+
$metadata: deserializeMetadata(output),
|
|
992
|
+
});
|
|
993
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
994
|
+
const doc = smithyClient.take(data, {
|
|
995
|
+
components: (_) => de_ComponentList(_),
|
|
996
|
+
nextToken: smithyClient.expectString,
|
|
997
|
+
});
|
|
998
|
+
Object.assign(contents, doc);
|
|
999
|
+
return contents;
|
|
1000
|
+
};
|
|
1001
|
+
const de_ListComponentVersionsCommand = async (output, context) => {
|
|
1002
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1003
|
+
return de_CommandError(output, context);
|
|
1004
|
+
}
|
|
1005
|
+
const contents = smithyClient.map({
|
|
1006
|
+
$metadata: deserializeMetadata(output),
|
|
1007
|
+
});
|
|
1008
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
1009
|
+
const doc = smithyClient.take(data, {
|
|
1010
|
+
componentVersions: smithyClient._json,
|
|
1011
|
+
nextToken: smithyClient.expectString,
|
|
1012
|
+
});
|
|
1013
|
+
Object.assign(contents, doc);
|
|
1014
|
+
return contents;
|
|
1015
|
+
};
|
|
1016
|
+
const de_ListCoreDevicesCommand = async (output, context) => {
|
|
1017
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1018
|
+
return de_CommandError(output, context);
|
|
1019
|
+
}
|
|
1020
|
+
const contents = smithyClient.map({
|
|
1021
|
+
$metadata: deserializeMetadata(output),
|
|
1022
|
+
});
|
|
1023
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
1024
|
+
const doc = smithyClient.take(data, {
|
|
1025
|
+
coreDevices: (_) => de_CoreDevicesList(_),
|
|
1026
|
+
nextToken: smithyClient.expectString,
|
|
1027
|
+
});
|
|
1028
|
+
Object.assign(contents, doc);
|
|
1029
|
+
return contents;
|
|
1030
|
+
};
|
|
1031
|
+
const de_ListDeploymentsCommand = async (output, context) => {
|
|
1032
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1033
|
+
return de_CommandError(output, context);
|
|
1034
|
+
}
|
|
1035
|
+
const contents = smithyClient.map({
|
|
1036
|
+
$metadata: deserializeMetadata(output),
|
|
1037
|
+
});
|
|
1038
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
1039
|
+
const doc = smithyClient.take(data, {
|
|
1040
|
+
deployments: (_) => de_DeploymentList(_),
|
|
1041
|
+
nextToken: smithyClient.expectString,
|
|
1042
|
+
});
|
|
1043
|
+
Object.assign(contents, doc);
|
|
1044
|
+
return contents;
|
|
1045
|
+
};
|
|
1046
|
+
const de_ListEffectiveDeploymentsCommand = async (output, context) => {
|
|
1047
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1048
|
+
return de_CommandError(output, context);
|
|
1049
|
+
}
|
|
1050
|
+
const contents = smithyClient.map({
|
|
1051
|
+
$metadata: deserializeMetadata(output),
|
|
1052
|
+
});
|
|
1053
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
1054
|
+
const doc = smithyClient.take(data, {
|
|
1055
|
+
effectiveDeployments: (_) => de_EffectiveDeploymentsList(_),
|
|
1056
|
+
nextToken: smithyClient.expectString,
|
|
1057
|
+
});
|
|
1058
|
+
Object.assign(contents, doc);
|
|
1059
|
+
return contents;
|
|
1060
|
+
};
|
|
1061
|
+
const de_ListInstalledComponentsCommand = async (output, context) => {
|
|
1062
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1063
|
+
return de_CommandError(output, context);
|
|
1064
|
+
}
|
|
1065
|
+
const contents = smithyClient.map({
|
|
1066
|
+
$metadata: deserializeMetadata(output),
|
|
1067
|
+
});
|
|
1068
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
1069
|
+
const doc = smithyClient.take(data, {
|
|
1070
|
+
installedComponents: (_) => de_InstalledComponentList(_),
|
|
1071
|
+
nextToken: smithyClient.expectString,
|
|
1072
|
+
});
|
|
1073
|
+
Object.assign(contents, doc);
|
|
1074
|
+
return contents;
|
|
1075
|
+
};
|
|
1076
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1077
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1078
|
+
return de_CommandError(output, context);
|
|
1079
|
+
}
|
|
1080
|
+
const contents = smithyClient.map({
|
|
1081
|
+
$metadata: deserializeMetadata(output),
|
|
1082
|
+
});
|
|
1083
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
1084
|
+
const doc = smithyClient.take(data, {
|
|
1085
|
+
tags: smithyClient._json,
|
|
1086
|
+
});
|
|
1087
|
+
Object.assign(contents, doc);
|
|
1088
|
+
return contents;
|
|
1089
|
+
};
|
|
1090
|
+
const de_ResolveComponentCandidatesCommand = async (output, context) => {
|
|
1091
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1092
|
+
return de_CommandError(output, context);
|
|
1093
|
+
}
|
|
1094
|
+
const contents = smithyClient.map({
|
|
1095
|
+
$metadata: deserializeMetadata(output),
|
|
1096
|
+
});
|
|
1097
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
1098
|
+
const doc = smithyClient.take(data, {
|
|
1099
|
+
resolvedComponentVersions: (_) => de_ResolvedComponentVersionsList(_, context),
|
|
1100
|
+
});
|
|
1101
|
+
Object.assign(contents, doc);
|
|
1102
|
+
return contents;
|
|
1103
|
+
};
|
|
1104
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
1105
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1106
|
+
return de_CommandError(output, context);
|
|
1107
|
+
}
|
|
1108
|
+
const contents = smithyClient.map({
|
|
1109
|
+
$metadata: deserializeMetadata(output),
|
|
1110
|
+
});
|
|
1111
|
+
await smithyClient.collectBody(output.body, context);
|
|
1112
|
+
return contents;
|
|
1113
|
+
};
|
|
1114
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
1115
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1116
|
+
return de_CommandError(output, context);
|
|
1117
|
+
}
|
|
1118
|
+
const contents = smithyClient.map({
|
|
1119
|
+
$metadata: deserializeMetadata(output),
|
|
1120
|
+
});
|
|
1121
|
+
await smithyClient.collectBody(output.body, context);
|
|
1122
|
+
return contents;
|
|
1123
|
+
};
|
|
1124
|
+
const de_UpdateConnectivityInfoCommand = async (output, context) => {
|
|
1125
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1126
|
+
return de_CommandError(output, context);
|
|
1127
|
+
}
|
|
1128
|
+
const contents = smithyClient.map({
|
|
1129
|
+
$metadata: deserializeMetadata(output),
|
|
1130
|
+
});
|
|
1131
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
1132
|
+
const doc = smithyClient.take(data, {
|
|
1133
|
+
message: [, smithyClient.expectString, `Message`],
|
|
1134
|
+
version: [, smithyClient.expectString, `Version`],
|
|
1135
|
+
});
|
|
1136
|
+
Object.assign(contents, doc);
|
|
1137
|
+
return contents;
|
|
1138
|
+
};
|
|
1139
|
+
const de_CommandError = async (output, context) => {
|
|
1140
|
+
const parsedOutput = {
|
|
1141
|
+
...output,
|
|
1142
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
1143
|
+
};
|
|
1144
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1145
|
+
switch (errorCode) {
|
|
1146
|
+
case "InternalServerException":
|
|
1147
|
+
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1148
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
1149
|
+
case "ValidationException":
|
|
1150
|
+
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1151
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
1152
|
+
case "AccessDeniedException":
|
|
1153
|
+
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1154
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
1155
|
+
case "ResourceNotFoundException":
|
|
1156
|
+
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1157
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
1158
|
+
case "ThrottlingException":
|
|
1159
|
+
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1160
|
+
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
1161
|
+
case "ConflictException":
|
|
1162
|
+
case "com.amazonaws.greengrassv2#ConflictException":
|
|
1163
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
1164
|
+
case "RequestAlreadyInProgressException":
|
|
1165
|
+
case "com.amazonaws.greengrassv2#RequestAlreadyInProgressException":
|
|
1166
|
+
throw await de_RequestAlreadyInProgressExceptionRes(parsedOutput);
|
|
1167
|
+
case "ServiceQuotaExceededException":
|
|
1168
|
+
case "com.amazonaws.greengrassv2#ServiceQuotaExceededException":
|
|
1169
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
1170
|
+
default:
|
|
1171
|
+
const parsedBody = parsedOutput.body;
|
|
1172
|
+
return throwDefaultError({
|
|
1173
|
+
output,
|
|
1174
|
+
parsedBody,
|
|
1175
|
+
errorCode,
|
|
1176
|
+
});
|
|
1177
|
+
}
|
|
1178
|
+
};
|
|
1179
|
+
const throwDefaultError = smithyClient.withBaseException(GreengrassV2ServiceException);
|
|
1180
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1181
|
+
const contents = smithyClient.map({});
|
|
1182
|
+
const data = parsedOutput.body;
|
|
1183
|
+
const doc = smithyClient.take(data, {
|
|
1184
|
+
message: smithyClient.expectString,
|
|
1185
|
+
});
|
|
1186
|
+
Object.assign(contents, doc);
|
|
1187
|
+
const exception = new AccessDeniedException({
|
|
1188
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1189
|
+
...contents,
|
|
1190
|
+
});
|
|
1191
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1192
|
+
};
|
|
1193
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1194
|
+
const contents = smithyClient.map({});
|
|
1195
|
+
const data = parsedOutput.body;
|
|
1196
|
+
const doc = smithyClient.take(data, {
|
|
1197
|
+
message: smithyClient.expectString,
|
|
1198
|
+
resourceId: smithyClient.expectString,
|
|
1199
|
+
resourceType: smithyClient.expectString,
|
|
1200
|
+
});
|
|
1201
|
+
Object.assign(contents, doc);
|
|
1202
|
+
const exception = new ConflictException({
|
|
1203
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1204
|
+
...contents,
|
|
1205
|
+
});
|
|
1206
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1207
|
+
};
|
|
1208
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1209
|
+
const contents = smithyClient.map({
|
|
1210
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => smithyClient.strictParseInt32(parsedOutput.headers[_ra])],
|
|
1211
|
+
});
|
|
1212
|
+
const data = parsedOutput.body;
|
|
1213
|
+
const doc = smithyClient.take(data, {
|
|
1214
|
+
message: smithyClient.expectString,
|
|
1215
|
+
});
|
|
1216
|
+
Object.assign(contents, doc);
|
|
1217
|
+
const exception = new InternalServerException({
|
|
1218
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1219
|
+
...contents,
|
|
1220
|
+
});
|
|
1221
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1222
|
+
};
|
|
1223
|
+
const de_RequestAlreadyInProgressExceptionRes = async (parsedOutput, context) => {
|
|
1224
|
+
const contents = smithyClient.map({});
|
|
1225
|
+
const data = parsedOutput.body;
|
|
1226
|
+
const doc = smithyClient.take(data, {
|
|
1227
|
+
message: smithyClient.expectString,
|
|
1228
|
+
});
|
|
1229
|
+
Object.assign(contents, doc);
|
|
1230
|
+
const exception = new RequestAlreadyInProgressException({
|
|
1231
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1232
|
+
...contents,
|
|
1233
|
+
});
|
|
1234
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1235
|
+
};
|
|
1236
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1237
|
+
const contents = smithyClient.map({});
|
|
1238
|
+
const data = parsedOutput.body;
|
|
1239
|
+
const doc = smithyClient.take(data, {
|
|
1240
|
+
message: smithyClient.expectString,
|
|
1241
|
+
resourceId: smithyClient.expectString,
|
|
1242
|
+
resourceType: smithyClient.expectString,
|
|
1243
|
+
});
|
|
1244
|
+
Object.assign(contents, doc);
|
|
1245
|
+
const exception = new ResourceNotFoundException({
|
|
1246
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1247
|
+
...contents,
|
|
1248
|
+
});
|
|
1249
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1250
|
+
};
|
|
1251
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1252
|
+
const contents = smithyClient.map({});
|
|
1253
|
+
const data = parsedOutput.body;
|
|
1254
|
+
const doc = smithyClient.take(data, {
|
|
1255
|
+
message: smithyClient.expectString,
|
|
1256
|
+
quotaCode: smithyClient.expectString,
|
|
1257
|
+
resourceId: smithyClient.expectString,
|
|
1258
|
+
resourceType: smithyClient.expectString,
|
|
1259
|
+
serviceCode: smithyClient.expectString,
|
|
1260
|
+
});
|
|
1261
|
+
Object.assign(contents, doc);
|
|
1262
|
+
const exception = new ServiceQuotaExceededException({
|
|
1263
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1264
|
+
...contents,
|
|
1265
|
+
});
|
|
1266
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1267
|
+
};
|
|
1268
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1269
|
+
const contents = smithyClient.map({
|
|
1270
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => smithyClient.strictParseInt32(parsedOutput.headers[_ra])],
|
|
1271
|
+
});
|
|
1272
|
+
const data = parsedOutput.body;
|
|
1273
|
+
const doc = smithyClient.take(data, {
|
|
1274
|
+
message: smithyClient.expectString,
|
|
1275
|
+
quotaCode: smithyClient.expectString,
|
|
1276
|
+
serviceCode: smithyClient.expectString,
|
|
1277
|
+
});
|
|
1278
|
+
Object.assign(contents, doc);
|
|
1279
|
+
const exception = new ThrottlingException({
|
|
1280
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1281
|
+
...contents,
|
|
1282
|
+
});
|
|
1283
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1284
|
+
};
|
|
1285
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1286
|
+
const contents = smithyClient.map({});
|
|
1287
|
+
const data = parsedOutput.body;
|
|
1288
|
+
const doc = smithyClient.take(data, {
|
|
1289
|
+
fields: smithyClient._json,
|
|
1290
|
+
message: smithyClient.expectString,
|
|
1291
|
+
reason: smithyClient.expectString,
|
|
1292
|
+
});
|
|
1293
|
+
Object.assign(contents, doc);
|
|
1294
|
+
const exception = new ValidationException({
|
|
1295
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1296
|
+
...contents,
|
|
1297
|
+
});
|
|
1298
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1299
|
+
};
|
|
1300
|
+
const se_ComponentDeploymentSpecification = (input, context) => {
|
|
1301
|
+
return smithyClient.take(input, {
|
|
1302
|
+
componentVersion: [],
|
|
1303
|
+
configurationUpdate: smithyClient._json,
|
|
1304
|
+
runWith: (_) => se_ComponentRunWith(_),
|
|
1305
|
+
});
|
|
1306
|
+
};
|
|
1307
|
+
const se_ComponentDeploymentSpecifications = (input, context) => {
|
|
1308
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1309
|
+
if (value === null) {
|
|
1310
|
+
return acc;
|
|
1311
|
+
}
|
|
1312
|
+
acc[key] = se_ComponentDeploymentSpecification(value);
|
|
1678
1313
|
return acc;
|
|
1679
|
-
|
|
1680
|
-
acc[key] = de_ComponentDeploymentSpecification(value, context);
|
|
1681
|
-
return acc;
|
|
1682
|
-
},
|
|
1683
|
-
{}
|
|
1684
|
-
);
|
|
1685
|
-
}, "de_ComponentDeploymentSpecifications");
|
|
1686
|
-
var de_ComponentLatestVersion = /* @__PURE__ */ __name((output, context) => {
|
|
1687
|
-
return (0, import_smithy_client.take)(output, {
|
|
1688
|
-
arn: import_smithy_client.expectString,
|
|
1689
|
-
componentVersion: import_smithy_client.expectString,
|
|
1690
|
-
creationTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTimestamp"),
|
|
1691
|
-
description: import_smithy_client.expectString,
|
|
1692
|
-
platforms: import_smithy_client._json,
|
|
1693
|
-
publisher: import_smithy_client.expectString
|
|
1694
|
-
});
|
|
1695
|
-
}, "de_ComponentLatestVersion");
|
|
1696
|
-
var de_ComponentList = /* @__PURE__ */ __name((output, context) => {
|
|
1697
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1698
|
-
return de_Component(entry, context);
|
|
1699
|
-
});
|
|
1700
|
-
return retVal;
|
|
1701
|
-
}, "de_ComponentList");
|
|
1702
|
-
var de_ComponentRunWith = /* @__PURE__ */ __name((output, context) => {
|
|
1703
|
-
return (0, import_smithy_client.take)(output, {
|
|
1704
|
-
posixUser: import_smithy_client.expectString,
|
|
1705
|
-
systemResourceLimits: /* @__PURE__ */ __name((_) => de_SystemResourceLimits(_, context), "systemResourceLimits"),
|
|
1706
|
-
windowsUser: import_smithy_client.expectString
|
|
1707
|
-
});
|
|
1708
|
-
}, "de_ComponentRunWith");
|
|
1709
|
-
var de_ConnectivityInfo = /* @__PURE__ */ __name((output, context) => {
|
|
1710
|
-
return (0, import_smithy_client.take)(output, {
|
|
1711
|
-
hostAddress: [, import_smithy_client.expectString, `HostAddress`],
|
|
1712
|
-
id: [, import_smithy_client.expectString, `Id`],
|
|
1713
|
-
metadata: [, import_smithy_client.expectString, `Metadata`],
|
|
1714
|
-
portNumber: [, import_smithy_client.expectInt32, `PortNumber`]
|
|
1715
|
-
});
|
|
1716
|
-
}, "de_ConnectivityInfo");
|
|
1717
|
-
var de_connectivityInfoList = /* @__PURE__ */ __name((output, context) => {
|
|
1718
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1719
|
-
return de_ConnectivityInfo(entry, context);
|
|
1720
|
-
});
|
|
1721
|
-
return retVal;
|
|
1722
|
-
}, "de_connectivityInfoList");
|
|
1723
|
-
var de_CoreDevice = /* @__PURE__ */ __name((output, context) => {
|
|
1724
|
-
return (0, import_smithy_client.take)(output, {
|
|
1725
|
-
architecture: import_smithy_client.expectString,
|
|
1726
|
-
coreDeviceThingName: import_smithy_client.expectString,
|
|
1727
|
-
lastStatusUpdateTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastStatusUpdateTimestamp"),
|
|
1728
|
-
platform: import_smithy_client.expectString,
|
|
1729
|
-
runtime: import_smithy_client.expectString,
|
|
1730
|
-
status: import_smithy_client.expectString
|
|
1731
|
-
});
|
|
1732
|
-
}, "de_CoreDevice");
|
|
1733
|
-
var de_CoreDevicesList = /* @__PURE__ */ __name((output, context) => {
|
|
1734
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1735
|
-
return de_CoreDevice(entry, context);
|
|
1736
|
-
});
|
|
1737
|
-
return retVal;
|
|
1738
|
-
}, "de_CoreDevicesList");
|
|
1739
|
-
var de_Deployment = /* @__PURE__ */ __name((output, context) => {
|
|
1740
|
-
return (0, import_smithy_client.take)(output, {
|
|
1741
|
-
creationTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTimestamp"),
|
|
1742
|
-
deploymentId: import_smithy_client.expectString,
|
|
1743
|
-
deploymentName: import_smithy_client.expectString,
|
|
1744
|
-
deploymentStatus: import_smithy_client.expectString,
|
|
1745
|
-
isLatestForTarget: import_smithy_client.expectBoolean,
|
|
1746
|
-
parentTargetArn: import_smithy_client.expectString,
|
|
1747
|
-
revisionId: import_smithy_client.expectString,
|
|
1748
|
-
targetArn: import_smithy_client.expectString
|
|
1749
|
-
});
|
|
1750
|
-
}, "de_Deployment");
|
|
1751
|
-
var de_DeploymentIoTJobConfiguration = /* @__PURE__ */ __name((output, context) => {
|
|
1752
|
-
return (0, import_smithy_client.take)(output, {
|
|
1753
|
-
abortConfig: /* @__PURE__ */ __name((_) => de_IoTJobAbortConfig(_, context), "abortConfig"),
|
|
1754
|
-
jobExecutionsRolloutConfig: /* @__PURE__ */ __name((_) => de_IoTJobExecutionsRolloutConfig(_, context), "jobExecutionsRolloutConfig"),
|
|
1755
|
-
timeoutConfig: import_smithy_client._json
|
|
1756
|
-
});
|
|
1757
|
-
}, "de_DeploymentIoTJobConfiguration");
|
|
1758
|
-
var de_DeploymentList = /* @__PURE__ */ __name((output, context) => {
|
|
1759
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1760
|
-
return de_Deployment(entry, context);
|
|
1761
|
-
});
|
|
1762
|
-
return retVal;
|
|
1763
|
-
}, "de_DeploymentList");
|
|
1764
|
-
var de_EffectiveDeployment = /* @__PURE__ */ __name((output, context) => {
|
|
1765
|
-
return (0, import_smithy_client.take)(output, {
|
|
1766
|
-
coreDeviceExecutionStatus: import_smithy_client.expectString,
|
|
1767
|
-
creationTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTimestamp"),
|
|
1768
|
-
deploymentId: import_smithy_client.expectString,
|
|
1769
|
-
deploymentName: import_smithy_client.expectString,
|
|
1770
|
-
description: import_smithy_client.expectString,
|
|
1771
|
-
iotJobArn: import_smithy_client.expectString,
|
|
1772
|
-
iotJobId: import_smithy_client.expectString,
|
|
1773
|
-
modifiedTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "modifiedTimestamp"),
|
|
1774
|
-
reason: import_smithy_client.expectString,
|
|
1775
|
-
statusDetails: import_smithy_client._json,
|
|
1776
|
-
targetArn: import_smithy_client.expectString
|
|
1777
|
-
});
|
|
1778
|
-
}, "de_EffectiveDeployment");
|
|
1779
|
-
var de_EffectiveDeploymentsList = /* @__PURE__ */ __name((output, context) => {
|
|
1780
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1781
|
-
return de_EffectiveDeployment(entry, context);
|
|
1782
|
-
});
|
|
1783
|
-
return retVal;
|
|
1784
|
-
}, "de_EffectiveDeploymentsList");
|
|
1785
|
-
var de_InstalledComponent = /* @__PURE__ */ __name((output, context) => {
|
|
1786
|
-
return (0, import_smithy_client.take)(output, {
|
|
1787
|
-
componentName: import_smithy_client.expectString,
|
|
1788
|
-
componentVersion: import_smithy_client.expectString,
|
|
1789
|
-
isRoot: import_smithy_client.expectBoolean,
|
|
1790
|
-
lastInstallationSource: import_smithy_client.expectString,
|
|
1791
|
-
lastReportedTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastReportedTimestamp"),
|
|
1792
|
-
lastStatusChangeTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastStatusChangeTimestamp"),
|
|
1793
|
-
lifecycleState: import_smithy_client.expectString,
|
|
1794
|
-
lifecycleStateDetails: import_smithy_client.expectString,
|
|
1795
|
-
lifecycleStatusCodes: import_smithy_client._json
|
|
1796
|
-
});
|
|
1797
|
-
}, "de_InstalledComponent");
|
|
1798
|
-
var de_InstalledComponentList = /* @__PURE__ */ __name((output, context) => {
|
|
1799
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1800
|
-
return de_InstalledComponent(entry, context);
|
|
1801
|
-
});
|
|
1802
|
-
return retVal;
|
|
1803
|
-
}, "de_InstalledComponentList");
|
|
1804
|
-
var de_IoTJobAbortConfig = /* @__PURE__ */ __name((output, context) => {
|
|
1805
|
-
return (0, import_smithy_client.take)(output, {
|
|
1806
|
-
criteriaList: /* @__PURE__ */ __name((_) => de_IoTJobAbortCriteriaList(_, context), "criteriaList")
|
|
1807
|
-
});
|
|
1808
|
-
}, "de_IoTJobAbortConfig");
|
|
1809
|
-
var de_IoTJobAbortCriteria = /* @__PURE__ */ __name((output, context) => {
|
|
1810
|
-
return (0, import_smithy_client.take)(output, {
|
|
1811
|
-
action: import_smithy_client.expectString,
|
|
1812
|
-
failureType: import_smithy_client.expectString,
|
|
1813
|
-
minNumberOfExecutedThings: import_smithy_client.expectInt32,
|
|
1814
|
-
thresholdPercentage: import_smithy_client.limitedParseDouble
|
|
1815
|
-
});
|
|
1816
|
-
}, "de_IoTJobAbortCriteria");
|
|
1817
|
-
var de_IoTJobAbortCriteriaList = /* @__PURE__ */ __name((output, context) => {
|
|
1818
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1819
|
-
return de_IoTJobAbortCriteria(entry, context);
|
|
1820
|
-
});
|
|
1821
|
-
return retVal;
|
|
1822
|
-
}, "de_IoTJobAbortCriteriaList");
|
|
1823
|
-
var de_IoTJobExecutionsRolloutConfig = /* @__PURE__ */ __name((output, context) => {
|
|
1824
|
-
return (0, import_smithy_client.take)(output, {
|
|
1825
|
-
exponentialRate: /* @__PURE__ */ __name((_) => de_IoTJobExponentialRolloutRate(_, context), "exponentialRate"),
|
|
1826
|
-
maximumPerMinute: import_smithy_client.expectInt32
|
|
1827
|
-
});
|
|
1828
|
-
}, "de_IoTJobExecutionsRolloutConfig");
|
|
1829
|
-
var de_IoTJobExponentialRolloutRate = /* @__PURE__ */ __name((output, context) => {
|
|
1830
|
-
return (0, import_smithy_client.take)(output, {
|
|
1831
|
-
baseRatePerMinute: import_smithy_client.expectInt32,
|
|
1832
|
-
incrementFactor: import_smithy_client.limitedParseDouble,
|
|
1833
|
-
rateIncreaseCriteria: import_smithy_client._json
|
|
1834
|
-
});
|
|
1835
|
-
}, "de_IoTJobExponentialRolloutRate");
|
|
1836
|
-
var de_ResolvedComponentVersion = /* @__PURE__ */ __name((output, context) => {
|
|
1837
|
-
return (0, import_smithy_client.take)(output, {
|
|
1838
|
-
arn: import_smithy_client.expectString,
|
|
1839
|
-
componentName: import_smithy_client.expectString,
|
|
1840
|
-
componentVersion: import_smithy_client.expectString,
|
|
1841
|
-
message: import_smithy_client.expectString,
|
|
1842
|
-
recipe: context.base64Decoder,
|
|
1843
|
-
vendorGuidance: import_smithy_client.expectString
|
|
1844
|
-
});
|
|
1845
|
-
}, "de_ResolvedComponentVersion");
|
|
1846
|
-
var de_ResolvedComponentVersionsList = /* @__PURE__ */ __name((output, context) => {
|
|
1847
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1848
|
-
return de_ResolvedComponentVersion(entry, context);
|
|
1849
|
-
});
|
|
1850
|
-
return retVal;
|
|
1851
|
-
}, "de_ResolvedComponentVersionsList");
|
|
1852
|
-
var de_SystemResourceLimits = /* @__PURE__ */ __name((output, context) => {
|
|
1853
|
-
return (0, import_smithy_client.take)(output, {
|
|
1854
|
-
cpus: import_smithy_client.limitedParseDouble,
|
|
1855
|
-
memory: import_smithy_client.expectLong
|
|
1856
|
-
});
|
|
1857
|
-
}, "de_SystemResourceLimits");
|
|
1858
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1859
|
-
httpStatusCode: output.statusCode,
|
|
1860
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1861
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1862
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
1863
|
-
}), "deserializeMetadata");
|
|
1864
|
-
var _hF = "historyFilter";
|
|
1865
|
-
var _iET = "iotEndpointType";
|
|
1866
|
-
var _mR = "maxResults";
|
|
1867
|
-
var _nT = "nextToken";
|
|
1868
|
-
var _pTA = "parentTargetArn";
|
|
1869
|
-
var _r = "runtime";
|
|
1870
|
-
var _rAS = "retryAfterSeconds";
|
|
1871
|
-
var _rOF = "recipeOutputFormat";
|
|
1872
|
-
var _ra = "retry-after";
|
|
1873
|
-
var _s = "scope";
|
|
1874
|
-
var _sET = "s3EndpointType";
|
|
1875
|
-
var _st = "status";
|
|
1876
|
-
var _tA = "targetArn";
|
|
1877
|
-
var _tF = "topologyFilter";
|
|
1878
|
-
var _tGA = "thingGroupArn";
|
|
1879
|
-
var _tK = "tagKeys";
|
|
1880
|
-
var _xaiet = "x-amz-iot-endpoint-type";
|
|
1881
|
-
|
|
1882
|
-
// src/commands/AssociateServiceRoleToAccountCommand.ts
|
|
1883
|
-
var AssociateServiceRoleToAccountCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1884
|
-
return [
|
|
1885
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1886
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1887
|
-
];
|
|
1888
|
-
}).s("GreengrassV2", "AssociateServiceRoleToAccount", {}).n("GreengrassV2Client", "AssociateServiceRoleToAccountCommand").f(void 0, void 0).ser(se_AssociateServiceRoleToAccountCommand).de(de_AssociateServiceRoleToAccountCommand).build() {
|
|
1889
|
-
static {
|
|
1890
|
-
__name(this, "AssociateServiceRoleToAccountCommand");
|
|
1891
|
-
}
|
|
1314
|
+
}, {});
|
|
1892
1315
|
};
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
return [
|
|
1900
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1901
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1902
|
-
];
|
|
1903
|
-
}).s("GreengrassV2", "BatchAssociateClientDeviceWithCoreDevice", {}).n("GreengrassV2Client", "BatchAssociateClientDeviceWithCoreDeviceCommand").f(void 0, void 0).ser(se_BatchAssociateClientDeviceWithCoreDeviceCommand).de(de_BatchAssociateClientDeviceWithCoreDeviceCommand).build() {
|
|
1904
|
-
static {
|
|
1905
|
-
__name(this, "BatchAssociateClientDeviceWithCoreDeviceCommand");
|
|
1906
|
-
}
|
|
1316
|
+
const se_ComponentRunWith = (input, context) => {
|
|
1317
|
+
return smithyClient.take(input, {
|
|
1318
|
+
posixUser: [],
|
|
1319
|
+
systemResourceLimits: (_) => se_SystemResourceLimits(_),
|
|
1320
|
+
windowsUser: [],
|
|
1321
|
+
});
|
|
1907
1322
|
};
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1916
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1917
|
-
];
|
|
1918
|
-
}).s("GreengrassV2", "BatchDisassociateClientDeviceFromCoreDevice", {}).n("GreengrassV2Client", "BatchDisassociateClientDeviceFromCoreDeviceCommand").f(void 0, void 0).ser(se_BatchDisassociateClientDeviceFromCoreDeviceCommand).de(de_BatchDisassociateClientDeviceFromCoreDeviceCommand).build() {
|
|
1919
|
-
static {
|
|
1920
|
-
__name(this, "BatchDisassociateClientDeviceFromCoreDeviceCommand");
|
|
1921
|
-
}
|
|
1323
|
+
const se_ConnectivityInfo = (input, context) => {
|
|
1324
|
+
return smithyClient.take(input, {
|
|
1325
|
+
HostAddress: [, , `hostAddress`],
|
|
1326
|
+
Id: [, , `id`],
|
|
1327
|
+
Metadata: [, , `metadata`],
|
|
1328
|
+
PortNumber: [, , `portNumber`],
|
|
1329
|
+
});
|
|
1922
1330
|
};
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
return [
|
|
1930
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1931
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1932
|
-
];
|
|
1933
|
-
}).s("GreengrassV2", "CancelDeployment", {}).n("GreengrassV2Client", "CancelDeploymentCommand").f(void 0, void 0).ser(se_CancelDeploymentCommand).de(de_CancelDeploymentCommand).build() {
|
|
1934
|
-
static {
|
|
1935
|
-
__name(this, "CancelDeploymentCommand");
|
|
1936
|
-
}
|
|
1331
|
+
const se_connectivityInfoList = (input, context) => {
|
|
1332
|
+
return input
|
|
1333
|
+
.filter((e) => e != null)
|
|
1334
|
+
.map((entry) => {
|
|
1335
|
+
return se_ConnectivityInfo(entry);
|
|
1336
|
+
});
|
|
1937
1337
|
};
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
return [
|
|
1945
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1946
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1947
|
-
];
|
|
1948
|
-
}).s("GreengrassV2", "CreateComponentVersion", {}).n("GreengrassV2Client", "CreateComponentVersionCommand").f(void 0, void 0).ser(se_CreateComponentVersionCommand).de(de_CreateComponentVersionCommand).build() {
|
|
1949
|
-
static {
|
|
1950
|
-
__name(this, "CreateComponentVersionCommand");
|
|
1951
|
-
}
|
|
1338
|
+
const se_DeploymentIoTJobConfiguration = (input, context) => {
|
|
1339
|
+
return smithyClient.take(input, {
|
|
1340
|
+
abortConfig: (_) => se_IoTJobAbortConfig(_),
|
|
1341
|
+
jobExecutionsRolloutConfig: (_) => se_IoTJobExecutionsRolloutConfig(_),
|
|
1342
|
+
timeoutConfig: smithyClient._json,
|
|
1343
|
+
});
|
|
1952
1344
|
};
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
var CreateDeploymentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1959
|
-
return [
|
|
1960
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1961
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1962
|
-
];
|
|
1963
|
-
}).s("GreengrassV2", "CreateDeployment", {}).n("GreengrassV2Client", "CreateDeploymentCommand").f(void 0, void 0).ser(se_CreateDeploymentCommand).de(de_CreateDeploymentCommand).build() {
|
|
1964
|
-
static {
|
|
1965
|
-
__name(this, "CreateDeploymentCommand");
|
|
1966
|
-
}
|
|
1345
|
+
const se_IoTJobAbortConfig = (input, context) => {
|
|
1346
|
+
return smithyClient.take(input, {
|
|
1347
|
+
criteriaList: (_) => se_IoTJobAbortCriteriaList(_),
|
|
1348
|
+
});
|
|
1967
1349
|
};
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1976
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1977
|
-
];
|
|
1978
|
-
}).s("GreengrassV2", "DeleteComponent", {}).n("GreengrassV2Client", "DeleteComponentCommand").f(void 0, void 0).ser(se_DeleteComponentCommand).de(de_DeleteComponentCommand).build() {
|
|
1979
|
-
static {
|
|
1980
|
-
__name(this, "DeleteComponentCommand");
|
|
1981
|
-
}
|
|
1350
|
+
const se_IoTJobAbortCriteria = (input, context) => {
|
|
1351
|
+
return smithyClient.take(input, {
|
|
1352
|
+
action: [],
|
|
1353
|
+
failureType: [],
|
|
1354
|
+
minNumberOfExecutedThings: [],
|
|
1355
|
+
thresholdPercentage: smithyClient.serializeFloat,
|
|
1356
|
+
});
|
|
1982
1357
|
};
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
return [
|
|
1990
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1991
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1992
|
-
];
|
|
1993
|
-
}).s("GreengrassV2", "DeleteCoreDevice", {}).n("GreengrassV2Client", "DeleteCoreDeviceCommand").f(void 0, void 0).ser(se_DeleteCoreDeviceCommand).de(de_DeleteCoreDeviceCommand).build() {
|
|
1994
|
-
static {
|
|
1995
|
-
__name(this, "DeleteCoreDeviceCommand");
|
|
1996
|
-
}
|
|
1358
|
+
const se_IoTJobAbortCriteriaList = (input, context) => {
|
|
1359
|
+
return input
|
|
1360
|
+
.filter((e) => e != null)
|
|
1361
|
+
.map((entry) => {
|
|
1362
|
+
return se_IoTJobAbortCriteria(entry);
|
|
1363
|
+
});
|
|
1997
1364
|
};
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
var DeleteDeploymentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
2004
|
-
return [
|
|
2005
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2006
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2007
|
-
];
|
|
2008
|
-
}).s("GreengrassV2", "DeleteDeployment", {}).n("GreengrassV2Client", "DeleteDeploymentCommand").f(void 0, void 0).ser(se_DeleteDeploymentCommand).de(de_DeleteDeploymentCommand).build() {
|
|
2009
|
-
static {
|
|
2010
|
-
__name(this, "DeleteDeploymentCommand");
|
|
2011
|
-
}
|
|
1365
|
+
const se_IoTJobExecutionsRolloutConfig = (input, context) => {
|
|
1366
|
+
return smithyClient.take(input, {
|
|
1367
|
+
exponentialRate: (_) => se_IoTJobExponentialRolloutRate(_),
|
|
1368
|
+
maximumPerMinute: [],
|
|
1369
|
+
});
|
|
2012
1370
|
};
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
return [
|
|
2020
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2021
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2022
|
-
];
|
|
2023
|
-
}).s("GreengrassV2", "DescribeComponent", {}).n("GreengrassV2Client", "DescribeComponentCommand").f(void 0, void 0).ser(se_DescribeComponentCommand).de(de_DescribeComponentCommand).build() {
|
|
2024
|
-
static {
|
|
2025
|
-
__name(this, "DescribeComponentCommand");
|
|
2026
|
-
}
|
|
1371
|
+
const se_IoTJobExponentialRolloutRate = (input, context) => {
|
|
1372
|
+
return smithyClient.take(input, {
|
|
1373
|
+
baseRatePerMinute: [],
|
|
1374
|
+
incrementFactor: smithyClient.serializeFloat,
|
|
1375
|
+
rateIncreaseCriteria: smithyClient._json,
|
|
1376
|
+
});
|
|
2027
1377
|
};
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
var DisassociateServiceRoleFromAccountCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
2034
|
-
return [
|
|
2035
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2036
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2037
|
-
];
|
|
2038
|
-
}).s("GreengrassV2", "DisassociateServiceRoleFromAccount", {}).n("GreengrassV2Client", "DisassociateServiceRoleFromAccountCommand").f(void 0, void 0).ser(se_DisassociateServiceRoleFromAccountCommand).de(de_DisassociateServiceRoleFromAccountCommand).build() {
|
|
2039
|
-
static {
|
|
2040
|
-
__name(this, "DisassociateServiceRoleFromAccountCommand");
|
|
2041
|
-
}
|
|
1378
|
+
const se_SystemResourceLimits = (input, context) => {
|
|
1379
|
+
return smithyClient.take(input, {
|
|
1380
|
+
cpus: smithyClient.serializeFloat,
|
|
1381
|
+
memory: [],
|
|
1382
|
+
});
|
|
2042
1383
|
};
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
var GetComponentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
2049
|
-
return [
|
|
2050
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2051
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2052
|
-
];
|
|
2053
|
-
}).s("GreengrassV2", "GetComponent", {}).n("GreengrassV2Client", "GetComponentCommand").f(void 0, void 0).ser(se_GetComponentCommand).de(de_GetComponentCommand).build() {
|
|
2054
|
-
static {
|
|
2055
|
-
__name(this, "GetComponentCommand");
|
|
2056
|
-
}
|
|
1384
|
+
const de_AssociatedClientDevice = (output, context) => {
|
|
1385
|
+
return smithyClient.take(output, {
|
|
1386
|
+
associationTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1387
|
+
thingName: smithyClient.expectString,
|
|
1388
|
+
});
|
|
2057
1389
|
};
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2066
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2067
|
-
];
|
|
2068
|
-
}).s("GreengrassV2", "GetComponentVersionArtifact", {}).n("GreengrassV2Client", "GetComponentVersionArtifactCommand").f(void 0, void 0).ser(se_GetComponentVersionArtifactCommand).de(de_GetComponentVersionArtifactCommand).build() {
|
|
2069
|
-
static {
|
|
2070
|
-
__name(this, "GetComponentVersionArtifactCommand");
|
|
2071
|
-
}
|
|
1390
|
+
const de_AssociatedClientDeviceList = (output, context) => {
|
|
1391
|
+
const retVal = (output || [])
|
|
1392
|
+
.filter((e) => e != null)
|
|
1393
|
+
.map((entry) => {
|
|
1394
|
+
return de_AssociatedClientDevice(entry);
|
|
1395
|
+
});
|
|
1396
|
+
return retVal;
|
|
2072
1397
|
};
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
return [
|
|
2080
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2081
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2082
|
-
];
|
|
2083
|
-
}).s("GreengrassV2", "GetConnectivityInfo", {}).n("GreengrassV2Client", "GetConnectivityInfoCommand").f(void 0, void 0).ser(se_GetConnectivityInfoCommand).de(de_GetConnectivityInfoCommand).build() {
|
|
2084
|
-
static {
|
|
2085
|
-
__name(this, "GetConnectivityInfoCommand");
|
|
2086
|
-
}
|
|
1398
|
+
const de_Component = (output, context) => {
|
|
1399
|
+
return smithyClient.take(output, {
|
|
1400
|
+
arn: smithyClient.expectString,
|
|
1401
|
+
componentName: smithyClient.expectString,
|
|
1402
|
+
latestVersion: (_) => de_ComponentLatestVersion(_),
|
|
1403
|
+
});
|
|
2087
1404
|
};
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
return [
|
|
2095
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2096
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2097
|
-
];
|
|
2098
|
-
}).s("GreengrassV2", "GetCoreDevice", {}).n("GreengrassV2Client", "GetCoreDeviceCommand").f(void 0, void 0).ser(se_GetCoreDeviceCommand).de(de_GetCoreDeviceCommand).build() {
|
|
2099
|
-
static {
|
|
2100
|
-
__name(this, "GetCoreDeviceCommand");
|
|
2101
|
-
}
|
|
1405
|
+
const de_ComponentDeploymentSpecification = (output, context) => {
|
|
1406
|
+
return smithyClient.take(output, {
|
|
1407
|
+
componentVersion: smithyClient.expectString,
|
|
1408
|
+
configurationUpdate: smithyClient._json,
|
|
1409
|
+
runWith: (_) => de_ComponentRunWith(_),
|
|
1410
|
+
});
|
|
2102
1411
|
};
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
1412
|
+
const de_ComponentDeploymentSpecifications = (output, context) => {
|
|
1413
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1414
|
+
if (value === null) {
|
|
1415
|
+
return acc;
|
|
1416
|
+
}
|
|
1417
|
+
acc[key] = de_ComponentDeploymentSpecification(value);
|
|
1418
|
+
return acc;
|
|
1419
|
+
}, {});
|
|
1420
|
+
};
|
|
1421
|
+
const de_ComponentLatestVersion = (output, context) => {
|
|
1422
|
+
return smithyClient.take(output, {
|
|
1423
|
+
arn: smithyClient.expectString,
|
|
1424
|
+
componentVersion: smithyClient.expectString,
|
|
1425
|
+
creationTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1426
|
+
description: smithyClient.expectString,
|
|
1427
|
+
platforms: smithyClient._json,
|
|
1428
|
+
publisher: smithyClient.expectString,
|
|
1429
|
+
});
|
|
2117
1430
|
};
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2126
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2127
|
-
];
|
|
2128
|
-
}).s("GreengrassV2", "GetServiceRoleForAccount", {}).n("GreengrassV2Client", "GetServiceRoleForAccountCommand").f(void 0, void 0).ser(se_GetServiceRoleForAccountCommand).de(de_GetServiceRoleForAccountCommand).build() {
|
|
2129
|
-
static {
|
|
2130
|
-
__name(this, "GetServiceRoleForAccountCommand");
|
|
2131
|
-
}
|
|
1431
|
+
const de_ComponentList = (output, context) => {
|
|
1432
|
+
const retVal = (output || [])
|
|
1433
|
+
.filter((e) => e != null)
|
|
1434
|
+
.map((entry) => {
|
|
1435
|
+
return de_Component(entry);
|
|
1436
|
+
});
|
|
1437
|
+
return retVal;
|
|
2132
1438
|
};
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
return [
|
|
2140
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2141
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2142
|
-
];
|
|
2143
|
-
}).s("GreengrassV2", "ListClientDevicesAssociatedWithCoreDevice", {}).n("GreengrassV2Client", "ListClientDevicesAssociatedWithCoreDeviceCommand").f(void 0, void 0).ser(se_ListClientDevicesAssociatedWithCoreDeviceCommand).de(de_ListClientDevicesAssociatedWithCoreDeviceCommand).build() {
|
|
2144
|
-
static {
|
|
2145
|
-
__name(this, "ListClientDevicesAssociatedWithCoreDeviceCommand");
|
|
2146
|
-
}
|
|
1439
|
+
const de_ComponentRunWith = (output, context) => {
|
|
1440
|
+
return smithyClient.take(output, {
|
|
1441
|
+
posixUser: smithyClient.expectString,
|
|
1442
|
+
systemResourceLimits: (_) => de_SystemResourceLimits(_),
|
|
1443
|
+
windowsUser: smithyClient.expectString,
|
|
1444
|
+
});
|
|
2147
1445
|
};
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2156
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2157
|
-
];
|
|
2158
|
-
}).s("GreengrassV2", "ListComponents", {}).n("GreengrassV2Client", "ListComponentsCommand").f(void 0, void 0).ser(se_ListComponentsCommand).de(de_ListComponentsCommand).build() {
|
|
2159
|
-
static {
|
|
2160
|
-
__name(this, "ListComponentsCommand");
|
|
2161
|
-
}
|
|
1446
|
+
const de_ConnectivityInfo = (output, context) => {
|
|
1447
|
+
return smithyClient.take(output, {
|
|
1448
|
+
hostAddress: [, smithyClient.expectString, `HostAddress`],
|
|
1449
|
+
id: [, smithyClient.expectString, `Id`],
|
|
1450
|
+
metadata: [, smithyClient.expectString, `Metadata`],
|
|
1451
|
+
portNumber: [, smithyClient.expectInt32, `PortNumber`],
|
|
1452
|
+
});
|
|
2162
1453
|
};
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
1454
|
+
const de_connectivityInfoList = (output, context) => {
|
|
1455
|
+
const retVal = (output || [])
|
|
1456
|
+
.filter((e) => e != null)
|
|
1457
|
+
.map((entry) => {
|
|
1458
|
+
return de_ConnectivityInfo(entry);
|
|
1459
|
+
});
|
|
1460
|
+
return retVal;
|
|
1461
|
+
};
|
|
1462
|
+
const de_CoreDevice = (output, context) => {
|
|
1463
|
+
return smithyClient.take(output, {
|
|
1464
|
+
architecture: smithyClient.expectString,
|
|
1465
|
+
coreDeviceThingName: smithyClient.expectString,
|
|
1466
|
+
lastStatusUpdateTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1467
|
+
platform: smithyClient.expectString,
|
|
1468
|
+
runtime: smithyClient.expectString,
|
|
1469
|
+
status: smithyClient.expectString,
|
|
1470
|
+
});
|
|
2177
1471
|
};
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
1472
|
+
const de_CoreDevicesList = (output, context) => {
|
|
1473
|
+
const retVal = (output || [])
|
|
1474
|
+
.filter((e) => e != null)
|
|
1475
|
+
.map((entry) => {
|
|
1476
|
+
return de_CoreDevice(entry);
|
|
1477
|
+
});
|
|
1478
|
+
return retVal;
|
|
1479
|
+
};
|
|
1480
|
+
const de_Deployment = (output, context) => {
|
|
1481
|
+
return smithyClient.take(output, {
|
|
1482
|
+
creationTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1483
|
+
deploymentId: smithyClient.expectString,
|
|
1484
|
+
deploymentName: smithyClient.expectString,
|
|
1485
|
+
deploymentStatus: smithyClient.expectString,
|
|
1486
|
+
isLatestForTarget: smithyClient.expectBoolean,
|
|
1487
|
+
parentTargetArn: smithyClient.expectString,
|
|
1488
|
+
revisionId: smithyClient.expectString,
|
|
1489
|
+
targetArn: smithyClient.expectString,
|
|
1490
|
+
});
|
|
2192
1491
|
};
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
return [
|
|
2200
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2201
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2202
|
-
];
|
|
2203
|
-
}).s("GreengrassV2", "ListDeployments", {}).n("GreengrassV2Client", "ListDeploymentsCommand").f(void 0, void 0).ser(se_ListDeploymentsCommand).de(de_ListDeploymentsCommand).build() {
|
|
2204
|
-
static {
|
|
2205
|
-
__name(this, "ListDeploymentsCommand");
|
|
2206
|
-
}
|
|
1492
|
+
const de_DeploymentIoTJobConfiguration = (output, context) => {
|
|
1493
|
+
return smithyClient.take(output, {
|
|
1494
|
+
abortConfig: (_) => de_IoTJobAbortConfig(_),
|
|
1495
|
+
jobExecutionsRolloutConfig: (_) => de_IoTJobExecutionsRolloutConfig(_),
|
|
1496
|
+
timeoutConfig: smithyClient._json,
|
|
1497
|
+
});
|
|
2207
1498
|
};
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
1499
|
+
const de_DeploymentList = (output, context) => {
|
|
1500
|
+
const retVal = (output || [])
|
|
1501
|
+
.filter((e) => e != null)
|
|
1502
|
+
.map((entry) => {
|
|
1503
|
+
return de_Deployment(entry);
|
|
1504
|
+
});
|
|
1505
|
+
return retVal;
|
|
1506
|
+
};
|
|
1507
|
+
const de_EffectiveDeployment = (output, context) => {
|
|
1508
|
+
return smithyClient.take(output, {
|
|
1509
|
+
coreDeviceExecutionStatus: smithyClient.expectString,
|
|
1510
|
+
creationTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1511
|
+
deploymentId: smithyClient.expectString,
|
|
1512
|
+
deploymentName: smithyClient.expectString,
|
|
1513
|
+
description: smithyClient.expectString,
|
|
1514
|
+
iotJobArn: smithyClient.expectString,
|
|
1515
|
+
iotJobId: smithyClient.expectString,
|
|
1516
|
+
modifiedTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1517
|
+
reason: smithyClient.expectString,
|
|
1518
|
+
statusDetails: smithyClient._json,
|
|
1519
|
+
targetArn: smithyClient.expectString,
|
|
1520
|
+
});
|
|
2222
1521
|
};
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
1522
|
+
const de_EffectiveDeploymentsList = (output, context) => {
|
|
1523
|
+
const retVal = (output || [])
|
|
1524
|
+
.filter((e) => e != null)
|
|
1525
|
+
.map((entry) => {
|
|
1526
|
+
return de_EffectiveDeployment(entry);
|
|
1527
|
+
});
|
|
1528
|
+
return retVal;
|
|
1529
|
+
};
|
|
1530
|
+
const de_InstalledComponent = (output, context) => {
|
|
1531
|
+
return smithyClient.take(output, {
|
|
1532
|
+
componentName: smithyClient.expectString,
|
|
1533
|
+
componentVersion: smithyClient.expectString,
|
|
1534
|
+
isRoot: smithyClient.expectBoolean,
|
|
1535
|
+
lastInstallationSource: smithyClient.expectString,
|
|
1536
|
+
lastReportedTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1537
|
+
lastStatusChangeTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1538
|
+
lifecycleState: smithyClient.expectString,
|
|
1539
|
+
lifecycleStateDetails: smithyClient.expectString,
|
|
1540
|
+
lifecycleStatusCodes: smithyClient._json,
|
|
1541
|
+
});
|
|
2237
1542
|
};
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2246
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2247
|
-
];
|
|
2248
|
-
}).s("GreengrassV2", "ListTagsForResource", {}).n("GreengrassV2Client", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
2249
|
-
static {
|
|
2250
|
-
__name(this, "ListTagsForResourceCommand");
|
|
2251
|
-
}
|
|
1543
|
+
const de_InstalledComponentList = (output, context) => {
|
|
1544
|
+
const retVal = (output || [])
|
|
1545
|
+
.filter((e) => e != null)
|
|
1546
|
+
.map((entry) => {
|
|
1547
|
+
return de_InstalledComponent(entry);
|
|
1548
|
+
});
|
|
1549
|
+
return retVal;
|
|
2252
1550
|
};
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
var ResolveComponentCandidatesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
2259
|
-
return [
|
|
2260
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2261
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2262
|
-
];
|
|
2263
|
-
}).s("GreengrassV2", "ResolveComponentCandidates", {}).n("GreengrassV2Client", "ResolveComponentCandidatesCommand").f(void 0, void 0).ser(se_ResolveComponentCandidatesCommand).de(de_ResolveComponentCandidatesCommand).build() {
|
|
2264
|
-
static {
|
|
2265
|
-
__name(this, "ResolveComponentCandidatesCommand");
|
|
2266
|
-
}
|
|
1551
|
+
const de_IoTJobAbortConfig = (output, context) => {
|
|
1552
|
+
return smithyClient.take(output, {
|
|
1553
|
+
criteriaList: (_) => de_IoTJobAbortCriteriaList(_),
|
|
1554
|
+
});
|
|
2267
1555
|
};
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2276
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2277
|
-
];
|
|
2278
|
-
}).s("GreengrassV2", "TagResource", {}).n("GreengrassV2Client", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
2279
|
-
static {
|
|
2280
|
-
__name(this, "TagResourceCommand");
|
|
2281
|
-
}
|
|
1556
|
+
const de_IoTJobAbortCriteria = (output, context) => {
|
|
1557
|
+
return smithyClient.take(output, {
|
|
1558
|
+
action: smithyClient.expectString,
|
|
1559
|
+
failureType: smithyClient.expectString,
|
|
1560
|
+
minNumberOfExecutedThings: smithyClient.expectInt32,
|
|
1561
|
+
thresholdPercentage: smithyClient.limitedParseDouble,
|
|
1562
|
+
});
|
|
2282
1563
|
};
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2291
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2292
|
-
];
|
|
2293
|
-
}).s("GreengrassV2", "UntagResource", {}).n("GreengrassV2Client", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
2294
|
-
static {
|
|
2295
|
-
__name(this, "UntagResourceCommand");
|
|
2296
|
-
}
|
|
1564
|
+
const de_IoTJobAbortCriteriaList = (output, context) => {
|
|
1565
|
+
const retVal = (output || [])
|
|
1566
|
+
.filter((e) => e != null)
|
|
1567
|
+
.map((entry) => {
|
|
1568
|
+
return de_IoTJobAbortCriteria(entry);
|
|
1569
|
+
});
|
|
1570
|
+
return retVal;
|
|
2297
1571
|
};
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
var UpdateConnectivityInfoCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
2304
|
-
return [
|
|
2305
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2306
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2307
|
-
];
|
|
2308
|
-
}).s("GreengrassV2", "UpdateConnectivityInfo", {}).n("GreengrassV2Client", "UpdateConnectivityInfoCommand").f(void 0, void 0).ser(se_UpdateConnectivityInfoCommand).de(de_UpdateConnectivityInfoCommand).build() {
|
|
2309
|
-
static {
|
|
2310
|
-
__name(this, "UpdateConnectivityInfoCommand");
|
|
2311
|
-
}
|
|
1572
|
+
const de_IoTJobExecutionsRolloutConfig = (output, context) => {
|
|
1573
|
+
return smithyClient.take(output, {
|
|
1574
|
+
exponentialRate: (_) => de_IoTJobExponentialRolloutRate(_),
|
|
1575
|
+
maximumPerMinute: smithyClient.expectInt32,
|
|
1576
|
+
});
|
|
2312
1577
|
};
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
}
|
|
2350
|
-
};
|
|
2351
|
-
(0, import_smithy_client.createAggregatedClient)(commands, GreengrassV2);
|
|
2352
|
-
|
|
2353
|
-
// src/pagination/ListClientDevicesAssociatedWithCoreDevicePaginator.ts
|
|
2354
|
-
|
|
2355
|
-
var paginateListClientDevicesAssociatedWithCoreDevice = (0, import_core.createPaginator)(GreengrassV2Client, ListClientDevicesAssociatedWithCoreDeviceCommand, "nextToken", "nextToken", "maxResults");
|
|
2356
|
-
|
|
2357
|
-
// src/pagination/ListComponentVersionsPaginator.ts
|
|
2358
|
-
|
|
2359
|
-
var paginateListComponentVersions = (0, import_core.createPaginator)(GreengrassV2Client, ListComponentVersionsCommand, "nextToken", "nextToken", "maxResults");
|
|
2360
|
-
|
|
2361
|
-
// src/pagination/ListComponentsPaginator.ts
|
|
2362
|
-
|
|
2363
|
-
var paginateListComponents = (0, import_core.createPaginator)(GreengrassV2Client, ListComponentsCommand, "nextToken", "nextToken", "maxResults");
|
|
2364
|
-
|
|
2365
|
-
// src/pagination/ListCoreDevicesPaginator.ts
|
|
2366
|
-
|
|
2367
|
-
var paginateListCoreDevices = (0, import_core.createPaginator)(GreengrassV2Client, ListCoreDevicesCommand, "nextToken", "nextToken", "maxResults");
|
|
2368
|
-
|
|
2369
|
-
// src/pagination/ListDeploymentsPaginator.ts
|
|
2370
|
-
|
|
2371
|
-
var paginateListDeployments = (0, import_core.createPaginator)(GreengrassV2Client, ListDeploymentsCommand, "nextToken", "nextToken", "maxResults");
|
|
2372
|
-
|
|
2373
|
-
// src/pagination/ListEffectiveDeploymentsPaginator.ts
|
|
2374
|
-
|
|
2375
|
-
var paginateListEffectiveDeployments = (0, import_core.createPaginator)(GreengrassV2Client, ListEffectiveDeploymentsCommand, "nextToken", "nextToken", "maxResults");
|
|
2376
|
-
|
|
2377
|
-
// src/pagination/ListInstalledComponentsPaginator.ts
|
|
2378
|
-
|
|
2379
|
-
var paginateListInstalledComponents = (0, import_core.createPaginator)(GreengrassV2Client, ListInstalledComponentsCommand, "nextToken", "nextToken", "maxResults");
|
|
2380
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
2381
|
-
|
|
2382
|
-
0 && (module.exports = {
|
|
2383
|
-
GreengrassV2ServiceException,
|
|
2384
|
-
__Client,
|
|
2385
|
-
GreengrassV2Client,
|
|
2386
|
-
GreengrassV2,
|
|
2387
|
-
$Command,
|
|
2388
|
-
AssociateServiceRoleToAccountCommand,
|
|
2389
|
-
BatchAssociateClientDeviceWithCoreDeviceCommand,
|
|
2390
|
-
BatchDisassociateClientDeviceFromCoreDeviceCommand,
|
|
2391
|
-
CancelDeploymentCommand,
|
|
2392
|
-
CreateComponentVersionCommand,
|
|
2393
|
-
CreateDeploymentCommand,
|
|
2394
|
-
DeleteComponentCommand,
|
|
2395
|
-
DeleteCoreDeviceCommand,
|
|
2396
|
-
DeleteDeploymentCommand,
|
|
2397
|
-
DescribeComponentCommand,
|
|
2398
|
-
DisassociateServiceRoleFromAccountCommand,
|
|
2399
|
-
GetComponentCommand,
|
|
2400
|
-
GetComponentVersionArtifactCommand,
|
|
2401
|
-
GetConnectivityInfoCommand,
|
|
2402
|
-
GetCoreDeviceCommand,
|
|
2403
|
-
GetDeploymentCommand,
|
|
2404
|
-
GetServiceRoleForAccountCommand,
|
|
2405
|
-
ListClientDevicesAssociatedWithCoreDeviceCommand,
|
|
2406
|
-
ListComponentVersionsCommand,
|
|
2407
|
-
ListComponentsCommand,
|
|
2408
|
-
ListCoreDevicesCommand,
|
|
2409
|
-
ListDeploymentsCommand,
|
|
2410
|
-
ListEffectiveDeploymentsCommand,
|
|
2411
|
-
ListInstalledComponentsCommand,
|
|
2412
|
-
ListTagsForResourceCommand,
|
|
2413
|
-
ResolveComponentCandidatesCommand,
|
|
2414
|
-
TagResourceCommand,
|
|
2415
|
-
UntagResourceCommand,
|
|
2416
|
-
UpdateConnectivityInfoCommand,
|
|
2417
|
-
paginateListClientDevicesAssociatedWithCoreDevice,
|
|
2418
|
-
paginateListComponentVersions,
|
|
2419
|
-
paginateListComponents,
|
|
2420
|
-
paginateListCoreDevices,
|
|
2421
|
-
paginateListDeployments,
|
|
2422
|
-
paginateListEffectiveDeployments,
|
|
2423
|
-
paginateListInstalledComponents,
|
|
2424
|
-
AccessDeniedException,
|
|
2425
|
-
InternalServerException,
|
|
2426
|
-
ValidationExceptionReason,
|
|
2427
|
-
ValidationException,
|
|
2428
|
-
ResourceNotFoundException,
|
|
2429
|
-
ThrottlingException,
|
|
2430
|
-
ConflictException,
|
|
2431
|
-
CloudComponentState,
|
|
2432
|
-
VendorGuidance,
|
|
2433
|
-
ComponentDependencyType,
|
|
2434
|
-
ComponentVisibilityScope,
|
|
2435
|
-
CoreDeviceStatus,
|
|
2436
|
-
LambdaEventSourceType,
|
|
2437
|
-
LambdaInputPayloadEncodingType,
|
|
2438
|
-
LambdaFilesystemPermission,
|
|
2439
|
-
LambdaIsolationMode,
|
|
2440
|
-
RequestAlreadyInProgressException,
|
|
2441
|
-
ServiceQuotaExceededException,
|
|
2442
|
-
DeploymentComponentUpdatePolicyAction,
|
|
2443
|
-
DeploymentFailureHandlingPolicy,
|
|
2444
|
-
IoTJobAbortAction,
|
|
2445
|
-
IoTJobExecutionFailureType,
|
|
2446
|
-
DeploymentStatus,
|
|
2447
|
-
DeploymentHistoryFilter,
|
|
2448
|
-
EffectiveDeploymentExecutionStatus,
|
|
2449
|
-
RecipeOutputFormat,
|
|
2450
|
-
IotEndpointType,
|
|
2451
|
-
S3EndpointType,
|
|
2452
|
-
InstalledComponentTopologyFilter,
|
|
2453
|
-
InstalledComponentLifecycleState
|
|
1578
|
+
const de_IoTJobExponentialRolloutRate = (output, context) => {
|
|
1579
|
+
return smithyClient.take(output, {
|
|
1580
|
+
baseRatePerMinute: smithyClient.expectInt32,
|
|
1581
|
+
incrementFactor: smithyClient.limitedParseDouble,
|
|
1582
|
+
rateIncreaseCriteria: smithyClient._json,
|
|
1583
|
+
});
|
|
1584
|
+
};
|
|
1585
|
+
const de_ResolvedComponentVersion = (output, context) => {
|
|
1586
|
+
return smithyClient.take(output, {
|
|
1587
|
+
arn: smithyClient.expectString,
|
|
1588
|
+
componentName: smithyClient.expectString,
|
|
1589
|
+
componentVersion: smithyClient.expectString,
|
|
1590
|
+
message: smithyClient.expectString,
|
|
1591
|
+
recipe: context.base64Decoder,
|
|
1592
|
+
vendorGuidance: smithyClient.expectString,
|
|
1593
|
+
});
|
|
1594
|
+
};
|
|
1595
|
+
const de_ResolvedComponentVersionsList = (output, context) => {
|
|
1596
|
+
const retVal = (output || [])
|
|
1597
|
+
.filter((e) => e != null)
|
|
1598
|
+
.map((entry) => {
|
|
1599
|
+
return de_ResolvedComponentVersion(entry, context);
|
|
1600
|
+
});
|
|
1601
|
+
return retVal;
|
|
1602
|
+
};
|
|
1603
|
+
const de_SystemResourceLimits = (output, context) => {
|
|
1604
|
+
return smithyClient.take(output, {
|
|
1605
|
+
cpus: smithyClient.limitedParseDouble,
|
|
1606
|
+
memory: smithyClient.expectLong,
|
|
1607
|
+
});
|
|
1608
|
+
};
|
|
1609
|
+
const deserializeMetadata = (output) => ({
|
|
1610
|
+
httpStatusCode: output.statusCode,
|
|
1611
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1612
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1613
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
2454
1614
|
});
|
|
2455
|
-
|
|
1615
|
+
const _hF = "historyFilter";
|
|
1616
|
+
const _iET = "iotEndpointType";
|
|
1617
|
+
const _mR = "maxResults";
|
|
1618
|
+
const _nT = "nextToken";
|
|
1619
|
+
const _pTA = "parentTargetArn";
|
|
1620
|
+
const _r = "runtime";
|
|
1621
|
+
const _rAS = "retryAfterSeconds";
|
|
1622
|
+
const _rOF = "recipeOutputFormat";
|
|
1623
|
+
const _ra = "retry-after";
|
|
1624
|
+
const _s = "scope";
|
|
1625
|
+
const _sET = "s3EndpointType";
|
|
1626
|
+
const _st = "status";
|
|
1627
|
+
const _tA = "targetArn";
|
|
1628
|
+
const _tF = "topologyFilter";
|
|
1629
|
+
const _tGA = "thingGroupArn";
|
|
1630
|
+
const _tK = "tagKeys";
|
|
1631
|
+
const _xaiet = "x-amz-iot-endpoint-type";
|
|
1632
|
+
|
|
1633
|
+
class AssociateServiceRoleToAccountCommand extends smithyClient.Command
|
|
1634
|
+
.classBuilder()
|
|
1635
|
+
.ep(commonParams)
|
|
1636
|
+
.m(function (Command, cs, config, o) {
|
|
1637
|
+
return [
|
|
1638
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1639
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1640
|
+
];
|
|
1641
|
+
})
|
|
1642
|
+
.s("GreengrassV2", "AssociateServiceRoleToAccount", {})
|
|
1643
|
+
.n("GreengrassV2Client", "AssociateServiceRoleToAccountCommand")
|
|
1644
|
+
.f(void 0, void 0)
|
|
1645
|
+
.ser(se_AssociateServiceRoleToAccountCommand)
|
|
1646
|
+
.de(de_AssociateServiceRoleToAccountCommand)
|
|
1647
|
+
.build() {
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1650
|
+
class BatchAssociateClientDeviceWithCoreDeviceCommand extends smithyClient.Command
|
|
1651
|
+
.classBuilder()
|
|
1652
|
+
.ep(commonParams)
|
|
1653
|
+
.m(function (Command, cs, config, o) {
|
|
1654
|
+
return [
|
|
1655
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1656
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1657
|
+
];
|
|
1658
|
+
})
|
|
1659
|
+
.s("GreengrassV2", "BatchAssociateClientDeviceWithCoreDevice", {})
|
|
1660
|
+
.n("GreengrassV2Client", "BatchAssociateClientDeviceWithCoreDeviceCommand")
|
|
1661
|
+
.f(void 0, void 0)
|
|
1662
|
+
.ser(se_BatchAssociateClientDeviceWithCoreDeviceCommand)
|
|
1663
|
+
.de(de_BatchAssociateClientDeviceWithCoreDeviceCommand)
|
|
1664
|
+
.build() {
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1667
|
+
class BatchDisassociateClientDeviceFromCoreDeviceCommand extends smithyClient.Command
|
|
1668
|
+
.classBuilder()
|
|
1669
|
+
.ep(commonParams)
|
|
1670
|
+
.m(function (Command, cs, config, o) {
|
|
1671
|
+
return [
|
|
1672
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1673
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1674
|
+
];
|
|
1675
|
+
})
|
|
1676
|
+
.s("GreengrassV2", "BatchDisassociateClientDeviceFromCoreDevice", {})
|
|
1677
|
+
.n("GreengrassV2Client", "BatchDisassociateClientDeviceFromCoreDeviceCommand")
|
|
1678
|
+
.f(void 0, void 0)
|
|
1679
|
+
.ser(se_BatchDisassociateClientDeviceFromCoreDeviceCommand)
|
|
1680
|
+
.de(de_BatchDisassociateClientDeviceFromCoreDeviceCommand)
|
|
1681
|
+
.build() {
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
class CancelDeploymentCommand extends smithyClient.Command
|
|
1685
|
+
.classBuilder()
|
|
1686
|
+
.ep(commonParams)
|
|
1687
|
+
.m(function (Command, cs, config, o) {
|
|
1688
|
+
return [
|
|
1689
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1690
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1691
|
+
];
|
|
1692
|
+
})
|
|
1693
|
+
.s("GreengrassV2", "CancelDeployment", {})
|
|
1694
|
+
.n("GreengrassV2Client", "CancelDeploymentCommand")
|
|
1695
|
+
.f(void 0, void 0)
|
|
1696
|
+
.ser(se_CancelDeploymentCommand)
|
|
1697
|
+
.de(de_CancelDeploymentCommand)
|
|
1698
|
+
.build() {
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
class CreateComponentVersionCommand extends smithyClient.Command
|
|
1702
|
+
.classBuilder()
|
|
1703
|
+
.ep(commonParams)
|
|
1704
|
+
.m(function (Command, cs, config, o) {
|
|
1705
|
+
return [
|
|
1706
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1707
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1708
|
+
];
|
|
1709
|
+
})
|
|
1710
|
+
.s("GreengrassV2", "CreateComponentVersion", {})
|
|
1711
|
+
.n("GreengrassV2Client", "CreateComponentVersionCommand")
|
|
1712
|
+
.f(void 0, void 0)
|
|
1713
|
+
.ser(se_CreateComponentVersionCommand)
|
|
1714
|
+
.de(de_CreateComponentVersionCommand)
|
|
1715
|
+
.build() {
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
class CreateDeploymentCommand extends smithyClient.Command
|
|
1719
|
+
.classBuilder()
|
|
1720
|
+
.ep(commonParams)
|
|
1721
|
+
.m(function (Command, cs, config, o) {
|
|
1722
|
+
return [
|
|
1723
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1724
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1725
|
+
];
|
|
1726
|
+
})
|
|
1727
|
+
.s("GreengrassV2", "CreateDeployment", {})
|
|
1728
|
+
.n("GreengrassV2Client", "CreateDeploymentCommand")
|
|
1729
|
+
.f(void 0, void 0)
|
|
1730
|
+
.ser(se_CreateDeploymentCommand)
|
|
1731
|
+
.de(de_CreateDeploymentCommand)
|
|
1732
|
+
.build() {
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
class DeleteComponentCommand extends smithyClient.Command
|
|
1736
|
+
.classBuilder()
|
|
1737
|
+
.ep(commonParams)
|
|
1738
|
+
.m(function (Command, cs, config, o) {
|
|
1739
|
+
return [
|
|
1740
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1741
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1742
|
+
];
|
|
1743
|
+
})
|
|
1744
|
+
.s("GreengrassV2", "DeleteComponent", {})
|
|
1745
|
+
.n("GreengrassV2Client", "DeleteComponentCommand")
|
|
1746
|
+
.f(void 0, void 0)
|
|
1747
|
+
.ser(se_DeleteComponentCommand)
|
|
1748
|
+
.de(de_DeleteComponentCommand)
|
|
1749
|
+
.build() {
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
class DeleteCoreDeviceCommand extends smithyClient.Command
|
|
1753
|
+
.classBuilder()
|
|
1754
|
+
.ep(commonParams)
|
|
1755
|
+
.m(function (Command, cs, config, o) {
|
|
1756
|
+
return [
|
|
1757
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1758
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1759
|
+
];
|
|
1760
|
+
})
|
|
1761
|
+
.s("GreengrassV2", "DeleteCoreDevice", {})
|
|
1762
|
+
.n("GreengrassV2Client", "DeleteCoreDeviceCommand")
|
|
1763
|
+
.f(void 0, void 0)
|
|
1764
|
+
.ser(se_DeleteCoreDeviceCommand)
|
|
1765
|
+
.de(de_DeleteCoreDeviceCommand)
|
|
1766
|
+
.build() {
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1769
|
+
class DeleteDeploymentCommand extends smithyClient.Command
|
|
1770
|
+
.classBuilder()
|
|
1771
|
+
.ep(commonParams)
|
|
1772
|
+
.m(function (Command, cs, config, o) {
|
|
1773
|
+
return [
|
|
1774
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1775
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1776
|
+
];
|
|
1777
|
+
})
|
|
1778
|
+
.s("GreengrassV2", "DeleteDeployment", {})
|
|
1779
|
+
.n("GreengrassV2Client", "DeleteDeploymentCommand")
|
|
1780
|
+
.f(void 0, void 0)
|
|
1781
|
+
.ser(se_DeleteDeploymentCommand)
|
|
1782
|
+
.de(de_DeleteDeploymentCommand)
|
|
1783
|
+
.build() {
|
|
1784
|
+
}
|
|
1785
|
+
|
|
1786
|
+
class DescribeComponentCommand extends smithyClient.Command
|
|
1787
|
+
.classBuilder()
|
|
1788
|
+
.ep(commonParams)
|
|
1789
|
+
.m(function (Command, cs, config, o) {
|
|
1790
|
+
return [
|
|
1791
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1792
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1793
|
+
];
|
|
1794
|
+
})
|
|
1795
|
+
.s("GreengrassV2", "DescribeComponent", {})
|
|
1796
|
+
.n("GreengrassV2Client", "DescribeComponentCommand")
|
|
1797
|
+
.f(void 0, void 0)
|
|
1798
|
+
.ser(se_DescribeComponentCommand)
|
|
1799
|
+
.de(de_DescribeComponentCommand)
|
|
1800
|
+
.build() {
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
class DisassociateServiceRoleFromAccountCommand extends smithyClient.Command
|
|
1804
|
+
.classBuilder()
|
|
1805
|
+
.ep(commonParams)
|
|
1806
|
+
.m(function (Command, cs, config, o) {
|
|
1807
|
+
return [
|
|
1808
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1809
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1810
|
+
];
|
|
1811
|
+
})
|
|
1812
|
+
.s("GreengrassV2", "DisassociateServiceRoleFromAccount", {})
|
|
1813
|
+
.n("GreengrassV2Client", "DisassociateServiceRoleFromAccountCommand")
|
|
1814
|
+
.f(void 0, void 0)
|
|
1815
|
+
.ser(se_DisassociateServiceRoleFromAccountCommand)
|
|
1816
|
+
.de(de_DisassociateServiceRoleFromAccountCommand)
|
|
1817
|
+
.build() {
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
class GetComponentCommand extends smithyClient.Command
|
|
1821
|
+
.classBuilder()
|
|
1822
|
+
.ep(commonParams)
|
|
1823
|
+
.m(function (Command, cs, config, o) {
|
|
1824
|
+
return [
|
|
1825
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1826
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1827
|
+
];
|
|
1828
|
+
})
|
|
1829
|
+
.s("GreengrassV2", "GetComponent", {})
|
|
1830
|
+
.n("GreengrassV2Client", "GetComponentCommand")
|
|
1831
|
+
.f(void 0, void 0)
|
|
1832
|
+
.ser(se_GetComponentCommand)
|
|
1833
|
+
.de(de_GetComponentCommand)
|
|
1834
|
+
.build() {
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1837
|
+
class GetComponentVersionArtifactCommand extends smithyClient.Command
|
|
1838
|
+
.classBuilder()
|
|
1839
|
+
.ep(commonParams)
|
|
1840
|
+
.m(function (Command, cs, config, o) {
|
|
1841
|
+
return [
|
|
1842
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1843
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1844
|
+
];
|
|
1845
|
+
})
|
|
1846
|
+
.s("GreengrassV2", "GetComponentVersionArtifact", {})
|
|
1847
|
+
.n("GreengrassV2Client", "GetComponentVersionArtifactCommand")
|
|
1848
|
+
.f(void 0, void 0)
|
|
1849
|
+
.ser(se_GetComponentVersionArtifactCommand)
|
|
1850
|
+
.de(de_GetComponentVersionArtifactCommand)
|
|
1851
|
+
.build() {
|
|
1852
|
+
}
|
|
1853
|
+
|
|
1854
|
+
class GetConnectivityInfoCommand extends smithyClient.Command
|
|
1855
|
+
.classBuilder()
|
|
1856
|
+
.ep(commonParams)
|
|
1857
|
+
.m(function (Command, cs, config, o) {
|
|
1858
|
+
return [
|
|
1859
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1860
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1861
|
+
];
|
|
1862
|
+
})
|
|
1863
|
+
.s("GreengrassV2", "GetConnectivityInfo", {})
|
|
1864
|
+
.n("GreengrassV2Client", "GetConnectivityInfoCommand")
|
|
1865
|
+
.f(void 0, void 0)
|
|
1866
|
+
.ser(se_GetConnectivityInfoCommand)
|
|
1867
|
+
.de(de_GetConnectivityInfoCommand)
|
|
1868
|
+
.build() {
|
|
1869
|
+
}
|
|
1870
|
+
|
|
1871
|
+
class GetCoreDeviceCommand extends smithyClient.Command
|
|
1872
|
+
.classBuilder()
|
|
1873
|
+
.ep(commonParams)
|
|
1874
|
+
.m(function (Command, cs, config, o) {
|
|
1875
|
+
return [
|
|
1876
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1877
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1878
|
+
];
|
|
1879
|
+
})
|
|
1880
|
+
.s("GreengrassV2", "GetCoreDevice", {})
|
|
1881
|
+
.n("GreengrassV2Client", "GetCoreDeviceCommand")
|
|
1882
|
+
.f(void 0, void 0)
|
|
1883
|
+
.ser(se_GetCoreDeviceCommand)
|
|
1884
|
+
.de(de_GetCoreDeviceCommand)
|
|
1885
|
+
.build() {
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
class GetDeploymentCommand extends smithyClient.Command
|
|
1889
|
+
.classBuilder()
|
|
1890
|
+
.ep(commonParams)
|
|
1891
|
+
.m(function (Command, cs, config, o) {
|
|
1892
|
+
return [
|
|
1893
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1894
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1895
|
+
];
|
|
1896
|
+
})
|
|
1897
|
+
.s("GreengrassV2", "GetDeployment", {})
|
|
1898
|
+
.n("GreengrassV2Client", "GetDeploymentCommand")
|
|
1899
|
+
.f(void 0, void 0)
|
|
1900
|
+
.ser(se_GetDeploymentCommand)
|
|
1901
|
+
.de(de_GetDeploymentCommand)
|
|
1902
|
+
.build() {
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
class GetServiceRoleForAccountCommand extends smithyClient.Command
|
|
1906
|
+
.classBuilder()
|
|
1907
|
+
.ep(commonParams)
|
|
1908
|
+
.m(function (Command, cs, config, o) {
|
|
1909
|
+
return [
|
|
1910
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1911
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1912
|
+
];
|
|
1913
|
+
})
|
|
1914
|
+
.s("GreengrassV2", "GetServiceRoleForAccount", {})
|
|
1915
|
+
.n("GreengrassV2Client", "GetServiceRoleForAccountCommand")
|
|
1916
|
+
.f(void 0, void 0)
|
|
1917
|
+
.ser(se_GetServiceRoleForAccountCommand)
|
|
1918
|
+
.de(de_GetServiceRoleForAccountCommand)
|
|
1919
|
+
.build() {
|
|
1920
|
+
}
|
|
1921
|
+
|
|
1922
|
+
class ListClientDevicesAssociatedWithCoreDeviceCommand extends smithyClient.Command
|
|
1923
|
+
.classBuilder()
|
|
1924
|
+
.ep(commonParams)
|
|
1925
|
+
.m(function (Command, cs, config, o) {
|
|
1926
|
+
return [
|
|
1927
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1928
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1929
|
+
];
|
|
1930
|
+
})
|
|
1931
|
+
.s("GreengrassV2", "ListClientDevicesAssociatedWithCoreDevice", {})
|
|
1932
|
+
.n("GreengrassV2Client", "ListClientDevicesAssociatedWithCoreDeviceCommand")
|
|
1933
|
+
.f(void 0, void 0)
|
|
1934
|
+
.ser(se_ListClientDevicesAssociatedWithCoreDeviceCommand)
|
|
1935
|
+
.de(de_ListClientDevicesAssociatedWithCoreDeviceCommand)
|
|
1936
|
+
.build() {
|
|
1937
|
+
}
|
|
1938
|
+
|
|
1939
|
+
class ListComponentsCommand extends smithyClient.Command
|
|
1940
|
+
.classBuilder()
|
|
1941
|
+
.ep(commonParams)
|
|
1942
|
+
.m(function (Command, cs, config, o) {
|
|
1943
|
+
return [
|
|
1944
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1945
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1946
|
+
];
|
|
1947
|
+
})
|
|
1948
|
+
.s("GreengrassV2", "ListComponents", {})
|
|
1949
|
+
.n("GreengrassV2Client", "ListComponentsCommand")
|
|
1950
|
+
.f(void 0, void 0)
|
|
1951
|
+
.ser(se_ListComponentsCommand)
|
|
1952
|
+
.de(de_ListComponentsCommand)
|
|
1953
|
+
.build() {
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1956
|
+
class ListComponentVersionsCommand extends smithyClient.Command
|
|
1957
|
+
.classBuilder()
|
|
1958
|
+
.ep(commonParams)
|
|
1959
|
+
.m(function (Command, cs, config, o) {
|
|
1960
|
+
return [
|
|
1961
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1962
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1963
|
+
];
|
|
1964
|
+
})
|
|
1965
|
+
.s("GreengrassV2", "ListComponentVersions", {})
|
|
1966
|
+
.n("GreengrassV2Client", "ListComponentVersionsCommand")
|
|
1967
|
+
.f(void 0, void 0)
|
|
1968
|
+
.ser(se_ListComponentVersionsCommand)
|
|
1969
|
+
.de(de_ListComponentVersionsCommand)
|
|
1970
|
+
.build() {
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
class ListCoreDevicesCommand extends smithyClient.Command
|
|
1974
|
+
.classBuilder()
|
|
1975
|
+
.ep(commonParams)
|
|
1976
|
+
.m(function (Command, cs, config, o) {
|
|
1977
|
+
return [
|
|
1978
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1979
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1980
|
+
];
|
|
1981
|
+
})
|
|
1982
|
+
.s("GreengrassV2", "ListCoreDevices", {})
|
|
1983
|
+
.n("GreengrassV2Client", "ListCoreDevicesCommand")
|
|
1984
|
+
.f(void 0, void 0)
|
|
1985
|
+
.ser(se_ListCoreDevicesCommand)
|
|
1986
|
+
.de(de_ListCoreDevicesCommand)
|
|
1987
|
+
.build() {
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
class ListDeploymentsCommand extends smithyClient.Command
|
|
1991
|
+
.classBuilder()
|
|
1992
|
+
.ep(commonParams)
|
|
1993
|
+
.m(function (Command, cs, config, o) {
|
|
1994
|
+
return [
|
|
1995
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1996
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1997
|
+
];
|
|
1998
|
+
})
|
|
1999
|
+
.s("GreengrassV2", "ListDeployments", {})
|
|
2000
|
+
.n("GreengrassV2Client", "ListDeploymentsCommand")
|
|
2001
|
+
.f(void 0, void 0)
|
|
2002
|
+
.ser(se_ListDeploymentsCommand)
|
|
2003
|
+
.de(de_ListDeploymentsCommand)
|
|
2004
|
+
.build() {
|
|
2005
|
+
}
|
|
2006
|
+
|
|
2007
|
+
class ListEffectiveDeploymentsCommand extends smithyClient.Command
|
|
2008
|
+
.classBuilder()
|
|
2009
|
+
.ep(commonParams)
|
|
2010
|
+
.m(function (Command, cs, config, o) {
|
|
2011
|
+
return [
|
|
2012
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
2013
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
2014
|
+
];
|
|
2015
|
+
})
|
|
2016
|
+
.s("GreengrassV2", "ListEffectiveDeployments", {})
|
|
2017
|
+
.n("GreengrassV2Client", "ListEffectiveDeploymentsCommand")
|
|
2018
|
+
.f(void 0, void 0)
|
|
2019
|
+
.ser(se_ListEffectiveDeploymentsCommand)
|
|
2020
|
+
.de(de_ListEffectiveDeploymentsCommand)
|
|
2021
|
+
.build() {
|
|
2022
|
+
}
|
|
2023
|
+
|
|
2024
|
+
class ListInstalledComponentsCommand extends smithyClient.Command
|
|
2025
|
+
.classBuilder()
|
|
2026
|
+
.ep(commonParams)
|
|
2027
|
+
.m(function (Command, cs, config, o) {
|
|
2028
|
+
return [
|
|
2029
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
2030
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
2031
|
+
];
|
|
2032
|
+
})
|
|
2033
|
+
.s("GreengrassV2", "ListInstalledComponents", {})
|
|
2034
|
+
.n("GreengrassV2Client", "ListInstalledComponentsCommand")
|
|
2035
|
+
.f(void 0, void 0)
|
|
2036
|
+
.ser(se_ListInstalledComponentsCommand)
|
|
2037
|
+
.de(de_ListInstalledComponentsCommand)
|
|
2038
|
+
.build() {
|
|
2039
|
+
}
|
|
2040
|
+
|
|
2041
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
2042
|
+
.classBuilder()
|
|
2043
|
+
.ep(commonParams)
|
|
2044
|
+
.m(function (Command, cs, config, o) {
|
|
2045
|
+
return [
|
|
2046
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
2047
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
2048
|
+
];
|
|
2049
|
+
})
|
|
2050
|
+
.s("GreengrassV2", "ListTagsForResource", {})
|
|
2051
|
+
.n("GreengrassV2Client", "ListTagsForResourceCommand")
|
|
2052
|
+
.f(void 0, void 0)
|
|
2053
|
+
.ser(se_ListTagsForResourceCommand)
|
|
2054
|
+
.de(de_ListTagsForResourceCommand)
|
|
2055
|
+
.build() {
|
|
2056
|
+
}
|
|
2057
|
+
|
|
2058
|
+
class ResolveComponentCandidatesCommand extends smithyClient.Command
|
|
2059
|
+
.classBuilder()
|
|
2060
|
+
.ep(commonParams)
|
|
2061
|
+
.m(function (Command, cs, config, o) {
|
|
2062
|
+
return [
|
|
2063
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
2064
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
2065
|
+
];
|
|
2066
|
+
})
|
|
2067
|
+
.s("GreengrassV2", "ResolveComponentCandidates", {})
|
|
2068
|
+
.n("GreengrassV2Client", "ResolveComponentCandidatesCommand")
|
|
2069
|
+
.f(void 0, void 0)
|
|
2070
|
+
.ser(se_ResolveComponentCandidatesCommand)
|
|
2071
|
+
.de(de_ResolveComponentCandidatesCommand)
|
|
2072
|
+
.build() {
|
|
2073
|
+
}
|
|
2074
|
+
|
|
2075
|
+
class TagResourceCommand extends smithyClient.Command
|
|
2076
|
+
.classBuilder()
|
|
2077
|
+
.ep(commonParams)
|
|
2078
|
+
.m(function (Command, cs, config, o) {
|
|
2079
|
+
return [
|
|
2080
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
2081
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
2082
|
+
];
|
|
2083
|
+
})
|
|
2084
|
+
.s("GreengrassV2", "TagResource", {})
|
|
2085
|
+
.n("GreengrassV2Client", "TagResourceCommand")
|
|
2086
|
+
.f(void 0, void 0)
|
|
2087
|
+
.ser(se_TagResourceCommand)
|
|
2088
|
+
.de(de_TagResourceCommand)
|
|
2089
|
+
.build() {
|
|
2090
|
+
}
|
|
2091
|
+
|
|
2092
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
2093
|
+
.classBuilder()
|
|
2094
|
+
.ep(commonParams)
|
|
2095
|
+
.m(function (Command, cs, config, o) {
|
|
2096
|
+
return [
|
|
2097
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
2098
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
2099
|
+
];
|
|
2100
|
+
})
|
|
2101
|
+
.s("GreengrassV2", "UntagResource", {})
|
|
2102
|
+
.n("GreengrassV2Client", "UntagResourceCommand")
|
|
2103
|
+
.f(void 0, void 0)
|
|
2104
|
+
.ser(se_UntagResourceCommand)
|
|
2105
|
+
.de(de_UntagResourceCommand)
|
|
2106
|
+
.build() {
|
|
2107
|
+
}
|
|
2108
|
+
|
|
2109
|
+
class UpdateConnectivityInfoCommand extends smithyClient.Command
|
|
2110
|
+
.classBuilder()
|
|
2111
|
+
.ep(commonParams)
|
|
2112
|
+
.m(function (Command, cs, config, o) {
|
|
2113
|
+
return [
|
|
2114
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
2115
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
2116
|
+
];
|
|
2117
|
+
})
|
|
2118
|
+
.s("GreengrassV2", "UpdateConnectivityInfo", {})
|
|
2119
|
+
.n("GreengrassV2Client", "UpdateConnectivityInfoCommand")
|
|
2120
|
+
.f(void 0, void 0)
|
|
2121
|
+
.ser(se_UpdateConnectivityInfoCommand)
|
|
2122
|
+
.de(de_UpdateConnectivityInfoCommand)
|
|
2123
|
+
.build() {
|
|
2124
|
+
}
|
|
2125
|
+
|
|
2126
|
+
const commands = {
|
|
2127
|
+
AssociateServiceRoleToAccountCommand,
|
|
2128
|
+
BatchAssociateClientDeviceWithCoreDeviceCommand,
|
|
2129
|
+
BatchDisassociateClientDeviceFromCoreDeviceCommand,
|
|
2130
|
+
CancelDeploymentCommand,
|
|
2131
|
+
CreateComponentVersionCommand,
|
|
2132
|
+
CreateDeploymentCommand,
|
|
2133
|
+
DeleteComponentCommand,
|
|
2134
|
+
DeleteCoreDeviceCommand,
|
|
2135
|
+
DeleteDeploymentCommand,
|
|
2136
|
+
DescribeComponentCommand,
|
|
2137
|
+
DisassociateServiceRoleFromAccountCommand,
|
|
2138
|
+
GetComponentCommand,
|
|
2139
|
+
GetComponentVersionArtifactCommand,
|
|
2140
|
+
GetConnectivityInfoCommand,
|
|
2141
|
+
GetCoreDeviceCommand,
|
|
2142
|
+
GetDeploymentCommand,
|
|
2143
|
+
GetServiceRoleForAccountCommand,
|
|
2144
|
+
ListClientDevicesAssociatedWithCoreDeviceCommand,
|
|
2145
|
+
ListComponentsCommand,
|
|
2146
|
+
ListComponentVersionsCommand,
|
|
2147
|
+
ListCoreDevicesCommand,
|
|
2148
|
+
ListDeploymentsCommand,
|
|
2149
|
+
ListEffectiveDeploymentsCommand,
|
|
2150
|
+
ListInstalledComponentsCommand,
|
|
2151
|
+
ListTagsForResourceCommand,
|
|
2152
|
+
ResolveComponentCandidatesCommand,
|
|
2153
|
+
TagResourceCommand,
|
|
2154
|
+
UntagResourceCommand,
|
|
2155
|
+
UpdateConnectivityInfoCommand,
|
|
2156
|
+
};
|
|
2157
|
+
class GreengrassV2 extends GreengrassV2Client {
|
|
2158
|
+
}
|
|
2159
|
+
smithyClient.createAggregatedClient(commands, GreengrassV2);
|
|
2160
|
+
|
|
2161
|
+
const paginateListClientDevicesAssociatedWithCoreDevice = core.createPaginator(GreengrassV2Client, ListClientDevicesAssociatedWithCoreDeviceCommand, "nextToken", "nextToken", "maxResults");
|
|
2162
|
+
|
|
2163
|
+
const paginateListComponentVersions = core.createPaginator(GreengrassV2Client, ListComponentVersionsCommand, "nextToken", "nextToken", "maxResults");
|
|
2164
|
+
|
|
2165
|
+
const paginateListComponents = core.createPaginator(GreengrassV2Client, ListComponentsCommand, "nextToken", "nextToken", "maxResults");
|
|
2166
|
+
|
|
2167
|
+
const paginateListCoreDevices = core.createPaginator(GreengrassV2Client, ListCoreDevicesCommand, "nextToken", "nextToken", "maxResults");
|
|
2168
|
+
|
|
2169
|
+
const paginateListDeployments = core.createPaginator(GreengrassV2Client, ListDeploymentsCommand, "nextToken", "nextToken", "maxResults");
|
|
2170
|
+
|
|
2171
|
+
const paginateListEffectiveDeployments = core.createPaginator(GreengrassV2Client, ListEffectiveDeploymentsCommand, "nextToken", "nextToken", "maxResults");
|
|
2172
|
+
|
|
2173
|
+
const paginateListInstalledComponents = core.createPaginator(GreengrassV2Client, ListInstalledComponentsCommand, "nextToken", "nextToken", "maxResults");
|
|
2174
|
+
|
|
2175
|
+
Object.defineProperty(exports, "$Command", {
|
|
2176
|
+
enumerable: true,
|
|
2177
|
+
get: function () { return smithyClient.Command; }
|
|
2178
|
+
});
|
|
2179
|
+
Object.defineProperty(exports, "__Client", {
|
|
2180
|
+
enumerable: true,
|
|
2181
|
+
get: function () { return smithyClient.Client; }
|
|
2182
|
+
});
|
|
2183
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
2184
|
+
exports.AssociateServiceRoleToAccountCommand = AssociateServiceRoleToAccountCommand;
|
|
2185
|
+
exports.BatchAssociateClientDeviceWithCoreDeviceCommand = BatchAssociateClientDeviceWithCoreDeviceCommand;
|
|
2186
|
+
exports.BatchDisassociateClientDeviceFromCoreDeviceCommand = BatchDisassociateClientDeviceFromCoreDeviceCommand;
|
|
2187
|
+
exports.CancelDeploymentCommand = CancelDeploymentCommand;
|
|
2188
|
+
exports.CloudComponentState = CloudComponentState;
|
|
2189
|
+
exports.ComponentDependencyType = ComponentDependencyType;
|
|
2190
|
+
exports.ComponentVisibilityScope = ComponentVisibilityScope;
|
|
2191
|
+
exports.ConflictException = ConflictException;
|
|
2192
|
+
exports.CoreDeviceStatus = CoreDeviceStatus;
|
|
2193
|
+
exports.CreateComponentVersionCommand = CreateComponentVersionCommand;
|
|
2194
|
+
exports.CreateDeploymentCommand = CreateDeploymentCommand;
|
|
2195
|
+
exports.DeleteComponentCommand = DeleteComponentCommand;
|
|
2196
|
+
exports.DeleteCoreDeviceCommand = DeleteCoreDeviceCommand;
|
|
2197
|
+
exports.DeleteDeploymentCommand = DeleteDeploymentCommand;
|
|
2198
|
+
exports.DeploymentComponentUpdatePolicyAction = DeploymentComponentUpdatePolicyAction;
|
|
2199
|
+
exports.DeploymentFailureHandlingPolicy = DeploymentFailureHandlingPolicy;
|
|
2200
|
+
exports.DeploymentHistoryFilter = DeploymentHistoryFilter;
|
|
2201
|
+
exports.DeploymentStatus = DeploymentStatus;
|
|
2202
|
+
exports.DescribeComponentCommand = DescribeComponentCommand;
|
|
2203
|
+
exports.DisassociateServiceRoleFromAccountCommand = DisassociateServiceRoleFromAccountCommand;
|
|
2204
|
+
exports.EffectiveDeploymentExecutionStatus = EffectiveDeploymentExecutionStatus;
|
|
2205
|
+
exports.GetComponentCommand = GetComponentCommand;
|
|
2206
|
+
exports.GetComponentVersionArtifactCommand = GetComponentVersionArtifactCommand;
|
|
2207
|
+
exports.GetConnectivityInfoCommand = GetConnectivityInfoCommand;
|
|
2208
|
+
exports.GetCoreDeviceCommand = GetCoreDeviceCommand;
|
|
2209
|
+
exports.GetDeploymentCommand = GetDeploymentCommand;
|
|
2210
|
+
exports.GetServiceRoleForAccountCommand = GetServiceRoleForAccountCommand;
|
|
2211
|
+
exports.GreengrassV2 = GreengrassV2;
|
|
2212
|
+
exports.GreengrassV2Client = GreengrassV2Client;
|
|
2213
|
+
exports.GreengrassV2ServiceException = GreengrassV2ServiceException;
|
|
2214
|
+
exports.InstalledComponentLifecycleState = InstalledComponentLifecycleState;
|
|
2215
|
+
exports.InstalledComponentTopologyFilter = InstalledComponentTopologyFilter;
|
|
2216
|
+
exports.InternalServerException = InternalServerException;
|
|
2217
|
+
exports.IoTJobAbortAction = IoTJobAbortAction;
|
|
2218
|
+
exports.IoTJobExecutionFailureType = IoTJobExecutionFailureType;
|
|
2219
|
+
exports.IotEndpointType = IotEndpointType;
|
|
2220
|
+
exports.LambdaEventSourceType = LambdaEventSourceType;
|
|
2221
|
+
exports.LambdaFilesystemPermission = LambdaFilesystemPermission;
|
|
2222
|
+
exports.LambdaInputPayloadEncodingType = LambdaInputPayloadEncodingType;
|
|
2223
|
+
exports.LambdaIsolationMode = LambdaIsolationMode;
|
|
2224
|
+
exports.ListClientDevicesAssociatedWithCoreDeviceCommand = ListClientDevicesAssociatedWithCoreDeviceCommand;
|
|
2225
|
+
exports.ListComponentVersionsCommand = ListComponentVersionsCommand;
|
|
2226
|
+
exports.ListComponentsCommand = ListComponentsCommand;
|
|
2227
|
+
exports.ListCoreDevicesCommand = ListCoreDevicesCommand;
|
|
2228
|
+
exports.ListDeploymentsCommand = ListDeploymentsCommand;
|
|
2229
|
+
exports.ListEffectiveDeploymentsCommand = ListEffectiveDeploymentsCommand;
|
|
2230
|
+
exports.ListInstalledComponentsCommand = ListInstalledComponentsCommand;
|
|
2231
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
2232
|
+
exports.RecipeOutputFormat = RecipeOutputFormat;
|
|
2233
|
+
exports.RequestAlreadyInProgressException = RequestAlreadyInProgressException;
|
|
2234
|
+
exports.ResolveComponentCandidatesCommand = ResolveComponentCandidatesCommand;
|
|
2235
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
2236
|
+
exports.S3EndpointType = S3EndpointType;
|
|
2237
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
2238
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
2239
|
+
exports.ThrottlingException = ThrottlingException;
|
|
2240
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
2241
|
+
exports.UpdateConnectivityInfoCommand = UpdateConnectivityInfoCommand;
|
|
2242
|
+
exports.ValidationException = ValidationException;
|
|
2243
|
+
exports.ValidationExceptionReason = ValidationExceptionReason;
|
|
2244
|
+
exports.VendorGuidance = VendorGuidance;
|
|
2245
|
+
exports.paginateListClientDevicesAssociatedWithCoreDevice = paginateListClientDevicesAssociatedWithCoreDevice;
|
|
2246
|
+
exports.paginateListComponentVersions = paginateListComponentVersions;
|
|
2247
|
+
exports.paginateListComponents = paginateListComponents;
|
|
2248
|
+
exports.paginateListCoreDevices = paginateListCoreDevices;
|
|
2249
|
+
exports.paginateListDeployments = paginateListDeployments;
|
|
2250
|
+
exports.paginateListEffectiveDeployments = paginateListEffectiveDeployments;
|
|
2251
|
+
exports.paginateListInstalledComponents = paginateListInstalledComponents;
|