@aws-sdk/client-amplify 3.52.0 → 3.54.1
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 +30 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/AmplifyServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +110 -2
- package/dist-cjs/protocols/Aws_restJson1.js +385 -1418
- package/dist-es/index.js +1 -0
- package/dist-es/models/AmplifyServiceException.js +12 -0
- package/dist-es/models/models_0.js +101 -8
- package/dist-es/protocols/Aws_restJson1.js +832 -1574
- package/dist-types/AmplifyClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/AmplifyServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +102 -44
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/AmplifyClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/AmplifyServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +47 -31
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +27 -27
|
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
-
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { CreateAppCommandInput, CreateAppCommandOutput } from "./commands/CreateAppCommand";
|
|
10
10
|
import { CreateBackendEnvironmentCommandInput, CreateBackendEnvironmentCommandOutput } from "./commands/CreateBackendEnvironmentCommand";
|
|
11
11
|
import { CreateBranchCommandInput, CreateBranchCommandOutput } from "./commands/CreateBranchCommand";
|
|
@@ -65,7 +65,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
65
65
|
* A function that can calculate the length of a request body.
|
|
66
66
|
* @internal
|
|
67
67
|
*/
|
|
68
|
-
bodyLengthChecker?:
|
|
68
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
69
69
|
/**
|
|
70
70
|
* A function that converts a stream into an array of bytes.
|
|
71
71
|
* @internal
|
package/dist-types/index.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
/**
|
|
3
|
+
* Base exception class for all service exceptions from Amplify service.
|
|
4
|
+
*/
|
|
5
|
+
export declare class AmplifyServiceException extends __ServiceException {
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
constructor(options: __ServiceExceptionOptions);
|
|
10
|
+
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { AmplifyServiceException as __BaseException } from "./AmplifyServiceException";
|
|
2
3
|
/**
|
|
3
4
|
* <p> A request contains unexpected data. </p>
|
|
4
5
|
*/
|
|
5
|
-
export
|
|
6
|
-
name: "BadRequestException";
|
|
7
|
-
$fault: "client";
|
|
8
|
-
|
|
6
|
+
export declare class BadRequestException extends __BaseException {
|
|
7
|
+
readonly name: "BadRequestException";
|
|
8
|
+
readonly $fault: "client";
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
constructor(opts: __ExceptionOptionType<BadRequestException, __BaseException>);
|
|
9
13
|
}
|
|
10
14
|
export declare enum Stage {
|
|
11
15
|
BETA = "BETA",
|
|
@@ -37,7 +41,9 @@ export interface AutoBranchCreationConfig {
|
|
|
37
41
|
[key: string]: string;
|
|
38
42
|
};
|
|
39
43
|
/**
|
|
40
|
-
* <p> The basic authorization credentials for the autocreated branch. You must
|
|
44
|
+
* <p> The basic authorization credentials for the autocreated branch. You must
|
|
45
|
+
* base64-encode the authorization credentials and provide them in the format
|
|
46
|
+
* <code>user:password</code>.</p>
|
|
41
47
|
*/
|
|
42
48
|
basicAuthCredentials?: string;
|
|
43
49
|
/**
|
|
@@ -46,7 +52,9 @@ export interface AutoBranchCreationConfig {
|
|
|
46
52
|
enableBasicAuth?: boolean;
|
|
47
53
|
/**
|
|
48
54
|
* <p>Enables performance mode for the branch.</p>
|
|
49
|
-
* <p>Performance mode optimizes for faster hosting performance by keeping content cached at
|
|
55
|
+
* <p>Performance mode optimizes for faster hosting performance by keeping content cached at
|
|
56
|
+
* the edge for a longer interval. When performance mode is enabled, hosting configuration
|
|
57
|
+
* or code changes can take up to 10 minutes to roll out. </p>
|
|
50
58
|
*/
|
|
51
59
|
enablePerformanceMode?: boolean;
|
|
52
60
|
/**
|
|
@@ -90,7 +98,8 @@ export interface CustomRule {
|
|
|
90
98
|
* </dd>
|
|
91
99
|
* <dt>301</dt>
|
|
92
100
|
* <dd>
|
|
93
|
-
* <p>Represents a 301 (moved pemanently) redirect rule. This and all future
|
|
101
|
+
* <p>Represents a 301 (moved pemanently) redirect rule. This and all future
|
|
102
|
+
* requests should be directed to the target URL. </p>
|
|
94
103
|
* </dd>
|
|
95
104
|
* <dt>302</dt>
|
|
96
105
|
* <dd>
|
|
@@ -119,7 +128,8 @@ export declare namespace CustomRule {
|
|
|
119
128
|
const filterSensitiveLog: (obj: CustomRule) => any;
|
|
120
129
|
}
|
|
121
130
|
export declare enum Platform {
|
|
122
|
-
WEB = "WEB"
|
|
131
|
+
WEB = "WEB",
|
|
132
|
+
WEB_DYNAMIC = "WEB_DYNAMIC"
|
|
123
133
|
}
|
|
124
134
|
/**
|
|
125
135
|
* <p> The request structure used to create apps in Amplify. </p>
|
|
@@ -178,7 +188,9 @@ export interface CreateAppRequest {
|
|
|
178
188
|
*/
|
|
179
189
|
enableBasicAuth?: boolean;
|
|
180
190
|
/**
|
|
181
|
-
* <p> The credentials for basic authorization for an Amplify app. You must base64-encode
|
|
191
|
+
* <p> The credentials for basic authorization for an Amplify app. You must base64-encode
|
|
192
|
+
* the authorization credentials and provide them in the format
|
|
193
|
+
* <code>user:password</code>.</p>
|
|
182
194
|
*/
|
|
183
195
|
basicAuthCredentials?: string;
|
|
184
196
|
/**
|
|
@@ -245,6 +257,11 @@ export declare namespace ProductionBranch {
|
|
|
245
257
|
*/
|
|
246
258
|
const filterSensitiveLog: (obj: ProductionBranch) => any;
|
|
247
259
|
}
|
|
260
|
+
export declare enum RepositoryCloneMethod {
|
|
261
|
+
SIGV4 = "SIGV4",
|
|
262
|
+
SSH = "SSH",
|
|
263
|
+
TOKEN = "TOKEN"
|
|
264
|
+
}
|
|
248
265
|
/**
|
|
249
266
|
* <p> Represents the different branches of a repository for building, deploying, and
|
|
250
267
|
* hosting an Amplify app. </p>
|
|
@@ -273,7 +290,7 @@ export interface App {
|
|
|
273
290
|
*/
|
|
274
291
|
description: string | undefined;
|
|
275
292
|
/**
|
|
276
|
-
* <p> The repository for the Amplify app. </p>
|
|
293
|
+
* <p> The Git repository for the Amplify app. </p>
|
|
277
294
|
*/
|
|
278
295
|
repository: string | undefined;
|
|
279
296
|
/**
|
|
@@ -317,7 +334,9 @@ export interface App {
|
|
|
317
334
|
*/
|
|
318
335
|
enableBasicAuth: boolean | undefined;
|
|
319
336
|
/**
|
|
320
|
-
* <p> The basic authorization credentials for branches for the Amplify app. You must
|
|
337
|
+
* <p> The basic authorization credentials for branches for the Amplify app. You must
|
|
338
|
+
* base64-encode the authorization credentials and provide them in the format
|
|
339
|
+
* <code>user:password</code>.</p>
|
|
321
340
|
*/
|
|
322
341
|
basicAuthCredentials?: string;
|
|
323
342
|
/**
|
|
@@ -349,6 +368,13 @@ export interface App {
|
|
|
349
368
|
* <p> Describes the automated branch creation configuration for the Amplify app. </p>
|
|
350
369
|
*/
|
|
351
370
|
autoBranchCreationConfig?: AutoBranchCreationConfig;
|
|
371
|
+
/**
|
|
372
|
+
* <p>The authentication protocol to use to access the Git repository for an Amplify app.
|
|
373
|
+
* For a GitHub repository, specify <code>TOKEN</code>. For an Amazon Web Services CodeCommit repository,
|
|
374
|
+
* specify <code>SIGV4</code>. For GitLab and Bitbucket repositories, specify
|
|
375
|
+
* <code>SSH</code>.</p>
|
|
376
|
+
*/
|
|
377
|
+
repositoryCloneMethod?: RepositoryCloneMethod | string;
|
|
352
378
|
}
|
|
353
379
|
export declare namespace App {
|
|
354
380
|
/**
|
|
@@ -372,34 +398,46 @@ export declare namespace CreateAppResult {
|
|
|
372
398
|
/**
|
|
373
399
|
* <p> An operation failed because a dependent service threw an exception. </p>
|
|
374
400
|
*/
|
|
375
|
-
export
|
|
376
|
-
name: "DependentServiceFailureException";
|
|
377
|
-
$fault: "server";
|
|
378
|
-
|
|
401
|
+
export declare class DependentServiceFailureException extends __BaseException {
|
|
402
|
+
readonly name: "DependentServiceFailureException";
|
|
403
|
+
readonly $fault: "server";
|
|
404
|
+
/**
|
|
405
|
+
* @internal
|
|
406
|
+
*/
|
|
407
|
+
constructor(opts: __ExceptionOptionType<DependentServiceFailureException, __BaseException>);
|
|
379
408
|
}
|
|
380
409
|
/**
|
|
381
410
|
* <p> The service failed to perform an operation due to an internal issue. </p>
|
|
382
411
|
*/
|
|
383
|
-
export
|
|
384
|
-
name: "InternalFailureException";
|
|
385
|
-
$fault: "server";
|
|
386
|
-
|
|
412
|
+
export declare class InternalFailureException extends __BaseException {
|
|
413
|
+
readonly name: "InternalFailureException";
|
|
414
|
+
readonly $fault: "server";
|
|
415
|
+
/**
|
|
416
|
+
* @internal
|
|
417
|
+
*/
|
|
418
|
+
constructor(opts: __ExceptionOptionType<InternalFailureException, __BaseException>);
|
|
387
419
|
}
|
|
388
420
|
/**
|
|
389
421
|
* <p> A resource could not be created because service quotas were exceeded. </p>
|
|
390
422
|
*/
|
|
391
|
-
export
|
|
392
|
-
name: "LimitExceededException";
|
|
393
|
-
$fault: "client";
|
|
394
|
-
|
|
423
|
+
export declare class LimitExceededException extends __BaseException {
|
|
424
|
+
readonly name: "LimitExceededException";
|
|
425
|
+
readonly $fault: "client";
|
|
426
|
+
/**
|
|
427
|
+
* @internal
|
|
428
|
+
*/
|
|
429
|
+
constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
|
|
395
430
|
}
|
|
396
431
|
/**
|
|
397
432
|
* <p> An operation failed due to a lack of access. </p>
|
|
398
433
|
*/
|
|
399
|
-
export
|
|
400
|
-
name: "UnauthorizedException";
|
|
401
|
-
$fault: "client";
|
|
402
|
-
|
|
434
|
+
export declare class UnauthorizedException extends __BaseException {
|
|
435
|
+
readonly name: "UnauthorizedException";
|
|
436
|
+
readonly $fault: "client";
|
|
437
|
+
/**
|
|
438
|
+
* @internal
|
|
439
|
+
*/
|
|
440
|
+
constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
|
|
403
441
|
}
|
|
404
442
|
/**
|
|
405
443
|
* <p> The request structure for the backend environment create request. </p>
|
|
@@ -484,10 +522,13 @@ export declare namespace CreateBackendEnvironmentResult {
|
|
|
484
522
|
/**
|
|
485
523
|
* <p> An entity was not found during an operation. </p>
|
|
486
524
|
*/
|
|
487
|
-
export
|
|
488
|
-
name: "NotFoundException";
|
|
489
|
-
$fault: "client";
|
|
490
|
-
|
|
525
|
+
export declare class NotFoundException extends __BaseException {
|
|
526
|
+
readonly name: "NotFoundException";
|
|
527
|
+
readonly $fault: "client";
|
|
528
|
+
/**
|
|
529
|
+
* @internal
|
|
530
|
+
*/
|
|
531
|
+
constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
|
|
491
532
|
}
|
|
492
533
|
/**
|
|
493
534
|
* <p> The request structure for the create branch request. </p>
|
|
@@ -528,7 +569,9 @@ export interface CreateBranchRequest {
|
|
|
528
569
|
[key: string]: string;
|
|
529
570
|
};
|
|
530
571
|
/**
|
|
531
|
-
* <p> The basic authorization credentials for the branch. You must base64-encode the
|
|
572
|
+
* <p> The basic authorization credentials for the branch. You must base64-encode the
|
|
573
|
+
* authorization credentials and provide them in the format
|
|
574
|
+
* <code>user:password</code>.</p>
|
|
532
575
|
*/
|
|
533
576
|
basicAuthCredentials?: string;
|
|
534
577
|
/**
|
|
@@ -537,7 +580,9 @@ export interface CreateBranchRequest {
|
|
|
537
580
|
enableBasicAuth?: boolean;
|
|
538
581
|
/**
|
|
539
582
|
* <p>Enables performance mode for the branch.</p>
|
|
540
|
-
* <p>Performance mode optimizes for faster hosting performance by keeping content cached at
|
|
583
|
+
* <p>Performance mode optimizes for faster hosting performance by keeping content cached at
|
|
584
|
+
* the edge for a longer interval. When performance mode is enabled, hosting configuration
|
|
585
|
+
* or code changes can take up to 10 minutes to roll out. </p>
|
|
541
586
|
*/
|
|
542
587
|
enablePerformanceMode?: boolean;
|
|
543
588
|
/**
|
|
@@ -652,7 +697,9 @@ export interface Branch {
|
|
|
652
697
|
enableBasicAuth: boolean | undefined;
|
|
653
698
|
/**
|
|
654
699
|
* <p>Enables performance mode for the branch.</p>
|
|
655
|
-
* <p>Performance mode optimizes for faster hosting performance by keeping content cached at
|
|
700
|
+
* <p>Performance mode optimizes for faster hosting performance by keeping content cached at
|
|
701
|
+
* the edge for a longer interval. When performance mode is enabled, hosting configuration
|
|
702
|
+
* or code changes can take up to 10 minutes to roll out. </p>
|
|
656
703
|
*/
|
|
657
704
|
enablePerformanceMode?: boolean;
|
|
658
705
|
/**
|
|
@@ -660,7 +707,9 @@ export interface Branch {
|
|
|
660
707
|
*/
|
|
661
708
|
thumbnailUrl?: string;
|
|
662
709
|
/**
|
|
663
|
-
* <p> The basic authorization credentials for a branch of an Amplify app. You must
|
|
710
|
+
* <p> The basic authorization credentials for a branch of an Amplify app. You must
|
|
711
|
+
* base64-encode the authorization credentials and provide them in the format
|
|
712
|
+
* <code>user:password</code>.</p>
|
|
664
713
|
*/
|
|
665
714
|
basicAuthCredentials?: string;
|
|
666
715
|
/**
|
|
@@ -1954,11 +2003,14 @@ export declare namespace ListTagsForResourceResponse {
|
|
|
1954
2003
|
/**
|
|
1955
2004
|
* <p> An operation failed due to a non-existent resource. </p>
|
|
1956
2005
|
*/
|
|
1957
|
-
export
|
|
1958
|
-
name: "ResourceNotFoundException";
|
|
1959
|
-
$fault: "client";
|
|
2006
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
2007
|
+
readonly name: "ResourceNotFoundException";
|
|
2008
|
+
readonly $fault: "client";
|
|
1960
2009
|
code: string | undefined;
|
|
1961
|
-
|
|
2010
|
+
/**
|
|
2011
|
+
* @internal
|
|
2012
|
+
*/
|
|
2013
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
1962
2014
|
}
|
|
1963
2015
|
/**
|
|
1964
2016
|
* <p> The request structure for the list webhooks request. </p>
|
|
@@ -2256,7 +2308,9 @@ export interface UpdateAppRequest {
|
|
|
2256
2308
|
*/
|
|
2257
2309
|
enableBasicAuth?: boolean;
|
|
2258
2310
|
/**
|
|
2259
|
-
* <p> The basic authorization credentials for an Amplify app. You must base64-encode the
|
|
2311
|
+
* <p> The basic authorization credentials for an Amplify app. You must base64-encode the
|
|
2312
|
+
* authorization credentials and provide them in the format
|
|
2313
|
+
* <code>user:password</code>.</p>
|
|
2260
2314
|
*/
|
|
2261
2315
|
basicAuthCredentials?: string;
|
|
2262
2316
|
/**
|
|
@@ -2360,7 +2414,9 @@ export interface UpdateBranchRequest {
|
|
|
2360
2414
|
[key: string]: string;
|
|
2361
2415
|
};
|
|
2362
2416
|
/**
|
|
2363
|
-
* <p> The basic authorization credentials for the branch. You must base64-encode the
|
|
2417
|
+
* <p> The basic authorization credentials for the branch. You must base64-encode the
|
|
2418
|
+
* authorization credentials and provide them in the format
|
|
2419
|
+
* <code>user:password</code>.</p>
|
|
2364
2420
|
*/
|
|
2365
2421
|
basicAuthCredentials?: string;
|
|
2366
2422
|
/**
|
|
@@ -2369,7 +2425,9 @@ export interface UpdateBranchRequest {
|
|
|
2369
2425
|
enableBasicAuth?: boolean;
|
|
2370
2426
|
/**
|
|
2371
2427
|
* <p>Enables performance mode for the branch.</p>
|
|
2372
|
-
* <p>Performance mode optimizes for faster hosting performance by keeping content cached at
|
|
2428
|
+
* <p>Performance mode optimizes for faster hosting performance by keeping content cached at
|
|
2429
|
+
* the edge for a longer interval. When performance mode is enabled, hosting configuration
|
|
2430
|
+
* or code changes can take up to 10 minutes to roll out. </p>
|
|
2373
2431
|
*/
|
|
2374
2432
|
enablePerformanceMode?: boolean;
|
|
2375
2433
|
/**
|
|
@@ -2438,7 +2496,7 @@ export interface UpdateDomainAssociationRequest {
|
|
|
2438
2496
|
/**
|
|
2439
2497
|
* <p> Describes the settings for the subdomain. </p>
|
|
2440
2498
|
*/
|
|
2441
|
-
subDomainSettings
|
|
2499
|
+
subDomainSettings?: SubDomainSetting[];
|
|
2442
2500
|
/**
|
|
2443
2501
|
* <p> Sets the branch patterns for automatic subdomain creation. </p>
|
|
2444
2502
|
*/
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: AmplifyClientConfig) => {
|
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
10
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
13
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
14
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: AmplifyClientConfig) => {
|
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
10
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
13
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
14
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: AmplifyClientConfig) => {
|
|
|
8
8
|
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
9
9
|
apiVersion: string;
|
|
10
10
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
13
13
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
14
14
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
-
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { CreateAppCommandInput, CreateAppCommandOutput } from "./commands/CreateAppCommand";
|
|
10
10
|
import { CreateBackendEnvironmentCommandInput, CreateBackendEnvironmentCommandOutput } from "./commands/CreateBackendEnvironmentCommand";
|
|
11
11
|
import { CreateBranchCommandInput, CreateBranchCommandOutput } from "./commands/CreateBranchCommand";
|
|
@@ -53,7 +53,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
53
53
|
|
|
54
54
|
urlParser?: __UrlParser;
|
|
55
55
|
|
|
56
|
-
bodyLengthChecker?:
|
|
56
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
57
57
|
|
|
58
58
|
streamCollector?: __StreamCollector;
|
|
59
59
|
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { AmplifyServiceException as __BaseException } from "./AmplifyServiceException";
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
-
name: "BadRequestException";
|
|
5
|
-
$fault: "client";
|
|
6
|
-
|
|
4
|
+
export declare class BadRequestException extends __BaseException {
|
|
5
|
+
readonly name: "BadRequestException";
|
|
6
|
+
readonly $fault: "client";
|
|
7
|
+
|
|
8
|
+
constructor(opts: __ExceptionOptionType<BadRequestException, __BaseException>);
|
|
7
9
|
}
|
|
8
10
|
export declare enum Stage {
|
|
9
11
|
BETA = "BETA",
|
|
@@ -57,7 +59,8 @@ export declare namespace CustomRule {
|
|
|
57
59
|
const filterSensitiveLog: (obj: CustomRule) => any;
|
|
58
60
|
}
|
|
59
61
|
export declare enum Platform {
|
|
60
|
-
WEB = "WEB"
|
|
62
|
+
WEB = "WEB",
|
|
63
|
+
WEB_DYNAMIC = "WEB_DYNAMIC"
|
|
61
64
|
}
|
|
62
65
|
|
|
63
66
|
export interface CreateAppRequest {
|
|
@@ -123,6 +126,11 @@ export declare namespace ProductionBranch {
|
|
|
123
126
|
|
|
124
127
|
const filterSensitiveLog: (obj: ProductionBranch) => any;
|
|
125
128
|
}
|
|
129
|
+
export declare enum RepositoryCloneMethod {
|
|
130
|
+
SIGV4 = "SIGV4",
|
|
131
|
+
SSH = "SSH",
|
|
132
|
+
TOKEN = "TOKEN"
|
|
133
|
+
}
|
|
126
134
|
|
|
127
135
|
export interface App {
|
|
128
136
|
|
|
@@ -175,6 +183,8 @@ export interface App {
|
|
|
175
183
|
autoBranchCreationPatterns?: string[];
|
|
176
184
|
|
|
177
185
|
autoBranchCreationConfig?: AutoBranchCreationConfig;
|
|
186
|
+
|
|
187
|
+
repositoryCloneMethod?: RepositoryCloneMethod | string;
|
|
178
188
|
}
|
|
179
189
|
export declare namespace App {
|
|
180
190
|
|
|
@@ -189,28 +199,32 @@ export declare namespace CreateAppResult {
|
|
|
189
199
|
const filterSensitiveLog: (obj: CreateAppResult) => any;
|
|
190
200
|
}
|
|
191
201
|
|
|
192
|
-
export
|
|
193
|
-
name: "DependentServiceFailureException";
|
|
194
|
-
$fault: "server";
|
|
195
|
-
|
|
202
|
+
export declare class DependentServiceFailureException extends __BaseException {
|
|
203
|
+
readonly name: "DependentServiceFailureException";
|
|
204
|
+
readonly $fault: "server";
|
|
205
|
+
|
|
206
|
+
constructor(opts: __ExceptionOptionType<DependentServiceFailureException, __BaseException>);
|
|
196
207
|
}
|
|
197
208
|
|
|
198
|
-
export
|
|
199
|
-
name: "InternalFailureException";
|
|
200
|
-
$fault: "server";
|
|
201
|
-
|
|
209
|
+
export declare class InternalFailureException extends __BaseException {
|
|
210
|
+
readonly name: "InternalFailureException";
|
|
211
|
+
readonly $fault: "server";
|
|
212
|
+
|
|
213
|
+
constructor(opts: __ExceptionOptionType<InternalFailureException, __BaseException>);
|
|
202
214
|
}
|
|
203
215
|
|
|
204
|
-
export
|
|
205
|
-
name: "LimitExceededException";
|
|
206
|
-
$fault: "client";
|
|
207
|
-
|
|
216
|
+
export declare class LimitExceededException extends __BaseException {
|
|
217
|
+
readonly name: "LimitExceededException";
|
|
218
|
+
readonly $fault: "client";
|
|
219
|
+
|
|
220
|
+
constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
|
|
208
221
|
}
|
|
209
222
|
|
|
210
|
-
export
|
|
211
|
-
name: "UnauthorizedException";
|
|
212
|
-
$fault: "client";
|
|
213
|
-
|
|
223
|
+
export declare class UnauthorizedException extends __BaseException {
|
|
224
|
+
readonly name: "UnauthorizedException";
|
|
225
|
+
readonly $fault: "client";
|
|
226
|
+
|
|
227
|
+
constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
|
|
214
228
|
}
|
|
215
229
|
|
|
216
230
|
export interface CreateBackendEnvironmentRequest {
|
|
@@ -256,10 +270,11 @@ export declare namespace CreateBackendEnvironmentResult {
|
|
|
256
270
|
const filterSensitiveLog: (obj: CreateBackendEnvironmentResult) => any;
|
|
257
271
|
}
|
|
258
272
|
|
|
259
|
-
export
|
|
260
|
-
name: "NotFoundException";
|
|
261
|
-
$fault: "client";
|
|
262
|
-
|
|
273
|
+
export declare class NotFoundException extends __BaseException {
|
|
274
|
+
readonly name: "NotFoundException";
|
|
275
|
+
readonly $fault: "client";
|
|
276
|
+
|
|
277
|
+
constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
|
|
263
278
|
}
|
|
264
279
|
|
|
265
280
|
export interface CreateBranchRequest {
|
|
@@ -1082,11 +1097,12 @@ export declare namespace ListTagsForResourceResponse {
|
|
|
1082
1097
|
const filterSensitiveLog: (obj: ListTagsForResourceResponse) => any;
|
|
1083
1098
|
}
|
|
1084
1099
|
|
|
1085
|
-
export
|
|
1086
|
-
name: "ResourceNotFoundException";
|
|
1087
|
-
$fault: "client";
|
|
1100
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
1101
|
+
readonly name: "ResourceNotFoundException";
|
|
1102
|
+
readonly $fault: "client";
|
|
1088
1103
|
code: string | undefined;
|
|
1089
|
-
|
|
1104
|
+
|
|
1105
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
1090
1106
|
}
|
|
1091
1107
|
|
|
1092
1108
|
export interface ListWebhooksRequest {
|
|
@@ -1345,7 +1361,7 @@ export interface UpdateDomainAssociationRequest {
|
|
|
1345
1361
|
|
|
1346
1362
|
enableAutoSubDomain?: boolean;
|
|
1347
1363
|
|
|
1348
|
-
subDomainSettings
|
|
1364
|
+
subDomainSettings?: SubDomainSetting[];
|
|
1349
1365
|
|
|
1350
1366
|
autoSubDomainCreationPatterns?: string[];
|
|
1351
1367
|
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: AmplifyClientConfig) => {
|
|
|
6
6
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
7
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
8
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
9
|
-
bodyLengthChecker: (
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
10
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: AmplifyClientConfig) => {
|
|
|
6
6
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
7
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
8
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
9
|
-
bodyLengthChecker: (
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
10
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: AmplifyClientConfig) => {
|
|
|
6
6
|
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
7
7
|
apiVersion: string;
|
|
8
8
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
9
|
-
bodyLengthChecker: (
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
10
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
11
11
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
12
12
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
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.
|
|
4
|
+
"version": "3.54.1",
|
|
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,34 +18,34 @@
|
|
|
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.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-retry": "3.
|
|
31
|
-
"@aws-sdk/middleware-serde": "3.
|
|
32
|
-
"@aws-sdk/middleware-signing": "3.
|
|
33
|
-
"@aws-sdk/middleware-stack": "3.
|
|
34
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
35
|
-
"@aws-sdk/node-config-provider": "3.
|
|
36
|
-
"@aws-sdk/node-http-handler": "3.
|
|
37
|
-
"@aws-sdk/protocol-http": "3.
|
|
38
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
-
"@aws-sdk/types": "3.
|
|
40
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.54.1",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.54.1",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.54.1",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.54.1",
|
|
25
|
+
"@aws-sdk/hash-node": "3.54.1",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.54.1",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.54.1",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.54.1",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.54.1",
|
|
30
|
+
"@aws-sdk/middleware-retry": "3.54.1",
|
|
31
|
+
"@aws-sdk/middleware-serde": "3.54.1",
|
|
32
|
+
"@aws-sdk/middleware-signing": "3.54.1",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.54.1",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.54.1",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.54.1",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.54.1",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.54.1",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.54.1",
|
|
39
|
+
"@aws-sdk/types": "3.54.1",
|
|
40
|
+
"@aws-sdk/url-parser": "3.54.1",
|
|
41
41
|
"@aws-sdk/util-base64-browser": "3.52.0",
|
|
42
42
|
"@aws-sdk/util-base64-node": "3.52.0",
|
|
43
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
44
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
45
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
46
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
43
|
+
"@aws-sdk/util-body-length-browser": "3.54.0",
|
|
44
|
+
"@aws-sdk/util-body-length-node": "3.54.0",
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.54.1",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.54.1",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.54.1",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.54.1",
|
|
49
49
|
"@aws-sdk/util-utf8-browser": "3.52.0",
|
|
50
50
|
"@aws-sdk/util-utf8-node": "3.52.0",
|
|
51
51
|
"tslib": "^2.3.0"
|