@aws-sdk/client-amplify 3.53.0 → 3.54.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.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients as of 2022/03/10 ([#3411](https://github.com/aws/aws-sdk-js-v3/issues/3411)) ([8fa517a](https://github.com/aws/aws-sdk-js-v3/commit/8fa517a2c56d2f98a2e4a9c4ea6fd99b6ce61a71))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
7
18
 
8
19
 
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetAppResult = exports.GetAppRequest = exports.GenerateAccessLogsResult = exports.GenerateAccessLogsRequest = exports.DeleteWebhookResult = exports.DeleteWebhookRequest = exports.DeleteJobResult = exports.JobSummary = exports.JobStatus = exports.JobType = exports.DeleteJobRequest = exports.DeleteDomainAssociationResult = exports.DeleteDomainAssociationRequest = exports.DeleteBranchResult = exports.DeleteBranchRequest = exports.DeleteBackendEnvironmentResult = exports.DeleteBackendEnvironmentRequest = exports.DeleteAppResult = exports.DeleteAppRequest = exports.CreateWebhookResult = exports.Webhook = exports.CreateWebhookRequest = exports.CreateDomainAssociationResult = exports.DomainAssociation = exports.SubDomain = exports.DomainStatus = exports.CreateDomainAssociationRequest = exports.SubDomainSetting = exports.CreateDeploymentResult = exports.CreateDeploymentRequest = exports.CreateBranchResult = exports.Branch = exports.CreateBranchRequest = exports.NotFoundException = exports.CreateBackendEnvironmentResult = exports.BackendEnvironment = exports.CreateBackendEnvironmentRequest = exports.UnauthorizedException = exports.LimitExceededException = exports.InternalFailureException = exports.DependentServiceFailureException = exports.CreateAppResult = exports.App = exports.ProductionBranch = exports.CreateAppRequest = exports.Platform = exports.CustomRule = exports.AutoBranchCreationConfig = exports.Stage = exports.BadRequestException = void 0;
4
- exports.UpdateWebhookResult = exports.UpdateWebhookRequest = exports.UpdateDomainAssociationResult = exports.UpdateDomainAssociationRequest = exports.UpdateBranchResult = exports.UpdateBranchRequest = exports.UpdateAppResult = exports.UpdateAppRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StopJobResult = exports.StopJobRequest = exports.StartJobResult = exports.StartJobRequest = exports.StartDeploymentResult = exports.StartDeploymentRequest = exports.ListWebhooksResult = exports.ListWebhooksRequest = exports.ResourceNotFoundException = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListJobsResult = exports.ListJobsRequest = exports.ListDomainAssociationsResult = exports.ListDomainAssociationsRequest = exports.ListBranchesResult = exports.ListBranchesRequest = exports.ListBackendEnvironmentsResult = exports.ListBackendEnvironmentsRequest = exports.ListArtifactsResult = exports.Artifact = exports.ListArtifactsRequest = exports.ListAppsResult = exports.ListAppsRequest = exports.GetWebhookResult = exports.GetWebhookRequest = exports.GetJobResult = exports.Job = exports.Step = exports.GetJobRequest = exports.GetDomainAssociationResult = exports.GetDomainAssociationRequest = exports.GetBranchResult = exports.GetBranchRequest = exports.GetBackendEnvironmentResult = exports.GetBackendEnvironmentRequest = exports.GetArtifactUrlResult = exports.GetArtifactUrlRequest = void 0;
3
+ exports.GetAppRequest = exports.GenerateAccessLogsResult = exports.GenerateAccessLogsRequest = exports.DeleteWebhookResult = exports.DeleteWebhookRequest = exports.DeleteJobResult = exports.JobSummary = exports.JobStatus = exports.JobType = exports.DeleteJobRequest = exports.DeleteDomainAssociationResult = exports.DeleteDomainAssociationRequest = exports.DeleteBranchResult = exports.DeleteBranchRequest = exports.DeleteBackendEnvironmentResult = exports.DeleteBackendEnvironmentRequest = exports.DeleteAppResult = exports.DeleteAppRequest = exports.CreateWebhookResult = exports.Webhook = exports.CreateWebhookRequest = exports.CreateDomainAssociationResult = exports.DomainAssociation = exports.SubDomain = exports.DomainStatus = exports.CreateDomainAssociationRequest = exports.SubDomainSetting = exports.CreateDeploymentResult = exports.CreateDeploymentRequest = exports.CreateBranchResult = exports.Branch = exports.CreateBranchRequest = exports.NotFoundException = exports.CreateBackendEnvironmentResult = exports.BackendEnvironment = exports.CreateBackendEnvironmentRequest = exports.UnauthorizedException = exports.LimitExceededException = exports.InternalFailureException = exports.DependentServiceFailureException = exports.CreateAppResult = exports.App = exports.RepositoryCloneMethod = exports.ProductionBranch = exports.CreateAppRequest = exports.Platform = exports.CustomRule = exports.AutoBranchCreationConfig = exports.Stage = exports.BadRequestException = void 0;
4
+ exports.UpdateWebhookRequest = exports.UpdateDomainAssociationResult = exports.UpdateDomainAssociationRequest = exports.UpdateBranchResult = exports.UpdateBranchRequest = exports.UpdateAppResult = exports.UpdateAppRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StopJobResult = exports.StopJobRequest = exports.StartJobResult = exports.StartJobRequest = exports.StartDeploymentResult = exports.StartDeploymentRequest = exports.ListWebhooksResult = exports.ListWebhooksRequest = exports.ResourceNotFoundException = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListJobsResult = exports.ListJobsRequest = exports.ListDomainAssociationsResult = exports.ListDomainAssociationsRequest = exports.ListBranchesResult = exports.ListBranchesRequest = exports.ListBackendEnvironmentsResult = exports.ListBackendEnvironmentsRequest = exports.ListArtifactsResult = exports.Artifact = exports.ListArtifactsRequest = exports.ListAppsResult = exports.ListAppsRequest = exports.GetWebhookResult = exports.GetWebhookRequest = exports.GetJobResult = exports.Job = exports.Step = exports.GetJobRequest = exports.GetDomainAssociationResult = exports.GetDomainAssociationRequest = exports.GetBranchResult = exports.GetBranchRequest = exports.GetBackendEnvironmentResult = exports.GetBackendEnvironmentRequest = exports.GetArtifactUrlResult = exports.GetArtifactUrlRequest = exports.GetAppResult = void 0;
5
+ exports.UpdateWebhookResult = void 0;
5
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
7
  const AmplifyServiceException_1 = require("./AmplifyServiceException");
7
8
  class BadRequestException extends AmplifyServiceException_1.AmplifyServiceException {
@@ -30,6 +31,7 @@ var AutoBranchCreationConfig;
30
31
  AutoBranchCreationConfig.filterSensitiveLog = (obj) => ({
31
32
  ...obj,
32
33
  ...(obj.basicAuthCredentials && { basicAuthCredentials: smithy_client_1.SENSITIVE_STRING }),
34
+ ...(obj.buildSpec && { buildSpec: smithy_client_1.SENSITIVE_STRING }),
33
35
  });
34
36
  })(AutoBranchCreationConfig = exports.AutoBranchCreationConfig || (exports.AutoBranchCreationConfig = {}));
35
37
  var CustomRule;
@@ -41,6 +43,7 @@ var CustomRule;
41
43
  var Platform;
42
44
  (function (Platform) {
43
45
  Platform["WEB"] = "WEB";
46
+ Platform["WEB_DYNAMIC"] = "WEB_DYNAMIC";
44
47
  })(Platform = exports.Platform || (exports.Platform = {}));
45
48
  var CreateAppRequest;
46
49
  (function (CreateAppRequest) {
@@ -49,6 +52,7 @@ var CreateAppRequest;
49
52
  ...(obj.oauthToken && { oauthToken: smithy_client_1.SENSITIVE_STRING }),
50
53
  ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }),
51
54
  ...(obj.basicAuthCredentials && { basicAuthCredentials: smithy_client_1.SENSITIVE_STRING }),
55
+ ...(obj.buildSpec && { buildSpec: smithy_client_1.SENSITIVE_STRING }),
52
56
  ...(obj.autoBranchCreationConfig && {
53
57
  autoBranchCreationConfig: AutoBranchCreationConfig.filterSensitiveLog(obj.autoBranchCreationConfig),
54
58
  }),
@@ -60,11 +64,18 @@ var ProductionBranch;
60
64
  ...obj,
61
65
  });
