AWS Native is in preview. AWS Classic is fully supported.
aws-native.amplifyuibuilder.Form
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
Definition of AWS::AmplifyUIBuilder::Form Resource Type
Create Form Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Form(name: string, args?: FormArgs, opts?: CustomResourceOptions);
@overload
def Form(resource_name: str,
args: Optional[FormArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Form(resource_name: str,
opts: Optional[ResourceOptions] = None,
app_id: Optional[str] = None,
cta: Optional[FormCtaArgs] = None,
data_type: Optional[FormDataTypeConfigArgs] = None,
environment_name: Optional[str] = None,
fields: Optional[Mapping[str, FormFieldConfigArgs]] = None,
form_action_type: Optional[FormActionType] = None,
label_decorator: Optional[FormLabelDecorator] = None,
name: Optional[str] = None,
schema_version: Optional[str] = None,
sectional_elements: Optional[Mapping[str, FormSectionalElementArgs]] = None,
style: Optional[FormStyleArgs] = None,
tags: Optional[Mapping[str, str]] = None)
func NewForm(ctx *Context, name string, args *FormArgs, opts ...ResourceOption) (*Form, error)
public Form(string name, FormArgs? args = null, CustomResourceOptions? opts = null)
type: aws-native:amplifyuibuilder:Form
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args FormArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args FormArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FormArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FormArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FormArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Example
The following reference example uses placeholder values for all input properties.
Coming soon!
Coming soon!
Coming soon!
Coming soon!
const formResource = new aws_native.amplifyuibuilder.Form("formResource", {
appId: "string",
cta: {
cancel: {
children: "string",
excluded: false,
position: {
fixed: aws_native.amplifyuibuilder.FormFixedPosition.First,
},
},
clear: {
children: "string",
excluded: false,
position: {
fixed: aws_native.amplifyuibuilder.FormFixedPosition.First,
},
},
position: aws_native.amplifyuibuilder.FormButtonsPosition.Top,
submit: {
children: "string",
excluded: false,
position: {
fixed: aws_native.amplifyuibuilder.FormFixedPosition.First,
},
},
},
dataType: {
dataSourceType: aws_native.amplifyuibuilder.FormDataSourceType.DataStore,
dataTypeName: "string",
},
environmentName: "string",
fields: {
string: {
excluded: false,
inputType: {
type: "string",
name: "string",
placeholder: "string",
descriptiveText: "string",
fileUploaderConfig: {
acceptedFileTypes: ["string"],
accessLevel: aws_native.amplifyuibuilder.FormStorageAccessLevel.Public,
isResumable: false,
maxFileCount: 0,
maxSize: 0,
showThumbnails: false,
},
isArray: false,
maxValue: 0,
defaultValue: "string",
defaultChecked: false,
minValue: 0,
readOnly: false,
required: false,
step: 0,
defaultCountryCode: "string",
value: "string",
valueMappings: {
values: [{
value: {
bindingProperties: {
property: "string",
field: "string",
},
concat: [formInputValueProperty],
value: "string",
},
displayValue: formInputValueProperty,
}],
bindingProperties: {
string: {
bindingProperties: {
model: "string",
},
type: "string",
},
},
},
},
label: "string",
position: {
fixed: aws_native.amplifyuibuilder.FormFixedPosition.First,
},
validations: [{
type: "string",
numValues: [0],
strValues: ["string"],
validationMessage: "string",
}],
},
},
formActionType: aws_native.amplifyuibuilder.FormActionType.Create,
labelDecorator: aws_native.amplifyuibuilder.FormLabelDecorator.Required,
name: "string",
schemaVersion: "string",
sectionalElements: {
string: {
type: "string",
excluded: false,
level: 0,
orientation: "string",
position: {
fixed: aws_native.amplifyuibuilder.FormFixedPosition.First,
},
text: "string",
},
},
style: {
horizontalGap: {
tokenReference: "string",
},
outerPadding: {
tokenReference: "string",
},
verticalGap: {
tokenReference: "string",
},
},
tags: {
string: "string",
},
});
Coming soon!
Form Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Form resource accepts the following input properties:
- App
Id string - Cta
Pulumi.
Aws Native. Amplify Ui Builder. Inputs. Form Cta - Data
Type Pulumi.Aws Native. Amplify Ui Builder. Inputs. Form Data Type Config - Environment
Name string - Fields
Dictionary<string, Pulumi.
Aws Native. Amplify Ui Builder. Inputs. Form Field Config Args> - Form
Action Pulumi.Type Aws Native. Amplify Ui Builder. Form Action Type - Label
Decorator Pulumi.Aws Native. Amplify Ui Builder. Form Label Decorator - Name string
- Schema
Version string - Sectional
Elements Dictionary<string, Pulumi.Aws Native. Amplify Ui Builder. Inputs. Form Sectional Element Args> - Style
Pulumi.
Aws Native. Amplify Ui Builder. Inputs. Form Style - Dictionary<string, string>
- App
Id string - Cta
Form
Cta Args - Data
Type FormData Type Config Args - Environment
Name string - Fields
map[string]Form
Field Config Args - Form
Action FormType Action Type - Label
Decorator FormLabel Decorator - Name string
- Schema
Version string - Sectional
Elements map[string]FormSectional Element Args - Style
Form
Style Args - map[string]string
- app
Id String - cta
Form
Cta - data
Type FormData Type Config - environment
Name String - fields
Map<String,Form
Field Config Args> - form
Action FormType Action Type - label
Decorator FormLabel Decorator - name String
- schema
Version String - sectional
Elements Map<String,FormSectional Element Args> - style
Form
Style - Map<String,String>
- app
Id string - cta
Form
Cta - data
Type FormData Type Config - environment
Name string - fields
{[key: string]: Form
Field Config Args} - form
Action FormType Action Type - label
Decorator FormLabel Decorator - name string
- schema
Version string - sectional
Elements {[key: string]: FormSectional Element Args} - style
Form
Style - {[key: string]: string}
- app_
id str - cta
Form
Cta Args - data_
type FormData Type Config Args - environment_
name str - fields
Mapping[str, Form
Field Config Args] - form_
action_ Formtype Action Type - label_
decorator FormLabel Decorator - name str
- schema_
version str - sectional_
elements Mapping[str, FormSectional Element Args] - style
Form
Style Args - Mapping[str, str]
- app
Id String - cta Property Map
- data
Type Property Map - environment
Name String - fields Map<Property Map>
- form
Action "create" | "update"Type - label
Decorator "required" | "optional" | "none" - name String
- schema
Version String - sectional
Elements Map<Property Map> - style Property Map
- Map<String>
Outputs
All input properties are implicitly available as output properties. Additionally, the Form resource produces the following output properties:
Supporting Types
FormActionType, FormActionTypeArgs
- Create
- create
- Update
- update
- Form
Action Type Create - create
- Form
Action Type Update - update
- Create
- create
- Update
- update
- Create
- create
- Update
- update
- CREATE
- create
- UPDATE
- update
- "create"
- create
- "update"
- update
FormButton, FormButtonArgs
- children String
- excluded Boolean
- position Property Map | Property Map | Property Map
FormButtonsPosition, FormButtonsPositionArgs
- Top
- top
- Bottom
- bottom
- Top
And Bottom - top_and_bottom
- Form
Buttons Position Top - top
- Form
Buttons Position Bottom - bottom
- Form
Buttons Position Top And Bottom - top_and_bottom
- Top
- top
- Bottom
- bottom
- Top
And Bottom - top_and_bottom
- Top
- top
- Bottom
- bottom
- Top
And Bottom - top_and_bottom
- TOP
- top
- BOTTOM
- bottom
- TOP_AND_BOTTOM
- top_and_bottom
- "top"
- top
- "bottom"
- bottom
- "top_
and_ bottom" - top_and_bottom
FormCta, FormCtaArgs
FormDataSourceType, FormDataSourceTypeArgs
- Data
Store - DataStore
- Custom
- Custom
- Form
Data Source Type Data Store - DataStore
- Form
Data Source Type Custom - Custom
- Data
Store - DataStore
- Custom
- Custom
- Data
Store - DataStore
- Custom
- Custom
- DATA_STORE
- DataStore
- CUSTOM
- Custom
- "Data
Store" - DataStore
- "Custom"
- Custom
FormDataTypeConfig, FormDataTypeConfigArgs
FormFieldConfig, FormFieldConfigArgs
- Excluded bool
- Input
Type Pulumi.Aws Native. Amplify Ui Builder. Inputs. Form Field Input Config - Label string
- Position
Pulumi.
Aws | Pulumi.Native. Amplify Ui Builder. Inputs. Form Field Position0Properties Aws | Pulumi.Native. Amplify Ui Builder. Inputs. Form Field Position1Properties Aws Native. Amplify Ui Builder. Inputs. Form Field Position2Properties - Validations
List<Pulumi.
Aws Native. Amplify Ui Builder. Inputs. Form Field Validation Configuration>
FormFieldInputConfig, FormFieldInputConfigArgs
- Type string
- Default
Checked bool - Default
Country stringCode - Default
Value string - Descriptive
Text string - File
Uploader Pulumi.Config Aws Native. Amplify Ui Builder. Inputs. Form File Uploader Field Config - Is
Array bool - Max
Value double - Min
Value double - Name string
- Placeholder string
- Read
Only bool - Required bool
- Step double
- Value string
- Value
Mappings Pulumi.Aws Native. Amplify Ui Builder. Inputs. Form Value Mappings
- Type string
- Default
Checked bool - Default
Country stringCode - Default
Value string - Descriptive
Text string - File
Uploader FormConfig File Uploader Field Config - Is
Array bool - Max
Value float64 - Min
Value float64 - Name string
- Placeholder string
- Read
Only bool - Required bool
- Step float64
- Value string
- Value
Mappings FormValue Mappings
- type String
- default
Checked Boolean - default
Country StringCode - default
Value String - descriptive
Text String - file
Uploader FormConfig File Uploader Field Config - is
Array Boolean - max
Value Double - min
Value Double - name String
- placeholder String
- read
Only Boolean - required Boolean
- step Double
- value String
- value
Mappings FormValue Mappings
- type string
- default
Checked boolean - default
Country stringCode - default
Value string - descriptive
Text string - file
Uploader FormConfig File Uploader Field Config - is
Array boolean - max
Value number - min
Value number - name string
- placeholder string
- read
Only boolean - required boolean
- step number
- value string
- value
Mappings FormValue Mappings
- type str
- default_
checked bool - default_
country_ strcode - default_
value str - descriptive_
text str - file_
uploader_ Formconfig File Uploader Field Config - is_
array bool - max_
value float - min_
value float - name str
- placeholder str
- read_
only bool - required bool
- step float
- value str
- value_
mappings FormValue Mappings
- type String
- default
Checked Boolean - default
Country StringCode - default
Value String - descriptive
Text String - file
Uploader Property MapConfig - is
Array Boolean - max
Value Number - min
Value Number - name String
- placeholder String
- read
Only Boolean - required Boolean
- step Number
- value String
- value
Mappings Property Map
FormFieldPosition0Properties, FormFieldPosition0PropertiesArgs
FormFieldPosition1Properties, FormFieldPosition1PropertiesArgs
- Right
Of string
- Right
Of string
- right
Of String
- right
Of string
- right_
of str
- right
Of String
FormFieldPosition2Properties, FormFieldPosition2PropertiesArgs
- Below string
- Below string
- below String
- below string
- below str
- below String
FormFieldValidationConfiguration, FormFieldValidationConfigurationArgs
- Type string
- Num
Values List<double> - Str
Values List<string> - Validation
Message string
- Type string
- Num
Values []float64 - Str
Values []string - Validation
Message string
- type String
- num
Values List<Double> - str
Values List<String> - validation
Message String
- type string
- num
Values number[] - str
Values string[] - validation
Message string
- type str
- num_
values Sequence[float] - str_
values Sequence[str] - validation_
message str
- type String
- num
Values List<Number> - str
Values List<String> - validation
Message String
FormFileUploaderFieldConfig, FormFileUploaderFieldConfigArgs
- Accepted
File List<string>Types - Access
Level Pulumi.Aws Native. Amplify Ui Builder. Form Storage Access Level - Is
Resumable bool - Max
File doubleCount - Max
Size double - Show
Thumbnails bool
- Accepted
File []stringTypes - Access
Level FormStorage Access Level - Is
Resumable bool - Max
File float64Count - Max
Size float64 - Show
Thumbnails bool
- accepted
File List<String>Types - access
Level FormStorage Access Level - is
Resumable Boolean - max
File DoubleCount - max
Size Double - show
Thumbnails Boolean
- accepted
File string[]Types - access
Level FormStorage Access Level - is
Resumable boolean - max
File numberCount - max
Size number - show
Thumbnails boolean
- accepted_
file_ Sequence[str]types - access_
level FormStorage Access Level - is_
resumable bool - max_
file_ floatcount - max_
size float - show_
thumbnails bool
- accepted
File List<String>Types - access
Level "public" | "protected" | "private" - is
Resumable Boolean - max
File NumberCount - max
Size Number - show
Thumbnails Boolean
FormFixedPosition, FormFixedPositionArgs
- First
- first
- Form
Fixed Position First - first
- First
- first
- First
- first
- FIRST
- first
- "first"
- first
FormInputBindingPropertiesValue, FormInputBindingPropertiesValueArgs
FormInputBindingPropertiesValueProperties, FormInputBindingPropertiesValuePropertiesArgs
- Model string
- Model string
- model String
- model string
- model str
- model String
FormInputValueProperty, FormInputValuePropertyArgs
FormInputValuePropertyBindingProperties, FormInputValuePropertyBindingPropertiesArgs
FormLabelDecorator, FormLabelDecoratorArgs
- Required
- required
- Optional
- optional
- None
- none
- Form
Label Decorator Required - required
- Form
Label Decorator Optional - optional
- Form
Label Decorator None - none
- Required
- required
- Optional
- optional
- None
- none
- Required
- required
- Optional
- optional
- None
- none
- REQUIRED
- required
- OPTIONAL
- optional
- NONE
- none
- "required"
- required
- "optional"
- optional
- "none"
- none
FormSectionalElement, FormSectionalElementArgs
- Type string
- Excluded bool
- Level float64
- Orientation string
- Position
Form
Field | FormPosition0Properties Field | FormPosition1Properties Field Position2Properties - Text string
- type String
- excluded Boolean
- level Double
- orientation String
- position
Form
Field | FormPosition0Properties Field | FormPosition1Properties Field Position2Properties - text String
- type string
- excluded boolean
- level number
- orientation string
- position
Form
Field | FormPosition0Properties Field | FormPosition1Properties Field Position2Properties - text string
- type String
- excluded Boolean
- level Number
- orientation String
- position Property Map | Property Map | Property Map
- text String
FormStorageAccessLevel, FormStorageAccessLevelArgs
- Public
- public
- Protected
- protected
- Private
- private
- Form
Storage Access Level Public - public
- Form
Storage Access Level Protected - protected
- Form
Storage Access Level Private - private
- Public
- public
- Protected
- protected
- Private
- private
- Public
- public
- Protected
- protected
- Private
- private
- PUBLIC
- public
- PROTECTED
- protected
- PRIVATE
- private
- "public"
- public
- "protected"
- protected
- "private"
- private
FormStyle, FormStyleArgs
- Horizontal
Gap Pulumi.Aws | Pulumi.Native. Amplify Ui Builder. Inputs. Form Style Config0Properties Aws Native. Amplify Ui Builder. Inputs. Form Style Config1Properties - Outer
Padding Pulumi.Aws | Pulumi.Native. Amplify Ui Builder. Inputs. Form Style Config0Properties Aws Native. Amplify Ui Builder. Inputs. Form Style Config1Properties - Vertical
Gap Pulumi.Aws | Pulumi.Native. Amplify Ui Builder. Inputs. Form Style Config0Properties Aws Native. Amplify Ui Builder. Inputs. Form Style Config1Properties
FormStyleConfig0Properties, FormStyleConfig0PropertiesArgs
- Token
Reference string
- Token
Reference string
- token
Reference String
- token
Reference string
- token_
reference str
- token
Reference String
FormStyleConfig1Properties, FormStyleConfig1PropertiesArgs
- Value string
- Value string
- value String
- value string
- value str
- value String
FormValueMapping, FormValueMappingArgs
FormValueMappings, FormValueMappingsArgs
- Values
List<Pulumi.
Aws Native. Amplify Ui Builder. Inputs. Form Value Mapping> - Binding
Properties Dictionary<string, Pulumi.Aws Native. Amplify Ui Builder. Inputs. Form Input Binding Properties Value>
- Values
[]Form
Value Mapping - Binding
Properties map[string]FormInput Binding Properties Value
- values
List<Form
Value Mapping> - binding
Properties Map<String,FormInput Binding Properties Value>
- values
Form
Value Mapping[] - binding
Properties {[key: string]: FormInput Binding Properties Value}
- values
Sequence[Form
Value Mapping] - binding_
properties Mapping[str, FormInput Binding Properties Value]
- values List<Property Map>
- binding
Properties Map<Property Map>
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.