@aws-sdk/client-greengrassv2 3.209.0 → 3.211.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.
@@ -315,12 +315,12 @@ exports.ruleSet = {
315
315
  {
316
316
  ref: "Region",
317
317
  },
318
- "dataplane-us-gov-west-1",
318
+ "dataplane-us-gov-east-1",
319
319
  ],
320
320
  },
321
321
  ],
322
322
  endpoint: {
323
- url: "https://greengrass-ats.iot.us-gov-west-1.amazonaws.com",
323
+ url: "https://greengrass-ats.iot.us-gov-east-1.amazonaws.com",
324
324
  properties: {},
325
325
  headers: {},
326
326
  },
@@ -334,12 +334,12 @@ exports.ruleSet = {
334
334
  {
335
335
  ref: "Region",
336
336
  },
337
- "dataplane-us-gov-east-1",
337
+ "dataplane-us-gov-west-1",
338
338
  ],
339
339
  },
340
340
  ],
341
341
  endpoint: {
342
- url: "https://greengrass-ats.iot.us-gov-east-1.amazonaws.com",
342
+ url: "https://greengrass-ats.iot.us-gov-west-1.amazonaws.com",
343
343
  properties: {},
344
344
  headers: {},
345
345
  },
@@ -141,6 +141,7 @@ const serializeAws_restJson1CreateDeploymentCommand = async (input, context) =>
141
141
  ...(input.iotJobConfiguration != null && {
142
142
  iotJobConfiguration: serializeAws_restJson1DeploymentIoTJobConfiguration(input.iotJobConfiguration, context),
143
143
  }),
144
+ ...(input.parentTargetArn != null && { parentTargetArn: input.parentTargetArn }),
144
145
  ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
145
146
  ...(input.targetArn != null && { targetArn: input.targetArn }),
146
147
  });
@@ -452,6 +453,7 @@ const serializeAws_restJson1ListDeploymentsCommand = async (input, context) => {
452
453
  const query = map({
453
454
  targetArn: [, input.targetArn],
454
455
  historyFilter: [, input.historyFilter],
456
+ parentTargetArn: [, input.parentTargetArn],
455
457
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
456
458
  nextToken: [, input.nextToken],
457
459
  });
@@ -1406,6 +1408,9 @@ const deserializeAws_restJson1GetDeploymentCommand = async (output, context) =>
1406
1408
  if (data.isLatestForTarget != null) {
1407
1409
  contents.isLatestForTarget = (0, smithy_client_1.expectBoolean)(data.isLatestForTarget);
1408
1410
  }
1411
+ if (data.parentTargetArn != null) {
1412
+ contents.parentTargetArn = (0, smithy_client_1.expectString)(data.parentTargetArn);
1413
+ }
1409
1414
  if (data.revisionId != null) {
1410
1415
  contents.revisionId = (0, smithy_client_1.expectString)(data.revisionId);
1411
1416
  }
@@ -2743,6 +2748,7 @@ const deserializeAws_restJson1Deployment = (output, context) => {
2743
2748
  deploymentName: (0, smithy_client_1.expectString)(output.deploymentName),
2744
2749
  deploymentStatus: (0, smithy_client_1.expectString)(output.deploymentStatus),
2745
2750
  isLatestForTarget: (0, smithy_client_1.expectBoolean)(output.isLatestForTarget),
2751
+ parentTargetArn: (0, smithy_client_1.expectString)(output.parentTargetArn),
2746
2752
  revisionId: (0, smithy_client_1.expectString)(output.revisionId),
2747
2753
  targetArn: (0, smithy_client_1.expectString)(output.targetArn),
2748
2754
  };
@@ -312,12 +312,12 @@ export const ruleSet = {
312
312
  {
313
313
  ref: "Region",
314
314
  },
315
- "dataplane-us-gov-west-1",
315
+ "dataplane-us-gov-east-1",
316
316
  ],
317
317
  },
318
318
  ],
319
319
  endpoint: {
320
- url: "https://greengrass-ats.iot.us-gov-west-1.amazonaws.com",
320
+ url: "https://greengrass-ats.iot.us-gov-east-1.amazonaws.com",
321
321
  properties: {},
322
322
  headers: {},
323
323
  },
