@aws-sdk/client-amplifyuibuilder 3.379.1 → 3.382.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.
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
4
  const q = "required", r = "fn", s = "argv", t = "ref";
5
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 }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ 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: [{ type: b, rules: [{ endpoint: { url: "https://amplifyuibuilder-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: [{ type: b, rules: [{ endpoint: { url: "https://amplifyuibuilder-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: [{ type: b, rules: [{ endpoint: { url: "https://amplifyuibuilder.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://amplifyuibuilder.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
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://amplifyuibuilder-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://amplifyuibuilder-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://amplifyuibuilder.{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://amplifyuibuilder.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
7
7
  exports.ruleSet = _data;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RefreshTokenResponseFilterSensitiveLog = exports.RefreshTokenRequestFilterSensitiveLog = exports.RefreshTokenRequestBodyFilterSensitiveLog = exports.ExchangeCodeForTokenResponseFilterSensitiveLog = exports.ExchangeCodeForTokenRequestFilterSensitiveLog = exports.ExchangeCodeForTokenRequestBodyFilterSensitiveLog = exports.UnauthorizedException = exports.FormStyleConfig = exports.LabelDecorator = exports.FormActionType = exports.StorageAccessLevel = exports.FormDataSourceType = exports.FormButtonsPosition = exports.FieldPosition = exports.FixedPosition = exports.TokenProviders = exports.ServiceQuotaExceededException = exports.ResourceConflictException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InvalidParameterException = exports.InternalServerException = exports.CodegenJobStatus = exports.CodegenJobRenderConfig = exports.JSTarget = exports.JSScript = exports.JSModule = exports.GenericDataRelationshipType = exports.CodegenGenericDataFieldDataType = exports.CodegenJobGenericDataSourceType = void 0;
3
+ exports.RefreshTokenResponseFilterSensitiveLog = exports.RefreshTokenRequestFilterSensitiveLog = exports.RefreshTokenRequestBodyFilterSensitiveLog = exports.ExchangeCodeForTokenResponseFilterSensitiveLog = exports.ExchangeCodeForTokenRequestFilterSensitiveLog = exports.ExchangeCodeForTokenRequestBodyFilterSensitiveLog = exports.UnauthorizedException = exports.FormStyleConfig = exports.LabelDecorator = exports.FormActionType = exports.StorageAccessLevel = exports.FormDataSourceType = exports.FormButtonsPosition = exports.FieldPosition = exports.FixedPosition = exports.TokenProviders = exports.ServiceQuotaExceededException = exports.ResourceConflictException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InvalidParameterException = exports.InternalServerException = exports.CodegenJobStatus = exports.CodegenJobRenderConfig = exports.JSTarget = exports.JSScript = exports.JSModule = exports.ApiConfiguration = exports.GenericDataRelationshipType = exports.CodegenGenericDataFieldDataType = exports.CodegenJobGenericDataSourceType = void 0;
4
4
  const smithy_client_1 = require("@smithy/smithy-client");
5
5
  const AmplifyUIBuilderServiceException_1 = require("./AmplifyUIBuilderServiceException");
6
6
  exports.CodegenJobGenericDataSourceType = {
@@ -30,6 +30,18 @@ exports.GenericDataRelationshipType = {
30
30
  HAS_MANY: "HAS_MANY",
31
31
  HAS_ONE: "HAS_ONE",
32
32
  };
33
+ var ApiConfiguration;
34
+ (function (ApiConfiguration) {
35
+ ApiConfiguration.visit = (value, visitor) => {
36
+ if (value.graphQLConfig !== undefined)
37
+ return visitor.graphQLConfig(value.graphQLConfig);
38
+ if (value.dataStoreConfig !== undefined)
39
+ return visitor.dataStoreConfig(value.dataStoreConfig);
40
+ if (value.noApiConfig !== undefined)
41
+ return visitor.noApiConfig(value.noApiConfig);
42
+ return visitor._(value.$unknown[0], value.$unknown[1]);
43
+ };
44
+ })(ApiConfiguration = exports.ApiConfiguration || (exports.ApiConfiguration = {}));
33
45
  exports.JSModule = {
34
46
  ES2020: "es2020",
35
47
  ESNEXT: "esnext",
@@ -1,4 +1,4 @@
1
1
  const q = "required", r = "fn", s = "argv", t = "ref";
2
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 }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ 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: [{ type: b, rules: [{ endpoint: { url: "https://amplifyuibuilder-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: [{ type: b, rules: [{ endpoint: { url: "https://amplifyuibuilder-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: [{ type: b, rules: [{ endpoint: { url: "https://amplifyuibuilder.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://amplifyuibuilder.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
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://amplifyuibuilder-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://amplifyuibuilder-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://amplifyuibuilder.{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://amplifyuibuilder.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
4
4
  export const ruleSet = _data;
@@ -27,6 +27,18 @@ export const GenericDataRelationshipType = {
27
27
  HAS_MANY: "HAS_MANY",
28
28
  HAS_ONE: "HAS_ONE",
29
29
  };
30
+ export var ApiConfiguration;
31
+ (function (ApiConfiguration) {
32
+ ApiConfiguration.visit = (value, visitor) => {
33
+ if (value.graphQLConfig !== undefined)
34
+ return visitor.graphQLConfig(value.graphQLConfig);
35
+ if (value.dataStoreConfig !== undefined)
36
+ return visitor.dataStoreConfig(value.dataStoreConfig);
37
+ if (value.noApiConfig !== undefined)
38
+ return visitor.noApiConfig(value.noApiConfig);
39
+ return visitor._(value.$unknown[0], value.$unknown[1]);
40
+ };
41
+ })(ApiConfiguration || (ApiConfiguration = {}));
30
42
  export const JSModule = {
31
43
  ES2020: "es2020",
32
44
  ESNEXT: "esnext",
@@ -23,7 +23,7 @@ export interface CreateFormCommandOutput extends CreateFormResponse, __MetadataB
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Creates a new form for an Amplify.</p>
26
+ * <p>Creates a new form for an Amplify app.</p>
27
27
  * @example
28
28
  * Use a bare-bones client and the command you need to make an API call.
29
29
  * ```javascript
@@ -49,6 +49,17 @@ export interface GetCodegenJobCommandOutput extends GetCodegenJobResponse, __Met
49
49
  * // script: "jsx" || "tsx" || "js",
50
50
  * // renderTypeDeclarations: true || false,
51
51
  * // inlineSourceMap: true || false,
52
+ * // apiConfiguration: { // ApiConfiguration Union: only one key present
53
+ * // graphQLConfig: { // GraphQLRenderConfig
54
+ * // typesFilePath: "STRING_VALUE", // required
55
+ * // queriesFilePath: "STRING_VALUE", // required
56
+ * // mutationsFilePath: "STRING_VALUE", // required
57
+ * // subscriptionsFilePath: "STRING_VALUE", // required
58
+ * // fragmentsFilePath: "STRING_VALUE", // required
59
+ * // },
60
+ * // dataStoreConfig: {},
61
+ * // noApiConfig: {},
62
+ * // },
52
63
  * // },
53
64
  * // },
54
65
  * // genericDataSchema: { // CodegenJobGenericDataSchema
@@ -23,7 +23,7 @@ export interface StartCodegenJobCommandOutput extends StartCodegenJobResponse, _
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Starts a code generation job for for a specified Amplify app and backend environment.</p>
26
+ * <p>Starts a code generation job for a specified Amplify app and backend environment.</p>
27
27
  * @example
28
28
  * Use a bare-bones client and the command you need to make an API call.
29
29
  * ```javascript
@@ -42,6 +42,17 @@ export interface StartCodegenJobCommandOutput extends StartCodegenJobResponse, _
42
42
  * script: "jsx" || "tsx" || "js",
43
43
  * renderTypeDeclarations: true || false,
44
44
  * inlineSourceMap: true || false,
45
+ * apiConfiguration: { // ApiConfiguration Union: only one key present
46
+ * graphQLConfig: { // GraphQLRenderConfig
47
+ * typesFilePath: "STRING_VALUE", // required
48
+ * queriesFilePath: "STRING_VALUE", // required
49
+ * mutationsFilePath: "STRING_VALUE", // required
50
+ * subscriptionsFilePath: "STRING_VALUE", // required
51
+ * fragmentsFilePath: "STRING_VALUE", // required
52
+ * },
53
+ * dataStoreConfig: {},
54
+ * noApiConfig: {},
55
+ * },
45
56
  * },
46
57
  * },
47
58
  * genericDataSchema: { // CodegenJobGenericDataSchema
@@ -138,6 +149,17 @@ export interface StartCodegenJobCommandOutput extends StartCodegenJobResponse, _
138
149
  * // script: "jsx" || "tsx" || "js",
139
150
  * // renderTypeDeclarations: true || false,
140
151
  * // inlineSourceMap: true || false,
152
+ * // apiConfiguration: { // ApiConfiguration Union: only one key present
153
+ * // graphQLConfig: { // GraphQLRenderConfig
154
+ * // typesFilePath: "STRING_VALUE", // required
155
+ * // queriesFilePath: "STRING_VALUE", // required
156
+ * // mutationsFilePath: "STRING_VALUE", // required
157
+ * // subscriptionsFilePath: "STRING_VALUE", // required
158
+ * // fragmentsFilePath: "STRING_VALUE", // required
159
+ * // },
160
+ * // dataStoreConfig: {},
161
+ * // noApiConfig: {},
162
+ * // },
141
163
  * // },
142
164
  * // },
143
165
  * // genericDataSchema: { // CodegenJobGenericDataSchema