document_client.d.ts 243 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746
  1. import DynamoDB = require('../../clients/dynamodb');
  2. import * as stream from 'stream';
  3. import {Request} from '../request';
  4. import {AWSError} from '../error';
  5. interface File {}
  6. interface Blob {}
  7. /**
  8. * The document client simplifies working with items in Amazon DynamoDB
  9. * by abstracting away the notion of attribute values. This abstraction
  10. * annotates native JavaScript types supplied as input parameters, as well
  11. * as converts annotated response data to native JavaScript types.
  12. */
  13. export class DocumentClient {
  14. /**
  15. * Creates a DynamoDB document client with a set of configuration options.
  16. */
  17. constructor(options?: DocumentClient.DocumentClientOptions & DynamoDB.Types.ClientConfiguration)
  18. /**
  19. * Creates a set of elements inferring the type of set from the type of the first element. Amazon DynamoDB currently supports the number sets, string sets, and binary sets. For more information about DynamoDB data types see the documentation on the Amazon DynamoDB Data Model.
  20. */
  21. createSet(list: number[]|string[]|DocumentClient.binaryType[], options?: DocumentClient.CreateSetOptions): DocumentClient.DynamoDbSet;
  22. /**
  23. * Returns the attributes of one or more items from one or more tables by delegating to AWS.DynamoDB.batchGetItem().
  24. */
  25. batchGet(params: DocumentClient.BatchGetItemInput, callback?: (err: AWSError, data: DocumentClient.BatchGetItemOutput) => void): Request<DocumentClient.BatchGetItemOutput, AWSError>;
  26. /**
  27. * Puts or deletes multiple items in one or more tables by delegating to AWS.DynamoDB.batchWriteItem().
  28. */
  29. batchWrite(params: DocumentClient.BatchWriteItemInput, callback?: (err: AWSError, data: DocumentClient.BatchWriteItemOutput) => void): Request<DocumentClient.BatchWriteItemOutput, AWSError>;
  30. /**
  31. * Deletes a single item in a table by primary key by delegating to AWS.DynamoDB.deleteItem().
  32. */
  33. delete(params: DocumentClient.DeleteItemInput, callback?: (err: AWSError, data: DocumentClient.DeleteItemOutput) => void): Request<DocumentClient.DeleteItemOutput, AWSError>;
  34. /**
  35. * Returns a set of attributes for the item with the given primary key by delegating to AWS.DynamoDB.getItem().
  36. */
  37. get(params: DocumentClient.GetItemInput, callback?: (err: AWSError, data: DocumentClient.GetItemOutput) => void): Request<DocumentClient.GetItemOutput, AWSError>;
  38. /**
  39. * Creates a new item, or replaces an old item with a new item by delegating to AWS.DynamoDB.putItem().
  40. */
  41. put(params: DocumentClient.PutItemInput, callback?: (err: AWSError, data: DocumentClient.PutItemOutput) => void): Request<DocumentClient.PutItemOutput, AWSError>;
  42. /**
  43. * Directly access items from a table by primary key or a secondary index.
  44. */
  45. query(params: DocumentClient.QueryInput, callback?: (err: AWSError, data: DocumentClient.QueryOutput) => void): Request<DocumentClient.QueryOutput, AWSError>;
  46. /**
  47. * Returns one or more items and item attributes by accessing every item in a table or a secondary index.
  48. */
  49. scan(params: DocumentClient.ScanInput, callback?: (err: AWSError, data: DocumentClient.ScanOutput) => void): Request<DocumentClient.ScanOutput, AWSError>;
  50. /**
  51. * Edits an existing item's attributes, or adds a new item to the table if it does not already exist by delegating to AWS.DynamoDB.updateItem().
  52. */
  53. update(params: DocumentClient.UpdateItemInput, callback?: (err: AWSError, data: DocumentClient.UpdateItemOutput) => void): Request<DocumentClient.UpdateItemOutput, AWSError>;
  54. /**
  55. * Atomically retrieves multiple items from one or more tables (but not from indexes) in a single account and region.
  56. */
  57. transactGet(params: DocumentClient.TransactGetItemsInput, callback?: (err: AWSError, data: DocumentClient.TransactGetItemsOutput) => void): Request<DocumentClient.TransactGetItemsOutput, AWSError>;
  58. /**
  59. * Synchronous write operation that groups up to 100 action requests.
  60. */
  61. transactWrite(params: DocumentClient.TransactWriteItemsInput, callback?: (err: AWSError, data: DocumentClient.TransactWriteItemsOutput) => void): Request<DocumentClient.TransactWriteItemsOutput, AWSError>;
  62. }
  63. export namespace DocumentClient {
  64. interface ConverterOptions {
  65. /**
  66. * An optional flag indicating that the document client should cast
  67. * empty strings, buffers, and sets to NULL shapes
  68. */
  69. convertEmptyValues?: boolean;
  70. /**
  71. * Whether to return numbers as a NumberValue object instead of
  72. * converting them to native JavaScript numbers. This allows for the
  73. * safe round-trip transport of numbers of arbitrary size.
  74. */
  75. wrapNumbers?: boolean;
  76. }
  77. export interface DocumentClientOptions extends ConverterOptions {
  78. /**
  79. * An optional map of parameters to bind to every request sent by this service object.
  80. */
  81. params?: {[key: string]: any}
  82. /**
  83. * An optional pre-configured instance
  84. * of the AWS.DynamoDB service object. This instance's config will be
  85. * copied to a new instance used by this client. You should not need to
  86. * retain a reference to the input object, and may destroy it or allow it
  87. * to be garbage collected.
  88. */
  89. service?: DynamoDB
  90. }
  91. export interface CreateSetOptions {
  92. /**
  93. * Set to true if you want to validate the type of each element in the set. Defaults to false.
  94. */
  95. validate?: boolean
  96. }
  97. export type binaryType = Buffer|File|Blob|ArrayBuffer|DataView|Int8Array|Uint8Array|Uint8ClampedArray|Int16Array|Uint16Array|Int32Array|Uint32Array|Float32Array|Float64Array|stream.Stream;
  98. interface StringSet {
  99. type: 'String';
  100. values: Array<string>;
  101. }
  102. interface NumberSet {
  103. type: 'Number';
  104. values: Array<number>;
  105. }
  106. interface BinarySet {
  107. type: 'Binary';
  108. values: Array<binaryType>;
  109. }
  110. export type DynamoDbSet = StringSet|NumberSet|BinarySet;
  111. }
  112. export namespace DocumentClient {
  113. //<!--auto-generated start-->
  114. interface Blob {}
  115. export type ApproximateCreationDateTimePrecision = "MILLISECOND"|"MICROSECOND"|string;
  116. export type ArchivalReason = string;
  117. export interface ArchivalSummary {
  118. /**
  119. * The date and time when table archival was initiated by DynamoDB, in UNIX epoch time format.
  120. */
  121. ArchivalDateTime?: _Date;
  122. /**
  123. * The reason DynamoDB archived the table. Currently, the only possible value is: INACCESSIBLE_ENCRYPTION_CREDENTIALS - The table was archived due to the table's KMS key being inaccessible for more than seven days. An On-Demand backup was created at the archival time.
  124. */
  125. ArchivalReason?: ArchivalReason;
  126. /**
  127. * The Amazon Resource Name (ARN) of the backup the table was archived to, when applicable in the archival reason. If you wish to restore this backup to the same table name, you will need to delete the original table.
  128. */
  129. ArchivalBackupArn?: BackupArn;
  130. }
  131. export type AttributeAction = "ADD"|"PUT"|"DELETE"|string;
  132. export interface AttributeDefinition {
  133. /**
  134. * A name for the attribute.
  135. */
  136. AttributeName: KeySchemaAttributeName;
  137. /**
  138. * The data type for the attribute, where: S - the attribute is of type String N - the attribute is of type Number B - the attribute is of type Binary
  139. */
  140. AttributeType: ScalarAttributeType;
  141. }
  142. export type AttributeDefinitions = AttributeDefinition[];
  143. export type AttributeMap = {[key: string]: AttributeValue};
  144. export type AttributeName = string;
  145. export type AttributeNameList = AttributeName[];
  146. export type AttributeUpdates = {[key: string]: AttributeValueUpdate};
  147. /**
  148. * A JavaScript object or native type.
  149. */
  150. export type AttributeValue = any;
  151. export type AttributeValueList = AttributeValue[];
  152. export interface AttributeValueUpdate {
  153. /**
  154. * Represents the data for an attribute. Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself. For more information, see Data Types in the Amazon DynamoDB Developer Guide.
  155. */
  156. Value?: AttributeValue;
  157. /**
  158. * Specifies how to perform the update. Valid values are PUT (default), DELETE, and ADD. The behavior depends on whether the specified primary key already exists in the table. If an item with the specified Key is found in the table: PUT - Adds the specified attribute to the item. If the attribute already exists, it is replaced by the new value. DELETE - If no value is specified, the attribute and its value are removed from the item. The data type of the specified value must match the existing value's data type. If a set of values is specified, then those values are subtracted from the old set. For example, if the attribute value was the set [a,b,c] and the DELETE action specified [a,c], then the final attribute value would be [b]. Specifying an empty set is an error. ADD - If the attribute does not already exist, then the attribute and its values are added to the item. If the attribute does exist, then the behavior of ADD depends on the data type of the attribute: If the existing attribute is a number, and if Value is also a number, then the Value is mathematically added to the existing attribute. If Value is a negative number, then it is subtracted from the existing attribute. If you use ADD to increment or decrement a number value for an item that doesn't exist before the update, DynamoDB uses 0 as the initial value. In addition, if you use ADD to update an existing item, and intend to increment or decrement an attribute value which does not yet exist, DynamoDB uses 0 as the initial value. For example, suppose that the item you want to update does not yet have an attribute named itemcount, but you decide to ADD the number 3 to this attribute anyway, even though it currently does not exist. DynamoDB will create the itemcount attribute, set its initial value to 0, and finally add 3 to it. The result will be a new itemcount attribute in the item, with a value of 3. If the existing data type is a set, and if the Value is also a set, then the Value is added to the existing set. (This is a set operation, not mathematical addition.) For example, if the attribute value was the set [1,2], and the ADD action specified [3], then the final attribute value would be [1,2,3]. An error occurs if an Add action is specified for a set attribute and the attribute type specified does not match the existing set type. Both sets must have the same primitive data type. For example, if the existing data type is a set of strings, the Value must also be a set of strings. The same holds true for number sets and binary sets. This action is only valid for an existing attribute whose data type is number or is a set. Do not use ADD for any other data types. If no item with the specified Key is found: PUT - DynamoDB creates a new item with the specified primary key, and then adds the attribute. DELETE - Nothing happens; there is no attribute to delete. ADD - DynamoDB creates a new item with the supplied primary key and number (or set) for the attribute value. The only data types allowed are number, number set, string set or binary set.
  159. */
  160. Action?: AttributeAction;
  161. }
  162. export interface AutoScalingPolicyDescription {
  163. /**
  164. * The name of the scaling policy.
  165. */
  166. PolicyName?: AutoScalingPolicyName;
  167. /**
  168. * Represents a target tracking scaling policy configuration.
  169. */
  170. TargetTrackingScalingPolicyConfiguration?: AutoScalingTargetTrackingScalingPolicyConfigurationDescription;
  171. }
  172. export type AutoScalingPolicyDescriptionList = AutoScalingPolicyDescription[];
  173. export type AutoScalingPolicyName = string;
  174. export interface AutoScalingPolicyUpdate {
  175. /**
  176. * The name of the scaling policy.
  177. */
  178. PolicyName?: AutoScalingPolicyName;
  179. /**
  180. * Represents a target tracking scaling policy configuration.
  181. */
  182. TargetTrackingScalingPolicyConfiguration: AutoScalingTargetTrackingScalingPolicyConfigurationUpdate;
  183. }
  184. export type AutoScalingRoleArn = string;
  185. export interface AutoScalingSettingsDescription {
  186. /**
  187. * The minimum capacity units that a global table or global secondary index should be scaled down to.
  188. */
  189. MinimumUnits?: PositiveLongObject;
  190. /**
  191. * The maximum capacity units that a global table or global secondary index should be scaled up to.
  192. */
  193. MaximumUnits?: PositiveLongObject;
  194. /**
  195. * Disabled auto scaling for this global table or global secondary index.
  196. */
  197. AutoScalingDisabled?: BooleanObject;
  198. /**
  199. * Role ARN used for configuring the auto scaling policy.
  200. */
  201. AutoScalingRoleArn?: String;
  202. /**
  203. * Information about the scaling policies.
  204. */
  205. ScalingPolicies?: AutoScalingPolicyDescriptionList;
  206. }
  207. export interface AutoScalingSettingsUpdate {
  208. /**
  209. * The minimum capacity units that a global table or global secondary index should be scaled down to.
  210. */
  211. MinimumUnits?: PositiveLongObject;
  212. /**
  213. * The maximum capacity units that a global table or global secondary index should be scaled up to.
  214. */
  215. MaximumUnits?: PositiveLongObject;
  216. /**
  217. * Disabled auto scaling for this global table or global secondary index.
  218. */
  219. AutoScalingDisabled?: BooleanObject;
  220. /**
  221. * Role ARN used for configuring auto scaling policy.
  222. */
  223. AutoScalingRoleArn?: AutoScalingRoleArn;
  224. /**
  225. * The scaling policy to apply for scaling target global table or global secondary index capacity units.
  226. */
  227. ScalingPolicyUpdate?: AutoScalingPolicyUpdate;
  228. }
  229. export interface AutoScalingTargetTrackingScalingPolicyConfigurationDescription {
  230. /**
  231. * Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.
  232. */
  233. DisableScaleIn?: BooleanObject;
  234. /**
  235. * The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application auto scaling scales out your scalable target immediately.
  236. */
  237. ScaleInCooldown?: IntegerObject;
  238. /**
  239. * The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.
  240. */
  241. ScaleOutCooldown?: IntegerObject;
  242. /**
  243. * The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).
  244. */
  245. TargetValue: DoubleObject;
  246. }
  247. export interface AutoScalingTargetTrackingScalingPolicyConfigurationUpdate {
  248. /**
  249. * Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.
  250. */
  251. DisableScaleIn?: BooleanObject;
  252. /**
  253. * The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application auto scaling scales out your scalable target immediately.
  254. */
  255. ScaleInCooldown?: IntegerObject;
  256. /**
  257. * The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.
  258. */
  259. ScaleOutCooldown?: IntegerObject;
  260. /**
  261. * The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).
  262. */
  263. TargetValue: DoubleObject;
  264. }
  265. export type Backfilling = boolean;
  266. export type BackupArn = string;
  267. export type BackupCreationDateTime = Date;
  268. export interface BackupDescription {
  269. /**
  270. * Contains the details of the backup created for the table.
  271. */
  272. BackupDetails?: BackupDetails;
  273. /**
  274. * Contains the details of the table when the backup was created.
  275. */
  276. SourceTableDetails?: SourceTableDetails;
  277. /**
  278. * Contains the details of the features enabled on the table when the backup was created. For example, LSIs, GSIs, streams, TTL.
  279. */
  280. SourceTableFeatureDetails?: SourceTableFeatureDetails;
  281. }
  282. export interface BackupDetails {
  283. /**
  284. * ARN associated with the backup.
  285. */
  286. BackupArn: BackupArn;
  287. /**
  288. * Name of the requested backup.
  289. */
  290. BackupName: BackupName;
  291. /**
  292. * Size of the backup in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.
  293. */
  294. BackupSizeBytes?: BackupSizeBytes;
  295. /**
  296. * Backup can be in one of the following states: CREATING, ACTIVE, DELETED.
  297. */
  298. BackupStatus: BackupStatus;
  299. /**
  300. * BackupType: USER - You create and manage these using the on-demand backup feature. SYSTEM - If you delete a table with point-in-time recovery enabled, a SYSTEM backup is automatically created and is retained for 35 days (at no additional cost). System backups allow you to restore the deleted table to the state it was in just before the point of deletion. AWS_BACKUP - On-demand backup created by you from Backup service.
  301. */
  302. BackupType: BackupType;
  303. /**
  304. * Time at which the backup was created. This is the request time of the backup.
  305. */
  306. BackupCreationDateTime: BackupCreationDateTime;
  307. /**
  308. * Time at which the automatic on-demand backup created by DynamoDB will expire. This SYSTEM on-demand backup expires automatically 35 days after its creation.
  309. */
  310. BackupExpiryDateTime?: _Date;
  311. }
  312. export type BackupName = string;
  313. export type BackupSizeBytes = number;
  314. export type BackupStatus = "CREATING"|"DELETED"|"AVAILABLE"|string;
  315. export type BackupSummaries = BackupSummary[];
  316. export interface BackupSummary {
  317. /**
  318. * Name of the table.
  319. */
  320. TableName?: TableName;
  321. /**
  322. * Unique identifier for the table.
  323. */
  324. TableId?: TableId;
  325. /**
  326. * ARN associated with the table.
  327. */
  328. TableArn?: TableArn;
  329. /**
  330. * ARN associated with the backup.
  331. */
  332. BackupArn?: BackupArn;
  333. /**
  334. * Name of the specified backup.
  335. */
  336. BackupName?: BackupName;
  337. /**
  338. * Time at which the backup was created.
  339. */
  340. BackupCreationDateTime?: BackupCreationDateTime;
  341. /**
  342. * Time at which the automatic on-demand backup created by DynamoDB will expire. This SYSTEM on-demand backup expires automatically 35 days after its creation.
  343. */
  344. BackupExpiryDateTime?: _Date;
  345. /**
  346. * Backup can be in one of the following states: CREATING, ACTIVE, DELETED.
  347. */
  348. BackupStatus?: BackupStatus;
  349. /**
  350. * BackupType: USER - You create and manage these using the on-demand backup feature. SYSTEM - If you delete a table with point-in-time recovery enabled, a SYSTEM backup is automatically created and is retained for 35 days (at no additional cost). System backups allow you to restore the deleted table to the state it was in just before the point of deletion. AWS_BACKUP - On-demand backup created by you from Backup service.
  351. */
  352. BackupType?: BackupType;
  353. /**
  354. * Size of the backup in bytes.
  355. */
  356. BackupSizeBytes?: BackupSizeBytes;
  357. }
  358. export type BackupType = "USER"|"SYSTEM"|"AWS_BACKUP"|string;
  359. export type BackupTypeFilter = "USER"|"SYSTEM"|"AWS_BACKUP"|"ALL"|string;
  360. export type BackupsInputLimit = number;
  361. export interface BatchExecuteStatementInput {
  362. /**
  363. * The list of PartiQL statements representing the batch to run.
  364. */
  365. Statements: PartiQLBatchRequest;
  366. ReturnConsumedCapacity?: ReturnConsumedCapacity;
  367. }
  368. export interface BatchExecuteStatementOutput {
  369. /**
  370. * The response to each PartiQL statement in the batch. The values of the list are ordered according to the ordering of the request statements.
  371. */
  372. Responses?: PartiQLBatchResponse;
  373. /**
  374. * The capacity units consumed by the entire operation. The values of the list are ordered according to the ordering of the statements.
  375. */
  376. ConsumedCapacity?: ConsumedCapacityMultiple;
  377. }
  378. export interface BatchGetItemInput {
  379. /**
  380. * A map of one or more table names or table ARNs and, for each table, a map that describes one or more items to retrieve from that table. Each table name or ARN can be used only once per BatchGetItem request. Each element in the map of items to retrieve consists of the following: ConsistentRead - If true, a strongly consistent read is used; if false (the default), an eventually consistent read is used. ExpressionAttributeNames - One or more substitution tokens for attribute names in the ProjectionExpression parameter. The following are some use cases for using ExpressionAttributeNames: To access an attribute whose name conflicts with a DynamoDB reserved word. To create a placeholder for repeating occurrences of an attribute name in an expression. To prevent special characters in an attribute name from being misinterpreted in an expression. Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name: Percentile The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames: {"#P":"Percentile"} You could then use this substitution in an expression, as in this example: #P = :val Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime. For more information about expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide. Keys - An array of primary key attribute values that define specific items in the table. For each primary key, you must provide all of the key attributes. For example, with a simple primary key, you only need to provide the partition key value. For a composite key, you must provide both the partition key value and the sort key value. ProjectionExpression - A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas. If no attribute names are specified, then all attributes are returned. If any of the requested attributes are not found, they do not appear in the result. For more information, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide. AttributesToGet - This is a legacy parameter. Use ProjectionExpression instead. For more information, see AttributesToGet in the Amazon DynamoDB Developer Guide.
  381. */
  382. RequestItems: BatchGetRequestMap;
  383. ReturnConsumedCapacity?: ReturnConsumedCapacity;
  384. }
  385. export interface BatchGetItemOutput {
  386. /**
  387. * A map of table name or table ARN to a list of items. Each object in Responses consists of a table name or ARN, along with a map of attribute data consisting of the data type and attribute value.
  388. */
  389. Responses?: BatchGetResponseMap;
  390. /**
  391. * A map of tables and their respective keys that were not processed with the current response. The UnprocessedKeys value is in the same form as RequestItems, so the value can be provided directly to a subsequent BatchGetItem operation. For more information, see RequestItems in the Request Parameters section. Each element consists of: Keys - An array of primary key attribute values that define specific items in the table. ProjectionExpression - One or more attributes to be retrieved from the table or index. By default, all attributes are returned. If a requested attribute is not found, it does not appear in the result. ConsistentRead - The consistency of a read operation. If set to true, then a strongly consistent read is used; otherwise, an eventually consistent read is used. If there are no unprocessed keys remaining, the response contains an empty UnprocessedKeys map.
  392. */
  393. UnprocessedKeys?: BatchGetRequestMap;
  394. /**
  395. * The read capacity units consumed by the entire BatchGetItem operation. Each element consists of: TableName - The table that consumed the provisioned throughput. CapacityUnits - The total number of capacity units consumed.
  396. */
  397. ConsumedCapacity?: ConsumedCapacityMultiple;
  398. }
  399. export type BatchGetRequestMap = {[key: string]: KeysAndAttributes};
  400. export type BatchGetResponseMap = {[key: string]: ItemList};
  401. export interface BatchStatementError {
  402. /**
  403. * The error code associated with the failed PartiQL batch statement.
  404. */
  405. Code?: BatchStatementErrorCodeEnum;
  406. /**
  407. * The error message associated with the PartiQL batch response.
  408. */
  409. Message?: String;
  410. /**
  411. * The item which caused the condition check to fail. This will be set if ReturnValuesOnConditionCheckFailure is specified as ALL_OLD.
  412. */
  413. Item?: AttributeMap;
  414. }
  415. export type BatchStatementErrorCodeEnum = "ConditionalCheckFailed"|"ItemCollectionSizeLimitExceeded"|"RequestLimitExceeded"|"ValidationError"|"ProvisionedThroughputExceeded"|"TransactionConflict"|"ThrottlingError"|"InternalServerError"|"ResourceNotFound"|"AccessDenied"|"DuplicateItem"|string;
  416. export interface BatchStatementRequest {
  417. /**
  418. * A valid PartiQL statement.
  419. */
  420. Statement: PartiQLStatement;
  421. /**
  422. * The parameters associated with a PartiQL statement in the batch request.
  423. */
  424. Parameters?: PreparedStatementParameters;
  425. /**
  426. * The read consistency of the PartiQL batch request.
  427. */
  428. ConsistentRead?: ConsistentRead;
  429. /**
  430. * An optional parameter that returns the item attributes for a PartiQL batch request operation that failed a condition check. There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed.
  431. */
  432. ReturnValuesOnConditionCheckFailure?: ReturnValuesOnConditionCheckFailure;
  433. }
  434. export interface BatchStatementResponse {
  435. /**
  436. * The error associated with a failed PartiQL batch statement.
  437. */
  438. Error?: BatchStatementError;
  439. /**
  440. * The table name associated with a failed PartiQL batch statement.
  441. */
  442. TableName?: TableName;
  443. /**
  444. * A DynamoDB item associated with a BatchStatementResponse
  445. */
  446. Item?: AttributeMap;
  447. }
  448. export interface BatchWriteItemInput {
  449. /**
  450. * A map of one or more table names or table ARNs and, for each table, a list of operations to be performed (DeleteRequest or PutRequest). Each element in the map consists of the following: DeleteRequest - Perform a DeleteItem operation on the specified item. The item to be deleted is identified by a Key subelement: Key - A map of primary key attribute values that uniquely identify the item. Each entry in this map consists of an attribute name and an attribute value. For each primary key, you must provide all of the key attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key. PutRequest - Perform a PutItem operation on the specified item. The item to be put is identified by an Item subelement: Item - A map of attributes and their values. Each entry in this map consists of an attribute name and an attribute value. Attribute values must not be null; string and binary type attributes must have lengths greater than zero; and set type attributes must not be empty. Requests that contain empty values are rejected with a ValidationException exception. If you specify any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition.
  451. */
  452. RequestItems: BatchWriteItemRequestMap;
  453. ReturnConsumedCapacity?: ReturnConsumedCapacity;
  454. /**
  455. * Determines whether item collection metrics are returned. If set to SIZE, the response includes statistics about item collections, if any, that were modified during the operation are returned in the response. If set to NONE (the default), no statistics are returned.
  456. */
  457. ReturnItemCollectionMetrics?: ReturnItemCollectionMetrics;
  458. }
  459. export interface BatchWriteItemOutput {
  460. /**
  461. * A map of tables and requests against those tables that were not processed. The UnprocessedItems value is in the same form as RequestItems, so you can provide this value directly to a subsequent BatchWriteItem operation. For more information, see RequestItems in the Request Parameters section. Each UnprocessedItems entry consists of a table name or table ARN and, for that table, a list of operations to perform (DeleteRequest or PutRequest). DeleteRequest - Perform a DeleteItem operation on the specified item. The item to be deleted is identified by a Key subelement: Key - A map of primary key attribute values that uniquely identify the item. Each entry in this map consists of an attribute name and an attribute value. PutRequest - Perform a PutItem operation on the specified item. The item to be put is identified by an Item subelement: Item - A map of attributes and their values. Each entry in this map consists of an attribute name and an attribute value. Attribute values must not be null; string and binary type attributes must have lengths greater than zero; and set type attributes must not be empty. Requests that contain empty values will be rejected with a ValidationException exception. If you specify any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition. If there are no unprocessed items remaining, the response contains an empty UnprocessedItems map.
  462. */
  463. UnprocessedItems?: BatchWriteItemRequestMap;
  464. /**
  465. * A list of tables that were processed by BatchWriteItem and, for each table, information about any item collections that were affected by individual DeleteItem or PutItem operations. Each entry consists of the following subelements: ItemCollectionKey - The partition key value of the item collection. This is the same as the partition key value of the item. SizeEstimateRangeGB - An estimate of item collection size, expressed in GB. This is a two-element array containing a lower bound and an upper bound for the estimate. The estimate includes the size of all the items in the table, plus the size of all attributes projected into all of the local secondary indexes on the table. Use this estimate to measure whether a local secondary index is approaching its size limit. The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.
  466. */
  467. ItemCollectionMetrics?: ItemCollectionMetricsPerTable;
  468. /**
  469. * The capacity units consumed by the entire BatchWriteItem operation. Each element consists of: TableName - The table that consumed the provisioned throughput. CapacityUnits - The total number of capacity units consumed.
  470. */
  471. ConsumedCapacity?: ConsumedCapacityMultiple;
  472. }
  473. export type BatchWriteItemRequestMap = {[key: string]: WriteRequests};
  474. export type BilledSizeBytes = number;
  475. export type BillingMode = "PROVISIONED"|"PAY_PER_REQUEST"|string;
  476. export interface BillingModeSummary {
  477. /**
  478. * Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later. PROVISIONED - Sets the read/write capacity mode to PROVISIONED. We recommend using PROVISIONED for predictable workloads. PAY_PER_REQUEST - Sets the read/write capacity mode to PAY_PER_REQUEST. We recommend using PAY_PER_REQUEST for unpredictable workloads.
  479. */
  480. BillingMode?: BillingMode;
  481. /**
  482. * Represents the time when PAY_PER_REQUEST was last set as the read/write capacity mode.
  483. */
  484. LastUpdateToPayPerRequestDateTime?: _Date;
  485. }
  486. export type BinaryAttributeValue = Buffer|Uint8Array|Blob|string;
  487. export type BinarySetAttributeValue = BinaryAttributeValue[];
  488. export type BooleanAttributeValue = boolean;
  489. export type BooleanObject = boolean;
  490. export interface Capacity {
  491. /**
  492. * The total number of read capacity units consumed on a table or an index.
  493. */
  494. ReadCapacityUnits?: ConsumedCapacityUnits;
  495. /**
  496. * The total number of write capacity units consumed on a table or an index.
  497. */
  498. WriteCapacityUnits?: ConsumedCapacityUnits;
  499. /**
  500. * The total number of capacity units consumed on a table or an index.
  501. */
  502. CapacityUnits?: ConsumedCapacityUnits;
  503. }
  504. export type ClientRequestToken = string;
  505. export type ClientToken = string;
  506. export type CloudWatchLogGroupArn = string;
  507. export type ComparisonOperator = "EQ"|"NE"|"IN"|"LE"|"LT"|"GE"|"GT"|"BETWEEN"|"NOT_NULL"|"NULL"|"CONTAINS"|"NOT_CONTAINS"|"BEGINS_WITH"|string;
  508. export interface Condition {
  509. /**
  510. * One or more values to evaluate against the supplied attribute. The number of values in the list depends on the ComparisonOperator being used. For type Number, value comparisons are numeric. String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, a is greater than A, and a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters. For Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.
  511. */
  512. AttributeValueList?: AttributeValueList;
  513. /**
  514. * A comparator for evaluating attributes. For example, equals, greater than, less than, etc. The following comparison operators are available: EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN The following are descriptions of each comparison operator. EQ : Equal. EQ is supported for all data types, including lists and maps. AttributeValueList can contain only one AttributeValue element of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. NE : Not equal. NE is supported for all data types, including lists and maps. AttributeValueList can contain only one AttributeValue of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue of a different type than the one provided in the request, the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. LE : Less than or equal. AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} does not compare to {"NS":["6", "2", "1"]}. LT : Less than. AttributeValueList can contain only one AttributeValue of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} does not compare to {"NS":["6", "2", "1"]}. GE : Greater than or equal. AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} does not compare to {"NS":["6", "2", "1"]}. GT : Greater than. AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} does not compare to {"NS":["6", "2", "1"]}. NOT_NULL : The attribute exists. NOT_NULL is supported for all data types, including lists and maps. This operator tests for the existence of an attribute, not its data type. If the data type of attribute "a" is null, and you evaluate it using NOT_NULL, the result is a Boolean true. This result is because the attribute "a" exists; its data type is not relevant to the NOT_NULL comparison operator. NULL : The attribute does not exist. NULL is supported for all data types, including lists and maps. This operator tests for the nonexistence of an attribute, not its data type. If the data type of attribute "a" is null, and you evaluate it using NULL, the result is a Boolean false. This is because the attribute "a" exists; its data type is not relevant to the NULL comparison operator. CONTAINS : Checks for a subsequence, or value in a set. AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is of type String, then the operator checks for a substring match. If the target attribute of the comparison is of type Binary, then the operator looks for a subsequence of the target that matches the input. If the target attribute of the comparison is a set ("SS", "NS", or "BS"), then the operator evaluates to true if it finds an exact match with any member of the set. CONTAINS is supported for lists: When evaluating "a CONTAINS b", "a" can be a list; however, "b" cannot be a set, a map, or a list. NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value in a set. AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is a String, then the operator checks for the absence of a substring match. If the target attribute of the comparison is Binary, then the operator checks for the absence of a subsequence of the target that matches the input. If the target attribute of the comparison is a set ("SS", "NS", or "BS"), then the operator evaluates to true if it does not find an exact match with any member of the set. NOT_CONTAINS is supported for lists: When evaluating "a NOT CONTAINS b", "a" can be a list; however, "b" cannot be a set, a map, or a list. BEGINS_WITH : Checks for a prefix. AttributeValueList can contain only one AttributeValue of type String or Binary (not a Number or a set type). The target attribute of the comparison must be of type String or Binary (not a Number or a set type). IN : Checks for matching elements in a list. AttributeValueList can contain one or more AttributeValue elements of type String, Number, or Binary. These attributes are compared against an existing attribute of an item. If any elements of the input are equal to the item attribute, the expression evaluates to true. BETWEEN : Greater than or equal to the first value, and less than or equal to the second value. AttributeValueList must contain two AttributeValue elements of the same type, either String, Number, or Binary (not a set type). A target attribute matches if the target value is greater than, or equal to, the first element and less than, or equal to, the second element. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {"S":"6"} does not compare to {"N":"6"}. Also, {"N":"6"} does not compare to {"NS":["6", "2", "1"]} For usage examples of AttributeValueList and ComparisonOperator, see Legacy Conditional Parameters in the Amazon DynamoDB Developer Guide.
  515. */
  516. ComparisonOperator: ComparisonOperator;
  517. }
  518. export interface ConditionCheck {
  519. /**
  520. * The primary key of the item to be checked. Each element consists of an attribute name and a value for that attribute.
  521. */
  522. Key: Key;
  523. /**
  524. * Name of the table for the check item request. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
  525. */
  526. TableName: TableArn;
  527. /**
  528. * A condition that must be satisfied in order for a conditional update to succeed. For more information, see Condition expressions in the Amazon DynamoDB Developer Guide.
  529. */
  530. ConditionExpression: ConditionExpression;
  531. /**
  532. * One or more substitution tokens for attribute names in an expression. For more information, see Expression attribute names in the Amazon DynamoDB Developer Guide.
  533. */
  534. ExpressionAttributeNames?: ExpressionAttributeNameMap;
  535. /**
  536. * One or more values that can be substituted in an expression. For more information, see Condition expressions in the Amazon DynamoDB Developer Guide.
  537. */
  538. ExpressionAttributeValues?: ExpressionAttributeValueMap;
  539. /**
  540. * Use ReturnValuesOnConditionCheckFailure to get the item attributes if the ConditionCheck condition fails. For ReturnValuesOnConditionCheckFailure, the valid values are: NONE and ALL_OLD.
  541. */
  542. ReturnValuesOnConditionCheckFailure?: ReturnValuesOnConditionCheckFailure;
  543. }
  544. export type ConditionExpression = string;
  545. export type ConditionalOperator = "AND"|"OR"|string;
  546. export type ConfirmRemoveSelfResourceAccess = boolean;
  547. export type ConsistentRead = boolean;
  548. export interface ConsumedCapacity {
  549. /**
  550. * The name of the table that was affected by the operation. If you had specified the Amazon Resource Name (ARN) of a table in the input, you'll see the table ARN in the response.
  551. */
  552. TableName?: TableArn;
  553. /**
  554. * The total number of capacity units consumed by the operation.
  555. */
  556. CapacityUnits?: ConsumedCapacityUnits;
  557. /**
  558. * The total number of read capacity units consumed by the operation.
  559. */
  560. ReadCapacityUnits?: ConsumedCapacityUnits;
  561. /**
  562. * The total number of write capacity units consumed by the operation.
  563. */
  564. WriteCapacityUnits?: ConsumedCapacityUnits;
  565. /**
  566. * The amount of throughput consumed on the table affected by the operation.
  567. */
  568. Table?: Capacity;
  569. /**
  570. * The amount of throughput consumed on each local index affected by the operation.
  571. */
  572. LocalSecondaryIndexes?: SecondaryIndexesCapacityMap;
  573. /**
  574. * The amount of throughput consumed on each global index affected by the operation.
  575. */
  576. GlobalSecondaryIndexes?: SecondaryIndexesCapacityMap;
  577. }
  578. export type ConsumedCapacityMultiple = ConsumedCapacity[];
  579. export type ConsumedCapacityUnits = number;
  580. export interface ContinuousBackupsDescription {
  581. /**
  582. * ContinuousBackupsStatus can be one of the following states: ENABLED, DISABLED
  583. */
  584. ContinuousBackupsStatus: ContinuousBackupsStatus;
  585. /**
  586. * The description of the point in time recovery settings applied to the table.
  587. */
  588. PointInTimeRecoveryDescription?: PointInTimeRecoveryDescription;
  589. }
  590. export type ContinuousBackupsStatus = "ENABLED"|"DISABLED"|string;
  591. export type ContributorInsightsAction = "ENABLE"|"DISABLE"|string;
  592. export type ContributorInsightsRule = string;
  593. export type ContributorInsightsRuleList = ContributorInsightsRule[];
  594. export type ContributorInsightsStatus = "ENABLING"|"ENABLED"|"DISABLING"|"DISABLED"|"FAILED"|string;
  595. export type ContributorInsightsSummaries = ContributorInsightsSummary[];
  596. export interface ContributorInsightsSummary {
  597. /**
  598. * Name of the table associated with the summary.
  599. */
  600. TableName?: TableName;
  601. /**
  602. * Name of the index associated with the summary, if any.
  603. */
  604. IndexName?: IndexName;
  605. /**
  606. * Describes the current status for contributor insights for the given table and index, if applicable.
  607. */
  608. ContributorInsightsStatus?: ContributorInsightsStatus;
  609. }
  610. export interface CreateBackupInput {
  611. /**
  612. * The name of the table. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
  613. */
  614. TableName: TableArn;
  615. /**
  616. * Specified name for the backup.
  617. */
  618. BackupName: BackupName;
  619. }
  620. export interface CreateBackupOutput {
  621. /**
  622. * Contains the details of the backup created for the table.
  623. */
  624. BackupDetails?: BackupDetails;
  625. }
  626. export interface CreateGlobalSecondaryIndexAction {
  627. /**
  628. * The name of the global secondary index to be created.
  629. */
  630. IndexName: IndexName;
  631. /**
  632. * The key schema for the global secondary index.
  633. */
  634. KeySchema: KeySchema;
  635. /**
  636. * Represents attributes that are copied (projected) from the table into an index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
  637. */
  638. Projection: Projection;
  639. /**
  640. * Represents the provisioned throughput settings for the specified global secondary index. For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.
  641. */
  642. ProvisionedThroughput?: ProvisionedThroughput;
  643. /**
  644. * The maximum number of read and write units for the global secondary index being created. If you use this parameter, you must specify MaxReadRequestUnits, MaxWriteRequestUnits, or both.
  645. */
  646. OnDemandThroughput?: OnDemandThroughput;
  647. }
  648. export interface CreateGlobalTableInput {
  649. /**
  650. * The global table name.
  651. */
  652. GlobalTableName: TableName;
  653. /**
  654. * The Regions where the global table needs to be created.
  655. */
  656. ReplicationGroup: ReplicaList;
  657. }
  658. export interface CreateGlobalTableOutput {
  659. /**
  660. * Contains the details of the global table.
  661. */
  662. GlobalTableDescription?: GlobalTableDescription;
  663. }
  664. export interface CreateReplicaAction {
  665. /**
  666. * The Region of the replica to be added.
  667. */
  668. RegionName: RegionName;
  669. }
  670. export interface CreateReplicationGroupMemberAction {
  671. /**
  672. * The Region where the new replica will be created.
  673. */
  674. RegionName: RegionName;
  675. /**
  676. * The KMS key that should be used for KMS encryption in the new replica. To specify a key, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB KMS key alias/aws/dynamodb.
  677. */
  678. KMSMasterKeyId?: KMSMasterKeyId;
  679. /**
  680. * Replica-specific provisioned throughput. If not specified, uses the source table's provisioned throughput settings.
  681. */
  682. ProvisionedThroughputOverride?: ProvisionedThroughputOverride;
  683. /**
  684. * The maximum on-demand throughput settings for the specified replica table being created. You can only modify MaxReadRequestUnits, because you can't modify MaxWriteRequestUnits for individual replica tables.
  685. */
  686. OnDemandThroughputOverride?: OnDemandThroughputOverride;
  687. /**
  688. * Replica-specific global secondary index settings.
  689. */
  690. GlobalSecondaryIndexes?: ReplicaGlobalSecondaryIndexList;
  691. /**
  692. * Replica-specific table class. If not specified, uses the source table's table class.
  693. */
  694. TableClassOverride?: TableClass;
  695. }
  696. export interface CreateTableInput {
  697. /**
  698. * An array of attributes that describe the key schema for the table and indexes.
  699. */
  700. AttributeDefinitions: AttributeDefinitions;
  701. /**
  702. * The name of the table to create. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
  703. */
  704. TableName: TableArn;
  705. /**
  706. * Specifies the attributes that make up the primary key for a table or an index. The attributes in KeySchema must also be defined in the AttributeDefinitions array. For more information, see Data Model in the Amazon DynamoDB Developer Guide. Each KeySchemaElement in the array is composed of: AttributeName - The name of this key attribute. KeyType - The role that the key attribute will assume: HASH - partition key RANGE - sort key The partition key of an item is also known as its hash attribute. The term "hash attribute" derives from the DynamoDB usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values. The sort key of an item is also known as its range attribute. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value. For a simple primary key (partition key), you must provide exactly one element with a KeyType of HASH. For a composite primary key (partition key and sort key), you must provide exactly two elements, in this order: The first element must have a KeyType of HASH, and the second element must have a KeyType of RANGE. For more information, see Working with Tables in the Amazon DynamoDB Developer Guide.
  707. */
  708. KeySchema: KeySchema;
  709. /**
  710. * One or more local secondary indexes (the maximum is 5) to be created on the table. Each index is scoped to a given partition key value. There is a 10 GB size limit per partition key value; otherwise, the size of a local secondary index is unconstrained. Each local secondary index in the array includes the following: IndexName - The name of the local secondary index. Must be unique only for this table. KeySchema - Specifies the key schema for the local secondary index. The key schema must begin with the same partition key as the table. Projection - Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of: ProjectionType - One of the following: KEYS_ONLY - Only the index and primary keys are projected into the index. INCLUDE - Only the specified table attributes are projected into the index. The list of projected attributes is in NonKeyAttributes. ALL - All of the table attributes are projected into the index. NonKeyAttributes - A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided in NonKeyAttributes, summed across all of the secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.
  711. */
  712. LocalSecondaryIndexes?: LocalSecondaryIndexList;
  713. /**
  714. * One or more global secondary indexes (the maximum is 20) to be created on the table. Each global secondary index in the array includes the following: IndexName - The name of the global secondary index. Must be unique only for this table. KeySchema - Specifies the key schema for the global secondary index. Projection - Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of: ProjectionType - One of the following: KEYS_ONLY - Only the index and primary keys are projected into the index. INCLUDE - Only the specified table attributes are projected into the index. The list of projected attributes is in NonKeyAttributes. ALL - All of the table attributes are projected into the index. NonKeyAttributes - A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided in NonKeyAttributes, summed across all of the secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total. ProvisionedThroughput - The provisioned throughput settings for the global secondary index, consisting of read and write capacity units.
  715. */
  716. GlobalSecondaryIndexes?: GlobalSecondaryIndexList;
  717. /**
  718. * Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later. PROVISIONED - We recommend using PROVISIONED for predictable workloads. PROVISIONED sets the billing mode to Provisioned Mode. PAY_PER_REQUEST - We recommend using PAY_PER_REQUEST for unpredictable workloads. PAY_PER_REQUEST sets the billing mode to On-Demand Mode.
  719. */
  720. BillingMode?: BillingMode;
  721. /**
  722. * Represents the provisioned throughput settings for a specified table or index. The settings can be modified using the UpdateTable operation. If you set BillingMode as PROVISIONED, you must specify this property. If you set BillingMode as PAY_PER_REQUEST, you cannot specify this property. For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.
  723. */
  724. ProvisionedThroughput?: ProvisionedThroughput;
  725. /**
  726. * The settings for DynamoDB Streams on the table. These settings consist of: StreamEnabled - Indicates whether DynamoDB Streams is to be enabled (true) or disabled (false). StreamViewType - When an item in the table is modified, StreamViewType determines what information is written to the table's stream. Valid values for StreamViewType are: KEYS_ONLY - Only the key attributes of the modified item are written to the stream. NEW_IMAGE - The entire item, as it appears after it was modified, is written to the stream. OLD_IMAGE - The entire item, as it appeared before it was modified, is written to the stream. NEW_AND_OLD_IMAGES - Both the new and the old item images of the item are written to the stream.
  727. */
  728. StreamSpecification?: StreamSpecification;
  729. /**
  730. * Represents the settings used to enable server-side encryption.
  731. */
  732. SSESpecification?: SSESpecification;
  733. /**
  734. * A list of key-value pairs to label the table. For more information, see Tagging for DynamoDB.
  735. */
  736. Tags?: TagList;
  737. /**
  738. * The table class of the new table. Valid values are STANDARD and STANDARD_INFREQUENT_ACCESS.
  739. */
  740. TableClass?: TableClass;
  741. /**
  742. * Indicates whether deletion protection is to be enabled (true) or disabled (false) on the table.
  743. */
  744. DeletionProtectionEnabled?: DeletionProtectionEnabled;
  745. /**
  746. * An Amazon Web Services resource-based policy document in JSON format that will be attached to the table. When you attach a resource-based policy while creating a table, the policy application is strongly consistent. The maximum size supported for a resource-based policy document is 20 KB. DynamoDB counts whitespaces when calculating the size of a policy against this limit. For a full list of all considerations that apply for resource-based policies, see Resource-based policy considerations.
  747. */
  748. ResourcePolicy?: ResourcePolicy;
  749. /**
  750. * Sets the maximum number of read and write units for the specified table in on-demand capacity mode. If you use this parameter, you must specify MaxReadRequestUnits, MaxWriteRequestUnits, or both.
  751. */
  752. OnDemandThroughput?: OnDemandThroughput;
  753. }
  754. export interface CreateTableOutput {
  755. /**
  756. * Represents the properties of the table.
  757. */
  758. TableDescription?: TableDescription;
  759. }
  760. export type CsvDelimiter = string;
  761. export type CsvHeader = string;
  762. export type CsvHeaderList = CsvHeader[];
  763. export interface CsvOptions {
  764. /**
  765. * The delimiter used for separating items in the CSV file being imported.
  766. */
  767. Delimiter?: CsvDelimiter;
  768. /**
  769. * List of the headers used to specify a common header for all source CSV files being imported. If this field is specified then the first line of each CSV file is treated as data instead of the header. If this field is not specified the the first line of each CSV file is treated as the header.
  770. */
  771. HeaderList?: CsvHeaderList;
  772. }
  773. export type _Date = Date;
  774. export interface Delete {
  775. /**
  776. * The primary key of the item to be deleted. Each element consists of an attribute name and a value for that attribute.
  777. */
  778. Key: Key;
  779. /**
  780. * Name of the table in which the item to be deleted resides. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
  781. */
  782. TableName: TableArn;
  783. /**
  784. * A condition that must be satisfied in order for a conditional delete to succeed.
  785. */
  786. ConditionExpression?: ConditionExpression;
  787. /**
  788. * One or more substitution tokens for attribute names in an expression.
  789. */
  790. ExpressionAttributeNames?: ExpressionAttributeNameMap;
  791. /**
  792. * One or more values that can be substituted in an expression.
  793. */
  794. ExpressionAttributeValues?: ExpressionAttributeValueMap;
  795. /**
  796. * Use ReturnValuesOnConditionCheckFailure to get the item attributes if the Delete condition fails. For ReturnValuesOnConditionCheckFailure, the valid values are: NONE and ALL_OLD.
  797. */
  798. ReturnValuesOnConditionCheckFailure?: ReturnValuesOnConditionCheckFailure;
  799. }
  800. export interface DeleteBackupInput {
  801. /**
  802. * The ARN associated with the backup.
  803. */
  804. BackupArn: BackupArn;
  805. }
  806. export interface DeleteBackupOutput {
  807. /**
  808. * Contains the description of the backup created for the table.
  809. */
  810. BackupDescription?: BackupDescription;
  811. }
  812. export interface DeleteGlobalSecondaryIndexAction {
  813. /**
  814. * The name of the global secondary index to be deleted.
  815. */
  816. IndexName: IndexName;
  817. }
  818. export interface DeleteItemInput {
  819. /**
  820. * The name of the table from which to delete the item. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
  821. */
  822. TableName: TableArn;
  823. /**
  824. * A map of attribute names to AttributeValue objects, representing the primary key of the item to delete. For the primary key, you must provide all of the key attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.
  825. */
  826. Key: Key;
  827. /**
  828. * This is a legacy parameter. Use ConditionExpression instead. For more information, see Expected in the Amazon DynamoDB Developer Guide.
  829. */
  830. Expected?: ExpectedAttributeMap;
  831. /**
  832. * This is a legacy parameter. Use ConditionExpression instead. For more information, see ConditionalOperator in the Amazon DynamoDB Developer Guide.
  833. */
  834. ConditionalOperator?: ConditionalOperator;
  835. /**
  836. * Use ReturnValues if you want to get the item attributes as they appeared before they were deleted. For DeleteItem, the valid values are: NONE - If ReturnValues is not specified, or if its value is NONE, then nothing is returned. (This setting is the default for ReturnValues.) ALL_OLD - The content of the old item is returned. There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed. The ReturnValues parameter is used by several DynamoDB operations; however, DeleteItem does not recognize any values other than NONE or ALL_OLD.
  837. */
  838. ReturnValues?: ReturnValue;
  839. ReturnConsumedCapacity?: ReturnConsumedCapacity;
  840. /**
  841. * Determines whether item collection metrics are returned. If set to SIZE, the response includes statistics about item collections, if any, that were modified during the operation are returned in the response. If set to NONE (the default), no statistics are returned.
  842. */
  843. ReturnItemCollectionMetrics?: ReturnItemCollectionMetrics;
  844. /**
  845. * A condition that must be satisfied in order for a conditional DeleteItem to succeed. An expression can contain any of the following: Functions: attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size These function names are case-sensitive. Comparison operators: = | &lt;&gt; | &lt; | &gt; | &lt;= | &gt;= | BETWEEN | IN Logical operators: AND | OR | NOT For more information about condition expressions, see Condition Expressions in the Amazon DynamoDB Developer Guide.
  846. */
  847. ConditionExpression?: ConditionExpression;
  848. /**
  849. * One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames: To access an attribute whose name conflicts with a DynamoDB reserved word. To create a placeholder for repeating occurrences of an attribute name in an expression. To prevent special characters in an attribute name from being misinterpreted in an expression. Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name: Percentile The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames: {"#P":"Percentile"} You could then use this substitution in an expression, as in this example: #P = :val Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime. For more information on expression attribute names, see Specifying Item Attributes in the Amazon DynamoDB Developer Guide.
  850. */
  851. ExpressionAttributeNames?: ExpressionAttributeNameMap;
  852. /**
  853. * One or more values that can be substituted in an expression. Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the ProductStatus attribute was one of the following: Available | Backordered | Discontinued You would first need to specify ExpressionAttributeValues as follows: { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} } You could then use these values in an expression, such as this: ProductStatus IN (:avail, :back, :disc) For more information on expression attribute values, see Condition Expressions in the Amazon DynamoDB Developer Guide.
  854. */
  855. ExpressionAttributeValues?: ExpressionAttributeValueMap;
  856. /**
  857. * An optional parameter that returns the item attributes for a DeleteItem operation that failed a condition check. There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed.
  858. */
  859. ReturnValuesOnConditionCheckFailure?: ReturnValuesOnConditionCheckFailure;
  860. }
  861. export interface DeleteItemOutput {
  862. /**
  863. * A map of attribute names to AttributeValue objects, representing the item as it appeared before the DeleteItem operation. This map appears in the response only if ReturnValues was specified as ALL_OLD in the request.
  864. */
  865. Attributes?: AttributeMap;
  866. /**
  867. * The capacity units consumed by the DeleteItem operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the ReturnConsumedCapacity parameter was specified. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide.
  868. */
  869. ConsumedCapacity?: ConsumedCapacity;
  870. /**
  871. * Information about item collections, if any, that were affected by the DeleteItem operation. ItemCollectionMetrics is only returned if the ReturnItemCollectionMetrics parameter was specified. If the table does not have any local secondary indexes, this information is not returned in the response. Each ItemCollectionMetrics element consists of: ItemCollectionKey - The partition key value of the item collection. This is the same as the partition key value of the item itself. SizeEstimateRangeGB - An estimate of item collection size, in gigabytes. This value is a two-element array containing a lower bound and an upper bound for the estimate. The estimate includes the size of all the items in the table, plus the size of all attributes projected into all of the local secondary indexes on that table. Use this estimate to measure whether a local secondary index is approaching its size limit. The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.
  872. */
  873. ItemCollectionMetrics?: ItemCollectionMetrics;
  874. }
  875. export interface DeleteReplicaAction {
  876. /**
  877. * The Region of the replica to be removed.
  878. */
  879. RegionName: RegionName;
  880. }
  881. export interface DeleteReplicationGroupMemberAction {
  882. /**
  883. * The Region where the replica exists.
  884. */
  885. RegionName: RegionName;
  886. }
  887. export interface DeleteRequest {
  888. /**
  889. * A map of attribute name to attribute values, representing the primary key of the item to delete. All of the table's primary key attributes must be specified, and their data types must match those of the table's key schema.
  890. */
  891. Key: Key;
  892. }
  893. export interface DeleteResourcePolicyInput {
  894. /**
  895. * The Amazon Resource Name (ARN) of the DynamoDB resource from which the policy will be removed. The resources you can specify include tables and streams. If you remove the policy of a table, it will also remove the permissions for the table's indexes defined in that policy document. This is because index permissions are defined in the table's policy.
  896. */
  897. ResourceArn: ResourceArnString;
  898. /**
  899. * A string value that you can use to conditionally delete your policy. When you provide an expected revision ID, if the revision ID of the existing policy on the resource doesn't match or if there's no policy attached to the resource, the request will fail and return a PolicyNotFoundException.
  900. */
  901. ExpectedRevisionId?: PolicyRevisionId;
  902. }
  903. export interface DeleteResourcePolicyOutput {
  904. /**
  905. * A unique string that represents the revision ID of the policy. If you're comparing revision IDs, make sure to always use string comparison logic. This value will be empty if you make a request against a resource without a policy.
  906. */
  907. RevisionId?: PolicyRevisionId;
  908. }
  909. export interface DeleteTableInput {
  910. /**
  911. * The name of the table to delete. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
  912. */
  913. TableName: TableArn;
  914. }
  915. export interface DeleteTableOutput {
  916. /**
  917. * Represents the properties of a table.
  918. */
  919. TableDescription?: TableDescription;
  920. }
  921. export type DeletionProtectionEnabled = boolean;
  922. export interface DescribeBackupInput {
  923. /**
  924. * The Amazon Resource Name (ARN) associated with the backup.
  925. */
  926. BackupArn: BackupArn;
  927. }
  928. export interface DescribeBackupOutput {
  929. /**
  930. * Contains the description of the backup created for the table.
  931. */
  932. BackupDescription?: BackupDescription;
  933. }
  934. export interface DescribeContinuousBackupsInput {
  935. /**
  936. * Name of the table for which the customer wants to check the continuous backups and point in time recovery settings. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
  937. */
  938. TableName: TableArn;
  939. }
  940. export interface DescribeContinuousBackupsOutput {
  941. /**
  942. * Represents the continuous backups and point in time recovery settings on the table.
  943. */
  944. ContinuousBackupsDescription?: ContinuousBackupsDescription;
  945. }
  946. export interface DescribeContributorInsightsInput {
  947. /**
  948. * The name of the table to describe. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
  949. */
  950. TableName: TableArn;
  951. /**
  952. * The name of the global secondary index to describe, if applicable.
  953. */
  954. IndexName?: IndexName;
  955. }
  956. export interface DescribeContributorInsightsOutput {
  957. /**
  958. * The name of the table being described.
  959. */
  960. TableName?: TableName;
  961. /**
  962. * The name of the global secondary index being described.
  963. */
  964. IndexName?: IndexName;
  965. /**
  966. * List of names of the associated contributor insights rules.
  967. */
  968. ContributorInsightsRuleList?: ContributorInsightsRuleList;
  969. /**
  970. * Current status of contributor insights.
  971. */
  972. ContributorInsightsStatus?: ContributorInsightsStatus;
  973. /**
  974. * Timestamp of the last time the status was changed.
  975. */
  976. LastUpdateDateTime?: LastUpdateDateTime;
  977. /**
  978. * Returns information about the last failure that was encountered. The most common exceptions for a FAILED status are: LimitExceededException - Per-account Amazon CloudWatch Contributor Insights rule limit reached. Please disable Contributor Insights for other tables/indexes OR disable Contributor Insights rules before retrying. AccessDeniedException - Amazon CloudWatch Contributor Insights rules cannot be modified due to insufficient permissions. AccessDeniedException - Failed to create service-linked role for Contributor Insights due to insufficient permissions. InternalServerError - Failed to create Amazon CloudWatch Contributor Insights rules. Please retry request.
  979. */
  980. FailureException?: FailureException;
  981. }
  982. export interface DescribeEndpointsRequest {
  983. }
  984. export interface DescribeEndpointsResponse {
  985. /**
  986. * List of endpoints.
  987. */
  988. Endpoints: Endpoints;
  989. }
  990. export interface DescribeExportInput {
  991. /**
  992. * The Amazon Resource Name (ARN) associated with the export.
  993. */
  994. ExportArn: ExportArn;
  995. }
  996. export interface DescribeExportOutput {
  997. /**
  998. * Represents the properties of the export.
  999. */
  1000. ExportDescription?: ExportDescription;
  1001. }
  1002. export interface DescribeGlobalTableInput {
  1003. /**
  1004. * The name of the global table.
  1005. */
  1006. GlobalTableName: TableName;
  1007. }
  1008. export interface DescribeGlobalTableOutput {
  1009. /**
  1010. * Contains the details of the global table.
  1011. */
  1012. GlobalTableDescription?: GlobalTableDescription;
  1013. }
  1014. export interface DescribeGlobalTableSettingsInput {
  1015. /**
  1016. * The name of the global table to describe.
  1017. */
  1018. GlobalTableName: TableName;
  1019. }
  1020. export interface DescribeGlobalTableSettingsOutput {
  1021. /**
  1022. * The name of the global table.
  1023. */
  1024. GlobalTableName?: TableName;
  1025. /**
  1026. * The Region-specific settings for the global table.
  1027. */
  1028. ReplicaSettings?: ReplicaSettingsDescriptionList;
  1029. }
  1030. export interface DescribeImportInput {
  1031. /**
  1032. * The Amazon Resource Name (ARN) associated with the table you're importing to.
  1033. */
  1034. ImportArn: ImportArn;
  1035. }
  1036. export interface DescribeImportOutput {
  1037. /**
  1038. * Represents the properties of the table created for the import, and parameters of the import. The import parameters include import status, how many items were processed, and how many errors were encountered.
  1039. */
  1040. ImportTableDescription: ImportTableDescription;
  1041. }
  1042. export interface DescribeKinesisStreamingDestinationInput {
  1043. /**
  1044. * The name of the table being described. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
  1045. */
  1046. TableName: TableArn;
  1047. }
  1048. export interface DescribeKinesisStreamingDestinationOutput {
  1049. /**
  1050. * The name of the table being described.
  1051. */
  1052. TableName?: TableName;
  1053. /**
  1054. * The list of replica structures for the table being described.
  1055. */
  1056. KinesisDataStreamDestinations?: KinesisDataStreamDestinations;
  1057. }
  1058. export interface DescribeLimitsInput {
  1059. }
  1060. export interface DescribeLimitsOutput {
  1061. /**
  1062. * The maximum total read capacity units that your account allows you to provision across all of your tables in this Region.
  1063. */
  1064. AccountMaxReadCapacityUnits?: PositiveLongObject;
  1065. /**
  1066. * The maximum total write capacity units that your account allows you to provision across all of your tables in this Region.
  1067. */
  1068. AccountMaxWriteCapacityUnits?: PositiveLongObject;
  1069. /**
  1070. * The maximum read capacity units that your account allows you to provision for a new table that you are creating in this Region, including the read capacity units provisioned for its global secondary indexes (GSIs).
  1071. */
  1072. TableMaxReadCapacityUnits?: PositiveLongObject;
  1073. /**
  1074. * The maximum write capacity units that your account allows you to provision for a new table that you are creating in this Region, including the write capacity units provisioned for its global secondary indexes (GSIs).
  1075. */
  1076. TableMaxWriteCapacityUnits?: PositiveLongObject;
  1077. }
  1078. export interface DescribeTableInput {
  1079. /**
  1080. * The name of the table to describe. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
  1081. */
  1082. TableName: TableArn;
  1083. }
  1084. export interface DescribeTableOutput {
  1085. /**
  1086. * The properties of the table.
  1087. */
  1088. Table?: TableDescription;
  1089. }
  1090. export interface DescribeTableReplicaAutoScalingInput {
  1091. /**
  1092. * The name of the table. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
  1093. */
  1094. TableName: TableArn;
  1095. }
  1096. export interface DescribeTableReplicaAutoScalingOutput {
  1097. /**
  1098. * Represents the auto scaling properties of the table.
  1099. */
  1100. TableAutoScalingDescription?: TableAutoScalingDescription;
  1101. }
  1102. export interface DescribeTimeToLiveInput {
  1103. /**
  1104. * The name of the table to be described. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
  1105. */
  1106. TableName: TableArn;
  1107. }
  1108. export interface DescribeTimeToLiveOutput {
  1109. /**
  1110. *
  1111. */
  1112. TimeToLiveDescription?: TimeToLiveDescription;
  1113. }
  1114. export type DestinationStatus = "ENABLING"|"ACTIVE"|"DISABLING"|"DISABLED"|"ENABLE_FAILED"|"UPDATING"|string;
  1115. export type DoubleObject = number;
  1116. export interface EnableKinesisStreamingConfiguration {
  1117. /**
  1118. * Toggle for the precision of Kinesis data stream timestamp. The values are either MILLISECOND or MICROSECOND.
  1119. */
  1120. ApproximateCreationDateTimePrecision?: ApproximateCreationDateTimePrecision;
  1121. }
  1122. export interface Endpoint {
  1123. /**
  1124. * IP address of the endpoint.
  1125. */
  1126. Address: String;
  1127. /**
  1128. * Endpoint cache time to live (TTL) value.
  1129. */
  1130. CachePeriodInMinutes: Long;
  1131. }
  1132. export type Endpoints = Endpoint[];
  1133. export type ErrorCount = number;
  1134. export type ExceptionDescription = string;
  1135. export type ExceptionName = string;
  1136. export interface ExecuteStatementInput {
  1137. /**
  1138. * The PartiQL statement representing the operation to run.
  1139. */
  1140. Statement: PartiQLStatement;
  1141. /**
  1142. * The parameters for the PartiQL statement, if any.
  1143. */
  1144. Parameters?: PreparedStatementParameters;
  1145. /**
  1146. * The consistency of a read operation. If set to true, then a strongly consistent read is used; otherwise, an eventually consistent read is used.
  1147. */
  1148. ConsistentRead?: ConsistentRead;
  1149. /**
  1150. * Set this value to get remaining results, if NextToken was returned in the statement response.
  1151. */
  1152. NextToken?: PartiQLNextToken;
  1153. ReturnConsumedCapacity?: ReturnConsumedCapacity;
  1154. /**
  1155. * The maximum number of items to evaluate (not necessarily the number of matching items). If DynamoDB processes the number of items up to the limit while processing the results, it stops the operation and returns the matching values up to that point, along with a key in LastEvaluatedKey to apply in a subsequent operation so you can pick up where you left off. Also, if the processed dataset size exceeds 1 MB before DynamoDB reaches this limit, it stops the operation and returns the matching values up to the limit, and a key in LastEvaluatedKey to apply in a subsequent operation to continue the operation.
  1156. */
  1157. Limit?: PositiveIntegerObject;
  1158. /**
  1159. * An optional parameter that returns the item attributes for an ExecuteStatement operation that failed a condition check. There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed.
  1160. */
  1161. ReturnValuesOnConditionCheckFailure?: ReturnValuesOnConditionCheckFailure;
  1162. }
  1163. export interface ExecuteStatementOutput {
  1164. /**
  1165. * If a read operation was used, this property will contain the result of the read operation; a map of attribute names and their values. For the write operations this value will be empty.
  1166. */
  1167. Items?: ItemList;
  1168. /**
  1169. * If the response of a read request exceeds the response payload limit DynamoDB will set this value in the response. If set, you can use that this value in the subsequent request to get the remaining results.
  1170. */
  1171. NextToken?: PartiQLNextToken;
  1172. ConsumedCapacity?: ConsumedCapacity;
  1173. /**
  1174. * The primary key of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request. If LastEvaluatedKey is empty, then the "last page" of results has been processed and there is no more data to be retrieved. If LastEvaluatedKey is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when LastEvaluatedKey is empty.
  1175. */
  1176. LastEvaluatedKey?: Key;
  1177. }
  1178. export interface ExecuteTransactionInput {
  1179. /**
  1180. * The list of PartiQL statements representing the transaction to run.
  1181. */
  1182. TransactStatements: ParameterizedStatements;
  1183. /**
  1184. * Set this value to get remaining results, if NextToken was returned in the statement response.
  1185. */
  1186. ClientRequestToken?: ClientRequestToken;
  1187. /**
  1188. * Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response. For more information, see TransactGetItems and TransactWriteItems.
  1189. */
  1190. ReturnConsumedCapacity?: ReturnConsumedCapacity;
  1191. }
  1192. export interface ExecuteTransactionOutput {
  1193. /**
  1194. * The response to a PartiQL transaction.
  1195. */
  1196. Responses?: ItemResponseList;
  1197. /**
  1198. * The capacity units consumed by the entire operation. The values of the list are ordered according to the ordering of the statements.
  1199. */
  1200. ConsumedCapacity?: ConsumedCapacityMultiple;
  1201. }
  1202. export type ExpectedAttributeMap = {[key: string]: ExpectedAttributeValue};
  1203. export interface ExpectedAttributeValue {
  1204. /**
  1205. * Represents the data for the expected attribute. Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself. For more information, see Data Types in the Amazon DynamoDB Developer Guide.
  1206. */
  1207. Value?: AttributeValue;
  1208. /**
  1209. * Causes DynamoDB to evaluate the value before attempting a conditional operation: If Exists is true, DynamoDB will check to see if that attribute value already exists in the table. If it is found, then the operation succeeds. If it is not found, the operation fails with a ConditionCheckFailedException. If Exists is false, DynamoDB assumes that the attribute value does not exist in the table. If in fact the value does not exist, then the assumption is valid and the operation succeeds. If the value is found, despite the assumption that it does not exist, the operation fails with a ConditionCheckFailedException. The default setting for Exists is true. If you supply a Value all by itself, DynamoDB assumes the attribute exists: You don't have to set Exists to true, because it is implied. DynamoDB returns a ValidationException if: Exists is true but there is no Value to check. (You expect a value to exist, but don't specify what that value is.) Exists is false but you also provide a Value. (You cannot expect an attribute to have a value, while also expecting it not to exist.)
  1210. */
  1211. Exists?: BooleanObject;
  1212. /**
  1213. * A comparator for evaluating attributes in the AttributeValueList. For example, equals, greater than, less than, etc. The following comparison operators are available: EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN The following are descriptions of each comparison operator. EQ : Equal. EQ is supported for all data types, including lists and maps. AttributeValueList can contain only one AttributeValue element of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. NE : Not equal. NE is supported for all data types, including lists and maps. AttributeValueList can contain only one AttributeValue of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue of a different type than the one provided in the request, the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. LE : Less than or equal. AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} does not compare to {"NS":["6", "2", "1"]}. LT : Less than. AttributeValueList can contain only one AttributeValue of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} does not compare to {"NS":["6", "2", "1"]}. GE : Greater than or equal. AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} does not compare to {"NS":["6", "2", "1"]}. GT : Greater than. AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} does not compare to {"NS":["6", "2", "1"]}. NOT_NULL : The attribute exists. NOT_NULL is supported for all data types, including lists and maps. This operator tests for the existence of an attribute, not its data type. If the data type of attribute "a" is null, and you evaluate it using NOT_NULL, the result is a Boolean true. This result is because the attribute "a" exists; its data type is not relevant to the NOT_NULL comparison operator. NULL : The attribute does not exist. NULL is supported for all data types, including lists and maps. This operator tests for the nonexistence of an attribute, not its data type. If the data type of attribute "a" is null, and you evaluate it using NULL, the result is a Boolean false. This is because the attribute "a" exists; its data type is not relevant to the NULL comparison operator. CONTAINS : Checks for a subsequence, or value in a set. AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is of type String, then the operator checks for a substring match. If the target attribute of the comparison is of type Binary, then the operator looks for a subsequence of the target that matches the input. If the target attribute of the comparison is a set ("SS", "NS", or "BS"), then the operator evaluates to true if it finds an exact match with any member of the set. CONTAINS is supported for lists: When evaluating "a CONTAINS b", "a" can be a list; however, "b" cannot be a set, a map, or a list. NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value in a set. AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is a String, then the operator checks for the absence of a substring match. If the target attribute of the comparison is Binary, then the operator checks for the absence of a subsequence of the target that matches the input. If the target attribute of the comparison is a set ("SS", "NS", or "BS"), then the operator evaluates to true if it does not find an exact match with any member of the set. NOT_CONTAINS is supported for lists: When evaluating "a NOT CONTAINS b", "a" can be a list; however, "b" cannot be a set, a map, or a list. BEGINS_WITH : Checks for a prefix. AttributeValueList can contain only one AttributeValue of type String or Binary (not a Number or a set type). The target attribute of the comparison must be of type String or Binary (not a Number or a set type). IN : Checks for matching elements in a list. AttributeValueList can contain one or more AttributeValue elements of type String, Number, or Binary. These attributes are compared against an existing attribute of an item. If any elements of the input are equal to the item attribute, the expression evaluates to true. BETWEEN : Greater than or equal to the first value, and less than or equal to the second value. AttributeValueList must contain two AttributeValue elements of the same type, either String, Number, or Binary (not a set type). A target attribute matches if the target value is greater than, or equal to, the first element and less than, or equal to, the second element. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {"S":"6"} does not compare to {"N":"6"}. Also, {"N":"6"} does not compare to {"NS":["6", "2", "1"]}
  1214. */
  1215. ComparisonOperator?: ComparisonOperator;
  1216. /**
  1217. * One or more values to evaluate against the supplied attribute. The number of values in the list depends on the ComparisonOperator being used. For type Number, value comparisons are numeric. String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, a is greater than A, and a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters. For Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values. For information on specifying data types in JSON, see JSON Data Format in the Amazon DynamoDB Developer Guide.
  1218. */
  1219. AttributeValueList?: AttributeValueList;
  1220. }
  1221. export type ExportArn = string;
  1222. export interface ExportDescription {
  1223. /**
  1224. * The Amazon Resource Name (ARN) of the table export.
  1225. */
  1226. ExportArn?: ExportArn;
  1227. /**
  1228. * Export can be in one of the following states: IN_PROGRESS, COMPLETED, or FAILED.
  1229. */
  1230. ExportStatus?: ExportStatus;
  1231. /**
  1232. * The time at which the export task began.
  1233. */
  1234. StartTime?: ExportStartTime;
  1235. /**
  1236. * The time at which the export task completed.
  1237. */
  1238. EndTime?: ExportEndTime;
  1239. /**
  1240. * The name of the manifest file for the export task.
  1241. */
  1242. ExportManifest?: ExportManifest;
  1243. /**
  1244. * The Amazon Resource Name (ARN) of the table that was exported.
  1245. */
  1246. TableArn?: TableArn;
  1247. /**
  1248. * Unique ID of the table that was exported.
  1249. */
  1250. TableId?: TableId;
  1251. /**
  1252. * Point in time from which table data was exported.
  1253. */
  1254. ExportTime?: ExportTime;
  1255. /**
  1256. * The client token that was provided for the export task. A client token makes calls to ExportTableToPointInTimeInput idempotent, meaning that multiple identical calls have the same effect as one single call.
  1257. */
  1258. ClientToken?: ClientToken;
  1259. /**
  1260. * The name of the Amazon S3 bucket containing the export.
  1261. */
  1262. S3Bucket?: S3Bucket;
  1263. /**
  1264. * The ID of the Amazon Web Services account that owns the bucket containing the export.
  1265. */
  1266. S3BucketOwner?: S3BucketOwner;
  1267. /**
  1268. * The Amazon S3 bucket prefix used as the file name and path of the exported snapshot.
  1269. */
  1270. S3Prefix?: S3Prefix;
  1271. /**
  1272. * Type of encryption used on the bucket where export data is stored. Valid values for S3SseAlgorithm are: AES256 - server-side encryption with Amazon S3 managed keys KMS - server-side encryption with KMS managed keys
  1273. */
  1274. S3SseAlgorithm?: S3SseAlgorithm;
  1275. /**
  1276. * The ID of the KMS managed key used to encrypt the S3 bucket where export data is stored (if applicable).
  1277. */
  1278. S3SseKmsKeyId?: S3SseKmsKeyId;
  1279. /**
  1280. * Status code for the result of the failed export.
  1281. */
  1282. FailureCode?: FailureCode;
  1283. /**
  1284. * Export failure reason description.
  1285. */
  1286. FailureMessage?: FailureMessage;
  1287. /**
  1288. * The format of the exported data. Valid values for ExportFormat are DYNAMODB_JSON or ION.
  1289. */
  1290. ExportFormat?: ExportFormat;
  1291. /**
  1292. * The billable size of the table export.
  1293. */
  1294. BilledSizeBytes?: BilledSizeBytes;
  1295. /**
  1296. * The number of items exported.
  1297. */
  1298. ItemCount?: ItemCount;
  1299. /**
  1300. * The type of export that was performed. Valid values are FULL_EXPORT or INCREMENTAL_EXPORT.
  1301. */
  1302. ExportType?: ExportType;
  1303. /**
  1304. * Optional object containing the parameters specific to an incremental export.
  1305. */
  1306. IncrementalExportSpecification?: IncrementalExportSpecification;
  1307. }
  1308. export type ExportEndTime = Date;
  1309. export type ExportFormat = "DYNAMODB_JSON"|"ION"|string;
  1310. export type ExportFromTime = Date;
  1311. export type ExportManifest = string;
  1312. export type ExportNextToken = string;
  1313. export type ExportStartTime = Date;
  1314. export type ExportStatus = "IN_PROGRESS"|"COMPLETED"|"FAILED"|string;
  1315. export type ExportSummaries = ExportSummary[];
  1316. export interface ExportSummary {
  1317. /**
  1318. * The Amazon Resource Name (ARN) of the export.
  1319. */
  1320. ExportArn?: ExportArn;
  1321. /**
  1322. * Export can be in one of the following states: IN_PROGRESS, COMPLETED, or FAILED.
  1323. */
  1324. ExportStatus?: ExportStatus;
  1325. /**
  1326. * The type of export that was performed. Valid values are FULL_EXPORT or INCREMENTAL_EXPORT.
  1327. */
  1328. ExportType?: ExportType;
  1329. }
  1330. export interface ExportTableToPointInTimeInput {
  1331. /**
  1332. * The Amazon Resource Name (ARN) associated with the table to export.
  1333. */
  1334. TableArn: TableArn;
  1335. /**
  1336. * Time in the past from which to export table data, counted in seconds from the start of the Unix epoch. The table export will be a snapshot of the table's state at this point in time.
  1337. */
  1338. ExportTime?: ExportTime;
  1339. /**
  1340. * Providing a ClientToken makes the call to ExportTableToPointInTimeInput idempotent, meaning that multiple identical calls have the same effect as one single call. A client token is valid for 8 hours after the first request that uses it is completed. After 8 hours, any request with the same client token is treated as a new request. Do not resubmit the same request with the same client token for more than 8 hours, or the result might not be idempotent. If you submit a request with the same client token but a change in other parameters within the 8-hour idempotency window, DynamoDB returns an ImportConflictException.
  1341. */
  1342. ClientToken?: ClientToken;
  1343. /**
  1344. * The name of the Amazon S3 bucket to export the snapshot to.
  1345. */
  1346. S3Bucket: S3Bucket;
  1347. /**
  1348. * The ID of the Amazon Web Services account that owns the bucket the export will be stored in. S3BucketOwner is a required parameter when exporting to a S3 bucket in another account.
  1349. */
  1350. S3BucketOwner?: S3BucketOwner;
  1351. /**
  1352. * The Amazon S3 bucket prefix to use as the file name and path of the exported snapshot.
  1353. */
  1354. S3Prefix?: S3Prefix;
  1355. /**
  1356. * Type of encryption used on the bucket where export data will be stored. Valid values for S3SseAlgorithm are: AES256 - server-side encryption with Amazon S3 managed keys KMS - server-side encryption with KMS managed keys
  1357. */
  1358. S3SseAlgorithm?: S3SseAlgorithm;
  1359. /**
  1360. * The ID of the KMS managed key used to encrypt the S3 bucket where export data will be stored (if applicable).
  1361. */
  1362. S3SseKmsKeyId?: S3SseKmsKeyId;
  1363. /**
  1364. * The format for the exported data. Valid values for ExportFormat are DYNAMODB_JSON or ION.
  1365. */
  1366. ExportFormat?: ExportFormat;
  1367. /**
  1368. * Choice of whether to execute as a full export or incremental export. Valid values are FULL_EXPORT or INCREMENTAL_EXPORT. The default value is FULL_EXPORT. If INCREMENTAL_EXPORT is provided, the IncrementalExportSpecification must also be used.
  1369. */
  1370. ExportType?: ExportType;
  1371. /**
  1372. * Optional object containing the parameters specific to an incremental export.
  1373. */
  1374. IncrementalExportSpecification?: IncrementalExportSpecification;
  1375. }
  1376. export interface ExportTableToPointInTimeOutput {
  1377. /**
  1378. * Contains a description of the table export.
  1379. */
  1380. ExportDescription?: ExportDescription;
  1381. }
  1382. export type ExportTime = Date;
  1383. export type ExportToTime = Date;
  1384. export type ExportType = "FULL_EXPORT"|"INCREMENTAL_EXPORT"|string;
  1385. export type ExportViewType = "NEW_IMAGE"|"NEW_AND_OLD_IMAGES"|string;
  1386. export type ExpressionAttributeNameMap = {[key: string]: AttributeName};
  1387. export type ExpressionAttributeNameVariable = string;
  1388. export type ExpressionAttributeValueMap = {[key: string]: AttributeValue};
  1389. export type ExpressionAttributeValueVariable = string;
  1390. export type FailureCode = string;
  1391. export interface FailureException {
  1392. /**
  1393. * Exception name.
  1394. */
  1395. ExceptionName?: ExceptionName;
  1396. /**
  1397. * Description of the failure.
  1398. */
  1399. ExceptionDescription?: ExceptionDescription;
  1400. }
  1401. export type FailureMessage = string;
  1402. export type FilterConditionMap = {[key: string]: Condition};
  1403. export interface Get {
  1404. /**
  1405. * A map of attribute names to AttributeValue objects that specifies the primary key of the item to retrieve.
  1406. */
  1407. Key: Key;
  1408. /**
  1409. * The name of the table from which to retrieve the specified item. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
  1410. */
  1411. TableName: TableArn;
  1412. /**
  1413. * A string that identifies one or more attributes of the specified item to retrieve from the table. The attributes in the expression must be separated by commas. If no attribute names are specified, then all attributes of the specified item are returned. If any of the requested attributes are not found, they do not appear in the result.
  1414. */
  1415. ProjectionExpression?: ProjectionExpression;
  1416. /**
  1417. * One or more substitution tokens for attribute names in the ProjectionExpression parameter.
  1418. */
  1419. ExpressionAttributeNames?: ExpressionAttributeNameMap;
  1420. }
  1421. export interface GetItemInput {
  1422. /**
  1423. * The name of the table containing the requested item. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
  1424. */
  1425. TableName: TableArn;
  1426. /**
  1427. * A map of attribute names to AttributeValue objects, representing the primary key of the item to retrieve. For the primary key, you must provide all of the attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.
  1428. */
  1429. Key: Key;
  1430. /**
  1431. * This is a legacy parameter. Use ProjectionExpression instead. For more information, see AttributesToGet in the Amazon DynamoDB Developer Guide.
  1432. */
  1433. AttributesToGet?: AttributeNameList;
  1434. /**
  1435. * Determines the read consistency model: If set to true, then the operation uses strongly consistent reads; otherwise, the operation uses eventually consistent reads.
  1436. */
  1437. ConsistentRead?: ConsistentRead;
  1438. ReturnConsumedCapacity?: ReturnConsumedCapacity;
  1439. /**
  1440. * A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas. If no attribute names are specified, then all attributes are returned. If any of the requested attributes are not found, they do not appear in the result. For more information, see Specifying Item Attributes in the Amazon DynamoDB Developer Guide.
  1441. */
  1442. ProjectionExpression?: ProjectionExpression;
  1443. /**
  1444. * One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames: To access an attribute whose name conflicts with a DynamoDB reserved word. To create a placeholder for repeating occurrences of an attribute name in an expression. To prevent special characters in an attribute name from being misinterpreted in an expression. Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name: Percentile The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames: {"#P":"Percentile"} You could then use this substitution in an expression, as in this example: #P = :val Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime. For more information on expression attribute names, see Specifying Item Attributes in the Amazon DynamoDB Developer Guide.
  1445. */
  1446. ExpressionAttributeNames?: ExpressionAttributeNameMap;
  1447. }
  1448. export interface GetItemOutput {
  1449. /**
  1450. * A map of attribute names to AttributeValue objects, as specified by ProjectionExpression.
  1451. */
  1452. Item?: AttributeMap;
  1453. /**
  1454. * The capacity units consumed by the GetItem operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the ReturnConsumedCapacity parameter was specified. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide.
  1455. */
  1456. ConsumedCapacity?: ConsumedCapacity;
  1457. }
  1458. export interface GetResourcePolicyInput {
  1459. /**
  1460. * The Amazon Resource Name (ARN) of the DynamoDB resource to which the policy is attached. The resources you can specify include tables and streams.
  1461. */
  1462. ResourceArn: ResourceArnString;
  1463. }
  1464. export interface GetResourcePolicyOutput {
  1465. /**
  1466. * The resource-based policy document attached to the resource, which can be a table or stream, in JSON format.
  1467. */
  1468. Policy?: ResourcePolicy;
  1469. /**
  1470. * A unique string that represents the revision ID of the policy. If you're comparing revision IDs, make sure to always use string comparison logic.
  1471. */
  1472. RevisionId?: PolicyRevisionId;
  1473. }
  1474. export interface GlobalSecondaryIndex {
  1475. /**
  1476. * The name of the global secondary index. The name must be unique among all other indexes on this table.
  1477. */
  1478. IndexName: IndexName;
  1479. /**
  1480. * The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types: HASH - partition key RANGE - sort key The partition key of an item is also known as its hash attribute. The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values. The sort key of an item is also known as its range attribute. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
  1481. */
  1482. KeySchema: KeySchema;
  1483. /**
  1484. * Represents attributes that are copied (projected) from the table into the global secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
  1485. */
  1486. Projection: Projection;
  1487. /**
  1488. * Represents the provisioned throughput settings for the specified global secondary index. For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.
  1489. */
  1490. ProvisionedThroughput?: ProvisionedThroughput;
  1491. /**
  1492. * The maximum number of read and write units for the specified global secondary index. If you use this parameter, you must specify MaxReadRequestUnits, MaxWriteRequestUnits, or both.
  1493. */
  1494. OnDemandThroughput?: OnDemandThroughput;
  1495. }
  1496. export interface GlobalSecondaryIndexAutoScalingUpdate {
  1497. /**
  1498. * The name of the global secondary index.
  1499. */
  1500. IndexName?: IndexName;
  1501. ProvisionedWriteCapacityAutoScalingUpdate?: AutoScalingSettingsUpdate;
  1502. }
  1503. export type GlobalSecondaryIndexAutoScalingUpdateList = GlobalSecondaryIndexAutoScalingUpdate[];
  1504. export interface GlobalSecondaryIndexDescription {
  1505. /**
  1506. * The name of the global secondary index.
  1507. */
  1508. IndexName?: IndexName;
  1509. /**
  1510. * The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types: HASH - partition key RANGE - sort key The partition key of an item is also known as its hash attribute. The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values. The sort key of an item is also known as its range attribute. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
  1511. */
  1512. KeySchema?: KeySchema;
  1513. /**
  1514. * Represents attributes that are copied (projected) from the table into the global secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
  1515. */
  1516. Projection?: Projection;
  1517. /**
  1518. * The current state of the global secondary index: CREATING - The index is being created. UPDATING - The index is being updated. DELETING - The index is being deleted. ACTIVE - The index is ready for use.
  1519. */
  1520. IndexStatus?: IndexStatus;
  1521. /**
  1522. * Indicates whether the index is currently backfilling. Backfilling is the process of reading items from the table and determining whether they can be added to the index. (Not all items will qualify: For example, a partition key cannot have any duplicate values.) If an item can be added to the index, DynamoDB will do so. After all items have been processed, the backfilling operation is complete and Backfilling is false. You can delete an index that is being created during the Backfilling phase when IndexStatus is set to CREATING and Backfilling is true. You can't delete the index that is being created when IndexStatus is set to CREATING and Backfilling is false. For indexes that were created during a CreateTable operation, the Backfilling attribute does not appear in the DescribeTable output.
  1523. */
  1524. Backfilling?: Backfilling;
  1525. /**
  1526. * Represents the provisioned throughput settings for the specified global secondary index. For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.
  1527. */
  1528. ProvisionedThroughput?: ProvisionedThroughputDescription;
  1529. /**
  1530. * The total size of the specified index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.
  1531. */
  1532. IndexSizeBytes?: LongObject;
  1533. /**
  1534. * The number of items in the specified index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.
  1535. */
  1536. ItemCount?: LongObject;
  1537. /**
  1538. * The Amazon Resource Name (ARN) that uniquely identifies the index.
  1539. */
  1540. IndexArn?: String;
  1541. /**
  1542. * The maximum number of read and write units for the specified global secondary index. If you use this parameter, you must specify MaxReadRequestUnits, MaxWriteRequestUnits, or both.
  1543. */
  1544. OnDemandThroughput?: OnDemandThroughput;
  1545. }
  1546. export type GlobalSecondaryIndexDescriptionList = GlobalSecondaryIndexDescription[];
  1547. export interface GlobalSecondaryIndexInfo {
  1548. /**
  1549. * The name of the global secondary index.
  1550. */
  1551. IndexName?: IndexName;
  1552. /**
  1553. * The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types: HASH - partition key RANGE - sort key The partition key of an item is also known as its hash attribute. The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values. The sort key of an item is also known as its range attribute. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
  1554. */
  1555. KeySchema?: KeySchema;
  1556. /**
  1557. * Represents attributes that are copied (projected) from the table into the global secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
  1558. */
  1559. Projection?: Projection;
  1560. /**
  1561. * Represents the provisioned throughput settings for the specified global secondary index.
  1562. */
  1563. ProvisionedThroughput?: ProvisionedThroughput;
  1564. OnDemandThroughput?: OnDemandThroughput;
  1565. }
  1566. export type GlobalSecondaryIndexList = GlobalSecondaryIndex[];
  1567. export interface GlobalSecondaryIndexUpdate {
  1568. /**
  1569. * The name of an existing global secondary index, along with new provisioned throughput settings to be applied to that index.
  1570. */
  1571. Update?: UpdateGlobalSecondaryIndexAction;
  1572. /**
  1573. * The parameters required for creating a global secondary index on an existing table: IndexName KeySchema AttributeDefinitions Projection ProvisionedThroughput
  1574. */
  1575. Create?: CreateGlobalSecondaryIndexAction;
  1576. /**
  1577. * The name of an existing global secondary index to be removed.
  1578. */
  1579. Delete?: DeleteGlobalSecondaryIndexAction;
  1580. }
  1581. export type GlobalSecondaryIndexUpdateList = GlobalSecondaryIndexUpdate[];
  1582. export type GlobalSecondaryIndexes = GlobalSecondaryIndexInfo[];
  1583. export interface GlobalTable {
  1584. /**
  1585. * The global table name.
  1586. */
  1587. GlobalTableName?: TableName;
  1588. /**
  1589. * The Regions where the global table has replicas.
  1590. */
  1591. ReplicationGroup?: ReplicaList;
  1592. }
  1593. export type GlobalTableArnString = string;
  1594. export interface GlobalTableDescription {
  1595. /**
  1596. * The Regions where the global table has replicas.
  1597. */
  1598. ReplicationGroup?: ReplicaDescriptionList;
  1599. /**
  1600. * The unique identifier of the global table.
  1601. */
  1602. GlobalTableArn?: GlobalTableArnString;
  1603. /**
  1604. * The creation time of the global table.
  1605. */
  1606. CreationDateTime?: _Date;
  1607. /**
  1608. * The current state of the global table: CREATING - The global table is being created. UPDATING - The global table is being updated. DELETING - The global table is being deleted. ACTIVE - The global table is ready for use.
  1609. */
  1610. GlobalTableStatus?: GlobalTableStatus;
  1611. /**
  1612. * The global table name.
  1613. */
  1614. GlobalTableName?: TableName;
  1615. }
  1616. export interface GlobalTableGlobalSecondaryIndexSettingsUpdate {
  1617. /**
  1618. * The name of the global secondary index. The name must be unique among all other indexes on this table.
  1619. */
  1620. IndexName: IndexName;
  1621. /**
  1622. * The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.
  1623. */
  1624. ProvisionedWriteCapacityUnits?: PositiveLongObject;
  1625. /**
  1626. * Auto scaling settings for managing a global secondary index's write capacity units.
  1627. */
  1628. ProvisionedWriteCapacityAutoScalingSettingsUpdate?: AutoScalingSettingsUpdate;
  1629. }
  1630. export type GlobalTableGlobalSecondaryIndexSettingsUpdateList = GlobalTableGlobalSecondaryIndexSettingsUpdate[];
  1631. export type GlobalTableList = GlobalTable[];
  1632. export type GlobalTableStatus = "CREATING"|"ACTIVE"|"DELETING"|"UPDATING"|string;
  1633. export type ImportArn = string;
  1634. export type ImportEndTime = Date;
  1635. export type ImportNextToken = string;
  1636. export type ImportStartTime = Date;
  1637. export type ImportStatus = "IN_PROGRESS"|"COMPLETED"|"CANCELLING"|"CANCELLED"|"FAILED"|string;
  1638. export interface ImportSummary {
  1639. /**
  1640. * The Amazon Resource Number (ARN) corresponding to the import request.
  1641. */
  1642. ImportArn?: ImportArn;
  1643. /**
  1644. * The status of the import operation.
  1645. */
  1646. ImportStatus?: ImportStatus;
  1647. /**
  1648. * The Amazon Resource Number (ARN) of the table being imported into.
  1649. */
  1650. TableArn?: TableArn;
  1651. /**
  1652. * The path and S3 bucket of the source file that is being imported. This includes the S3Bucket (required), S3KeyPrefix (optional) and S3BucketOwner (optional if the bucket is owned by the requester).
  1653. */
  1654. S3BucketSource?: S3BucketSource;
  1655. /**
  1656. * The Amazon Resource Number (ARN) of the Cloudwatch Log Group associated with this import task.
  1657. */
  1658. CloudWatchLogGroupArn?: CloudWatchLogGroupArn;
  1659. /**
  1660. * The format of the source data. Valid values are CSV, DYNAMODB_JSON or ION.
  1661. */
  1662. InputFormat?: InputFormat;
  1663. /**
  1664. * The time at which this import task began.
  1665. */
  1666. StartTime?: ImportStartTime;
  1667. /**
  1668. * The time at which this import task ended. (Does this include the successful complete creation of the table it was imported to?)
  1669. */
  1670. EndTime?: ImportEndTime;
  1671. }
  1672. export type ImportSummaryList = ImportSummary[];
  1673. export interface ImportTableDescription {
  1674. /**
  1675. * The Amazon Resource Number (ARN) corresponding to the import request.
  1676. */
  1677. ImportArn?: ImportArn;
  1678. /**
  1679. * The status of the import.
  1680. */
  1681. ImportStatus?: ImportStatus;
  1682. /**
  1683. * The Amazon Resource Number (ARN) of the table being imported into.
  1684. */
  1685. TableArn?: TableArn;
  1686. /**
  1687. * The table id corresponding to the table created by import table process.
  1688. */
  1689. TableId?: TableId;
  1690. /**
  1691. * The client token that was provided for the import task. Reusing the client token on retry makes a call to ImportTable idempotent.
  1692. */
  1693. ClientToken?: ClientToken;
  1694. /**
  1695. * Values for the S3 bucket the source file is imported from. Includes bucket name (required), key prefix (optional) and bucket account owner ID (optional).
  1696. */
  1697. S3BucketSource?: S3BucketSource;
  1698. /**
  1699. * The number of errors occurred on importing the source file into the target table.
  1700. */
  1701. ErrorCount?: ErrorCount;
  1702. /**
  1703. * The Amazon Resource Number (ARN) of the Cloudwatch Log Group associated with the target table.
  1704. */
  1705. CloudWatchLogGroupArn?: CloudWatchLogGroupArn;
  1706. /**
  1707. * The format of the source data going into the target table.
  1708. */
  1709. InputFormat?: InputFormat;
  1710. /**
  1711. * The format options for the data that was imported into the target table. There is one value, CsvOption.
  1712. */
  1713. InputFormatOptions?: InputFormatOptions;
  1714. /**
  1715. * The compression options for the data that has been imported into the target table. The values are NONE, GZIP, or ZSTD.
  1716. */
  1717. InputCompressionType?: InputCompressionType;
  1718. /**
  1719. * The parameters for the new table that is being imported into.
  1720. */
  1721. TableCreationParameters?: TableCreationParameters;
  1722. /**
  1723. * The time when this import task started.
  1724. */
  1725. StartTime?: ImportStartTime;
  1726. /**
  1727. * The time at which the creation of the table associated with this import task completed.
  1728. */
  1729. EndTime?: ImportEndTime;
  1730. /**
  1731. * The total size of data processed from the source file, in Bytes.
  1732. */
  1733. ProcessedSizeBytes?: LongObject;
  1734. /**
  1735. * The total number of items processed from the source file.
  1736. */
  1737. ProcessedItemCount?: ProcessedItemCount;
  1738. /**
  1739. * The number of items successfully imported into the new table.
  1740. */
  1741. ImportedItemCount?: ImportedItemCount;
  1742. /**
  1743. * The error code corresponding to the failure that the import job ran into during execution.
  1744. */
  1745. FailureCode?: FailureCode;
  1746. /**
  1747. * The error message corresponding to the failure that the import job ran into during execution.
  1748. */
  1749. FailureMessage?: FailureMessage;
  1750. }
  1751. export interface ImportTableInput {
  1752. /**
  1753. * Providing a ClientToken makes the call to ImportTableInput idempotent, meaning that multiple identical calls have the same effect as one single call. A client token is valid for 8 hours after the first request that uses it is completed. After 8 hours, any request with the same client token is treated as a new request. Do not resubmit the same request with the same client token for more than 8 hours, or the result might not be idempotent. If you submit a request with the same client token but a change in other parameters within the 8-hour idempotency window, DynamoDB returns an IdempotentParameterMismatch exception.
  1754. */
  1755. ClientToken?: ClientToken;
  1756. /**
  1757. * The S3 bucket that provides the source for the import.
  1758. */
  1759. S3BucketSource: S3BucketSource;
  1760. /**
  1761. * The format of the source data. Valid values for ImportFormat are CSV, DYNAMODB_JSON or ION.
  1762. */
  1763. InputFormat: InputFormat;
  1764. /**
  1765. * Additional properties that specify how the input is formatted,
  1766. */
  1767. InputFormatOptions?: InputFormatOptions;
  1768. /**
  1769. * Type of compression to be used on the input coming from the imported table.
  1770. */
  1771. InputCompressionType?: InputCompressionType;
  1772. /**
  1773. * Parameters for the table to import the data into.
  1774. */
  1775. TableCreationParameters: TableCreationParameters;
  1776. }
  1777. export interface ImportTableOutput {
  1778. /**
  1779. * Represents the properties of the table created for the import, and parameters of the import. The import parameters include import status, how many items were processed, and how many errors were encountered.
  1780. */
  1781. ImportTableDescription: ImportTableDescription;
  1782. }
  1783. export type ImportedItemCount = number;
  1784. export interface IncrementalExportSpecification {
  1785. /**
  1786. * Time in the past which provides the inclusive start range for the export table's data, counted in seconds from the start of the Unix epoch. The incremental export will reflect the table's state including and after this point in time.
  1787. */
  1788. ExportFromTime?: ExportFromTime;
  1789. /**
  1790. * Time in the past which provides the exclusive end range for the export table's data, counted in seconds from the start of the Unix epoch. The incremental export will reflect the table's state just prior to this point in time. If this is not provided, the latest time with data available will be used.
  1791. */
  1792. ExportToTime?: ExportToTime;
  1793. /**
  1794. * The view type that was chosen for the export. Valid values are NEW_AND_OLD_IMAGES and NEW_IMAGES. The default value is NEW_AND_OLD_IMAGES.
  1795. */
  1796. ExportViewType?: ExportViewType;
  1797. }
  1798. export type IndexName = string;
  1799. export type IndexStatus = "CREATING"|"UPDATING"|"DELETING"|"ACTIVE"|string;
  1800. export type InputCompressionType = "GZIP"|"ZSTD"|"NONE"|string;
  1801. export type InputFormat = "DYNAMODB_JSON"|"ION"|"CSV"|string;
  1802. export interface InputFormatOptions {
  1803. /**
  1804. * The options for imported source files in CSV format. The values are Delimiter and HeaderList.
  1805. */
  1806. Csv?: CsvOptions;
  1807. }
  1808. export type Integer = number;
  1809. export type IntegerObject = number;
  1810. export type ItemCollectionKeyAttributeMap = {[key: string]: AttributeValue};
  1811. export interface ItemCollectionMetrics {
  1812. /**
  1813. * The partition key value of the item collection. This value is the same as the partition key value of the item.
  1814. */
  1815. ItemCollectionKey?: ItemCollectionKeyAttributeMap;
  1816. /**
  1817. * An estimate of item collection size, in gigabytes. This value is a two-element array containing a lower bound and an upper bound for the estimate. The estimate includes the size of all the items in the table, plus the size of all attributes projected into all of the local secondary indexes on that table. Use this estimate to measure whether a local secondary index is approaching its size limit. The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.
  1818. */
  1819. SizeEstimateRangeGB?: ItemCollectionSizeEstimateRange;
  1820. }
  1821. export type ItemCollectionMetricsMultiple = ItemCollectionMetrics[];
  1822. export type ItemCollectionMetricsPerTable = {[key: string]: ItemCollectionMetricsMultiple};
  1823. export type ItemCollectionSizeEstimateBound = number;
  1824. export type ItemCollectionSizeEstimateRange = ItemCollectionSizeEstimateBound[];
  1825. export type ItemCount = number;
  1826. export type ItemList = AttributeMap[];
  1827. export interface ItemResponse {
  1828. /**
  1829. * Map of attribute data consisting of the data type and attribute value.
  1830. */
  1831. Item?: AttributeMap;
  1832. }
  1833. export type ItemResponseList = ItemResponse[];
  1834. export type KMSMasterKeyArn = string;
  1835. export type KMSMasterKeyId = string;
  1836. export type Key = {[key: string]: AttributeValue};
  1837. export type KeyConditions = {[key: string]: Condition};
  1838. export type KeyExpression = string;
  1839. export type KeyList = Key[];
  1840. export type KeySchema = KeySchemaElement[];
  1841. export type KeySchemaAttributeName = string;
  1842. export interface KeySchemaElement {
  1843. /**
  1844. * The name of a key attribute.
  1845. */
  1846. AttributeName: KeySchemaAttributeName;
  1847. /**
  1848. * The role that this key attribute will assume: HASH - partition key RANGE - sort key The partition key of an item is also known as its hash attribute. The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values. The sort key of an item is also known as its range attribute. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
  1849. */
  1850. KeyType: KeyType;
  1851. }
  1852. export type KeyType = "HASH"|"RANGE"|string;
  1853. export interface KeysAndAttributes {
  1854. /**
  1855. * The primary key attribute values that define the items and the attributes associated with the items.
  1856. */
  1857. Keys: KeyList;
  1858. /**
  1859. * This is a legacy parameter. Use ProjectionExpression instead. For more information, see Legacy Conditional Parameters in the Amazon DynamoDB Developer Guide.
  1860. */
  1861. AttributesToGet?: AttributeNameList;
  1862. /**
  1863. * The consistency of a read operation. If set to true, then a strongly consistent read is used; otherwise, an eventually consistent read is used.
  1864. */
  1865. ConsistentRead?: ConsistentRead;
  1866. /**
  1867. * A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the ProjectionExpression must be separated by commas. If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result. For more information, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.
  1868. */
  1869. ProjectionExpression?: ProjectionExpression;
  1870. /**
  1871. * One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames: To access an attribute whose name conflicts with a DynamoDB reserved word. To create a placeholder for repeating occurrences of an attribute name in an expression. To prevent special characters in an attribute name from being misinterpreted in an expression. Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name: Percentile The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames: {"#P":"Percentile"} You could then use this substitution in an expression, as in this example: #P = :val Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime. For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.
  1872. */
  1873. ExpressionAttributeNames?: ExpressionAttributeNameMap;
  1874. }
  1875. export interface KinesisDataStreamDestination {
  1876. /**
  1877. * The ARN for a specific Kinesis data stream.
  1878. */
  1879. StreamArn?: StreamArn;
  1880. /**
  1881. * The current status of replication.
  1882. */
  1883. DestinationStatus?: DestinationStatus;
  1884. /**
  1885. * The human-readable string that corresponds to the replica status.
  1886. */
  1887. DestinationStatusDescription?: String;
  1888. /**
  1889. * The precision of the Kinesis data stream timestamp. The values are either MILLISECOND or MICROSECOND.
  1890. */
  1891. ApproximateCreationDateTimePrecision?: ApproximateCreationDateTimePrecision;
  1892. }
  1893. export type KinesisDataStreamDestinations = KinesisDataStreamDestination[];
  1894. export interface KinesisStreamingDestinationInput {
  1895. /**
  1896. * The name of the DynamoDB table. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
  1897. */
  1898. TableName: TableArn;
  1899. /**
  1900. * The ARN for a Kinesis data stream.
  1901. */
  1902. StreamArn: StreamArn;
  1903. /**
  1904. * The source for the Kinesis streaming information that is being enabled.
  1905. */
  1906. EnableKinesisStreamingConfiguration?: EnableKinesisStreamingConfiguration;
  1907. }
  1908. export interface KinesisStreamingDestinationOutput {
  1909. /**
  1910. * The name of the table being modified.
  1911. */
  1912. TableName?: TableName;
  1913. /**
  1914. * The ARN for the specific Kinesis data stream.
  1915. */
  1916. StreamArn?: StreamArn;
  1917. /**
  1918. * The current status of the replication.
  1919. */
  1920. DestinationStatus?: DestinationStatus;
  1921. /**
  1922. * The destination for the Kinesis streaming information that is being enabled.
  1923. */
  1924. EnableKinesisStreamingConfiguration?: EnableKinesisStreamingConfiguration;
  1925. }
  1926. export type LastUpdateDateTime = Date;
  1927. export type ListAttributeValue = AttributeValue[];
  1928. export interface ListBackupsInput {
  1929. /**
  1930. * Lists the backups from the table specified in TableName. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
  1931. */
  1932. TableName?: TableArn;
  1933. /**
  1934. * Maximum number of backups to return at once.
  1935. */
  1936. Limit?: BackupsInputLimit;
  1937. /**
  1938. * Only backups created after this time are listed. TimeRangeLowerBound is inclusive.
  1939. */
  1940. TimeRangeLowerBound?: TimeRangeLowerBound;
  1941. /**
  1942. * Only backups created before this time are listed. TimeRangeUpperBound is exclusive.
  1943. */
  1944. TimeRangeUpperBound?: TimeRangeUpperBound;
  1945. /**
  1946. * LastEvaluatedBackupArn is the Amazon Resource Name (ARN) of the backup last evaluated when the current page of results was returned, inclusive of the current page of results. This value may be specified as the ExclusiveStartBackupArn of a new ListBackups operation in order to fetch the next page of results.
  1947. */
  1948. ExclusiveStartBackupArn?: BackupArn;
  1949. /**
  1950. * The backups from the table specified by BackupType are listed. Where BackupType can be: USER - On-demand backup created by you. (The default setting if no other backup types are specified.) SYSTEM - On-demand backup automatically created by DynamoDB. ALL - All types of on-demand backups (USER and SYSTEM).
  1951. */
  1952. BackupType?: BackupTypeFilter;
  1953. }
  1954. export interface ListBackupsOutput {
  1955. /**
  1956. * List of BackupSummary objects.
  1957. */
  1958. BackupSummaries?: BackupSummaries;
  1959. /**
  1960. * The ARN of the backup last evaluated when the current page of results was returned, inclusive of the current page of results. This value may be specified as the ExclusiveStartBackupArn of a new ListBackups operation in order to fetch the next page of results. If LastEvaluatedBackupArn is empty, then the last page of results has been processed and there are no more results to be retrieved. If LastEvaluatedBackupArn is not empty, this may or may not indicate that there is more data to be returned. All results are guaranteed to have been returned if and only if no value for LastEvaluatedBackupArn is returned.
  1961. */
  1962. LastEvaluatedBackupArn?: BackupArn;
  1963. }
  1964. export interface ListContributorInsightsInput {
  1965. /**
  1966. * The name of the table. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
  1967. */
  1968. TableName?: TableArn;
  1969. /**
  1970. * A token to for the desired page, if there is one.
  1971. */
  1972. NextToken?: NextTokenString;
  1973. /**
  1974. * Maximum number of results to return per page.
  1975. */
  1976. MaxResults?: ListContributorInsightsLimit;
  1977. }
  1978. export type ListContributorInsightsLimit = number;
  1979. export interface ListContributorInsightsOutput {
  1980. /**
  1981. * A list of ContributorInsightsSummary.
  1982. */
  1983. ContributorInsightsSummaries?: ContributorInsightsSummaries;
  1984. /**
  1985. * A token to go to the next page if there is one.
  1986. */
  1987. NextToken?: NextTokenString;
  1988. }
  1989. export interface ListExportsInput {
  1990. /**
  1991. * The Amazon Resource Name (ARN) associated with the exported table.
  1992. */
  1993. TableArn?: TableArn;
  1994. /**
  1995. * Maximum number of results to return per page.
  1996. */
  1997. MaxResults?: ListExportsMaxLimit;
  1998. /**
  1999. * An optional string that, if supplied, must be copied from the output of a previous call to ListExports. When provided in this manner, the API fetches the next page of results.
  2000. */
  2001. NextToken?: ExportNextToken;
  2002. }
  2003. export type ListExportsMaxLimit = number;
  2004. export interface ListExportsOutput {
  2005. /**
  2006. * A list of ExportSummary objects.
  2007. */
  2008. ExportSummaries?: ExportSummaries;
  2009. /**
  2010. * If this value is returned, there are additional results to be displayed. To retrieve them, call ListExports again, with NextToken set to this value.
  2011. */
  2012. NextToken?: ExportNextToken;
  2013. }
  2014. export interface ListGlobalTablesInput {
  2015. /**
  2016. * The first global table name that this operation will evaluate.
  2017. */
  2018. ExclusiveStartGlobalTableName?: TableName;
  2019. /**
  2020. * The maximum number of table names to return, if the parameter is not specified DynamoDB defaults to 100. If the number of global tables DynamoDB finds reaches this limit, it stops the operation and returns the table names collected up to that point, with a table name in the LastEvaluatedGlobalTableName to apply in a subsequent operation to the ExclusiveStartGlobalTableName parameter.
  2021. */
  2022. Limit?: PositiveIntegerObject;
  2023. /**
  2024. * Lists the global tables in a specific Region.
  2025. */
  2026. RegionName?: RegionName;
  2027. }
  2028. export interface ListGlobalTablesOutput {
  2029. /**
  2030. * List of global table names.
  2031. */
  2032. GlobalTables?: GlobalTableList;
  2033. /**
  2034. * Last evaluated global table name.
  2035. */
  2036. LastEvaluatedGlobalTableName?: TableName;
  2037. }
  2038. export interface ListImportsInput {
  2039. /**
  2040. * The Amazon Resource Name (ARN) associated with the table that was imported to.
  2041. */
  2042. TableArn?: TableArn;
  2043. /**
  2044. * The number of ImportSummary objects returned in a single page.
  2045. */
  2046. PageSize?: ListImportsMaxLimit;
  2047. /**
  2048. * An optional string that, if supplied, must be copied from the output of a previous call to ListImports. When provided in this manner, the API fetches the next page of results.
  2049. */
  2050. NextToken?: ImportNextToken;
  2051. }
  2052. export type ListImportsMaxLimit = number;
  2053. export interface ListImportsOutput {
  2054. /**
  2055. * A list of ImportSummary objects.
  2056. */
  2057. ImportSummaryList?: ImportSummaryList;
  2058. /**
  2059. * If this value is returned, there are additional results to be displayed. To retrieve them, call ListImports again, with NextToken set to this value.
  2060. */
  2061. NextToken?: ImportNextToken;
  2062. }
  2063. export interface ListTablesInput {
  2064. /**
  2065. * The first table name that this operation will evaluate. Use the value that was returned for LastEvaluatedTableName in a previous operation, so that you can obtain the next page of results.
  2066. */
  2067. ExclusiveStartTableName?: TableName;
  2068. /**
  2069. * A maximum number of table names to return. If this parameter is not specified, the limit is 100.
  2070. */
  2071. Limit?: ListTablesInputLimit;
  2072. }
  2073. export type ListTablesInputLimit = number;
  2074. export interface ListTablesOutput {
  2075. /**
  2076. * The names of the tables associated with the current account at the current endpoint. The maximum size of this array is 100. If LastEvaluatedTableName also appears in the output, you can use this value as the ExclusiveStartTableName parameter in a subsequent ListTables request and obtain the next page of results.
  2077. */
  2078. TableNames?: TableNameList;
  2079. /**
  2080. * The name of the last table in the current page of results. Use this value as the ExclusiveStartTableName in a new request to obtain the next page of results, until all the table names are returned. If you do not receive a LastEvaluatedTableName value in the response, this means that there are no more table names to be retrieved.
  2081. */
  2082. LastEvaluatedTableName?: TableName;
  2083. }
  2084. export interface ListTagsOfResourceInput {
  2085. /**
  2086. * The Amazon DynamoDB resource with tags to be listed. This value is an Amazon Resource Name (ARN).
  2087. */
  2088. ResourceArn: ResourceArnString;
  2089. /**
  2090. * An optional string that, if supplied, must be copied from the output of a previous call to ListTagOfResource. When provided in this manner, this API fetches the next page of results.
  2091. */
  2092. NextToken?: NextTokenString;
  2093. }
  2094. export interface ListTagsOfResourceOutput {
  2095. /**
  2096. * The tags currently associated with the Amazon DynamoDB resource.
  2097. */
  2098. Tags?: TagList;
  2099. /**
  2100. * If this value is returned, there are additional results to be displayed. To retrieve them, call ListTagsOfResource again, with NextToken set to this value.
  2101. */
  2102. NextToken?: NextTokenString;
  2103. }
  2104. export interface LocalSecondaryIndex {
  2105. /**
  2106. * The name of the local secondary index. The name must be unique among all other indexes on this table.
  2107. */
  2108. IndexName: IndexName;
  2109. /**
  2110. * The complete key schema for the local secondary index, consisting of one or more pairs of attribute names and key types: HASH - partition key RANGE - sort key The partition key of an item is also known as its hash attribute. The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values. The sort key of an item is also known as its range attribute. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
  2111. */
  2112. KeySchema: KeySchema;
  2113. /**
  2114. * Represents attributes that are copied (projected) from the table into the local secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
  2115. */
  2116. Projection: Projection;
  2117. }
  2118. export interface LocalSecondaryIndexDescription {
  2119. /**
  2120. * Represents the name of the local secondary index.
  2121. */
  2122. IndexName?: IndexName;
  2123. /**
  2124. * The complete key schema for the local secondary index, consisting of one or more pairs of attribute names and key types: HASH - partition key RANGE - sort key The partition key of an item is also known as its hash attribute. The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values. The sort key of an item is also known as its range attribute. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
  2125. */
  2126. KeySchema?: KeySchema;
  2127. /**
  2128. * Represents attributes that are copied (projected) from the table into the global secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
  2129. */
  2130. Projection?: Projection;
  2131. /**
  2132. * The total size of the specified index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.
  2133. */
  2134. IndexSizeBytes?: LongObject;
  2135. /**
  2136. * The number of items in the specified index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.
  2137. */
  2138. ItemCount?: LongObject;
  2139. /**
  2140. * The Amazon Resource Name (ARN) that uniquely identifies the index.
  2141. */
  2142. IndexArn?: String;
  2143. }
  2144. export type LocalSecondaryIndexDescriptionList = LocalSecondaryIndexDescription[];
  2145. export interface LocalSecondaryIndexInfo {
  2146. /**
  2147. * Represents the name of the local secondary index.
  2148. */
  2149. IndexName?: IndexName;
  2150. /**
  2151. * The complete key schema for a local secondary index, which consists of one or more pairs of attribute names and key types: HASH - partition key RANGE - sort key The partition key of an item is also known as its hash attribute. The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values. The sort key of an item is also known as its range attribute. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
  2152. */
  2153. KeySchema?: KeySchema;
  2154. /**
  2155. * Represents attributes that are copied (projected) from the table into the global secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
  2156. */
  2157. Projection?: Projection;
  2158. }
  2159. export type LocalSecondaryIndexList = LocalSecondaryIndex[];
  2160. export type LocalSecondaryIndexes = LocalSecondaryIndexInfo[];
  2161. export type Long = number;
  2162. export type LongObject = number;
  2163. export type MapAttributeValue = {[key: string]: AttributeValue};
  2164. export type NextTokenString = string;
  2165. export type NonKeyAttributeName = string;
  2166. export type NonKeyAttributeNameList = NonKeyAttributeName[];
  2167. export type NonNegativeLongObject = number;
  2168. export type NullAttributeValue = boolean;
  2169. export type NumberAttributeValue = string;
  2170. export type NumberSetAttributeValue = NumberAttributeValue[];
  2171. export interface OnDemandThroughput {
  2172. /**
  2173. * Maximum number of read request units for the specified table. To specify a maximum OnDemandThroughput on your table, set the value of MaxReadRequestUnits as greater than or equal to 1. To remove the maximum OnDemandThroughput that is currently set on your table, set the value of MaxReadRequestUnits to -1.
  2174. */
  2175. MaxReadRequestUnits?: LongObject;
  2176. /**
  2177. * Maximum number of write request units for the specified table. To specify a maximum OnDemandThroughput on your table, set the value of MaxWriteRequestUnits as greater than or equal to 1. To remove the maximum OnDemandThroughput that is currently set on your table, set the value of MaxWriteRequestUnits to -1.
  2178. */
  2179. MaxWriteRequestUnits?: LongObject;
  2180. }
  2181. export interface OnDemandThroughputOverride {
  2182. /**
  2183. * Maximum number of read request units for the specified replica table.
  2184. */
  2185. MaxReadRequestUnits?: LongObject;
  2186. }
  2187. export interface ParameterizedStatement {
  2188. /**
  2189. * A PartiQL statement that uses parameters.
  2190. */
  2191. Statement: PartiQLStatement;
  2192. /**
  2193. * The parameter values.
  2194. */
  2195. Parameters?: PreparedStatementParameters;
  2196. /**
  2197. * An optional parameter that returns the item attributes for a PartiQL ParameterizedStatement operation that failed a condition check. There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed.
  2198. */
  2199. ReturnValuesOnConditionCheckFailure?: ReturnValuesOnConditionCheckFailure;
  2200. }
  2201. export type ParameterizedStatements = ParameterizedStatement[];
  2202. export type PartiQLBatchRequest = BatchStatementRequest[];
  2203. export type PartiQLBatchResponse = BatchStatementResponse[];
  2204. export type PartiQLNextToken = string;
  2205. export type PartiQLStatement = string;
  2206. export interface PointInTimeRecoveryDescription {
  2207. /**
  2208. * The current state of point in time recovery: ENABLED - Point in time recovery is enabled. DISABLED - Point in time recovery is disabled.
  2209. */
  2210. PointInTimeRecoveryStatus?: PointInTimeRecoveryStatus;
  2211. /**
  2212. * Specifies the earliest point in time you can restore your table to. You can restore your table to any point in time during the last 35 days.
  2213. */
  2214. EarliestRestorableDateTime?: _Date;
  2215. /**
  2216. * LatestRestorableDateTime is typically 5 minutes before the current time.
  2217. */
  2218. LatestRestorableDateTime?: _Date;
  2219. }
  2220. export interface PointInTimeRecoverySpecification {
  2221. /**
  2222. * Indicates whether point in time recovery is enabled (true) or disabled (false) on the table.
  2223. */
  2224. PointInTimeRecoveryEnabled: BooleanObject;
  2225. }
  2226. export type PointInTimeRecoveryStatus = "ENABLED"|"DISABLED"|string;
  2227. export type PolicyRevisionId = string;
  2228. export type PositiveIntegerObject = number;
  2229. export type PositiveLongObject = number;
  2230. export type PreparedStatementParameters = AttributeValue[];
  2231. export type ProcessedItemCount = number;
  2232. export interface Projection {
  2233. /**
  2234. * The set of attributes that are projected into the index: KEYS_ONLY - Only the index and primary keys are projected into the index. INCLUDE - In addition to the attributes described in KEYS_ONLY, the secondary index will include other non-key attributes that you specify. ALL - All of the table attributes are projected into the index. When using the DynamoDB console, ALL is selected by default.
  2235. */
  2236. ProjectionType?: ProjectionType;
  2237. /**
  2238. * Represents the non-key attribute names which will be projected into the index. For local secondary indexes, the total count of NonKeyAttributes summed across all of the local secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.
  2239. */
  2240. NonKeyAttributes?: NonKeyAttributeNameList;
  2241. }
  2242. export type ProjectionExpression = string;
  2243. export type ProjectionType = "ALL"|"KEYS_ONLY"|"INCLUDE"|string;
  2244. export interface ProvisionedThroughput {
  2245. /**
  2246. * The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide. If read/write capacity mode is PAY_PER_REQUEST the value is set to 0.
  2247. */
  2248. ReadCapacityUnits: PositiveLongObject;
  2249. /**
  2250. * The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide. If read/write capacity mode is PAY_PER_REQUEST the value is set to 0.
  2251. */
  2252. WriteCapacityUnits: PositiveLongObject;
  2253. }
  2254. export interface ProvisionedThroughputDescription {
  2255. /**
  2256. * The date and time of the last provisioned throughput increase for this table.
  2257. */
  2258. LastIncreaseDateTime?: _Date;
  2259. /**
  2260. * The date and time of the last provisioned throughput decrease for this table.
  2261. */
  2262. LastDecreaseDateTime?: _Date;
  2263. /**
  2264. * The number of provisioned throughput decreases for this table during this UTC calendar day. For current maximums on provisioned throughput decreases, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.
  2265. */
  2266. NumberOfDecreasesToday?: PositiveLongObject;
  2267. /**
  2268. * The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException. Eventually consistent reads require less effort than strongly consistent reads, so a setting of 50 ReadCapacityUnits per second provides 100 eventually consistent ReadCapacityUnits per second.
  2269. */
  2270. ReadCapacityUnits?: NonNegativeLongObject;
  2271. /**
  2272. * The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.
  2273. */
  2274. WriteCapacityUnits?: NonNegativeLongObject;
  2275. }
  2276. export interface ProvisionedThroughputOverride {
  2277. /**
  2278. * Replica-specific read capacity units. If not specified, uses the source table's read capacity settings.
  2279. */
  2280. ReadCapacityUnits?: PositiveLongObject;
  2281. }
  2282. export interface Put {
  2283. /**
  2284. * A map of attribute name to attribute values, representing the primary key of the item to be written by PutItem. All of the table's primary key attributes must be specified, and their data types must match those of the table's key schema. If any attributes are present in the item that are part of an index key schema for the table, their types must match the index key schema.
  2285. */
  2286. Item: PutItemInputAttributeMap;
  2287. /**
  2288. * Name of the table in which to write the item. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
  2289. */
  2290. TableName: TableArn;
  2291. /**
  2292. * A condition that must be satisfied in order for a conditional update to succeed.
  2293. */
  2294. ConditionExpression?: ConditionExpression;
  2295. /**
  2296. * One or more substitution tokens for attribute names in an expression.
  2297. */
  2298. ExpressionAttributeNames?: ExpressionAttributeNameMap;
  2299. /**
  2300. * One or more values that can be substituted in an expression.
  2301. */
  2302. ExpressionAttributeValues?: ExpressionAttributeValueMap;
  2303. /**
  2304. * Use ReturnValuesOnConditionCheckFailure to get the item attributes if the Put condition fails. For ReturnValuesOnConditionCheckFailure, the valid values are: NONE and ALL_OLD.
  2305. */
  2306. ReturnValuesOnConditionCheckFailure?: ReturnValuesOnConditionCheckFailure;
  2307. }
  2308. export interface PutItemInput {
  2309. /**
  2310. * The name of the table to contain the item. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
  2311. */
  2312. TableName: TableArn;
  2313. /**
  2314. * A map of attribute name/value pairs, one for each attribute. Only the primary key attributes are required; you can optionally provide other attribute name-value pairs for the item. You must provide all of the attributes for the primary key. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide both values for both the partition key and the sort key. If you specify any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition. Empty String and Binary attribute values are allowed. Attribute values of type String and Binary must have a length greater than zero if the attribute is used as a key attribute for a table or index. For more information about primary keys, see Primary Key in the Amazon DynamoDB Developer Guide. Each element in the Item map is an AttributeValue object.
  2315. */
  2316. Item: PutItemInputAttributeMap;
  2317. /**
  2318. * This is a legacy parameter. Use ConditionExpression instead. For more information, see Expected in the Amazon DynamoDB Developer Guide.
  2319. */
  2320. Expected?: ExpectedAttributeMap;
  2321. /**
  2322. * Use ReturnValues if you want to get the item attributes as they appeared before they were updated with the PutItem request. For PutItem, the valid values are: NONE - If ReturnValues is not specified, or if its value is NONE, then nothing is returned. (This setting is the default for ReturnValues.) ALL_OLD - If PutItem overwrote an attribute name-value pair, then the content of the old item is returned. The values returned are strongly consistent. There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed. The ReturnValues parameter is used by several DynamoDB operations; however, PutItem does not recognize any values other than NONE or ALL_OLD.
  2323. */
  2324. ReturnValues?: ReturnValue;
  2325. ReturnConsumedCapacity?: ReturnConsumedCapacity;
  2326. /**
  2327. * Determines whether item collection metrics are returned. If set to SIZE, the response includes statistics about item collections, if any, that were modified during the operation are returned in the response. If set to NONE (the default), no statistics are returned.
  2328. */
  2329. ReturnItemCollectionMetrics?: ReturnItemCollectionMetrics;
  2330. /**
  2331. * This is a legacy parameter. Use ConditionExpression instead. For more information, see ConditionalOperator in the Amazon DynamoDB Developer Guide.
  2332. */
  2333. ConditionalOperator?: ConditionalOperator;
  2334. /**
  2335. * A condition that must be satisfied in order for a conditional PutItem operation to succeed. An expression can contain any of the following: Functions: attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size These function names are case-sensitive. Comparison operators: = | &lt;&gt; | &lt; | &gt; | &lt;= | &gt;= | BETWEEN | IN Logical operators: AND | OR | NOT For more information on condition expressions, see Condition Expressions in the Amazon DynamoDB Developer Guide.
  2336. */
  2337. ConditionExpression?: ConditionExpression;
  2338. /**
  2339. * One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames: To access an attribute whose name conflicts with a DynamoDB reserved word. To create a placeholder for repeating occurrences of an attribute name in an expression. To prevent special characters in an attribute name from being misinterpreted in an expression. Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name: Percentile The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames: {"#P":"Percentile"} You could then use this substitution in an expression, as in this example: #P = :val Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime. For more information on expression attribute names, see Specifying Item Attributes in the Amazon DynamoDB Developer Guide.
  2340. */
  2341. ExpressionAttributeNames?: ExpressionAttributeNameMap;
  2342. /**
  2343. * One or more values that can be substituted in an expression. Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the ProductStatus attribute was one of the following: Available | Backordered | Discontinued You would first need to specify ExpressionAttributeValues as follows: { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} } You could then use these values in an expression, such as this: ProductStatus IN (:avail, :back, :disc) For more information on expression attribute values, see Condition Expressions in the Amazon DynamoDB Developer Guide.
  2344. */
  2345. ExpressionAttributeValues?: ExpressionAttributeValueMap;
  2346. /**
  2347. * An optional parameter that returns the item attributes for a PutItem operation that failed a condition check. There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed.
  2348. */
  2349. ReturnValuesOnConditionCheckFailure?: ReturnValuesOnConditionCheckFailure;
  2350. }
  2351. export type PutItemInputAttributeMap = {[key: string]: AttributeValue};
  2352. export interface PutItemOutput {
  2353. /**
  2354. * The attribute values as they appeared before the PutItem operation, but only if ReturnValues is specified as ALL_OLD in the request. Each element consists of an attribute name and an attribute value.
  2355. */
  2356. Attributes?: AttributeMap;
  2357. /**
  2358. * The capacity units consumed by the PutItem operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the ReturnConsumedCapacity parameter was specified. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide.
  2359. */
  2360. ConsumedCapacity?: ConsumedCapacity;
  2361. /**
  2362. * Information about item collections, if any, that were affected by the PutItem operation. ItemCollectionMetrics is only returned if the ReturnItemCollectionMetrics parameter was specified. If the table does not have any local secondary indexes, this information is not returned in the response. Each ItemCollectionMetrics element consists of: ItemCollectionKey - The partition key value of the item collection. This is the same as the partition key value of the item itself. SizeEstimateRangeGB - An estimate of item collection size, in gigabytes. This value is a two-element array containing a lower bound and an upper bound for the estimate. The estimate includes the size of all the items in the table, plus the size of all attributes projected into all of the local secondary indexes on that table. Use this estimate to measure whether a local secondary index is approaching its size limit. The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.
  2363. */
  2364. ItemCollectionMetrics?: ItemCollectionMetrics;
  2365. }
  2366. export interface PutRequest {
  2367. /**
  2368. * A map of attribute name to attribute values, representing the primary key of an item to be processed by PutItem. All of the table's primary key attributes must be specified, and their data types must match those of the table's key schema. If any attributes are present in the item that are part of an index key schema for the table, their types must match the index key schema.
  2369. */
  2370. Item: PutItemInputAttributeMap;
  2371. }
  2372. export interface PutResourcePolicyInput {
  2373. /**
  2374. * The Amazon Resource Name (ARN) of the DynamoDB resource to which the policy will be attached. The resources you can specify include tables and streams. You can control index permissions using the base table's policy. To specify the same permission level for your table and its indexes, you can provide both the table and index Amazon Resource Name (ARN)s in the Resource field of a given Statement in your policy document. Alternatively, to specify different permissions for your table, indexes, or both, you can define multiple Statement fields in your policy document.
  2375. */
  2376. ResourceArn: ResourceArnString;
  2377. /**
  2378. * An Amazon Web Services resource-based policy document in JSON format. The maximum size supported for a resource-based policy document is 20 KB. DynamoDB counts whitespaces when calculating the size of a policy against this limit. Within a resource-based policy, if the action for a DynamoDB service-linked role (SLR) to replicate data for a global table is denied, adding or deleting a replica will fail with an error. For a full list of all considerations that apply while attaching a resource-based policy, see Resource-based policy considerations.
  2379. */
  2380. Policy: ResourcePolicy;
  2381. /**
  2382. * A string value that you can use to conditionally update your policy. You can provide the revision ID of your existing policy to make mutating requests against that policy. When you provide an expected revision ID, if the revision ID of the existing policy on the resource doesn't match or if there's no policy attached to the resource, your request will be rejected with a PolicyNotFoundException. To conditionally attach a policy when no policy exists for the resource, specify NO_POLICY for the revision ID.
  2383. */
  2384. ExpectedRevisionId?: PolicyRevisionId;
  2385. /**
  2386. * Set this parameter to true to confirm that you want to remove your permissions to change the policy of this resource in the future.
  2387. */
  2388. ConfirmRemoveSelfResourceAccess?: ConfirmRemoveSelfResourceAccess;
  2389. }
  2390. export interface PutResourcePolicyOutput {
  2391. /**
  2392. * A unique string that represents the revision ID of the policy. If you're comparing revision IDs, make sure to always use string comparison logic.
  2393. */
  2394. RevisionId?: PolicyRevisionId;
  2395. }
  2396. export interface QueryInput {
  2397. /**
  2398. * The name of the table containing the requested items. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
  2399. */
  2400. TableName: TableArn;
  2401. /**
  2402. * The name of an index to query. This index can be any local secondary index or global secondary index on the table. Note that if you use the IndexName parameter, you must also provide TableName.
  2403. */
  2404. IndexName?: IndexName;
  2405. /**
  2406. * The attributes to be returned in the result. You can retrieve all item attributes, specific item attributes, the count of matching items, or in the case of an index, some or all of the attributes projected into the index. ALL_ATTRIBUTES - Returns all of the item attributes from the specified table or index. If you query a local secondary index, then for each matching item in the index, DynamoDB fetches the entire item from the parent table. If the index is configured to project all item attributes, then all of the data can be obtained from the local secondary index, and no fetching is required. ALL_PROJECTED_ATTRIBUTES - Allowed only when querying an index. Retrieves all attributes that have been projected into the index. If the index is configured to project all attributes, this return value is equivalent to specifying ALL_ATTRIBUTES. COUNT - Returns the number of matching items, rather than the matching items themselves. Note that this uses the same quantity of read capacity units as getting the items, and is subject to the same item size calculations. SPECIFIC_ATTRIBUTES - Returns only the attributes listed in ProjectionExpression. This return value is equivalent to specifying ProjectionExpression without specifying any value for Select. If you query or scan a local secondary index and request only attributes that are projected into that index, the operation will read only the index and not the table. If any of the requested attributes are not projected into the local secondary index, DynamoDB fetches each of these attributes from the parent table. This extra fetching incurs additional throughput cost and latency. If you query or scan a global secondary index, you can only request attributes that are projected into the index. Global secondary index queries cannot fetch attributes from the parent table. If neither Select nor ProjectionExpression are specified, DynamoDB defaults to ALL_ATTRIBUTES when accessing a table, and ALL_PROJECTED_ATTRIBUTES when accessing an index. You cannot use both Select and ProjectionExpression together in a single request, unless the value for Select is SPECIFIC_ATTRIBUTES. (This usage is equivalent to specifying ProjectionExpression without any value for Select.) If you use the ProjectionExpression parameter, then the value for Select can only be SPECIFIC_ATTRIBUTES. Any other value for Select will return an error.
  2407. */
  2408. Select?: Select;
  2409. /**
  2410. * This is a legacy parameter. Use ProjectionExpression instead. For more information, see AttributesToGet in the Amazon DynamoDB Developer Guide.
  2411. */
  2412. AttributesToGet?: AttributeNameList;
  2413. /**
  2414. * The maximum number of items to evaluate (not necessarily the number of matching items). If DynamoDB processes the number of items up to the limit while processing the results, it stops the operation and returns the matching values up to that point, and a key in LastEvaluatedKey to apply in a subsequent operation, so that you can pick up where you left off. Also, if the processed dataset size exceeds 1 MB before DynamoDB reaches this limit, it stops the operation and returns the matching values up to the limit, and a key in LastEvaluatedKey to apply in a subsequent operation to continue the operation. For more information, see Query and Scan in the Amazon DynamoDB Developer Guide.
  2415. */
  2416. Limit?: PositiveIntegerObject;
  2417. /**
  2418. * Determines the read consistency model: If set to true, then the operation uses strongly consistent reads; otherwise, the operation uses eventually consistent reads. Strongly consistent reads are not supported on global secondary indexes. If you query a global secondary index with ConsistentRead set to true, you will receive a ValidationException.
  2419. */
  2420. ConsistentRead?: ConsistentRead;
  2421. /**
  2422. * This is a legacy parameter. Use KeyConditionExpression instead. For more information, see KeyConditions in the Amazon DynamoDB Developer Guide.
  2423. */
  2424. KeyConditions?: KeyConditions;
  2425. /**
  2426. * This is a legacy parameter. Use FilterExpression instead. For more information, see QueryFilter in the Amazon DynamoDB Developer Guide.
  2427. */
  2428. QueryFilter?: FilterConditionMap;
  2429. /**
  2430. * This is a legacy parameter. Use FilterExpression instead. For more information, see ConditionalOperator in the Amazon DynamoDB Developer Guide.
  2431. */
  2432. ConditionalOperator?: ConditionalOperator;
  2433. /**
  2434. * Specifies the order for index traversal: If true (default), the traversal is performed in ascending order; if false, the traversal is performed in descending order. Items with the same partition key value are stored in sorted order by sort key. If the sort key data type is Number, the results are stored in numeric order. For type String, the results are stored in order of UTF-8 bytes. For type Binary, DynamoDB treats each byte of the binary data as unsigned. If ScanIndexForward is true, DynamoDB returns the results in the order in which they are stored (by sort key value). This is the default behavior. If ScanIndexForward is false, DynamoDB reads the results in reverse order by sort key value, and then returns the results to the client.
  2435. */
  2436. ScanIndexForward?: BooleanObject;
  2437. /**
  2438. * The primary key of the first item that this operation will evaluate. Use the value that was returned for LastEvaluatedKey in the previous operation. The data type for ExclusiveStartKey must be String, Number, or Binary. No set data types are allowed.
  2439. */
  2440. ExclusiveStartKey?: Key;
  2441. ReturnConsumedCapacity?: ReturnConsumedCapacity;
  2442. /**
  2443. * A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas. If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result. For more information, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.
  2444. */
  2445. ProjectionExpression?: ProjectionExpression;
  2446. /**
  2447. * A string that contains conditions that DynamoDB applies after the Query operation, but before the data is returned to you. Items that do not satisfy the FilterExpression criteria are not returned. A FilterExpression does not allow key attributes. You cannot define a filter expression based on a partition key or a sort key. A FilterExpression is applied after the items have already been read; the process of filtering does not consume any additional read capacity units. For more information, see Filter Expressions in the Amazon DynamoDB Developer Guide.
  2448. */
  2449. FilterExpression?: ConditionExpression;
  2450. /**
  2451. * The condition that specifies the key values for items to be retrieved by the Query action. The condition must perform an equality test on a single partition key value. The condition can optionally perform one of several comparison tests on a single sort key value. This allows Query to retrieve one item with a given partition key value and sort key value, or several items that have the same partition key value but different sort key values. The partition key equality test is required, and must be specified in the following format: partitionKeyName = :partitionkeyval If you also want to provide a condition for the sort key, it must be combined using AND with the condition for the sort key. Following is an example, using the = comparison operator for the sort key: partitionKeyName = :partitionkeyval AND sortKeyName = :sortkeyval Valid comparisons for the sort key condition are as follows: sortKeyName = :sortkeyval - true if the sort key value is equal to :sortkeyval. sortKeyName &lt; :sortkeyval - true if the sort key value is less than :sortkeyval. sortKeyName &lt;= :sortkeyval - true if the sort key value is less than or equal to :sortkeyval. sortKeyName &gt; :sortkeyval - true if the sort key value is greater than :sortkeyval. sortKeyName &gt;= :sortkeyval - true if the sort key value is greater than or equal to :sortkeyval. sortKeyName BETWEEN :sortkeyval1 AND :sortkeyval2 - true if the sort key value is greater than or equal to :sortkeyval1, and less than or equal to :sortkeyval2. begins_with ( sortKeyName, :sortkeyval ) - true if the sort key value begins with a particular operand. (You cannot use this function with a sort key that is of type Number.) Note that the function name begins_with is case-sensitive. Use the ExpressionAttributeValues parameter to replace tokens such as :partitionval and :sortval with actual values at runtime. You can optionally use the ExpressionAttributeNames parameter to replace the names of the partition key and sort key with placeholder tokens. This option might be necessary if an attribute name conflicts with a DynamoDB reserved word. For example, the following KeyConditionExpression parameter causes an error because Size is a reserved word: Size = :myval To work around this, define a placeholder (such a #S) to represent the attribute name Size. KeyConditionExpression then is as follows: #S = :myval For a list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide. For more information on ExpressionAttributeNames and ExpressionAttributeValues, see Using Placeholders for Attribute Names and Values in the Amazon DynamoDB Developer Guide.
  2452. */
  2453. KeyConditionExpression?: KeyExpression;
  2454. /**
  2455. * One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames: To access an attribute whose name conflicts with a DynamoDB reserved word. To create a placeholder for repeating occurrences of an attribute name in an expression. To prevent special characters in an attribute name from being misinterpreted in an expression. Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name: Percentile The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames: {"#P":"Percentile"} You could then use this substitution in an expression, as in this example: #P = :val Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime. For more information on expression attribute names, see Specifying Item Attributes in the Amazon DynamoDB Developer Guide.
  2456. */
  2457. ExpressionAttributeNames?: ExpressionAttributeNameMap;
  2458. /**
  2459. * One or more values that can be substituted in an expression. Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the ProductStatus attribute was one of the following: Available | Backordered | Discontinued You would first need to specify ExpressionAttributeValues as follows: { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} } You could then use these values in an expression, such as this: ProductStatus IN (:avail, :back, :disc) For more information on expression attribute values, see Specifying Conditions in the Amazon DynamoDB Developer Guide.
  2460. */
  2461. ExpressionAttributeValues?: ExpressionAttributeValueMap;
  2462. }
  2463. export interface QueryOutput {
  2464. /**
  2465. * An array of item attributes that match the query criteria. Each element in this array consists of an attribute name and the value for that attribute.
  2466. */
  2467. Items?: ItemList;
  2468. /**
  2469. * The number of items in the response. If you used a QueryFilter in the request, then Count is the number of items returned after the filter was applied, and ScannedCount is the number of matching items before the filter was applied. If you did not use a filter in the request, then Count and ScannedCount are the same.
  2470. */
  2471. Count?: Integer;
  2472. /**
  2473. * The number of items evaluated, before any QueryFilter is applied. A high ScannedCount value with few, or no, Count results indicates an inefficient Query operation. For more information, see Count and ScannedCount in the Amazon DynamoDB Developer Guide. If you did not use a filter in the request, then ScannedCount is the same as Count.
  2474. */
  2475. ScannedCount?: Integer;
  2476. /**
  2477. * The primary key of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request. If LastEvaluatedKey is empty, then the "last page" of results has been processed and there is no more data to be retrieved. If LastEvaluatedKey is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when LastEvaluatedKey is empty.
  2478. */
  2479. LastEvaluatedKey?: Key;
  2480. /**
  2481. * The capacity units consumed by the Query operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the ReturnConsumedCapacity parameter was specified. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide.
  2482. */
  2483. ConsumedCapacity?: ConsumedCapacity;
  2484. }
  2485. export type RegionName = string;
  2486. export interface Replica {
  2487. /**
  2488. * The Region where the replica needs to be created.
  2489. */
  2490. RegionName?: RegionName;
  2491. }
  2492. export interface ReplicaAutoScalingDescription {
  2493. /**
  2494. * The Region where the replica exists.
  2495. */
  2496. RegionName?: RegionName;
  2497. /**
  2498. * Replica-specific global secondary index auto scaling settings.
  2499. */
  2500. GlobalSecondaryIndexes?: ReplicaGlobalSecondaryIndexAutoScalingDescriptionList;
  2501. ReplicaProvisionedReadCapacityAutoScalingSettings?: AutoScalingSettingsDescription;
  2502. ReplicaProvisionedWriteCapacityAutoScalingSettings?: AutoScalingSettingsDescription;
  2503. /**
  2504. * The current state of the replica: CREATING - The replica is being created. UPDATING - The replica is being updated. DELETING - The replica is being deleted. ACTIVE - The replica is ready for use.
  2505. */
  2506. ReplicaStatus?: ReplicaStatus;
  2507. }
  2508. export type ReplicaAutoScalingDescriptionList = ReplicaAutoScalingDescription[];
  2509. export interface ReplicaAutoScalingUpdate {
  2510. /**
  2511. * The Region where the replica exists.
  2512. */
  2513. RegionName: RegionName;
  2514. /**
  2515. * Represents the auto scaling settings of global secondary indexes that will be modified.
  2516. */
  2517. ReplicaGlobalSecondaryIndexUpdates?: ReplicaGlobalSecondaryIndexAutoScalingUpdateList;
  2518. ReplicaProvisionedReadCapacityAutoScalingUpdate?: AutoScalingSettingsUpdate;
  2519. }
  2520. export type ReplicaAutoScalingUpdateList = ReplicaAutoScalingUpdate[];
  2521. export interface ReplicaDescription {
  2522. /**
  2523. * The name of the Region.
  2524. */
  2525. RegionName?: RegionName;
  2526. /**
  2527. * The current state of the replica: CREATING - The replica is being created. UPDATING - The replica is being updated. DELETING - The replica is being deleted. ACTIVE - The replica is ready for use. REGION_DISABLED - The replica is inaccessible because the Amazon Web Services Region has been disabled. If the Amazon Web Services Region remains inaccessible for more than 20 hours, DynamoDB will remove this replica from the replication group. The replica will not be deleted and replication will stop from and to this region. INACCESSIBLE_ENCRYPTION_CREDENTIALS - The KMS key used to encrypt the table is inaccessible. If the KMS key remains inaccessible for more than 20 hours, DynamoDB will remove this replica from the replication group. The replica will not be deleted and replication will stop from and to this region.
  2528. */
  2529. ReplicaStatus?: ReplicaStatus;
  2530. /**
  2531. * Detailed information about the replica status.
  2532. */
  2533. ReplicaStatusDescription?: ReplicaStatusDescription;
  2534. /**
  2535. * Specifies the progress of a Create, Update, or Delete action on the replica as a percentage.
  2536. */
  2537. ReplicaStatusPercentProgress?: ReplicaStatusPercentProgress;
  2538. /**
  2539. * The KMS key of the replica that will be used for KMS encryption.
  2540. */
  2541. KMSMasterKeyId?: KMSMasterKeyId;
  2542. /**
  2543. * Replica-specific provisioned throughput. If not described, uses the source table's provisioned throughput settings.
  2544. */
  2545. ProvisionedThroughputOverride?: ProvisionedThroughputOverride;
  2546. /**
  2547. * Overrides the maximum on-demand throughput settings for the specified replica table.
  2548. */
  2549. OnDemandThroughputOverride?: OnDemandThroughputOverride;
  2550. /**
  2551. * Replica-specific global secondary index settings.
  2552. */
  2553. GlobalSecondaryIndexes?: ReplicaGlobalSecondaryIndexDescriptionList;
  2554. /**
  2555. * The time at which the replica was first detected as inaccessible. To determine cause of inaccessibility check the ReplicaStatus property.
  2556. */
  2557. ReplicaInaccessibleDateTime?: _Date;
  2558. ReplicaTableClassSummary?: TableClassSummary;
  2559. }
  2560. export type ReplicaDescriptionList = ReplicaDescription[];
  2561. export interface ReplicaGlobalSecondaryIndex {
  2562. /**
  2563. * The name of the global secondary index.
  2564. */
  2565. IndexName: IndexName;
  2566. /**
  2567. * Replica table GSI-specific provisioned throughput. If not specified, uses the source table GSI's read capacity settings.
  2568. */
  2569. ProvisionedThroughputOverride?: ProvisionedThroughputOverride;
  2570. /**
  2571. * Overrides the maximum on-demand throughput settings for the specified global secondary index in the specified replica table.
  2572. */
  2573. OnDemandThroughputOverride?: OnDemandThroughputOverride;
  2574. }
  2575. export interface ReplicaGlobalSecondaryIndexAutoScalingDescription {
  2576. /**
  2577. * The name of the global secondary index.
  2578. */
  2579. IndexName?: IndexName;
  2580. /**
  2581. * The current state of the replica global secondary index: CREATING - The index is being created. UPDATING - The table/index configuration is being updated. The table/index remains available for data operations when UPDATING DELETING - The index is being deleted. ACTIVE - The index is ready for use.
  2582. */
  2583. IndexStatus?: IndexStatus;
  2584. ProvisionedReadCapacityAutoScalingSettings?: AutoScalingSettingsDescription;
  2585. ProvisionedWriteCapacityAutoScalingSettings?: AutoScalingSettingsDescription;
  2586. }
  2587. export type ReplicaGlobalSecondaryIndexAutoScalingDescriptionList = ReplicaGlobalSecondaryIndexAutoScalingDescription[];
  2588. export interface ReplicaGlobalSecondaryIndexAutoScalingUpdate {
  2589. /**
  2590. * The name of the global secondary index.
  2591. */
  2592. IndexName?: IndexName;
  2593. ProvisionedReadCapacityAutoScalingUpdate?: AutoScalingSettingsUpdate;
  2594. }
  2595. export type ReplicaGlobalSecondaryIndexAutoScalingUpdateList = ReplicaGlobalSecondaryIndexAutoScalingUpdate[];
  2596. export interface ReplicaGlobalSecondaryIndexDescription {
  2597. /**
  2598. * The name of the global secondary index.
  2599. */
  2600. IndexName?: IndexName;
  2601. /**
  2602. * If not described, uses the source table GSI's read capacity settings.
  2603. */
  2604. ProvisionedThroughputOverride?: ProvisionedThroughputOverride;
  2605. /**
  2606. * Overrides the maximum on-demand throughput for the specified global secondary index in the specified replica table.
  2607. */
  2608. OnDemandThroughputOverride?: OnDemandThroughputOverride;
  2609. }
  2610. export type ReplicaGlobalSecondaryIndexDescriptionList = ReplicaGlobalSecondaryIndexDescription[];
  2611. export type ReplicaGlobalSecondaryIndexList = ReplicaGlobalSecondaryIndex[];
  2612. export interface ReplicaGlobalSecondaryIndexSettingsDescription {
  2613. /**
  2614. * The name of the global secondary index. The name must be unique among all other indexes on this table.
  2615. */
  2616. IndexName: IndexName;
  2617. /**
  2618. * The current status of the global secondary index: CREATING - The global secondary index is being created. UPDATING - The global secondary index is being updated. DELETING - The global secondary index is being deleted. ACTIVE - The global secondary index is ready for use.
  2619. */
  2620. IndexStatus?: IndexStatus;
  2621. /**
  2622. * The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException.
  2623. */
  2624. ProvisionedReadCapacityUnits?: PositiveLongObject;
  2625. /**
  2626. * Auto scaling settings for a global secondary index replica's read capacity units.
  2627. */
  2628. ProvisionedReadCapacityAutoScalingSettings?: AutoScalingSettingsDescription;
  2629. /**
  2630. * The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.
  2631. */
  2632. ProvisionedWriteCapacityUnits?: PositiveLongObject;
  2633. /**
  2634. * Auto scaling settings for a global secondary index replica's write capacity units.
  2635. */
  2636. ProvisionedWriteCapacityAutoScalingSettings?: AutoScalingSettingsDescription;
  2637. }
  2638. export type ReplicaGlobalSecondaryIndexSettingsDescriptionList = ReplicaGlobalSecondaryIndexSettingsDescription[];
  2639. export interface ReplicaGlobalSecondaryIndexSettingsUpdate {
  2640. /**
  2641. * The name of the global secondary index. The name must be unique among all other indexes on this table.
  2642. */
  2643. IndexName: IndexName;
  2644. /**
  2645. * The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException.
  2646. */
  2647. ProvisionedReadCapacityUnits?: PositiveLongObject;
  2648. /**
  2649. * Auto scaling settings for managing a global secondary index replica's read capacity units.
  2650. */
  2651. ProvisionedReadCapacityAutoScalingSettingsUpdate?: AutoScalingSettingsUpdate;
  2652. }
  2653. export type ReplicaGlobalSecondaryIndexSettingsUpdateList = ReplicaGlobalSecondaryIndexSettingsUpdate[];
  2654. export type ReplicaList = Replica[];
  2655. export interface ReplicaSettingsDescription {
  2656. /**
  2657. * The Region name of the replica.
  2658. */
  2659. RegionName: RegionName;
  2660. /**
  2661. * The current state of the Region: CREATING - The Region is being created. UPDATING - The Region is being updated. DELETING - The Region is being deleted. ACTIVE - The Region is ready for use.
  2662. */
  2663. ReplicaStatus?: ReplicaStatus;
  2664. /**
  2665. * The read/write capacity mode of the replica.
  2666. */
  2667. ReplicaBillingModeSummary?: BillingModeSummary;
  2668. /**
  2669. * The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
  2670. */
  2671. ReplicaProvisionedReadCapacityUnits?: NonNegativeLongObject;
  2672. /**
  2673. * Auto scaling settings for a global table replica's read capacity units.
  2674. */
  2675. ReplicaProvisionedReadCapacityAutoScalingSettings?: AutoScalingSettingsDescription;
  2676. /**
  2677. * The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
  2678. */
  2679. ReplicaProvisionedWriteCapacityUnits?: NonNegativeLongObject;
  2680. /**
  2681. * Auto scaling settings for a global table replica's write capacity units.
  2682. */
  2683. ReplicaProvisionedWriteCapacityAutoScalingSettings?: AutoScalingSettingsDescription;
  2684. /**
  2685. * Replica global secondary index settings for the global table.
  2686. */
  2687. ReplicaGlobalSecondaryIndexSettings?: ReplicaGlobalSecondaryIndexSettingsDescriptionList;
  2688. ReplicaTableClassSummary?: TableClassSummary;
  2689. }
  2690. export type ReplicaSettingsDescriptionList = ReplicaSettingsDescription[];
  2691. export interface ReplicaSettingsUpdate {
  2692. /**
  2693. * The Region of the replica to be added.
  2694. */
  2695. RegionName: RegionName;
  2696. /**
  2697. * The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
  2698. */
  2699. ReplicaProvisionedReadCapacityUnits?: PositiveLongObject;
  2700. /**
  2701. * Auto scaling settings for managing a global table replica's read capacity units.
  2702. */
  2703. ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate?: AutoScalingSettingsUpdate;
  2704. /**
  2705. * Represents the settings of a global secondary index for a global table that will be modified.
  2706. */
  2707. ReplicaGlobalSecondaryIndexSettingsUpdate?: ReplicaGlobalSecondaryIndexSettingsUpdateList;
  2708. /**
  2709. * Replica-specific table class. If not specified, uses the source table's table class.
  2710. */
  2711. ReplicaTableClass?: TableClass;
  2712. }
  2713. export type ReplicaSettingsUpdateList = ReplicaSettingsUpdate[];
  2714. export type ReplicaStatus = "CREATING"|"CREATION_FAILED"|"UPDATING"|"DELETING"|"ACTIVE"|"REGION_DISABLED"|"INACCESSIBLE_ENCRYPTION_CREDENTIALS"|string;
  2715. export type ReplicaStatusDescription = string;
  2716. export type ReplicaStatusPercentProgress = string;
  2717. export interface ReplicaUpdate {
  2718. /**
  2719. * The parameters required for creating a replica on an existing global table.
  2720. */
  2721. Create?: CreateReplicaAction;
  2722. /**
  2723. * The name of the existing replica to be removed.
  2724. */
  2725. Delete?: DeleteReplicaAction;
  2726. }
  2727. export type ReplicaUpdateList = ReplicaUpdate[];
  2728. export interface ReplicationGroupUpdate {
  2729. /**
  2730. * The parameters required for creating a replica for the table.
  2731. */
  2732. Create?: CreateReplicationGroupMemberAction;
  2733. /**
  2734. * The parameters required for updating a replica for the table.
  2735. */
  2736. Update?: UpdateReplicationGroupMemberAction;
  2737. /**
  2738. * The parameters required for deleting a replica for the table.
  2739. */
  2740. Delete?: DeleteReplicationGroupMemberAction;
  2741. }
  2742. export type ReplicationGroupUpdateList = ReplicationGroupUpdate[];
  2743. export type ResourceArnString = string;
  2744. export type ResourcePolicy = string;
  2745. export type RestoreInProgress = boolean;
  2746. export interface RestoreSummary {
  2747. /**
  2748. * The Amazon Resource Name (ARN) of the backup from which the table was restored.
  2749. */
  2750. SourceBackupArn?: BackupArn;
  2751. /**
  2752. * The ARN of the source table of the backup that is being restored.
  2753. */
  2754. SourceTableArn?: TableArn;
  2755. /**
  2756. * Point in time or source backup time.
  2757. */
  2758. RestoreDateTime: _Date;
  2759. /**
  2760. * Indicates if a restore is in progress or not.
  2761. */
  2762. RestoreInProgress: RestoreInProgress;
  2763. }
  2764. export interface RestoreTableFromBackupInput {
  2765. /**
  2766. * The name of the new table to which the backup must be restored.
  2767. */
  2768. TargetTableName: TableName;
  2769. /**
  2770. * The Amazon Resource Name (ARN) associated with the backup.
  2771. */
  2772. BackupArn: BackupArn;
  2773. /**
  2774. * The billing mode of the restored table.
  2775. */
  2776. BillingModeOverride?: BillingMode;
  2777. /**
  2778. * List of global secondary indexes for the restored table. The indexes provided should match existing secondary indexes. You can choose to exclude some or all of the indexes at the time of restore.
  2779. */
  2780. GlobalSecondaryIndexOverride?: GlobalSecondaryIndexList;
  2781. /**
  2782. * List of local secondary indexes for the restored table. The indexes provided should match existing secondary indexes. You can choose to exclude some or all of the indexes at the time of restore.
  2783. */
  2784. LocalSecondaryIndexOverride?: LocalSecondaryIndexList;
  2785. /**
  2786. * Provisioned throughput settings for the restored table.
  2787. */
  2788. ProvisionedThroughputOverride?: ProvisionedThroughput;
  2789. OnDemandThroughputOverride?: OnDemandThroughput;
  2790. /**
  2791. * The new server-side encryption settings for the restored table.
  2792. */
  2793. SSESpecificationOverride?: SSESpecification;
  2794. }
  2795. export interface RestoreTableFromBackupOutput {
  2796. /**
  2797. * The description of the table created from an existing backup.
  2798. */
  2799. TableDescription?: TableDescription;
  2800. }
  2801. export interface RestoreTableToPointInTimeInput {
  2802. /**
  2803. * The DynamoDB table that will be restored. This value is an Amazon Resource Name (ARN).
  2804. */
  2805. SourceTableArn?: TableArn;
  2806. /**
  2807. * Name of the source table that is being restored.
  2808. */
  2809. SourceTableName?: TableName;
  2810. /**
  2811. * The name of the new table to which it must be restored to.
  2812. */
  2813. TargetTableName: TableName;
  2814. /**
  2815. * Restore the table to the latest possible time. LatestRestorableDateTime is typically 5 minutes before the current time.
  2816. */
  2817. UseLatestRestorableTime?: BooleanObject;
  2818. /**
  2819. * Time in the past to restore the table to.
  2820. */
  2821. RestoreDateTime?: _Date;
  2822. /**
  2823. * The billing mode of the restored table.
  2824. */
  2825. BillingModeOverride?: BillingMode;
  2826. /**
  2827. * List of global secondary indexes for the restored table. The indexes provided should match existing secondary indexes. You can choose to exclude some or all of the indexes at the time of restore.
  2828. */
  2829. GlobalSecondaryIndexOverride?: GlobalSecondaryIndexList;
  2830. /**
  2831. * List of local secondary indexes for the restored table. The indexes provided should match existing secondary indexes. You can choose to exclude some or all of the indexes at the time of restore.
  2832. */
  2833. LocalSecondaryIndexOverride?: LocalSecondaryIndexList;
  2834. /**
  2835. * Provisioned throughput settings for the restored table.
  2836. */
  2837. ProvisionedThroughputOverride?: ProvisionedThroughput;
  2838. OnDemandThroughputOverride?: OnDemandThroughput;
  2839. /**
  2840. * The new server-side encryption settings for the restored table.
  2841. */
  2842. SSESpecificationOverride?: SSESpecification;
  2843. }
  2844. export interface RestoreTableToPointInTimeOutput {
  2845. /**
  2846. * Represents the properties of a table.
  2847. */
  2848. TableDescription?: TableDescription;
  2849. }
  2850. export type ReturnConsumedCapacity = "INDEXES"|"TOTAL"|"NONE"|string;
  2851. export type ReturnItemCollectionMetrics = "SIZE"|"NONE"|string;
  2852. export type ReturnValue = "NONE"|"ALL_OLD"|"UPDATED_OLD"|"ALL_NEW"|"UPDATED_NEW"|string;
  2853. export type ReturnValuesOnConditionCheckFailure = "ALL_OLD"|"NONE"|string;
  2854. export type S3Bucket = string;
  2855. export type S3BucketOwner = string;
  2856. export interface S3BucketSource {
  2857. /**
  2858. * The account number of the S3 bucket that is being imported from. If the bucket is owned by the requester this is optional.
  2859. */
  2860. S3BucketOwner?: S3BucketOwner;
  2861. /**
  2862. * The S3 bucket that is being imported from.
  2863. */
  2864. S3Bucket: S3Bucket;
  2865. /**
  2866. * The key prefix shared by all S3 Objects that are being imported.
  2867. */
  2868. S3KeyPrefix?: S3Prefix;
  2869. }
  2870. export type S3Prefix = string;
  2871. export type S3SseAlgorithm = "AES256"|"KMS"|string;
  2872. export type S3SseKmsKeyId = string;
  2873. export interface SSEDescription {
  2874. /**
  2875. * Represents the current state of server-side encryption. The only supported values are: ENABLED - Server-side encryption is enabled. UPDATING - Server-side encryption is being updated.
  2876. */
  2877. Status?: SSEStatus;
  2878. /**
  2879. * Server-side encryption type. The only supported value is: KMS - Server-side encryption that uses Key Management Service. The key is stored in your account and is managed by KMS (KMS charges apply).
  2880. */
  2881. SSEType?: SSEType;
  2882. /**
  2883. * The KMS key ARN used for the KMS encryption.
  2884. */
  2885. KMSMasterKeyArn?: KMSMasterKeyArn;
  2886. /**
  2887. * Indicates the time, in UNIX epoch date format, when DynamoDB detected that the table's KMS key was inaccessible. This attribute will automatically be cleared when DynamoDB detects that the table's KMS key is accessible again. DynamoDB will initiate the table archival process when table's KMS key remains inaccessible for more than seven days from this date.
  2888. */
  2889. InaccessibleEncryptionDateTime?: _Date;
  2890. }
  2891. export type SSEEnabled = boolean;
  2892. export interface SSESpecification {
  2893. /**
  2894. * Indicates whether server-side encryption is done using an Amazon Web Services managed key or an Amazon Web Services owned key. If enabled (true), server-side encryption type is set to KMS and an Amazon Web Services managed key is used (KMS charges apply). If disabled (false) or not specified, server-side encryption is set to Amazon Web Services owned key.
  2895. */
  2896. Enabled?: SSEEnabled;
  2897. /**
  2898. * Server-side encryption type. The only supported value is: KMS - Server-side encryption that uses Key Management Service. The key is stored in your account and is managed by KMS (KMS charges apply).
  2899. */
  2900. SSEType?: SSEType;
  2901. /**
  2902. * The KMS key that should be used for the KMS encryption. To specify a key, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB key alias/aws/dynamodb.
  2903. */
  2904. KMSMasterKeyId?: KMSMasterKeyId;
  2905. }
  2906. export type SSEStatus = "ENABLING"|"ENABLED"|"DISABLING"|"DISABLED"|"UPDATING"|string;
  2907. export type SSEType = "AES256"|"KMS"|string;
  2908. export type ScalarAttributeType = "S"|"N"|"B"|string;
  2909. export interface ScanInput {
  2910. /**
  2911. * The name of the table containing the requested items or if you provide IndexName, the name of the table to which that index belongs. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
  2912. */
  2913. TableName: TableArn;
  2914. /**
  2915. * The name of a secondary index to scan. This index can be any local secondary index or global secondary index. Note that if you use the IndexName parameter, you must also provide TableName.
  2916. */
  2917. IndexName?: IndexName;
  2918. /**
  2919. * This is a legacy parameter. Use ProjectionExpression instead. For more information, see AttributesToGet in the Amazon DynamoDB Developer Guide.
  2920. */
  2921. AttributesToGet?: AttributeNameList;
  2922. /**
  2923. * The maximum number of items to evaluate (not necessarily the number of matching items). If DynamoDB processes the number of items up to the limit while processing the results, it stops the operation and returns the matching values up to that point, and a key in LastEvaluatedKey to apply in a subsequent operation, so that you can pick up where you left off. Also, if the processed dataset size exceeds 1 MB before DynamoDB reaches this limit, it stops the operation and returns the matching values up to the limit, and a key in LastEvaluatedKey to apply in a subsequent operation to continue the operation. For more information, see Working with Queries in the Amazon DynamoDB Developer Guide.
  2924. */
  2925. Limit?: PositiveIntegerObject;
  2926. /**
  2927. * The attributes to be returned in the result. You can retrieve all item attributes, specific item attributes, the count of matching items, or in the case of an index, some or all of the attributes projected into the index. ALL_ATTRIBUTES - Returns all of the item attributes from the specified table or index. If you query a local secondary index, then for each matching item in the index, DynamoDB fetches the entire item from the parent table. If the index is configured to project all item attributes, then all of the data can be obtained from the local secondary index, and no fetching is required. ALL_PROJECTED_ATTRIBUTES - Allowed only when querying an index. Retrieves all attributes that have been projected into the index. If the index is configured to project all attributes, this return value is equivalent to specifying ALL_ATTRIBUTES. COUNT - Returns the number of matching items, rather than the matching items themselves. Note that this uses the same quantity of read capacity units as getting the items, and is subject to the same item size calculations. SPECIFIC_ATTRIBUTES - Returns only the attributes listed in ProjectionExpression. This return value is equivalent to specifying ProjectionExpression without specifying any value for Select. If you query or scan a local secondary index and request only attributes that are projected into that index, the operation reads only the index and not the table. If any of the requested attributes are not projected into the local secondary index, DynamoDB fetches each of these attributes from the parent table. This extra fetching incurs additional throughput cost and latency. If you query or scan a global secondary index, you can only request attributes that are projected into the index. Global secondary index queries cannot fetch attributes from the parent table. If neither Select nor ProjectionExpression are specified, DynamoDB defaults to ALL_ATTRIBUTES when accessing a table, and ALL_PROJECTED_ATTRIBUTES when accessing an index. You cannot use both Select and ProjectionExpression together in a single request, unless the value for Select is SPECIFIC_ATTRIBUTES. (This usage is equivalent to specifying ProjectionExpression without any value for Select.) If you use the ProjectionExpression parameter, then the value for Select can only be SPECIFIC_ATTRIBUTES. Any other value for Select will return an error.
  2928. */
  2929. Select?: Select;
  2930. /**
  2931. * This is a legacy parameter. Use FilterExpression instead. For more information, see ScanFilter in the Amazon DynamoDB Developer Guide.
  2932. */
  2933. ScanFilter?: FilterConditionMap;
  2934. /**
  2935. * This is a legacy parameter. Use FilterExpression instead. For more information, see ConditionalOperator in the Amazon DynamoDB Developer Guide.
  2936. */
  2937. ConditionalOperator?: ConditionalOperator;
  2938. /**
  2939. * The primary key of the first item that this operation will evaluate. Use the value that was returned for LastEvaluatedKey in the previous operation. The data type for ExclusiveStartKey must be String, Number or Binary. No set data types are allowed. In a parallel scan, a Scan request that includes ExclusiveStartKey must specify the same segment whose previous Scan returned the corresponding value of LastEvaluatedKey.
  2940. */
  2941. ExclusiveStartKey?: Key;
  2942. ReturnConsumedCapacity?: ReturnConsumedCapacity;
  2943. /**
  2944. * For a parallel Scan request, TotalSegments represents the total number of segments into which the Scan operation will be divided. The value of TotalSegments corresponds to the number of application workers that will perform the parallel scan. For example, if you want to use four application threads to scan a table or an index, specify a TotalSegments value of 4. The value for TotalSegments must be greater than or equal to 1, and less than or equal to 1000000. If you specify a TotalSegments value of 1, the Scan operation will be sequential rather than parallel. If you specify TotalSegments, you must also specify Segment.
  2945. */
  2946. TotalSegments?: ScanTotalSegments;
  2947. /**
  2948. * For a parallel Scan request, Segment identifies an individual segment to be scanned by an application worker. Segment IDs are zero-based, so the first segment is always 0. For example, if you want to use four application threads to scan a table or an index, then the first thread specifies a Segment value of 0, the second thread specifies 1, and so on. The value of LastEvaluatedKey returned from a parallel Scan request must be used as ExclusiveStartKey with the same segment ID in a subsequent Scan operation. The value for Segment must be greater than or equal to 0, and less than the value provided for TotalSegments. If you provide Segment, you must also provide TotalSegments.
  2949. */
  2950. Segment?: ScanSegment;
  2951. /**
  2952. * A string that identifies one or more attributes to retrieve from the specified table or index. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas. If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result. For more information, see Specifying Item Attributes in the Amazon DynamoDB Developer Guide.
  2953. */
  2954. ProjectionExpression?: ProjectionExpression;
  2955. /**
  2956. * A string that contains conditions that DynamoDB applies after the Scan operation, but before the data is returned to you. Items that do not satisfy the FilterExpression criteria are not returned. A FilterExpression is applied after the items have already been read; the process of filtering does not consume any additional read capacity units. For more information, see Filter Expressions in the Amazon DynamoDB Developer Guide.
  2957. */
  2958. FilterExpression?: ConditionExpression;
  2959. /**
  2960. * One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames: To access an attribute whose name conflicts with a DynamoDB reserved word. To create a placeholder for repeating occurrences of an attribute name in an expression. To prevent special characters in an attribute name from being misinterpreted in an expression. Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name: Percentile The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames: {"#P":"Percentile"} You could then use this substitution in an expression, as in this example: #P = :val Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime. For more information on expression attribute names, see Specifying Item Attributes in the Amazon DynamoDB Developer Guide.
  2961. */
  2962. ExpressionAttributeNames?: ExpressionAttributeNameMap;
  2963. /**
  2964. * One or more values that can be substituted in an expression. Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the ProductStatus attribute was one of the following: Available | Backordered | Discontinued You would first need to specify ExpressionAttributeValues as follows: { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} } You could then use these values in an expression, such as this: ProductStatus IN (:avail, :back, :disc) For more information on expression attribute values, see Condition Expressions in the Amazon DynamoDB Developer Guide.
  2965. */
  2966. ExpressionAttributeValues?: ExpressionAttributeValueMap;
  2967. /**
  2968. * A Boolean value that determines the read consistency model during the scan: If ConsistentRead is false, then the data returned from Scan might not contain the results from other recently completed write operations (PutItem, UpdateItem, or DeleteItem). If ConsistentRead is true, then all of the write operations that completed before the Scan began are guaranteed to be contained in the Scan response. The default setting for ConsistentRead is false. The ConsistentRead parameter is not supported on global secondary indexes. If you scan a global secondary index with ConsistentRead set to true, you will receive a ValidationException.
  2969. */
  2970. ConsistentRead?: ConsistentRead;
  2971. }
  2972. export interface ScanOutput {
  2973. /**
  2974. * An array of item attributes that match the scan criteria. Each element in this array consists of an attribute name and the value for that attribute.
  2975. */
  2976. Items?: ItemList;
  2977. /**
  2978. * The number of items in the response. If you set ScanFilter in the request, then Count is the number of items returned after the filter was applied, and ScannedCount is the number of matching items before the filter was applied. If you did not use a filter in the request, then Count is the same as ScannedCount.
  2979. */
  2980. Count?: Integer;
  2981. /**
  2982. * The number of items evaluated, before any ScanFilter is applied. A high ScannedCount value with few, or no, Count results indicates an inefficient Scan operation. For more information, see Count and ScannedCount in the Amazon DynamoDB Developer Guide. If you did not use a filter in the request, then ScannedCount is the same as Count.
  2983. */
  2984. ScannedCount?: Integer;
  2985. /**
  2986. * The primary key of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request. If LastEvaluatedKey is empty, then the "last page" of results has been processed and there is no more data to be retrieved. If LastEvaluatedKey is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when LastEvaluatedKey is empty.
  2987. */
  2988. LastEvaluatedKey?: Key;
  2989. /**
  2990. * The capacity units consumed by the Scan operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the ReturnConsumedCapacity parameter was specified. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide.
  2991. */
  2992. ConsumedCapacity?: ConsumedCapacity;
  2993. }
  2994. export type ScanSegment = number;
  2995. export type ScanTotalSegments = number;
  2996. export type SecondaryIndexesCapacityMap = {[key: string]: Capacity};
  2997. export type Select = "ALL_ATTRIBUTES"|"ALL_PROJECTED_ATTRIBUTES"|"SPECIFIC_ATTRIBUTES"|"COUNT"|string;
  2998. export interface SourceTableDetails {
  2999. /**
  3000. * The name of the table for which the backup was created.
  3001. */
  3002. TableName: TableName;
  3003. /**
  3004. * Unique identifier for the table for which the backup was created.
  3005. */
  3006. TableId: TableId;
  3007. /**
  3008. * ARN of the table for which backup was created.
  3009. */
  3010. TableArn?: TableArn;
  3011. /**
  3012. * Size of the table in bytes. Note that this is an approximate value.
  3013. */
  3014. TableSizeBytes?: LongObject;
  3015. /**
  3016. * Schema of the table.
  3017. */
  3018. KeySchema: KeySchema;
  3019. /**
  3020. * Time when the source table was created.
  3021. */
  3022. TableCreationDateTime: TableCreationDateTime;
  3023. /**
  3024. * Read IOPs and Write IOPS on the table when the backup was created.
  3025. */
  3026. ProvisionedThroughput: ProvisionedThroughput;
  3027. OnDemandThroughput?: OnDemandThroughput;
  3028. /**
  3029. * Number of items in the table. Note that this is an approximate value.
  3030. */
  3031. ItemCount?: ItemCount;
  3032. /**
  3033. * Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later. PROVISIONED - Sets the read/write capacity mode to PROVISIONED. We recommend using PROVISIONED for predictable workloads. PAY_PER_REQUEST - Sets the read/write capacity mode to PAY_PER_REQUEST. We recommend using PAY_PER_REQUEST for unpredictable workloads.
  3034. */
  3035. BillingMode?: BillingMode;
  3036. }
  3037. export interface SourceTableFeatureDetails {
  3038. /**
  3039. * Represents the LSI properties for the table when the backup was created. It includes the IndexName, KeySchema and Projection for the LSIs on the table at the time of backup.
  3040. */
  3041. LocalSecondaryIndexes?: LocalSecondaryIndexes;
  3042. /**
  3043. * Represents the GSI properties for the table when the backup was created. It includes the IndexName, KeySchema, Projection, and ProvisionedThroughput for the GSIs on the table at the time of backup.
  3044. */
  3045. GlobalSecondaryIndexes?: GlobalSecondaryIndexes;
  3046. /**
  3047. * Stream settings on the table when the backup was created.
  3048. */
  3049. StreamDescription?: StreamSpecification;
  3050. /**
  3051. * Time to Live settings on the table when the backup was created.
  3052. */
  3053. TimeToLiveDescription?: TimeToLiveDescription;
  3054. /**
  3055. * The description of the server-side encryption status on the table when the backup was created.
  3056. */
  3057. SSEDescription?: SSEDescription;
  3058. }
  3059. export type StreamArn = string;
  3060. export type StreamEnabled = boolean;
  3061. export interface StreamSpecification {
  3062. /**
  3063. * Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.
  3064. */
  3065. StreamEnabled: StreamEnabled;
  3066. /**
  3067. * When an item in the table is modified, StreamViewType determines what information is written to the stream for this table. Valid values for StreamViewType are: KEYS_ONLY - Only the key attributes of the modified item are written to the stream. NEW_IMAGE - The entire item, as it appears after it was modified, is written to the stream. OLD_IMAGE - The entire item, as it appeared before it was modified, is written to the stream. NEW_AND_OLD_IMAGES - Both the new and the old item images of the item are written to the stream.
  3068. */
  3069. StreamViewType?: StreamViewType;
  3070. }
  3071. export type StreamViewType = "NEW_IMAGE"|"OLD_IMAGE"|"NEW_AND_OLD_IMAGES"|"KEYS_ONLY"|string;
  3072. export type String = string;
  3073. export type StringAttributeValue = string;
  3074. export type StringSetAttributeValue = StringAttributeValue[];
  3075. export type TableArn = string;
  3076. export interface TableAutoScalingDescription {
  3077. /**
  3078. * The name of the table.
  3079. */
  3080. TableName?: TableName;
  3081. /**
  3082. * The current state of the table: CREATING - The table is being created. UPDATING - The table is being updated. DELETING - The table is being deleted. ACTIVE - The table is ready for use.
  3083. */
  3084. TableStatus?: TableStatus;
  3085. /**
  3086. * Represents replicas of the global table.
  3087. */
  3088. Replicas?: ReplicaAutoScalingDescriptionList;
  3089. }
  3090. export type TableClass = "STANDARD"|"STANDARD_INFREQUENT_ACCESS"|string;
  3091. export interface TableClassSummary {
  3092. /**
  3093. * The table class of the specified table. Valid values are STANDARD and STANDARD_INFREQUENT_ACCESS.
  3094. */
  3095. TableClass?: TableClass;
  3096. /**
  3097. * The date and time at which the table class was last updated.
  3098. */
  3099. LastUpdateDateTime?: _Date;
  3100. }
  3101. export type TableCreationDateTime = Date;
  3102. export interface TableCreationParameters {
  3103. /**
  3104. * The name of the table created as part of the import operation.
  3105. */
  3106. TableName: TableName;
  3107. /**
  3108. * The attributes of the table created as part of the import operation.
  3109. */
  3110. AttributeDefinitions: AttributeDefinitions;
  3111. /**
  3112. * The primary key and option sort key of the table created as part of the import operation.
  3113. */
  3114. KeySchema: KeySchema;
  3115. /**
  3116. * The billing mode for provisioning the table created as part of the import operation.
  3117. */
  3118. BillingMode?: BillingMode;
  3119. ProvisionedThroughput?: ProvisionedThroughput;
  3120. OnDemandThroughput?: OnDemandThroughput;
  3121. SSESpecification?: SSESpecification;
  3122. /**
  3123. * The Global Secondary Indexes (GSI) of the table to be created as part of the import operation.
  3124. */
  3125. GlobalSecondaryIndexes?: GlobalSecondaryIndexList;
  3126. }
  3127. export interface TableDescription {
  3128. /**
  3129. * An array of AttributeDefinition objects. Each of these objects describes one attribute in the table and index key schema. Each AttributeDefinition object in this array is composed of: AttributeName - The name of the attribute. AttributeType - The data type for the attribute.
  3130. */
  3131. AttributeDefinitions?: AttributeDefinitions;
  3132. /**
  3133. * The name of the table.
  3134. */
  3135. TableName?: TableName;
  3136. /**
  3137. * The primary key structure for the table. Each KeySchemaElement consists of: AttributeName - The name of the attribute. KeyType - The role of the attribute: HASH - partition key RANGE - sort key The partition key of an item is also known as its hash attribute. The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values. The sort key of an item is also known as its range attribute. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value. For more information about primary keys, see Primary Key in the Amazon DynamoDB Developer Guide.
  3138. */
  3139. KeySchema?: KeySchema;
  3140. /**
  3141. * The current state of the table: CREATING - The table is being created. UPDATING - The table/index configuration is being updated. The table/index remains available for data operations when UPDATING. DELETING - The table is being deleted. ACTIVE - The table is ready for use. INACCESSIBLE_ENCRYPTION_CREDENTIALS - The KMS key used to encrypt the table in inaccessible. Table operations may fail due to failure to use the KMS key. DynamoDB will initiate the table archival process when a table's KMS key remains inaccessible for more than seven days. ARCHIVING - The table is being archived. Operations are not allowed until archival is complete. ARCHIVED - The table has been archived. See the ArchivalReason for more information.
  3142. */
  3143. TableStatus?: TableStatus;
  3144. /**
  3145. * The date and time when the table was created, in UNIX epoch time format.
  3146. */
  3147. CreationDateTime?: _Date;
  3148. /**
  3149. * The provisioned throughput settings for the table, consisting of read and write capacity units, along with data about increases and decreases.
  3150. */
  3151. ProvisionedThroughput?: ProvisionedThroughputDescription;
  3152. /**
  3153. * The total size of the specified table, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.
  3154. */
  3155. TableSizeBytes?: LongObject;
  3156. /**
  3157. * The number of items in the specified table. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.
  3158. */
  3159. ItemCount?: LongObject;
  3160. /**
  3161. * The Amazon Resource Name (ARN) that uniquely identifies the table.
  3162. */
  3163. TableArn?: String;
  3164. /**
  3165. * Unique identifier for the table for which the backup was created.
  3166. */
  3167. TableId?: TableId;
  3168. /**
  3169. * Contains the details for the read/write capacity mode.
  3170. */
  3171. BillingModeSummary?: BillingModeSummary;
  3172. /**
  3173. * Represents one or more local secondary indexes on the table. Each index is scoped to a given partition key value. Tables with one or more local secondary indexes are subject to an item collection size limit, where the amount of data within a given item collection cannot exceed 10 GB. Each element is composed of: IndexName - The name of the local secondary index. KeySchema - Specifies the complete index key schema. The attribute names in the key schema must be between 1 and 255 characters (inclusive). The key schema must begin with the same partition key as the table. Projection - Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of: ProjectionType - One of the following: KEYS_ONLY - Only the index and primary keys are projected into the index. INCLUDE - Only the specified table attributes are projected into the index. The list of projected attributes is in NonKeyAttributes. ALL - All of the table attributes are projected into the index. NonKeyAttributes - A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided in NonKeyAttributes, summed across all of the secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total. IndexSizeBytes - Represents the total size of the index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value. ItemCount - Represents the number of items in the index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value. If the table is in the DELETING state, no information about indexes will be returned.
  3174. */
  3175. LocalSecondaryIndexes?: LocalSecondaryIndexDescriptionList;
  3176. /**
  3177. * The global secondary indexes, if any, on the table. Each index is scoped to a given partition key value. Each element is composed of: Backfilling - If true, then the index is currently in the backfilling phase. Backfilling occurs only when a new global secondary index is added to the table. It is the process by which DynamoDB populates the new index with data from the table. (This attribute does not appear for indexes that were created during a CreateTable operation.) You can delete an index that is being created during the Backfilling phase when IndexStatus is set to CREATING and Backfilling is true. You can't delete the index that is being created when IndexStatus is set to CREATING and Backfilling is false. (This attribute does not appear for indexes that were created during a CreateTable operation.) IndexName - The name of the global secondary index. IndexSizeBytes - The total size of the global secondary index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value. IndexStatus - The current status of the global secondary index: CREATING - The index is being created. UPDATING - The index is being updated. DELETING - The index is being deleted. ACTIVE - The index is ready for use. ItemCount - The number of items in the global secondary index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value. KeySchema - Specifies the complete index key schema. The attribute names in the key schema must be between 1 and 255 characters (inclusive). The key schema must begin with the same partition key as the table. Projection - Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of: ProjectionType - One of the following: KEYS_ONLY - Only the index and primary keys are projected into the index. INCLUDE - In addition to the attributes described in KEYS_ONLY, the secondary index will include other non-key attributes that you specify. ALL - All of the table attributes are projected into the index. NonKeyAttributes - A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided in NonKeyAttributes, summed across all of the secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total. ProvisionedThroughput - The provisioned throughput settings for the global secondary index, consisting of read and write capacity units, along with data about increases and decreases. If the table is in the DELETING state, no information about indexes will be returned.
  3178. */
  3179. GlobalSecondaryIndexes?: GlobalSecondaryIndexDescriptionList;
  3180. /**
  3181. * The current DynamoDB Streams configuration for the table.
  3182. */
  3183. StreamSpecification?: StreamSpecification;
  3184. /**
  3185. * A timestamp, in ISO 8601 format, for this stream. Note that LatestStreamLabel is not a unique identifier for the stream, because it is possible that a stream from another table might have the same timestamp. However, the combination of the following three elements is guaranteed to be unique: Amazon Web Services customer ID Table name StreamLabel
  3186. */
  3187. LatestStreamLabel?: String;
  3188. /**
  3189. * The Amazon Resource Name (ARN) that uniquely identifies the latest stream for this table.
  3190. */
  3191. LatestStreamArn?: StreamArn;
  3192. /**
  3193. * Represents the version of global tables in use, if the table is replicated across Amazon Web Services Regions.
  3194. */
  3195. GlobalTableVersion?: String;
  3196. /**
  3197. * Represents replicas of the table.
  3198. */
  3199. Replicas?: ReplicaDescriptionList;
  3200. /**
  3201. * Contains details for the restore.
  3202. */
  3203. RestoreSummary?: RestoreSummary;
  3204. /**
  3205. * The description of the server-side encryption status on the specified table.
  3206. */
  3207. SSEDescription?: SSEDescription;
  3208. /**
  3209. * Contains information about the table archive.
  3210. */
  3211. ArchivalSummary?: ArchivalSummary;
  3212. /**
  3213. * Contains details of the table class.
  3214. */
  3215. TableClassSummary?: TableClassSummary;
  3216. /**
  3217. * Indicates whether deletion protection is enabled (true) or disabled (false) on the table.
  3218. */
  3219. DeletionProtectionEnabled?: DeletionProtectionEnabled;
  3220. /**
  3221. * The maximum number of read and write units for the specified on-demand table. If you use this parameter, you must specify MaxReadRequestUnits, MaxWriteRequestUnits, or both.
  3222. */
  3223. OnDemandThroughput?: OnDemandThroughput;
  3224. }
  3225. export type TableId = string;
  3226. export type TableName = string;
  3227. export type TableNameList = TableName[];
  3228. export type TableStatus = "CREATING"|"UPDATING"|"DELETING"|"ACTIVE"|"INACCESSIBLE_ENCRYPTION_CREDENTIALS"|"ARCHIVING"|"ARCHIVED"|string;
  3229. export interface Tag {
  3230. /**
  3231. * The key of the tag. Tag keys are case sensitive. Each DynamoDB table can only have up to one tag with the same key. If you try to add an existing tag (same key), the existing tag value will be updated to the new value.
  3232. */
  3233. Key: TagKeyString;
  3234. /**
  3235. * The value of the tag. Tag values are case-sensitive and can be null.
  3236. */
  3237. Value: TagValueString;
  3238. }
  3239. export type TagKeyList = TagKeyString[];
  3240. export type TagKeyString = string;
  3241. export type TagList = Tag[];
  3242. export interface TagResourceInput {
  3243. /**
  3244. * Identifies the Amazon DynamoDB resource to which tags should be added. This value is an Amazon Resource Name (ARN).
  3245. */
  3246. ResourceArn: ResourceArnString;
  3247. /**
  3248. * The tags to be assigned to the Amazon DynamoDB resource.
  3249. */
  3250. Tags: TagList;
  3251. }
  3252. export type TagValueString = string;
  3253. export type TimeRangeLowerBound = Date;
  3254. export type TimeRangeUpperBound = Date;
  3255. export type TimeToLiveAttributeName = string;
  3256. export interface TimeToLiveDescription {
  3257. /**
  3258. * The TTL status for the table.
  3259. */
  3260. TimeToLiveStatus?: TimeToLiveStatus;
  3261. /**
  3262. * The name of the TTL attribute for items in the table.
  3263. */
  3264. AttributeName?: TimeToLiveAttributeName;
  3265. }
  3266. export type TimeToLiveEnabled = boolean;
  3267. export interface TimeToLiveSpecification {
  3268. /**
  3269. * Indicates whether TTL is to be enabled (true) or disabled (false) on the table.
  3270. */
  3271. Enabled: TimeToLiveEnabled;
  3272. /**
  3273. * The name of the TTL attribute used to store the expiration time for items in the table.
  3274. */
  3275. AttributeName: TimeToLiveAttributeName;
  3276. }
  3277. export type TimeToLiveStatus = "ENABLING"|"DISABLING"|"ENABLED"|"DISABLED"|string;
  3278. export interface TransactGetItem {
  3279. /**
  3280. * Contains the primary key that identifies the item to get, together with the name of the table that contains the item, and optionally the specific attributes of the item to retrieve.
  3281. */
  3282. Get: Get;
  3283. }
  3284. export type TransactGetItemList = TransactGetItem[];
  3285. export interface TransactGetItemsInput {
  3286. /**
  3287. * An ordered array of up to 100 TransactGetItem objects, each of which contains a Get structure.
  3288. */
  3289. TransactItems: TransactGetItemList;
  3290. /**
  3291. * A value of TOTAL causes consumed capacity information to be returned, and a value of NONE prevents that information from being returned. No other value is valid.
  3292. */
  3293. ReturnConsumedCapacity?: ReturnConsumedCapacity;
  3294. }
  3295. export interface TransactGetItemsOutput {
  3296. /**
  3297. * If the ReturnConsumedCapacity value was TOTAL, this is an array of ConsumedCapacity objects, one for each table addressed by TransactGetItem objects in the TransactItems parameter. These ConsumedCapacity objects report the read-capacity units consumed by the TransactGetItems call in that table.
  3298. */
  3299. ConsumedCapacity?: ConsumedCapacityMultiple;
  3300. /**
  3301. * An ordered array of up to 100 ItemResponse objects, each of which corresponds to the TransactGetItem object in the same position in the TransactItems array. Each ItemResponse object contains a Map of the name-value pairs that are the projected attributes of the requested item. If a requested item could not be retrieved, the corresponding ItemResponse object is Null, or if the requested item has no projected attributes, the corresponding ItemResponse object is an empty Map.
  3302. */
  3303. Responses?: ItemResponseList;
  3304. }
  3305. export interface TransactWriteItem {
  3306. /**
  3307. * A request to perform a check item operation.
  3308. */
  3309. ConditionCheck?: ConditionCheck;
  3310. /**
  3311. * A request to perform a PutItem operation.
  3312. */
  3313. Put?: Put;
  3314. /**
  3315. * A request to perform a DeleteItem operation.
  3316. */
  3317. Delete?: Delete;
  3318. /**
  3319. * A request to perform an UpdateItem operation.
  3320. */
  3321. Update?: Update;
  3322. }
  3323. export type TransactWriteItemList = TransactWriteItem[];
  3324. export interface TransactWriteItemsInput {
  3325. /**
  3326. * An ordered array of up to 100 TransactWriteItem objects, each of which contains a ConditionCheck, Put, Update, or Delete object. These can operate on items in different tables, but the tables must reside in the same Amazon Web Services account and Region, and no two of them can operate on the same item.
  3327. */
  3328. TransactItems: TransactWriteItemList;
  3329. ReturnConsumedCapacity?: ReturnConsumedCapacity;
  3330. /**
  3331. * Determines whether item collection metrics are returned. If set to SIZE, the response includes statistics about item collections (if any), that were modified during the operation and are returned in the response. If set to NONE (the default), no statistics are returned.
  3332. */
  3333. ReturnItemCollectionMetrics?: ReturnItemCollectionMetrics;
  3334. /**
  3335. * Providing a ClientRequestToken makes the call to TransactWriteItems idempotent, meaning that multiple identical calls have the same effect as one single call. Although multiple identical calls using the same client request token produce the same result on the server (no side effects), the responses to the calls might not be the same. If the ReturnConsumedCapacity parameter is set, then the initial TransactWriteItems call returns the amount of write capacity units consumed in making the changes. Subsequent TransactWriteItems calls with the same client token return the number of read capacity units consumed in reading the item. A client request token is valid for 10 minutes after the first request that uses it is completed. After 10 minutes, any request with the same client token is treated as a new request. Do not resubmit the same request with the same client token for more than 10 minutes, or the result might not be idempotent. If you submit a request with the same client token but a change in other parameters within the 10-minute idempotency window, DynamoDB returns an IdempotentParameterMismatch exception.
  3336. */
  3337. ClientRequestToken?: ClientRequestToken;
  3338. }
  3339. export interface TransactWriteItemsOutput {
  3340. /**
  3341. * The capacity units consumed by the entire TransactWriteItems operation. The values of the list are ordered according to the ordering of the TransactItems request parameter.
  3342. */
  3343. ConsumedCapacity?: ConsumedCapacityMultiple;
  3344. /**
  3345. * A list of tables that were processed by TransactWriteItems and, for each table, information about any item collections that were affected by individual UpdateItem, PutItem, or DeleteItem operations.
  3346. */
  3347. ItemCollectionMetrics?: ItemCollectionMetricsPerTable;
  3348. }
  3349. export interface UntagResourceInput {
  3350. /**
  3351. * The DynamoDB resource that the tags will be removed from. This value is an Amazon Resource Name (ARN).
  3352. */
  3353. ResourceArn: ResourceArnString;
  3354. /**
  3355. * A list of tag keys. Existing tags of the resource whose keys are members of this list will be removed from the DynamoDB resource.
  3356. */
  3357. TagKeys: TagKeyList;
  3358. }
  3359. export interface Update {
  3360. /**
  3361. * The primary key of the item to be updated. Each element consists of an attribute name and a value for that attribute.
  3362. */
  3363. Key: Key;
  3364. /**
  3365. * An expression that defines one or more attributes to be updated, the action to be performed on them, and new value(s) for them.
  3366. */
  3367. UpdateExpression: UpdateExpression;
  3368. /**
  3369. * Name of the table for the UpdateItem request. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
  3370. */
  3371. TableName: TableArn;
  3372. /**
  3373. * A condition that must be satisfied in order for a conditional update to succeed.
  3374. */
  3375. ConditionExpression?: ConditionExpression;
  3376. /**
  3377. * One or more substitution tokens for attribute names in an expression.
  3378. */
  3379. ExpressionAttributeNames?: ExpressionAttributeNameMap;
  3380. /**
  3381. * One or more values that can be substituted in an expression.
  3382. */
  3383. ExpressionAttributeValues?: ExpressionAttributeValueMap;
  3384. /**
  3385. * Use ReturnValuesOnConditionCheckFailure to get the item attributes if the Update condition fails. For ReturnValuesOnConditionCheckFailure, the valid values are: NONE and ALL_OLD.
  3386. */
  3387. ReturnValuesOnConditionCheckFailure?: ReturnValuesOnConditionCheckFailure;
  3388. }
  3389. export interface UpdateContinuousBackupsInput {
  3390. /**
  3391. * The name of the table. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
  3392. */
  3393. TableName: TableArn;
  3394. /**
  3395. * Represents the settings used to enable point in time recovery.
  3396. */
  3397. PointInTimeRecoverySpecification: PointInTimeRecoverySpecification;
  3398. }
  3399. export interface UpdateContinuousBackupsOutput {
  3400. /**
  3401. * Represents the continuous backups and point in time recovery settings on the table.
  3402. */
  3403. ContinuousBackupsDescription?: ContinuousBackupsDescription;
  3404. }
  3405. export interface UpdateContributorInsightsInput {
  3406. /**
  3407. * The name of the table. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
  3408. */
  3409. TableName: TableArn;
  3410. /**
  3411. * The global secondary index name, if applicable.
  3412. */
  3413. IndexName?: IndexName;
  3414. /**
  3415. * Represents the contributor insights action.
  3416. */
  3417. ContributorInsightsAction: ContributorInsightsAction;
  3418. }
  3419. export interface UpdateContributorInsightsOutput {
  3420. /**
  3421. * The name of the table.
  3422. */
  3423. TableName?: TableName;
  3424. /**
  3425. * The name of the global secondary index, if applicable.
  3426. */
  3427. IndexName?: IndexName;
  3428. /**
  3429. * The status of contributor insights
  3430. */
  3431. ContributorInsightsStatus?: ContributorInsightsStatus;
  3432. }
  3433. export type UpdateExpression = string;
  3434. export interface UpdateGlobalSecondaryIndexAction {
  3435. /**
  3436. * The name of the global secondary index to be updated.
  3437. */
  3438. IndexName: IndexName;
  3439. /**
  3440. * Represents the provisioned throughput settings for the specified global secondary index. For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.
  3441. */
  3442. ProvisionedThroughput?: ProvisionedThroughput;
  3443. /**
  3444. * Updates the maximum number of read and write units for the specified global secondary index. If you use this parameter, you must specify MaxReadRequestUnits, MaxWriteRequestUnits, or both.
  3445. */
  3446. OnDemandThroughput?: OnDemandThroughput;
  3447. }
  3448. export interface UpdateGlobalTableInput {
  3449. /**
  3450. * The global table name.
  3451. */
  3452. GlobalTableName: TableName;
  3453. /**
  3454. * A list of Regions that should be added or removed from the global table.
  3455. */
  3456. ReplicaUpdates: ReplicaUpdateList;
  3457. }
  3458. export interface UpdateGlobalTableOutput {
  3459. /**
  3460. * Contains the details of the global table.
  3461. */
  3462. GlobalTableDescription?: GlobalTableDescription;
  3463. }
  3464. export interface UpdateGlobalTableSettingsInput {
  3465. /**
  3466. * The name of the global table
  3467. */
  3468. GlobalTableName: TableName;
  3469. /**
  3470. * The billing mode of the global table. If GlobalTableBillingMode is not specified, the global table defaults to PROVISIONED capacity billing mode. PROVISIONED - We recommend using PROVISIONED for predictable workloads. PROVISIONED sets the billing mode to Provisioned Mode. PAY_PER_REQUEST - We recommend using PAY_PER_REQUEST for unpredictable workloads. PAY_PER_REQUEST sets the billing mode to On-Demand Mode.
  3471. */
  3472. GlobalTableBillingMode?: BillingMode;
  3473. /**
  3474. * The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.
  3475. */
  3476. GlobalTableProvisionedWriteCapacityUnits?: PositiveLongObject;
  3477. /**
  3478. * Auto scaling settings for managing provisioned write capacity for the global table.
  3479. */
  3480. GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate?: AutoScalingSettingsUpdate;
  3481. /**
  3482. * Represents the settings of a global secondary index for a global table that will be modified.
  3483. */
  3484. GlobalTableGlobalSecondaryIndexSettingsUpdate?: GlobalTableGlobalSecondaryIndexSettingsUpdateList;
  3485. /**
  3486. * Represents the settings for a global table in a Region that will be modified.
  3487. */
  3488. ReplicaSettingsUpdate?: ReplicaSettingsUpdateList;
  3489. }
  3490. export interface UpdateGlobalTableSettingsOutput {
  3491. /**
  3492. * The name of the global table.
  3493. */
  3494. GlobalTableName?: TableName;
  3495. /**
  3496. * The Region-specific settings for the global table.
  3497. */
  3498. ReplicaSettings?: ReplicaSettingsDescriptionList;
  3499. }
  3500. export interface UpdateItemInput {
  3501. /**
  3502. * The name of the table containing the item to update. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
  3503. */
  3504. TableName: TableArn;
  3505. /**
  3506. * The primary key of the item to be updated. Each element consists of an attribute name and a value for that attribute. For the primary key, you must provide all of the attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.
  3507. */
  3508. Key: Key;
  3509. /**
  3510. * This is a legacy parameter. Use UpdateExpression instead. For more information, see AttributeUpdates in the Amazon DynamoDB Developer Guide.
  3511. */
  3512. AttributeUpdates?: AttributeUpdates;
  3513. /**
  3514. * This is a legacy parameter. Use ConditionExpression instead. For more information, see Expected in the Amazon DynamoDB Developer Guide.
  3515. */
  3516. Expected?: ExpectedAttributeMap;
  3517. /**
  3518. * This is a legacy parameter. Use ConditionExpression instead. For more information, see ConditionalOperator in the Amazon DynamoDB Developer Guide.
  3519. */
  3520. ConditionalOperator?: ConditionalOperator;
  3521. /**
  3522. * Use ReturnValues if you want to get the item attributes as they appear before or after they are successfully updated. For UpdateItem, the valid values are: NONE - If ReturnValues is not specified, or if its value is NONE, then nothing is returned. (This setting is the default for ReturnValues.) ALL_OLD - Returns all of the attributes of the item, as they appeared before the UpdateItem operation. UPDATED_OLD - Returns only the updated attributes, as they appeared before the UpdateItem operation. ALL_NEW - Returns all of the attributes of the item, as they appear after the UpdateItem operation. UPDATED_NEW - Returns only the updated attributes, as they appear after the UpdateItem operation. There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed. The values returned are strongly consistent.
  3523. */
  3524. ReturnValues?: ReturnValue;
  3525. ReturnConsumedCapacity?: ReturnConsumedCapacity;
  3526. /**
  3527. * Determines whether item collection metrics are returned. If set to SIZE, the response includes statistics about item collections, if any, that were modified during the operation are returned in the response. If set to NONE (the default), no statistics are returned.
  3528. */
  3529. ReturnItemCollectionMetrics?: ReturnItemCollectionMetrics;
  3530. /**
  3531. * An expression that defines one or more attributes to be updated, the action to be performed on them, and new values for them. The following action values are available for UpdateExpression. SET - Adds one or more attributes and values to an item. If any of these attributes already exist, they are replaced by the new values. You can also use SET to add or subtract from an attribute that is of type Number. For example: SET myNum = myNum + :val SET supports the following functions: if_not_exists (path, operand) - if the item does not contain an attribute at the specified path, then if_not_exists evaluates to operand; otherwise, it evaluates to path. You can use this function to avoid overwriting an attribute that may already be present in the item. list_append (operand, operand) - evaluates to a list with a new element added to it. You can append the new element to the start or the end of the list by reversing the order of the operands. These function names are case-sensitive. REMOVE - Removes one or more attributes from an item. ADD - Adds the specified value to the item, if the attribute does not already exist. If the attribute does exist, then the behavior of ADD depends on the data type of the attribute: If the existing attribute is a number, and if Value is also a number, then Value is mathematically added to the existing attribute. If Value is a negative number, then it is subtracted from the existing attribute. If you use ADD to increment or decrement a number value for an item that doesn't exist before the update, DynamoDB uses 0 as the initial value. Similarly, if you use ADD for an existing item to increment or decrement an attribute value that doesn't exist before the update, DynamoDB uses 0 as the initial value. For example, suppose that the item you want to update doesn't have an attribute named itemcount, but you decide to ADD the number 3 to this attribute anyway. DynamoDB will create the itemcount attribute, set its initial value to 0, and finally add 3 to it. The result will be a new itemcount attribute in the item, with a value of 3. If the existing data type is a set and if Value is also a set, then Value is added to the existing set. For example, if the attribute value is the set [1,2], and the ADD action specified [3], then the final attribute value is [1,2,3]. An error occurs if an ADD action is specified for a set attribute and the attribute type specified does not match the existing set type. Both sets must have the same primitive data type. For example, if the existing data type is a set of strings, the Value must also be a set of strings. The ADD action only supports Number and set data types. In addition, ADD can only be used on top-level attributes, not nested attributes. DELETE - Deletes an element from a set. If a set of values is specified, then those values are subtracted from the old set. For example, if the attribute value was the set [a,b,c] and the DELETE action specifies [a,c], then the final attribute value is [b]. Specifying an empty set is an error. The DELETE action only supports set data types. In addition, DELETE can only be used on top-level attributes, not nested attributes. You can have many actions in a single expression, such as the following: SET a=:value1, b=:value2 DELETE :value3, :value4, :value5 For more information on update expressions, see Modifying Items and Attributes in the Amazon DynamoDB Developer Guide.
  3532. */
  3533. UpdateExpression?: UpdateExpression;
  3534. /**
  3535. * A condition that must be satisfied in order for a conditional update to succeed. An expression can contain any of the following: Functions: attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size These function names are case-sensitive. Comparison operators: = | &lt;&gt; | &lt; | &gt; | &lt;= | &gt;= | BETWEEN | IN Logical operators: AND | OR | NOT For more information about condition expressions, see Specifying Conditions in the Amazon DynamoDB Developer Guide.
  3536. */
  3537. ConditionExpression?: ConditionExpression;
  3538. /**
  3539. * One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames: To access an attribute whose name conflicts with a DynamoDB reserved word. To create a placeholder for repeating occurrences of an attribute name in an expression. To prevent special characters in an attribute name from being misinterpreted in an expression. Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name: Percentile The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide.) To work around this, you could specify the following for ExpressionAttributeNames: {"#P":"Percentile"} You could then use this substitution in an expression, as in this example: #P = :val Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime. For more information about expression attribute names, see Specifying Item Attributes in the Amazon DynamoDB Developer Guide.
  3540. */
  3541. ExpressionAttributeNames?: ExpressionAttributeNameMap;
  3542. /**
  3543. * One or more values that can be substituted in an expression. Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the ProductStatus attribute was one of the following: Available | Backordered | Discontinued You would first need to specify ExpressionAttributeValues as follows: { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} } You could then use these values in an expression, such as this: ProductStatus IN (:avail, :back, :disc) For more information on expression attribute values, see Condition Expressions in the Amazon DynamoDB Developer Guide.
  3544. */
  3545. ExpressionAttributeValues?: ExpressionAttributeValueMap;
  3546. /**
  3547. * An optional parameter that returns the item attributes for an UpdateItem operation that failed a condition check. There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed.
  3548. */
  3549. ReturnValuesOnConditionCheckFailure?: ReturnValuesOnConditionCheckFailure;
  3550. }
  3551. export interface UpdateItemOutput {
  3552. /**
  3553. * A map of attribute values as they appear before or after the UpdateItem operation, as determined by the ReturnValues parameter. The Attributes map is only present if the update was successful and ReturnValues was specified as something other than NONE in the request. Each element represents one attribute.
  3554. */
  3555. Attributes?: AttributeMap;
  3556. /**
  3557. * The capacity units consumed by the UpdateItem operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the ReturnConsumedCapacity parameter was specified. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide.
  3558. */
  3559. ConsumedCapacity?: ConsumedCapacity;
  3560. /**
  3561. * Information about item collections, if any, that were affected by the UpdateItem operation. ItemCollectionMetrics is only returned if the ReturnItemCollectionMetrics parameter was specified. If the table does not have any local secondary indexes, this information is not returned in the response. Each ItemCollectionMetrics element consists of: ItemCollectionKey - The partition key value of the item collection. This is the same as the partition key value of the item itself. SizeEstimateRangeGB - An estimate of item collection size, in gigabytes. This value is a two-element array containing a lower bound and an upper bound for the estimate. The estimate includes the size of all the items in the table, plus the size of all attributes projected into all of the local secondary indexes on that table. Use this estimate to measure whether a local secondary index is approaching its size limit. The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.
  3562. */
  3563. ItemCollectionMetrics?: ItemCollectionMetrics;
  3564. }
  3565. export interface UpdateKinesisStreamingConfiguration {
  3566. /**
  3567. * Enables updating the precision of Kinesis data stream timestamp.
  3568. */
  3569. ApproximateCreationDateTimePrecision?: ApproximateCreationDateTimePrecision;
  3570. }
  3571. export interface UpdateKinesisStreamingDestinationInput {
  3572. /**
  3573. * The table name for the Kinesis streaming destination input. You can also provide the ARN of the table in this parameter.
  3574. */
  3575. TableName: TableArn;
  3576. /**
  3577. * The Amazon Resource Name (ARN) for the Kinesis stream input.
  3578. */
  3579. StreamArn: StreamArn;
  3580. /**
  3581. * The command to update the Kinesis stream configuration.
  3582. */
  3583. UpdateKinesisStreamingConfiguration?: UpdateKinesisStreamingConfiguration;
  3584. }
  3585. export interface UpdateKinesisStreamingDestinationOutput {
  3586. /**
  3587. * The table name for the Kinesis streaming destination output.
  3588. */
  3589. TableName?: TableName;
  3590. /**
  3591. * The ARN for the Kinesis stream input.
  3592. */
  3593. StreamArn?: StreamArn;
  3594. /**
  3595. * The status of the attempt to update the Kinesis streaming destination output.
  3596. */
  3597. DestinationStatus?: DestinationStatus;
  3598. /**
  3599. * The command to update the Kinesis streaming destination configuration.
  3600. */
  3601. UpdateKinesisStreamingConfiguration?: UpdateKinesisStreamingConfiguration;
  3602. }
  3603. export interface UpdateReplicationGroupMemberAction {
  3604. /**
  3605. * The Region where the replica exists.
  3606. */
  3607. RegionName: RegionName;
  3608. /**
  3609. * The KMS key of the replica that should be used for KMS encryption. To specify a key, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB KMS key alias/aws/dynamodb.
  3610. */
  3611. KMSMasterKeyId?: KMSMasterKeyId;
  3612. /**
  3613. * Replica-specific provisioned throughput. If not specified, uses the source table's provisioned throughput settings.
  3614. */
  3615. ProvisionedThroughputOverride?: ProvisionedThroughputOverride;
  3616. /**
  3617. * Overrides the maximum on-demand throughput for the replica table.
  3618. */
  3619. OnDemandThroughputOverride?: OnDemandThroughputOverride;
  3620. /**
  3621. * Replica-specific global secondary index settings.
  3622. */
  3623. GlobalSecondaryIndexes?: ReplicaGlobalSecondaryIndexList;
  3624. /**
  3625. * Replica-specific table class. If not specified, uses the source table's table class.
  3626. */
  3627. TableClassOverride?: TableClass;
  3628. }
  3629. export interface UpdateTableInput {
  3630. /**
  3631. * An array of attributes that describe the key schema for the table and indexes. If you are adding a new global secondary index to the table, AttributeDefinitions must include the key element(s) of the new index.
  3632. */
  3633. AttributeDefinitions?: AttributeDefinitions;
  3634. /**
  3635. * The name of the table to be updated. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
  3636. */
  3637. TableName: TableArn;
  3638. /**
  3639. * Controls how you are charged for read and write throughput and how you manage capacity. When switching from pay-per-request to provisioned capacity, initial provisioned capacity values must be set. The initial provisioned capacity values are estimated based on the consumed read and write capacity of your table and global secondary indexes over the past 30 minutes. PROVISIONED - We recommend using PROVISIONED for predictable workloads. PROVISIONED sets the billing mode to Provisioned Mode. PAY_PER_REQUEST - We recommend using PAY_PER_REQUEST for unpredictable workloads. PAY_PER_REQUEST sets the billing mode to On-Demand Mode.
  3640. */
  3641. BillingMode?: BillingMode;
  3642. /**
  3643. * The new provisioned throughput settings for the specified table or index.
  3644. */
  3645. ProvisionedThroughput?: ProvisionedThroughput;
  3646. /**
  3647. * An array of one or more global secondary indexes for the table. For each index in the array, you can request one action: Create - add a new global secondary index to the table. Update - modify the provisioned throughput settings of an existing global secondary index. Delete - remove a global secondary index from the table. You can create or delete only one global secondary index per UpdateTable operation. For more information, see Managing Global Secondary Indexes in the Amazon DynamoDB Developer Guide.
  3648. */
  3649. GlobalSecondaryIndexUpdates?: GlobalSecondaryIndexUpdateList;
  3650. /**
  3651. * Represents the DynamoDB Streams configuration for the table. You receive a ValidationException if you try to enable a stream on a table that already has a stream, or if you try to disable a stream on a table that doesn't have a stream.
  3652. */
  3653. StreamSpecification?: StreamSpecification;
  3654. /**
  3655. * The new server-side encryption settings for the specified table.
  3656. */
  3657. SSESpecification?: SSESpecification;
  3658. /**
  3659. * A list of replica update actions (create, delete, or update) for the table. This property only applies to Version 2019.11.21 (Current) of global tables.
  3660. */
  3661. ReplicaUpdates?: ReplicationGroupUpdateList;
  3662. /**
  3663. * The table class of the table to be updated. Valid values are STANDARD and STANDARD_INFREQUENT_ACCESS.
  3664. */
  3665. TableClass?: TableClass;
  3666. /**
  3667. * Indicates whether deletion protection is to be enabled (true) or disabled (false) on the table.
  3668. */
  3669. DeletionProtectionEnabled?: DeletionProtectionEnabled;
  3670. /**
  3671. * Updates the maximum number of read and write units for the specified table in on-demand capacity mode. If you use this parameter, you must specify MaxReadRequestUnits, MaxWriteRequestUnits, or both.
  3672. */
  3673. OnDemandThroughput?: OnDemandThroughput;
  3674. }
  3675. export interface UpdateTableOutput {
  3676. /**
  3677. * Represents the properties of the table.
  3678. */
  3679. TableDescription?: TableDescription;
  3680. }
  3681. export interface UpdateTableReplicaAutoScalingInput {
  3682. /**
  3683. * Represents the auto scaling settings of the global secondary indexes of the replica to be updated.
  3684. */
  3685. GlobalSecondaryIndexUpdates?: GlobalSecondaryIndexAutoScalingUpdateList;
  3686. /**
  3687. * The name of the global table to be updated. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
  3688. */
  3689. TableName: TableArn;
  3690. ProvisionedWriteCapacityAutoScalingUpdate?: AutoScalingSettingsUpdate;
  3691. /**
  3692. * Represents the auto scaling settings of replicas of the table that will be modified.
  3693. */
  3694. ReplicaUpdates?: ReplicaAutoScalingUpdateList;
  3695. }
  3696. export interface UpdateTableReplicaAutoScalingOutput {
  3697. /**
  3698. * Returns information about the auto scaling settings of a table with replicas.
  3699. */
  3700. TableAutoScalingDescription?: TableAutoScalingDescription;
  3701. }
  3702. export interface UpdateTimeToLiveInput {
  3703. /**
  3704. * The name of the table to be configured. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
  3705. */
  3706. TableName: TableArn;
  3707. /**
  3708. * Represents the settings used to enable or disable Time to Live for the specified table.
  3709. */
  3710. TimeToLiveSpecification: TimeToLiveSpecification;
  3711. }
  3712. export interface UpdateTimeToLiveOutput {
  3713. /**
  3714. * Represents the output of an UpdateTimeToLive operation.
  3715. */
  3716. TimeToLiveSpecification?: TimeToLiveSpecification;
  3717. }
  3718. export interface WriteRequest {
  3719. /**
  3720. * A request to perform a PutItem operation.
  3721. */
  3722. PutRequest?: PutRequest;
  3723. /**
  3724. * A request to perform a DeleteItem operation.
  3725. */
  3726. DeleteRequest?: DeleteRequest;
  3727. }
  3728. export type WriteRequests = WriteRequest[];
  3729. //<!--auto-generated end-->
  3730. }