62
66
  })(ProductionBranch = exports.ProductionBranch || (exports.ProductionBranch = {}));
67
+ var RepositoryCloneMethod;
68
+ (function (RepositoryCloneMethod) {
69
+ RepositoryCloneMethod["SIGV4"] = "SIGV4";
70
+ RepositoryCloneMethod["SSH"] = "SSH";
71
+ RepositoryCloneMethod["TOKEN"] = "TOKEN";
72
+ })(RepositoryCloneMethod = exports.RepositoryCloneMethod || (exports.RepositoryCloneMethod = {}));
63
73
  var App;
64
74
  (function (App) {
65
75
  App.filterSensitiveLog = (obj) => ({
66
76
  ...obj,
67
77
  ...(obj.basicAuthCredentials && { basicAuthCredentials: smithy_client_1.SENSITIVE_STRING }),
78
+ ...(obj.buildSpec && { buildSpec: smithy_client_1.SENSITIVE_STRING }),
68
79
  ...(obj.autoBranchCreationConfig && {
69
80
  autoBranchCreationConfig: AutoBranchCreationConfig.filterSensitiveLog(obj.autoBranchCreationConfig),
70
81
  }),
@@ -165,6 +176,7 @@ var CreateBranchRequest;
165
176
  CreateBranchRequest.filterSensitiveLog = (obj) => ({
166
177
  ...obj,
167
178
  ...(obj.basicAuthCredentials && { basicAuthCredentials: smithy_client_1.SENSITIVE_STRING }),
179
+ ...(obj.buildSpec && { buildSpec: smithy_client_1.SENSITIVE_STRING }),
168
180
  });
169
181
  })(CreateBranchRequest = exports.CreateBranchRequest || (exports.CreateBranchRequest = {}));
170
182
  var Branch;
@@ -172,6 +184,7 @@ var Branch;
172
184
  Branch.filterSensitiveLog = (obj) => ({
173
185
  ...obj,
174
186
  ...(obj.basicAuthCredentials && { basicAuthCredentials: smithy_client_1.SENSITIVE_STRING }),
187
+ ...(obj.buildSpec && { buildSpec: smithy_client_1.SENSITIVE_STRING }),
175
188
  });
176
189
  })(Branch = exports.Branch || (exports.Branch = {}));
