@aws-sdk/client-mgn 3.28.0 → 3.32.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-mgn",
3
3
  "description": "AWS SDK for JavaScript Mgn Client for Node.js, Browser and React Native",
4
- "version": "3.28.0",
4
+ "version": "3.32.0",
5
5
  "scripts": {
6
6
  "clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
7
7
  "build-documentation": "yarn remove-documentation && typedoc ./",
@@ -27,45 +27,45 @@
27
27
  "dependencies": {
28
28
  "@aws-crypto/sha256-browser": "^1.1.0",
29
29
  "@aws-crypto/sha256-js": "^1.1.0",
30
- "@aws-sdk/client-sts": "3.28.0",
31
- "@aws-sdk/config-resolver": "3.28.0",
32
- "@aws-sdk/credential-provider-node": "3.28.0",
33
- "@aws-sdk/fetch-http-handler": "3.25.0",
34
- "@aws-sdk/hash-node": "3.25.0",
35
- "@aws-sdk/invalid-dependency": "3.25.0",
36
- "@aws-sdk/middleware-content-length": "3.25.0",
37
- "@aws-sdk/middleware-host-header": "3.25.0",
38
- "@aws-sdk/middleware-logger": "3.25.0",
39
- "@aws-sdk/middleware-retry": "3.28.0",
40
- "@aws-sdk/middleware-serde": "3.25.0",
41
- "@aws-sdk/middleware-signing": "3.28.0",
42
- "@aws-sdk/middleware-stack": "3.25.0",
43
- "@aws-sdk/middleware-user-agent": "3.25.0",
44
- "@aws-sdk/node-config-provider": "3.28.0",
45
- "@aws-sdk/node-http-handler": "3.25.0",
46
- "@aws-sdk/protocol-http": "3.25.0",
47
- "@aws-sdk/smithy-client": "3.28.0",
48
- "@aws-sdk/types": "3.25.0",
49
- "@aws-sdk/url-parser": "3.25.0",
50
- "@aws-sdk/util-base64-browser": "3.23.0",
51
- "@aws-sdk/util-base64-node": "3.23.0",
52
- "@aws-sdk/util-body-length-browser": "3.23.0",
53
- "@aws-sdk/util-body-length-node": "3.23.0",
54
- "@aws-sdk/util-user-agent-browser": "3.25.0",
55
- "@aws-sdk/util-user-agent-node": "3.28.0",
56
- "@aws-sdk/util-utf8-browser": "3.23.0",
57
- "@aws-sdk/util-utf8-node": "3.23.0",
30
+ "@aws-sdk/client-sts": "3.32.0",
31
+ "@aws-sdk/config-resolver": "3.32.0",
32
+ "@aws-sdk/credential-provider-node": "3.32.0",
33
+ "@aws-sdk/fetch-http-handler": "3.32.0",
34
+ "@aws-sdk/hash-node": "3.32.0",
35
+ "@aws-sdk/invalid-dependency": "3.32.0",
36
+ "@aws-sdk/middleware-content-length": "3.32.0",
37
+ "@aws-sdk/middleware-host-header": "3.32.0",
38
+ "@aws-sdk/middleware-logger": "3.32.0",
39
+ "@aws-sdk/middleware-retry": "3.32.0",
40
+ "@aws-sdk/middleware-serde": "3.32.0",
41
+ "@aws-sdk/middleware-signing": "3.32.0",
42
+ "@aws-sdk/middleware-stack": "3.32.0",
43
+ "@aws-sdk/middleware-user-agent": "3.32.0",
44
+ "@aws-sdk/node-config-provider": "3.32.0",
45
+ "@aws-sdk/node-http-handler": "3.32.0",
46
+ "@aws-sdk/protocol-http": "3.32.0",
47
+ "@aws-sdk/smithy-client": "3.32.0",
48
+ "@aws-sdk/types": "3.32.0",
49
+ "@aws-sdk/url-parser": "3.32.0",
50
+ "@aws-sdk/util-base64-browser": "3.32.0",
51
+ "@aws-sdk/util-base64-node": "3.32.0",
52
+ "@aws-sdk/util-body-length-browser": "3.32.0",
53
+ "@aws-sdk/util-body-length-node": "3.32.0",
54
+ "@aws-sdk/util-user-agent-browser": "3.32.0",
55
+ "@aws-sdk/util-user-agent-node": "3.32.0",
56
+ "@aws-sdk/util-utf8-browser": "3.32.0",
57
+ "@aws-sdk/util-utf8-node": "3.32.0",
58
58
  "tslib": "^2.3.0"
59
59
  },
60
60
  "devDependencies": {
61
- "@aws-sdk/client-documentation-generator": "3.23.0",
61
+ "@aws-sdk/client-documentation-generator": "3.32.0",
62
62
  "@types/node": "^12.7.5",
63
63
  "downlevel-dts": "0.7.0",
64
64
  "jest": "^26.1.0",
65
65
  "rimraf": "^3.0.0",
66
66
  "ts-jest": "^26.4.1",
67
67
  "typedoc": "^0.19.2",
68
- "typescript": "~4.3.2"
68
+ "typescript": "~4.3.5"
69
69
  },
70
70
  "engines": {
71
71
  "node": ">=10.0.0"
@@ -113,10 +113,12 @@ import {
113
113
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
114
114
  import {
115
115
  expectBoolean as __expectBoolean,
116
- expectInt as __expectInt,
116
+ expectLong as __expectLong,
117
+ expectNonNull as __expectNonNull,
118
+ expectObject as __expectObject,
117
119
  expectString as __expectString,
118
120
  extendedEncodeURIComponent as __extendedEncodeURIComponent,
119
- strictParseInt as __strictParseInt,
121
+ strictParseLong as __strictParseLong,
120
122
  } from "@aws-sdk/smithy-client";
121
123
  import {
122
124
  Endpoint as __Endpoint,
@@ -956,7 +958,7 @@ export const deserializeAws_restJson1ChangeServerLifeCycleStateCommand = async (
956
958
  sourceServerID: undefined,
957
959
  tags: undefined,
958
960
  };
959
- const data: any = await parseBody(output.body, context);
961
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
960
962
  if (data.arn !== undefined && data.arn !== null) {
961
963
  contents.arn = __expectString(data.arn);
962
964
  }
@@ -1070,7 +1072,7 @@ export const deserializeAws_restJson1CreateReplicationConfigurationTemplateComma
1070
1072
  tags: undefined,
1071
1073
  useDedicatedReplicationServer: undefined,
1072
1074
  };
1073
- const data: any = await parseBody(output.body, context);
1075
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1074
1076
  if (data.arn !== undefined && data.arn !== null) {
1075
1077
  contents.arn = __expectString(data.arn);
1076
1078
  }
@@ -1078,7 +1080,7 @@ export const deserializeAws_restJson1CreateReplicationConfigurationTemplateComma
1078
1080
  contents.associateDefaultSecurityGroup = __expectBoolean(data.associateDefaultSecurityGroup);
1079
1081
  }
1080
1082
  if (data.bandwidthThrottling !== undefined && data.bandwidthThrottling !== null) {
1081
- contents.bandwidthThrottling = __expectInt(data.bandwidthThrottling);
1083
+ contents.bandwidthThrottling = __expectLong(data.bandwidthThrottling);
1082
1084
  }
1083
1085
  if (data.createPublicIP !== undefined && data.createPublicIP !== null) {
1084
1086
  contents.createPublicIP = __expectBoolean(data.createPublicIP);
@@ -1388,7 +1390,7 @@ export const deserializeAws_restJson1DescribeJobLogItemsCommand = async (
1388
1390
  items: undefined,
1389
1391
  nextToken: undefined,
1390
1392
  };
1391
- const data: any = await parseBody(output.body, context);
1393
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1392
1394
  if (data.items !== undefined && data.items !== null) {
1393
1395
  contents.items = deserializeAws_restJson1JobLogs(data.items, context);
1394
1396
  }
@@ -1455,7 +1457,7 @@ export const deserializeAws_restJson1DescribeJobsCommand = async (
1455
1457
  items: undefined,
1456
1458
  nextToken: undefined,
1457
1459
  };
1458
- const data: any = await parseBody(output.body, context);
1460
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1459
1461
  if (data.items !== undefined && data.items !== null) {
1460
1462
  contents.items = deserializeAws_restJson1JobsList(data.items, context);
1461
1463
  }
@@ -1522,7 +1524,7 @@ export const deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCo
1522
1524
  items: undefined,
1523
1525
  nextToken: undefined,
1524
1526
  };
1525
- const data: any = await parseBody(output.body, context);
1527
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1526
1528
  if (data.items !== undefined && data.items !== null) {
1527
1529
  contents.items = deserializeAws_restJson1ReplicationConfigurationTemplates(data.items, context);
1528
1530
  }
@@ -1597,7 +1599,7 @@ export const deserializeAws_restJson1DescribeSourceServersCommand = async (
1597
1599
  items: undefined,
1598
1600
  nextToken: undefined,
1599
1601
  };
1600
- const data: any = await parseBody(output.body, context);
1602
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1601
1603
  if (data.items !== undefined && data.items !== null) {
1602
1604
  contents.items = deserializeAws_restJson1SourceServersList(data.items, context);
1603
1605
  }
@@ -1670,7 +1672,7 @@ export const deserializeAws_restJson1DisconnectFromServiceCommand = async (
1670
1672
  sourceServerID: undefined,
1671
1673
  tags: undefined,
1672
1674
  };
1673
- const data: any = await parseBody(output.body, context);
1675
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1674
1676
  if (data.arn !== undefined && data.arn !== null) {
1675
1677
  contents.arn = __expectString(data.arn);
1676
1678
  }
@@ -1769,7 +1771,7 @@ export const deserializeAws_restJson1FinalizeCutoverCommand = async (
1769
1771
  sourceServerID: undefined,
1770
1772
  tags: undefined,
1771
1773
  };
1772
- const data: any = await parseBody(output.body, context);
1774
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1773
1775
  if (data.arn !== undefined && data.arn !== null) {
1774
1776
  contents.arn = __expectString(data.arn);
1775
1777
  }
@@ -1876,7 +1878,7 @@ export const deserializeAws_restJson1GetLaunchConfigurationCommand = async (
1876
1878
  sourceServerID: undefined,
1877
1879
  targetInstanceTypeRightSizingMethod: undefined,
1878
1880
  };
1879
- const data: any = await parseBody(output.body, context);
1881
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1880
1882
  if (data.copyPrivateIp !== undefined && data.copyPrivateIp !== null) {
1881
1883
  contents.copyPrivateIp = __expectBoolean(data.copyPrivateIp);
1882
1884
  }
@@ -1974,12 +1976,12 @@ export const deserializeAws_restJson1GetReplicationConfigurationCommand = async
1974
1976
  stagingAreaTags: undefined,
1975
1977
  useDedicatedReplicationServer: undefined,
1976
1978
  };
1977
- const data: any = await parseBody(output.body, context);
1979
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1978
1980
  if (data.associateDefaultSecurityGroup !== undefined && data.associateDefaultSecurityGroup !== null) {
1979
1981
  contents.associateDefaultSecurityGroup = __expectBoolean(data.associateDefaultSecurityGroup);
1980
1982
  }
1981
1983
  if (data.bandwidthThrottling !== undefined && data.bandwidthThrottling !== null) {
1982
- contents.bandwidthThrottling = __expectInt(data.bandwidthThrottling);
1984
+ contents.bandwidthThrottling = __expectLong(data.bandwidthThrottling);
1983
1985
  }
1984
1986
  if (data.createPublicIP !== undefined && data.createPublicIP !== null) {
1985
1987
  contents.createPublicIP = __expectBoolean(data.createPublicIP);
@@ -2144,7 +2146,7 @@ export const deserializeAws_restJson1ListTagsForResourceCommand = async (
2144
2146
  $metadata: deserializeMetadata(output),
2145
2147
  tags: undefined,
2146
2148
  };
2147
- const data: any = await parseBody(output.body, context);
2149
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2148
2150
  if (data.tags !== undefined && data.tags !== null) {
2149
2151
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
2150
2152
  }
@@ -2238,7 +2240,7 @@ export const deserializeAws_restJson1MarkAsArchivedCommand = async (
2238
2240
  sourceServerID: undefined,
2239
2241
  tags: undefined,
2240
2242
  };
2241
- const data: any = await parseBody(output.body, context);
2243
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2242
2244
  if (data.arn !== undefined && data.arn !== null) {
2243
2245
  contents.arn = __expectString(data.arn);
2244
2246
  }
@@ -2337,7 +2339,7 @@ export const deserializeAws_restJson1RetryDataReplicationCommand = async (
2337
2339
  sourceServerID: undefined,
2338
2340
  tags: undefined,
2339
2341
  };
2340
- const data: any = await parseBody(output.body, context);
2342
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2341
2343
  if (data.arn !== undefined && data.arn !== null) {
2342
2344
  contents.arn = __expectString(data.arn);
2343
2345
  }
@@ -2429,7 +2431,7 @@ export const deserializeAws_restJson1StartCutoverCommand = async (
2429
2431
  $metadata: deserializeMetadata(output),
2430
2432
  job: undefined,
2431
2433
  };
2432
- const data: any = await parseBody(output.body, context);
2434
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2433
2435
  if (data.job !== undefined && data.job !== null) {
2434
2436
  contents.job = deserializeAws_restJson1Job(data.job, context);
2435
2437
  }
@@ -2500,7 +2502,7 @@ export const deserializeAws_restJson1StartTestCommand = async (
2500
2502
  $metadata: deserializeMetadata(output),
2501
2503
  job: undefined,
2502
2504
  };
2503
- const data: any = await parseBody(output.body, context);
2505
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2504
2506
  if (data.job !== undefined && data.job !== null) {
2505
2507
  contents.job = deserializeAws_restJson1Job(data.job, context);
2506
2508
  }
@@ -2654,7 +2656,7 @@ export const deserializeAws_restJson1TerminateTargetInstancesCommand = async (
2654
2656
  $metadata: deserializeMetadata(output),
2655
2657
  job: undefined,
2656
2658
  };
2657
- const data: any = await parseBody(output.body, context);
2659
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2658
2660
  if (data.job !== undefined && data.job !== null) {
2659
2661
  contents.job = deserializeAws_restJson1Job(data.job, context);
2660
2662
  }
@@ -2815,7 +2817,7 @@ export const deserializeAws_restJson1UpdateLaunchConfigurationCommand = async (
2815
2817
  sourceServerID: undefined,
2816
2818
  targetInstanceTypeRightSizingMethod: undefined,
2817
2819
  };
2818
- const data: any = await parseBody(output.body, context);
2820
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2819
2821
  if (data.copyPrivateIp !== undefined && data.copyPrivateIp !== null) {
2820
2822
  contents.copyPrivateIp = __expectBoolean(data.copyPrivateIp);
2821
2823
  }
@@ -2929,12 +2931,12 @@ export const deserializeAws_restJson1UpdateReplicationConfigurationCommand = asy
2929
2931
  stagingAreaTags: undefined,
2930
2932
  useDedicatedReplicationServer: undefined,
2931
2933
  };
2932
- const data: any = await parseBody(output.body, context);
2934
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2933
2935
  if (data.associateDefaultSecurityGroup !== undefined && data.associateDefaultSecurityGroup !== null) {
2934
2936
  contents.associateDefaultSecurityGroup = __expectBoolean(data.associateDefaultSecurityGroup);
2935
2937
  }
2936
2938
  if (data.bandwidthThrottling !== undefined && data.bandwidthThrottling !== null) {
2937
- contents.bandwidthThrottling = __expectInt(data.bandwidthThrottling);
2939
+ contents.bandwidthThrottling = __expectLong(data.bandwidthThrottling);
2938
2940
  }
2939
2941
  if (data.createPublicIP !== undefined && data.createPublicIP !== null) {
2940
2942
  contents.createPublicIP = __expectBoolean(data.createPublicIP);
@@ -3078,7 +3080,7 @@ export const deserializeAws_restJson1UpdateReplicationConfigurationTemplateComma
3078
3080
  tags: undefined,
3079
3081
  useDedicatedReplicationServer: undefined,
3080
3082
  };
3081
- const data: any = await parseBody(output.body, context);
3083
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3082
3084
  if (data.arn !== undefined && data.arn !== null) {
3083
3085
  contents.arn = __expectString(data.arn);
3084
3086
  }
@@ -3086,7 +3088,7 @@ export const deserializeAws_restJson1UpdateReplicationConfigurationTemplateComma
3086
3088
  contents.associateDefaultSecurityGroup = __expectBoolean(data.associateDefaultSecurityGroup);
3087
3089
  }
