Interface ICfnFormProps
Properties for defining a CfnForm
.
Namespace: Amazon.CDK.AWS.AmplifyUIBuilder
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnFormProps
Syntax (vb)
Public Interface ICfnFormProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AmplifyUIBuilder;
FormInputValuePropertyProperty formInputValuePropertyProperty_;
var cfnFormProps = new CfnFormProps {
AppId = "appId",
Cta = new FormCTAProperty {
Cancel = new FormButtonProperty {
Children = "children",
Excluded = false,
Position = new FieldPositionProperty {
Below = "below",
Fixed = "fixed",
RightOf = "rightOf"
}
},
Clear = new FormButtonProperty {
Children = "children",
Excluded = false,
Position = new FieldPositionProperty {
Below = "below",
Fixed = "fixed",
RightOf = "rightOf"
}
},
Position = "position",
Submit = new FormButtonProperty {
Children = "children",
Excluded = false,
Position = new FieldPositionProperty {
Below = "below",
Fixed = "fixed",
RightOf = "rightOf"
}
}
},
DataType = new FormDataTypeConfigProperty {
DataSourceType = "dataSourceType",
DataTypeName = "dataTypeName"
},
EnvironmentName = "environmentName",
Fields = new Dictionary<string, object> {
{ "fieldsKey", new FieldConfigProperty {
Excluded = false,
InputType = new FieldInputConfigProperty {
Type = "type",
// the properties below are optional
DefaultChecked = false,
DefaultCountryCode = "defaultCountryCode",
DefaultValue = "defaultValue",
DescriptiveText = "descriptiveText",
FileUploaderConfig = new FileUploaderFieldConfigProperty {
AcceptedFileTypes = new [] { "acceptedFileTypes" },
AccessLevel = "accessLevel",
// the properties below are optional
IsResumable = false,
MaxFileCount = 123,
MaxSize = 123,
ShowThumbnails = false
},
IsArray = false,
MaxValue = 123,
MinValue = 123,
Name = "name",
Placeholder = "placeholder",
ReadOnly = false,
Required = false,
Step = 123,
Value = "value",
ValueMappings = new ValueMappingsProperty {
Values = new [] { new ValueMappingProperty {
Value = new FormInputValuePropertyProperty {
BindingProperties = new FormInputValuePropertyBindingPropertiesProperty {
Property = "property",
// the properties below are optional
Field = "field"
},
Concat = new [] { formInputValuePropertyProperty_ },
Value = "value"
},
// the properties below are optional
DisplayValue = new FormInputValuePropertyProperty {
BindingProperties = new FormInputValuePropertyBindingPropertiesProperty {
Property = "property",
// the properties below are optional
Field = "field"
},
Concat = new [] { formInputValuePropertyProperty_ },
Value = "value"
}
} },
// the properties below are optional
BindingProperties = new Dictionary<string, object> {
{ "bindingPropertiesKey", new FormInputBindingPropertiesValueProperty {
BindingProperties = new FormInputBindingPropertiesValuePropertiesProperty {
Model = "model"
},
Type = "type"
} }
}
}
},
Label = "label",
Position = new FieldPositionProperty {
Below = "below",
Fixed = "fixed",
RightOf = "rightOf"
},
Validations = new [] { new FieldValidationConfigurationProperty {
Type = "type",
// the properties below are optional
NumValues = new [] { 123 },
StrValues = new [] { "strValues" },
ValidationMessage = "validationMessage"
} }
} }
},
FormActionType = "formActionType",
LabelDecorator = "labelDecorator",
Name = "name",
SchemaVersion = "schemaVersion",
SectionalElements = new Dictionary<string, object> {
{ "sectionalElementsKey", new SectionalElementProperty {
Type = "type",
// the properties below are optional
Excluded = false,
Level = 123,
Orientation = "orientation",
Position = new FieldPositionProperty {
Below = "below",
Fixed = "fixed",
RightOf = "rightOf"
},
Text = "text"
} }
},
Style = new FormStyleProperty {
HorizontalGap = new FormStyleConfigProperty {
TokenReference = "tokenReference",
Value = "value"
},
OuterPadding = new FormStyleConfigProperty {
TokenReference = "tokenReference",
Value = "value"
},
VerticalGap = new FormStyleConfigProperty {
TokenReference = "tokenReference",
Value = "value"
}
},
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
}
};
Synopsis
Properties
AppId | The unique ID of the Amplify app associated with the form. |
Cta | The |
DataType | The type of data source to use to create the form. |
EnvironmentName | The name of the backend environment that is a part of the Amplify app. |
Fields | The configuration information for the form's fields. |
FormActionType | Specifies whether to perform a create or update action on the form. |
LabelDecorator | Specifies an icon or decoration to display on the form. |
Name | The name of the form. |
SchemaVersion | The schema version of the form. |
SectionalElements | The configuration information for the visual helper elements for the form. |
Style | The configuration for the form's style. |
Tags | One or more key-value pairs to use when tagging the form data. |
Properties
AppId
The unique ID of the Amplify app associated with the form.
virtual string AppId { get; }
Property Value
System.String
Remarks
Cta
The FormCTA
object that stores the call to action configuration for the form.
virtual object Cta { get; }
Property Value
System.Object
Remarks
DataType
The type of data source to use to create the form.
virtual object DataType { get; }
Property Value
System.Object
Remarks
EnvironmentName
The name of the backend environment that is a part of the Amplify app.
virtual string EnvironmentName { get; }
Property Value
System.String
Remarks
Fields
The configuration information for the form's fields.
virtual object Fields { get; }
Property Value
System.Object
Remarks
FormActionType
Specifies whether to perform a create or update action on the form.
virtual string FormActionType { get; }
Property Value
System.String
Remarks
LabelDecorator
Specifies an icon or decoration to display on the form.
virtual string LabelDecorator { get; }
Property Value
System.String
Remarks
Name
The name of the form.
virtual string Name { get; }
Property Value
System.String
Remarks
SchemaVersion
The schema version of the form.
virtual string SchemaVersion { get; }
Property Value
System.String
Remarks
SectionalElements
The configuration information for the visual helper elements for the form.
virtual object SectionalElements { get; }
Property Value
System.Object
Remarks
These elements are not associated with any data.
Style
The configuration for the form's style.
virtual object Style { get; }
Property Value
System.Object
Remarks
Tags
One or more key-value pairs to use when tagging the form data.
virtual IDictionary<string, string> Tags { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.String>