@aws-sdk/client-greengrassv2 3.569.0 → 3.574.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 +23 -2
- package/dist-es/models/models_0.js +8 -0
- package/dist-es/protocols/Aws_restJson1.js +10 -2
- package/dist-types/commands/CreateComponentVersionCommand.d.ts +3 -39
- package/dist-types/commands/CreateDeploymentCommand.d.ts +1 -1
- package/dist-types/commands/GetComponentVersionArtifactCommand.d.ts +2 -0
- package/dist-types/commands/GetDeploymentCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +44 -3
- package/dist-types/ts3.4/models/models_0.d.ts +15 -1
- package/package.json +8 -8
package/dist-cjs/index.js
CHANGED
|
@@ -57,6 +57,7 @@ __export(src_exports, {
|
|
|
57
57
|
InternalServerException: () => InternalServerException,
|
|
58
58
|
IoTJobAbortAction: () => IoTJobAbortAction,
|
|
59
59
|
IoTJobExecutionFailureType: () => IoTJobExecutionFailureType,
|
|
60
|
+
IotEndpointType: () => IotEndpointType,
|
|
60
61
|
LambdaEventSourceType: () => LambdaEventSourceType,
|
|
61
62
|
LambdaFilesystemPermission: () => LambdaFilesystemPermission,
|
|
62
63
|
LambdaInputPayloadEncodingType: () => LambdaInputPayloadEncodingType,
|
|
@@ -73,6 +74,7 @@ __export(src_exports, {
|
|
|
73
74
|
RequestAlreadyInProgressException: () => RequestAlreadyInProgressException,
|
|
74
75
|
ResolveComponentCandidatesCommand: () => ResolveComponentCandidatesCommand,
|
|
75
76
|
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
77
|
+
S3EndpointType: () => S3EndpointType,
|
|
76
78
|
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
77
79
|
TagResourceCommand: () => TagResourceCommand,
|
|
78
80
|
ThrottlingException: () => ThrottlingException,
|
|
@@ -503,6 +505,14 @@ var RecipeOutputFormat = {
|
|
|
503
505
|
JSON: "JSON",
|
|
504
506
|
YAML: "YAML"
|
|
505
507
|
};
|
|
508
|
+
var IotEndpointType = {
|
|
509
|
+
fips: "fips",
|
|
510
|
+
standard: "standard"
|
|
511
|
+
};
|
|
512
|
+
var S3EndpointType = {
|
|
513
|
+
GLOBAL: "GLOBAL",
|
|
514
|
+
REGIONAL: "REGIONAL"
|
|
515
|
+
};
|
|
506
516
|
var InstalledComponentTopologyFilter = {
|
|
507
517
|
ALL: "ALL",
|
|
508
518
|
ROOT: "ROOT"
|
|
@@ -676,12 +686,17 @@ var se_GetComponentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
676
686
|
}, "se_GetComponentCommand");
|
|
677
687
|
var se_GetComponentVersionArtifactCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
678
688
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
679
|
-
const headers = {}
|
|
689
|
+
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
690
|
+
[_xaiet]: input[_iET]
|
|
691
|
+
});
|
|
680
692
|
b.bp("/greengrass/v2/components/{arn}/artifacts/{artifactName+}");
|
|
681
693
|
b.p("arn", () => input.arn, "{arn}", false);
|
|
682
694
|
b.p("artifactName", () => input.artifactName, "{artifactName+}", true);
|
|
695
|
+
const query = (0, import_smithy_client.map)({
|
|
696
|
+
[_sET]: [, input[_sET]]
|
|
697
|
+
});
|
|
683
698
|
let body;
|
|
684
|
-
b.m("GET").h(headers).b(body);
|
|
699
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
685
700
|
return b.build();
|
|
686
701
|
}, "se_GetComponentVersionArtifactCommand");
|
|
687
702
|
var se_GetConnectivityInfoCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
@@ -1774,7 +1789,9 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1774
1789
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1775
1790
|
cfId: output.headers["x-amz-cf-id"]
|
|
1776
1791
|
}), "deserializeMetadata");
|
|
1792
|
+
var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0), "isSerializableHeaderValue");
|
|
1777
1793
|
var _hF = "historyFilter";
|
|
1794
|
+
var _iET = "iotEndpointType";
|
|
1778
1795
|
var _mR = "maxResults";
|
|
1779
1796
|
var _nT = "nextToken";
|
|
1780
1797
|
var _pTA = "parentTargetArn";
|
|
@@ -1782,11 +1799,13 @@ var _rAS = "retryAfterSeconds";
|
|
|
1782
1799
|
var _rOF = "recipeOutputFormat";
|
|
1783
1800
|
var _ra = "retry-after";
|
|
1784
1801
|
var _s = "scope";
|
|
1802
|
+
var _sET = "s3EndpointType";
|
|
1785
1803
|
var _st = "status";
|
|
1786
1804
|
var _tA = "targetArn";
|
|
1787
1805
|
var _tF = "topologyFilter";
|
|
1788
1806
|
var _tGA = "thingGroupArn";
|
|
1789
1807
|
var _tK = "tagKeys";
|
|
1808
|
+
var _xaiet = "x-amz-iot-endpoint-type";
|
|
1790
1809
|
|
|
1791
1810
|
// src/commands/AssociateServiceRoleToAccountCommand.ts
|
|
1792
1811
|
var _AssociateServiceRoleToAccountCommand = class _AssociateServiceRoleToAccountCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -2412,6 +2431,8 @@ var paginateListInstalledComponents = (0, import_core.createPaginator)(Greengras
|
|
|
2412
2431
|
DeploymentHistoryFilter,
|
|
2413
2432
|
EffectiveDeploymentExecutionStatus,
|
|
2414
2433
|
RecipeOutputFormat,
|
|
2434
|
+
IotEndpointType,
|
|
2435
|
+
S3EndpointType,
|
|
2415
2436
|
InstalledComponentTopologyFilter,
|
|
2416
2437
|
InstalledComponentLifecycleState
|
|
2417
2438
|
});
|
|
@@ -197,6 +197,14 @@ export const RecipeOutputFormat = {
|
|
|
197
197
|
JSON: "JSON",
|
|
198
198
|
YAML: "YAML",
|
|
199
199
|
};
|
|
200
|
+
export const IotEndpointType = {
|
|
201
|
+
fips: "fips",
|
|
202
|
+
standard: "standard",
|
|
203
|
+
};
|
|
204
|
+
export const S3EndpointType = {
|
|
205
|
+
GLOBAL: "GLOBAL",
|
|
206
|
+
REGIONAL: "REGIONAL",
|
|
207
|
+
};
|
|
200
208
|
export const InstalledComponentTopologyFilter = {
|
|
201
209
|
ALL: "ALL",
|
|
202
210
|
ROOT: "ROOT",
|
|
@@ -151,12 +151,17 @@ export const se_GetComponentCommand = async (input, context) => {
|
|
|
151
151
|
};
|
|
152
152
|
export const se_GetComponentVersionArtifactCommand = async (input, context) => {
|
|
153
153
|
const b = rb(input, context);
|
|
154
|
-
const headers = {}
|
|
154
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
155
|
+
[_xaiet]: input[_iET],
|
|
156
|
+
});
|
|
155
157
|
b.bp("/greengrass/v2/components/{arn}/artifacts/{artifactName+}");
|
|
156
158
|
b.p("arn", () => input.arn, "{arn}", false);
|
|
157
159
|
b.p("artifactName", () => input.artifactName, "{artifactName+}", true);
|
|
160
|
+
const query = map({
|
|
161
|
+
[_sET]: [, input[_sET]],
|
|
162
|
+
});
|
|
158
163
|
let body;
|
|
159
|
-
b.m("GET").h(headers).b(body);
|
|
164
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
160
165
|
return b.build();
|
|
161
166
|
};
|
|
162
167
|
export const se_GetConnectivityInfoCommand = async (input, context) => {
|
|
@@ -1269,6 +1274,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1269
1274
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1270
1275
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1271
1276
|
const _hF = "historyFilter";
|
|
1277
|
+
const _iET = "iotEndpointType";
|
|
1272
1278
|
const _mR = "maxResults";
|
|
1273
1279
|
const _nT = "nextToken";
|
|
1274
1280
|
const _pTA = "parentTargetArn";
|
|
@@ -1276,8 +1282,10 @@ const _rAS = "retryAfterSeconds";
|
|
|
1276
1282
|
const _rOF = "recipeOutputFormat";
|
|
1277
1283
|
const _ra = "retry-after";
|
|
1278
1284
|
const _s = "scope";
|
|
1285
|
+
const _sET = "s3EndpointType";
|
|
1279
1286
|
const _st = "status";
|
|
1280
1287
|
const _tA = "targetArn";
|
|
1281
1288
|
const _tF = "topologyFilter";
|
|
1282
1289
|
const _tGA = "thingGroupArn";
|
|
1283
1290
|
const _tK = "tagKeys";
|
|
1291
|
+
const _xaiet = "x-amz-iot-endpoint-type";
|
|
@@ -49,45 +49,9 @@ declare const CreateComponentVersionCommand_base: {
|
|
|
49
49
|
* <p>Create a component from an Lambda function that runs on IoT Greengrass. This creates a recipe
|
|
50
50
|
* and artifacts from the Lambda function's deployment package. You can use this operation to
|
|
51
51
|
* migrate Lambda functions from IoT Greengrass V1 to IoT Greengrass V2.</p>
|
|
52
|
-
* <p>This function
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* <p>Python 2.7 – <code>python2.7</code>
|
|
56
|
-
* </p>
|
|
57
|
-
* </li>
|
|
58
|
-
* <li>
|
|
59
|
-
* <p>Python 3.7 – <code>python3.7</code>
|
|
60
|
-
* </p>
|
|
61
|
-
* </li>
|
|
62
|
-
* <li>
|
|
63
|
-
* <p>Python 3.8 – <code>python3.8</code>
|
|
64
|
-
* </p>
|
|
65
|
-
* </li>
|
|
66
|
-
* <li>
|
|
67
|
-
* <p>Python 3.9 – <code>python3.9</code>
|
|
68
|
-
* </p>
|
|
69
|
-
* </li>
|
|
70
|
-
* <li>
|
|
71
|
-
* <p>Java 8 – <code>java8</code>
|
|
72
|
-
* </p>
|
|
73
|
-
* </li>
|
|
74
|
-
* <li>
|
|
75
|
-
* <p>Java 11 – <code>java11</code>
|
|
76
|
-
* </p>
|
|
77
|
-
* </li>
|
|
78
|
-
* <li>
|
|
79
|
-
* <p>Node.js 10 – <code>nodejs10.x</code>
|
|
80
|
-
* </p>
|
|
81
|
-
* </li>
|
|
82
|
-
* <li>
|
|
83
|
-
* <p>Node.js 12 – <code>nodejs12.x</code>
|
|
84
|
-
* </p>
|
|
85
|
-
* </li>
|
|
86
|
-
* <li>
|
|
87
|
-
* <p>Node.js 14 – <code>nodejs14.x</code>
|
|
88
|
-
* </p>
|
|
89
|
-
* </li>
|
|
90
|
-
* </ul>
|
|
52
|
+
* <p>This function accepts Lambda functions in all supported versions of Python, Node.js,
|
|
53
|
+
* and Java runtimes. IoT Greengrass doesn't apply any additional restrictions on deprecated Lambda
|
|
54
|
+
* runtime versions.</p>
|
|
91
55
|
* <p>To create a component from a Lambda function, specify <code>lambdaFunction</code> when
|
|
92
56
|
* you call this operation.</p>
|
|
93
57
|
* <note>
|
|
@@ -48,7 +48,7 @@ declare const CreateDeploymentCommand_base: {
|
|
|
48
48
|
* deploymentName: "STRING_VALUE",
|
|
49
49
|
* components: { // ComponentDeploymentSpecifications
|
|
50
50
|
* "<keys>": { // ComponentDeploymentSpecification
|
|
51
|
-
* componentVersion: "STRING_VALUE",
|
|
51
|
+
* componentVersion: "STRING_VALUE", // required
|
|
52
52
|
* configurationUpdate: { // ComponentConfigurationUpdate
|
|
53
53
|
* merge: "STRING_VALUE",
|
|
54
54
|
* reset: [ // ComponentConfigurationPathList
|
|
@@ -38,6 +38,8 @@ declare const GetComponentVersionArtifactCommand_base: {
|
|
|
38
38
|
* const input = { // GetComponentVersionArtifactRequest
|
|
39
39
|
* arn: "STRING_VALUE", // required
|
|
40
40
|
* artifactName: "STRING_VALUE", // required
|
|
41
|
+
* s3EndpointType: "REGIONAL" || "GLOBAL",
|
|
42
|
+
* iotEndpointType: "fips" || "standard",
|
|
41
43
|
* };
|
|
42
44
|
* const command = new GetComponentVersionArtifactCommand(input);
|
|
43
45
|
* const response = await client.send(command);
|
|
@@ -48,7 +48,7 @@ declare const GetDeploymentCommand_base: {
|
|
|
48
48
|
* // iotJobArn: "STRING_VALUE",
|
|
49
49
|
* // components: { // ComponentDeploymentSpecifications
|
|
50
50
|
* // "<keys>": { // ComponentDeploymentSpecification
|
|
51
|
-
* // componentVersion: "STRING_VALUE",
|
|
51
|
+
* // componentVersion: "STRING_VALUE", // required
|
|
52
52
|
* // configurationUpdate: { // ComponentConfigurationUpdate
|
|
53
53
|
* // merge: "STRING_VALUE",
|
|
54
54
|
* // reset: [ // ComponentConfigurationPathList
|
|
@@ -661,7 +661,7 @@ export interface ComponentDeploymentSpecification {
|
|
|
661
661
|
* <p>The version of the component.</p>
|
|
662
662
|
* @public
|
|
663
663
|
*/
|
|
664
|
-
componentVersion
|
|
664
|
+
componentVersion: string | undefined;
|
|
665
665
|
/**
|
|
666
666
|
* <p>The configuration updates to deploy for the component. You can define
|
|
667
667
|
* <i>reset</i> updates and <i>merge</i> updates. A reset updates
|
|
@@ -1963,6 +1963,30 @@ export interface GetComponentResponse {
|
|
|
1963
1963
|
*/
|
|
1964
1964
|
tags?: Record<string, string>;
|
|
1965
1965
|
}
|
|
1966
|
+
/**
|
|
1967
|
+
* @public
|
|
1968
|
+
* @enum
|
|
1969
|
+
*/
|
|
1970
|
+
export declare const IotEndpointType: {
|
|
1971
|
+
readonly fips: "fips";
|
|
1972
|
+
readonly standard: "standard";
|
|
1973
|
+
};
|
|
1974
|
+
/**
|
|
1975
|
+
* @public
|
|
1976
|
+
*/
|
|
1977
|
+
export type IotEndpointType = (typeof IotEndpointType)[keyof typeof IotEndpointType];
|
|
1978
|
+
/**
|
|
1979
|
+
* @public
|
|
1980
|
+
* @enum
|
|
1981
|
+
*/
|
|
1982
|
+
export declare const S3EndpointType: {
|
|
1983
|
+
readonly GLOBAL: "GLOBAL";
|
|
1984
|
+
readonly REGIONAL: "REGIONAL";
|
|
1985
|
+
};
|
|
1986
|
+
/**
|
|
1987
|
+
* @public
|
|
1988
|
+
*/
|
|
1989
|
+
export type S3EndpointType = (typeof S3EndpointType)[keyof typeof S3EndpointType];
|
|
1966
1990
|
/**
|
|
1967
1991
|
* @public
|
|
1968
1992
|
*/
|
|
@@ -1982,6 +2006,21 @@ export interface GetComponentVersionArtifactRequest {
|
|
|
1982
2006
|
* @public
|
|
1983
2007
|
*/
|
|
1984
2008
|
artifactName: string | undefined;
|
|
2009
|
+
/**
|
|
2010
|
+
* <p>Specifies the endpoint to use when getting Amazon S3 pre-signed URLs.</p>
|
|
2011
|
+
* <p>All Amazon Web Services Regions except US East (N. Virginia) use <code>REGIONAL</code> in all cases.
|
|
2012
|
+
* In the US East (N. Virginia) Region the default is <code>GLOBAL</code>, but you can change it
|
|
2013
|
+
* to <code>REGIONAL</code> with this parameter.</p>
|
|
2014
|
+
* @public
|
|
2015
|
+
*/
|
|
2016
|
+
s3EndpointType?: S3EndpointType;
|
|
2017
|
+
/**
|
|
2018
|
+
* <p>Determines if the Amazon S3 URL returned is a FIPS pre-signed URL endpoint.
|
|
2019
|
+
* Specify <code>fips</code> if you want the returned Amazon S3 pre-signed URL to point to
|
|
2020
|
+
* an Amazon S3 FIPS endpoint. If you don't specify a value, the default is <code>standard</code>.</p>
|
|
2021
|
+
* @public
|
|
2022
|
+
*/
|
|
2023
|
+
iotEndpointType?: IotEndpointType;
|
|
1985
2024
|
}
|
|
1986
2025
|
/**
|
|
1987
2026
|
* @public
|
|
@@ -2393,6 +2432,8 @@ export interface ListDeploymentsRequest {
|
|
|
2393
2432
|
parentTargetArn?: string;
|
|
2394
2433
|
/**
|
|
2395
2434
|
* <p>The maximum number of results to be returned per paginated request.</p>
|
|
2435
|
+
* <p>Default: <code>50</code>
|
|
2436
|
+
* </p>
|
|
2396
2437
|
* @public
|
|
2397
2438
|
*/
|
|
2398
2439
|
maxResults?: number;
|
|
@@ -2571,8 +2612,8 @@ export interface InstalledComponent {
|
|
|
2571
2612
|
lastReportedTimestamp?: Date;
|
|
2572
2613
|
/**
|
|
2573
2614
|
* <p>The most recent deployment source that brought the component to the Greengrass core device. For
|
|
2574
|
-
* a thing group deployment or thing deployment, the source will be the
|
|
2575
|
-
* local deployments it will be <code>LOCAL</code>.</p>
|
|
2615
|
+
* a thing group deployment or thing deployment, the source will be the ID of the last deployment
|
|
2616
|
+
* that contained the component. For local deployments it will be <code>LOCAL</code>.</p>
|
|
2576
2617
|
* <note>
|
|
2577
2618
|
* <p>Any deployment will attempt to reinstall currently broken components on the device,
|
|
2578
2619
|
* which will update the last installation source.</p>
|
|
@@ -177,7 +177,7 @@ export interface ComponentRunWith {
|
|
|
177
177
|
windowsUser?: string;
|
|
178
178
|
}
|
|
179
179
|
export interface ComponentDeploymentSpecification {
|
|
180
|
-
componentVersion
|
|
180
|
+
componentVersion: string | undefined;
|
|
181
181
|
configurationUpdate?: ComponentConfigurationUpdate;
|
|
182
182
|
runWith?: ComponentRunWith;
|
|
183
183
|
}
|
|
@@ -491,9 +491,23 @@ export interface GetComponentResponse {
|
|
|
491
491
|
recipe: Uint8Array | undefined;
|
|
492
492
|
tags?: Record<string, string>;
|
|
493
493
|
}
|
|
494
|
+
export declare const IotEndpointType: {
|
|
495
|
+
readonly fips: "fips";
|
|
496
|
+
readonly standard: "standard";
|
|
497
|
+
};
|
|
498
|
+
export type IotEndpointType =
|
|
499
|
+
(typeof IotEndpointType)[keyof typeof IotEndpointType];
|
|
500
|
+
export declare const S3EndpointType: {
|
|
501
|
+
readonly GLOBAL: "GLOBAL";
|
|
502
|
+
readonly REGIONAL: "REGIONAL";
|
|
503
|
+
};
|
|
504
|
+
export type S3EndpointType =
|
|
505
|
+
(typeof S3EndpointType)[keyof typeof S3EndpointType];
|
|
494
506
|
export interface GetComponentVersionArtifactRequest {
|
|
495
507
|
arn: string | undefined;
|
|
496
508
|
artifactName: string | undefined;
|
|
509
|
+
s3EndpointType?: S3EndpointType;
|
|
510
|
+
iotEndpointType?: IotEndpointType;
|
|
497
511
|
}
|
|
498
512
|
export interface GetComponentVersionArtifactResponse {
|
|
499
513
|
preSignedUrl: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-greengrassv2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Greengrassv2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.574.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-greengrassv2",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.574.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.574.0",
|
|
25
|
+
"@aws-sdk/core": "3.572.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.572.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.567.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.568.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.567.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.572.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.572.0",
|
|
32
32
|
"@aws-sdk/types": "3.567.0",
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.572.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.567.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.568.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.2.0",
|