@aws-sdk/client-amplify 3.408.0 → 3.409.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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const p = "required", q = "fn", r = "argv", s = "ref";
5
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = { [p]: false, "type": "String" }, f = { [p]: true, "default": false, "type": "Boolean" }, g = { [s]: "Endpoint" }, h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, j = {}, k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] }, l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] }, m = [g], n = [h], o = [i];
6
- const _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://amplify-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [k], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://amplify-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://amplify.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://amplify.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] };
4
+ const q = "required", r = "fn", s = "argv", t = "ref";
5
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://amplify-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://amplify-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://amplify.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://amplify.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
7
7
  exports.ruleSet = _data;
@@ -1,4 +1,4 @@
1
- const p = "required", q = "fn", r = "argv", s = "ref";
2
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = { [p]: false, "type": "String" }, f = { [p]: true, "default": false, "type": "Boolean" }, g = { [s]: "Endpoint" }, h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, j = {}, k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] }, l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] }, m = [g], n = [h], o = [i];
3
- const _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://amplify-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [k], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://amplify-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://amplify.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://amplify.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] };
1
+ const q = "required", r = "fn", s = "argv", t = "ref";
2
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://amplify-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://amplify-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://amplify.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://amplify.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
4
4
  export const ruleSet = _data;
@@ -67,7 +67,7 @@ export interface AutoBranchCreationConfig {
67
67
  /**
68
68
  * @public
69
69
  * <p>Enables performance mode for the branch.</p>
70
- * <p>Performance mode optimizes for faster hosting performance by keeping content cached at
70
+ * <p>Performance mode optimizes for faster hosting performance by keeping content cached at
71
71
  * the edge for a longer interval. When performance mode is enabled, hosting configuration
72
72
  * or code changes can take up to 10 minutes to roll out. </p>
73
73
  */
@@ -106,29 +106,28 @@ export interface CustomRule {
106
106
  /**
107
107
  * @public
108
108
  * <p> The status code for a URL rewrite or redirect rule. </p>
109
- *
110
- * <dl>
109
+ * <dl>
111
110
  * <dt>200</dt>
112
111
  * <dd>
113
- * <p>Represents a 200 rewrite rule.</p>
114
- * </dd>
112
+ * <p>Represents a 200 rewrite rule.</p>
113
+ * </dd>
115
114
  * <dt>301</dt>
116
115
  * <dd>
117
- * <p>Represents a 301 (moved pemanently) redirect rule. This and all future
116
+ * <p>Represents a 301 (moved pemanently) redirect rule. This and all future
118
117
  * requests should be directed to the target URL. </p>
119
- * </dd>
118
+ * </dd>
120
119
  * <dt>302</dt>
121
120
  * <dd>
122
- * <p>Represents a 302 temporary redirect rule.</p>
123
- * </dd>
121
+ * <p>Represents a 302 temporary redirect rule.</p>
122
+ * </dd>
124
123
  * <dt>404</dt>
125
124
  * <dd>
126
- * <p>Represents a 404 redirect rule.</p>
127
- * </dd>
125
+ * <p>Represents a 404 redirect rule.</p>
126
+ * </dd>
128
127
  * <dt>404-200</dt>
129
128
  * <dd>
130
- * <p>Represents a 404 rewrite rule.</p>
131
- * </dd>
129
+ * <p>Represents a 404 rewrite rule.</p>
130
+ * </dd>
132
131
  * </dl>
133
132
  */
134
133
  status?: string;
@@ -189,12 +188,12 @@ export interface CreateAppRequest {
189
188
  * <p>The OAuth token for a third-party source control system for an Amplify app. The OAuth
190
189
  * token is used to create a webhook and a read-only deploy key using SSH cloning. The
191
190
  * OAuth token is not stored.</p>
192
- * <p>Use <code>oauthToken</code> for repository providers other than GitHub, such as
191
+ * <p>Use <code>oauthToken</code> for repository providers other than GitHub, such as
193
192
  * Bitbucket or CodeCommit. To authorize access to GitHub as your repository provider, use
194
193
  * <code>accessToken</code>.</p>
195
- * <p>You must specify either <code>oauthToken</code> or <code>accessToken</code> when you
194
+ * <p>You must specify either <code>oauthToken</code> or <code>accessToken</code> when you
196
195
  * create a new app.</p>
197
- * <p>Existing Amplify apps deployed from a GitHub repository using OAuth continue to work
196
+ * <p>Existing Amplify apps deployed from a GitHub repository using OAuth continue to work
198
197
  * with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub
199
198
  * App. For more information, see <a href="https://docs.aws.amazon.com/amplify/latest/UserGuide/setting-up-GitHub-access.html#migrating-to-github-app-auth">Migrating an existing OAuth app to the Amplify GitHub App</a> in the
200
199
  * <i>Amplify User Guide</i> .</p>
@@ -205,11 +204,11 @@ export interface CreateAppRequest {
205
204
  * <p>The personal access token for a GitHub repository for an Amplify app. The personal
206
205
  * access token is used to authorize access to a GitHub repository using the Amplify GitHub
207
206
  * App. The token is not stored.</p>
208
- * <p>Use <code>accessToken</code> for GitHub repositories only. To authorize access to a
207
+ * <p>Use <code>accessToken</code> for GitHub repositories only. To authorize access to a
209
208
  * repository provider such as Bitbucket or CodeCommit, use <code>oauthToken</code>.</p>
210
- * <p>You must specify either <code>accessToken</code> or <code>oauthToken</code> when you
209
+ * <p>You must specify either <code>accessToken</code> or <code>oauthToken</code> when you
211
210
  * create a new app.</p>
212
- * <p>Existing Amplify apps deployed from a GitHub repository using OAuth continue to work
211
+ * <p>Existing Amplify apps deployed from a GitHub repository using OAuth continue to work
213
212
  * with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub
214
213
  * App. For more information, see <a href="https://docs.aws.amazon.com/amplify/latest/UserGuide/setting-up-GitHub-access.html#migrating-to-github-app-auth">Migrating an existing OAuth app to the Amplify GitHub App</a> in the
215
214
  * <i>Amplify User Guide</i> .</p>
@@ -452,8 +451,8 @@ export interface App {
452
451
  * @public
453
452
  * <note>
454
453
  * <p>This is for internal use.</p>
455
- * </note>
456
- * <p>The Amplify service uses this parameter to specify the authentication protocol to use to access
454
+ * </note>
455
+ * <p>The Amplify service uses this parameter to specify the authentication protocol to use to access
457
456
  * the Git repository for an Amplify app. Amplify specifies <code>TOKEN</code> for a GitHub
458
457
  * repository, <code>SIGV4</code> for an Amazon Web Services CodeCommit repository, and
459
458
  * <code>SSH</code> for GitLab and Bitbucket repositories.</p>
@@ -667,7 +666,7 @@ export interface CreateBranchRequest {
667
666
  /**
668
667
  * @public
669
668
  * <p>Enables performance mode for the branch.</p>
670
- * <p>Performance mode optimizes for faster hosting performance by keeping content cached at
669
+ * <p>Performance mode optimizes for faster hosting performance by keeping content cached at
671
670
  * the edge for a longer interval. When performance mode is enabled, hosting configuration
672
671
  * or code changes can take up to 10 minutes to roll out. </p>
673
672
  */
@@ -797,7 +796,7 @@ export interface Branch {
797
796
  /**
798
797
  * @public
799
798
  * <p>Enables performance mode for the branch.</p>
800
- * <p>Performance mode optimizes for faster hosting performance by keeping content cached at
799
+ * <p>Performance mode optimizes for faster hosting performance by keeping content cached at
801
800
  * the edge for a longer interval. When performance mode is enabled, hosting configuration
802
801
  * or code changes can take up to 10 minutes to roll out. </p>
803
802
  */
@@ -2314,13 +2313,13 @@ export interface UpdateAppRequest {
2314
2313
  * <p>The OAuth token for a third-party source control system for an Amplify app. The OAuth
2315
2314
  * token is used to create a webhook and a read-only deploy key using SSH cloning. The
2316
2315
  * OAuth token is not stored.</p>
2317
- * <p>Use <code>oauthToken</code> for repository providers other than GitHub, such as
2316
+ * <p>Use <code>oauthToken</code> for repository providers other than GitHub, such as
2318
2317
  * Bitbucket or CodeCommit.</p>
2319
- * <p>To authorize access to GitHub as your repository provider, use
2318
+ * <p>To authorize access to GitHub as your repository provider, use
2320
2319
  * <code>accessToken</code>.</p>
2321
- * <p>You must specify either <code>oauthToken</code> or <code>accessToken</code> when you
2320
+ * <p>You must specify either <code>oauthToken</code> or <code>accessToken</code> when you
2322
2321
  * update an app.</p>
2323
- * <p>Existing Amplify apps deployed from a GitHub repository using OAuth continue to work
2322
+ * <p>Existing Amplify apps deployed from a GitHub repository using OAuth continue to work
2324
2323
  * with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub
2325
2324
  * App. For more information, see <a href="https://docs.aws.amazon.com/amplify/latest/UserGuide/setting-up-GitHub-access.html#migrating-to-github-app-auth">Migrating an existing OAuth app to the Amplify GitHub App</a> in the
2326
2325
  * <i>Amplify User Guide</i> .</p>
@@ -2331,11 +2330,11 @@ export interface UpdateAppRequest {
2331
2330
  * <p>The personal access token for a GitHub repository for an Amplify app. The personal
2332
2331
  * access token is used to authorize access to a GitHub repository using the Amplify GitHub
2333
2332
  * App. The token is not stored.</p>
2334
- * <p>Use <code>accessToken</code> for GitHub repositories only. To authorize access to a
2333
+ * <p>Use <code>accessToken</code> for GitHub repositories only. To authorize access to a
2335
2334
  * repository provider such as Bitbucket or CodeCommit, use <code>oauthToken</code>.</p>
2336
- * <p>You must specify either <code>accessToken</code> or <code>oauthToken</code> when you
2335
+ * <p>You must specify either <code>accessToken</code> or <code>oauthToken</code> when you
2337
2336
  * update an app.</p>
2338
- * <p>Existing Amplify apps deployed from a GitHub repository using OAuth continue to work
2337
+ * <p>Existing Amplify apps deployed from a GitHub repository using OAuth continue to work
2339
2338
  * with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub
2340
2339
  * App. For more information, see <a href="https://docs.aws.amazon.com/amplify/latest/UserGuide/setting-up-GitHub-access.html#migrating-to-github-app-auth">Migrating an existing OAuth app to the Amplify GitHub App</a> in the
2341
2340
  * <i>Amplify User Guide</i> .</p>
@@ -2413,7 +2412,7 @@ export interface UpdateBranchRequest {
2413
2412
  /**
2414
2413
  * @public
2415
2414
  * <p>Enables performance mode for the branch.</p>
2416
- * <p>Performance mode optimizes for faster hosting performance by keeping content cached at
2415
+ * <p>Performance mode optimizes for faster hosting performance by keeping content cached at
2417
2416
  * the edge for a longer interval. When performance mode is enabled, hosting configuration
2418
2417
  * or code changes can take up to 10 minutes to roll out. </p>
2419
2418
  */
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.408.0",
4
+ "version": "3.409.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",
@@ -21,8 +21,8 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.408.0",
25
- "@aws-sdk/credential-provider-node": "3.408.0",
24
+ "@aws-sdk/client-sts": "3.409.0",
25
+ "@aws-sdk/credential-provider-node": "3.409.0",
26
26
  "@aws-sdk/middleware-host-header": "3.408.0",
27
27
  "@aws-sdk/middleware-logger": "3.408.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.408.0",