Skip to content

Commit 2652a97

Browse files
author
awstools
committed
docs(client-dynamodb-streams): Documentation updates for DynamoDB Streams
1 parent c84177f commit 2652a97

File tree

8 files changed

+625
-1598
lines changed

8 files changed

+625
-1598
lines changed

clients/client-dynamodb-streams/src/DynamoDBStreams.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ export interface DynamoDBStreams {
8181
/**
8282
* @public
8383
* <fullname>Amazon DynamoDB</fullname>
84-
*
8584
* <p>Amazon DynamoDB Streams provides API actions for accessing streams and processing
8685
* stream records. To learn more about application development with Streams, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html">Capturing
8786
* Table Activity with DynamoDB Streams</a> in the Amazon DynamoDB Developer

clients/client-dynamodb-streams/src/DynamoDBStreamsClient.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,6 @@ export interface DynamoDBStreamsClientResolvedConfig extends DynamoDBStreamsClie
248248
/**
249249
* @public
250250
* <fullname>Amazon DynamoDB</fullname>
251-
*
252251
* <p>Amazon DynamoDB Streams provides API actions for accessing streams and processing
253252
* stream records. To learn more about application development with Streams, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html">Capturing
254253
* Table Activity with DynamoDB Streams</a> in the Amazon DynamoDB Developer

clients/client-dynamodb-streams/src/commands/GetRecordsCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ export interface GetRecordsCommandOutput extends GetRecordsOutput, __MetadataBea
161161
* of concurrent operations.</p>
162162
* <p>When importing into DynamoDB, up to 50 simultaneous import table operations are allowed per account.</p>
163163
* <p>There is a soft account quota of 2,500 tables.</p>
164+
* <p>GetRecords was called with a value of more than 1000 for the limit request parameter.</p>
165+
* <p>More than 2 processes are reading from the same streams shard at the same time. Exceeding
166+
* this limit may result in request throttling.</p>
164167
*
165168
* @throws {@link ResourceNotFoundException} (client fault)
166169
* <p>The operation tried to access a nonexistent table or index. The resource

clients/client-dynamodb-streams/src/endpoint/EndpointParameters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const resolveClientEndpointParameters = <T>(
2525
};
2626

2727
export interface EndpointParameters extends __EndpointParameters {
28-
Region: string;
28+
Region?: string;
2929
UseDualStack?: boolean;
3030
UseFIPS?: boolean;
3131
Endpoint?: string;

clients/client-dynamodb-streams/src/endpoint/ruleset.ts

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,33 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints";
66
or see "smithy.rules#endpointRuleSet"
77
in codegen/sdk-codegen/aws-models/dynamodb-streams.json */
88

9-
const v="fn",
10-
w="argv",
11-
x="ref";
12-
const a=true,
13-
b=false,
14-
c="String",
15-
d="PartitionResult",
16-
e="tree",
17-
f="error",
18-
g="endpoint",
19-
h="getAttr",
20-
i="stringEquals",
21-
j={"required":true,"default":false,"type":"Boolean"},
22-
k={[x]:"Region"},
23-
l={[x]:"Endpoint"},
24-
m={[v]:"booleanEquals",[w]:[{[x]:"UseFIPS"},true]},
25-
n={[v]:"booleanEquals",[w]:[{[x]:"UseDualStack"},true]},
26-
o={},
27-
p={[v]:"booleanEquals",[w]:[true,{[v]:h,[w]:[{[x]:d},"supportsFIPS"]}]},
28-
q={[x]:d},
29-
r={[v]:"booleanEquals",[w]:[true,{[v]:h,[w]:[q,"supportsDualStack"]}]},
30-
s={"url":"https://streams.dynamodb.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}},
31-
t=[m],
32-
u=[n];
33-
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}]}]}]};
9+
const v="required",
10+
w="type",
11+
x="fn",
12+
y="argv",
13+
z="ref",
14+
A="properties",
15+
B="headers";
16+
const a="isSet",
17+
b="tree",
18+
c="error",
19+
d="endpoint",
20+
e="PartitionResult",
21+
f="stringEquals",
22+
g={[v]:false,[w]:"String"},
23+
h={[v]:true,"default":false,[w]:"Boolean"},
24+
i={[z]:"Endpoint"},
25+
j={[x]:"booleanEquals",[y]:[{[z]:"UseFIPS"},true]},
26+
k={[x]:"booleanEquals",[y]:[{[z]:"UseDualStack"},true]},
27+
l={},
28+
m={[z]:"Region"},
29+
n={[x]:"booleanEquals",[y]:[true,{[x]:"getAttr",[y]:[{[z]:e},"supportsFIPS"]}]},
30+
o={[x]:"booleanEquals",[y]:[true,{[x]:"getAttr",[y]:[{[z]:e},"supportsDualStack"]}]},
31+
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},
32+
q={[x]:"getAttr",[y]:[{[z]:e},"name"]},
33+
r={"url":"https://streams.dynamodb.{Region}.amazonaws.com",[A]:{},[B]:{}},
34+
s=[j],
35+
t=[k],
36+
u=[m];
37+
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}]}]};
3438
export const ruleSet: RuleSetObject = _data;

