api.go 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package dynamodbstreams provides a client for Amazon DynamoDB Streams.
  3. package dynamodbstreams
  4. import (
  5. "time"
  6. "github.com/aws/aws-sdk-go/aws/awsutil"
  7. "github.com/aws/aws-sdk-go/aws/request"
  8. "github.com/aws/aws-sdk-go/service/dynamodb"
  9. )
  10. const opDescribeStream = "DescribeStream"
  11. // DescribeStreamRequest generates a request for the DescribeStream operation.
  12. func (c *DynamoDBStreams) DescribeStreamRequest(input *DescribeStreamInput) (req *request.Request, output *DescribeStreamOutput) {
  13. op := &request.Operation{
  14. Name: opDescribeStream,
  15. HTTPMethod: "POST",
  16. HTTPPath: "/",
  17. }
  18. if input == nil {
  19. input = &DescribeStreamInput{}
  20. }
  21. req = c.newRequest(op, input, output)
  22. output = &DescribeStreamOutput{}
  23. req.Data = output
  24. return
  25. }
  26. // Returns information about a stream, including the current status of the stream,
  27. // its Amazon Resource Name (ARN), the composition of its shards, and its corresponding
  28. // DynamoDB table.
  29. //
  30. // You can call DescribeStream at a maximum rate of 10 times per second.
  31. //
  32. // Each shard in the stream has a SequenceNumberRange associated with it. If
  33. // the SequenceNumberRange has a StartingSequenceNumber but no EndingSequenceNumber,
  34. // then the shard is still open (able to receive more stream records). If both
  35. // StartingSequenceNumber and EndingSequenceNumber are present, the that shared
  36. // is closed and can no longer receive more data.
  37. func (c *DynamoDBStreams) DescribeStream(input *DescribeStreamInput) (*DescribeStreamOutput, error) {
  38. req, out := c.DescribeStreamRequest(input)
  39. err := req.Send()
  40. return out, err
  41. }
  42. const opGetRecords = "GetRecords"
  43. // GetRecordsRequest generates a request for the GetRecords operation.
  44. func (c *DynamoDBStreams) GetRecordsRequest(input *GetRecordsInput) (req *request.Request, output *GetRecordsOutput) {
  45. op := &request.Operation{
  46. Name: opGetRecords,
  47. HTTPMethod: "POST",
  48. HTTPPath: "/",
  49. }
  50. if input == nil {
  51. input = &GetRecordsInput{}
  52. }
  53. req = c.newRequest(op, input, output)
  54. output = &GetRecordsOutput{}
  55. req.Data = output
  56. return
  57. }
  58. // Retrieves the stream records from a given shard.
  59. //
  60. // Specify a shard iterator using the ShardIterator parameter. The shard iterator
  61. // specifies the position in the shard from which you want to start reading
  62. // stream records sequentially. If there are no stream records available in
  63. // the portion of the shard that the iterator points to, GetRecords returns
  64. // an empty list. Note that it might take multiple calls to get to a portion
  65. // of the shard that contains stream records.
  66. //
  67. // GetRecords can retrieve a maximum of 1 MB of data or 2000 stream records,
  68. // whichever comes first.
  69. func (c *DynamoDBStreams) GetRecords(input *GetRecordsInput) (*GetRecordsOutput, error) {
  70. req, out := c.GetRecordsRequest(input)
  71. err := req.Send()
  72. return out, err
  73. }
  74. const opGetShardIterator = "GetShardIterator"
  75. // GetShardIteratorRequest generates a request for the GetShardIterator operation.
  76. func (c *DynamoDBStreams) GetShardIteratorRequest(input *GetShardIteratorInput) (req *request.Request, output *GetShardIteratorOutput) {
  77. op := &request.Operation{
  78. Name: opGetShardIterator,
  79. HTTPMethod: "POST",
  80. HTTPPath: "/",
  81. }
  82. if input == nil {
  83. input = &GetShardIteratorInput{}
  84. }
  85. req = c.newRequest(op, input, output)
  86. output = &GetShardIteratorOutput{}
  87. req.Data = output
  88. return
  89. }
  90. // Returns a shard iterator. A shard iterator provides information about how
  91. // to retrieve the stream records from within a shard. Use the shard iterator
  92. // in a subsequent GetRecords request to read the stream records from the shard.
  93. //
  94. // A shard iterator expires 15 minutes after it is returned to the requester.
  95. func (c *DynamoDBStreams) GetShardIterator(input *GetShardIteratorInput) (*GetShardIteratorOutput, error) {
  96. req, out := c.GetShardIteratorRequest(input)
  97. err := req.Send()
  98. return out, err
  99. }
  100. const opListStreams = "ListStreams"
  101. // ListStreamsRequest generates a request for the ListStreams operation.
  102. func (c *DynamoDBStreams) ListStreamsRequest(input *ListStreamsInput) (req *request.Request, output *ListStreamsOutput) {
  103. op := &request.Operation{
  104. Name: opListStreams,
  105. HTTPMethod: "POST",
  106. HTTPPath: "/",
  107. }
  108. if input == nil {
  109. input = &ListStreamsInput{}
  110. }
  111. req = c.newRequest(op, input, output)
  112. output = &ListStreamsOutput{}
  113. req.Data = output
  114. return
  115. }
  116. // Returns an array of stream ARNs associated with the current account and endpoint.
  117. // If the TableName parameter is present, then ListStreams will return only
  118. // the streams ARNs for that table.
  119. //
  120. // You can call ListStreams at a maximum rate of 5 times per second.
  121. func (c *DynamoDBStreams) ListStreams(input *ListStreamsInput) (*ListStreamsOutput, error) {
  122. req, out := c.ListStreamsRequest(input)
  123. err := req.Send()
  124. return out, err
  125. }
  126. // Represents the input of a DescribeStream operation.
  127. type DescribeStreamInput struct {
  128. // The shard ID of the first item that this operation will evaluate. Use the
  129. // value that was returned for LastEvaluatedShardId in the previous operation.
  130. ExclusiveStartShardId *string `type:"string"`
  131. // The maximum number of shard objects to return. The upper limit is 100.
  132. Limit *int64 `type:"integer"`
  133. // The Amazon Resource Name (ARN) for the stream.
  134. StreamArn *string `type:"string" required:"true"`
  135. metadataDescribeStreamInput `json:"-" xml:"-"`
  136. }
  137. type metadataDescribeStreamInput struct {
  138. SDKShapeTraits bool `type:"structure"`
  139. }
  140. // String returns the string representation
  141. func (s DescribeStreamInput) String() string {
  142. return awsutil.Prettify(s)
  143. }
  144. // GoString returns the string representation
  145. func (s DescribeStreamInput) GoString() string {
  146. return s.String()
  147. }
  148. // Represents the output of a DescribeStream operation.
  149. type DescribeStreamOutput struct {
  150. // A complete description of the stream, including its creation date and time,
  151. // the DynamoDB table associated with the stream, the shard IDs within the stream,
  152. // and the beginning and ending sequence numbers of stream records within the
  153. // shards.
  154. StreamDescription *StreamDescription `type:"structure"`
  155. metadataDescribeStreamOutput `json:"-" xml:"-"`
  156. }
  157. type metadataDescribeStreamOutput struct {
  158. SDKShapeTraits bool `type:"structure"`
  159. }
  160. // String returns the string representation
  161. func (s DescribeStreamOutput) String() string {
  162. return awsutil.Prettify(s)
  163. }
  164. // GoString returns the string representation
  165. func (s DescribeStreamOutput) GoString() string {
  166. return s.String()
  167. }
  168. // Represents the input of a GetRecords operation.
  169. type GetRecordsInput struct {
  170. // The maximum number of records to return from the shard. The upper limit is
  171. // 1000.
  172. Limit *int64 `type:"integer"`
  173. // A shard iterator that was retrieved from a previous GetShardIterator operation.
  174. // This iterator can be used to access the stream records in this shard.
  175. ShardIterator *string `type:"string" required:"true"`
  176. metadataGetRecordsInput `json:"-" xml:"-"`
  177. }
  178. type metadataGetRecordsInput struct {
  179. SDKShapeTraits bool `type:"structure"`
  180. }
  181. // String returns the string representation
  182. func (s GetRecordsInput) String() string {
  183. return awsutil.Prettify(s)
  184. }
  185. // GoString returns the string representation
  186. func (s GetRecordsInput) GoString() string {
  187. return s.String()
  188. }
  189. // Represents the output of a GetRecords operation.
  190. type GetRecordsOutput struct {
  191. // The next position in the shard from which to start sequentially reading stream
  192. // records. If set to null, the shard has been closed and the requested iterator
  193. // will not return any more data.
  194. NextShardIterator *string `type:"string"`
  195. // The stream records from the shard, which were retrieved using the shard iterator.
  196. Records []*Record `type:"list"`
  197. metadataGetRecordsOutput `json:"-" xml:"-"`
  198. }
  199. type metadataGetRecordsOutput struct {
  200. SDKShapeTraits bool `type:"structure"`
  201. }
  202. // String returns the string representation
  203. func (s GetRecordsOutput) String() string {
  204. return awsutil.Prettify(s)
  205. }
  206. // GoString returns the string representation
  207. func (s GetRecordsOutput) GoString() string {
  208. return s.String()
  209. }
  210. // Represents the input of a GetShardIterator operation.
  211. type GetShardIteratorInput struct {
  212. // The sequence number of a stream record in the shard from which to start reading.
  213. SequenceNumber *string `type:"string"`
  214. // The identifier of the shard. The iterator will be returned for this shard
  215. // ID.
  216. ShardId *string `type:"string" required:"true"`
  217. // Determines how the shard iterator is used to start reading stream records
  218. // from the shard:
  219. //
  220. // AT_SEQUENCE_NUMBER - Start reading exactly from the position denoted by
  221. // a specific sequence number.
  222. //
  223. // AFTER_SEQUENCE_NUMBER - Start reading right after the position denoted
  224. // by a specific sequence number.
  225. //
  226. // TRIM_HORIZON - Start reading at the last (untrimmed) stream record, which
  227. // is the oldest record in the shard. In DynamoDB Streams, there is a 24 hour
  228. // limit on data retention. Stream records whose age exceeds this limit are
  229. // subject to removal (trimming) from the stream.
  230. //
  231. // LATEST - Start reading just after the most recent stream record in the
  232. // shard, so that you always read the most recent data in the shard.
  233. ShardIteratorType *string `type:"string" required:"true" enum:"ShardIteratorType"`
  234. // The Amazon Resource Name (ARN) for the stream.
  235. StreamArn *string `type:"string" required:"true"`
  236. metadataGetShardIteratorInput `json:"-" xml:"-"`
  237. }
  238. type metadataGetShardIteratorInput struct {
  239. SDKShapeTraits bool `type:"structure"`
  240. }
  241. // String returns the string representation
  242. func (s GetShardIteratorInput) String() string {
  243. return awsutil.Prettify(s)
  244. }
  245. // GoString returns the string representation
  246. func (s GetShardIteratorInput) GoString() string {
  247. return s.String()
  248. }
  249. // Represents the output of a GetShardIterator operation.
  250. type GetShardIteratorOutput struct {
  251. // The position in the shard from which to start reading stream records sequentially.
  252. // A shard iterator specifies this position using the sequence number of a stream
  253. // record in a shard.
  254. ShardIterator *string `type:"string"`
  255. metadataGetShardIteratorOutput `json:"-" xml:"-"`
  256. }
  257. type metadataGetShardIteratorOutput struct {
  258. SDKShapeTraits bool `type:"structure"`
  259. }
  260. // String returns the string representation
  261. func (s GetShardIteratorOutput) String() string {
  262. return awsutil.Prettify(s)
  263. }
  264. // GoString returns the string representation
  265. func (s GetShardIteratorOutput) GoString() string {
  266. return s.String()
  267. }
  268. // Represents the input of a ListStreams operation.
  269. type ListStreamsInput struct {
  270. // The ARN (Amazon Resource Name) of the first item that this operation will
  271. // evaluate. Use the value that was returned for LastEvaluatedStreamArn in the
  272. // previous operation.
  273. ExclusiveStartStreamArn *string `type:"string"`
  274. // The maximum number of streams to return. The upper limit is 100.
  275. Limit *int64 `type:"integer"`
  276. // If this parameter is provided, then only the streams associated with this
  277. // table name are returned.
  278. TableName *string `type:"string"`
  279. metadataListStreamsInput `json:"-" xml:"-"`
  280. }
  281. type metadataListStreamsInput struct {
  282. SDKShapeTraits bool `type:"structure"`
  283. }
  284. // String returns the string representation
  285. func (s ListStreamsInput) String() string {
  286. return awsutil.Prettify(s)
  287. }
  288. // GoString returns the string representation
  289. func (s ListStreamsInput) GoString() string {
  290. return s.String()
  291. }
  292. // Represents the output of a ListStreams operation.
  293. type ListStreamsOutput struct {
  294. // The stream ARN of the item where the operation stopped, inclusive of the
  295. // previous result set. Use this value to start a new operation, excluding this
  296. // value in the new request.
  297. //
  298. // If LastEvaluatedStreamArn is empty, then the "last page" of results has
  299. // been processed and there is no more data to be retrieved.
  300. //
  301. // If LastEvaluatedStreamArn is not empty, it does not necessarily mean that
  302. // there is more data in the result set. The only way to know when you have
  303. // reached the end of the result set is when LastEvaluatedStreamArn is empty.
  304. LastEvaluatedStreamArn *string `type:"string"`
  305. // A list of stream descriptors associated with the current account and endpoint.
  306. Streams []*Stream `type:"list"`
  307. metadataListStreamsOutput `json:"-" xml:"-"`
  308. }
  309. type metadataListStreamsOutput struct {
  310. SDKShapeTraits bool `type:"structure"`
  311. }
  312. // String returns the string representation
  313. func (s ListStreamsOutput) String() string {
  314. return awsutil.Prettify(s)
  315. }
  316. // GoString returns the string representation
  317. func (s ListStreamsOutput) GoString() string {
  318. return s.String()
  319. }
  320. // A description of a unique event within a stream.
  321. type Record struct {
  322. // The region in which the GetRecords request was received.
  323. AwsRegion *string `locationName:"awsRegion" type:"string"`
  324. // The main body of the stream record, containing all of the DynamoDB-specific
  325. // fields.
  326. Dynamodb *StreamRecord `locationName:"dynamodb" type:"structure"`
  327. // A globally unique identifier for the event that was recorded in this stream
  328. // record.
  329. EventID *string `locationName:"eventID" type:"string"`
  330. // The type of data modification that was performed on the DynamoDB table:
  331. //
  332. // INSERT - a new item was added to the table.
  333. //
  334. // MODIFY - one or more of the item's attributes were updated.
  335. //
  336. // REMOVE - the item was deleted from the table
  337. EventName *string `locationName:"eventName" type:"string" enum:"OperationType"`
  338. // The AWS service from which the stream record originated. For DynamoDB Streams,
  339. // this is aws:dynamodb.
  340. EventSource *string `locationName:"eventSource" type:"string"`
  341. // The version number of the stream record format. Currently, this is 1.0.
  342. EventVersion *string `locationName:"eventVersion" type:"string"`
  343. metadataRecord `json:"-" xml:"-"`
  344. }
  345. type metadataRecord struct {
  346. SDKShapeTraits bool `type:"structure"`
  347. }
  348. // String returns the string representation
  349. func (s Record) String() string {
  350. return awsutil.Prettify(s)
  351. }
  352. // GoString returns the string representation
  353. func (s Record) GoString() string {
  354. return s.String()
  355. }
  356. // The beginning and ending sequence numbers for the stream records contained
  357. // within a shard.
  358. type SequenceNumberRange struct {
  359. // The last sequence number.
  360. EndingSequenceNumber *string `type:"string"`
  361. // The first sequence number.
  362. StartingSequenceNumber *string `type:"string"`
  363. metadataSequenceNumberRange `json:"-" xml:"-"`
  364. }
  365. type metadataSequenceNumberRange struct {
  366. SDKShapeTraits bool `type:"structure"`
  367. }
  368. // String returns the string representation
  369. func (s SequenceNumberRange) String() string {
  370. return awsutil.Prettify(s)
  371. }
  372. // GoString returns the string representation
  373. func (s SequenceNumberRange) GoString() string {
  374. return s.String()
  375. }
  376. // A uniquely identified group of stream records within a stream.
  377. type Shard struct {
  378. // The shard ID of the current shard's parent.
  379. ParentShardId *string `type:"string"`
  380. // The range of possible sequence numbers for the shard.
  381. SequenceNumberRange *SequenceNumberRange `type:"structure"`
  382. // The system-generated identifier for this shard.
  383. ShardId *string `type:"string"`
  384. metadataShard `json:"-" xml:"-"`
  385. }
  386. type metadataShard struct {
  387. SDKShapeTraits bool `type:"structure"`
  388. }
  389. // String returns the string representation
  390. func (s Shard) String() string {
  391. return awsutil.Prettify(s)
  392. }
  393. // GoString returns the string representation
  394. func (s Shard) GoString() string {
  395. return s.String()
  396. }
  397. // Represents all of the data describing a particular stream.
  398. type Stream struct {
  399. // The Amazon Resource Name (ARN) for the stream.
  400. StreamArn *string `type:"string"`
  401. // A timestamp, in ISO 8601 format, for this stream.
  402. //
  403. // Note that LatestStreamLabel is not a unique identifier for the stream, because
  404. // it is possible that a stream from another table might have the same timestamp.
  405. // However, the combination of the following three elements is guaranteed to
  406. // be unique:
  407. //
  408. // the AWS customer ID.
  409. //
  410. // the table name
  411. //
  412. // the StreamLabel
  413. StreamLabel *string `type:"string"`
  414. // The DynamoDB table with which the stream is associated.
  415. TableName *string `type:"string"`
  416. metadataStream `json:"-" xml:"-"`
  417. }
  418. type metadataStream struct {
  419. SDKShapeTraits bool `type:"structure"`
  420. }
  421. // String returns the string representation
  422. func (s Stream) String() string {
  423. return awsutil.Prettify(s)
  424. }
  425. // GoString returns the string representation
  426. func (s Stream) GoString() string {
  427. return s.String()
  428. }
  429. // Represents all of the data describing a particular stream.
  430. type StreamDescription struct {
  431. // The date and time when the request to create this stream was issued.
  432. CreationRequestDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  433. // The key attribute(s) of the stream's DynamoDB table.
  434. KeySchema []*dynamodb.KeySchemaElement `type:"list"`
  435. // The shard ID of the item where the operation stopped, inclusive of the previous
  436. // result set. Use this value to start a new operation, excluding this value
  437. // in the new request.
  438. //
  439. // If LastEvaluatedShardId is empty, then the "last page" of results has been
  440. // processed and there is currently no more data to be retrieved.
  441. //
  442. // If LastEvaluatedShardId is not empty, it does not necessarily mean that
  443. // there is more data in the result set. The only way to know when you have
  444. // reached the end of the result set is when LastEvaluatedShardId is empty.
  445. LastEvaluatedShardId *string `type:"string"`
  446. // The shards that comprise the stream.
  447. Shards []*Shard `type:"list"`
  448. // The Amazon Resource Name (ARN) for the stream.
  449. StreamArn *string `type:"string"`
  450. // A timestamp, in ISO 8601 format, for this stream.
  451. //
  452. // Note that LatestStreamLabel is not a unique identifier for the stream, because
  453. // it is possible that a stream from another table might have the same timestamp.
  454. // However, the combination of the following three elements is guaranteed to
  455. // be unique:
  456. //
  457. // the AWS customer ID.
  458. //
  459. // the table name
  460. //
  461. // the StreamLabel
  462. StreamLabel *string `type:"string"`
  463. // Indicates the current status of the stream:
  464. //
  465. // ENABLING - Streams is currently being enabled on the DynamoDB table.
  466. //
  467. // ENABLING - the stream is enabled.
  468. //
  469. // DISABLING - Streams is currently being disabled on the DynamoDB table.
  470. //
  471. // DISABLED - the stream is disabled.
  472. StreamStatus *string `type:"string" enum:"StreamStatus"`
  473. // Indicates the format of the records within this stream:
  474. //
  475. // KEYS_ONLY - only the key attributes of items that were modified in the
  476. // DynamoDB table.
  477. //
  478. // NEW_IMAGE - entire item from the table, as it appeared after they were modified.
  479. //
  480. // OLD_IMAGE - entire item from the table, as it appeared before they were
  481. // modified.
  482. //
  483. // NEW_AND_OLD_IMAGES - both the new and the old images of the items from the
  484. // table.
  485. StreamViewType *string `type:"string" enum:"StreamViewType"`
  486. // The DynamoDB table with which the stream is associated.
  487. TableName *string `type:"string"`
  488. metadataStreamDescription `json:"-" xml:"-"`
  489. }
  490. type metadataStreamDescription struct {
  491. SDKShapeTraits bool `type:"structure"`
  492. }
  493. // String returns the string representation
  494. func (s StreamDescription) String() string {
  495. return awsutil.Prettify(s)
  496. }
  497. // GoString returns the string representation
  498. func (s StreamDescription) GoString() string {
  499. return s.String()
  500. }
  501. // A description of a single data modification that was performed on an item
  502. // in a DynamoDB table.
  503. type StreamRecord struct {
  504. // The primary key attribute(s) for the DynamoDB item that was modified.
  505. Keys map[string]*dynamodb.AttributeValue `type:"map"`
  506. // The item in the DynamoDB table as it appeared after it was modified.
  507. NewImage map[string]*dynamodb.AttributeValue `type:"map"`
  508. // The item in the DynamoDB table as it appeared before it was modified.
  509. OldImage map[string]*dynamodb.AttributeValue `type:"map"`
  510. // The sequence number of the stream record.
  511. SequenceNumber *string `type:"string"`
  512. // The size of the stream record, in bytes.
  513. SizeBytes *int64 `type:"long"`
  514. // The type of data from the modified DynamoDB item that was captured in this
  515. // stream record:
  516. //
  517. // KEYS_ONLY - only the key attributes of the modified item.
  518. //
  519. // NEW_IMAGE - the entire item, as it appears after it was modified.
  520. //
  521. // OLD_IMAGE - the entire item, as it appeared before it was modified.
  522. //
  523. // NEW_AND_OLD_IMAGES — both the new and the old item images of the item.
  524. StreamViewType *string `type:"string" enum:"StreamViewType"`
  525. metadataStreamRecord `json:"-" xml:"-"`
  526. }
  527. type metadataStreamRecord struct {
  528. SDKShapeTraits bool `type:"structure"`
  529. }
  530. // String returns the string representation
  531. func (s StreamRecord) String() string {
  532. return awsutil.Prettify(s)
  533. }
  534. // GoString returns the string representation
  535. func (s StreamRecord) GoString() string {
  536. return s.String()
  537. }
  538. const (
  539. // @enum KeyType
  540. KeyTypeHash = "HASH"
  541. // @enum KeyType
  542. KeyTypeRange = "RANGE"
  543. )
  544. const (
  545. // @enum OperationType
  546. OperationTypeInsert = "INSERT"
  547. // @enum OperationType
  548. OperationTypeModify = "MODIFY"
  549. // @enum OperationType
  550. OperationTypeRemove = "REMOVE"
  551. )
  552. const (
  553. // @enum ShardIteratorType
  554. ShardIteratorTypeTrimHorizon = "TRIM_HORIZON"
  555. // @enum ShardIteratorType
  556. ShardIteratorTypeLatest = "LATEST"
  557. // @enum ShardIteratorType
  558. ShardIteratorTypeAtSequenceNumber = "AT_SEQUENCE_NUMBER"
  559. // @enum ShardIteratorType
  560. ShardIteratorTypeAfterSequenceNumber = "AFTER_SEQUENCE_NUMBER"
  561. )
  562. const (
  563. // @enum StreamStatus
  564. StreamStatusEnabling = "ENABLING"
  565. // @enum StreamStatus
  566. StreamStatusEnabled = "ENABLED"
  567. // @enum StreamStatus
  568. StreamStatusDisabling = "DISABLING"
  569. // @enum StreamStatus
  570. StreamStatusDisabled = "DISABLED"
  571. )
  572. const (
  573. // @enum StreamViewType
  574. StreamViewTypeNewImage = "NEW_IMAGE"
  575. // @enum StreamViewType
  576. StreamViewTypeOldImage = "OLD_IMAGE"
  577. // @enum StreamViewType
  578. StreamViewTypeNewAndOldImages = "NEW_AND_OLD_IMAGES"
  579. // @enum StreamViewType
  580. StreamViewTypeKeysOnly = "KEYS_ONLY"
  581. )