177
190
  var CreateBranchResult;
@@ -642,6 +655,7 @@ var UpdateAppRequest;
642
655
  UpdateAppRequest.filterSensitiveLog = (obj) => ({
643
656
  ...obj,
644
657
  ...(obj.basicAuthCredentials && { basicAuthCredentials: smithy_client_1.SENSITIVE_STRING }),
658
+ ...(obj.buildSpec && { buildSpec: smithy_client_1.SENSITIVE_STRING }),
645
659
  ...(obj.autoBranchCreationConfig && {
646
660
  autoBranchCreationConfig: AutoBranchCreationConfig.filterSensitiveLog(obj.autoBranchCreationConfig),
647
661
  }),
@@ -661,6 +675,7 @@ var UpdateBranchRequest;
661
675
  UpdateBranchRequest.filterSensitiveLog = (obj) => ({
662
676
  ...obj,
663
677
  ...(obj.basicAuthCredentials && { basicAuthCredentials: smithy_client_1.SENSITIVE_STRING }),
678
+ ...(obj.buildSpec && { buildSpec: smithy_client_1.SENSITIVE_STRING }),
664
679
  });
665
680
  })(UpdateBranchRequest = exports.UpdateBranchRequest || (exports.UpdateBranchRequest = {}));
666
681
  var UpdateBranchResult;