clients/client-dynamodb-streams/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
/* eslint-disable */
33
/**
44
* <fullname>Amazon DynamoDB</fullname>
5-
*
65
* <p>Amazon DynamoDB Streams provides API actions for accessing streams and processing
76
* stream records. To learn more about application development with Streams, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html">Capturing
87
* Table Activity with DynamoDB Streams</a> in the Amazon DynamoDB Developer

clients/client-dynamodb-streams/src/models/models_0.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ export interface KeySchemaElement {
6363
* <p>The role that this key attribute will assume:</p>
6464
* <ul>
6565
* <li>
66-
* <p>
66+
* <p>
6767
* <code>HASH</code> - partition key</p>
6868
* </li>
6969
* <li>
70-
* <p>
70+
* <p>
7171
* <code>RANGE</code> - sort key</p>
7272
* </li>
7373
* </ul>
@@ -171,7 +171,7 @@ export interface StreamDescription {
171171
* combination of the following three elements is guaranteed to be unique:</p>
172172
* <ul>
173173
* <li>
174-
* <p>the AWS customer ID.</p>
174+
* <p>the Amazon Web Services customer ID.</p>
175175
* </li>
176176
* <li>
177177
* <p>the table name</p>
@@ -397,6 +397,9 @@ export interface Identity {
397397
* of concurrent operations.</p>
398398
* <p>When importing into DynamoDB, up to 50 simultaneous import table operations are allowed per account.</p>
399399
* <p>There is a soft account quota of 2,500 tables.</p>
400+
* <p>GetRecords was called with a value of more than 1000 for the limit request parameter.</p>
401+
* <p>More than 2 processes are reading from the same streams shard at the same time. Exceeding
402+
* this limit may result in request throttling.</p>
400403
*/
401404
export class LimitExceededException extends __BaseException {
402405
readonly name: "LimitExceededException" = "LimitExceededException";
@@ -567,7 +570,7 @@ export interface _Stream {
567570
* combination of the following three elements is guaranteed to be unique:</p>
568571
* <ul>
569572
* <li>
570-
* <p>the AWS customer ID.</p>
573+
* <p>the Amazon Web Services customer ID.</p>
571574
* </li>
572575
* <li>
573576
* <p>the table name</p>
@@ -877,7 +880,7 @@ export namespace AttributeValue {
877880
*/
878881
export interface StreamRecord {
879882
/**
880-
* <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>
883+
* <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>
881884
*/
882885
ApproximateCreationDateTime?: Date;
883886

@@ -968,7 +971,7 @@ export interface _Record {
968971
eventVersion?: string;
969972

970973
/**
971-
* <p>The AWS service from which the stream record originated. For DynamoDB Streams, this is <code>aws:dynamodb</code>.</p>
974+
* <p>The Amazon Web Services service from which the stream record originated. For DynamoDB Streams, this is <code>aws:dynamodb</code>.</p>
972975
*/
973976
eventSource?: string;
974977

0 commit comments

Comments
 (0)