@aws-sdk/client-amplifyuibuilder 3.301.0 → 3.306.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/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +32 -25
- package/dist-cjs/protocols/Aws_restJson1.js +127 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +31 -24
- package/dist-es/protocols/Aws_restJson1.js +127 -0
- package/dist-types/AmplifyUIBuilder.d.ts +1 -1
- package/dist-types/commands/CreateComponentCommand.d.ts +2 -0
- package/dist-types/commands/CreateFormCommand.d.ts +38 -4
- package/dist-types/commands/ExchangeCodeForTokenCommand.d.ts +1 -0
- package/dist-types/commands/PutMetadataFlagCommand.d.ts +1 -1
- package/dist-types/commands/RefreshTokenCommand.d.ts +1 -0
- package/dist-types/commands/UpdateComponentCommand.d.ts +2 -0
- package/dist-types/commands/UpdateFormCommand.d.ts +38 -4
- package/dist-types/models/models_0.d.ts +744 -556
- package/dist-types/ts3.4/models/models_0.d.ts +164 -111
- package/package.json +34 -34
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a = "
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
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 }, { 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 }] }] };
|
|
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.FormActionType = exports.FormDataSourceType = exports.FormButtonsPosition = exports.FieldPosition = exports.FixedPosition = exports.TokenProviders = exports.ResourceNotFoundException = exports.ServiceQuotaExceededException = exports.ResourceConflictException = exports.InvalidParameterException = exports.InternalServerException = 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.ResourceNotFoundException = exports.ServiceQuotaExceededException = exports.ResourceConflictException = exports.InvalidParameterException = exports.InternalServerException = void 0;
|
|
4
4
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
5
|
const AmplifyUIBuilderServiceException_1 = require("./AmplifyUIBuilderServiceException");
|
|
6
6
|
class InternalServerException extends AmplifyUIBuilderServiceException_1.AmplifyUIBuilderServiceException {
|
|
@@ -68,14 +68,12 @@ class ResourceNotFoundException extends AmplifyUIBuilderServiceException_1.Ampli
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
FixedPosition["FIRST"] = "first";
|
|
78
|
-
})(FixedPosition = exports.FixedPosition || (exports.FixedPosition = {}));
|
|
71
|
+
exports.TokenProviders = {
|
|
72
|
+
FIGMA: "figma",
|
|
73
|
+
};
|
|
74
|
+
exports.FixedPosition = {
|
|
75
|
+
FIRST: "first",
|
|
76
|
+
};
|
|
79
77
|
var FieldPosition;
|
|
80
78
|
(function (FieldPosition) {
|
|
81
79
|
FieldPosition.visit = (value, visitor) => {
|
|
@@ -88,22 +86,29 @@ var FieldPosition;
|
|
|
88
86
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
89
87
|
};
|
|
90
88
|
})(FieldPosition = exports.FieldPosition || (exports.FieldPosition = {}));
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
89
|
+
exports.FormButtonsPosition = {
|
|
90
|
+
BOTTOM: "bottom",
|
|
91
|
+
TOP: "top",
|
|
92
|
+
TOP_AND_BOTTOM: "top_and_bottom",
|
|
93
|
+
};
|
|
94
|
+
exports.FormDataSourceType = {
|
|
95
|
+
CUSTOM: "Custom",
|
|
96
|
+
DATASTORE: "DataStore",
|
|
97
|
+
};
|
|
98
|
+
exports.StorageAccessLevel = {
|
|
99
|
+
PRIVATE: "private",
|
|
100
|
+
PROTECTED: "protected",
|
|
101
|
+
PUBLIC: "public",
|
|
102
|
+
};
|
|
103
|
+
exports.FormActionType = {
|
|
104
|
+
CREATE: "create",
|
|
105
|
+
UPDATE: "update",
|
|
106
|
+
};
|
|
107
|
+
exports.LabelDecorator = {
|
|
108
|
+
NONE: "none",
|
|
109
|
+
OPTIONAL: "optional",
|
|
110
|
+
REQUIRED: "required",
|
|
111
|
+
};
|
|
107
112
|
var FormStyleConfig;
|
|
108
113
|
(function (FormStyleConfig) {
|
|
109
114
|
FormStyleConfig.visit = (value, visitor) => {
|
|
@@ -130,6 +135,7 @@ exports.UnauthorizedException = UnauthorizedException;
|
|
|
130
135
|
const ExchangeCodeForTokenRequestBodyFilterSensitiveLog = (obj) => ({
|
|
131
136
|
...obj,
|
|
132
137
|
...(obj.code && { code: smithy_client_1.SENSITIVE_STRING }),
|
|
138
|
+
...(obj.clientId && { clientId: smithy_client_1.SENSITIVE_STRING }),
|
|
133
139
|
});
|
|
134
140
|
exports.ExchangeCodeForTokenRequestBodyFilterSensitiveLog = ExchangeCodeForTokenRequestBodyFilterSensitiveLog;
|
|
135
141
|
const ExchangeCodeForTokenRequestFilterSensitiveLog = (obj) => ({
|
|
@@ -146,6 +152,7 @@ exports.ExchangeCodeForTokenResponseFilterSensitiveLog = ExchangeCodeForTokenRes
|
|
|
146
152
|
const RefreshTokenRequestBodyFilterSensitiveLog = (obj) => ({
|
|
147
153
|
...obj,
|
|
148
154
|
...(obj.token && { token: smithy_client_1.SENSITIVE_STRING }),
|
|
155
|
+
...(obj.clientId && { clientId: smithy_client_1.SENSITIVE_STRING }),
|
|
149
156
|
});
|
|
150
157
|
exports.RefreshTokenRequestBodyFilterSensitiveLog = RefreshTokenRequestBodyFilterSensitiveLog;
|
|
151
158
|
const RefreshTokenRequestFilterSensitiveLog = (obj) => ({
|
|
@@ -1708,6 +1708,7 @@ const serializeAws_restJson1CreateFormData = (input, context) => {
|
|
|
1708
1708
|
...(input.dataType != null && { dataType: serializeAws_restJson1FormDataTypeConfig(input.dataType, context) }),
|
|
1709
1709
|
...(input.fields != null && { fields: serializeAws_restJson1FieldsMap(input.fields, context) }),
|
|
1710
1710
|
...(input.formActionType != null && { formActionType: input.formActionType }),
|
|
1711
|
+
...(input.labelDecorator != null && { labelDecorator: input.labelDecorator }),
|
|
1711
1712
|
...(input.name != null && { name: input.name }),
|
|
1712
1713
|
...(input.schemaVersion != null && { schemaVersion: input.schemaVersion }),
|
|
1713
1714
|
...(input.sectionalElements != null && {
|
|
@@ -1727,6 +1728,7 @@ const serializeAws_restJson1CreateThemeData = (input, context) => {
|
|
|
1727
1728
|
};
|
|
1728
1729
|
const serializeAws_restJson1ExchangeCodeForTokenRequestBody = (input, context) => {
|
|
1729
1730
|
return {
|
|
1731
|
+
...(input.clientId != null && { clientId: input.clientId }),
|
|
1730
1732
|
...(input.code != null && { code: input.code }),
|
|
1731
1733
|
...(input.redirectUri != null && { redirectUri: input.redirectUri }),
|
|
1732
1734
|
};
|
|
@@ -1748,6 +1750,9 @@ const serializeAws_restJson1FieldInputConfig = (input, context) => {
|
|
|
1748
1750
|
...(input.defaultCountryCode != null && { defaultCountryCode: input.defaultCountryCode }),
|
|
1749
1751
|
...(input.defaultValue != null && { defaultValue: input.defaultValue }),
|
|
1750
1752
|
...(input.descriptiveText != null && { descriptiveText: input.descriptiveText }),
|
|
1753
|
+
...(input.fileUploaderConfig != null && {
|
|
1754
|
+
fileUploaderConfig: serializeAws_restJson1FileUploaderFieldConfig(input.fileUploaderConfig, context),
|
|
1755
|
+
}),
|
|
1751
1756
|
...(input.isArray != null && { isArray: input.isArray }),
|
|
1752
1757
|
...(input.maxValue != null && { maxValue: (0, smithy_client_1.serializeFloat)(input.maxValue) }),
|
|
1753
1758
|
...(input.minValue != null && { minValue: (0, smithy_client_1.serializeFloat)(input.minValue) }),
|
|
@@ -1788,6 +1793,18 @@ const serializeAws_restJson1FieldValidationConfiguration = (input, context) => {
|
|
|
1788
1793
|
...(input.validationMessage != null && { validationMessage: input.validationMessage }),
|
|
1789
1794
|
};
|
|
1790
1795
|
};
|
|
1796
|
+
const serializeAws_restJson1FileUploaderFieldConfig = (input, context) => {
|
|
1797
|
+
return {
|
|
1798
|
+
...(input.acceptedFileTypes != null && {
|
|
1799
|
+
acceptedFileTypes: serializeAws_restJson1StrValues(input.acceptedFileTypes, context),
|
|
1800
|
+
}),
|
|
1801
|
+
...(input.accessLevel != null && { accessLevel: input.accessLevel }),
|
|
1802
|
+
...(input.isResumable != null && { isResumable: input.isResumable }),
|
|
1803
|
+
...(input.maxFileCount != null && { maxFileCount: input.maxFileCount }),
|
|
1804
|
+
...(input.maxSize != null && { maxSize: input.maxSize }),
|
|
1805
|
+
...(input.showThumbnails != null && { showThumbnails: input.showThumbnails }),
|
|
1806
|
+
};
|
|
1807
|
+
};
|
|
1791
1808
|
const serializeAws_restJson1FormBindingElement = (input, context) => {
|
|
1792
1809
|
return {
|
|
1793
1810
|
...(input.element != null && { element: input.element }),
|
|
@@ -1824,11 +1841,50 @@ const serializeAws_restJson1FormDataTypeConfig = (input, context) => {
|
|
|
1824
1841
|
...(input.dataTypeName != null && { dataTypeName: input.dataTypeName }),
|
|
1825
1842
|
};
|
|
1826
1843
|
};
|
|
1844
|
+
const serializeAws_restJson1FormInputBindingProperties = (input, context) => {
|
|
1845
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1846
|
+
if (value === null) {
|
|
1847
|
+
return acc;
|
|
1848
|
+
}
|
|
1849
|
+
acc[key] = serializeAws_restJson1FormInputBindingPropertiesValue(value, context);
|
|
1850
|
+
return acc;
|
|
1851
|
+
}, {});
|
|
1852
|
+
};
|
|
1853
|
+
const serializeAws_restJson1FormInputBindingPropertiesValue = (input, context) => {
|
|
1854
|
+
return {
|
|
1855
|
+
...(input.bindingProperties != null && {
|
|
1856
|
+
bindingProperties: serializeAws_restJson1FormInputBindingPropertiesValueProperties(input.bindingProperties, context),
|
|
1857
|
+
}),
|
|
1858
|
+
...(input.type != null && { type: input.type }),
|
|
1859
|
+
};
|
|
1860
|
+
};
|
|
1861
|
+
const serializeAws_restJson1FormInputBindingPropertiesValueProperties = (input, context) => {
|
|
1862
|
+
return {
|
|
1863
|
+
...(input.model != null && { model: input.model }),
|
|
1864
|
+
};
|
|
1865
|
+
};
|
|
1827
1866
|
const serializeAws_restJson1FormInputValueProperty = (input, context) => {
|
|
1828
1867
|
return {
|
|
1868
|
+
...(input.bindingProperties != null && {
|
|
1869
|
+
bindingProperties: serializeAws_restJson1FormInputValuePropertyBindingProperties(input.bindingProperties, context),
|
|
1870
|
+
}),
|
|
1871
|
+
...(input.concat != null && { concat: serializeAws_restJson1FormInputValuePropertyList(input.concat, context) }),
|
|
1829
1872
|
...(input.value != null && { value: input.value }),
|
|
1830
1873
|
};
|
|
1831
1874
|
};
|
|
1875
|
+
const serializeAws_restJson1FormInputValuePropertyBindingProperties = (input, context) => {
|
|
1876
|
+
return {
|
|
1877
|
+
...(input.field != null && { field: input.field }),
|
|
1878
|
+
...(input.property != null && { property: input.property }),
|
|
1879
|
+
};
|
|
1880
|
+
};
|
|
1881
|
+
const serializeAws_restJson1FormInputValuePropertyList = (input, context) => {
|
|
1882
|
+
return input
|
|
1883
|
+
.filter((e) => e != null)
|
|
1884
|
+
.map((entry) => {
|
|
1885
|
+
return serializeAws_restJson1FormInputValueProperty(entry, context);
|
|
1886
|
+
});
|
|
1887
|
+
};
|
|
1832
1888
|
const serializeAws_restJson1FormStyle = (input, context) => {
|
|
1833
1889
|
return {
|
|
1834
1890
|
...(input.horizontalGap != null && {
|
|
@@ -1875,6 +1931,7 @@ const serializeAws_restJson1Predicate = (input, context) => {
|
|
|
1875
1931
|
...(input.and != null && { and: serializeAws_restJson1PredicateList(input.and, context) }),
|
|
1876
1932
|
...(input.field != null && { field: input.field }),
|
|
1877
1933
|
...(input.operand != null && { operand: input.operand }),
|
|
1934
|
+
...(input.operandType != null && { operandType: input.operandType }),
|
|
1878
1935
|
...(input.operator != null && { operator: input.operator }),
|
|
1879
1936
|
...(input.or != null && { or: serializeAws_restJson1PredicateList(input.or, context) }),
|
|
1880
1937
|
};
|
|
@@ -1893,11 +1950,13 @@ const serializeAws_restJson1PutMetadataFlagBody = (input, context) => {
|
|
|
1893
1950
|
};
|
|
1894
1951
|
const serializeAws_restJson1RefreshTokenRequestBody = (input, context) => {
|
|
1895
1952
|
return {
|
|
1953
|
+
...(input.clientId != null && { clientId: input.clientId }),
|
|
1896
1954
|
...(input.token != null && { token: input.token }),
|
|
1897
1955
|
};
|
|
1898
1956
|
};
|
|
1899
1957
|
const serializeAws_restJson1SectionalElement = (input, context) => {
|
|
1900
1958
|
return {
|
|
1959
|
+
...(input.excluded != null && { excluded: input.excluded }),
|
|
1901
1960
|
...(input.level != null && { level: input.level }),
|
|
1902
1961
|
...(input.orientation != null && { orientation: input.orientation }),
|
|
1903
1962
|
...(input.position != null && { position: serializeAws_restJson1FieldPosition(input.position, context) }),
|
|
@@ -1990,6 +2049,7 @@ const serializeAws_restJson1UpdateFormData = (input, context) => {
|
|
|
1990
2049
|
...(input.dataType != null && { dataType: serializeAws_restJson1FormDataTypeConfig(input.dataType, context) }),
|
|
1991
2050
|
...(input.fields != null && { fields: serializeAws_restJson1FieldsMap(input.fields, context) }),
|
|
1992
2051
|
...(input.formActionType != null && { formActionType: input.formActionType }),
|
|
2052
|
+
...(input.labelDecorator != null && { labelDecorator: input.labelDecorator }),
|
|
1993
2053
|
...(input.name != null && { name: input.name }),
|
|
1994
2054
|
...(input.schemaVersion != null && { schemaVersion: input.schemaVersion }),
|
|
1995
2055
|
...(input.sectionalElements != null && {
|
|
@@ -2030,6 +2090,9 @@ const serializeAws_restJson1ValueMappingList = (input, context) => {
|
|
|
2030
2090
|
};
|
|
2031
2091
|
const serializeAws_restJson1ValueMappings = (input, context) => {
|
|
2032
2092
|
return {
|
|
2093
|
+
...(input.bindingProperties != null && {
|
|
2094
|
+
bindingProperties: serializeAws_restJson1FormInputBindingProperties(input.bindingProperties, context),
|
|
2095
|
+
}),
|
|
2033
2096
|
...(input.values != null && { values: serializeAws_restJson1ValueMappingList(input.values, context) }),
|
|
2034
2097
|
};
|
|
2035
2098
|
};
|
|
@@ -2320,6 +2383,9 @@ const deserializeAws_restJson1FieldInputConfig = (output, context) => {
|
|
|
2320
2383
|
defaultCountryCode: (0, smithy_client_1.expectString)(output.defaultCountryCode),
|
|
2321
2384
|
defaultValue: (0, smithy_client_1.expectString)(output.defaultValue),
|
|
2322
2385
|
descriptiveText: (0, smithy_client_1.expectString)(output.descriptiveText),
|
|
2386
|
+
fileUploaderConfig: output.fileUploaderConfig != null
|
|
2387
|
+
? deserializeAws_restJson1FileUploaderFieldConfig(output.fileUploaderConfig, context)
|
|
2388
|
+
: undefined,
|
|
2323
2389
|
isArray: (0, smithy_client_1.expectBoolean)(output.isArray),
|
|
2324
2390
|
maxValue: (0, smithy_client_1.limitedParseFloat32)(output.maxValue),
|
|
2325
2391
|
minValue: (0, smithy_client_1.limitedParseFloat32)(output.minValue),
|
|
@@ -2362,6 +2428,18 @@ const deserializeAws_restJson1FieldValidationConfiguration = (output, context) =
|
|
|
2362
2428
|
validationMessage: (0, smithy_client_1.expectString)(output.validationMessage),
|
|
2363
2429
|
};
|
|
2364
2430
|
};
|
|
2431
|
+
const deserializeAws_restJson1FileUploaderFieldConfig = (output, context) => {
|
|
2432
|
+
return {
|
|
2433
|
+
acceptedFileTypes: output.acceptedFileTypes != null
|
|
2434
|
+
? deserializeAws_restJson1StrValues(output.acceptedFileTypes, context)
|
|
2435
|
+
: undefined,
|
|
2436
|
+
accessLevel: (0, smithy_client_1.expectString)(output.accessLevel),
|
|
2437
|
+
isResumable: (0, smithy_client_1.expectBoolean)(output.isResumable),
|
|
2438
|
+
maxFileCount: (0, smithy_client_1.expectInt32)(output.maxFileCount),
|
|
2439
|
+
maxSize: (0, smithy_client_1.expectInt32)(output.maxSize),
|
|
2440
|
+
showThumbnails: (0, smithy_client_1.expectBoolean)(output.showThumbnails),
|
|
2441
|
+
};
|
|
2442
|
+
};
|
|
2365
2443
|
const deserializeAws_restJson1Form = (output, context) => {
|
|
2366
2444
|
return {
|
|
2367
2445
|
appId: (0, smithy_client_1.expectString)(output.appId),
|
|
@@ -2371,6 +2449,7 @@ const deserializeAws_restJson1Form = (output, context) => {
|
|
|
2371
2449
|
fields: output.fields != null ? deserializeAws_restJson1FieldsMap(output.fields, context) : undefined,
|
|
2372
2450
|
formActionType: (0, smithy_client_1.expectString)(output.formActionType),
|
|
2373
2451
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
2452
|
+
labelDecorator: (0, smithy_client_1.expectString)(output.labelDecorator),
|
|
2374
2453
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2375
2454
|
schemaVersion: (0, smithy_client_1.expectString)(output.schemaVersion),
|
|
2376
2455
|
sectionalElements: output.sectionalElements != null
|
|
@@ -2418,11 +2497,54 @@ const deserializeAws_restJson1FormDataTypeConfig = (output, context) => {
|
|
|
2418
2497
|
dataTypeName: (0, smithy_client_1.expectString)(output.dataTypeName),
|
|
2419
2498
|
};
|
|
2420
2499
|
};
|
|
2500
|
+
const deserializeAws_restJson1FormInputBindingProperties = (output, context) => {
|
|
2501
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2502
|
+
if (value === null) {
|
|
2503
|
+
return acc;
|
|
2504
|
+
}
|
|
2505
|
+
acc[key] = deserializeAws_restJson1FormInputBindingPropertiesValue(value, context);
|
|
2506
|
+
return acc;
|
|
2507
|
+
}, {});
|
|
2508
|
+
};
|
|
2509
|
+
const deserializeAws_restJson1FormInputBindingPropertiesValue = (output, context) => {
|
|
2510
|
+
return {
|
|
2511
|
+
bindingProperties: output.bindingProperties != null
|
|
2512
|
+
? deserializeAws_restJson1FormInputBindingPropertiesValueProperties(output.bindingProperties, context)
|
|
2513
|
+
: undefined,
|
|
2514
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
2515
|
+
};
|
|
2516
|
+
};
|
|
2517
|
+
const deserializeAws_restJson1FormInputBindingPropertiesValueProperties = (output, context) => {
|
|
2518
|
+
return {
|
|
2519
|
+
model: (0, smithy_client_1.expectString)(output.model),
|
|
2520
|
+
};
|
|
2521
|
+
};
|
|
2421
2522
|
const deserializeAws_restJson1FormInputValueProperty = (output, context) => {
|
|
2422
2523
|
return {
|
|
2524
|
+
bindingProperties: output.bindingProperties != null
|
|
2525
|
+
? deserializeAws_restJson1FormInputValuePropertyBindingProperties(output.bindingProperties, context)
|
|
2526
|
+
: undefined,
|
|
2527
|
+
concat: output.concat != null ? deserializeAws_restJson1FormInputValuePropertyList(output.concat, context) : undefined,
|
|
2423
2528
|
value: (0, smithy_client_1.expectString)(output.value),
|
|
2424
2529
|
};
|
|
2425
2530
|
};
|
|
2531
|
+
const deserializeAws_restJson1FormInputValuePropertyBindingProperties = (output, context) => {
|
|
2532
|
+
return {
|
|
2533
|
+
field: (0, smithy_client_1.expectString)(output.field),
|
|
2534
|
+
property: (0, smithy_client_1.expectString)(output.property),
|
|
2535
|
+
};
|
|
2536
|
+
};
|
|
2537
|
+
const deserializeAws_restJson1FormInputValuePropertyList = (output, context) => {
|
|
2538
|
+
const retVal = (output || [])
|
|
2539
|
+
.filter((e) => e != null)
|
|
2540
|
+
.map((entry) => {
|
|
2541
|
+
if (entry === null) {
|
|
2542
|
+
return null;
|
|
2543
|
+
}
|
|
2544
|
+
return deserializeAws_restJson1FormInputValueProperty(entry, context);
|
|
2545
|
+
});
|
|
2546
|
+
return retVal;
|
|
2547
|
+
};
|
|
2426
2548
|
const deserializeAws_restJson1FormList = (output, context) => {
|
|
2427
2549
|
const retVal = (output || [])
|
|
2428
2550
|
.filter((e) => e != null)
|
|
@@ -2511,6 +2633,7 @@ const deserializeAws_restJson1Predicate = (output, context) => {
|
|
|
2511
2633
|
and: output.and != null ? deserializeAws_restJson1PredicateList(output.and, context) : undefined,
|
|
2512
2634
|
field: (0, smithy_client_1.expectString)(output.field),
|
|
2513
2635
|
operand: (0, smithy_client_1.expectString)(output.operand),
|
|
2636
|
+
operandType: (0, smithy_client_1.expectString)(output.operandType),
|
|
2514
2637
|
operator: (0, smithy_client_1.expectString)(output.operator),
|
|
2515
2638
|
or: output.or != null ? deserializeAws_restJson1PredicateList(output.or, context) : undefined,
|
|
2516
2639
|
};
|
|
@@ -2528,6 +2651,7 @@ const deserializeAws_restJson1PredicateList = (output, context) => {
|
|
|
2528
2651
|
};
|
|
2529
2652
|
const deserializeAws_restJson1SectionalElement = (output, context) => {
|
|
2530
2653
|
return {
|
|
2654
|
+
excluded: (0, smithy_client_1.expectBoolean)(output.excluded),
|
|
2531
2655
|
level: (0, smithy_client_1.expectInt32)(output.level),
|
|
2532
2656
|
orientation: (0, smithy_client_1.expectString)(output.orientation),
|
|
2533
2657
|
position: output.position != null
|
|
@@ -2681,6 +2805,9 @@ const deserializeAws_restJson1ValueMappingList = (output, context) => {
|
|
|
2681
2805
|
};
|
|
2682
2806
|
const deserializeAws_restJson1ValueMappings = (output, context) => {
|
|
2683
2807
|
return {
|
|
2808
|
+
bindingProperties: output.bindingProperties != null
|
|
2809
|
+
? deserializeAws_restJson1FormInputBindingProperties(output.bindingProperties, context)
|
|
2810
|
+
: undefined,
|
|
2684
2811
|
values: output.values != null ? deserializeAws_restJson1ValueMappingList(output.values, context) : undefined,
|
|
2685
2812
|
};
|
|
2686
2813
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a = "
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
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 }, { 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 }] }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -60,14 +60,12 @@ export class ResourceNotFoundException extends __BaseException {
|
|
|
60
60
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
export
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
FixedPosition["FIRST"] = "first";
|
|
70
|
-
})(FixedPosition || (FixedPosition = {}));
|
|
63
|
+
export const TokenProviders = {
|
|
64
|
+
FIGMA: "figma",
|
|
65
|
+
};
|
|
66
|
+
export const FixedPosition = {
|
|
67
|
+
FIRST: "first",
|
|
68
|
+
};
|
|
71
69
|
export var FieldPosition;
|
|
72
70
|
(function (FieldPosition) {
|
|
73
71
|
FieldPosition.visit = (value, visitor) => {
|
|
@@ -80,22 +78,29 @@ export var FieldPosition;
|
|
|
80
78
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
81
79
|
};
|
|
82
80
|
})(FieldPosition || (FieldPosition = {}));
|
|
83
|
-
export
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
81
|
+
export const FormButtonsPosition = {
|
|
82
|
+
BOTTOM: "bottom",
|
|
83
|
+
TOP: "top",
|
|
84
|
+
TOP_AND_BOTTOM: "top_and_bottom",
|
|
85
|
+
};
|
|
86
|
+
export const FormDataSourceType = {
|
|
87
|
+
CUSTOM: "Custom",
|
|
88
|
+
DATASTORE: "DataStore",
|
|
89
|
+
};
|
|
90
|
+
export const StorageAccessLevel = {
|
|
91
|
+
PRIVATE: "private",
|
|
92
|
+
PROTECTED: "protected",
|
|
93
|
+
PUBLIC: "public",
|
|
94
|
+
};
|
|
95
|
+
export const FormActionType = {
|
|
96
|
+
CREATE: "create",
|
|
97
|
+
UPDATE: "update",
|
|
98
|
+
};
|
|
99
|
+
export const LabelDecorator = {
|
|
100
|
+
NONE: "none",
|
|
101
|
+
OPTIONAL: "optional",
|
|
102
|
+
REQUIRED: "required",
|
|
103
|
+
};
|
|
99
104
|
export var FormStyleConfig;
|
|
100
105
|
(function (FormStyleConfig) {
|
|
101
106
|
FormStyleConfig.visit = (value, visitor) => {
|
|
@@ -121,6 +126,7 @@ export class UnauthorizedException extends __BaseException {
|
|
|
121
126
|
export const ExchangeCodeForTokenRequestBodyFilterSensitiveLog = (obj) => ({
|
|
122
127
|
...obj,
|
|
123
128
|
...(obj.code && { code: SENSITIVE_STRING }),
|
|
129
|
+
...(obj.clientId && { clientId: SENSITIVE_STRING }),
|
|
124
130
|
});
|
|
125
131
|
export const ExchangeCodeForTokenRequestFilterSensitiveLog = (obj) => ({
|
|
126
132
|
...obj,
|
|
@@ -134,6 +140,7 @@ export const ExchangeCodeForTokenResponseFilterSensitiveLog = (obj) => ({
|
|
|
134
140
|
export const RefreshTokenRequestBodyFilterSensitiveLog = (obj) => ({
|
|
135
141
|
...obj,
|
|
136
142
|
...(obj.token && { token: SENSITIVE_STRING }),
|
|
143
|
+
...(obj.clientId && { clientId: SENSITIVE_STRING }),
|
|
137
144
|
});
|
|
138
145
|
export const RefreshTokenRequestFilterSensitiveLog = (obj) => ({
|
|
139
146
|
...obj,
|