@@ -3440,6 +3440,7 @@ const deserializeAws_restJson1App = (output, context) => {
3440
3440
  ? deserializeAws_restJson1ProductionBranch(output.productionBranch, context)
3441
3441
  : undefined,
3442
3442
  repository: smithy_client_1.expectString(output.repository),
3443
+ repositoryCloneMethod: smithy_client_1.expectString(output.repositoryCloneMethod),
3443
3444
  tags: output.tags !== undefined && output.tags !== null
3444
3445
  ? deserializeAws_restJson1TagMap(output.tags, context)
3445
3446
  : undefined,
@@ -23,7 +23,7 @@ export var Stage;
23
23
  })(Stage || (Stage = {}));
24
24
  export var AutoBranchCreationConfig;
25
25
  (function (AutoBranchCreationConfig) {
26
- AutoBranchCreationConfig.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.basicAuthCredentials && { basicAuthCredentials: SENSITIVE_STRING }))); };
26
+ AutoBranchCreationConfig.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.basicAuthCredentials && { basicAuthCredentials: SENSITIVE_STRING })), (obj.buildSpec && { buildSpec: SENSITIVE_STRING }))); };
27
27
  })(AutoBranchCreationConfig || (AutoBranchCreationConfig = {}));
28
28
  export var CustomRule;
29
29
  (function (CustomRule) {
@@ -32,10 +32,11 @@ export var CustomRule;
32
32
  export var Platform;
33
33
  (function (Platform) {
34
34
  Platform["WEB"] = "WEB";
35
+ Platform["WEB_DYNAMIC"] = "WEB_DYNAMIC";
35
36
  })(Platform || (Platform = {}));
36
37
  export var CreateAppRequest;
37
38
  (function (CreateAppRequest) {
38
- CreateAppRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign(__assign({}, obj), (obj.oauthToken && { oauthToken: SENSITIVE_STRING })), (obj.accessToken && { accessToken: SENSITIVE_STRING })), (obj.basicAuthCredentials && { basicAuthCredentials: SENSITIVE_STRING })), (obj.autoBranchCreationConfig && {
39
+ CreateAppRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign(__assign(__assign({}, obj), (obj.oauthToken && { oauthToken: SENSITIVE_STRING })), (obj.accessToken && { accessToken: SENSITIVE_STRING })), (obj.basicAuthCredentials && { basicAuthCredentials: SENSITIVE_STRING })), (obj.buildSpec && { buildSpec: SENSITIVE_STRING })), (obj.autoBranchCreationConfig && {
39
40
  autoBranchCreationConfig: AutoBranchCreationConfig.filterSensitiveLog(obj.autoBranchCreationConfig),
40
41
  }))); };
41
42
  })(CreateAppRequest || (CreateAppRequest = {}));
@@ -43,9 +44,15 @@ export var ProductionBranch;
43
44
  (function (ProductionBranch) {
44
45
  ProductionBranch.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
45
46
  })(ProductionBranch || (ProductionBranch = {}));
47
+ export var RepositoryCloneMethod;
48
+ (function (RepositoryCloneMethod) {
49
+ RepositoryCloneMethod["SIGV4"] = "SIGV4";
50
+ RepositoryCloneMethod["SSH"] = "SSH";
51
+ RepositoryCloneMethod["TOKEN"] = "TOKEN";
52
+ })(RepositoryCloneMethod || (RepositoryCloneMethod = {}));
46
53
  export var App;
47
54
  (function (App) {
48
- App.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.basicAuthCredentials && { basicAuthCredentials: SENSITIVE_STRING })), (obj.autoBranchCreationConfig && {
55
+ App.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign({}, obj), (obj.basicAuthCredentials && { basicAuthCredentials: SENSITIVE_STRING })), (obj.buildSpec && { buildSpec: SENSITIVE_STRING })), (obj.autoBranchCreationConfig && {
49
56
  autoBranchCreationConfig: AutoBranchCreationConfig.filterSensitiveLog(obj.autoBranchCreationConfig),
50
57
  }))); };
