Skip to main content

forms

Creates, updates, deletes or gets a form resource or lists forms in a region

Overview

Nameforms
TypeResource
DescriptionDefinition of AWS::AmplifyUIBuilder::Form Resource Type
Idaws.amplifyuibuilder.forms

Fields

NameDatatypeDescription
app_idstring
ctaobject
data_typeobject
environment_namestring
fieldsobject
form_action_typestring
idstring
label_decoratorstring
namestring
schema_versionstring
sectional_elementsobject
styleobject
tagsobject
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all forms in a region.

SELECT
region,
app_id,
cta,
data_type,
environment_name,
fields,
form_action_type,
id,
label_decorator,
name,
schema_version,
sectional_elements,
style,
tags
FROM aws.amplifyuibuilder.forms
WHERE region = 'us-east-1';

Gets all properties from an individual form.

SELECT
region,
app_id,
cta,
data_type,
environment_name,
fields,
form_action_type,
id,
label_decorator,
name,
schema_version,
sectional_elements,
style,
tags
FROM aws.amplifyuibuilder.forms
WHERE region = 'us-east-1' AND data__Identifier = '<AppId>|<EnvironmentName>|<Id>';

INSERT example

Use the following StackQL query and manifest file to create a new form resource, using stack-deploy.

/*+ create */
INSERT INTO aws.amplifyuibuilder.forms (
AppId,
Cta,
DataType,
EnvironmentName,
Fields,
FormActionType,
LabelDecorator,
Name,
SchemaVersion,
SectionalElements,
Style,
Tags,
region
)
SELECT
'{{ AppId }}',
'{{ Cta }}',
'{{ DataType }}',
'{{ EnvironmentName }}',
'{{ Fields }}',
'{{ FormActionType }}',
'{{ LabelDecorator }}',
'{{ Name }}',
'{{ SchemaVersion }}',
'{{ SectionalElements }}',
'{{ Style }}',
'{{ Tags }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.amplifyuibuilder.forms
WHERE data__Identifier = '<AppId|EnvironmentName|Id>'
AND region = 'us-east-1';

Permissions

To operate on the forms resource, the following permissions are required:

Create

amplify:GetApp,
amplifyuibuilder:CreateForm,
amplifyuibuilder:GetForm,
amplifyuibuilder:TagResource,
amplifyuibuilder:UntagResource

Read

amplify:GetApp,
amplifyuibuilder:GetForm,
amplifyuibuilder:TagResource

Update

amplify:GetApp,
amplifyuibuilder:GetForm,
amplifyuibuilder:TagResource,
amplifyuibuilder:UntagResource,
amplifyuibuilder:UpdateForm

Delete

amplify:GetApp,
amplifyuibuilder:DeleteForm,
amplifyuibuilder:TagResource,
amplifyuibuilder:UntagResource

List

amplify:GetApp,
amplifyuibuilder:ListForms