@@ -331,12 +331,12 @@ export const ruleSet = {
331
331
  {
332
332
  ref: "Region",
333
333
  },
334
- "dataplane-us-gov-east-1",
334
+ "dataplane-us-gov-west-1",
335
335
  ],
336
336
  },
337
337
  ],
338
338
  endpoint: {
339
- url: "https://greengrass-ats.iot.us-gov-east-1.amazonaws.com",
339
+ url: "https://greengrass-ats.iot.us-gov-west-1.amazonaws.com",
340
340
  properties: {},
341
341
  headers: {},
342
342
  },
@@ -132,6 +132,7 @@ export const serializeAws_restJson1CreateDeploymentCommand = async (input, conte
132
132
  ...(input.iotJobConfiguration != null && {
133
133
  iotJobConfiguration: serializeAws_restJson1DeploymentIoTJobConfiguration(input.iotJobConfiguration, context),
134
134
  }),
135
+ ...(input.parentTargetArn != null && { parentTargetArn: input.parentTargetArn }),
135
136
  ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
136
137
  ...(input.targetArn != null && { targetArn: input.targetArn }),
137
138
  });
@@ -427,6 +428,7 @@ export const serializeAws_restJson1ListDeploymentsCommand = async (input, contex
427
428
  const query = map({
428
429
  targetArn: [, input.targetArn],
429
430
  historyFilter: [, input.historyFilter],
431
+ parentTargetArn: [, input.parentTargetArn],
430
432
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
431
433
  nextToken: [, input.nextToken],
432
434
  });
@@ -1358,6 +1360,9 @@ export const deserializeAws_restJson1GetDeploymentCommand = async (output, conte
1358
1360
  if (data.isLatestForTarget != null) {
1359
1361
  contents.isLatestForTarget = __expectBoolean(data.isLatestForTarget);
1360
1362
  }
1363
+ if (data.parentTargetArn != null) {
1364
+ contents.parentTargetArn = __expectString(data.parentTargetArn);
1365
+ }
1361
1366
  if (data.revisionId != null) {
1362
1367
  contents.revisionId = __expectString(data.revisionId);
1363
1368
  }
@@ -2681,6 +2686,7 @@ const deserializeAws_restJson1Deployment = (output, context) => {
2681
2686
  deploymentName: __expectString(output.deploymentName),
2682
2687
  deploymentStatus: __expectString(output.deploymentStatus),
2683
2688
  isLatestForTarget: __expectBoolean(output.isLatestForTarget),
2689
+ parentTargetArn: __expectString(output.parentTargetArn),
2684
2690
  revisionId: __expectString(output.revisionId),
2685
2691
  targetArn: __expectString(output.targetArn),
2686
2692
  };
@@ -1182,7 +1182,7 @@ export interface DeploymentIoTJobConfiguration {
1182
1182
  }
1183
1183
  export interface CreateDeploymentRequest {
1184
1184
  /**
1185
- * <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> of the target IoT thing or thing group.</p>
1185
+ * <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> of the target IoT thing or thing group. When creating a subdeployment, the targetARN can only be a thing group.</p>
1186
1186
  */
1187
1187
  targetArn: string | undefined;
1188
1188
  /**
@@ -1204,6 +1204,10 @@ export interface CreateDeploymentRequest {
1204
1204
  * updates components and handles failure.</p>
1205
1205
  */
1206
1206
  deploymentPolicies?: DeploymentPolicies;
1207
+ /**
1208
+ * <p>The parent deployment's target <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> within a subdeployment.</p>
1209
+ */
1210
+ parentTargetArn?: string;
1207
1211
  /**
1208
1212
  * <p>A list of key-value pairs that contain metadata for the resource. For more
1209
1213
  * information, see <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/tag-resources.html">Tag your
@@ -1263,7 +1267,7 @@ export declare enum DeploymentStatus {
1263
1267
  */
1264
1268
  export interface Deployment {
1265
1269
  /**
1266
- * <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> of the target IoT thing or thing group.</p>
1270
+ * <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> of the target IoT thing or thing group. When creating a subdeployment, the targetARN can only be a thing group.</p>
1267
1271
  */
1268
1272
  targetArn?: string;
1269
1273
  /**
@@ -1290,6 +1294,10 @@ export interface Deployment {
1290
1294
  * <p>Whether or not the deployment is the latest revision for its target.</p>
1291
1295
  */
1292
1296
  isLatestForTarget?: boolean;
1297
+ /**
1298
+ * <p>The parent deployment's target <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> within a subdeployment.</p>
1299
+ */
1300
+ parentTargetArn?: string;
1293
1301
  }
1294
1302
  export declare enum DeploymentHistoryFilter {
1295
1303
  ALL = "ALL",
@@ -1613,6 +1621,10 @@ export interface GetDeploymentResponse {
1613
1621
  * <p>Whether or not the deployment is the latest revision for its target.</p>
1614
1622
  */
1615
1623
  isLatestForTarget?: boolean;
1624
+ /**
1625
+ * <p>The parent deployment's target <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> within a subdeployment.</p>
1626
+ */
1627
+ parentTargetArn?: string;
1616
1628
  /**
1617
1629
  * <p>A list of key-value pairs that contain metadata for the resource. For more
1618
1630
  * information, see <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/tag-resources.html">Tag your
@@ -1773,6 +1785,10 @@ export interface ListDeploymentsRequest {
1773
1785
  * </p>
1774
1786
  */
1775
1787
  historyFilter?: DeploymentHistoryFilter | string;
1788
+ /**
1789
+ * <p>The parent deployment's target <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> within a subdeployment.</p>
1790
+ */
1791
+ parentTargetArn?: string;
1776
1792
  /**
1777
1793
  * <p>The maximum number of results to be returned per paginated request.</p>
1778
1794
  */
@@ -358,6 +358,7 @@ export interface CreateDeploymentRequest {
358
358
  components?: Record<string, ComponentDeploymentSpecification>;
359
359
  iotJobConfiguration?: DeploymentIoTJobConfiguration;
360
360
  deploymentPolicies?: DeploymentPolicies;
361
+ parentTargetArn?: string;
361
362
  tags?: Record<string, string>;
362
363
  clientToken?: string;
363
364
  }
@@ -390,6 +391,7 @@ export interface Deployment {
390
391
  creationTimestamp?: Date;
391
392
  deploymentStatus?: DeploymentStatus | string;
392
393
  isLatestForTarget?: boolean;
394
+ parentTargetArn?: string;
393
395
  }
394
396
  export declare enum DeploymentHistoryFilter {
395
397
  ALL = "ALL",
@@ -497,6 +499,7 @@ export interface GetDeploymentResponse {
497
499
  iotJobConfiguration?: DeploymentIoTJobConfiguration;
498
500
  creationTimestamp?: Date;
499
501
  isLatestForTarget?: boolean;
502
+ parentTargetArn?: string;
500
503
  tags?: Record<string, string>;
501
504
  }
502
505
  export interface GetServiceRoleForAccountRequest {}
@@ -544,6 +547,7 @@ export interface ListCoreDevicesResponse {
544
547
  export interface ListDeploymentsRequest {
545
548
  targetArn?: string;
546
549
  historyFilter?: DeploymentHistoryFilter | string;
550
+ parentTargetArn?: string;
547
551
  maxResults?: number;
548
552
  nextToken?: string;
549
553
  }
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.209.0",
4
+ "version": "3.211.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,9 +19,9 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.209.0",
22
+ "@aws-sdk/client-sts": "3.211.0",
23
23
  "@aws-sdk/config-resolver": "3.209.0",
24
- "@aws-sdk/credential-provider-node": "3.209.0",
24
+ "@aws-sdk/credential-provider-node": "3.211.0",
25
25
  "@aws-sdk/fetch-http-handler": "3.208.0",
26
26
  "@aws-sdk/hash-node": "3.208.0",
27
27
  "@aws-sdk/invalid-dependency": "3.208.0",
@@ -46,7 +46,7 @@
46
46
  "@aws-sdk/util-body-length-node": "3.208.0",
47
47
  "@aws-sdk/util-defaults-mode-browser": "3.209.0",
48
48
  "@aws-sdk/util-defaults-mode-node": "3.209.0",
49
- "@aws-sdk/util-endpoints": "3.209.0",
49
+ "@aws-sdk/util-endpoints": "3.211.0",
50
50
  "@aws-sdk/util-user-agent-browser": "3.208.0",
51
51
  "@aws-sdk/util-user-agent-node": "3.209.0",
52
52
  "@aws-sdk/util-utf8-browser": "3.188.0",