51
58
  })(App || (App = {}));
@@ -127,11 +134,11 @@ var NotFoundException = (function (_super) {
127
134
  export { NotFoundException };
128
135
  export var CreateBranchRequest;
129
136
  (function (CreateBranchRequest) {
130
- CreateBranchRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.basicAuthCredentials && { basicAuthCredentials: SENSITIVE_STRING }))); };
137
+ CreateBranchRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.basicAuthCredentials && { basicAuthCredentials: SENSITIVE_STRING })), (obj.buildSpec && { buildSpec: SENSITIVE_STRING }))); };
131
138
  })(CreateBranchRequest || (CreateBranchRequest = {}));
132
139
  export var Branch;
133
140
  (function (Branch) {
134
- Branch.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.basicAuthCredentials && { basicAuthCredentials: SENSITIVE_STRING }))); };
141
+ Branch.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.basicAuthCredentials && { basicAuthCredentials: SENSITIVE_STRING })), (obj.buildSpec && { buildSpec: SENSITIVE_STRING }))); };
135
142
  })(Branch || (Branch = {}));
136
143
  export var CreateBranchResult;
137
144
  (function (CreateBranchResult) {
@@ -452,7 +459,7 @@ export var UntagResourceResponse;
452
459
  })(UntagResourceResponse || (UntagResourceResponse = {}));
453
460
  export var UpdateAppRequest;
454
461
  (function (UpdateAppRequest) {
455
- UpdateAppRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign(__assign({}, obj), (obj.basicAuthCredentials && { basicAuthCredentials: SENSITIVE_STRING })), (obj.autoBranchCreationConfig && {
462
+ UpdateAppRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign(__assign(__assign({}, obj), (obj.basicAuthCredentials && { basicAuthCredentials: SENSITIVE_STRING })), (obj.buildSpec && { buildSpec: SENSITIVE_STRING })), (obj.autoBranchCreationConfig && {
456
463
  autoBranchCreationConfig: AutoBranchCreationConfig.filterSensitiveLog(obj.autoBranchCreationConfig),
457
464
  })), (obj.oauthToken && { oauthToken: SENSITIVE_STRING })), (obj.accessToken && { accessToken: SENSITIVE_STRING }))); };
458
465
  })(UpdateAppRequest || (UpdateAppRequest = {}));
@@ -462,7 +469,7 @@ export var UpdateAppResult;
462
469
  })(UpdateAppResult || (UpdateAppResult = {}));
463
470
  export var UpdateBranchRequest;
464
471
  (function (UpdateBranchRequest) {
465
- UpdateBranchRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.basicAuthCredentials && { basicAuthCredentials: SENSITIVE_STRING }))); };
472
+ UpdateBranchRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.basicAuthCredentials && { basicAuthCredentials: SENSITIVE_STRING })), (obj.buildSpec && { buildSpec: SENSITIVE_STRING }))); };
466
473
  })(UpdateBranchRequest || (UpdateBranchRequest = {}));
467
474
  export var UpdateBranchResult;
