Skip to main content

components

Creates, updates, deletes or gets a component resource or lists components in a region

Overview

Namecomponents
TypeResource
DescriptionDefinition of AWS::AmplifyUIBuilder::Component Resource Type
Idaws.amplifyuibuilder.components

Fields

NameDatatypeDescription
app_idstring
binding_propertiesobject
childrenarray
collection_propertiesobject
component_typestring
created_atstring
environment_namestring
eventsobject
idstring
modified_atstring
namestring
overridesobject
propertiesobject
schema_versionstring
source_idstring
tagsobject
variantsarray
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 components in a region.

SELECT
region,
app_id,
binding_properties,
children,
collection_properties,
component_type,
created_at,
environment_name,
events,
id,
modified_at,
name,
overrides,
properties,
schema_version,
source_id,
tags,
variants
FROM aws.amplifyuibuilder.components
WHERE region = 'us-east-1';

Gets all properties from an individual component.

SELECT
region,
app_id,
binding_properties,
children,
collection_properties,
component_type,
created_at,
environment_name,
events,
id,
modified_at,
name,
overrides,
properties,
schema_version,
source_id,
tags,
variants
FROM aws.amplifyuibuilder.components
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 component resource, using stack-deploy.

/*+ create */
INSERT INTO aws.amplifyuibuilder.components (
AppId,
BindingProperties,
Children,
CollectionProperties,
ComponentType,
EnvironmentName,
Events,
Name,
Overrides,
Properties,
SchemaVersion,
SourceId,
Tags,
Variants,
region
)
SELECT
'{{ AppId }}',
'{{ BindingProperties }}',
'{{ Children }}',
'{{ CollectionProperties }}',
'{{ ComponentType }}',
'{{ EnvironmentName }}',
'{{ Events }}',
'{{ Name }}',
'{{ Overrides }}',
'{{ Properties }}',
'{{ SchemaVersion }}',
'{{ SourceId }}',
'{{ Tags }}',
'{{ Variants }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

amplify:GetApp,
amplifyuibuilder:CreateComponent,
amplifyuibuilder:GetComponent,
amplifyuibuilder:TagResource

Read

amplify:GetApp,
amplifyuibuilder:GetComponent

Update

amplify:GetApp,
amplifyuibuilder:GetComponent,
amplifyuibuilder:TagResource,
amplifyuibuilder:UntagResource,
amplifyuibuilder:UpdateComponent

Delete

amplify:GetApp,
amplifyuibuilder:DeleteComponent,
amplifyuibuilder:GetComponent,
amplifyuibuilder:UntagResource

List

amplify:GetApp,
amplifyuibuilder:ListComponents