3088
3090
  if (data.bandwidthThrottling !== undefined && data.bandwidthThrottling !== null) {
3089
- contents.bandwidthThrottling = __expectInt(data.bandwidthThrottling);
3091
+ contents.bandwidthThrottling = __expectLong(data.bandwidthThrottling);
3090
3092
  }
3091
3093
  if (data.createPublicIP !== undefined && data.createPublicIP !== null) {
3092
3094
  contents.createPublicIP = __expectBoolean(data.createPublicIP);
@@ -3253,7 +3255,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (
3253
3255
  retryAfterSeconds: undefined,
3254
3256
  };
3255
3257
  if (parsedOutput.headers["retry-after"] !== undefined) {
3256
- contents.retryAfterSeconds = __strictParseInt(parsedOutput.headers["retry-after"]);
3258
+ contents.retryAfterSeconds = __strictParseLong(parsedOutput.headers["retry-after"]);
3257
3259
  }
3258
3260
  const data: any = parsedOutput.body;
3259
3261
  if (data.message !== undefined && data.message !== null) {
@@ -3536,7 +3538,7 @@ const serializeAws_restJson1TerminateTargetInstancesRequestSourceServerIDs = (
3536
3538
 
3537
3539
  const deserializeAws_restJson1CPU = (output: any, context: __SerdeContext): CPU => {
3538
3540
  return {
3539
- cores: __expectInt(output.cores),
3541
+ cores: __expectLong(output.cores),
3540
3542
  modelName: __expectString(output.modelName),
3541
3543
  } as any;
3542
3544
  };
@@ -3584,11 +3586,11 @@ const deserializeAws_restJson1DataReplicationInfoReplicatedDisk = (
3584
3586
  context: __SerdeContext
3585
3587
  ): DataReplicationInfoReplicatedDisk => {
3586
3588
  return {
3587
- backloggedStorageBytes: __expectInt(output.backloggedStorageBytes),
3589
+ backloggedStorageBytes: __expectLong(output.backloggedStorageBytes),
3588
3590
  deviceName: __expectString(output.deviceName),
3589
- replicatedStorageBytes: __expectInt(output.replicatedStorageBytes),
3590
- rescannedStorageBytes: __expectInt(output.rescannedStorageBytes),
3591
- totalStorageBytes: __expectInt(output.totalStorageBytes),
3591
+ replicatedStorageBytes: __expectLong(output.replicatedStorageBytes),
3592
+ rescannedStorageBytes: __expectLong(output.rescannedStorageBytes),
3593
+ totalStorageBytes: __expectLong(output.totalStorageBytes),
3592
3594
  } as any;
3593
3595
  };
3594
3596
 
@@ -3646,7 +3648,7 @@ const deserializeAws_restJson1DataReplicationInitiationSteps = (
3646
3648
 
3647
3649
  const deserializeAws_restJson1Disk = (output: any, context: __SerdeContext): Disk => {
3648
3650
  return {
3649
- bytes: __expectInt(output.bytes),
3651
+ bytes: __expectLong(output.bytes),
3650
3652
  deviceName: __expectString(output.deviceName),
3651
3653
  } as any;
3652
3654
  };
@@ -3918,7 +3920,7 @@ const deserializeAws_restJson1ReplicationConfigurationReplicatedDisk = (
3918
3920
  ): ReplicationConfigurationReplicatedDisk => {
3919
3921
  return {
3920
3922
  deviceName: __expectString(output.deviceName),
3921
- iops: __expectInt(output.iops),
3923
+ iops: __expectLong(output.iops),
3922
3924
  isBootDisk: __expectBoolean(output.isBootDisk),
3923
3925
  stagingDiskType: __expectString(output.stagingDiskType),
3924
3926
  } as any;
@@ -3945,7 +3947,7 @@ const deserializeAws_restJson1ReplicationConfigurationTemplate = (
3945
3947
  return {
3946
3948
  arn: __expectString(output.arn),
3947
3949
  associateDefaultSecurityGroup: __expectBoolean(output.associateDefaultSecurityGroup),
3948
- bandwidthThrottling: __expectInt(output.bandwidthThrottling),
3950
+ bandwidthThrottling: __expectLong(output.bandwidthThrottling),
3949
3951
  createPublicIP: __expectBoolean(output.createPublicIP),
3950
3952
  dataPlaneRouting: __expectString(output.dataPlaneRouting),
3951
3953
  defaultLargeStagingDiskType: __expectString(output.defaultLargeStagingDiskType),
@@ -4021,7 +4023,7 @@ const deserializeAws_restJson1SourceProperties = (output: any, context: __SerdeC
4021
4023
  ? deserializeAws_restJson1NetworkInterfaces(output.networkInterfaces, context)
4022
4024
  : undefined,
4023
4025
  os: output.os !== undefined && output.os !== null ? deserializeAws_restJson1OS(output.os, context) : undefined,
4024
- ramBytes: __expectInt(output.ramBytes),
4026
+ ramBytes: __expectLong(output.ramBytes),
4025
4027
  recommendedInstanceType: __expectString(output.recommendedInstanceType),
4026
4028
  } as any;
4027
4029
  };