@aws-sdk/client-dynamodb-streams 3.350.0 → 3.352.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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const v = "fn", w = "argv", x = "ref";
5
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = "getAttr", i = "stringEquals", j = { "required": true, "default": false, "type": "Boolean" }, k = { [x]: "Region" }, l = { [x]: "Endpoint" }, m = { [v]: "booleanEquals", [w]: [{ [x]: "UseFIPS" }, true] }, n = { [v]: "booleanEquals", [w]: [{ [x]: "UseDualStack" }, true] }, o = {}, p = { [v]: "booleanEquals", [w]: [true, { [v]: h, [w]: [{ [x]: d }, "supportsFIPS"] }] }, q = { [x]: d }, r = { [v]: "booleanEquals", [w]: [true, { [v]: h, [w]: [q, "supportsDualStack"] }] }, s = { "url": "https://streams.dynamodb.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, t = [m], u = [n];
6
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: j, UseFIPS: j, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [v]: "aws.partition", [w]: [k], assign: d }], type: e, rules: [{ conditions: [{ [v]: "isSet", [w]: [l] }], type: e, rules: [{ conditions: t, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: u, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: l, properties: o, headers: o }, type: g }] }] }, { conditions: [m, n], type: e, rules: [{ conditions: [p, r], type: e, rules: [{ endpoint: { url: "https://streams.dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: o, headers: o }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: t, type: e, rules: [{ conditions: [p], type: e, rules: [{ type: e, rules: [{ conditions: [{ [v]: i, [w]: ["aws-us-gov", { [v]: h, [w]: [q, "name"] }] }], endpoint: s, type: g }, { endpoint: { url: "https://streams.dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}", properties: o, headers: o }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: u, type: e, rules: [{ conditions: [r], type: e, rules: [{ endpoint: { url: "https://streams.dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: o, headers: o }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { type: e, rules: [{ conditions: [{ [v]: i, [w]: [k, "local"] }], endpoint: { url: "http://localhost:8000", properties: { authSchemes: [{ name: "sigv4", signingRegion: "us-east-1", signingName: "dynamodb" }] }, headers: o }, type: g }, { endpoint: s, type: g }] }] }] };
4
+ const v = "required", w = "type", x = "fn", y = "argv", z = "ref", A = "properties", B = "headers";
5
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "stringEquals", g = { [v]: false, [w]: "String" }, h = { [v]: true, "default": false, [w]: "Boolean" }, i = { [z]: "Endpoint" }, j = { [x]: "booleanEquals", [y]: [{ [z]: "UseFIPS" }, true] }, k = { [x]: "booleanEquals", [y]: [{ [z]: "UseDualStack" }, true] }, l = {}, m = { [z]: "Region" }, n = { [x]: "booleanEquals", [y]: [true, { [x]: "getAttr", [y]: [{ [z]: e }, "supportsFIPS"] }] }, o = { [x]: "booleanEquals", [y]: [true, { [x]: "getAttr", [y]: [{ [z]: e }, "supportsDualStack"] }] }, p = { "conditions": [{ [x]: f, [y]: ["aws-us-gov", { [x]: "getAttr", [y]: [{ [z]: e }, "name"] }] }], [d]: { "url": "https://streams.dynamodb.{Region}.amazonaws.com", [A]: {}, [B]: {} }, [w]: d }, q = { [x]: "getAttr", [y]: [{ [z]: e }, "name"] }, r = { "url": "https://streams.dynamodb.{Region}.amazonaws.com", [A]: {}, [B]: {} }, s = [j], t = [k], u = [m];
6
+ const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [x]: a, [y]: [i] }], [w]: b, rules: [{ conditions: s, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [w]: c }, { [w]: b, rules: [{ conditions: t, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [w]: c }, { endpoint: { url: i, [A]: l, [B]: l }, [w]: d }] }] }, { [w]: b, rules: [{ conditions: [{ [x]: a, [y]: u }], [w]: b, rules: [{ conditions: [{ [x]: "aws.partition", [y]: u, assign: e }], [w]: b, rules: [{ conditions: [j, k], [w]: b, rules: [{ conditions: [n, o], [w]: b, rules: [{ [w]: b, rules: [{ endpoint: { url: "https://streams.dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [A]: l, [B]: l }, [w]: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [w]: c }] }, { conditions: s, [w]: b, rules: [{ conditions: [n], [w]: b, rules: [{ [w]: b, rules: [p, { endpoint: { url: "https://streams.dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}", [A]: l, [B]: l }, [w]: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", [w]: c }] }, { conditions: t, [w]: b, rules: [{ conditions: [o], [w]: b, rules: [{ [w]: b, rules: [{ endpoint: { url: "https://streams.dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}", [A]: l, [B]: l }, [w]: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", [w]: c }] }, { [w]: b, rules: [{ conditions: [{ [x]: f, [y]: [m, "local"] }], endpoint: { url: "http://localhost:8000", [A]: { authSchemes: [{ name: "sigv4", signingName: "dynamodb", signingRegion: "us-east-1" }] }, [B]: l }, [w]: d }, { conditions: [{ [x]: f, [y]: ["aws", q] }], endpoint: r, [w]: d }, { conditions: [{ [x]: f, [y]: ["aws-cn", q] }], endpoint: { url: "https://streams.dynamodb.{Region}.amazonaws.com.cn", [A]: l, [B]: l }, [w]: d }, p, { conditions: [{ [x]: f, [y]: ["aws-iso", q] }], endpoint: { url: "https://streams.dynamodb.{Region}.c2s.ic.gov", [A]: l, [B]: l }, [w]: d }, { conditions: [{ [x]: f, [y]: ["aws-iso-b", q] }], endpoint: { url: "https://streams.dynamodb.{Region}.sc2s.sgov.gov", [A]: l, [B]: l }, [w]: d }, { endpoint: { url: "https://streams.dynamodb.{Region}.{PartitionResult#dnsSuffix}", [A]: l, [B]: l }, [w]: d }] }] }] }, { error: "Invalid Configuration: Missing Region", [w]: c }] }] };
7
7
  exports.ruleSet = _data;
@@ -1,4 +1,4 @@
1
- const v = "fn", w = "argv", x = "ref";
2
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = "getAttr", i = "stringEquals", j = { "required": true, "default": false, "type": "Boolean" }, k = { [x]: "Region" }, l = { [x]: "Endpoint" }, m = { [v]: "booleanEquals", [w]: [{ [x]: "UseFIPS" }, true] }, n = { [v]: "booleanEquals", [w]: [{ [x]: "UseDualStack" }, true] }, o = {}, p = { [v]: "booleanEquals", [w]: [true, { [v]: h, [w]: [{ [x]: d }, "supportsFIPS"] }] }, q = { [x]: d }, r = { [v]: "booleanEquals", [w]: [true, { [v]: h, [w]: [q, "supportsDualStack"] }] }, s = { "url": "https://streams.dynamodb.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, t = [m], u = [n];
3
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: j, UseFIPS: j, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [v]: "aws.partition", [w]: [k], assign: d }], type: e, rules: [{ conditions: [{ [v]: "isSet", [w]: [l] }], type: e, rules: [{ conditions: t, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: u, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: l, properties: o, headers: o }, type: g }] }] }, { conditions: [m, n], type: e, rules: [{ conditions: [p, r], type: e, rules: [{ endpoint: { url: "https://streams.dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: o, headers: o }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: t, type: e, rules: [{ conditions: [p], type: e, rules: [{ type: e, rules: [{ conditions: [{ [v]: i, [w]: ["aws-us-gov", { [v]: h, [w]: [q, "name"] }] }], endpoint: s, type: g }, { endpoint: { url: "https://streams.dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}", properties: o, headers: o }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: u, type: e, rules: [{ conditions: [r], type: e, rules: [{ endpoint: { url: "https://streams.dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: o, headers: o }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { type: e, rules: [{ conditions: [{ [v]: i, [w]: [k, "local"] }], endpoint: { url: "http://localhost:8000", properties: { authSchemes: [{ name: "sigv4", signingRegion: "us-east-1", signingName: "dynamodb" }] }, headers: o }, type: g }, { endpoint: s, type: g }] }] }] };
1
+ const v = "required", w = "type", x = "fn", y = "argv", z = "ref", A = "properties", B = "headers";
2
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "stringEquals", g = { [v]: false, [w]: "String" }, h = { [v]: true, "default": false, [w]: "Boolean" }, i = { [z]: "Endpoint" }, j = { [x]: "booleanEquals", [y]: [{ [z]: "UseFIPS" }, true] }, k = { [x]: "booleanEquals", [y]: [{ [z]: "UseDualStack" }, true] }, l = {}, m = { [z]: "Region" }, n = { [x]: "booleanEquals", [y]: [true, { [x]: "getAttr", [y]: [{ [z]: e }, "supportsFIPS"] }] }, o = { [x]: "booleanEquals", [y]: [true, { [x]: "getAttr", [y]: [{ [z]: e }, "supportsDualStack"] }] }, p = { "conditions": [{ [x]: f, [y]: ["aws-us-gov", { [x]: "getAttr", [y]: [{ [z]: e }, "name"] }] }], [d]: { "url": "https://streams.dynamodb.{Region}.amazonaws.com", [A]: {}, [B]: {} }, [w]: d }, q = { [x]: "getAttr", [y]: [{ [z]: e }, "name"] }, r = { "url": "https://streams.dynamodb.{Region}.amazonaws.com", [A]: {}, [B]: {} }, s = [j], t = [k], u = [m];
3
+ const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [x]: a, [y]: [i] }], [w]: b, rules: [{ conditions: s, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [w]: c }, { [w]: b, rules: [{ conditions: t, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [w]: c }, { endpoint: { url: i, [A]: l, [B]: l }, [w]: d }] }] }, { [w]: b, rules: [{ conditions: [{ [x]: a, [y]: u }], [w]: b, rules: [{ conditions: [{ [x]: "aws.partition", [y]: u, assign: e }], [w]: b, rules: [{ conditions: [j, k], [w]: b, rules: [{ conditions: [n, o], [w]: b, rules: [{ [w]: b, rules: [{ endpoint: { url: "https://streams.dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [A]: l, [B]: l }, [w]: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [w]: c }] }, { conditions: s, [w]: b, rules: [{ conditions: [n], [w]: b, rules: [{ [w]: b, rules: [p, { endpoint: { url: "https://streams.dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}", [A]: l, [B]: l }, [w]: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", [w]: c }] }, { conditions: t, [w]: b, rules: [{ conditions: [o], [w]: b, rules: [{ [w]: b, rules: [{ endpoint: { url: "https://streams.dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}", [A]: l, [B]: l }, [w]: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", [w]: c }] }, { [w]: b, rules: [{ conditions: [{ [x]: f, [y]: [m, "local"] }], endpoint: { url: "http://localhost:8000", [A]: { authSchemes: [{ name: "sigv4", signingName: "dynamodb", signingRegion: "us-east-1" }] }, [B]: l }, [w]: d }, { conditions: [{ [x]: f, [y]: ["aws", q] }], endpoint: r, [w]: d }, { conditions: [{ [x]: f, [y]: ["aws-cn", q] }], endpoint: { url: "https://streams.dynamodb.{Region}.amazonaws.com.cn", [A]: l, [B]: l }, [w]: d }, p, { conditions: [{ [x]: f, [y]: ["aws-iso", q] }], endpoint: { url: "https://streams.dynamodb.{Region}.c2s.ic.gov", [A]: l, [B]: l }, [w]: d }, { conditions: [{ [x]: f, [y]: ["aws-iso-b", q] }], endpoint: { url: "https://streams.dynamodb.{Region}.sc2s.sgov.gov", [A]: l, [B]: l }, [w]: d }, { endpoint: { url: "https://streams.dynamodb.{Region}.{PartitionResult#dnsSuffix}", [A]: l, [B]: l }, [w]: d }] }] }] }, { error: "Invalid Configuration: Missing Region", [w]: c }] }] };
4
4
  export const ruleSet = _data;
@@ -33,7 +33,6 @@ export interface DynamoDBStreams {
33
33
  /**
34
34
  * @public
35
35
  * <fullname>Amazon DynamoDB</fullname>
36
- *
37
36
  * <p>Amazon DynamoDB Streams provides API actions for accessing streams and processing
38
37
  * stream records. To learn more about application development with Streams, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html">Capturing
39
38
  * Table Activity with DynamoDB Streams</a> in the Amazon DynamoDB Developer
@@ -150,7 +150,6 @@ export interface DynamoDBStreamsClientResolvedConfig extends DynamoDBStreamsClie
150
150
  /**
151
151
  * @public
152
152
  * <fullname>Amazon DynamoDB</fullname>
153
- *
154
153
  * <p>Amazon DynamoDB Streams provides API actions for accessing streams and processing
155
154
  * stream records. To learn more about application development with Streams, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html">Capturing
156
155
  * Table Activity with DynamoDB Streams</a> in the Amazon DynamoDB Developer
@@ -148,6 +148,9 @@ export interface GetRecordsCommandOutput extends GetRecordsOutput, __MetadataBea
148
148
  * of concurrent operations.</p>
149
149
  * <p>When importing into DynamoDB, up to 50 simultaneous import table operations are allowed per account.</p>
150
150
  * <p>There is a soft account quota of 2,500 tables.</p>
151
+ * <p>GetRecords was called with a value of more than 1000 for the limit request parameter.</p>
152
+ * <p>More than 2 processes are reading from the same streams shard at the same time. Exceeding
153
+ * this limit may result in request throttling.</p>
151
154
  *
152
155
  * @throws {@link ResourceNotFoundException} (client fault)
153
156
  * <p>The operation tried to access a nonexistent table or index. The resource
@@ -13,7 +13,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
13
13
  defaultSigningName: string;
14
14
  };
15
15
  export interface EndpointParameters extends __EndpointParameters {
16
- Region: string;
16
+ Region?: string;
17
17
  UseDualStack?: boolean;
18
18
  UseFIPS?: boolean;
19
19
  Endpoint?: string;
@@ -1,6 +1,5 @@
1
1
  /**
2
2
  * <fullname>Amazon DynamoDB</fullname>
3
- *
4
3
  * <p>Amazon DynamoDB Streams provides API actions for accessing streams and processing
5
4
  * stream records. To learn more about application development with Streams, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html">Capturing
6
5
  * Table Activity with DynamoDB Streams</a> in the Amazon DynamoDB Developer
@@ -54,11 +54,11 @@ export interface KeySchemaElement {
54
54
  * <p>The role that this key attribute will assume:</p>
55
55
  * <ul>
56
56
  * <li>
57
- * <p>
57
+ * <p>
58
58
  * <code>HASH</code> - partition key</p>
59
59
  * </li>
60
60
  * <li>
61
- * <p>
61
+ * <p>
62
62
  * <code>RANGE</code> - sort key</p>
63
63
  * </li>
64
64
  * </ul>
@@ -151,7 +151,7 @@ export interface StreamDescription {
151
151
  * combination of the following three elements is guaranteed to be unique:</p>
152
152
  * <ul>
153
153
  * <li>
154
- * <p>the AWS customer ID.</p>
154
+ * <p>the Amazon Web Services customer ID.</p>
155
155
  * </li>
156
156
  * <li>
157
157
  * <p>the table name</p>
@@ -338,6 +338,9 @@ export interface Identity {
338
338
  * of concurrent operations.</p>
339
339
  * <p>When importing into DynamoDB, up to 50 simultaneous import table operations are allowed per account.</p>
340
340
  * <p>There is a soft account quota of 2,500 tables.</p>
341
+ * <p>GetRecords was called with a value of more than 1000 for the limit request parameter.</p>
342
+ * <p>More than 2 processes are reading from the same streams shard at the same time. Exceeding
343
+ * this limit may result in request throttling.</p>
341
344
  */
342
345
  export declare class LimitExceededException extends __BaseException {
343
346
  readonly name: "LimitExceededException";
@@ -480,7 +483,7 @@ export interface _Stream {
480
483
  * combination of the following three elements is guaranteed to be unique:</p>
481
484
  * <ul>
482
485
  * <li>
483
- * <p>the AWS customer ID.</p>
486
+ * <p>the Amazon Web Services customer ID.</p>
484
487
  * </li>
485
488
  * <li>
486
489
  * <p>the table name</p>
@@ -750,7 +753,7 @@ export declare namespace AttributeValue {
750
753
  */
751
754
  export interface StreamRecord {
752
755
  /**
753
- * <p>The approximate date and time when the stream record was created, in <a href="http://www.epochconverter.com/">UNIX epoch time</a> format.</p>
756
+ * <p>The approximate date and time when the stream record was created, in <a href="http://www.epochconverter.com/">UNIX epoch time</a> format and rounded down to the closest second.</p>
754
757
  */
755
758
  ApproximateCreationDateTime?: Date;
756
759
  /**
@@ -831,7 +834,7 @@ export interface _Record {
831
834
  */
832
835
  eventVersion?: string;
833
836
  /**
834
- * <p>The AWS service from which the stream record originated. For DynamoDB Streams, this is <code>aws:dynamodb</code>.</p>
837
+ * <p>The Amazon Web Services service from which the stream record originated. For DynamoDB Streams, this is <code>aws:dynamodb</code>.</p>
835
838
  */
836
839
  eventSource?: string;
837
840
  /**
@@ -25,7 +25,7 @@ export declare const resolveClientEndpointParameters: <T>(
25
25
  defaultSigningName: string;
26
26
  };
27
27
  export interface EndpointParameters extends __EndpointParameters {
28
- Region: string;
28
+ Region?: string;
29
29
  UseDualStack?: boolean;
30
30
  UseFIPS?: boolean;
31
31
  Endpoint?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-dynamodb-streams",
3
3
  "description": "AWS SDK for JavaScript Dynamodb Streams Client for Node.js, Browser and React Native",
4
- "version": "3.350.0",
4
+ "version": "3.352.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",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.350.0",
24
+ "@aws-sdk/client-sts": "3.352.0",
25
25
  "@aws-sdk/config-resolver": "3.347.0",
26
- "@aws-sdk/credential-provider-node": "3.350.0",
26
+ "@aws-sdk/credential-provider-node": "3.352.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.347.0",
28
28
  "@aws-sdk/hash-node": "3.347.0",
29
29
  "@aws-sdk/invalid-dependency": "3.347.0",
@@ -36,7 +36,7 @@
36
36
  "@aws-sdk/middleware-serde": "3.347.0",
37
37
  "@aws-sdk/middleware-signing": "3.347.0",
38
38
  "@aws-sdk/middleware-stack": "3.347.0",
39
- "@aws-sdk/middleware-user-agent": "3.347.0",
39
+ "@aws-sdk/middleware-user-agent": "3.352.0",
40
40
  "@aws-sdk/node-config-provider": "3.347.0",
41
41
  "@aws-sdk/node-http-handler": "3.350.0",
42
42
  "@aws-sdk/smithy-client": "3.347.0",
@@ -47,7 +47,7 @@
47
47
  "@aws-sdk/util-body-length-node": "3.310.0",
48
48
  "@aws-sdk/util-defaults-mode-browser": "3.347.0",
49
49
  "@aws-sdk/util-defaults-mode-node": "3.347.0",
50
- "@aws-sdk/util-endpoints": "3.347.0",
50
+ "@aws-sdk/util-endpoints": "3.352.0",
51
51
  "@aws-sdk/util-retry": "3.347.0",
52
52
  "@aws-sdk/util-user-agent-browser": "3.347.0",
53
53
  "@aws-sdk/util-user-agent-node": "3.347.0",