-
Notifications
You must be signed in to change notification settings - Fork 89
/
Copy pathAWS_aws-noSql.js.html
303 lines (298 loc) · 9.87 KB
/
AWS_aws-noSql.js.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>AWS/aws-noSql.js</title>
<script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js"></script>
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<script src="./build/entry.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link
href="https://fonts.googleapis.com/css?family=Roboto:100,400,700|Inconsolata,700"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.6.3/css/all.css"
integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/"
crossorigin="anonymous"
/>
<link
type="text/css"
rel="stylesheet"
href="https://jmblog.github.io/color-themes-for-google-code-prettify/themes/tomorrow-night.min.css"
/>
<link type="text/css" rel="stylesheet" href="styles/app.min.css" />
<link type="text/css" rel="stylesheet" href="styles/iframe.css" />
<link type="text/css" rel="stylesheet" href="" />
<script async defer src="https://buttons.github.io/buttons.js"></script>
</head>
<body class="layout small-header">
<div id="stickyNavbarOverlay"></div>
<div class="top-nav">
<div class="inner">
<a
id="hamburger"
role="button"
class="navbar-burger"
aria-label="menu"
aria-expanded="false"
>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
<div class="logo"></div>
<div class="menu">
<div class="navigation">
<a href="index.html" class="link">
API Documentation
</a>
</div>
</div>
</div>
</div>
<div id="main">
<div class="sidebar " id="sidebarNav">
<nav>
<h2><a href="index.html">Documentation</a></h2>
<div class="category"></div>
<div class="category">
<h2>AWS</h2>
<h3>Classes</h3>
<ul>
<li>
<a href="AWS_ArchivalStorage.html">AWS_ArchivalStorage</a>
</li>
<li><a href="AWS_BlockStorage.html">AWS_BlockStorage</a></li>
<li>
<a href="AWS_ComputeInstance.html">AWS_ComputeInstance</a>
</li>
<li><a href="AWS_Container.html">AWS_Container</a></li>
<li><a href="AWS_DNS.html">AWS_DNS</a></li>
<li><a href="AWS_IAM.html">AWS_IAM</a></li>
<li><a href="AWS_KeyManagement.html">AWS_KeyManagement</a></li>
<li><a href="AWS_Kubernetes.html">AWS_Kubernetes</a></li>
<li><a href="AWS_LoadBalancer.html">AWS_LoadBalancer</a></li>
<li><a href="AWS_Monitoring.html">AWS_Monitoring</a></li>
<li><a href="AWS_NoSql.html">AWS_NoSql</a></li>
<li><a href="AWS_NoSqlIndexed.html">AWS_NoSqlIndexed</a></li>
<li>
<a href="AWS_NotificationService.html"
>AWS_NotificationService</a
>
</li>
<li><a href="AWS_PaaS.html">AWS_PaaS</a></li>
<li><a href="AWS_RDBMS.html">AWS_RDBMS</a></li>
<li><a href="AWS_StorageBucket.html">AWS_StorageBucket</a></li>
<li><a href="AWS_Translation.html">AWS_Translation</a></li>
</ul>
</div>
<div class="category">
<h2>Azure</h2>
<h3>Classes</h3>
<ul>
<li><a href="Azure_BlockStorage.html">Azure_BlockStorage</a></li>
<li>
<a href="Azure_ComputeInstance.html">Azure_ComputeInstance</a>
</li>
<li><a href="Azure_Container.html">Azure_Container</a></li>
<li><a href="Azure_DNS.html">Azure_DNS</a></li>
<li>
<a href="Azure_KeyManagement.html">Azure_KeyManagement</a>
</li>
<li><a href="Azure_Kubernetes.html">Azure_Kubernetes</a></li>
<li><a href="Azure_LoadBalancer.html">Azure_LoadBalancer</a></li>
<li><a href="Azure_Monitoring.html">Azure_Monitoring</a></li>
<li><a href="Azure_NoSql.html">Azure_NoSql</a></li>
<li><a href="Azure_PaaS.html">Azure_PaaS</a></li>
<li><a href="Azure_RDBMS.html">Azure_RDBMS</a></li>
<li>
<a href="Azure_StorageBucket.html">Azure_StorageBucket</a>
</li>
</ul>
</div>
<div class="category">
<h2>Google Cloud</h2>
<h3>Classes</h3>
<ul>
<li><a href="GCP_dns.html">GCP_dns</a></li>
<li><a href="GCP_KeyManagement.html">GCP_KeyManagement</a></li>
<li><a href="GCP_Kubernetes.html">GCP_Kubernetes</a></li>
<li><a href="GCP_Monitoring.html">GCP_Monitoring</a></li>
<li><a href="GCP_NoSql.html">GCP_NoSql</a></li>
<li>
<a href="GCP_NotificationService.html"
>GCP_NotificationService</a
>
</li>
<li><a href="GCP_RDBMS.html">GCP_RDBMS</a></li>
<li><a href="GCP_storage.html">GCP_storage</a></li>
<li><a href="GCP_Translation.html">GCP_Translation</a></li>
</ul>
</div>
</nav>
</div>
<div class="core" id="main-content-wrapper">
<div class="content">
<header class="page-title">
<p>Source</p>
<h1>AWS/aws-noSql.js</h1>
</header>
<section>
<article>
<pre
class="prettyprint source linenums"
><code>/*This is an auto generated class, please do not change.*/
/**
* Class to create a DynamoDB object
* @category AWS
*/
class AWS_NoSql {
/**
*
* @param {module} aws AWS SDK
* @param {object} options SDK options
*/
constructor(aws, options) {
this._AWS = aws;
this._apiVersion = options.apiVersion;
this._dynamoDB = new this._AWS.DynamoDB({
apiVersion: this._apiVersion
});
}
/**
* Trigers the createTable function of DynamoDB
* @param {CreateTableInput} params - Data required for createTable
* @returns {Promise<createTableResponse>}
*/
createTable(params) {
return new Promise((resolve, reject) => {
this._dynamoDB.createTable(params, (error, data) => {
if (error) {
reject(error);
} else {
resolve(data);
}
});
});
}
/**
* Trigers the deleteItem function of DynamoDB
* @param {DeleteItemInput} params - Data required for deleteItem
* @returns {Promise<deleteItemResponse>}
*/
deleteItem(params) {
return new Promise((resolve, reject) => {
this._dynamoDB.deleteItem(params, (error, data) => {
if (error) {
reject(error);
} else {
resolve(data);
}
});
});
}
/**
* Trigers the deleteTable function of DynamoDB
* @param {DeleteTableInput} params - Data required for deleteTable
* @returns {Promise<deleteTableResponse>}
*/
deleteTable(params) {
return new Promise((resolve, reject) => {
this._dynamoDB.deleteTable(params, (error, data) => {
if (error) {
reject(error);
} else {
resolve(data);
}
});
});
}
/**
* Trigers the putItem function of DynamoDB
* @param {PutItemInput} params - Data required for putItem
* @returns {Promise<putItemResponse>}
*/
createItem(params) {
return new Promise((resolve, reject) => {
this._dynamoDB.putItem(params, (error, data) => {
if (error) {
reject(error);
} else {
resolve(data);
}
});
});
}
/**
* Trigers the query function of DynamoDB
* @param {QueryInput} params - Data required for query
* @returns {Promise<queryResponse>}
*/
query(params) {
return new Promise((resolve, reject) => {
this._dynamoDB.query(params, (error, data) => {
if (error) {
reject(error);
} else {
resolve(data);
}
});
});
}
/**
* Trigers the updateItem function of DynamoDB
* @param {UpdateItemInput} params - Data required for updateItem
* @returns {Promise<updateItemResponse>}
*/
updateItem(params) {
return new Promise((resolve, reject) => {
this._dynamoDB.updateItem(params, (error, data) => {
if (error) {
reject(error);
} else {
resolve(data);
}
});
});
}
}
module.exports = AWS_NoSql;
</code></pre>
</article>
</section>
</div>
<footer class="footer">
<div class="content has-text-centered">
<p>
Documentation generated by
<a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.5</a>
</p>
<p class="sidebar-created-by">
<a
href="https://github.com/SoftwareBrothers/better-docs"
target="_blank"
>BetterDocs theme</a
>
provided with <i class="fas fa-heart"></i> by
<a href="http://softwarebrothers.co" target="_blank"
>SoftwareBrothers - JavaScript Development Agency</a
>
</p>
</div>
</footer>
</div>
<div id="side-nav" class="side-nav"></div>
</div>
<script src="scripts/app.min.js"></script>
<script>
PR.prettyPrint();
</script>
<script src="scripts/linenumber.js"></script>
</body>
</html>