• 沒有找到結果。

WelcomeAPI Version 2021-08-11 AmplifyUIBuilder

N/A
N/A
Protected

Academic year: 2022

Share "WelcomeAPI Version 2021-08-11 AmplifyUIBuilder"

Copied!
155
0
0

加載中.... (立即查看全文)

全文

(1)

AmplifyUIBuilder

Welcome

API Version 2021-08-11

(2)

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.

(3)

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

(4)

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

(5)

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

(6)

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

(7)

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.

(8)

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)

(9)

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"

},

(10)

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",

(11)

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",

(12)

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" : {

(13)

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": {

(14)

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": {

(15)

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",

(16)

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"

},

(17)

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",

(18)

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"

(19)

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": [

(20)

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",

(21)

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

(22)

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",

(23)

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",

(24)

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",

(25)

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",

(26)

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" : {

(27)

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"

} }

(28)

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",

(29)

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",

(30)

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",

(31)

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",

(32)

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",

(33)

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",

(34)

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

(35)

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

(36)

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)

(37)

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.

(38)

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

(39)

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.

(40)

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

參考文獻

相關文件

• The  ArrayList class is an example of a  collection class. • Starting with version 5.0, Java has added a  new kind of for loop called a for each

We are not aware of any existing methods for identifying constant parameters or covariates in the parametric component of a semiparametric model, although there exists an

In the third paragraph, please write a 100-word paragraph to talk about what you’d do in the future to make this research better and some important citations if any.. Please help

Therefore, in this research, we propose an influent learning model to improve learning efficiency of learners in virtual classroom.. In this model, teacher prepares

The PROM is a combinational programmable logic device (PLD) – an integrated circuit with programmable gates divided into an AND array and an OR array to provide an

A Cloud Computing platform supports redundant, self-recovering, highly scalable programming models that allow workloads to highly scalable programming models that allow workloads to

• Use table to create a table for column-oriented or tabular data that is often stored as columns in a spreadsheet.. • Use detectImportOptions to create import options based on

The remaining positions contain //the rest of the original array elements //the rest of the original array elements.