@aws-sdk/client-ebs 3.56.0 → 3.67.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/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.67.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.66.0...v3.67.0) (2022-04-08)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-ebs
9
+
10
+
11
+
12
+
13
+
14
+ # [3.61.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.60.0...v3.61.0) (2022-03-31)
15
+
16
+
17
+ ### Features
18
+
19
+ * **clients:** update clients for 03/22/2022 & 03/23/2022 ([#3498](https://github.com/aws/aws-sdk-js-v3/issues/3498)) ([fc18e5c](https://github.com/aws/aws-sdk-js-v3/commit/fc18e5c1b339dc71946edd83b28bf71cf4f8eba3))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.58.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.57.0...v3.58.0) (2022-03-28)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-ebs
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.56.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.55.0...v3.56.0) (2022-03-24)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-ebs
package/README.md CHANGED
@@ -133,7 +133,7 @@ but they are supported by the send operation.
133
133
  ```js
134
134
  // callbacks.
135
135
  client.send(command, (err, data) => {
136
- // proccess err and data.
136
+ // process err and data.
137
137
  });
138
138
  ```
139
139
 
@@ -167,7 +167,7 @@ client
167
167
 
168
168
  // callbacks.
169
169
  client.completeSnapshot(params, (err, data) => {
170
- // proccess err and data.
170
+ // process err and data.
171
171
  });
172
172
  ```
173
173
 
@@ -79,6 +79,7 @@ var RequestThrottledExceptionReason;
79
79
  (function (RequestThrottledExceptionReason) {
80
80
  RequestThrottledExceptionReason["ACCOUNT_THROTTLED"] = "ACCOUNT_THROTTLED";
81
81
  RequestThrottledExceptionReason["DEPENDENCY_REQUEST_THROTTLED"] = "DEPENDENCY_REQUEST_THROTTLED";
82
+ RequestThrottledExceptionReason["RESOURCE_LEVEL_THROTTLE"] = "RESOURCE_LEVEL_THROTTLE";
82
83
  })(RequestThrottledExceptionReason = exports.RequestThrottledExceptionReason || (exports.RequestThrottledExceptionReason = {}));
83
84
  class RequestThrottledException extends EBSServiceException_1.EBSServiceException {
84
85
  constructor(opts) {
@@ -136,6 +137,7 @@ class ServiceQuotaExceededException extends EBSServiceException_1.EBSServiceExce
136
137
  exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
137
138
  var ValidationExceptionReason;
138
139
  (function (ValidationExceptionReason) {
140
+ ValidationExceptionReason["CONFLICTING_BLOCK_UPDATE"] = "CONFLICTING_BLOCK_UPDATE";
139
141
  ValidationExceptionReason["INVALID_BLOCK"] = "INVALID_BLOCK";
140
142
  ValidationExceptionReason["INVALID_BLOCK_TOKEN"] = "INVALID_BLOCK_TOKEN";
141
143
  ValidationExceptionReason["INVALID_CONTENT_ENCODING"] = "INVALID_CONTENT_ENCODING";
@@ -181,11 +183,11 @@ class ConflictException extends EBSServiceException_1.EBSServiceException {
181
183
  constructor(opts) {
182
184
  super({
183
185
  name: "ConflictException",
184
- $fault: "server",
186
+ $fault: "client",
185
187
  ...opts,
186
188
  });
187
189
  this.name = "ConflictException";
188
- this.$fault = "server";
190
+ this.$fault = "client";
189
191
  Object.setPrototypeOf(this, ConflictException.prototype);
190
192
  this.Message = opts.Message;
191
193
  }
@@ -67,6 +67,7 @@ export var RequestThrottledExceptionReason;
67
67
  (function (RequestThrottledExceptionReason) {
68
68
  RequestThrottledExceptionReason["ACCOUNT_THROTTLED"] = "ACCOUNT_THROTTLED";
69
69
  RequestThrottledExceptionReason["DEPENDENCY_REQUEST_THROTTLED"] = "DEPENDENCY_REQUEST_THROTTLED";
70
+ RequestThrottledExceptionReason["RESOURCE_LEVEL_THROTTLE"] = "RESOURCE_LEVEL_THROTTLE";
70
71
  })(RequestThrottledExceptionReason || (RequestThrottledExceptionReason = {}));
71
72
  var RequestThrottledException = (function (_super) {
72
73
  __extends(RequestThrottledException, _super);
@@ -121,6 +122,7 @@ var ServiceQuotaExceededException = (function (_super) {
121
122
  export { ServiceQuotaExceededException };
122
123
  export var ValidationExceptionReason;
123
124
  (function (ValidationExceptionReason) {
125
+ ValidationExceptionReason["CONFLICTING_BLOCK_UPDATE"] = "CONFLICTING_BLOCK_UPDATE";
124
126
  ValidationExceptionReason["INVALID_BLOCK"] = "INVALID_BLOCK";
125
127
  ValidationExceptionReason["INVALID_BLOCK_TOKEN"] = "INVALID_BLOCK_TOKEN";
126
128
  ValidationExceptionReason["INVALID_CONTENT_ENCODING"] = "INVALID_CONTENT_ENCODING";
@@ -163,9 +165,9 @@ export { ConcurrentLimitExceededException };
163
165
  var ConflictException = (function (_super) {
164
166
  __extends(ConflictException, _super);
165
167
  function ConflictException(opts) {
166
- var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "server" }, opts)) || this;
168
+ var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
167
169
  _this.name = "ConflictException";
168
- _this.$fault = "server";
170
+ _this.$fault = "client";
169
171
  Object.setPrototypeOf(_this, ConflictException.prototype);
170
172
  _this.Message = opts.Message;
171
173
  return _this;
@@ -140,7 +140,8 @@ export declare class InternalServerException extends __BaseException {
140
140
  }
141
141
  export declare enum RequestThrottledExceptionReason {
142
142
  ACCOUNT_THROTTLED = "ACCOUNT_THROTTLED",
143
- DEPENDENCY_REQUEST_THROTTLED = "DEPENDENCY_REQUEST_THROTTLED"
143
+ DEPENDENCY_REQUEST_THROTTLED = "DEPENDENCY_REQUEST_THROTTLED",
144
+ RESOURCE_LEVEL_THROTTLE = "RESOURCE_LEVEL_THROTTLE"
144
145
  }
145
146
  /**
146
147
  * <p>The number of API requests has exceed the maximum allowed API request throttling
@@ -199,6 +200,7 @@ export declare class ServiceQuotaExceededException extends __BaseException {
199
200
  constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
200
201
  }
201
202
  export declare enum ValidationExceptionReason {
203
+ CONFLICTING_BLOCK_UPDATE = "CONFLICTING_BLOCK_UPDATE",
202
204
  INVALID_BLOCK = "INVALID_BLOCK",
203
205
  INVALID_BLOCK_TOKEN = "INVALID_BLOCK_TOKEN",
204
206
  INVALID_CONTENT_ENCODING = "INVALID_CONTENT_ENCODING",
@@ -247,7 +249,7 @@ export declare class ConcurrentLimitExceededException extends __BaseException {
247
249
  */
248
250
  export declare class ConflictException extends __BaseException {
249
251
  readonly name: "ConflictException";
250
- readonly $fault: "server";
252
+ readonly $fault: "client";
251
253
  Message?: string;
252
254
  /**
253
255
  * @internal
@@ -257,22 +259,26 @@ export declare class ConflictException extends __BaseException {
257
259
  export interface GetSnapshotBlockRequest {
258
260
  /**
259
261
  * <p>The ID of the snapshot containing the block from which to get data.</p>
262
+ * <important>
263
+ * <p>If the specified snapshot is encrypted, you must have permission to use the
264
+ * KMS key that was used to encrypt the snapshot. For more information, see
265
+ * <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebsapis-using-encryption.html">
266
+ * Using encryption</a> in the <i>Amazon Elastic Compute Cloud User
267
+ * Guide</i>.</p>
268
+ * </important>
260
269
  */
261
270
  SnapshotId: string | undefined;
262
271
  /**
263
- * <p>The block index of the block from which to get data.</p>
264
- *
265
- *
266
- * <p>Obtain the <code>BlockIndex</code> by running the <code>ListChangedBlocks</code> or
267
- * <code>ListSnapshotBlocks</code> operations.</p>
272
+ * <p>The block index of the block in which to read the data. A block index is a logical
273
+ * index in units of <code>512</code> KiB blocks. To identify the block index, divide
274
+ * the logical offset of the data in the logical volume by the block size (logical offset
275
+ * of data/<code>524288</code>). The logical offset of the data must be <code>512</code>
276
+ * KiB aligned.</p>
268
277
  */
269
278
  BlockIndex: number | undefined;
270
279
  /**
271
- * <p>The block token of the block from which to get data.</p>
272
- *
273
- *
274
- * <p>Obtain the <code>BlockToken</code> by running the <code>ListChangedBlocks</code> or
275
- * <code>ListSnapshotBlocks</code> operations.</p>
280
+ * <p>The block token of the block from which to get data. You can obtain the <code>BlockToken</code>
281
+ * by running the <code>ListChangedBlocks</code> or <code>ListSnapshotBlocks</code> operations.</p>
276
282
  */
277
283
  BlockToken: string | undefined;
278
284
  }
@@ -452,6 +458,13 @@ export declare namespace ListSnapshotBlocksResponse {
452
458
  export interface PutSnapshotBlockRequest {
453
459
  /**
454
460
  * <p>The ID of the snapshot.</p>
461
+ * <important>
462
+ * <p>If the specified snapshot is encrypted, you must have permission to use
463
+ * the KMS key that was used to encrypt the snapshot. For more information,
464
+ * see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebsapis-using-encryption.html">
465
+ * Using encryption</a> in the <i>Amazon Elastic Compute Cloud User
466
+ * Guide</i>..</p>
467
+ * </important>
455
468
  */
456
469
  SnapshotId: string | undefined;
457
470
  /**
@@ -548,9 +561,26 @@ export interface StartSnapshotRequest {
548
561
  /**
549
562
  * <p>The ID of the parent snapshot. If there is no parent snapshot, or if you are creating
550
563
  * the first snapshot for an on-premises volume, omit this parameter.</p>
551
- * <p>If your account is enabled for encryption by default, you cannot use an unencrypted
552
- * snapshot as a parent snapshot. You must first create an encrypted copy of the parent
553
- * snapshot using <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CopySnapshot.html">CopySnapshot</a>.</p>
564
+ * <p>You can't specify <b>ParentSnapshotId</b> and
565
+ * <b>Encrypted</b> in the same request. If you specify both
566
+ * parameters, the request fails with <code>ValidationException</code>.</p>
567
+ *
568
+ *
569
+ *
570
+ * <p>The encryption status of the snapshot depends on the values that you specify for
571
+ * <b>Encrypted</b>, <b>KmsKeyArn</b>,
572
+ * and <b>ParentSnapshotId</b>, and whether your Amazon Web Services account
573
+ * is enabled for <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html#encryption-by-default">
574
+ * encryption by default</a>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebsapis-using-encryption.html">
575
+ * Using encryption</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
576
+ *
577
+ * <important>
578
+ * <p>If you specify an encrypted parent snapshot, you must have permission to use the
579
+ * KMS key that was used to encrypt the parent snapshot. For more information, see
580
+ * <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebsapi-permissions.html#ebsapi-kms-permissions">
581
+ * Permissions to use Key Management Service keys</a> in the <i>Amazon Elastic Compute Cloud User
582
+ * Guide</i>.</p>
583
+ * </important>
554
584
  */
555
585
  ParentSnapshotId?: string;
556
586
  /**
@@ -573,32 +603,46 @@ export interface StartSnapshotRequest {
573
603
  */
574
604
  ClientToken?: string;
575
605
  /**
576
- * <p>Indicates whether to encrypt the snapshot. To create an encrypted snapshot, specify
577
- * <code>true</code>. To create an unencrypted snapshot, omit this parameter.</p>
578
- * <p>If you specify a value for <b>ParentSnapshotId</b>, omit
579
- * this parameter.</p>
580
- * <p>If you specify <code>true</code>, the snapshot is encrypted using the KMS key specified
581
- * using the <b>KmsKeyArn</b> parameter. If no value is specified
582
- * for <b>KmsKeyArn</b>, the default KMS key for your account is
583
- * used. If no default KMS key has been specified for your account, the Amazon Web Services managed KMS key is used.
584
- * To set a default KMS key for your account, use <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyEbsDefaultKmsKeyId.html">
585
- * ModifyEbsDefaultKmsKeyId</a>.</p>
586
- * <p>If your account is enabled for encryption by default, you cannot set this parameter to
587
- * <code>false</code>. In this case, you can omit this parameter.</p>
606
+ * <p>Indicates whether to encrypt the snapshot.</p>
607
+ *
608
+ * <p>You can't specify <b>Encrypted</b> and <b>
609
+ * ParentSnapshotId</b> in the same request. If you specify both parameters, the
610
+ * request fails with <code>ValidationException</code>.</p>
611
+ *
612
+ * <p>The encryption status of the snapshot depends on the values that you specify for
613
+ * <b>Encrypted</b>, <b>KmsKeyArn</b>,
614
+ * and <b>ParentSnapshotId</b>, and whether your Amazon Web Services account
615
+ * is enabled for <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html#encryption-by-default">
616
+ * encryption by default</a>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebsapis-using-encryption.html">
617
+ * Using encryption</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
588
618
  *
589
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapis-using-encryption">
590
- * Using encryption</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
619
+ *
620
+ *
621
+ * <important>
622
+ * <p>To create an encrypted snapshot, you must have permission to use the KMS key. For
623
+ * more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebsapi-permissions.html#ebsapi-kms-permissions">
624
+ * Permissions to use Key Management Service keys</a> in the <i>Amazon Elastic Compute Cloud User
625
+ * Guide</i>.</p>
626
+ * </important>
591
627
  */
592
628
  Encrypted?: boolean;
593
629
  /**
594
- * <p>The Amazon Resource Name (ARN) of the Key Management Service (KMS)
595
- * key to be used to encrypt the snapshot. If you do not specify a
596
- * KMS key, the default Amazon Web Services managed KMS key is used.</p>
597
- * <p>If you specify a <b>ParentSnapshotId</b>, omit this
598
- * parameter; the snapshot will be encrypted using the same KMS key that was used to encrypt
599
- * the parent snapshot.</p>
600
- * <p>If <b>Encrypted</b> is set to <code>true</code>,
601
- * you must specify a KMS key ARN. </p>
630
+ * <p>The Amazon Resource Name (ARN) of the Key Management Service (KMS) key to be used to encrypt the snapshot.</p>
631
+ *
632
+ * <p>The encryption status of the snapshot depends on the values that you specify for
633
+ * <b>Encrypted</b>, <b>KmsKeyArn</b>,
634
+ * and <b>ParentSnapshotId</b>, and whether your Amazon Web Services account
635
+ * is enabled for <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html#encryption-by-default">
636
+ * encryption by default</a>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebsapis-using-encryption.html">
637
+ * Using encryption</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
638
+ *
639
+ *
640
+ * <important>
641
+ * <p>To create an encrypted snapshot, you must have permission to use the KMS key. For
642
+ * more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebsapi-permissions.html#ebsapi-kms-permissions">
643
+ * Permissions to use Key Management Service keys</a> in the <i>Amazon Elastic Compute Cloud User
644
+ * Guide</i>.</p>
645
+ * </important>
602
646
  */
603
647
  KmsKeyArn?: string;
604
648
  /**
@@ -85,7 +85,8 @@ export declare class InternalServerException extends __BaseException {
85
85
  }
86
86
  export declare enum RequestThrottledExceptionReason {
87
87
  ACCOUNT_THROTTLED = "ACCOUNT_THROTTLED",
88
- DEPENDENCY_REQUEST_THROTTLED = "DEPENDENCY_REQUEST_THROTTLED"
88
+ DEPENDENCY_REQUEST_THROTTLED = "DEPENDENCY_REQUEST_THROTTLED",
89
+ RESOURCE_LEVEL_THROTTLE = "RESOURCE_LEVEL_THROTTLE"
89
90
  }
90
91
 
91
92
  export declare class RequestThrottledException extends __BaseException {
@@ -125,6 +126,7 @@ export declare class ServiceQuotaExceededException extends __BaseException {
125
126
  constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
126
127
  }
127
128
  export declare enum ValidationExceptionReason {
129
+ CONFLICTING_BLOCK_UPDATE = "CONFLICTING_BLOCK_UPDATE",
128
130
  INVALID_BLOCK = "INVALID_BLOCK",
129
131
  INVALID_BLOCK_TOKEN = "INVALID_BLOCK_TOKEN",
130
132
  INVALID_CONTENT_ENCODING = "INVALID_CONTENT_ENCODING",
@@ -158,7 +160,7 @@ export declare class ConcurrentLimitExceededException extends __BaseException {
158
160
 
159
161
  export declare class ConflictException extends __BaseException {
160
162
  readonly name: "ConflictException";
161
- readonly $fault: "server";
163
+ readonly $fault: "client";
162
164
  Message?: string;
163
165
 
164
166
  constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ebs",
3
3
  "description": "AWS SDK for JavaScript Ebs Client for Node.js, Browser and React Native",
4
- "version": "3.56.0",
4
+ "version": "3.67.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",
@@ -18,41 +18,41 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.56.0",
22
- "@aws-sdk/config-resolver": "3.56.0",
23
- "@aws-sdk/credential-provider-node": "3.56.0",
24
- "@aws-sdk/fetch-http-handler": "3.55.0",
21
+ "@aws-sdk/client-sts": "3.67.0",
22
+ "@aws-sdk/config-resolver": "3.58.0",
23
+ "@aws-sdk/credential-provider-node": "3.67.0",
24
+ "@aws-sdk/fetch-http-handler": "3.58.0",
25
25
  "@aws-sdk/hash-node": "3.55.0",
26
26
  "@aws-sdk/invalid-dependency": "3.55.0",
27
- "@aws-sdk/middleware-content-length": "3.55.0",
28
- "@aws-sdk/middleware-host-header": "3.55.0",
27
+ "@aws-sdk/middleware-content-length": "3.58.0",
28
+ "@aws-sdk/middleware-host-header": "3.58.0",
29
29
  "@aws-sdk/middleware-logger": "3.55.0",
30
- "@aws-sdk/middleware-retry": "3.56.0",
30
+ "@aws-sdk/middleware-retry": "3.58.0",
31
31
  "@aws-sdk/middleware-serde": "3.55.0",
32
- "@aws-sdk/middleware-signing": "3.56.0",
32
+ "@aws-sdk/middleware-signing": "3.58.0",
33
33
  "@aws-sdk/middleware-stack": "3.55.0",
34
- "@aws-sdk/middleware-user-agent": "3.55.0",
35
- "@aws-sdk/node-config-provider": "3.56.0",
36
- "@aws-sdk/node-http-handler": "3.55.0",
37
- "@aws-sdk/protocol-http": "3.55.0",
34
+ "@aws-sdk/middleware-user-agent": "3.58.0",
35
+ "@aws-sdk/node-config-provider": "3.58.0",
36
+ "@aws-sdk/node-http-handler": "3.58.0",
37
+ "@aws-sdk/protocol-http": "3.58.0",
38
38
  "@aws-sdk/smithy-client": "3.55.0",
39
39
  "@aws-sdk/types": "3.55.0",
40
40
  "@aws-sdk/url-parser": "3.55.0",
41
- "@aws-sdk/util-base64-browser": "3.55.0",
41
+ "@aws-sdk/util-base64-browser": "3.58.0",
42
42
  "@aws-sdk/util-base64-node": "3.55.0",
43
43
  "@aws-sdk/util-body-length-browser": "3.55.0",
44
44
  "@aws-sdk/util-body-length-node": "3.55.0",
45
45
  "@aws-sdk/util-defaults-mode-browser": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.56.0",
47
- "@aws-sdk/util-user-agent-browser": "3.55.0",
48
- "@aws-sdk/util-user-agent-node": "3.56.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.58.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.58.0",
48
+ "@aws-sdk/util-user-agent-node": "3.58.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.55.0",
50
50
  "@aws-sdk/util-utf8-node": "3.55.0",
51
51
  "tslib": "^2.3.1",
52
52
  "uuid": "^8.3.2"
53
53
  },
54
54
  "devDependencies": {
55
- "@aws-sdk/service-client-documentation-generator": "3.55.0",
55
+ "@aws-sdk/service-client-documentation-generator": "3.58.0",
56
56
  "@tsconfig/recommended": "1.0.1",
57
57
  "@types/node": "^12.7.5",
58
58
  "@types/uuid": "^8.3.0",