468
475
  (function (UpdateBranchResult) {
@@ -4290,6 +4290,7 @@ var deserializeAws_restJson1App = function (output, context) {
4290
4290
  ? deserializeAws_restJson1ProductionBranch(output.productionBranch, context)
4291
4291
  : undefined,
4292
4292
  repository: __expectString(output.repository),
4293
+ repositoryCloneMethod: __expectString(output.repositoryCloneMethod),
4293
4294
  tags: output.tags !== undefined && output.tags !== null
4294
4295
  ? deserializeAws_restJson1TagMap(output.tags, context)
4295
4296
  : undefined,
@@ -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?: (body: any) => number | undefined;
68
+ bodyLengthChecker?: __BodyLengthCalculator;
69
69
  /**
70
70
  * A function that converts a stream into an array of bytes.
71
71
  * @internal
@@ -41,7 +41,9 @@ export interface AutoBranchCreationConfig {
41
41
  [key: string]: string;
42
42
  };
43
43
  /**
44
- * <p> The basic authorization credentials for the autocreated branch. You must base64-encode the authorization credentials and provide them in the format <code>user:password</code>.</p>
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>
45
47
  */
46
48
  basicAuthCredentials?: string;
47
49
  /**
@@ -50,7 +52,9 @@ export interface AutoBranchCreationConfig {
50
52
  enableBasicAuth?: boolean;
51
53
  /**
52
54
  * <p>Enables performance mode for the branch.</p>
53
- * <p>Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to roll out. </p>
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>
54
58
  */
55
59
  enablePerformanceMode?: boolean;
56
60
  /**
@@ -94,7 +98,8 @@ export interface CustomRule {
94
98
  * </dd>
95
99
  * <dt>301</dt>
96
100
  * <dd>
97
- * <p>Represents a 301 (moved pemanently) redirect rule. This and all future requests should be directed to the target URL. </p>
101
+ * <p>Represents a 301 (moved pemanently) redirect rule. This and all future
102
+ * requests should be directed to the target URL. </p>
98
103
  * </dd>
99
104
  * <dt>302</dt>
100
105
  * <dd>
@@ -123,7 +128,8 @@ export declare namespace CustomRule {
123
128
  const filterSensitiveLog: (obj: CustomRule) => any;
124
129
  }
125
130
  export declare enum Platform {
126
- WEB = "WEB"
131
+ WEB = "WEB",
132
+ WEB_DYNAMIC = "WEB_DYNAMIC"
127
133
  }
128
134
  /**
129
135
  * <p> The request structure used to create apps in Amplify. </p>
@@ -182,7 +188,9 @@ export interface CreateAppRequest {
182
188
  */
183
189
  enableBasicAuth?: boolean;
184
190
  /**
185
- * <p> The credentials for basic authorization for an Amplify app. You must base64-encode the authorization credentials and provide them in the format <code>user:password</code>.</p>
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>
186
194
  */
187
195
  basicAuthCredentials?: string;
188
196
  /**
@@ -249,6 +257,11 @@ export declare namespace ProductionBranch {
249
257
  */
250
258
  const filterSensitiveLog: (obj: ProductionBranch) => any;
251
259
  }
260
+ export declare enum RepositoryCloneMethod {
261
+ SIGV4 = "SIGV4",
262
+ SSH = "SSH",
263
+ TOKEN = "TOKEN"
264
+ }
252
265
  /**
253
266
  * <p> Represents the different branches of a repository for building, deploying, and
254
267
  * hosting an Amplify app. </p>
@@ -277,7 +290,7 @@ export interface App {
277
290
  */
278
291
  description: string | undefined;
279
292
  /**
280
- * <p> The repository for the Amplify app. </p>
293
+ * <p> The Git repository for the Amplify app. </p>
281
294
  */
282
295
  repository: string | undefined;
283
296
  /**
@@ -321,7 +334,9 @@ export interface App {
321
334
  */
322
335
  enableBasicAuth: boolean | undefined;
323
336
  /**
324
- * <p> The basic authorization credentials for branches for the Amplify app. You must base64-encode the authorization credentials and provide them in the format <code>user:password</code>.</p>
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>
325
340
  */
326
341
  basicAuthCredentials?: string;
327
342
  /**
@@ -353,6 +368,13 @@ export interface App {
353
368
  * <p> Describes the automated branch creation configuration for the Amplify app. </p>
354
369
  */
355
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;
356
378
  }
357
379
  export declare namespace App {
358
380
  /**
@@ -547,7 +569,9 @@ export interface CreateBranchRequest {
547
569
  [key: string]: string;
548
570
  };
549
571
  /**
550
- * <p> The basic authorization credentials for the branch. You must base64-encode the authorization credentials and provide them in the format <code>user:password</code>.</p>
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>
551
575
  */
552
576
  basicAuthCredentials?: string;
553
577
  /**
@@ -556,7 +580,9 @@ export interface CreateBranchRequest {
556
580
  enableBasicAuth?: boolean;
557
581
  /**
558
582
  * <p>Enables performance mode for the branch.</p>
559
- * <p>Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to roll out. </p>
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>
560
586
  */
561
587
  enablePerformanceMode?: boolean;
562
588
  /**
@@ -671,7 +697,9 @@ export interface Branch {
671
697
  enableBasicAuth: boolean | undefined;
672
698
  /**
673
699
  * <p>Enables performance mode for the branch.</p>
674
- * <p>Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to roll out. </p>
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>
675
703
  */
676
704
  enablePerformanceMode?: boolean;
677
705
  /**
@@ -679,7 +707,9 @@ export interface Branch {
679
707
  */
680
708
  thumbnailUrl?: string;
681
709
  /**
682
- * <p> The basic authorization credentials for a branch of an Amplify app. You must base64-encode the authorization credentials and provide them in the format <code>user:password</code>.</p>
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>
683
713
  */
684
714
  basicAuthCredentials?: string;
685
715
  /**
@@ -2278,7 +2308,9 @@ export interface UpdateAppRequest {
2278
2308
  */
2279
2309
  enableBasicAuth?: boolean;
2280
2310
  /**
2281
- * <p> The basic authorization credentials for an Amplify app. You must base64-encode the authorization credentials and provide them in the format <code>user:password</code>.</p>
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>
2282
2314
  */
2283
2315
  basicAuthCredentials?: string;
2284
2316
  /**
@@ -2382,7 +2414,9 @@ export interface UpdateBranchRequest {
2382
2414
  [key: string]: string;
2383
2415
  };
2384
2416
  /**
2385
- * <p> The basic authorization credentials for the branch. You must base64-encode the authorization credentials and provide them in the format <code>user:password</code>.</p>
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>
2386
2420
  */
2387
2421
  basicAuthCredentials?: string;
2388
2422
  /**
@@ -2391,7 +2425,9 @@ export interface UpdateBranchRequest {
2391
2425
  enableBasicAuth?: boolean;
2392
2426
  /**
2393
2427
  * <p>Enables performance mode for the branch.</p>
2394
- * <p>Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to roll out. </p>
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>
2395
2431
  */
2396
2432
  enablePerformanceMode?: boolean;
2397
2433
  /**
@@ -2460,7 +2496,7 @@ export interface UpdateDomainAssociationRequest {
2460
2496
  /**
2461
2497
  * <p> Describes the settings for the subdomain. </p>
2462
2498
  */
2463
- subDomainSettings: SubDomainSetting[] | undefined;
2499
+ subDomainSettings?: SubDomainSetting[];
2464
2500
  /**
2465
2501
  * <p> Sets the branch patterns for automatic subdomain creation. </p>
2466
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: (body: any) => number | undefined;
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: (body: any) => number | undefined;
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: (body: any) => number | undefined;
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?: (body: any) => number | undefined;
56
+ bodyLengthChecker?: __BodyLengthCalculator;
57
57
 
58
58
  streamCollector?: __StreamCollector;
59
59
 
@@ -59,7 +59,8 @@ export declare namespace CustomRule {
59
59
  const filterSensitiveLog: (obj: CustomRule) => any;
60
60
  }
61
61
  export declare enum Platform {
62
- WEB = "WEB"
62
+ WEB = "WEB",
63
+ WEB_DYNAMIC = "WEB_DYNAMIC"
63
64
  }
64
65
 
65
66
  export interface CreateAppRequest {
@@ -125,6 +126,11 @@ export declare namespace ProductionBranch {
125
126
 
126
127
  const filterSensitiveLog: (obj: ProductionBranch) => any;
127
128
  }
129
+ export declare enum RepositoryCloneMethod {
130
+ SIGV4 = "SIGV4",
131
+ SSH = "SSH",
132
+ TOKEN = "TOKEN"
133
+ }
128
134
 
129
135
  export interface App {
130
136
 
@@ -177,6 +183,8 @@ export interface App {
177
183
  autoBranchCreationPatterns?: string[];
178
184
 
179
185
  autoBranchCreationConfig?: AutoBranchCreationConfig;
186
+
187
+ repositoryCloneMethod?: RepositoryCloneMethod | string;
180
188
  }
181
189
  export declare namespace App {
182
190
 
@@ -1353,7 +1361,7 @@ export interface UpdateDomainAssociationRequest {
1353
1361
 
1354
1362
  enableAutoSubDomain?: boolean;
1355
1363
 
1356
- subDomainSettings: SubDomainSetting[] | undefined;
1364
+ subDomainSettings?: SubDomainSetting[];
1357
1365
 
1358
1366
  autoSubDomainCreationPatterns?: string[];
1359
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: (body: any) => number | undefined;
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: (body: any) => number | undefined;
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: (body: any) => number | undefined;
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.53.0",
4
+ "version": "3.54.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,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.53.0",
22
- "@aws-sdk/config-resolver": "3.53.0",
23
- "@aws-sdk/credential-provider-node": "3.53.0",
24
- "@aws-sdk/fetch-http-handler": "3.53.0",
25
- "@aws-sdk/hash-node": "3.53.0",
26
- "@aws-sdk/invalid-dependency": "3.53.0",
27
- "@aws-sdk/middleware-content-length": "3.53.0",
28
- "@aws-sdk/middleware-host-header": "3.53.0",
29
- "@aws-sdk/middleware-logger": "3.53.0",
30
- "@aws-sdk/middleware-retry": "3.53.0",
31
- "@aws-sdk/middleware-serde": "3.53.0",
32
- "@aws-sdk/middleware-signing": "3.53.0",
33
- "@aws-sdk/middleware-stack": "3.53.0",
34
- "@aws-sdk/middleware-user-agent": "3.53.0",
35
- "@aws-sdk/node-config-provider": "3.53.0",
36
- "@aws-sdk/node-http-handler": "3.53.0",
37
- "@aws-sdk/protocol-http": "3.53.0",
38
- "@aws-sdk/smithy-client": "3.53.0",
39
- "@aws-sdk/types": "3.53.0",
40
- "@aws-sdk/url-parser": "3.53.0",
21
+ "@aws-sdk/client-sts": "3.54.0",
22
+ "@aws-sdk/config-resolver": "3.54.0",
23
+ "@aws-sdk/credential-provider-node": "3.54.0",
24
+ "@aws-sdk/fetch-http-handler": "3.54.0",
25
+ "@aws-sdk/hash-node": "3.54.0",
26
+ "@aws-sdk/invalid-dependency": "3.54.0",
27
+ "@aws-sdk/middleware-content-length": "3.54.0",
28
+ "@aws-sdk/middleware-host-header": "3.54.0",
29
+ "@aws-sdk/middleware-logger": "3.54.0",
30
+ "@aws-sdk/middleware-retry": "3.54.0",
31
+ "@aws-sdk/middleware-serde": "3.54.0",
32
+ "@aws-sdk/middleware-signing": "3.54.0",
33
+ "@aws-sdk/middleware-stack": "3.54.0",
34
+ "@aws-sdk/middleware-user-agent": "3.54.0",
35
+ "@aws-sdk/node-config-provider": "3.54.0",
36
+ "@aws-sdk/node-http-handler": "3.54.0",
37
+ "@aws-sdk/protocol-http": "3.54.0",
38
+ "@aws-sdk/smithy-client": "3.54.0",
39
+ "@aws-sdk/types": "3.54.0",
40
+ "@aws-sdk/url-parser": "3.54.0",
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.52.0",
44
- "@aws-sdk/util-body-length-node": "3.52.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.53.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.53.0",
47
- "@aws-sdk/util-user-agent-browser": "3.53.0",
48
- "@aws-sdk/util-user-agent-node": "3.53.0",
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.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.54.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.54.0",
48
+ "@aws-sdk/util-user-agent-node": "3.54.0",
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"