File tree 6 files changed +6
-15
lines changed
src/pages/[platform]/build-a-backend/add-aws-services/rest-api
6 files changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -38,9 +38,6 @@ async function deleteItem() {
38
38
const restOperation = del ({
39
39
apiName: ' myRestApi' ,
40
40
path: ' items/1' ,
41
- retryStrategy: {
42
- strategy: ' no-retry'
43
- },
44
41
});
45
42
await restOperation .response ;
46
43
console .log (' DELETE call succeeded' );
Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ async function getItem() {
39
39
apiName: ' myRestApi' ,
40
40
path: ' items'
41
41
retryStrategy : {
42
- strategy: ' no-retry'
42
+ strategy: ' no-retry' // Overrides default jittered exponential backoff retry strategy
43
43
},
44
- });
44
+ });
45
45
const response = await restOperation .response ;
46
46
console .log (' GET call succeeded: ' , response );
47
47
} catch (error ) {
Original file line number Diff line number Diff line change @@ -43,9 +43,6 @@ async function postItem() {
43
43
message: ' Mow the lawn'
44
44
}
45
45
},
46
- retryStrategy: {
47
- strategy: ' no-retry'
48
- },
49
46
});
50
47
51
48
const { body } = await restOperation .response ;
Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ Amplify.configure(
245
245
API: {
246
246
REST: {
247
247
retryStrategy: {
248
- strategy: ' no-retry'
248
+ strategy: ' no-retry' // Overrides default jittered exponential backoff retry strategy
249
249
},
250
250
}
251
251
},
@@ -274,7 +274,7 @@ Amplify.configure(
274
274
API: {
275
275
REST: {
276
276
retryStrategy: {
277
- strategy: ' no-retry'
277
+ strategy: ' no-retry' // Overrides default jittered exponential backoff retry strategy
278
278
},
279
279
}
280
280
}
Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ Amplify.configure(
228
228
API : {
229
229
REST : {
230
230
retryStrategy: {
231
- strategy: ' no-retry'
231
+ strategy: ' no-retry' , // Overrides default jittered exponential backoff retry strategy
232
232
},
233
233
}
234
234
}
@@ -257,7 +257,7 @@ Amplify.configure(
257
257
API: {
258
258
REST: {
259
259
retryStrategy: {
260
- strategy: ' no-retry'
260
+ strategy: ' no-retry' // Overrides default jittered exponential backoff retry strategy
261
261
},
262
262
}
263
263
}
Original file line number Diff line number Diff line change @@ -42,9 +42,6 @@ async function updateItems() {
42
42
options: {
43
43
body: Item
44
44
},
45
- retryStrategy: {
46
- strategy: ' no-retry'
47
- },
48
45
});
49
46
const response = await restOperation .response ;
50
47
console .log (' PUT call succeeded: ' , response );
You can’t perform that action at this time.
0 commit comments