@aws-sdk/client-amplify 3.100.0 → 3.105.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.105.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.104.0...v3.105.0) (2022-06-06)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** support recursion detection in Lambda ([#3654](https://github.com/aws/aws-sdk-js-v3/issues/3654)) ([ecfe46e](https://github.com/aws/aws-sdk-js-v3/commit/ecfe46ea1fd8b6e3812b75b3dc6c03554fb4b3fa))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.100.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.99.0...v3.100.0) (2022-05-26)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-amplify
@@ -5,6 +5,7 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
6
6
  const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
7
7
  const middleware_logger_1 = require("@aws-sdk/middleware-logger");
8
+ const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
8
9
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
9
10
  const middleware_signing_1 = require("@aws-sdk/middleware-signing");
10
11
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
@@ -25,6 +26,7 @@ class AmplifyClient extends smithy_client_1.Client {
25
26
  this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
26
27
  this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
27
28
  this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
29
+ this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
28
30
  this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
29
31
  this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
30
32
  }
@@ -3,6 +3,7 @@ import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-re
3
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
5
5
  import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
6
+ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
6
7
  import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
7
8
  import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
@@ -25,6 +26,7 @@ var AmplifyClient = (function (_super) {
25
26
  _this.middlewareStack.use(getContentLengthPlugin(_this.config));
26
27
  _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
27
28
  _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
28
30
  _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
29
31
  _this.middlewareStack.use(getUserAgentPlugin(_this.config));
30
32
  return _this;
@@ -37,9 +37,7 @@ export interface AutoBranchCreationConfig {
37
37
  /**
38
38
  * <p> The environment variables for the autocreated branch. </p>
39
39
  */
40
- environmentVariables?: {
41
- [key: string]: string;
42
- };
40
+ environmentVariables?: Record<string, string>;
43
41
  /**
44
42
  * <p> The basic authorization credentials for the autocreated branch. You must
45
43
  * base64-encode the authorization credentials and provide them in the format
@@ -187,9 +185,7 @@ export interface CreateAppRequest {
187
185
  /**
188
186
  * <p> The environment variables map for an Amplify app. </p>
189
187
  */
190
- environmentVariables?: {
191
- [key: string]: string;
192
- };
188
+ environmentVariables?: Record<string, string>;
193
189
  /**
194
190
  * <p> Enables the auto building of branches for an Amplify app. </p>
195
191
  */
@@ -217,9 +213,7 @@ export interface CreateAppRequest {
217
213
  /**
218
214
  * <p> The tag for an Amplify app. </p>
219
215
  */
220
- tags?: {
221
- [key: string]: string;
222
- };
216
+ tags?: Record<string, string>;
223
217
  /**
224
218
  * <p> The build specification (build spec) for an Amplify app. </p>
225
219
  */
@@ -299,9 +293,7 @@ export interface App {
299
293
  /**
300
294
  * <p> The tag for the Amplify app. </p>
301
295
  */
302
- tags?: {
303
- [key: string]: string;
304
- };
296
+ tags?: Record<string, string>;
305
297
  /**
306
298
  * <p> The description for the Amplify app. </p>
307
299
  */
@@ -330,9 +322,7 @@ export interface App {
330
322
  /**
331
323
  * <p> The environment variables for the Amplify app. </p>
332
324
  */
333
- environmentVariables: {
334
- [key: string]: string;
335
- } | undefined;
325
+ environmentVariables: Record<string, string> | undefined;
336
326
  /**
337
327
  * <p> The default domain for the Amplify app. </p>
338
328
  */
@@ -585,9 +575,7 @@ export interface CreateBranchRequest {
585
575
  /**
586
576
  * <p> The environment variables for the branch. </p>
587
577
  */
588
- environmentVariables?: {
589
- [key: string]: string;
590
- };
578
+ environmentVariables?: Record<string, string>;
591
579
  /**
592
580
  * <p> The basic authorization credentials for the branch. You must base64-encode the
593
581
  * authorization credentials and provide them in the format
@@ -608,9 +596,7 @@ export interface CreateBranchRequest {
608
596
  /**
609
597
  * <p> The tag for the branch. </p>
610
598
  */
611
- tags?: {
612
- [key: string]: string;
613
- };
599
+ tags?: Record<string, string>;
614
600
  /**
615
601
  * <p> The build specification (build spec) for the branch. </p>
616
602
  */
@@ -662,9 +648,7 @@ export interface Branch {
662
648
  /**
663
649
  * <p> The tag for the branch of an Amplify app. </p>
664
650
  */
665
- tags?: {
666
- [key: string]: string;
667
- };
651
+ tags?: Record<string, string>;
668
652
  /**
669
653
  * <p> The current stage for the branch that is part of an Amplify app. </p>
670
654
  */
@@ -688,9 +672,7 @@ export interface Branch {
688
672
  /**
689
673
  * <p> The environment variables specific to a branch of an Amplify app. </p>
690
674
  */
691
- environmentVariables: {
692
- [key: string]: string;
693
- } | undefined;
675
+ environmentVariables: Record<string, string> | undefined;
694
676
  /**
695
677
  * <p> Enables auto-building on push for a branch of an Amplify app. </p>
696
678
  */
@@ -807,9 +789,7 @@ export interface CreateDeploymentRequest {
807
789
  * upload URL per file. Otherwise, the service will only generate a single upload URL for
808
790
  * the zipped files. </p>
809
791
  */
810
- fileMap?: {
811
- [key: string]: string;
812
- };
792
+ fileMap?: Record<string, string>;
813
793
  }
814
794
  export declare namespace CreateDeploymentRequest {
815
795
  /**
@@ -829,9 +809,7 @@ export interface CreateDeploymentResult {
829
809
  * <p> When the <code>fileMap</code> argument is provided in the request,
830
810
  * <code>fileUploadUrls</code> will contain a map of file names to upload URLs. </p>
831
811
  */
832
- fileUploadUrls: {
833
- [key: string]: string;
834
- } | undefined;
812
+ fileUploadUrls: Record<string, string> | undefined;
835
813
  /**
836
814
  * <p> When the <code>fileMap</code> argument is not provided in the request, this
837
815
  * <code>zipUploadUrl</code> is returned. </p>
@@ -1607,9 +1585,7 @@ export interface Step {
1607
1585
  /**
1608
1586
  * <p> The list of screenshot URLs for the execution step, if relevant. </p>
1609
1587
  */
1610
- screenshots?: {
1611
- [key: string]: string;
1612
- };
1588
+ screenshots?: Record<string, string>;
1613
1589
  /**
1614
1590
  * <p> The reason for the current step status. </p>
1615
1591
  */
@@ -2010,9 +1986,7 @@ export interface ListTagsForResourceResponse {
2010
1986
  /**
2011
1987
  * <p> A list of tags for the specified The Amazon Resource Name (ARN). </p>
2012
1988
  */
2013
- tags?: {
2014
- [key: string]: string;
2015
- };
1989
+ tags?: Record<string, string>;
2016
1990
  }
2017
1991
  export declare namespace ListTagsForResourceResponse {
2018
1992
  /**
@@ -2233,9 +2207,7 @@ export interface TagResourceRequest {
2233
2207
  /**
2234
2208
  * <p> The tags used to tag the resource. </p>
2235
2209
  */
2236
- tags: {
2237
- [key: string]: string;
2238
- } | undefined;
2210
+ tags: Record<string, string> | undefined;
2239
2211
  }
2240
2212
  export declare namespace TagResourceRequest {
2241
2213
  /**
@@ -2311,9 +2283,7 @@ export interface UpdateAppRequest {
2311
2283
  /**
2312
2284
  * <p> The environment variables for an Amplify app. </p>
2313
2285
  */
2314
- environmentVariables?: {
2315
- [key: string]: string;
2316
- };
2286
+ environmentVariables?: Record<string, string>;
2317
2287
  /**
2318
2288
  * <p> Enables branch auto-building for an Amplify app. </p>
2319
2289
  */
@@ -2448,9 +2418,7 @@ export interface UpdateBranchRequest {
2448
2418
  /**
2449
2419
  * <p> The environment variables for the branch. </p>
2450
2420
  */
2451
- environmentVariables?: {
2452
- [key: string]: string;
2453
- };
2421
+ environmentVariables?: Record<string, string>;
2454
2422
  /**
2455
2423
  * <p> The basic authorization credentials for the branch. You must base64-encode the
2456
2424
  * authorization credentials and provide them in the format
@@ -23,9 +23,7 @@ export interface AutoBranchCreationConfig {
23
23
 
24
24
  enableAutoBuild?: boolean;
25
25
 
26
- environmentVariables?: {
27
- [key: string]: string;
28
- };
26
+ environmentVariables?: Record<string, string>;
29
27
 
30
28
  basicAuthCredentials?: string;
31
29
 
@@ -79,9 +77,7 @@ export interface CreateAppRequest {
79
77
 
80
78
  accessToken?: string;
81
79
 
82
- environmentVariables?: {
83
- [key: string]: string;
84
- };
80
+ environmentVariables?: Record<string, string>;
85
81
 
86
82
  enableBranchAutoBuild?: boolean;
87
83
 
@@ -93,9 +89,7 @@ export interface CreateAppRequest {
93
89
 
94
90
  customRules?: CustomRule[];
95
91
 
96
- tags?: {
97
- [key: string]: string;
98
- };
92
+ tags?: Record<string, string>;
99
93
 
100
94
  buildSpec?: string;
101
95
 
@@ -140,9 +134,7 @@ export interface App {
140
134
 
141
135
  name: string | undefined;
142
136
 
143
- tags?: {
144
- [key: string]: string;
145
- };
137
+ tags?: Record<string, string>;
146
138
 
147
139
  description: string | undefined;
148
140
 
@@ -156,9 +148,7 @@ export interface App {
156
148
 
157
149
  iamServiceRoleArn?: string;
158
150
 
159
- environmentVariables: {
160
- [key: string]: string;
161
- } | undefined;
151
+ environmentVariables: Record<string, string> | undefined;
162
152
 
163
153
  defaultDomain: string | undefined;
164
154
 
@@ -293,9 +283,7 @@ export interface CreateBranchRequest {
293
283
 
294
284
  enableAutoBuild?: boolean;
295
285
 
296
- environmentVariables?: {
297
- [key: string]: string;
298
- };
286
+ environmentVariables?: Record<string, string>;
299
287
 
300
288
  basicAuthCredentials?: string;
301
289
 
@@ -303,9 +291,7 @@ export interface CreateBranchRequest {
303
291
 
304
292
  enablePerformanceMode?: boolean;
305
293
 
306
- tags?: {
307
- [key: string]: string;
308
- };
294
+ tags?: Record<string, string>;
309
295
 
310
296
  buildSpec?: string;
311
297
 
@@ -332,9 +318,7 @@ export interface Branch {
332
318
 
333
319
  description: string | undefined;
334
320
 
335
- tags?: {
336
- [key: string]: string;
337
- };
321
+ tags?: Record<string, string>;
338
322
 
339
323
  stage: Stage | string | undefined;
340
324
 
@@ -346,9 +330,7 @@ export interface Branch {
346
330
 
347
331
  updateTime: Date | undefined;
348
332
 
349
- environmentVariables: {
350
- [key: string]: string;
351
- } | undefined;
333
+ environmentVariables: Record<string, string> | undefined;
352
334
 
353
335
  enableAutoBuild: boolean | undefined;
354
336
 
@@ -404,9 +386,7 @@ export interface CreateDeploymentRequest {
404
386
 
405
387
  branchName: string | undefined;
406
388
 
407
- fileMap?: {
408
- [key: string]: string;
409
- };
389
+ fileMap?: Record<string, string>;
410
390
  }
411
391
  export declare namespace CreateDeploymentRequest {
412
392
 
@@ -417,9 +397,7 @@ export interface CreateDeploymentResult {
417
397
 
418
398
  jobId?: string;
419
399
 
420
- fileUploadUrls: {
421
- [key: string]: string;
422
- } | undefined;
400
+ fileUploadUrls: Record<string, string> | undefined;
423
401
 
424
402
  zipUploadUrl: string | undefined;
425
403
  }
@@ -866,9 +844,7 @@ export interface Step {
866
844
 
867
845
  testConfigUrl?: string;
868
846
 
869
- screenshots?: {
870
- [key: string]: string;
871
- };
847
+ screenshots?: Record<string, string>;
872
848
 
873
849
  statusReason?: string;
874
850
 
@@ -1088,9 +1064,7 @@ export declare namespace ListTagsForResourceRequest {
1088
1064
 
1089
1065
  export interface ListTagsForResourceResponse {
1090
1066
 
1091
- tags?: {
1092
- [key: string]: string;
1093
- };
1067
+ tags?: Record<string, string>;
1094
1068
  }
1095
1069
  export declare namespace ListTagsForResourceResponse {
1096
1070
 
@@ -1211,9 +1185,7 @@ export interface TagResourceRequest {
1211
1185
 
1212
1186
  resourceArn: string | undefined;
1213
1187
 
1214
- tags: {
1215
- [key: string]: string;
1216
- } | undefined;
1188
+ tags: Record<string, string> | undefined;
1217
1189
  }
1218
1190
  export declare namespace TagResourceRequest {
1219
1191
 
@@ -1257,9 +1229,7 @@ export interface UpdateAppRequest {
1257
1229
 
1258
1230
  iamServiceRoleArn?: string;
1259
1231
 
1260
- environmentVariables?: {
1261
- [key: string]: string;
1262
- };
1232
+ environmentVariables?: Record<string, string>;
1263
1233
 
1264
1234
  enableBranchAutoBuild?: boolean;
1265
1235
 
@@ -1317,9 +1287,7 @@ export interface UpdateBranchRequest {
1317
1287
 
1318
1288
  enableAutoBuild?: boolean;
1319
1289
 
1320
- environmentVariables?: {
1321
- [key: string]: string;
1322
- };
1290
+ environmentVariables?: Record<string, string>;
1323
1291
 
1324
1292
  basicAuthCredentials?: string;
1325
1293
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-amplify",
3
3
  "description": "AWS SDK for JavaScript Amplify Client for Node.js, Browser and React Native",
4
- "version": "3.100.0",
4
+ "version": "3.105.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,15 +18,16 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.100.0",
21
+ "@aws-sdk/client-sts": "3.105.0",
22
22
  "@aws-sdk/config-resolver": "3.80.0",
23
- "@aws-sdk/credential-provider-node": "3.100.0",
23
+ "@aws-sdk/credential-provider-node": "3.105.0",
24
24
  "@aws-sdk/fetch-http-handler": "3.78.0",
25
25
  "@aws-sdk/hash-node": "3.78.0",
26
26
  "@aws-sdk/invalid-dependency": "3.78.0",
27
27
  "@aws-sdk/middleware-content-length": "3.78.0",
28
28
  "@aws-sdk/middleware-host-header": "3.78.0",
29
29
  "@aws-sdk/middleware-logger": "3.78.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.105.0",
30
31
  "@aws-sdk/middleware-retry": "3.80.0",
31
32
  "@aws-sdk/middleware-serde": "3.78.0",
32
33
  "@aws-sdk/middleware-signing": "3.78.0",