AmplifyUIBuilder
Welcome
API Version 2021-08-11
AmplifyUIBuilder: Welcome
Copyright © Amazon Web Services, Inc. and/or its affiliates. All rights reserved.
Amazon's trademarks and trade dress may not be used in connection with any product or service that is not Amazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored by Amazon.
Table of Contents
Welcome ... 1
Actions ... 2
CreateComponent ... 3
Request Syntax ... 3
URI Request Parameters ... 15
Request Body ... 15
Response Syntax ... 15
Response Elements ... 28
Errors ... 28
See Also ... 28
CreateTheme ... 30
Request Syntax ... 30
URI Request Parameters ... 30
Request Body ... 31
Response Syntax ... 31
Response Elements ... 31
Errors ... 32
See Also ... 32
DeleteComponent ... 33
Request Syntax ... 33
URI Request Parameters ... 33
Request Body ... 33
Response Syntax ... 33
Response Elements ... 33
Errors ... 33
See Also ... 34
DeleteTheme ... 35
Request Syntax ... 35
URI Request Parameters ... 35
Request Body ... 35
Response Syntax ... 35
Response Elements ... 35
Errors ... 35
See Also ... 36
ExchangeCodeForToken ... 37
Request Syntax ... 37
URI Request Parameters ... 37
Request Body ... 37
Response Syntax ... 37
Response Elements ... 37
Errors ... 38
See Also ... 38
ExportComponents ... 39
Request Syntax ... 39
URI Request Parameters ... 39
Request Body ... 39
Response Syntax ... 39
Response Elements ... 52
Errors ... 52
See Also ... 52
ExportThemes ... 53
Request Syntax ... 53
URI Request Parameters ... 53
Request Body ... 53
Response Syntax ... 53
Response Elements ... 54
Errors ... 54
See Also ... 54
GetComponent ... 56
Request Syntax ... 56
URI Request Parameters ... 56
Request Body ... 56
Response Syntax ... 56
Response Elements ... 69
Errors ... 69
See Also ... 69
GetTheme ... 70
Request Syntax ... 70
URI Request Parameters ... 70
Request Body ... 70
Response Syntax ... 70
Response Elements ... 71
Errors ... 71
See Also ... 71
ListComponents ... 73
Request Syntax ... 73
URI Request Parameters ... 73
Request Body ... 73
Response Syntax ... 73
Response Elements ... 74
Errors ... 74
See Also ... 74
ListThemes ... 75
Request Syntax ... 75
URI Request Parameters ... 75
Request Body ... 75
Response Syntax ... 75
Response Elements ... 76
Errors ... 76
See Also ... 76
RefreshToken ... 77
Request Syntax ... 77
URI Request Parameters ... 77
Request Body ... 77
Response Syntax ... 77
Response Elements ... 77
Errors ... 78
See Also ... 78
UpdateComponent ... 79
Request Syntax ... 79
URI Request Parameters ... 91
Request Body ... 91
Response Syntax ... 92
Response Elements ... 104
Response Elements ... 107
Errors ... 108
See Also ... 108
Data Types ... 109
ActionParameters ... 110
Contents ... 110
See Also ... 111
Component ... 112
Contents ... 112
See Also ... 114
ComponentBindingPropertiesValue ... 115
Contents ... 115
See Also ... 115
ComponentBindingPropertiesValueProperties ... 116
Contents ... 116
See Also ... 117
ComponentChild ... 118
Contents ... 118
See Also ... 118
ComponentConditionProperty ... 119
Contents ... 119
See Also ... 120
ComponentDataConfiguration ... 121
Contents ... 121
See Also ... 121
ComponentEvent ... 122
Contents ... 122
See Also ... 122
ComponentProperty ... 123
Contents ... 123
See Also ... 124
ComponentPropertyBindingProperties ... 126
Contents ... 126
See Also ... 126
ComponentSummary ... 127
Contents ... 127
See Also ... 127
ComponentVariant ... 128
Contents ... 128
See Also ... 128
CreateComponentData ... 129
Contents ... 129
See Also ... 130
CreateThemeData ... 131
Contents ... 131
See Also ... 131
ExchangeCodeForTokenRequestBody ... 132
Contents ... 132
See Also ... 132
FormBindingElement ... 133
Contents ... 133
See Also ... 133
MutationActionSetStateParameter ... 134
Contents ... 134
See Also ... 134
Predicate ... 135
Contents ... 135
See Also ... 135
RefreshTokenRequestBody ... 136
Contents ... 136
See Also ... 136
SortProperty ... 137
Contents ... 137
See Also ... 137
Theme ... 138
Contents ... 138
See Also ... 139
ThemeSummary ... 140
Contents ... 140
See Also ... 140
ThemeValue ... 141
Contents ... 141
See Also ... 141
ThemeValues ... 142
Contents ... 142
See Also ... 142
UpdateComponentData ... 143
Contents ... 143
See Also ... 144
UpdateThemeData ... 145
Contents ... 145
See Also ... 145
Common Parameters ... 146
Common Errors ... 148
Welcome
Welcome to the AWS Amplify UI Builder API documentation. This reference provides descriptions of the actions and data types for the Amplify UI Builder API.
The Amplify UI Builder API provides a programmatic interface for creating and configuring user interface (UI) component libraries and themes for use in your Amplify applications. You can then connect these UI components to an application's backend AWS resources.
You can also use the Amplify Studio visual designer to create UI components and model data for an app.
For more information, see Introduction in the Amplify Docs.
The Amplify Framework is a comprehensive set of SDKs, libraries, tools, and documentation for client app development. For more information, see the Amplify Framework. For more information about deploying an Amplify application to AWS, see the Amplify User Guide.
This document was last published on March 6, 2022.
Actions
The following actions are supported:
• CreateComponent (p. 3)
• CreateTheme (p. 30)
• DeleteComponent (p. 33)
• DeleteTheme (p. 35)
• ExchangeCodeForToken (p. 37)
• ExportComponents (p. 39)
• ExportThemes (p. 53)
• GetComponent (p. 56)
• GetTheme (p. 70)
• ListComponents (p. 73)
• ListThemes (p. 75)
• RefreshToken (p. 77)
• UpdateComponent (p. 79)
• UpdateTheme (p. 106)
CreateComponent
CreateComponent
Creates a new component for an Amplify app.
Request Syntax
POST /app/appId/environment/environmentName/components?clientToken=clientToken HTTP/1.1 Content-type: application/json
{ "componentToCreate": { "bindingProperties": { "string" : {
"bindingProperties": { "bucket": "string", "defaultValue": "string", "field": "string", "key": "string", "model": "string", "predicates": [ {
"and": [ "Predicate"
],
"field": "string", "operand": "string", "operator": "string", "or": [
"Predicate"
] } ],
"userAttribute": "string"
},
"defaultValue": "string", "type": "string"
} },
"children": [ {
"children": [ "ComponentChild"
],
"componentType": "string", "events": {
"string" : {
"action": "string", "parameters": { "anchor": {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
Request Syntax
"componentName": "string", "concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string", "property": "string", "then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
},
"fields": { "string" : {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string", "concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string", "property": "string", "then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
Request Syntax
"property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string", "concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string", "property": "string", "then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
}, "id": {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string", "concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string", "property": "string", "then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
Request Syntax
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
},
"model": "string", "state": {
"componentName": "string", "property": "string", "set": {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string", "concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string", "property": "string", "then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
} },
"target": {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
Request Syntax
"concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string", "property": "string", "then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
},
"type": {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string", "concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string", "property": "string", "then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
},
"url": {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": {
Request Syntax
"string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string", "concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string", "property": "string", "then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
} } } },
"name": "string", "properties": { "string" : {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string", "concat": [
"ComponentProperty"
],
"condition": {
Request Syntax
"defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
} } } ],
"collectionProperties": { "string" : {
"identifiers": [ "string" ], "model": "string",
"predicate": { "and": [ "Predicate"
],
"field": "string", "operand": "string", "operator": "string", "or": [
"Predicate"
] },
"sort": [ {
"direction": "string", "field": "string"
} ] } },
"componentType": "string", "events": {
"string" : {
"action": "string", "parameters": { "anchor": {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string", "concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string", "property": "string",
Request Syntax
"then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
},
"fields": { "string" : {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string", "concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string", "property": "string", "then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
} },
"global": {
"bindingProperties": { "field": "string", "property": "string"
},
Request Syntax
},
"componentName": "string", "concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string", "property": "string", "then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
}, "id": {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string", "concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string", "property": "string", "then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
},
"model": "string", "state": {
"componentName": "string", "property": "string",
Request Syntax
"set": {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string", "concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string", "property": "string", "then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
} },
"target": {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string", "concat": [
"ComponentProperty"
Request Syntax
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
},
"type": {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string", "concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string", "property": "string", "then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
},
"url": {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string", "concat": [
Request Syntax
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string", "property": "string", "then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
} } } },
"name": "string", "overrides": { "string" : {
"string" : "string"
} },
"properties": { "string" : {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string", "concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string", "property": "string",
URI Request Parameters
"userAttribute": "string", "value": "string"
} },
"schemaVersion": "string", "sourceId": "string", "tags": {
"string" : "string"
},
"variants": [ {
"overrides": { "string" : {
"string" : "string"
} },
"variantValues": { "string" : "string"
} } ] }}
URI Request Parameters
The request uses the following URI parameters.
appId (p. 3)
The unique ID of the Amplify app to associate with the component.
Required: Yes clientToken (p. 3)
The unique client token.
environmentName (p. 3)
The name of the backend environment that is a part of the Amplify app.
Required: Yes
Request Body
The request accepts the following data in JSON format.
componentToCreate (p. 3)
Represents the configuration of the component to create.
Type: CreateComponentData (p. 129) object Required: Yes
Response Syntax
HTTP/1.1 200
Content-type: application/json
Response Syntax
{ "entity": {
"appId": "string", "bindingProperties": { "string" : {
"bindingProperties": { "bucket": "string", "defaultValue": "string", "field": "string", "key": "string", "model": "string", "predicates": [ {
"and": [ "Predicate"
],
"field": "string", "operand": "string", "operator": "string", "or": [
"Predicate"
] } ],
"userAttribute": "string"
},
"defaultValue": "string", "type": "string"
} },
"children": [ {
"children": [ "ComponentChild"
],
"componentType": "string", "events": {
"string" : {
"action": "string", "parameters": { "anchor": {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string",
Response Syntax
"property": "string", "then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
},
"fields": { "string" : {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string", "concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string", "property": "string", "then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
} },
"global": {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
Response Syntax
"property": "string"
},
"componentName": "string", "concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string", "property": "string", "then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
}, "id": {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string", "concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string", "property": "string", "then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string",
Response Syntax
"property": "string", "set": {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string", "concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string", "property": "string", "then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
} },
"target": {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string", "concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string", "property": "string",
Response Syntax
"then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
},
"type": {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string", "concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string", "property": "string", "then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
},
"url": {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
Response Syntax
"concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string", "property": "string", "then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
} } } },
"name": "string", "properties": { "string" : {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string", "concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string", "property": "string", "then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
} }
Response Syntax
} ],
"collectionProperties": { "string" : {
"identifiers": [ "string" ], "model": "string",
"predicate": { "and": [ "Predicate"
],
"field": "string", "operand": "string", "operator": "string", "or": [
"Predicate"
] },
"sort": [ {
"direction": "string", "field": "string"
} ] } },
"componentType": "string", "createdAt": number,
"environmentName": "string", "events": {
"string" : {
"action": "string", "parameters": { "anchor": {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string", "concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string",
Response Syntax
"type": "string",
"userAttribute": "string", "value": "string"
},
"fields": { "string" : {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string", "concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string", "property": "string", "then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
} },
"global": {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string", "concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
Response Syntax
"operand": "string", "operandType": "string", "operator": "string", "property": "string", "then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
}, "id": {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string", "concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string", "property": "string", "then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
},
"model": "string", "state": {
"componentName": "string",
Response Syntax
"property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string", "concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string", "property": "string", "then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
} },
"target": {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string", "concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string", "property": "string", "then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
Response Syntax
"userAttribute": "string", "value": "string"
},
"type": {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string", "concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string", "property": "string", "then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
},
"url": {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string",
Response Syntax
"property": "string", "then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
} } } },
"id": "string", "modifiedAt": number, "name": "string", "overrides": { "string" : {
"string" : "string"
} },
"properties": { "string" : {
"bindingProperties": { "field": "string", "property": "string"
},
"bindings": { "string" : {
"element": "string", "property": "string"
} },
"collectionBindingProperties": { "field": "string",
"property": "string"
},
"componentName": "string", "concat": [
"ComponentProperty"
],
"condition": {
"else": "ComponentProperty", "field": "string",
"operand": "string", "operandType": "string", "operator": "string", "property": "string", "then": "ComponentProperty"
},
"configured": boolean, "defaultValue": "string", "event": "string",
"importedValue": "string", "model": "string",
"property": "string", "type": "string",
"userAttribute": "string", "value": "string"
} },
"schemaVersion": "string", "sourceId": "string",
Response Elements
"tags": {
"string" : "string"
},
"variants": [ {
"overrides": { "string" : {
"string" : "string"
} },
"variantValues": { "string" : "string"
} } ] } }
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
entity (p. 15)
Describes the configuration of the new component.
Type: Component (p. 112) object
Errors
For information about the errors that are common to all actions, see Common Errors (p. 148).
InternalServerException
An internal error has occurred. Please retry your request.
HTTP Status Code: 500 InvalidParameterException
An invalid or out-of-range value was supplied for the input parameter.
HTTP Status Code: 400 ResourceConflictException
The resource specified in the request conflicts with an existing resource.
HTTP Status Code: 409 ServiceQuotaExceededException
You exceeded your service quota. Service quotas, also referred to as limits, are the maximum number
See Also
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
CreateTheme
CreateTheme
Creates a theme to apply to the components in an Amplify app.
Request Syntax
POST /app/appId/environment/environmentName/themes?clientToken=clientToken HTTP/1.1 Content-type: application/json
{ "themeToCreate": { "name": "string", "overrides": [ {
"key": "string", "value": { "children": [ "ThemeValues"
],
"value": "string"
} } ],
"tags": {
"string" : "string"
},
"values": [ {
"key": "string", "value": { "children": [ "ThemeValues"
],
"value": "string"
} } ] }}
URI Request Parameters
The request uses the following URI parameters.
appId (p. 30)
The unique ID of the Amplify app associated with the theme.
Required: Yes clientToken (p. 30)
Request Body
Request Body
The request accepts the following data in JSON format.
themeToCreate (p. 30)
Represents the configuration of the theme to create.
Type: CreateThemeData (p. 131) object Required: Yes
Response Syntax
HTTP/1.1 200
Content-type: application/json { "entity": {
"appId": "string", "createdAt": number,
"environmentName": "string", "id": "string",
"modifiedAt": number, "name": "string", "overrides": [ {
"key": "string", "value": { "children": [ "ThemeValues"
],
"value": "string"
} } ],
"tags": {
"string" : "string"
},
"values": [ {
"key": "string", "value": { "children": [ "ThemeValues"
],
"value": "string"
} } ] } }
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
Errors
entity (p. 31)
Describes the configuration of the new theme.
Type: Theme (p. 138) object
Errors
For information about the errors that are common to all actions, see Common Errors (p. 148).
InternalServerException
An internal error has occurred. Please retry your request.
HTTP Status Code: 500 InvalidParameterException
An invalid or out-of-range value was supplied for the input parameter.
HTTP Status Code: 400 ResourceConflictException
The resource specified in the request conflicts with an existing resource.
HTTP Status Code: 409 ServiceQuotaExceededException
You exceeded your service quota. Service quotas, also referred to as limits, are the maximum number of service resources or operations for your AWS account.
HTTP Status Code: 402
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
DeleteComponent
DeleteComponent
Deletes a component from an Amplify app.
Request Syntax
DELETE /app/appId/environment/environmentName/components/id HTTP/1.1
URI Request Parameters
The request uses the following URI parameters.
appId (p. 33)
The unique ID of the Amplify app associated with the component to delete.
Required: Yes
environmentName (p. 33)
The name of the backend environment that is a part of the Amplify app.
Required: Yes id (p. 33)
The unique ID of the component to delete.
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 148).
InternalServerException
An internal error has occurred. Please retry your request.
HTTP Status Code: 500 InvalidParameterException
An invalid or out-of-range value was supplied for the input parameter.
See Also
HTTP Status Code: 400 ResourceNotFoundException
The requested resource does not exist, or access was denied.
HTTP Status Code: 404
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3