Skip to content

Commit af77058

Browse files
author
awstools
committed
feat(client-amplifyuibuilder): We are releasing the ability for fields to be configured as arrays.
1 parent 5f08c96 commit af77058

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

clients/client-amplifyuibuilder/src/models/models_0.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ export enum FormButtonsPosition {
431431
}
432432

433433
/**
434-
* <p>Describes the call to action button configuration for the form..</p>
434+
* <p>Describes the call to action button configuration for the form.</p>
435435
*/
436436
export interface FormCTA {
437437
/**
@@ -592,6 +592,11 @@ export interface FieldInputConfig {
592592
* <p>The value for the field.</p>
593593
*/
594594
value?: string;
595+
596+
/**
597+
* <p>Specifies whether to render the field as an array. This property is ignored if the <code>dataSourceType</code> for the form is a Data Store.</p>
598+
*/
599+
isArray?: boolean;
595600
}
596601

597602
/**

clients/client-amplifyuibuilder/src/protocols/Aws_restJson1.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2324,6 +2324,7 @@ const serializeAws_restJson1FieldInputConfig = (input: FieldInputConfig, context
23242324
...(input.defaultCountryCode != null && { defaultCountryCode: input.defaultCountryCode }),
23252325
...(input.defaultValue != null && { defaultValue: input.defaultValue }),
23262326
...(input.descriptiveText != null && { descriptiveText: input.descriptiveText }),
2327+
...(input.isArray != null && { isArray: input.isArray }),
23272328
...(input.maxValue != null && { maxValue: __serializeFloat(input.maxValue) }),
23282329
...(input.minValue != null && { minValue: __serializeFloat(input.minValue) }),
23292330
...(input.name != null && { name: input.name }),
@@ -3057,6 +3058,7 @@ const deserializeAws_restJson1FieldInputConfig = (output: any, context: __SerdeC
30573058
defaultCountryCode: __expectString(output.defaultCountryCode),
30583059
defaultValue: __expectString(output.defaultValue),
30593060
descriptiveText: __expectString(output.descriptiveText),
3061+
isArray: __expectBoolean(output.isArray),
30603062
maxValue: __limitedParseFloat32(output.maxValue),
30613063
minValue: __limitedParseFloat32(output.minValue),
30623064
name: __expectString(output.name),

codegen/sdk-codegen/aws-models/amplifyuibuilder.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1897,6 +1897,12 @@
18971897
"traits": {
18981898
"smithy.api#documentation": "<p>The value for the field.</p>"
18991899
}
1900+
},
1901+
"isArray": {
1902+
"target": "smithy.api#Boolean",
1903+
"traits": {
1904+
"smithy.api#documentation": "<p>Specifies whether to render the field as an array. This property is ignored if the <code>dataSourceType</code> for the form is a Data Store.</p>"
1905+
}
19001906
}
19011907
},
19021908
"traits": {
@@ -2198,7 +2204,7 @@
21982204
}
21992205
},
22002206
"traits": {
2201-
"smithy.api#documentation": "<p>Describes the call to action button configuration for the form..</p>"
2207+
"smithy.api#documentation": "<p>Describes the call to action button configuration for the form.</p>"
22022208
}
22032209
},
22042210
"com.amazonaws.amplifyuibuilder#FormDataSourceType": {

0 commit comments

Comments
 (0)