diff --git a/CHANGELOG.md b/CHANGELOG.md index c7fdf773ca..f52d1d90d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +Release v1.44.98 (2022-09-14) +=== + +### Service Client Updates +* `service/amplifyuibuilder`: Updates service API, documentation, and paginators +* `service/ec2`: Updates service API and documentation + * This update introduces API operations to manage and create local gateway route tables, CoIP pools, and VIF group associations. + Release v1.44.97 (2022-09-13) === diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index 04038dea1f..10fd3fc5e4 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -25271,6 +25271,9 @@ var awsPartition = partition{ }, "workspaces": service{ Endpoints: serviceEndpoints{ + endpointKey{ + Region: "af-south-1", + }: endpoint{}, endpointKey{ Region: "ap-northeast-1", }: endpoint{}, diff --git a/aws/version.go b/aws/version.go index 82b5a3e06a..29c8fb9aa3 100644 --- a/aws/version.go +++ b/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.44.97" +const SDKVersion = "1.44.98" diff --git a/models/apis/amplifyuibuilder/2021-08-11/api-2.json b/models/apis/amplifyuibuilder/2021-08-11/api-2.json index b2aab2b5d3..534e3b83b4 100644 --- a/models/apis/amplifyuibuilder/2021-08-11/api-2.json +++ b/models/apis/amplifyuibuilder/2021-08-11/api-2.json @@ -29,6 +29,23 @@ ], "idempotent":true }, + "CreateForm":{ + "name":"CreateForm", + "http":{ + "method":"POST", + "requestUri":"/app/{appId}/environment/{environmentName}/forms", + "responseCode":200 + }, + "input":{"shape":"CreateFormRequest"}, + "output":{"shape":"CreateFormResponse"}, + "errors":[ + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ResourceConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"InvalidParameterException"} + ], + "idempotent":true + }, "CreateTheme":{ "name":"CreateTheme", "http":{ @@ -61,6 +78,21 @@ ], "idempotent":true }, + "DeleteForm":{ + "name":"DeleteForm", + "http":{ + "method":"DELETE", + "requestUri":"/app/{appId}/environment/{environmentName}/forms/{id}", + "responseCode":200 + }, + "input":{"shape":"DeleteFormRequest"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"} + ], + "idempotent":true + }, "DeleteTheme":{ "name":"DeleteTheme", "http":{ @@ -103,6 +135,20 @@ {"shape":"InvalidParameterException"} ] }, + "ExportForms":{ + "name":"ExportForms", + "http":{ + "method":"GET", + "requestUri":"/export/app/{appId}/environment/{environmentName}/forms", + "responseCode":200 + }, + "input":{"shape":"ExportFormsRequest"}, + "output":{"shape":"ExportFormsResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"InvalidParameterException"} + ] + }, "ExportThemes":{ "name":"ExportThemes", "http":{ @@ -132,6 +178,35 @@ {"shape":"ResourceNotFoundException"} ] }, + "GetForm":{ + "name":"GetForm", + "http":{ + "method":"GET", + "requestUri":"/app/{appId}/environment/{environmentName}/forms/{id}", + "responseCode":200 + }, + "input":{"shape":"GetFormRequest"}, + "output":{"shape":"GetFormResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "GetMetadata":{ + "name":"GetMetadata", + "http":{ + "method":"GET", + "requestUri":"/app/{appId}/environment/{environmentName}/metadata", + "responseCode":200 + }, + "input":{"shape":"GetMetadataRequest"}, + "output":{"shape":"GetMetadataResponse"}, + "errors":[ + {"shape":"UnauthorizedException"}, + {"shape":"InvalidParameterException"} + ] + }, "GetTheme":{ "name":"GetTheme", "http":{ @@ -161,6 +236,20 @@ {"shape":"InvalidParameterException"} ] }, + "ListForms":{ + "name":"ListForms", + "http":{ + "method":"GET", + "requestUri":"/app/{appId}/environment/{environmentName}/forms", + "responseCode":200 + }, + "input":{"shape":"ListFormsRequest"}, + "output":{"shape":"ListFormsResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"InvalidParameterException"} + ] + }, "ListThemes":{ "name":"ListThemes", "http":{ @@ -175,6 +264,19 @@ {"shape":"InvalidParameterException"} ] }, + "PutMetadataFlag":{ + "name":"PutMetadataFlag", + "http":{ + "method":"PUT", + "requestUri":"/app/{appId}/environment/{environmentName}/metadata/features/{featureName}", + "responseCode":200 + }, + "input":{"shape":"PutMetadataFlagRequest"}, + "errors":[ + {"shape":"UnauthorizedException"}, + {"shape":"InvalidParameterException"} + ] + }, "RefreshToken":{ "name":"RefreshToken", "http":{ @@ -204,6 +306,22 @@ ], "idempotent":true }, + "UpdateForm":{ + "name":"UpdateForm", + "http":{ + "method":"PATCH", + "requestUri":"/app/{appId}/environment/{environmentName}/forms/{id}", + "responseCode":200 + }, + "input":{"shape":"UpdateFormRequest"}, + "output":{"shape":"UpdateFormResponse"}, + "errors":[ + {"shape":"ResourceConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"InvalidParameterException"} + ], + "idempotent":true + }, "UpdateTheme":{ "name":"UpdateTheme", "http":{ @@ -236,10 +354,7 @@ "url":{"shape":"ComponentProperty"} } }, - "Boolean":{ - "type":"boolean", - "box":true - }, + "Boolean":{"type":"boolean"}, "Component":{ "type":"structure", "required":[ @@ -296,6 +411,7 @@ "key":{"shape":"String"}, "model":{"shape":"String"}, "predicates":{"shape":"PredicateList"}, + "slotName":{"shape":"String"}, "userAttribute":{"shape":"String"} } }, @@ -392,7 +508,10 @@ "componentName":{"shape":"String"}, "concat":{"shape":"ComponentPropertyList"}, "condition":{"shape":"ComponentConditionProperty"}, - "configured":{"shape":"Boolean"}, + "configured":{ + "shape":"Boolean", + "box":true + }, "defaultValue":{"shape":"String"}, "event":{"shape":"String"}, "importedValue":{"shape":"String"}, @@ -517,6 +636,64 @@ }, "payload":"entity" }, + "CreateFormData":{ + "type":"structure", + "required":[ + "dataType", + "fields", + "formActionType", + "name", + "schemaVersion", + "sectionalElements", + "style" + ], + "members":{ + "cta":{"shape":"FormCTA"}, + "dataType":{"shape":"FormDataTypeConfig"}, + "fields":{"shape":"FieldsMap"}, + "formActionType":{"shape":"FormActionType"}, + "name":{"shape":"FormName"}, + "schemaVersion":{"shape":"String"}, + "sectionalElements":{"shape":"SectionalElementMap"}, + "style":{"shape":"FormStyle"}, + "tags":{"shape":"Tags"} + } + }, + "CreateFormRequest":{ + "type":"structure", + "required":[ + "appId", + "environmentName", + "formToCreate" + ], + "members":{ + "appId":{ + "shape":"String", + "location":"uri", + "locationName":"appId" + }, + "clientToken":{ + "shape":"String", + "idempotencyToken":true, + "location":"querystring", + "locationName":"clientToken" + }, + "environmentName":{ + "shape":"String", + "location":"uri", + "locationName":"environmentName" + }, + "formToCreate":{"shape":"CreateFormData"} + }, + "payload":"formToCreate" + }, + "CreateFormResponse":{ + "type":"structure", + "members":{ + "entity":{"shape":"Form"} + }, + "payload":"entity" + }, "CreateThemeData":{ "type":"structure", "required":[ @@ -590,6 +767,31 @@ } } }, + "DeleteFormRequest":{ + "type":"structure", + "required":[ + "appId", + "environmentName", + "id" + ], + "members":{ + "appId":{ + "shape":"String", + "location":"uri", + "locationName":"appId" + }, + "environmentName":{ + "shape":"String", + "location":"uri", + "locationName":"environmentName" + }, + "id":{ + "shape":"Uuid", + "location":"uri", + "locationName":"id" + } + } + }, "DeleteThemeRequest":{ "type":"structure", "required":[ @@ -651,7 +853,10 @@ ], "members":{ "accessToken":{"shape":"SensitiveString"}, - "expiresIn":{"shape":"Integer"}, + "expiresIn":{ + "shape":"Integer", + "box":true + }, "refreshToken":{"shape":"SensitiveString"} } }, @@ -687,6 +892,38 @@ "nextToken":{"shape":"String"} } }, + "ExportFormsRequest":{ + "type":"structure", + "required":[ + "appId", + "environmentName" + ], + "members":{ + "appId":{ + "shape":"String", + "location":"uri", + "locationName":"appId" + }, + "environmentName":{ + "shape":"String", + "location":"uri", + "locationName":"environmentName" + }, + "nextToken":{ + "shape":"String", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ExportFormsResponse":{ + "type":"structure", + "required":["entities"], + "members":{ + "entities":{"shape":"FormList"}, + "nextToken":{"shape":"String"} + } + }, "ExportThemesRequest":{ "type":"structure", "required":[ @@ -719,6 +956,127 @@ "nextToken":{"shape":"String"} } }, + "FeaturesMap":{ + "type":"map", + "key":{"shape":"String"}, + "value":{"shape":"String"} + }, + "FieldConfig":{ + "type":"structure", + "members":{ + "excluded":{ + "shape":"Boolean", + "box":true + }, + "inputType":{"shape":"FieldInputConfig"}, + "label":{"shape":"String"}, + "position":{"shape":"FieldPosition"}, + "validations":{"shape":"ValidationsList"} + } + }, + "FieldInputConfig":{ + "type":"structure", + "required":["type"], + "members":{ + "defaultChecked":{ + "shape":"Boolean", + "box":true + }, + "defaultCountryCode":{"shape":"String"}, + "defaultValue":{"shape":"String"}, + "descriptiveText":{"shape":"String"}, + "maxValue":{ + "shape":"Float", + "box":true + }, + "minValue":{ + "shape":"Float", + "box":true + }, + "name":{"shape":"String"}, + "placeholder":{"shape":"String"}, + "readOnly":{ + "shape":"Boolean", + "box":true + }, + "required":{ + "shape":"Boolean", + "box":true + }, + "step":{ + "shape":"Float", + "box":true + }, + "type":{"shape":"String"}, + "value":{"shape":"String"}, + "valueMappings":{"shape":"ValueMappings"} + } + }, + "FieldPosition":{ + "type":"structure", + "members":{ + "below":{"shape":"String"}, + "fixed":{"shape":"FixedPosition"}, + "rightOf":{"shape":"String"} + }, + "union":true + }, + "FieldValidationConfiguration":{ + "type":"structure", + "required":["type"], + "members":{ + "numValues":{"shape":"NumValues"}, + "strValues":{"shape":"StrValues"}, + "type":{"shape":"String"}, + "validationMessage":{"shape":"String"} + } + }, + "FieldsMap":{ + "type":"map", + "key":{"shape":"String"}, + "value":{"shape":"FieldConfig"} + }, + "FixedPosition":{ + "type":"string", + "enum":["first"] + }, + "Float":{"type":"float"}, + "Form":{ + "type":"structure", + "required":[ + "appId", + "dataType", + "environmentName", + "fields", + "formActionType", + "id", + "name", + "schemaVersion", + "sectionalElements", + "style" + ], + "members":{ + "appId":{"shape":"String"}, + "cta":{"shape":"FormCTA"}, + "dataType":{"shape":"FormDataTypeConfig"}, + "environmentName":{"shape":"String"}, + "fields":{"shape":"FieldsMap"}, + "formActionType":{"shape":"FormActionType"}, + "id":{"shape":"Uuid"}, + "name":{"shape":"FormName"}, + "schemaVersion":{"shape":"String"}, + "sectionalElements":{"shape":"SectionalElementMap"}, + "style":{"shape":"FormStyle"}, + "tags":{"shape":"Tags"} + } + }, + "FormActionType":{ + "type":"string", + "enum":[ + "create", + "update" + ] + }, "FormBindingElement":{ "type":"structure", "required":[ @@ -735,6 +1093,106 @@ "key":{"shape":"String"}, "value":{"shape":"FormBindingElement"} }, + "FormButton":{ + "type":"structure", + "members":{ + "children":{"shape":"String"}, + "excluded":{ + "shape":"Boolean", + "box":true + }, + "position":{"shape":"FieldPosition"} + } + }, + "FormButtonsPosition":{ + "type":"string", + "enum":[ + "top", + "bottom", + "top_and_bottom" + ] + }, + "FormCTA":{ + "type":"structure", + "members":{ + "cancel":{"shape":"FormButton"}, + "clear":{"shape":"FormButton"}, + "position":{"shape":"FormButtonsPosition"}, + "submit":{"shape":"FormButton"} + } + }, + "FormDataSourceType":{ + "type":"string", + "enum":[ + "DataStore", + "Custom" + ] + }, + "FormDataTypeConfig":{ + "type":"structure", + "required":[ + "dataSourceType", + "dataTypeName" + ], + "members":{ + "dataSourceType":{"shape":"FormDataSourceType"}, + "dataTypeName":{"shape":"String"} + } + }, + "FormInputValueProperty":{ + "type":"structure", + "members":{ + "value":{"shape":"String"} + } + }, + "FormList":{ + "type":"list", + "member":{"shape":"Form"} + }, + "FormName":{ + "type":"string", + "max":255, + "min":1 + }, + "FormStyle":{ + "type":"structure", + "members":{ + "horizontalGap":{"shape":"FormStyleConfig"}, + "outerPadding":{"shape":"FormStyleConfig"}, + "verticalGap":{"shape":"FormStyleConfig"} + } + }, + "FormStyleConfig":{ + "type":"structure", + "members":{ + "tokenReference":{"shape":"String"}, + "value":{"shape":"String"} + }, + "union":true + }, + "FormSummary":{ + "type":"structure", + "required":[ + "appId", + "dataType", + "environmentName", + "formActionType", + "id", + "name" + ], + "members":{ + "appId":{"shape":"String"}, + "dataType":{"shape":"FormDataTypeConfig"}, + "environmentName":{"shape":"String"}, + "formActionType":{"shape":"FormActionType"}, + "id":{"shape":"Uuid"}, + "name":{"shape":"FormName"} + } + }, + "FormSummaryList":{ + "type":"list", + "member":{"shape":"FormSummary"} + }, "GetComponentRequest":{ "type":"structure", "required":[ @@ -767,6 +1225,64 @@ }, "payload":"component" }, + "GetFormRequest":{ + "type":"structure", + "required":[ + "appId", + "environmentName", + "id" + ], + "members":{ + "appId":{ + "shape":"String", + "location":"uri", + "locationName":"appId" + }, + "environmentName":{ + "shape":"String", + "location":"uri", + "locationName":"environmentName" + }, + "id":{ + "shape":"Uuid", + "location":"uri", + "locationName":"id" + } + } + }, + "GetFormResponse":{ + "type":"structure", + "members":{ + "form":{"shape":"Form"} + }, + "payload":"form" + }, + "GetMetadataRequest":{ + "type":"structure", + "required":[ + "appId", + "environmentName" + ], + "members":{ + "appId":{ + "shape":"String", + "location":"uri", + "locationName":"appId" + }, + "environmentName":{ + "shape":"String", + "location":"uri", + "locationName":"environmentName" + } + } + }, + "GetMetadataResponse":{ + "type":"structure", + "required":["features"], + "members":{ + "features":{"shape":"FeaturesMap"} + } + }, "GetThemeRequest":{ "type":"structure", "required":[ @@ -803,10 +1319,7 @@ "type":"list", "member":{"shape":"String"} }, - "Integer":{ - "type":"integer", - "box":true - }, + "Integer":{"type":"integer"}, "InternalServerException":{ "type":"structure", "members":{ @@ -851,6 +1364,7 @@ }, "maxResults":{ "shape":"ListComponentsLimit", + "box":true, "location":"querystring", "locationName":"maxResults" }, @@ -869,6 +1383,49 @@ "nextToken":{"shape":"String"} } }, + "ListFormsLimit":{ + "type":"integer", + "max":100, + "min":1 + }, + "ListFormsRequest":{ + "type":"structure", + "required":[ + "appId", + "environmentName" + ], + "members":{ + "appId":{ + "shape":"String", + "location":"uri", + "locationName":"appId" + }, + "environmentName":{ + "shape":"String", + "location":"uri", + "locationName":"environmentName" + }, + "maxResults":{ + "shape":"ListFormsLimit", + "box":true, + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"String", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ListFormsResponse":{ + "type":"structure", + "required":["entities"], + "members":{ + "entities":{"shape":"FormSummaryList"}, + "nextToken":{"shape":"String"} + } + }, "ListThemesLimit":{ "type":"integer", "max":100, @@ -893,6 +1450,7 @@ }, "maxResults":{ "shape":"ListThemesLimit", + "box":true, "location":"querystring", "locationName":"maxResults" }, @@ -924,6 +1482,10 @@ "set":{"shape":"ComponentProperty"} } }, + "NumValues":{ + "type":"list", + "member":{"shape":"Integer"} + }, "Predicate":{ "type":"structure", "members":{ @@ -938,6 +1500,41 @@ "type":"list", "member":{"shape":"Predicate"} }, + "PutMetadataFlagBody":{ + "type":"structure", + "required":["newValue"], + "members":{ + "newValue":{"shape":"String"} + } + }, + "PutMetadataFlagRequest":{ + "type":"structure", + "required":[ + "appId", + "body", + "environmentName", + "featureName" + ], + "members":{ + "appId":{ + "shape":"String", + "location":"uri", + "locationName":"appId" + }, + "body":{"shape":"PutMetadataFlagBody"}, + "environmentName":{ + "shape":"String", + "location":"uri", + "locationName":"environmentName" + }, + "featureName":{ + "shape":"String", + "location":"uri", + "locationName":"featureName" + } + }, + "payload":"body" + }, "RefreshTokenRequest":{ "type":"structure", "required":[ @@ -969,7 +1566,10 @@ ], "members":{ "accessToken":{"shape":"SensitiveString"}, - "expiresIn":{"shape":"Integer"} + "expiresIn":{ + "shape":"Integer", + "box":true + } } }, "ResourceConflictException":{ @@ -994,6 +1594,25 @@ }, "exception":true }, + "SectionalElement":{ + "type":"structure", + "required":["type"], + "members":{ + "level":{ + "shape":"Integer", + "box":true + }, + "orientation":{"shape":"String"}, + "position":{"shape":"FieldPosition"}, + "text":{"shape":"String"}, + "type":{"shape":"String"} + } + }, + "SectionalElementMap":{ + "type":"map", + "key":{"shape":"String"}, + "value":{"shape":"SectionalElement"} + }, "SensitiveString":{ "type":"string", "sensitive":true @@ -1031,6 +1650,10 @@ "type":"list", "member":{"shape":"SortProperty"} }, + "StrValues":{ + "type":"list", + "member":{"shape":"String"} + }, "String":{"type":"string"}, "SyntheticTimestamp_date_time":{ "type":"timestamp", @@ -1124,6 +1747,17 @@ "type":"string", "enum":["figma"] }, + "UnauthorizedException":{ + "type":"structure", + "members":{ + "message":{"shape":"String"} + }, + "error":{ + "httpStatusCode":401, + "senderFault":true + }, + "exception":true + }, "UpdateComponentData":{ "type":"structure", "members":{ @@ -1182,6 +1816,60 @@ }, "payload":"entity" }, + "UpdateFormData":{ + "type":"structure", + "members":{ + "cta":{"shape":"FormCTA"}, + "dataType":{"shape":"FormDataTypeConfig"}, + "fields":{"shape":"FieldsMap"}, + "formActionType":{"shape":"FormActionType"}, + "name":{"shape":"FormName"}, + "schemaVersion":{"shape":"String"}, + "sectionalElements":{"shape":"SectionalElementMap"}, + "style":{"shape":"FormStyle"} + } + }, + "UpdateFormRequest":{ + "type":"structure", + "required":[ + "appId", + "environmentName", + "id", + "updatedForm" + ], + "members":{ + "appId":{ + "shape":"String", + "location":"uri", + "locationName":"appId" + }, + "clientToken":{ + "shape":"String", + "idempotencyToken":true, + "location":"querystring", + "locationName":"clientToken" + }, + "environmentName":{ + "shape":"String", + "location":"uri", + "locationName":"environmentName" + }, + "id":{ + "shape":"Uuid", + "location":"uri", + "locationName":"id" + }, + "updatedForm":{"shape":"UpdateFormData"} + }, + "payload":"updatedForm" + }, + "UpdateFormResponse":{ + "type":"structure", + "members":{ + "entity":{"shape":"Form"} + }, + "payload":"entity" + }, "UpdateThemeData":{ "type":"structure", "required":["values"], @@ -1233,6 +1921,29 @@ }, "payload":"entity" }, - "Uuid":{"type":"string"} + "Uuid":{"type":"string"}, + "ValidationsList":{ + "type":"list", + "member":{"shape":"FieldValidationConfiguration"} + }, + "ValueMapping":{ + "type":"structure", + "required":["value"], + "members":{ + "displayValue":{"shape":"FormInputValueProperty"}, + "value":{"shape":"FormInputValueProperty"} + } + }, + "ValueMappingList":{ + "type":"list", + "member":{"shape":"ValueMapping"} + }, + "ValueMappings":{ + "type":"structure", + "required":["values"], + "members":{ + "values":{"shape":"ValueMappingList"} + } + } } } diff --git a/models/apis/amplifyuibuilder/2021-08-11/docs-2.json b/models/apis/amplifyuibuilder/2021-08-11/docs-2.json index 197d351ccf..ff3b740255 100644 --- a/models/apis/amplifyuibuilder/2021-08-11/docs-2.json +++ b/models/apis/amplifyuibuilder/2021-08-11/docs-2.json @@ -3,18 +3,26 @@ "service": "

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 Amazon Web Services 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 Amazon Web Services, see the Amplify User Guide.

", "operations": { "CreateComponent": "

Creates a new component for an Amplify app.

", + "CreateForm": "

Creates a new form for an Amplify app.

", "CreateTheme": "

Creates a theme to apply to the components in an Amplify app.

", "DeleteComponent": "

Deletes a component from an Amplify app.

", + "DeleteForm": "

Deletes a form from an Amplify app.

", "DeleteTheme": "

Deletes a theme from an Amplify app.

", "ExchangeCodeForToken": "

Exchanges an access code for a token.

", "ExportComponents": "

Exports component configurations to code that is ready to integrate into an Amplify app.

", + "ExportForms": "

Exports form configurations to code that is ready to integrate into an Amplify app.

", "ExportThemes": "

Exports theme configurations to code that is ready to integrate into an Amplify app.

", "GetComponent": "

Returns an existing component for an Amplify app.

", + "GetForm": "

Returns an existing form for an Amplify app.

", + "GetMetadata": "

Returns existing metadata for an Amplify app.

", "GetTheme": "

Returns an existing theme for an Amplify app.

", "ListComponents": "

Retrieves a list of components for a specified Amplify app and backend environment.

", + "ListForms": "

Retrieves a list of forms for a specified Amplify app and backend environment.

", "ListThemes": "

Retrieves a list of themes for a specified Amplify app and backend environment.

", + "PutMetadataFlag": "

Stores the metadata information about a feature on a form or view.

", "RefreshToken": "

Refreshes a previously issued access token that might have expired.

", "UpdateComponent": "

Updates an existing component.

", + "UpdateForm": "

Updates an existing form.

", "UpdateTheme": "

Updates an existing theme.

" }, "shapes": { @@ -27,7 +35,12 @@ "Boolean": { "base": null, "refs": { - "ComponentProperty$configured": "

Specifies whether the user configured the property in Amplify Studio after importing it.

" + "ComponentProperty$configured": "

Specifies whether the user configured the property in Amplify Studio after importing it.

", + "FieldConfig$excluded": "

Specifies whether to hide a field.

", + "FieldInputConfig$defaultChecked": "

Specifies whether a field has a default value.

", + "FieldInputConfig$readOnly": "

Specifies a read only field.

", + "FieldInputConfig$required": "

Specifies a field that requires input.

", + "FormButton$excluded": "

Specifies whether the button is visible on the form.

" } }, "Component": { @@ -235,6 +248,22 @@ "refs": { } }, + "CreateFormData": { + "base": "

Represents all of the information that is required to create a form.

", + "refs": { + "CreateFormRequest$formToCreate": "

Represents the configuration of the form to create.

" + } + }, + "CreateFormRequest": { + "base": null, + "refs": { + } + }, + "CreateFormResponse": { + "base": null, + "refs": { + } + }, "CreateThemeData": { "base": "

Represents all of the information that is required to create a theme.

", "refs": { @@ -256,6 +285,11 @@ "refs": { } }, + "DeleteFormRequest": { + "base": null, + "refs": { + } + }, "DeleteThemeRequest": { "base": null, "refs": { @@ -287,6 +321,16 @@ "refs": { } }, + "ExportFormsRequest": { + "base": null, + "refs": { + } + }, + "ExportFormsResponse": { + "base": null, + "refs": { + } + }, "ExportThemesRequest": { "base": null, "refs": { @@ -297,6 +341,78 @@ "refs": { } }, + "FeaturesMap": { + "base": null, + "refs": { + "GetMetadataResponse$features": "

Represents the configuration settings for the features metadata.

" + } + }, + "FieldConfig": { + "base": "

Describes the configuration information for a field in a table.

", + "refs": { + "FieldsMap$value": null + } + }, + "FieldInputConfig": { + "base": "

Describes the configuration for the default input values to display for a field.

", + "refs": { + "FieldConfig$inputType": "

Describes the configuration for the default input value to display for a field.

" + } + }, + "FieldPosition": { + "base": "

Describes the field position.

", + "refs": { + "FieldConfig$position": "

Specifies the field position.

", + "FormButton$position": "

The position of the button.

", + "SectionalElement$position": "

Specifies the position of the text in a field for a Text sectional element.

" + } + }, + "FieldValidationConfiguration": { + "base": "

Describes the validation configuration for a field.

", + "refs": { + "ValidationsList$member": null + } + }, + "FieldsMap": { + "base": null, + "refs": { + "CreateFormData$fields": "

The configuration information for the form's fields.

", + "Form$fields": "

Stores the information about the form's fields.

", + "UpdateFormData$fields": "

The configuration information for the form's fields.

" + } + }, + "FixedPosition": { + "base": null, + "refs": { + "FieldPosition$fixed": "

The field position is fixed and doesn't change in relation to other fields.

" + } + }, + "Float": { + "base": null, + "refs": { + "FieldInputConfig$maxValue": "

The maximum value to display for the field.

", + "FieldInputConfig$minValue": "

The minimum value to display for the field.

", + "FieldInputConfig$step": "

The stepping increment for a numeric value in a field.

" + } + }, + "Form": { + "base": "

Contains the configuration settings for a Form user interface (UI) element for an Amplify app. A form is a component you can add to your project by specifying a data source as the default configuration for the form.

", + "refs": { + "CreateFormResponse$entity": "

Describes the configuration of the new form.

", + "FormList$member": null, + "GetFormResponse$form": "

Represents the configuration settings for the form.

", + "UpdateFormResponse$entity": "

Describes the configuration of the updated form.

" + } + }, + "FormActionType": { + "base": null, + "refs": { + "CreateFormData$formActionType": "

Specifies whether to perform a create or update action on the form.

", + "Form$formActionType": "

The operation to perform on the specified form.

", + "FormSummary$formActionType": "

The type of operation to perform on the form.

", + "UpdateFormData$formActionType": "

Specifies whether to perform a create or update action on the form.

" + } + }, "FormBindingElement": { "base": "

Describes how to bind a component property to form data.

", "refs": { @@ -309,6 +425,93 @@ "ComponentProperty$bindings": "

The information to bind the component property to form data.

" } }, + "FormButton": { + "base": "

Describes the configuration for a button UI element that is a part of a form.

", + "refs": { + "FormCTA$cancel": "

Displays a cancel button.

", + "FormCTA$clear": "

Displays a clear button.

", + "FormCTA$submit": "

Displays a submit button.

" + } + }, + "FormButtonsPosition": { + "base": null, + "refs": { + "FormCTA$position": "

The position of the button.

" + } + }, + "FormCTA": { + "base": "

Describes the call to action button configuration for the form..

", + "refs": { + "CreateFormData$cta": "

The FormCTA object that stores the call to action configuration for the form.

", + "Form$cta": "

Stores the call to action configuration for the form.

", + "UpdateFormData$cta": "

The FormCTA object that stores the call to action configuration for the form.

" + } + }, + "FormDataSourceType": { + "base": null, + "refs": { + "FormDataTypeConfig$dataSourceType": "

The data source type, either an Amplify DataStore model or a custom data type.

" + } + }, + "FormDataTypeConfig": { + "base": "

Describes the data type configuration for the data source associated with a form.

", + "refs": { + "CreateFormData$dataType": "

The type of data source to use to create the form.

", + "Form$dataType": "

The type of data source to use to create the form.

", + "FormSummary$dataType": "

The form's data source type.

", + "UpdateFormData$dataType": "

The type of data source to use to create the form.

" + } + }, + "FormInputValueProperty": { + "base": "

Describes the configuration for an input field on a form. Use FormInputValueProperty to specify the values to render or bind by default.

", + "refs": { + "ValueMapping$displayValue": "

The value to display for the complex object.

", + "ValueMapping$value": "

The complex object.

" + } + }, + "FormList": { + "base": null, + "refs": { + "ExportFormsResponse$entities": "

Represents the configuration of the exported forms.

" + } + }, + "FormName": { + "base": null, + "refs": { + "CreateFormData$name": "

The name of the form.

", + "Form$name": "

The name of the form.

", + "FormSummary$name": "

The name of the form.

", + "UpdateFormData$name": "

The name of the form.

" + } + }, + "FormStyle": { + "base": "

Describes the configuration for the form's style.

", + "refs": { + "CreateFormData$style": "

The configuration for the form's style.

", + "Form$style": "

Stores the configuration for the form's style.

", + "UpdateFormData$style": "

The configuration for the form's style.

" + } + }, + "FormStyleConfig": { + "base": "

Describes the configuration settings for the form's style properties.

", + "refs": { + "FormStyle$horizontalGap": "

The spacing for the horizontal gap.

", + "FormStyle$outerPadding": "

The size of the outer padding for the form.

", + "FormStyle$verticalGap": "

The spacing for the vertical gap.

" + } + }, + "FormSummary": { + "base": "

Describes the basic information about a form.

", + "refs": { + "FormSummaryList$member": null + } + }, + "FormSummaryList": { + "base": null, + "refs": { + "ListFormsResponse$entities": "

The list of forms for the Amplify app.

" + } + }, "GetComponentRequest": { "base": null, "refs": { @@ -319,6 +522,26 @@ "refs": { } }, + "GetFormRequest": { + "base": null, + "refs": { + } + }, + "GetFormResponse": { + "base": null, + "refs": { + } + }, + "GetMetadataRequest": { + "base": null, + "refs": { + } + }, + "GetMetadataResponse": { + "base": null, + "refs": { + } + }, "GetThemeRequest": { "base": null, "refs": { @@ -339,7 +562,9 @@ "base": null, "refs": { "ExchangeCodeForTokenResponse$expiresIn": "

The date and time when the new access token expires.

", - "RefreshTokenResponse$expiresIn": "

The date and time when the new access token expires.

" + "NumValues$member": null, + "RefreshTokenResponse$expiresIn": "

The date and time when the new access token expires.

", + "SectionalElement$level": "

Specifies the size of the font for a Heading sectional element. Valid values are 1 | 2 | 3 | 4 | 5 | 6.

" } }, "InternalServerException": { @@ -368,6 +593,22 @@ "refs": { } }, + "ListFormsLimit": { + "base": null, + "refs": { + "ListFormsRequest$maxResults": "

The maximum number of forms to retrieve.

" + } + }, + "ListFormsRequest": { + "base": null, + "refs": { + } + }, + "ListFormsResponse": { + "base": null, + "refs": { + } + }, "ListThemesLimit": { "base": null, "refs": { @@ -390,6 +631,12 @@ "ActionParameters$state": "

A key-value pair that specifies the state property name and its initial value.

" } }, + "NumValues": { + "base": null, + "refs": { + "FieldValidationConfiguration$numValues": "

The validation to perform on a number value.

" + } + }, "Predicate": { "base": "

Stores information for generating Amplify DataStore queries. Use a Predicate to retrieve a subset of the data in a collection.

", "refs": { @@ -405,6 +652,17 @@ "Predicate$or": "

A list of predicates to combine logically.

" } }, + "PutMetadataFlagBody": { + "base": "

Stores the metadata information about a feature on a form or view.

", + "refs": { + "PutMetadataFlagRequest$body": "

The metadata information to store.

" + } + }, + "PutMetadataFlagRequest": { + "base": null, + "refs": { + } + }, "RefreshTokenRequest": { "base": null, "refs": { @@ -431,6 +689,20 @@ "refs": { } }, + "SectionalElement": { + "base": "

Stores the configuration information for a visual helper element for a form. A sectional element can be a header, a text block, or a divider. These elements are static and not associated with any data.

", + "refs": { + "SectionalElementMap$value": null + } + }, + "SectionalElementMap": { + "base": null, + "refs": { + "CreateFormData$sectionalElements": "

The configuration information for the visual helper elements for the form. These elements are not associated with any data.

", + "Form$sectionalElements": "

Stores the visual helper elements for the form that are not associated with any data.

", + "UpdateFormData$sectionalElements": "

The configuration information for the visual helper elements for the form. These elements are not associated with any data.

" + } + }, "SensitiveString": { "base": null, "refs": { @@ -464,6 +736,12 @@ "ComponentDataConfiguration$sort": "

Describes how to sort the component's properties.

" } }, + "StrValues": { + "base": null, + "refs": { + "FieldValidationConfiguration$strValues": "

The validation to perform on a string value.

" + } + }, "String": { "base": null, "refs": { @@ -480,6 +758,7 @@ "ComponentBindingPropertiesValueProperties$field": "

The field to bind the data to.

", "ComponentBindingPropertiesValueProperties$key": "

The storage key for an Amazon S3 bucket.

", "ComponentBindingPropertiesValueProperties$model": "

An Amplify DataStore model.

", + "ComponentBindingPropertiesValueProperties$slotName": "

The name of a component slot.

", "ComponentBindingPropertiesValueProperties$userAttribute": "

An authenticated user attribute.

", "ComponentChild$componentType": "

The type of the child component.

", "ComponentChild$name": "

The name of the child component.

", @@ -518,11 +797,17 @@ "CreateComponentRequest$appId": "

The unique ID of the Amplify app to associate with the component.

", "CreateComponentRequest$clientToken": "

The unique client token.

", "CreateComponentRequest$environmentName": "

The name of the backend environment that is a part of the Amplify app.

", + "CreateFormData$schemaVersion": "

The schema version of the form.

", + "CreateFormRequest$appId": "

The unique ID of the Amplify app to associate with the form.

", + "CreateFormRequest$clientToken": "

The unique client token.

", + "CreateFormRequest$environmentName": "

The name of the backend environment that is a part of the Amplify app.

", "CreateThemeRequest$appId": "

The unique ID of the Amplify app associated with the theme.

", "CreateThemeRequest$clientToken": "

The unique client token.

", "CreateThemeRequest$environmentName": "

The name of the backend environment that is a part of the Amplify app.

", "DeleteComponentRequest$appId": "

The unique ID of the Amplify app associated with the component to delete.

", "DeleteComponentRequest$environmentName": "

The name of the backend environment that is a part of the Amplify app.

", + "DeleteFormRequest$appId": "

The unique ID of the Amplify app associated with the form to delete.

", + "DeleteFormRequest$environmentName": "

The name of the backend environment that is a part of the Amplify app.

", "DeleteThemeRequest$appId": "

The unique ID of the Amplify app associated with the theme to delete.

", "DeleteThemeRequest$environmentName": "

The name of the backend environment that is a part of the Amplify app.

", "ExchangeCodeForTokenRequestBody$redirectUri": "

The location of the application that will receive the access code.

", @@ -530,15 +815,48 @@ "ExportComponentsRequest$environmentName": "

The name of the backend environment that is a part of the Amplify app.

", "ExportComponentsRequest$nextToken": "

The token to request the next page of results.

", "ExportComponentsResponse$nextToken": "

The pagination token that's included if more results are available.

", + "ExportFormsRequest$appId": "

The unique ID of the Amplify app to export forms to.

", + "ExportFormsRequest$environmentName": "

The name of the backend environment that is a part of the Amplify app.

", + "ExportFormsRequest$nextToken": "

The token to request the next page of results.

", + "ExportFormsResponse$nextToken": "

The pagination token that's included if more results are available.

", "ExportThemesRequest$appId": "

The unique ID of the Amplify app to export the themes to.

", "ExportThemesRequest$environmentName": "

The name of the backend environment that is part of the Amplify app.

", "ExportThemesRequest$nextToken": "

The token to request the next page of results.

", "ExportThemesResponse$nextToken": "

The pagination token that's included if more results are available.

", + "FeaturesMap$key": null, + "FeaturesMap$value": null, + "FieldConfig$label": "

The label for the field.

", + "FieldInputConfig$defaultCountryCode": "

The default country code for a phone number.

", + "FieldInputConfig$defaultValue": "

The default value for the field.

", + "FieldInputConfig$descriptiveText": "

The text to display to describe the field.

", + "FieldInputConfig$name": "

The name of the field.

", + "FieldInputConfig$placeholder": "

The text to display as a placeholder for the field.

", + "FieldInputConfig$type": "

The input type for the field.

", + "FieldInputConfig$value": "

The value for the field.

", + "FieldPosition$below": "

The field position is below the field specified by the string.

", + "FieldPosition$rightOf": "

The field position is to the right of the field specified by the string.

", + "FieldValidationConfiguration$type": "

The validation to perform on an object type.

", + "FieldValidationConfiguration$validationMessage": "

The validation message to display.

", + "FieldsMap$key": null, + "Form$appId": "

The unique ID of the Amplify app associated with the form.

", + "Form$environmentName": "

The name of the backend environment that is a part of the Amplify app.

", + "Form$schemaVersion": "

The schema version of the form when it was imported.

", "FormBindingElement$element": "

The name of the component to retrieve a value from.

", "FormBindingElement$property": "

The property to retrieve a value from.

", "FormBindings$key": null, + "FormButton$children": "

Describes the button's properties.

", + "FormDataTypeConfig$dataTypeName": "

The unique name of the data type you are using as the data source for the form.

", + "FormInputValueProperty$value": "

The value to assign to the input field.

", + "FormStyleConfig$tokenReference": "

A reference to a design token to use to bind the form's style properties to an existing theme.

", + "FormStyleConfig$value": "

The value of the style setting.

", + "FormSummary$appId": "

The unique ID for the app associated with the form summary.

", + "FormSummary$environmentName": "

The name of the backend environment that is part of the Amplify app.

", "GetComponentRequest$appId": "

The unique ID of the Amplify app.

", "GetComponentRequest$environmentName": "

The name of the backend environment that is part of the Amplify app.

", + "GetFormRequest$appId": "

The unique ID of the Amplify app.

", + "GetFormRequest$environmentName": "

The name of the backend environment that is part of the Amplify app.

", + "GetMetadataRequest$appId": "

The unique ID of the Amplify app.

", + "GetMetadataRequest$environmentName": "

The name of the backend environment that is part of the Amplify app.

", "GetThemeRequest$appId": "

The unique ID of the Amplify app.

", "GetThemeRequest$environmentName": "

The name of the backend environment that is part of the Amplify app.

", "IdentifierList$member": null, @@ -548,6 +866,10 @@ "ListComponentsRequest$environmentName": "

The name of the backend environment that is a part of the Amplify app.

", "ListComponentsRequest$nextToken": "

The token to request the next page of results.

", "ListComponentsResponse$nextToken": "

The pagination token that's included if more results are available.

", + "ListFormsRequest$appId": "

The unique ID for the Amplify app.

", + "ListFormsRequest$environmentName": "

The name of the backend environment that is a part of the Amplify app.

", + "ListFormsRequest$nextToken": "

The token to request the next page of results.

", + "ListFormsResponse$nextToken": "

The pagination token that's included if more results are available.

", "ListThemesRequest$appId": "

The unique ID for the Amplify app.

", "ListThemesRequest$environmentName": "

The name of the backend environment that is a part of the Amplify app.

", "ListThemesRequest$nextToken": "

The token to request the next page of results.

", @@ -557,21 +879,35 @@ "Predicate$field": "

The field to query.

", "Predicate$operand": "

The value to use when performing the evaluation.

", "Predicate$operator": "

The operator to use to perform the evaluation.

", + "PutMetadataFlagBody$newValue": "

The new information to store.

", + "PutMetadataFlagRequest$appId": "

The unique ID for the Amplify app.

", + "PutMetadataFlagRequest$environmentName": "

The name of the backend environment that is part of the Amplify app.

", + "PutMetadataFlagRequest$featureName": "

The name of the feature associated with the metadata.

", "ResourceConflictException$message": null, "ResourceNotFoundException$message": null, + "SectionalElement$orientation": "

Specifies the orientation for a Divider sectional element. Valid values are horizontal or vertical.

", + "SectionalElement$text": "

The text for a Text sectional element.

", + "SectionalElement$type": "

The type of sectional element. Valid values are Heading, Text, and Divider.

", + "SectionalElementMap$key": null, "ServiceQuotaExceededException$message": null, "SortProperty$field": "

The field to perform the sort on.

", + "StrValues$member": null, "Theme$appId": "

The unique ID for the Amplify app associated with the theme.

", "Theme$environmentName": "

The name of the backend environment that is a part of the Amplify app.

", "ThemeSummary$appId": "

The unique ID for the app associated with the theme summary.

", "ThemeSummary$environmentName": "

The name of the backend environment that is part of the Amplify app.

", "ThemeValue$value": "

The value of a theme property.

", "ThemeValues$key": "

The name of the property.

", + "UnauthorizedException$message": null, "UpdateComponentData$schemaVersion": "

The schema version of the component when it was imported.

", "UpdateComponentData$sourceId": "

The unique ID of the component in its original source system, such as Figma.

", "UpdateComponentRequest$appId": "

The unique ID for the Amplify app.

", "UpdateComponentRequest$clientToken": "

The unique client token.

", "UpdateComponentRequest$environmentName": "

The name of the backend environment that is part of the Amplify app.

", + "UpdateFormData$schemaVersion": "

The schema version of the form.

", + "UpdateFormRequest$appId": "

The unique ID for the Amplify app.

", + "UpdateFormRequest$clientToken": "

The unique client token.

", + "UpdateFormRequest$environmentName": "

The name of the backend environment that is part of the Amplify app.

", "UpdateThemeRequest$appId": "

The unique ID for the Amplify app.

", "UpdateThemeRequest$clientToken": "

The unique client token.

", "UpdateThemeRequest$environmentName": "

The name of the backend environment that is part of the Amplify app.

" @@ -603,7 +939,9 @@ "refs": { "Component$tags": "

One or more key-value pairs to use when tagging the component.

", "CreateComponentData$tags": "

One or more key-value pairs to use when tagging the component data.

", + "CreateFormData$tags": "

One or more key-value pairs to use when tagging the form data.

", "CreateThemeData$tags": "

One or more key-value pairs to use when tagging the theme data.

", + "Form$tags": "

One or more key-value pairs to use when tagging the form.

", "Theme$tags": "

One or more key-value pairs to use when tagging the theme.

" } }, @@ -674,6 +1012,11 @@ "RefreshTokenRequest$provider": "

The third-party provider for the token. The only valid value is figma.

" } }, + "UnauthorizedException": { + "base": "

You don't have permission to perform this operation.

", + "refs": { + } + }, "UpdateComponentData": { "base": "

Updates and saves all of the information about a component, based on component ID.

", "refs": { @@ -690,6 +1033,22 @@ "refs": { } }, + "UpdateFormData": { + "base": "

Updates and saves all of the information about a form, based on form ID.

", + "refs": { + "UpdateFormRequest$updatedForm": "

The request accepts the following data in JSON format.

" + } + }, + "UpdateFormRequest": { + "base": null, + "refs": { + } + }, + "UpdateFormResponse": { + "base": null, + "refs": { + } + }, "UpdateThemeData": { "base": "

Saves the data binding information for a theme.

", "refs": { @@ -712,16 +1071,45 @@ "Component$id": "

The unique ID of the component.

", "ComponentSummary$id": "

The unique ID of the component.

", "DeleteComponentRequest$id": "

The unique ID of the component to delete.

", + "DeleteFormRequest$id": "

The unique ID of the form to delete.

", "DeleteThemeRequest$id": "

The unique ID of the theme to delete.

", + "Form$id": "

The unique ID of the form.

", + "FormSummary$id": "

The ID of the form.

", "GetComponentRequest$id": "

The unique ID of the component.

", + "GetFormRequest$id": "

The unique ID of the form.

", "GetThemeRequest$id": "

The unique ID for the theme.

", "Theme$id": "

The ID for the theme.

", "ThemeSummary$id": "

The ID of the theme.

", "UpdateComponentData$id": "

The unique ID of the component to update.

", "UpdateComponentRequest$id": "

The unique ID for the component.

", + "UpdateFormRequest$id": "

The unique ID for the form.

", "UpdateThemeData$id": "

The unique ID of the theme to update.

", "UpdateThemeRequest$id": "

The unique ID for the theme.

" } + }, + "ValidationsList": { + "base": null, + "refs": { + "FieldConfig$validations": "

The validations to perform on the value in the field.

" + } + }, + "ValueMapping": { + "base": "

Associates a complex object with a display value. Use ValueMapping to store how to represent complex objects when they are displayed.

", + "refs": { + "ValueMappingList$member": null + } + }, + "ValueMappingList": { + "base": null, + "refs": { + "ValueMappings$values": "

The value and display value pairs.

" + } + }, + "ValueMappings": { + "base": "

Represents the data binding configuration for a value map.

", + "refs": { + "FieldInputConfig$valueMappings": "

The information to use to customize the input fields with data at runtime.

" + } } } } diff --git a/models/apis/amplifyuibuilder/2021-08-11/paginators-1.json b/models/apis/amplifyuibuilder/2021-08-11/paginators-1.json index c8de1450ac..c3557207f8 100644 --- a/models/apis/amplifyuibuilder/2021-08-11/paginators-1.json +++ b/models/apis/amplifyuibuilder/2021-08-11/paginators-1.json @@ -5,6 +5,11 @@ "output_token": "nextToken", "result_key": "entities" }, + "ExportForms": { + "input_token": "nextToken", + "output_token": "nextToken", + "result_key": "entities" + }, "ExportThemes": { "input_token": "nextToken", "output_token": "nextToken", @@ -16,6 +21,12 @@ "limit_key": "maxResults", "result_key": "entities" }, + "ListForms": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "entities" + }, "ListThemes": { "input_token": "nextToken", "output_token": "nextToken", diff --git a/models/apis/ec2/2016-11-15/api-2.json b/models/apis/ec2/2016-11-15/api-2.json index ceac1bdf73..88348349e7 100755 --- a/models/apis/ec2/2016-11-15/api-2.json +++ b/models/apis/ec2/2016-11-15/api-2.json @@ -485,6 +485,24 @@ "input":{"shape":"CreateClientVpnRouteRequest"}, "output":{"shape":"CreateClientVpnRouteResult"} }, + "CreateCoipCidr":{ + "name":"CreateCoipCidr", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateCoipCidrRequest"}, + "output":{"shape":"CreateCoipCidrResult"} + }, + "CreateCoipPool":{ + "name":"CreateCoipPool", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateCoipPoolRequest"}, + "output":{"shape":"CreateCoipPoolResult"} + }, "CreateCustomerGateway":{ "name":"CreateCustomerGateway", "http":{ @@ -656,6 +674,24 @@ "input":{"shape":"CreateLocalGatewayRouteRequest"}, "output":{"shape":"CreateLocalGatewayRouteResult"} }, + "CreateLocalGatewayRouteTable":{ + "name":"CreateLocalGatewayRouteTable", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateLocalGatewayRouteTableRequest"}, + "output":{"shape":"CreateLocalGatewayRouteTableResult"} + }, + "CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation":{ + "name":"CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest"}, + "output":{"shape":"CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult"} + }, "CreateLocalGatewayRouteTableVpcAssociation":{ "name":"CreateLocalGatewayRouteTableVpcAssociation", "http":{ @@ -1112,6 +1148,24 @@ "input":{"shape":"DeleteClientVpnRouteRequest"}, "output":{"shape":"DeleteClientVpnRouteResult"} }, + "DeleteCoipCidr":{ + "name":"DeleteCoipCidr", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteCoipCidrRequest"}, + "output":{"shape":"DeleteCoipCidrResult"} + }, + "DeleteCoipPool":{ + "name":"DeleteCoipPool", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteCoipPoolRequest"}, + "output":{"shape":"DeleteCoipPoolResult"} + }, "DeleteCustomerGateway":{ "name":"DeleteCustomerGateway", "http":{ @@ -1243,6 +1297,24 @@ "input":{"shape":"DeleteLocalGatewayRouteRequest"}, "output":{"shape":"DeleteLocalGatewayRouteResult"} }, + "DeleteLocalGatewayRouteTable":{ + "name":"DeleteLocalGatewayRouteTable", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteLocalGatewayRouteTableRequest"}, + "output":{"shape":"DeleteLocalGatewayRouteTableResult"} + }, + "DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation":{ + "name":"DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest"}, + "output":{"shape":"DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult"} + }, "DeleteLocalGatewayRouteTableVpcAssociation":{ "name":"DeleteLocalGatewayRouteTableVpcAssociation", "http":{ @@ -8383,6 +8455,23 @@ "locationName":"item" } }, + "CoipCidr":{ + "type":"structure", + "members":{ + "Cidr":{ + "shape":"String", + "locationName":"cidr" + }, + "CoipPoolId":{ + "shape":"Ipv4PoolCoipId", + "locationName":"coipPoolId" + }, + "LocalGatewayRouteTableId":{ + "shape":"String", + "locationName":"localGatewayRouteTableId" + } + } + }, "CoipPool":{ "type":"structure", "members":{ @@ -8973,6 +9062,48 @@ } } }, + "CreateCoipCidrRequest":{ + "type":"structure", + "required":[ + "Cidr", + "CoipPoolId" + ], + "members":{ + "Cidr":{"shape":"String"}, + "CoipPoolId":{"shape":"Ipv4PoolCoipId"}, + "DryRun":{"shape":"Boolean"} + } + }, + "CreateCoipCidrResult":{ + "type":"structure", + "members":{ + "CoipCidr":{ + "shape":"CoipCidr", + "locationName":"coipCidr" + } + } + }, + "CreateCoipPoolRequest":{ + "type":"structure", + "required":["LocalGatewayRouteTableId"], + "members":{ + "LocalGatewayRouteTableId":{"shape":"LocalGatewayRoutetableId"}, + "TagSpecifications":{ + "shape":"TagSpecificationList", + "locationName":"TagSpecification" + }, + "DryRun":{"shape":"Boolean"} + } + }, + "CreateCoipPoolResult":{ + "type":"structure", + "members":{ + "CoipPool":{ + "shape":"CoipPool", + "locationName":"coipPool" + } + } + }, "CreateCustomerGatewayRequest":{ "type":"structure", "required":[ @@ -9594,6 +9725,53 @@ } } }, + "CreateLocalGatewayRouteTableRequest":{ + "type":"structure", + "required":["LocalGatewayId"], + "members":{ + "LocalGatewayId":{"shape":"LocalGatewayId"}, + "Mode":{"shape":"LocalGatewayRouteTableMode"}, + "TagSpecifications":{ + "shape":"TagSpecificationList", + "locationName":"TagSpecification" + }, + "DryRun":{"shape":"Boolean"} + } + }, + "CreateLocalGatewayRouteTableResult":{ + "type":"structure", + "members":{ + "LocalGatewayRouteTable":{ + "shape":"LocalGatewayRouteTable", + "locationName":"localGatewayRouteTable" + } + } + }, + "CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest":{ + "type":"structure", + "required":[ + "LocalGatewayRouteTableId", + "LocalGatewayVirtualInterfaceGroupId" + ], + "members":{ + "LocalGatewayRouteTableId":{"shape":"LocalGatewayRoutetableId"}, + "LocalGatewayVirtualInterfaceGroupId":{"shape":"LocalGatewayVirtualInterfaceGroupId"}, + "TagSpecifications":{ + "shape":"TagSpecificationList", + "locationName":"TagSpecification" + }, + "DryRun":{"shape":"Boolean"} + } + }, + "CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult":{ + "type":"structure", + "members":{ + "LocalGatewayRouteTableVirtualInterfaceGroupAssociation":{ + "shape":"LocalGatewayRouteTableVirtualInterfaceGroupAssociation", + "locationName":"localGatewayRouteTableVirtualInterfaceGroupAssociation" + } + } + }, "CreateLocalGatewayRouteTableVpcAssociationRequest":{ "type":"structure", "required":[ @@ -11289,6 +11467,44 @@ } } }, + "DeleteCoipCidrRequest":{ + "type":"structure", + "required":[ + "Cidr", + "CoipPoolId" + ], + "members":{ + "Cidr":{"shape":"String"}, + "CoipPoolId":{"shape":"Ipv4PoolCoipId"}, + "DryRun":{"shape":"Boolean"} + } + }, + "DeleteCoipCidrResult":{ + "type":"structure", + "members":{ + "CoipCidr":{ + "shape":"CoipCidr", + "locationName":"coipCidr" + } + } + }, + "DeleteCoipPoolRequest":{ + "type":"structure", + "required":["CoipPoolId"], + "members":{ + "CoipPoolId":{"shape":"Ipv4PoolCoipId"}, + "DryRun":{"shape":"Boolean"} + } + }, + "DeleteCoipPoolResult":{ + "type":"structure", + "members":{ + "CoipPool":{ + "shape":"CoipPool", + "locationName":"coipPool" + } + } + }, "DeleteCustomerGatewayRequest":{ "type":"structure", "required":["CustomerGatewayId"], @@ -11670,6 +11886,40 @@ } } }, + "DeleteLocalGatewayRouteTableRequest":{ + "type":"structure", + "required":["LocalGatewayRouteTableId"], + "members":{ + "LocalGatewayRouteTableId":{"shape":"LocalGatewayRoutetableId"}, + "DryRun":{"shape":"Boolean"} + } + }, + "DeleteLocalGatewayRouteTableResult":{ + "type":"structure", + "members":{ + "LocalGatewayRouteTable":{ + "shape":"LocalGatewayRouteTable", + "locationName":"localGatewayRouteTable" + } + } + }, + "DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest":{ + "type":"structure", + "required":["LocalGatewayRouteTableVirtualInterfaceGroupAssociationId"], + "members":{ + "LocalGatewayRouteTableVirtualInterfaceGroupAssociationId":{"shape":"LocalGatewayRouteTableVirtualInterfaceGroupAssociationId"}, + "DryRun":{"shape":"Boolean"} + } + }, + "DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult":{ + "type":"structure", + "members":{ + "LocalGatewayRouteTableVirtualInterfaceGroupAssociation":{ + "shape":"LocalGatewayRouteTableVirtualInterfaceGroupAssociation", + "locationName":"localGatewayRouteTableVirtualInterfaceGroupAssociation" + } + } + }, "DeleteLocalGatewayRouteTableVpcAssociationRequest":{ "type":"structure", "required":["LocalGatewayRouteTableVpcAssociationId"], @@ -27230,6 +27480,10 @@ "Mode":{ "shape":"LocalGatewayRouteTableMode", "locationName":"mode" + }, + "StateReason":{ + "shape":"StateReason", + "locationName":"stateReason" } } }, @@ -28319,12 +28573,12 @@ "type":"structure", "required":[ "DestinationCidrBlock", - "LocalGatewayRouteTableId", - "NetworkInterfaceId" + "LocalGatewayRouteTableId" ], "members":{ "DestinationCidrBlock":{"shape":"String"}, "LocalGatewayRouteTableId":{"shape":"LocalGatewayRoutetableId"}, + "LocalGatewayVirtualInterfaceGroupId":{"shape":"LocalGatewayVirtualInterfaceGroupId"}, "NetworkInterfaceId":{"shape":"NetworkInterfaceId"}, "DryRun":{"shape":"Boolean"} } @@ -33392,6 +33646,7 @@ "client-vpn-endpoint", "customer-gateway", "carrier-gateway", + "coip-pool", "dedicated-host", "dhcp-options", "egress-only-internet-gateway", diff --git a/models/apis/ec2/2016-11-15/docs-2.json b/models/apis/ec2/2016-11-15/docs-2.json index e9c75f03b2..060e5adf7d 100755 --- a/models/apis/ec2/2016-11-15/docs-2.json +++ b/models/apis/ec2/2016-11-15/docs-2.json @@ -55,6 +55,8 @@ "CreateCarrierGateway": "

Creates a carrier gateway. For more information about carrier gateways, see Carrier gateways in the Amazon Web Services Wavelength Developer Guide.

", "CreateClientVpnEndpoint": "

Creates a Client VPN endpoint. A Client VPN endpoint is the resource you create and configure to enable and manage client VPN sessions. It is the destination endpoint at which all client VPN sessions are terminated.

", "CreateClientVpnRoute": "

Adds a route to a network to a Client VPN endpoint. Each Client VPN endpoint has a route table that describes the available destination network routes. Each route in the route table specifies the path for traffic to specific resources or networks.

", + "CreateCoipCidr": "

Creates a range of customer-owned IP addresses.

", + "CreateCoipPool": "

Creates a pool of customer-owned IP (CoIP) addresses.

", "CreateCustomerGateway": "

Provides information to Amazon Web Services about your customer gateway device. The customer gateway device is the appliance at your end of the VPN connection. You must provide the IP address of the customer gateway device’s external interface. The IP address must be static and can be behind a device performing network address translation (NAT).

For devices that use Border Gateway Protocol (BGP), you can also provide the device's BGP Autonomous System Number (ASN). You can use an existing ASN assigned to your network. If you don't have an ASN already, you can use a private ASN. For more information, see Customer gateway options for your Site-to-Site VPN connection in the Amazon Web Services Site-to-Site VPN User Guide.

To create more than one customer gateway with the same VPN type, IP address, and BGP ASN, specify a unique device name for each customer gateway. An identical request returns information about the existing customer gateway; it doesn't create a new customer gateway.

", "CreateDefaultSubnet": "

Creates a default subnet with a size /20 IPv4 CIDR block in the specified Availability Zone in your default VPC. You can have only one default subnet per Availability Zone. For more information, see Creating a default subnet in the Amazon Virtual Private Cloud User Guide.

", "CreateDefaultVpc": "

Creates a default VPC with a size /16 IPv4 CIDR block and a default subnet in each Availability Zone. For more information about the components of a default VPC, see Default VPC and default subnets in the Amazon Virtual Private Cloud User Guide. You cannot specify the components of the default VPC yourself.

If you deleted your previous default VPC, you can create a default VPC. You cannot have more than one default VPC per Region.

If your account supports EC2-Classic, you cannot use this action to create a default VPC in a Region that supports EC2-Classic. If you want a default VPC in a Region that supports EC2-Classic, see \"I really want a default VPC for my existing EC2 account. Is that possible?\" in the Default VPCs FAQ.

We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide.

", @@ -74,6 +76,8 @@ "CreateLaunchTemplate": "

Creates a launch template.

A launch template contains the parameters to launch an instance. When you launch an instance using RunInstances, you can specify a launch template instead of providing the launch parameters in the request. For more information, see Launch an instance from a launch template in the Amazon Elastic Compute Cloud User Guide.

If you want to clone an existing launch template as the basis for creating a new launch template, you can use the Amazon EC2 console. The API, SDKs, and CLI do not support cloning a template. For more information, see Create a launch template from an existing launch template in the Amazon Elastic Compute Cloud User Guide.

", "CreateLaunchTemplateVersion": "

Creates a new version of a launch template. You can specify an existing version of launch template from which to base the new version.

Launch template versions are numbered in the order in which they are created. You cannot specify, change, or replace the numbering of launch template versions.

Launch templates are immutable; after you create a launch template, you can't modify it. Instead, you can create a new version of the launch template that includes any changes you require.

For more information, see Modify a launch template (manage launch template versions) in the Amazon Elastic Compute Cloud User Guide.

", "CreateLocalGatewayRoute": "

Creates a static route for the specified local gateway route table. You must specify one of the following targets:

", + "CreateLocalGatewayRouteTable": "

Creates a local gateway route table.

", + "CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation": "

Creates a local gateway route table virtual interface group association.

", "CreateLocalGatewayRouteTableVpcAssociation": "

Associates the specified VPC with the specified local gateway route table.

", "CreateManagedPrefixList": "

Creates a managed prefix list. You can specify one or more entries for the prefix list. Each entry consists of a CIDR block and an optional description.

", "CreateNatGateway": "

Creates a NAT gateway in the specified subnet. This action creates a network interface in the specified subnet with a private IP address from the IP address range of the subnet. You can create either a public NAT gateway or a private NAT gateway.

With a public NAT gateway, internet-bound traffic from a private subnet can be routed to the NAT gateway, so that instances in a private subnet can connect to the internet.

With a private NAT gateway, private communication is routed across VPCs and on-premises networks through a transit gateway or virtual private gateway. Common use cases include running large workloads behind a small pool of allowlisted IPv4 addresses, preserving private IPv4 addresses, and communicating between overlapping networks.

For more information, see NAT gateways in the Amazon Virtual Private Cloud User Guide.

", @@ -125,6 +129,8 @@ "DeleteCarrierGateway": "

Deletes a carrier gateway.

If you do not delete the route that contains the carrier gateway as the Target, the route is a blackhole route. For information about how to delete a route, see DeleteRoute.

", "DeleteClientVpnEndpoint": "

Deletes the specified Client VPN endpoint. You must disassociate all target networks before you can delete a Client VPN endpoint.

", "DeleteClientVpnRoute": "

Deletes a route from a Client VPN endpoint. You can only delete routes that you manually added using the CreateClientVpnRoute action. You cannot delete routes that were automatically added when associating a subnet. To remove routes that have been automatically added, disassociate the target subnet from the Client VPN endpoint.

", + "DeleteCoipCidr": "

Deletes a range of customer-owned IP addresses.

", + "DeleteCoipPool": "

Deletes a pool of customer-owned IP (CoIP) addresses.

", "DeleteCustomerGateway": "

Deletes the specified customer gateway. You must delete the VPN connection before you can delete the customer gateway.

", "DeleteDhcpOptions": "

Deletes the specified set of DHCP options. You must disassociate the set of DHCP options before you can delete it. You can disassociate the set of DHCP options by associating either a new set of options or the default set of options with the VPC.

", "DeleteEgressOnlyInternetGateway": "

Deletes an egress-only internet gateway.

", @@ -140,6 +146,8 @@ "DeleteLaunchTemplate": "

Deletes a launch template. Deleting a launch template deletes all of its versions.

", "DeleteLaunchTemplateVersions": "

Deletes one or more versions of a launch template. You cannot delete the default version of a launch template; you must first assign a different version as the default. If the default version is the only version for the launch template, you must delete the entire launch template using DeleteLaunchTemplate.

", "DeleteLocalGatewayRoute": "

Deletes the specified route from the specified local gateway route table.

", + "DeleteLocalGatewayRouteTable": "

Deletes a local gateway route table.

", + "DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation": "

Deletes a local gateway route table virtual interface group association.

", "DeleteLocalGatewayRouteTableVpcAssociation": "

Deletes the specified association between a VPC and local gateway route table.

", "DeleteManagedPrefixList": "

Deletes the specified managed prefix list. You must first remove all references to the prefix list in your resources.

", "DeleteNatGateway": "

Deletes the specified NAT gateway. Deleting a public NAT gateway disassociates its Elastic IP address, but does not release the address from your account. Deleting a NAT gateway does not delete any NAT gateway routes in your route tables.

", @@ -1736,6 +1744,8 @@ "CreateClientVpnEndpointRequest$SplitTunnel": "

Indicates whether split-tunnel is enabled on the Client VPN endpoint.

By default, split-tunnel on a VPN endpoint is disabled.

For information about split-tunnel VPN endpoints, see Split-tunnel Client VPN endpoint in the Client VPN Administrator Guide.

", "CreateClientVpnEndpointRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "CreateClientVpnRouteRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CreateCoipCidrRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CreateCoipPoolRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "CreateCustomerGatewayRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "CreateDefaultSubnetRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "CreateDefaultSubnetRequest$Ipv6Native": "

Indicates whether to create an IPv6 only subnet. If you already have a default subnet for this Availability Zone, you must delete it before you can create an IPv6 only subnet.

", @@ -1760,6 +1770,8 @@ "CreateLaunchTemplateRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "CreateLaunchTemplateVersionRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "CreateLocalGatewayRouteRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CreateLocalGatewayRouteTableRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "CreateLocalGatewayRouteTableVpcAssociationRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "CreateManagedPrefixListRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "CreateNatGatewayRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", @@ -1819,6 +1831,8 @@ "DeleteCarrierGatewayRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "DeleteClientVpnEndpointRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "DeleteClientVpnRouteRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DeleteCoipCidrRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DeleteCoipPoolRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "DeleteCustomerGatewayRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "DeleteDhcpOptionsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "DeleteEgressOnlyInternetGatewayRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", @@ -1839,6 +1853,8 @@ "DeleteLaunchTemplateRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "DeleteLaunchTemplateVersionsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "DeleteLocalGatewayRouteRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DeleteLocalGatewayRouteTableRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "DeleteLocalGatewayRouteTableVpcAssociationRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "DeleteManagedPrefixListRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "DeleteNatGatewayRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", @@ -3253,10 +3269,19 @@ "GetCoipPoolUsageResult$CoipAddressUsages": "

Information about the address usage.

" } }, + "CoipCidr": { + "base": "

Information about a customer-owned IP address range.

", + "refs": { + "CreateCoipCidrResult$CoipCidr": "

Information about a range of customer-owned IP addresses.

", + "DeleteCoipCidrResult$CoipCidr": "

Information about a range of customer-owned IP addresses.

" + } + }, "CoipPool": { "base": "

Describes a customer-owned address pool.

", "refs": { - "CoipPoolSet$member": null + "CoipPoolSet$member": null, + "CreateCoipPoolResult$CoipPool": null, + "DeleteCoipPoolResult$CoipPool": null } }, "CoipPoolId": { @@ -3521,6 +3546,26 @@ "refs": { } }, + "CreateCoipCidrRequest": { + "base": null, + "refs": { + } + }, + "CreateCoipCidrResult": { + "base": null, + "refs": { + } + }, + "CreateCoipPoolRequest": { + "base": null, + "refs": { + } + }, + "CreateCoipPoolResult": { + "base": null, + "refs": { + } + }, "CreateCustomerGatewayRequest": { "base": "

Contains the parameters for CreateCustomerGateway.

", "refs": { @@ -3730,6 +3775,26 @@ "refs": { } }, + "CreateLocalGatewayRouteTableRequest": { + "base": null, + "refs": { + } + }, + "CreateLocalGatewayRouteTableResult": { + "base": null, + "refs": { + } + }, + "CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest": { + "base": null, + "refs": { + } + }, + "CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult": { + "base": null, + "refs": { + } + }, "CreateLocalGatewayRouteTableVpcAssociationRequest": { "base": null, "refs": { @@ -4503,6 +4568,26 @@ "refs": { } }, + "DeleteCoipCidrRequest": { + "base": null, + "refs": { + } + }, + "DeleteCoipCidrResult": { + "base": null, + "refs": { + } + }, + "DeleteCoipPoolRequest": { + "base": null, + "refs": { + } + }, + "DeleteCoipPoolResult": { + "base": null, + "refs": { + } + }, "DeleteCustomerGatewayRequest": { "base": "

Contains the parameters for DeleteCustomerGateway.

", "refs": { @@ -4693,6 +4778,26 @@ "refs": { } }, + "DeleteLocalGatewayRouteTableRequest": { + "base": null, + "refs": { + } + }, + "DeleteLocalGatewayRouteTableResult": { + "base": null, + "refs": { + } + }, + "DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest": { + "base": null, + "refs": { + } + }, + "DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult": { + "base": null, + "refs": { + } + }, "DeleteLocalGatewayRouteTableVpcAssociationRequest": { "base": null, "refs": { @@ -11221,8 +11326,12 @@ "Ipv4PoolCoipId": { "base": null, "refs": { + "CoipCidr$CoipPoolId": "

The ID of the address pool.

", "CoipPool$PoolId": "

The ID of the address pool.

", "CoipPoolIdSet$member": null, + "CreateCoipCidrRequest$CoipPoolId": "

The ID of the address pool.

", + "DeleteCoipCidrRequest$CoipPoolId": "

The ID of the customer-owned address pool.

", + "DeleteCoipPoolRequest$CoipPoolId": "

The ID of the CoIP pool that you want to delete.

", "GetCoipPoolUsageRequest$PoolId": "

The ID of the address pool.

" } }, @@ -12092,6 +12201,7 @@ "LocalGatewayId": { "base": null, "refs": { + "CreateLocalGatewayRouteTableRequest$LocalGatewayId": "

The ID of the local gateway.

", "CreateRouteRequest$LocalGatewayId": "

The ID of the local gateway.

", "LocalGateway$LocalGatewayId": "

The ID of the local gateway.

", "LocalGatewayIdSet$member": null, @@ -12141,6 +12251,8 @@ "LocalGatewayRouteTable": { "base": "

Describes a local gateway route table.

", "refs": { + "CreateLocalGatewayRouteTableResult$LocalGatewayRouteTable": null, + "DeleteLocalGatewayRouteTableResult$LocalGatewayRouteTable": null, "LocalGatewayRouteTableSet$member": null } }, @@ -12153,6 +12265,7 @@ "LocalGatewayRouteTableMode": { "base": null, "refs": { + "CreateLocalGatewayRouteTableRequest$Mode": "

The mode of the local gateway route table.

", "LocalGatewayRouteTable$Mode": "

The mode of the local gateway route table.

" } }, @@ -12165,12 +12278,15 @@ "LocalGatewayRouteTableVirtualInterfaceGroupAssociation": { "base": "

Describes an association between a local gateway route table and a virtual interface group.

", "refs": { + "CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult$LocalGatewayRouteTableVirtualInterfaceGroupAssociation": null, + "DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult$LocalGatewayRouteTableVirtualInterfaceGroupAssociation": null, "LocalGatewayRouteTableVirtualInterfaceGroupAssociationSet$member": null } }, "LocalGatewayRouteTableVirtualInterfaceGroupAssociationId": { "base": null, "refs": { + "DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest$LocalGatewayRouteTableVirtualInterfaceGroupAssociationId": "

The ID of the local gateway route table virtual interface group association.

", "LocalGatewayRouteTableVirtualInterfaceGroupAssociation$LocalGatewayRouteTableVirtualInterfaceGroupAssociationId": "

The ID of the association.

", "LocalGatewayRouteTableVirtualInterfaceGroupAssociationIdSet$member": null } @@ -12225,9 +12341,12 @@ "base": null, "refs": { "CoipPool$LocalGatewayRouteTableId": "

The ID of the local gateway route table.

", + "CreateCoipPoolRequest$LocalGatewayRouteTableId": "

The ID of the local gateway route table.

", "CreateLocalGatewayRouteRequest$LocalGatewayRouteTableId": "

The ID of the local gateway route table.

", + "CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest$LocalGatewayRouteTableId": "

The ID of the local gateway route table.

", "CreateLocalGatewayRouteTableVpcAssociationRequest$LocalGatewayRouteTableId": "

The ID of the local gateway route table.

", "DeleteLocalGatewayRouteRequest$LocalGatewayRouteTableId": "

The ID of the local gateway route table.

", + "DeleteLocalGatewayRouteTableRequest$LocalGatewayRouteTableId": "

The ID of the local gateway route table.

", "LocalGatewayRoute$LocalGatewayRouteTableId": "

The ID of the local gateway route table.

", "LocalGatewayRouteTableIdSet$member": null, "ModifyLocalGatewayRouteRequest$LocalGatewayRouteTableId": "

The ID of the local gateway route table.

", @@ -12256,10 +12375,12 @@ "base": null, "refs": { "CreateLocalGatewayRouteRequest$LocalGatewayVirtualInterfaceGroupId": "

The ID of the virtual interface group.

", + "CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest$LocalGatewayVirtualInterfaceGroupId": "

The ID of the local gateway route table virtual interface group association.

", "LocalGatewayRoute$LocalGatewayVirtualInterfaceGroupId": "

The ID of the virtual interface group.

", "LocalGatewayRouteTableVirtualInterfaceGroupAssociation$LocalGatewayVirtualInterfaceGroupId": "

The ID of the virtual interface group.

", "LocalGatewayVirtualInterfaceGroup$LocalGatewayVirtualInterfaceGroupId": "

The ID of the virtual interface group.

", - "LocalGatewayVirtualInterfaceGroupIdSet$member": null + "LocalGatewayVirtualInterfaceGroupIdSet$member": null, + "ModifyLocalGatewayRouteRequest$LocalGatewayVirtualInterfaceGroupId": "

The ID of the virtual interface group.

" } }, "LocalGatewayVirtualInterfaceGroupIdSet": { @@ -16509,7 +16630,8 @@ "base": "

Describes a state change.

", "refs": { "Image$StateReason": "

The reason for the state change.

", - "Instance$StateReason": "

The reason for the most recent state transition.

" + "Instance$StateReason": "

The reason for the most recent state transition.

", + "LocalGatewayRouteTable$StateReason": null } }, "StaticSourcesSupportValue": { @@ -16796,6 +16918,8 @@ "CoipAddressUsage$AwsAccountId": "

The Amazon Web Services account ID.

", "CoipAddressUsage$AwsService": "

The Amazon Web Services service.

", "CoipAddressUsage$CoIp": "

The customer-owned IP address.

", + "CoipCidr$Cidr": "

An address range in a customer-owned IP address space.

", + "CoipCidr$LocalGatewayRouteTableId": "

The ID of the local gateway route table.

", "ConfirmProductInstanceRequest$ProductCode": "

The product code. This must be a product code that you own.

", "ConfirmProductInstanceResult$OwnerId": "

The Amazon Web Services account ID of the instance owner. This is only present if the product code is attached to the instance.

", "ConnectionLogOptions$CloudwatchLogGroup": "

The name of the CloudWatch Logs log group. Required if connection logging is enabled.

", @@ -16846,6 +16970,7 @@ "CreateClientVpnRouteRequest$DestinationCidrBlock": "

The IPv4 address range, in CIDR notation, of the route destination. For example:

", "CreateClientVpnRouteRequest$Description": "

A brief description of the route.

", "CreateClientVpnRouteRequest$ClientToken": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.

", + "CreateCoipCidrRequest$Cidr": "

A customer-owned IP address range to create.

", "CreateCustomerGatewayRequest$PublicIp": "

This member has been deprecated. The Internet-routable IP address for the customer gateway's outside interface. The address must be static.

", "CreateCustomerGatewayRequest$CertificateArn": "

The Amazon Resource Name (ARN) for the customer gateway certificate.

", "CreateCustomerGatewayRequest$DeviceName": "

A name for the customer gateway device.

Length Constraints: Up to 255 characters.

", @@ -16983,6 +17108,7 @@ "CustomerGateway$Type": "

The type of VPN connection the customer gateway supports (ipsec.1).

", "CustomerGateway$DeviceName": "

The name of customer gateway device.

", "DeleteClientVpnRouteRequest$DestinationCidrBlock": "

The IPv4 address range, in CIDR notation, of the route to be deleted.

", + "DeleteCoipCidrRequest$Cidr": "

A customer-owned IP address range that you want to delete.

", "DeleteFleetError$Message": "

The description for the error code.

", "DeleteLaunchTemplateVersionsResponseErrorItem$LaunchTemplateId": "

The ID of the launch template.

", "DeleteLaunchTemplateVersionsResponseErrorItem$LaunchTemplateName": "

The name of the launch template.

", @@ -18769,6 +18895,7 @@ "CreateCapacityReservationRequest$TagSpecifications": "

The tags to apply to the Capacity Reservation during launch.

", "CreateCarrierGatewayRequest$TagSpecifications": "

The tags to associate with the carrier gateway.

", "CreateClientVpnEndpointRequest$TagSpecifications": "

The tags to apply to the Client VPN endpoint during creation.

", + "CreateCoipPoolRequest$TagSpecifications": "

The tags to assign to the CoIP address pool.

", "CreateCustomerGatewayRequest$TagSpecifications": "

The tags to apply to the customer gateway.

", "CreateDhcpOptionsRequest$TagSpecifications": "

The tags to assign to the DHCP option.

", "CreateEgressOnlyInternetGatewayRequest$TagSpecifications": "

The tags to assign to the egress-only internet gateway.

", @@ -18784,6 +18911,8 @@ "CreateIpamScopeRequest$TagSpecifications": "

The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

", "CreateKeyPairRequest$TagSpecifications": "

The tags to apply to the new key pair.

", "CreateLaunchTemplateRequest$TagSpecifications": "

The tags to apply to the launch template on creation. To tag the launch template, the resource type must be launch-template.

To specify the tags for the resources that are created when an instance is launched, you must use the TagSpecifications parameter in the launch template data structure.

", + "CreateLocalGatewayRouteTableRequest$TagSpecifications": "

The tags assigned to the local gateway route table.

", + "CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest$TagSpecifications": "

The tags assigned to the local gateway route table virtual interface group association.

", "CreateLocalGatewayRouteTableVpcAssociationRequest$TagSpecifications": "

The tags to assign to the local gateway route table VPC association.

", "CreateManagedPrefixListRequest$TagSpecifications": "

The tags to apply to the prefix list during creation.

", "CreateNatGatewayRequest$TagSpecifications": "

The tags to assign to the NAT gateway.

", diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index 19297efd7c..bff12a70de 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -14781,6 +14781,7 @@ }, "workspaces" : { "endpoints" : { + "af-south-1" : { }, "ap-northeast-1" : { }, "ap-northeast-2" : { }, "ap-south-1" : { }, diff --git a/service/amplifyuibuilder/amplifyuibuilderiface/interface.go b/service/amplifyuibuilder/amplifyuibuilderiface/interface.go index 4235d40edf..29a9049abd 100644 --- a/service/amplifyuibuilder/amplifyuibuilderiface/interface.go +++ b/service/amplifyuibuilder/amplifyuibuilderiface/interface.go @@ -64,6 +64,10 @@ type AmplifyUIBuilderAPI interface { CreateComponentWithContext(aws.Context, *amplifyuibuilder.CreateComponentInput, ...request.Option) (*amplifyuibuilder.CreateComponentOutput, error) CreateComponentRequest(*amplifyuibuilder.CreateComponentInput) (*request.Request, *amplifyuibuilder.CreateComponentOutput) + CreateForm(*amplifyuibuilder.CreateFormInput) (*amplifyuibuilder.CreateFormOutput, error) + CreateFormWithContext(aws.Context, *amplifyuibuilder.CreateFormInput, ...request.Option) (*amplifyuibuilder.CreateFormOutput, error) + CreateFormRequest(*amplifyuibuilder.CreateFormInput) (*request.Request, *amplifyuibuilder.CreateFormOutput) + CreateTheme(*amplifyuibuilder.CreateThemeInput) (*amplifyuibuilder.CreateThemeOutput, error) CreateThemeWithContext(aws.Context, *amplifyuibuilder.CreateThemeInput, ...request.Option) (*amplifyuibuilder.CreateThemeOutput, error) CreateThemeRequest(*amplifyuibuilder.CreateThemeInput) (*request.Request, *amplifyuibuilder.CreateThemeOutput) @@ -72,6 +76,10 @@ type AmplifyUIBuilderAPI interface { DeleteComponentWithContext(aws.Context, *amplifyuibuilder.DeleteComponentInput, ...request.Option) (*amplifyuibuilder.DeleteComponentOutput, error) DeleteComponentRequest(*amplifyuibuilder.DeleteComponentInput) (*request.Request, *amplifyuibuilder.DeleteComponentOutput) + DeleteForm(*amplifyuibuilder.DeleteFormInput) (*amplifyuibuilder.DeleteFormOutput, error) + DeleteFormWithContext(aws.Context, *amplifyuibuilder.DeleteFormInput, ...request.Option) (*amplifyuibuilder.DeleteFormOutput, error) + DeleteFormRequest(*amplifyuibuilder.DeleteFormInput) (*request.Request, *amplifyuibuilder.DeleteFormOutput) + DeleteTheme(*amplifyuibuilder.DeleteThemeInput) (*amplifyuibuilder.DeleteThemeOutput, error) DeleteThemeWithContext(aws.Context, *amplifyuibuilder.DeleteThemeInput, ...request.Option) (*amplifyuibuilder.DeleteThemeOutput, error) DeleteThemeRequest(*amplifyuibuilder.DeleteThemeInput) (*request.Request, *amplifyuibuilder.DeleteThemeOutput) @@ -87,6 +95,13 @@ type AmplifyUIBuilderAPI interface { ExportComponentsPages(*amplifyuibuilder.ExportComponentsInput, func(*amplifyuibuilder.ExportComponentsOutput, bool) bool) error ExportComponentsPagesWithContext(aws.Context, *amplifyuibuilder.ExportComponentsInput, func(*amplifyuibuilder.ExportComponentsOutput, bool) bool, ...request.Option) error + ExportForms(*amplifyuibuilder.ExportFormsInput) (*amplifyuibuilder.ExportFormsOutput, error) + ExportFormsWithContext(aws.Context, *amplifyuibuilder.ExportFormsInput, ...request.Option) (*amplifyuibuilder.ExportFormsOutput, error) + ExportFormsRequest(*amplifyuibuilder.ExportFormsInput) (*request.Request, *amplifyuibuilder.ExportFormsOutput) + + ExportFormsPages(*amplifyuibuilder.ExportFormsInput, func(*amplifyuibuilder.ExportFormsOutput, bool) bool) error + ExportFormsPagesWithContext(aws.Context, *amplifyuibuilder.ExportFormsInput, func(*amplifyuibuilder.ExportFormsOutput, bool) bool, ...request.Option) error + ExportThemes(*amplifyuibuilder.ExportThemesInput) (*amplifyuibuilder.ExportThemesOutput, error) ExportThemesWithContext(aws.Context, *amplifyuibuilder.ExportThemesInput, ...request.Option) (*amplifyuibuilder.ExportThemesOutput, error) ExportThemesRequest(*amplifyuibuilder.ExportThemesInput) (*request.Request, *amplifyuibuilder.ExportThemesOutput) @@ -98,6 +113,14 @@ type AmplifyUIBuilderAPI interface { GetComponentWithContext(aws.Context, *amplifyuibuilder.GetComponentInput, ...request.Option) (*amplifyuibuilder.GetComponentOutput, error) GetComponentRequest(*amplifyuibuilder.GetComponentInput) (*request.Request, *amplifyuibuilder.GetComponentOutput) + GetForm(*amplifyuibuilder.GetFormInput) (*amplifyuibuilder.GetFormOutput, error) + GetFormWithContext(aws.Context, *amplifyuibuilder.GetFormInput, ...request.Option) (*amplifyuibuilder.GetFormOutput, error) + GetFormRequest(*amplifyuibuilder.GetFormInput) (*request.Request, *amplifyuibuilder.GetFormOutput) + + GetMetadata(*amplifyuibuilder.GetMetadataInput) (*amplifyuibuilder.GetMetadataOutput, error) + GetMetadataWithContext(aws.Context, *amplifyuibuilder.GetMetadataInput, ...request.Option) (*amplifyuibuilder.GetMetadataOutput, error) + GetMetadataRequest(*amplifyuibuilder.GetMetadataInput) (*request.Request, *amplifyuibuilder.GetMetadataOutput) + GetTheme(*amplifyuibuilder.GetThemeInput) (*amplifyuibuilder.GetThemeOutput, error) GetThemeWithContext(aws.Context, *amplifyuibuilder.GetThemeInput, ...request.Option) (*amplifyuibuilder.GetThemeOutput, error) GetThemeRequest(*amplifyuibuilder.GetThemeInput) (*request.Request, *amplifyuibuilder.GetThemeOutput) @@ -109,6 +132,13 @@ type AmplifyUIBuilderAPI interface { ListComponentsPages(*amplifyuibuilder.ListComponentsInput, func(*amplifyuibuilder.ListComponentsOutput, bool) bool) error ListComponentsPagesWithContext(aws.Context, *amplifyuibuilder.ListComponentsInput, func(*amplifyuibuilder.ListComponentsOutput, bool) bool, ...request.Option) error + ListForms(*amplifyuibuilder.ListFormsInput) (*amplifyuibuilder.ListFormsOutput, error) + ListFormsWithContext(aws.Context, *amplifyuibuilder.ListFormsInput, ...request.Option) (*amplifyuibuilder.ListFormsOutput, error) + ListFormsRequest(*amplifyuibuilder.ListFormsInput) (*request.Request, *amplifyuibuilder.ListFormsOutput) + + ListFormsPages(*amplifyuibuilder.ListFormsInput, func(*amplifyuibuilder.ListFormsOutput, bool) bool) error + ListFormsPagesWithContext(aws.Context, *amplifyuibuilder.ListFormsInput, func(*amplifyuibuilder.ListFormsOutput, bool) bool, ...request.Option) error + ListThemes(*amplifyuibuilder.ListThemesInput) (*amplifyuibuilder.ListThemesOutput, error) ListThemesWithContext(aws.Context, *amplifyuibuilder.ListThemesInput, ...request.Option) (*amplifyuibuilder.ListThemesOutput, error) ListThemesRequest(*amplifyuibuilder.ListThemesInput) (*request.Request, *amplifyuibuilder.ListThemesOutput) @@ -116,6 +146,10 @@ type AmplifyUIBuilderAPI interface { ListThemesPages(*amplifyuibuilder.ListThemesInput, func(*amplifyuibuilder.ListThemesOutput, bool) bool) error ListThemesPagesWithContext(aws.Context, *amplifyuibuilder.ListThemesInput, func(*amplifyuibuilder.ListThemesOutput, bool) bool, ...request.Option) error + PutMetadataFlag(*amplifyuibuilder.PutMetadataFlagInput) (*amplifyuibuilder.PutMetadataFlagOutput, error) + PutMetadataFlagWithContext(aws.Context, *amplifyuibuilder.PutMetadataFlagInput, ...request.Option) (*amplifyuibuilder.PutMetadataFlagOutput, error) + PutMetadataFlagRequest(*amplifyuibuilder.PutMetadataFlagInput) (*request.Request, *amplifyuibuilder.PutMetadataFlagOutput) + RefreshToken(*amplifyuibuilder.RefreshTokenInput) (*amplifyuibuilder.RefreshTokenOutput, error) RefreshTokenWithContext(aws.Context, *amplifyuibuilder.RefreshTokenInput, ...request.Option) (*amplifyuibuilder.RefreshTokenOutput, error) RefreshTokenRequest(*amplifyuibuilder.RefreshTokenInput) (*request.Request, *amplifyuibuilder.RefreshTokenOutput) @@ -124,6 +158,10 @@ type AmplifyUIBuilderAPI interface { UpdateComponentWithContext(aws.Context, *amplifyuibuilder.UpdateComponentInput, ...request.Option) (*amplifyuibuilder.UpdateComponentOutput, error) UpdateComponentRequest(*amplifyuibuilder.UpdateComponentInput) (*request.Request, *amplifyuibuilder.UpdateComponentOutput) + UpdateForm(*amplifyuibuilder.UpdateFormInput) (*amplifyuibuilder.UpdateFormOutput, error) + UpdateFormWithContext(aws.Context, *amplifyuibuilder.UpdateFormInput, ...request.Option) (*amplifyuibuilder.UpdateFormOutput, error) + UpdateFormRequest(*amplifyuibuilder.UpdateFormInput) (*request.Request, *amplifyuibuilder.UpdateFormOutput) + UpdateTheme(*amplifyuibuilder.UpdateThemeInput) (*amplifyuibuilder.UpdateThemeOutput, error) UpdateThemeWithContext(aws.Context, *amplifyuibuilder.UpdateThemeInput, ...request.Option) (*amplifyuibuilder.UpdateThemeOutput, error) UpdateThemeRequest(*amplifyuibuilder.UpdateThemeInput) (*request.Request, *amplifyuibuilder.UpdateThemeOutput) diff --git a/service/amplifyuibuilder/api.go b/service/amplifyuibuilder/api.go index c2b1b201b4..87e8a6e4d2 100644 --- a/service/amplifyuibuilder/api.go +++ b/service/amplifyuibuilder/api.go @@ -103,6 +103,96 @@ func (c *AmplifyUIBuilder) CreateComponentWithContext(ctx aws.Context, input *Cr return out, req.Send() } +const opCreateForm = "CreateForm" + +// CreateFormRequest generates a "aws/request.Request" representing the +// client's request for the CreateForm operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateForm for more information on using the CreateForm +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the CreateFormRequest method. +// req, resp := client.CreateFormRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateForm +func (c *AmplifyUIBuilder) CreateFormRequest(input *CreateFormInput) (req *request.Request, output *CreateFormOutput) { + op := &request.Operation{ + Name: opCreateForm, + HTTPMethod: "POST", + HTTPPath: "/app/{appId}/environment/{environmentName}/forms", + } + + if input == nil { + input = &CreateFormInput{} + } + + output = &CreateFormOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateForm API operation for AWS Amplify UI Builder. +// +// Creates a new form for an Amplify app. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Amplify UI Builder's +// API operation CreateForm for usage and error information. +// +// Returned Error Types: +// +// - ServiceQuotaExceededException +// You exceeded your service quota. Service quotas, also referred to as limits, +// are the maximum number of service resources or operations for your Amazon +// Web Services account. +// +// - ResourceConflictException +// The resource specified in the request conflicts with an existing resource. +// +// - InternalServerException +// An internal error has occurred. Please retry your request. +// +// - InvalidParameterException +// An invalid or out-of-range value was supplied for the input parameter. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateForm +func (c *AmplifyUIBuilder) CreateForm(input *CreateFormInput) (*CreateFormOutput, error) { + req, out := c.CreateFormRequest(input) + return out, req.Send() +} + +// CreateFormWithContext is the same as CreateForm with the addition of +// the ability to pass a context and additional request options. +// +// See CreateForm for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AmplifyUIBuilder) CreateFormWithContext(ctx aws.Context, input *CreateFormInput, opts ...request.Option) (*CreateFormOutput, error) { + req, out := c.CreateFormRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateTheme = "CreateTheme" // CreateThemeRequest generates a "aws/request.Request" representing the @@ -279,6 +369,92 @@ func (c *AmplifyUIBuilder) DeleteComponentWithContext(ctx aws.Context, input *De return out, req.Send() } +const opDeleteForm = "DeleteForm" + +// DeleteFormRequest generates a "aws/request.Request" representing the +// client's request for the DeleteForm operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteForm for more information on using the DeleteForm +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteFormRequest method. +// req, resp := client.DeleteFormRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteForm +func (c *AmplifyUIBuilder) DeleteFormRequest(input *DeleteFormInput) (req *request.Request, output *DeleteFormOutput) { + op := &request.Operation{ + Name: opDeleteForm, + HTTPMethod: "DELETE", + HTTPPath: "/app/{appId}/environment/{environmentName}/forms/{id}", + } + + if input == nil { + input = &DeleteFormInput{} + } + + output = &DeleteFormOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteForm API operation for AWS Amplify UI Builder. +// +// Deletes a form from an Amplify app. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Amplify UI Builder's +// API operation DeleteForm for usage and error information. +// +// Returned Error Types: +// +// - InternalServerException +// An internal error has occurred. Please retry your request. +// +// - InvalidParameterException +// An invalid or out-of-range value was supplied for the input parameter. +// +// - ResourceNotFoundException +// The requested resource does not exist, or access was denied. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteForm +func (c *AmplifyUIBuilder) DeleteForm(input *DeleteFormInput) (*DeleteFormOutput, error) { + req, out := c.DeleteFormRequest(input) + return out, req.Send() +} + +// DeleteFormWithContext is the same as DeleteForm with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteForm for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AmplifyUIBuilder) DeleteFormWithContext(ctx aws.Context, input *DeleteFormInput, opts ...request.Option) (*DeleteFormOutput, error) { + req, out := c.DeleteFormRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteTheme = "DeleteTheme" // DeleteThemeRequest generates a "aws/request.Request" representing the @@ -583,6 +759,146 @@ func (c *AmplifyUIBuilder) ExportComponentsPagesWithContext(ctx aws.Context, inp return p.Err() } +const opExportForms = "ExportForms" + +// ExportFormsRequest generates a "aws/request.Request" representing the +// client's request for the ExportForms operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ExportForms for more information on using the ExportForms +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ExportFormsRequest method. +// req, resp := client.ExportFormsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportForms +func (c *AmplifyUIBuilder) ExportFormsRequest(input *ExportFormsInput) (req *request.Request, output *ExportFormsOutput) { + op := &request.Operation{ + Name: opExportForms, + HTTPMethod: "GET", + HTTPPath: "/export/app/{appId}/environment/{environmentName}/forms", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "", + TruncationToken: "", + }, + } + + if input == nil { + input = &ExportFormsInput{} + } + + output = &ExportFormsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ExportForms API operation for AWS Amplify UI Builder. +// +// Exports form configurations to code that is ready to integrate into an Amplify +// app. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Amplify UI Builder's +// API operation ExportForms for usage and error information. +// +// Returned Error Types: +// +// - InternalServerException +// An internal error has occurred. Please retry your request. +// +// - InvalidParameterException +// An invalid or out-of-range value was supplied for the input parameter. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportForms +func (c *AmplifyUIBuilder) ExportForms(input *ExportFormsInput) (*ExportFormsOutput, error) { + req, out := c.ExportFormsRequest(input) + return out, req.Send() +} + +// ExportFormsWithContext is the same as ExportForms with the addition of +// the ability to pass a context and additional request options. +// +// See ExportForms for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AmplifyUIBuilder) ExportFormsWithContext(ctx aws.Context, input *ExportFormsInput, opts ...request.Option) (*ExportFormsOutput, error) { + req, out := c.ExportFormsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ExportFormsPages iterates over the pages of a ExportForms operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ExportForms method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ExportForms operation. +// pageNum := 0 +// err := client.ExportFormsPages(params, +// func(page *amplifyuibuilder.ExportFormsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *AmplifyUIBuilder) ExportFormsPages(input *ExportFormsInput, fn func(*ExportFormsOutput, bool) bool) error { + return c.ExportFormsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ExportFormsPagesWithContext same as ExportFormsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AmplifyUIBuilder) ExportFormsPagesWithContext(ctx aws.Context, input *ExportFormsInput, fn func(*ExportFormsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ExportFormsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ExportFormsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ExportFormsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opExportThemes = "ExportThemes" // ExportThemesRequest generates a "aws/request.Request" representing the @@ -808,57 +1124,57 @@ func (c *AmplifyUIBuilder) GetComponentWithContext(ctx aws.Context, input *GetCo return out, req.Send() } -const opGetTheme = "GetTheme" +const opGetForm = "GetForm" -// GetThemeRequest generates a "aws/request.Request" representing the -// client's request for the GetTheme operation. The "output" return +// GetFormRequest generates a "aws/request.Request" representing the +// client's request for the GetForm operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetTheme for more information on using the GetTheme +// See GetForm for more information on using the GetForm // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the GetThemeRequest method. -// req, resp := client.GetThemeRequest(params) +// // Example sending a request using the GetFormRequest method. +// req, resp := client.GetFormRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetTheme -func (c *AmplifyUIBuilder) GetThemeRequest(input *GetThemeInput) (req *request.Request, output *GetThemeOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetForm +func (c *AmplifyUIBuilder) GetFormRequest(input *GetFormInput) (req *request.Request, output *GetFormOutput) { op := &request.Operation{ - Name: opGetTheme, + Name: opGetForm, HTTPMethod: "GET", - HTTPPath: "/app/{appId}/environment/{environmentName}/themes/{id}", + HTTPPath: "/app/{appId}/environment/{environmentName}/forms/{id}", } if input == nil { - input = &GetThemeInput{} + input = &GetFormInput{} } - output = &GetThemeOutput{} + output = &GetFormOutput{} req = c.newRequest(op, input, output) return } -// GetTheme API operation for AWS Amplify UI Builder. +// GetForm API operation for AWS Amplify UI Builder. // -// Returns an existing theme for an Amplify app. +// Returns an existing form for an Amplify app. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Amplify UI Builder's -// API operation GetTheme for usage and error information. +// API operation GetForm for usage and error information. // // Returned Error Types: // @@ -871,9 +1187,176 @@ func (c *AmplifyUIBuilder) GetThemeRequest(input *GetThemeInput) (req *request.R // - ResourceNotFoundException // The requested resource does not exist, or access was denied. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetTheme -func (c *AmplifyUIBuilder) GetTheme(input *GetThemeInput) (*GetThemeOutput, error) { - req, out := c.GetThemeRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetForm +func (c *AmplifyUIBuilder) GetForm(input *GetFormInput) (*GetFormOutput, error) { + req, out := c.GetFormRequest(input) + return out, req.Send() +} + +// GetFormWithContext is the same as GetForm with the addition of +// the ability to pass a context and additional request options. +// +// See GetForm for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AmplifyUIBuilder) GetFormWithContext(ctx aws.Context, input *GetFormInput, opts ...request.Option) (*GetFormOutput, error) { + req, out := c.GetFormRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetMetadata = "GetMetadata" + +// GetMetadataRequest generates a "aws/request.Request" representing the +// client's request for the GetMetadata operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetMetadata for more information on using the GetMetadata +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetMetadataRequest method. +// req, resp := client.GetMetadataRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetMetadata +func (c *AmplifyUIBuilder) GetMetadataRequest(input *GetMetadataInput) (req *request.Request, output *GetMetadataOutput) { + op := &request.Operation{ + Name: opGetMetadata, + HTTPMethod: "GET", + HTTPPath: "/app/{appId}/environment/{environmentName}/metadata", + } + + if input == nil { + input = &GetMetadataInput{} + } + + output = &GetMetadataOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetMetadata API operation for AWS Amplify UI Builder. +// +// Returns existing metadata for an Amplify app. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Amplify UI Builder's +// API operation GetMetadata for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedException +// You don't have permission to perform this operation. +// +// - InvalidParameterException +// An invalid or out-of-range value was supplied for the input parameter. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetMetadata +func (c *AmplifyUIBuilder) GetMetadata(input *GetMetadataInput) (*GetMetadataOutput, error) { + req, out := c.GetMetadataRequest(input) + return out, req.Send() +} + +// GetMetadataWithContext is the same as GetMetadata with the addition of +// the ability to pass a context and additional request options. +// +// See GetMetadata for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AmplifyUIBuilder) GetMetadataWithContext(ctx aws.Context, input *GetMetadataInput, opts ...request.Option) (*GetMetadataOutput, error) { + req, out := c.GetMetadataRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetTheme = "GetTheme" + +// GetThemeRequest generates a "aws/request.Request" representing the +// client's request for the GetTheme operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetTheme for more information on using the GetTheme +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetThemeRequest method. +// req, resp := client.GetThemeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetTheme +func (c *AmplifyUIBuilder) GetThemeRequest(input *GetThemeInput) (req *request.Request, output *GetThemeOutput) { + op := &request.Operation{ + Name: opGetTheme, + HTTPMethod: "GET", + HTTPPath: "/app/{appId}/environment/{environmentName}/themes/{id}", + } + + if input == nil { + input = &GetThemeInput{} + } + + output = &GetThemeOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetTheme API operation for AWS Amplify UI Builder. +// +// Returns an existing theme for an Amplify app. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Amplify UI Builder's +// API operation GetTheme for usage and error information. +// +// Returned Error Types: +// +// - InternalServerException +// An internal error has occurred. Please retry your request. +// +// - InvalidParameterException +// An invalid or out-of-range value was supplied for the input parameter. +// +// - ResourceNotFoundException +// The requested resource does not exist, or access was denied. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetTheme +func (c *AmplifyUIBuilder) GetTheme(input *GetThemeInput) (*GetThemeOutput, error) { + req, out := c.GetThemeRequest(input) return out, req.Send() } @@ -1032,36 +1515,36 @@ func (c *AmplifyUIBuilder) ListComponentsPagesWithContext(ctx aws.Context, input return p.Err() } -const opListThemes = "ListThemes" +const opListForms = "ListForms" -// ListThemesRequest generates a "aws/request.Request" representing the -// client's request for the ListThemes operation. The "output" return +// ListFormsRequest generates a "aws/request.Request" representing the +// client's request for the ListForms operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListThemes for more information on using the ListThemes +// See ListForms for more information on using the ListForms // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the ListThemesRequest method. -// req, resp := client.ListThemesRequest(params) +// // Example sending a request using the ListFormsRequest method. +// req, resp := client.ListFormsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListThemes -func (c *AmplifyUIBuilder) ListThemesRequest(input *ListThemesInput) (req *request.Request, output *ListThemesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListForms +func (c *AmplifyUIBuilder) ListFormsRequest(input *ListFormsInput) (req *request.Request, output *ListFormsOutput) { op := &request.Operation{ - Name: opListThemes, + Name: opListForms, HTTPMethod: "GET", - HTTPPath: "/app/{appId}/environment/{environmentName}/themes", + HTTPPath: "/app/{appId}/environment/{environmentName}/forms", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, @@ -1071,24 +1554,24 @@ func (c *AmplifyUIBuilder) ListThemesRequest(input *ListThemesInput) (req *reque } if input == nil { - input = &ListThemesInput{} + input = &ListFormsInput{} } - output = &ListThemesOutput{} + output = &ListFormsOutput{} req = c.newRequest(op, input, output) return } -// ListThemes API operation for AWS Amplify UI Builder. +// ListForms API operation for AWS Amplify UI Builder. // -// Retrieves a list of themes for a specified Amplify app and backend environment. +// Retrieves a list of forms for a specified Amplify app and backend environment. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Amplify UI Builder's -// API operation ListThemes for usage and error information. +// API operation ListForms for usage and error information. // // Returned Error Types: // @@ -1098,64 +1581,64 @@ func (c *AmplifyUIBuilder) ListThemesRequest(input *ListThemesInput) (req *reque // - InvalidParameterException // An invalid or out-of-range value was supplied for the input parameter. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListThemes -func (c *AmplifyUIBuilder) ListThemes(input *ListThemesInput) (*ListThemesOutput, error) { - req, out := c.ListThemesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListForms +func (c *AmplifyUIBuilder) ListForms(input *ListFormsInput) (*ListFormsOutput, error) { + req, out := c.ListFormsRequest(input) return out, req.Send() } -// ListThemesWithContext is the same as ListThemes with the addition of +// ListFormsWithContext is the same as ListForms with the addition of // the ability to pass a context and additional request options. // -// See ListThemes for details on how to use this API operation. +// See ListForms for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *AmplifyUIBuilder) ListThemesWithContext(ctx aws.Context, input *ListThemesInput, opts ...request.Option) (*ListThemesOutput, error) { - req, out := c.ListThemesRequest(input) +func (c *AmplifyUIBuilder) ListFormsWithContext(ctx aws.Context, input *ListFormsInput, opts ...request.Option) (*ListFormsOutput, error) { + req, out := c.ListFormsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListThemesPages iterates over the pages of a ListThemes operation, +// ListFormsPages iterates over the pages of a ListForms operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListThemes method for more information on how to use this operation. +// See ListForms method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // -// // Example iterating over at most 3 pages of a ListThemes operation. +// // Example iterating over at most 3 pages of a ListForms operation. // pageNum := 0 -// err := client.ListThemesPages(params, -// func(page *amplifyuibuilder.ListThemesOutput, lastPage bool) bool { +// err := client.ListFormsPages(params, +// func(page *amplifyuibuilder.ListFormsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) -func (c *AmplifyUIBuilder) ListThemesPages(input *ListThemesInput, fn func(*ListThemesOutput, bool) bool) error { - return c.ListThemesPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *AmplifyUIBuilder) ListFormsPages(input *ListFormsInput, fn func(*ListFormsOutput, bool) bool) error { + return c.ListFormsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListThemesPagesWithContext same as ListThemesPages except +// ListFormsPagesWithContext same as ListFormsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *AmplifyUIBuilder) ListThemesPagesWithContext(ctx aws.Context, input *ListThemesInput, fn func(*ListThemesOutput, bool) bool, opts ...request.Option) error { +func (c *AmplifyUIBuilder) ListFormsPagesWithContext(ctx aws.Context, input *ListFormsInput, fn func(*ListFormsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListThemesInput + var inCpy *ListFormsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListThemesRequest(inCpy) + req, _ := c.ListFormsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -1163,7 +1646,7 @@ func (c *AmplifyUIBuilder) ListThemesPagesWithContext(ctx aws.Context, input *Li } for p.Next() { - if !fn(p.Page().(*ListThemesOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListFormsOutput), !p.HasNextPage()) { break } } @@ -1171,109 +1654,331 @@ func (c *AmplifyUIBuilder) ListThemesPagesWithContext(ctx aws.Context, input *Li return p.Err() } -const opRefreshToken = "RefreshToken" +const opListThemes = "ListThemes" -// RefreshTokenRequest generates a "aws/request.Request" representing the -// client's request for the RefreshToken operation. The "output" return +// ListThemesRequest generates a "aws/request.Request" representing the +// client's request for the ListThemes operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See RefreshToken for more information on using the RefreshToken +// See ListThemes for more information on using the ListThemes // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the RefreshTokenRequest method. -// req, resp := client.RefreshTokenRequest(params) +// // Example sending a request using the ListThemesRequest method. +// req, resp := client.ListThemesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/RefreshToken -func (c *AmplifyUIBuilder) RefreshTokenRequest(input *RefreshTokenInput) (req *request.Request, output *RefreshTokenOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListThemes +func (c *AmplifyUIBuilder) ListThemesRequest(input *ListThemesInput) (req *request.Request, output *ListThemesOutput) { op := &request.Operation{ - Name: opRefreshToken, - HTTPMethod: "POST", - HTTPPath: "/tokens/{provider}/refresh", + Name: opListThemes, + HTTPMethod: "GET", + HTTPPath: "/app/{appId}/environment/{environmentName}/themes", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { - input = &RefreshTokenInput{} + input = &ListThemesInput{} } - output = &RefreshTokenOutput{} + output = &ListThemesOutput{} req = c.newRequest(op, input, output) return } -// RefreshToken API operation for AWS Amplify UI Builder. +// ListThemes API operation for AWS Amplify UI Builder. // -// Refreshes a previously issued access token that might have expired. +// Retrieves a list of themes for a specified Amplify app and backend environment. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Amplify UI Builder's -// API operation RefreshToken for usage and error information. +// API operation ListThemes for usage and error information. // // Returned Error Types: +// +// - InternalServerException +// An internal error has occurred. Please retry your request. +// // - InvalidParameterException // An invalid or out-of-range value was supplied for the input parameter. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/RefreshToken -func (c *AmplifyUIBuilder) RefreshToken(input *RefreshTokenInput) (*RefreshTokenOutput, error) { - req, out := c.RefreshTokenRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListThemes +func (c *AmplifyUIBuilder) ListThemes(input *ListThemesInput) (*ListThemesOutput, error) { + req, out := c.ListThemesRequest(input) return out, req.Send() } -// RefreshTokenWithContext is the same as RefreshToken with the addition of +// ListThemesWithContext is the same as ListThemes with the addition of // the ability to pass a context and additional request options. // -// See RefreshToken for details on how to use this API operation. +// See ListThemes for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *AmplifyUIBuilder) RefreshTokenWithContext(ctx aws.Context, input *RefreshTokenInput, opts ...request.Option) (*RefreshTokenOutput, error) { - req, out := c.RefreshTokenRequest(input) +func (c *AmplifyUIBuilder) ListThemesWithContext(ctx aws.Context, input *ListThemesInput, opts ...request.Option) (*ListThemesOutput, error) { + req, out := c.ListThemesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateComponent = "UpdateComponent" - -// UpdateComponentRequest generates a "aws/request.Request" representing the -// client's request for the UpdateComponent operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See UpdateComponent for more information on using the UpdateComponent -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// ListThemesPages iterates over the pages of a ListThemes operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. // -// // Example sending a request using the UpdateComponentRequest method. -// req, resp := client.UpdateComponentRequest(params) +// See ListThemes method for more information on how to use this operation. // -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } +// Note: This operation can generate multiple requests to a service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateComponent +// // Example iterating over at most 3 pages of a ListThemes operation. +// pageNum := 0 +// err := client.ListThemesPages(params, +// func(page *amplifyuibuilder.ListThemesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *AmplifyUIBuilder) ListThemesPages(input *ListThemesInput, fn func(*ListThemesOutput, bool) bool) error { + return c.ListThemesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListThemesPagesWithContext same as ListThemesPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AmplifyUIBuilder) ListThemesPagesWithContext(ctx aws.Context, input *ListThemesInput, fn func(*ListThemesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListThemesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListThemesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListThemesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opPutMetadataFlag = "PutMetadataFlag" + +// PutMetadataFlagRequest generates a "aws/request.Request" representing the +// client's request for the PutMetadataFlag operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutMetadataFlag for more information on using the PutMetadataFlag +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the PutMetadataFlagRequest method. +// req, resp := client.PutMetadataFlagRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/PutMetadataFlag +func (c *AmplifyUIBuilder) PutMetadataFlagRequest(input *PutMetadataFlagInput) (req *request.Request, output *PutMetadataFlagOutput) { + op := &request.Operation{ + Name: opPutMetadataFlag, + HTTPMethod: "PUT", + HTTPPath: "/app/{appId}/environment/{environmentName}/metadata/features/{featureName}", + } + + if input == nil { + input = &PutMetadataFlagInput{} + } + + output = &PutMetadataFlagOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// PutMetadataFlag API operation for AWS Amplify UI Builder. +// +// Stores the metadata information about a feature on a form or view. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Amplify UI Builder's +// API operation PutMetadataFlag for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedException +// You don't have permission to perform this operation. +// +// - InvalidParameterException +// An invalid or out-of-range value was supplied for the input parameter. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/PutMetadataFlag +func (c *AmplifyUIBuilder) PutMetadataFlag(input *PutMetadataFlagInput) (*PutMetadataFlagOutput, error) { + req, out := c.PutMetadataFlagRequest(input) + return out, req.Send() +} + +// PutMetadataFlagWithContext is the same as PutMetadataFlag with the addition of +// the ability to pass a context and additional request options. +// +// See PutMetadataFlag for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AmplifyUIBuilder) PutMetadataFlagWithContext(ctx aws.Context, input *PutMetadataFlagInput, opts ...request.Option) (*PutMetadataFlagOutput, error) { + req, out := c.PutMetadataFlagRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opRefreshToken = "RefreshToken" + +// RefreshTokenRequest generates a "aws/request.Request" representing the +// client's request for the RefreshToken operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See RefreshToken for more information on using the RefreshToken +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the RefreshTokenRequest method. +// req, resp := client.RefreshTokenRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/RefreshToken +func (c *AmplifyUIBuilder) RefreshTokenRequest(input *RefreshTokenInput) (req *request.Request, output *RefreshTokenOutput) { + op := &request.Operation{ + Name: opRefreshToken, + HTTPMethod: "POST", + HTTPPath: "/tokens/{provider}/refresh", + } + + if input == nil { + input = &RefreshTokenInput{} + } + + output = &RefreshTokenOutput{} + req = c.newRequest(op, input, output) + return +} + +// RefreshToken API operation for AWS Amplify UI Builder. +// +// Refreshes a previously issued access token that might have expired. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Amplify UI Builder's +// API operation RefreshToken for usage and error information. +// +// Returned Error Types: +// - InvalidParameterException +// An invalid or out-of-range value was supplied for the input parameter. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/RefreshToken +func (c *AmplifyUIBuilder) RefreshToken(input *RefreshTokenInput) (*RefreshTokenOutput, error) { + req, out := c.RefreshTokenRequest(input) + return out, req.Send() +} + +// RefreshTokenWithContext is the same as RefreshToken with the addition of +// the ability to pass a context and additional request options. +// +// See RefreshToken for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AmplifyUIBuilder) RefreshTokenWithContext(ctx aws.Context, input *RefreshTokenInput, opts ...request.Option) (*RefreshTokenOutput, error) { + req, out := c.RefreshTokenRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateComponent = "UpdateComponent" + +// UpdateComponentRequest generates a "aws/request.Request" representing the +// client's request for the UpdateComponent operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateComponent for more information on using the UpdateComponent +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateComponentRequest method. +// req, resp := client.UpdateComponentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateComponent func (c *AmplifyUIBuilder) UpdateComponentRequest(input *UpdateComponentInput) (req *request.Request, output *UpdateComponentOutput) { op := &request.Operation{ Name: opUpdateComponent, @@ -1334,57 +2039,57 @@ func (c *AmplifyUIBuilder) UpdateComponentWithContext(ctx aws.Context, input *Up return out, req.Send() } -const opUpdateTheme = "UpdateTheme" +const opUpdateForm = "UpdateForm" -// UpdateThemeRequest generates a "aws/request.Request" representing the -// client's request for the UpdateTheme operation. The "output" return +// UpdateFormRequest generates a "aws/request.Request" representing the +// client's request for the UpdateForm operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateTheme for more information on using the UpdateTheme +// See UpdateForm for more information on using the UpdateForm // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the UpdateThemeRequest method. -// req, resp := client.UpdateThemeRequest(params) +// // Example sending a request using the UpdateFormRequest method. +// req, resp := client.UpdateFormRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateTheme -func (c *AmplifyUIBuilder) UpdateThemeRequest(input *UpdateThemeInput) (req *request.Request, output *UpdateThemeOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateForm +func (c *AmplifyUIBuilder) UpdateFormRequest(input *UpdateFormInput) (req *request.Request, output *UpdateFormOutput) { op := &request.Operation{ - Name: opUpdateTheme, + Name: opUpdateForm, HTTPMethod: "PATCH", - HTTPPath: "/app/{appId}/environment/{environmentName}/themes/{id}", + HTTPPath: "/app/{appId}/environment/{environmentName}/forms/{id}", } if input == nil { - input = &UpdateThemeInput{} + input = &UpdateFormInput{} } - output = &UpdateThemeOutput{} + output = &UpdateFormOutput{} req = c.newRequest(op, input, output) return } -// UpdateTheme API operation for AWS Amplify UI Builder. +// UpdateForm API operation for AWS Amplify UI Builder. // -// Updates an existing theme. +// Updates an existing form. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Amplify UI Builder's -// API operation UpdateTheme for usage and error information. +// API operation UpdateForm for usage and error information. // // Returned Error Types: // @@ -1397,57 +2102,142 @@ func (c *AmplifyUIBuilder) UpdateThemeRequest(input *UpdateThemeInput) (req *req // - InvalidParameterException // An invalid or out-of-range value was supplied for the input parameter. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateTheme -func (c *AmplifyUIBuilder) UpdateTheme(input *UpdateThemeInput) (*UpdateThemeOutput, error) { - req, out := c.UpdateThemeRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateForm +func (c *AmplifyUIBuilder) UpdateForm(input *UpdateFormInput) (*UpdateFormOutput, error) { + req, out := c.UpdateFormRequest(input) return out, req.Send() } -// UpdateThemeWithContext is the same as UpdateTheme with the addition of +// UpdateFormWithContext is the same as UpdateForm with the addition of // the ability to pass a context and additional request options. // -// See UpdateTheme for details on how to use this API operation. +// See UpdateForm for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *AmplifyUIBuilder) UpdateThemeWithContext(ctx aws.Context, input *UpdateThemeInput, opts ...request.Option) (*UpdateThemeOutput, error) { - req, out := c.UpdateThemeRequest(input) +func (c *AmplifyUIBuilder) UpdateFormWithContext(ctx aws.Context, input *UpdateFormInput, opts ...request.Option) (*UpdateFormOutput, error) { + req, out := c.UpdateFormRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// Represents the event action configuration for an element of a Component or -// ComponentChild. Use for the workflow feature in Amplify Studio that allows -// you to bind events and actions to components. ActionParameters defines the -// action that is performed when an event occurs on the component. -type ActionParameters struct { - _ struct{} `type:"structure"` - - // The HTML anchor link to the location to open. Specify this value for a navigation - // action. - Anchor *ComponentProperty `locationName:"anchor" type:"structure"` - - // A dictionary of key-value pairs mapping Amplify Studio properties to fields - // in a data model. Use when the action performs an operation on an Amplify - // DataStore model. - Fields map[string]*ComponentProperty `locationName:"fields" type:"map"` - - // Specifies whether the user should be signed out globally. Specify this value - // for an auth sign out action. - Global *ComponentProperty `locationName:"global" type:"structure"` - - // The unique ID of the component that the ActionParameters apply to. - Id *ComponentProperty `locationName:"id" type:"structure"` - - // The name of the data model. Use when the action performs an operation on - // an Amplify DataStore model. - Model *string `locationName:"model" type:"string"` - - // A key-value pair that specifies the state property name and its initial value. - State *MutationActionSetStateParameter `locationName:"state" type:"structure"` +const opUpdateTheme = "UpdateTheme" + +// UpdateThemeRequest generates a "aws/request.Request" representing the +// client's request for the UpdateTheme operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateTheme for more information on using the UpdateTheme +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateThemeRequest method. +// req, resp := client.UpdateThemeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateTheme +func (c *AmplifyUIBuilder) UpdateThemeRequest(input *UpdateThemeInput) (req *request.Request, output *UpdateThemeOutput) { + op := &request.Operation{ + Name: opUpdateTheme, + HTTPMethod: "PATCH", + HTTPPath: "/app/{appId}/environment/{environmentName}/themes/{id}", + } + + if input == nil { + input = &UpdateThemeInput{} + } + + output = &UpdateThemeOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateTheme API operation for AWS Amplify UI Builder. +// +// Updates an existing theme. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Amplify UI Builder's +// API operation UpdateTheme for usage and error information. +// +// Returned Error Types: +// +// - ResourceConflictException +// The resource specified in the request conflicts with an existing resource. +// +// - InternalServerException +// An internal error has occurred. Please retry your request. +// +// - InvalidParameterException +// An invalid or out-of-range value was supplied for the input parameter. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateTheme +func (c *AmplifyUIBuilder) UpdateTheme(input *UpdateThemeInput) (*UpdateThemeOutput, error) { + req, out := c.UpdateThemeRequest(input) + return out, req.Send() +} + +// UpdateThemeWithContext is the same as UpdateTheme with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateTheme for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AmplifyUIBuilder) UpdateThemeWithContext(ctx aws.Context, input *UpdateThemeInput, opts ...request.Option) (*UpdateThemeOutput, error) { + req, out := c.UpdateThemeRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// Represents the event action configuration for an element of a Component or +// ComponentChild. Use for the workflow feature in Amplify Studio that allows +// you to bind events and actions to components. ActionParameters defines the +// action that is performed when an event occurs on the component. +type ActionParameters struct { + _ struct{} `type:"structure"` + + // The HTML anchor link to the location to open. Specify this value for a navigation + // action. + Anchor *ComponentProperty `locationName:"anchor" type:"structure"` + + // A dictionary of key-value pairs mapping Amplify Studio properties to fields + // in a data model. Use when the action performs an operation on an Amplify + // DataStore model. + Fields map[string]*ComponentProperty `locationName:"fields" type:"map"` + + // Specifies whether the user should be signed out globally. Specify this value + // for an auth sign out action. + Global *ComponentProperty `locationName:"global" type:"structure"` + + // The unique ID of the component that the ActionParameters apply to. + Id *ComponentProperty `locationName:"id" type:"structure"` + + // The name of the data model. Use when the action performs an operation on + // an Amplify DataStore model. + Model *string `locationName:"model" type:"string"` + + // A key-value pair that specifies the state property name and its initial value. + State *MutationActionSetStateParameter `locationName:"state" type:"structure"` // The element within the same component to modify when the action occurs. Target *ComponentProperty `locationName:"target" type:"structure"` @@ -1872,6 +2662,9 @@ type ComponentBindingPropertiesValueProperties struct { // A list of predicates for binding a component's properties to data. Predicates []*Predicate `locationName:"predicates" type:"list"` + // The name of a component slot. + SlotName *string `locationName:"slotName" type:"string"` + // An authenticated user attribute. UserAttribute *string `locationName:"userAttribute" type:"string"` } @@ -1930,6 +2723,12 @@ func (s *ComponentBindingPropertiesValueProperties) SetPredicates(v []*Predicate return s } +// SetSlotName sets the SlotName field's value. +func (s *ComponentBindingPropertiesValueProperties) SetSlotName(v string) *ComponentBindingPropertiesValueProperties { + s.SlotName = &v + return s +} + // SetUserAttribute sets the UserAttribute field's value. func (s *ComponentBindingPropertiesValueProperties) SetUserAttribute(v string) *ComponentBindingPropertiesValueProperties { s.UserAttribute = &v @@ -3070,26 +3869,51 @@ func (s *CreateComponentOutput) SetEntity(v *Component) *CreateComponentOutput { return s } -// Represents all of the information that is required to create a theme. -type CreateThemeData struct { +// Represents all of the information that is required to create a form. +type CreateFormData struct { _ struct{} `type:"structure"` - // The name of the theme. + // The FormCTA object that stores the call to action configuration for the form. + Cta *FormCTA `locationName:"cta" type:"structure"` + + // The type of data source to use to create the form. + // + // DataType is a required field + DataType *FormDataTypeConfig `locationName:"dataType" type:"structure" required:"true"` + + // The configuration information for the form's fields. + // + // Fields is a required field + Fields map[string]*FieldConfig `locationName:"fields" type:"map" required:"true"` + + // Specifies whether to perform a create or update action on the form. + // + // FormActionType is a required field + FormActionType *string `locationName:"formActionType" type:"string" required:"true" enum:"FormActionType"` + + // The name of the form. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` - // Describes the properties that can be overriden to customize an instance of - // the theme. - Overrides []*ThemeValues `locationName:"overrides" type:"list"` + // The schema version of the form. + // + // SchemaVersion is a required field + SchemaVersion *string `locationName:"schemaVersion" type:"string" required:"true"` - // One or more key-value pairs to use when tagging the theme data. - Tags map[string]*string `locationName:"tags" type:"map"` + // The configuration information for the visual helper elements for the form. + // These elements are not associated with any data. + // + // SectionalElements is a required field + SectionalElements map[string]*SectionalElement `locationName:"sectionalElements" type:"map" required:"true"` - // A list of key-value pairs that defines the properties of the theme. + // The configuration for the form's style. // - // Values is a required field - Values []*ThemeValues `locationName:"values" type:"list" required:"true"` + // Style is a required field + Style *FormStyle `locationName:"style" type:"structure" required:"true"` + + // One or more key-value pairs to use when tagging the form data. + Tags map[string]*string `locationName:"tags" type:"map"` } // String returns the string representation. @@ -3097,7 +3921,7 @@ type CreateThemeData struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateThemeData) String() string { +func (s CreateFormData) String() string { return awsutil.Prettify(s) } @@ -3106,21 +3930,61 @@ func (s CreateThemeData) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateThemeData) GoString() string { +func (s CreateFormData) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateThemeData) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateThemeData"} +func (s *CreateFormData) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateFormData"} + if s.DataType == nil { + invalidParams.Add(request.NewErrParamRequired("DataType")) + } + if s.Fields == nil { + invalidParams.Add(request.NewErrParamRequired("Fields")) + } + if s.FormActionType == nil { + invalidParams.Add(request.NewErrParamRequired("FormActionType")) + } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } - if s.Values == nil { - invalidParams.Add(request.NewErrParamRequired("Values")) + if s.SchemaVersion == nil { + invalidParams.Add(request.NewErrParamRequired("SchemaVersion")) + } + if s.SectionalElements == nil { + invalidParams.Add(request.NewErrParamRequired("SectionalElements")) + } + if s.Style == nil { + invalidParams.Add(request.NewErrParamRequired("Style")) + } + if s.DataType != nil { + if err := s.DataType.Validate(); err != nil { + invalidParams.AddNested("DataType", err.(request.ErrInvalidParams)) + } + } + if s.Fields != nil { + for i, v := range s.Fields { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Fields", i), err.(request.ErrInvalidParams)) + } + } + } + if s.SectionalElements != nil { + for i, v := range s.SectionalElements { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SectionalElements", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -3129,34 +3993,64 @@ func (s *CreateThemeData) Validate() error { return nil } +// SetCta sets the Cta field's value. +func (s *CreateFormData) SetCta(v *FormCTA) *CreateFormData { + s.Cta = v + return s +} + +// SetDataType sets the DataType field's value. +func (s *CreateFormData) SetDataType(v *FormDataTypeConfig) *CreateFormData { + s.DataType = v + return s +} + +// SetFields sets the Fields field's value. +func (s *CreateFormData) SetFields(v map[string]*FieldConfig) *CreateFormData { + s.Fields = v + return s +} + +// SetFormActionType sets the FormActionType field's value. +func (s *CreateFormData) SetFormActionType(v string) *CreateFormData { + s.FormActionType = &v + return s +} + // SetName sets the Name field's value. -func (s *CreateThemeData) SetName(v string) *CreateThemeData { +func (s *CreateFormData) SetName(v string) *CreateFormData { s.Name = &v return s } -// SetOverrides sets the Overrides field's value. -func (s *CreateThemeData) SetOverrides(v []*ThemeValues) *CreateThemeData { - s.Overrides = v +// SetSchemaVersion sets the SchemaVersion field's value. +func (s *CreateFormData) SetSchemaVersion(v string) *CreateFormData { + s.SchemaVersion = &v return s } -// SetTags sets the Tags field's value. -func (s *CreateThemeData) SetTags(v map[string]*string) *CreateThemeData { - s.Tags = v +// SetSectionalElements sets the SectionalElements field's value. +func (s *CreateFormData) SetSectionalElements(v map[string]*SectionalElement) *CreateFormData { + s.SectionalElements = v return s } -// SetValues sets the Values field's value. -func (s *CreateThemeData) SetValues(v []*ThemeValues) *CreateThemeData { - s.Values = v +// SetStyle sets the Style field's value. +func (s *CreateFormData) SetStyle(v *FormStyle) *CreateFormData { + s.Style = v return s } -type CreateThemeInput struct { - _ struct{} `type:"structure" payload:"ThemeToCreate"` +// SetTags sets the Tags field's value. +func (s *CreateFormData) SetTags(v map[string]*string) *CreateFormData { + s.Tags = v + return s +} - // The unique ID of the Amplify app associated with the theme. +type CreateFormInput struct { + _ struct{} `type:"structure" payload:"FormToCreate"` + + // The unique ID of the Amplify app to associate with the form. // // AppId is a required field AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"` @@ -3169,10 +4063,10 @@ type CreateThemeInput struct { // EnvironmentName is a required field EnvironmentName *string `location:"uri" locationName:"environmentName" type:"string" required:"true"` - // Represents the configuration of the theme to create. + // Represents the configuration of the form to create. // - // ThemeToCreate is a required field - ThemeToCreate *CreateThemeData `locationName:"themeToCreate" type:"structure" required:"true"` + // FormToCreate is a required field + FormToCreate *CreateFormData `locationName:"formToCreate" type:"structure" required:"true"` } // String returns the string representation. @@ -3180,7 +4074,7 @@ type CreateThemeInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateThemeInput) String() string { +func (s CreateFormInput) String() string { return awsutil.Prettify(s) } @@ -3189,13 +4083,13 @@ func (s CreateThemeInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateThemeInput) GoString() string { +func (s CreateFormInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateThemeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateThemeInput"} +func (s *CreateFormInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateFormInput"} if s.AppId == nil { invalidParams.Add(request.NewErrParamRequired("AppId")) } @@ -3208,12 +4102,12 @@ func (s *CreateThemeInput) Validate() error { if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 { invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1)) } - if s.ThemeToCreate == nil { - invalidParams.Add(request.NewErrParamRequired("ThemeToCreate")) + if s.FormToCreate == nil { + invalidParams.Add(request.NewErrParamRequired("FormToCreate")) } - if s.ThemeToCreate != nil { - if err := s.ThemeToCreate.Validate(); err != nil { - invalidParams.AddNested("ThemeToCreate", err.(request.ErrInvalidParams)) + if s.FormToCreate != nil { + if err := s.FormToCreate.Validate(); err != nil { + invalidParams.AddNested("FormToCreate", err.(request.ErrInvalidParams)) } } @@ -3224,34 +4118,34 @@ func (s *CreateThemeInput) Validate() error { } // SetAppId sets the AppId field's value. -func (s *CreateThemeInput) SetAppId(v string) *CreateThemeInput { +func (s *CreateFormInput) SetAppId(v string) *CreateFormInput { s.AppId = &v return s } // SetClientToken sets the ClientToken field's value. -func (s *CreateThemeInput) SetClientToken(v string) *CreateThemeInput { +func (s *CreateFormInput) SetClientToken(v string) *CreateFormInput { s.ClientToken = &v return s } // SetEnvironmentName sets the EnvironmentName field's value. -func (s *CreateThemeInput) SetEnvironmentName(v string) *CreateThemeInput { +func (s *CreateFormInput) SetEnvironmentName(v string) *CreateFormInput { s.EnvironmentName = &v return s } -// SetThemeToCreate sets the ThemeToCreate field's value. -func (s *CreateThemeInput) SetThemeToCreate(v *CreateThemeData) *CreateThemeInput { - s.ThemeToCreate = v +// SetFormToCreate sets the FormToCreate field's value. +func (s *CreateFormInput) SetFormToCreate(v *CreateFormData) *CreateFormInput { + s.FormToCreate = v return s } -type CreateThemeOutput struct { +type CreateFormOutput struct { _ struct{} `type:"structure" payload:"Entity"` - // Describes the configuration of the new theme. - Entity *Theme `locationName:"entity" type:"structure"` + // Describes the configuration of the new form. + Entity *Form `locationName:"entity" type:"structure"` } // String returns the string representation. @@ -3259,7 +4153,7 @@ type CreateThemeOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateThemeOutput) String() string { +func (s CreateFormOutput) String() string { return awsutil.Prettify(s) } @@ -3268,33 +4162,36 @@ func (s CreateThemeOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateThemeOutput) GoString() string { +func (s CreateFormOutput) GoString() string { return s.String() } // SetEntity sets the Entity field's value. -func (s *CreateThemeOutput) SetEntity(v *Theme) *CreateThemeOutput { +func (s *CreateFormOutput) SetEntity(v *Form) *CreateFormOutput { s.Entity = v return s } -type DeleteComponentInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// Represents all of the information that is required to create a theme. +type CreateThemeData struct { + _ struct{} `type:"structure"` - // The unique ID of the Amplify app associated with the component to delete. + // The name of the theme. // - // AppId is a required field - AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"` + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` - // The name of the backend environment that is a part of the Amplify app. - // - // EnvironmentName is a required field - EnvironmentName *string `location:"uri" locationName:"environmentName" type:"string" required:"true"` + // Describes the properties that can be overriden to customize an instance of + // the theme. + Overrides []*ThemeValues `locationName:"overrides" type:"list"` - // The unique ID of the component to delete. + // One or more key-value pairs to use when tagging the theme data. + Tags map[string]*string `locationName:"tags" type:"map"` + + // A list of key-value pairs that defines the properties of the theme. // - // Id is a required field - Id *string `location:"uri" locationName:"id" type:"string" required:"true"` + // Values is a required field + Values []*ThemeValues `locationName:"values" type:"list" required:"true"` } // String returns the string representation. @@ -3302,7 +4199,7 @@ type DeleteComponentInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteComponentInput) String() string { +func (s CreateThemeData) String() string { return awsutil.Prettify(s) } @@ -3311,13 +4208,96 @@ func (s DeleteComponentInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteComponentInput) GoString() string { +func (s CreateThemeData) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteComponentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteComponentInput"} +func (s *CreateThemeData) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateThemeData"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Values == nil { + invalidParams.Add(request.NewErrParamRequired("Values")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *CreateThemeData) SetName(v string) *CreateThemeData { + s.Name = &v + return s +} + +// SetOverrides sets the Overrides field's value. +func (s *CreateThemeData) SetOverrides(v []*ThemeValues) *CreateThemeData { + s.Overrides = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateThemeData) SetTags(v map[string]*string) *CreateThemeData { + s.Tags = v + return s +} + +// SetValues sets the Values field's value. +func (s *CreateThemeData) SetValues(v []*ThemeValues) *CreateThemeData { + s.Values = v + return s +} + +type CreateThemeInput struct { + _ struct{} `type:"structure" payload:"ThemeToCreate"` + + // The unique ID of the Amplify app associated with the theme. + // + // AppId is a required field + AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"` + + // The unique client token. + ClientToken *string `location:"querystring" locationName:"clientToken" type:"string" idempotencyToken:"true"` + + // The name of the backend environment that is a part of the Amplify app. + // + // EnvironmentName is a required field + EnvironmentName *string `location:"uri" locationName:"environmentName" type:"string" required:"true"` + + // Represents the configuration of the theme to create. + // + // ThemeToCreate is a required field + ThemeToCreate *CreateThemeData `locationName:"themeToCreate" type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateThemeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateThemeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateThemeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateThemeInput"} if s.AppId == nil { invalidParams.Add(request.NewErrParamRequired("AppId")) } @@ -3330,11 +4310,13 @@ func (s *DeleteComponentInput) Validate() error { if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 { invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1)) } - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) + if s.ThemeToCreate == nil { + invalidParams.Add(request.NewErrParamRequired("ThemeToCreate")) } - if s.Id != nil && len(*s.Id) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + if s.ThemeToCreate != nil { + if err := s.ThemeToCreate.Validate(); err != nil { + invalidParams.AddNested("ThemeToCreate", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -3344,25 +4326,34 @@ func (s *DeleteComponentInput) Validate() error { } // SetAppId sets the AppId field's value. -func (s *DeleteComponentInput) SetAppId(v string) *DeleteComponentInput { +func (s *CreateThemeInput) SetAppId(v string) *CreateThemeInput { s.AppId = &v return s } +// SetClientToken sets the ClientToken field's value. +func (s *CreateThemeInput) SetClientToken(v string) *CreateThemeInput { + s.ClientToken = &v + return s +} + // SetEnvironmentName sets the EnvironmentName field's value. -func (s *DeleteComponentInput) SetEnvironmentName(v string) *DeleteComponentInput { +func (s *CreateThemeInput) SetEnvironmentName(v string) *CreateThemeInput { s.EnvironmentName = &v return s } -// SetId sets the Id field's value. -func (s *DeleteComponentInput) SetId(v string) *DeleteComponentInput { - s.Id = &v +// SetThemeToCreate sets the ThemeToCreate field's value. +func (s *CreateThemeInput) SetThemeToCreate(v *CreateThemeData) *CreateThemeInput { + s.ThemeToCreate = v return s } -type DeleteComponentOutput struct { - _ struct{} `type:"structure"` +type CreateThemeOutput struct { + _ struct{} `type:"structure" payload:"Entity"` + + // Describes the configuration of the new theme. + Entity *Theme `locationName:"entity" type:"structure"` } // String returns the string representation. @@ -3370,7 +4361,7 @@ type DeleteComponentOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteComponentOutput) String() string { +func (s CreateThemeOutput) String() string { return awsutil.Prettify(s) } @@ -3379,14 +4370,20 @@ func (s DeleteComponentOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteComponentOutput) GoString() string { +func (s CreateThemeOutput) GoString() string { return s.String() } -type DeleteThemeInput struct { +// SetEntity sets the Entity field's value. +func (s *CreateThemeOutput) SetEntity(v *Theme) *CreateThemeOutput { + s.Entity = v + return s +} + +type DeleteComponentInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The unique ID of the Amplify app associated with the theme to delete. + // The unique ID of the Amplify app associated with the component to delete. // // AppId is a required field AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"` @@ -3396,7 +4393,7 @@ type DeleteThemeInput struct { // EnvironmentName is a required field EnvironmentName *string `location:"uri" locationName:"environmentName" type:"string" required:"true"` - // The unique ID of the theme to delete. + // The unique ID of the component to delete. // // Id is a required field Id *string `location:"uri" locationName:"id" type:"string" required:"true"` @@ -3407,7 +4404,7 @@ type DeleteThemeInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteThemeInput) String() string { +func (s DeleteComponentInput) String() string { return awsutil.Prettify(s) } @@ -3416,13 +4413,13 @@ func (s DeleteThemeInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteThemeInput) GoString() string { +func (s DeleteComponentInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteThemeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteThemeInput"} +func (s *DeleteComponentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteComponentInput"} if s.AppId == nil { invalidParams.Add(request.NewErrParamRequired("AppId")) } @@ -3449,24 +4446,24 @@ func (s *DeleteThemeInput) Validate() error { } // SetAppId sets the AppId field's value. -func (s *DeleteThemeInput) SetAppId(v string) *DeleteThemeInput { +func (s *DeleteComponentInput) SetAppId(v string) *DeleteComponentInput { s.AppId = &v return s } // SetEnvironmentName sets the EnvironmentName field's value. -func (s *DeleteThemeInput) SetEnvironmentName(v string) *DeleteThemeInput { +func (s *DeleteComponentInput) SetEnvironmentName(v string) *DeleteComponentInput { s.EnvironmentName = &v return s } // SetId sets the Id field's value. -func (s *DeleteThemeInput) SetId(v string) *DeleteThemeInput { +func (s *DeleteComponentInput) SetId(v string) *DeleteComponentInput { s.Id = &v return s } -type DeleteThemeOutput struct { +type DeleteComponentOutput struct { _ struct{} `type:"structure"` } @@ -3475,7 +4472,7 @@ type DeleteThemeOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteThemeOutput) String() string { +func (s DeleteComponentOutput) String() string { return awsutil.Prettify(s) } @@ -3484,22 +4481,27 @@ func (s DeleteThemeOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteThemeOutput) GoString() string { +func (s DeleteComponentOutput) GoString() string { return s.String() } -type ExchangeCodeForTokenInput struct { - _ struct{} `type:"structure" payload:"Request"` +type DeleteFormInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // The third-party provider for the token. The only valid value is figma. + // The unique ID of the Amplify app associated with the form to delete. // - // Provider is a required field - Provider *string `location:"uri" locationName:"provider" type:"string" required:"true" enum:"TokenProviders"` + // AppId is a required field + AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"` - // Describes the configuration of the request. + // The name of the backend environment that is a part of the Amplify app. // - // Request is a required field - Request *ExchangeCodeForTokenRequestBody `locationName:"request" type:"structure" required:"true"` + // EnvironmentName is a required field + EnvironmentName *string `location:"uri" locationName:"environmentName" type:"string" required:"true"` + + // The unique ID of the form to delete. + // + // Id is a required field + Id *string `location:"uri" locationName:"id" type:"string" required:"true"` } // String returns the string representation. @@ -3507,7 +4509,7 @@ type ExchangeCodeForTokenInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ExchangeCodeForTokenInput) String() string { +func (s DeleteFormInput) String() string { return awsutil.Prettify(s) } @@ -3516,26 +4518,30 @@ func (s ExchangeCodeForTokenInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ExchangeCodeForTokenInput) GoString() string { +func (s DeleteFormInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ExchangeCodeForTokenInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ExchangeCodeForTokenInput"} - if s.Provider == nil { - invalidParams.Add(request.NewErrParamRequired("Provider")) +func (s *DeleteFormInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteFormInput"} + if s.AppId == nil { + invalidParams.Add(request.NewErrParamRequired("AppId")) } - if s.Provider != nil && len(*s.Provider) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Provider", 1)) + if s.AppId != nil && len(*s.AppId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) } - if s.Request == nil { - invalidParams.Add(request.NewErrParamRequired("Request")) + if s.EnvironmentName == nil { + invalidParams.Add(request.NewErrParamRequired("EnvironmentName")) } - if s.Request != nil { - if err := s.Request.Validate(); err != nil { - invalidParams.AddNested("Request", err.(request.ErrInvalidParams)) - } + if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1)) + } + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) } if invalidParams.Len() > 0 { @@ -3544,44 +4550,26 @@ func (s *ExchangeCodeForTokenInput) Validate() error { return nil } -// SetProvider sets the Provider field's value. -func (s *ExchangeCodeForTokenInput) SetProvider(v string) *ExchangeCodeForTokenInput { - s.Provider = &v +// SetAppId sets the AppId field's value. +func (s *DeleteFormInput) SetAppId(v string) *DeleteFormInput { + s.AppId = &v return s } -// SetRequest sets the Request field's value. -func (s *ExchangeCodeForTokenInput) SetRequest(v *ExchangeCodeForTokenRequestBody) *ExchangeCodeForTokenInput { - s.Request = v +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *DeleteFormInput) SetEnvironmentName(v string) *DeleteFormInput { + s.EnvironmentName = &v return s } -type ExchangeCodeForTokenOutput struct { - _ struct{} `type:"structure"` - - // The access token. - // - // AccessToken is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by ExchangeCodeForTokenOutput's - // String and GoString methods. - // - // AccessToken is a required field - AccessToken *string `locationName:"accessToken" type:"string" required:"true" sensitive:"true"` - - // The date and time when the new access token expires. - // - // ExpiresIn is a required field - ExpiresIn *int64 `locationName:"expiresIn" type:"integer" required:"true"` +// SetId sets the Id field's value. +func (s *DeleteFormInput) SetId(v string) *DeleteFormInput { + s.Id = &v + return s +} - // The token to use to refresh a previously issued access token that might have - // expired. - // - // RefreshToken is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by ExchangeCodeForTokenOutput's - // String and GoString methods. - // - // RefreshToken is a required field - RefreshToken *string `locationName:"refreshToken" type:"string" required:"true" sensitive:"true"` +type DeleteFormOutput struct { + _ struct{} `type:"structure"` } // String returns the string representation. @@ -3589,7 +4577,7 @@ type ExchangeCodeForTokenOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ExchangeCodeForTokenOutput) String() string { +func (s DeleteFormOutput) String() string { return awsutil.Prettify(s) } @@ -3598,19 +4586,238 @@ func (s ExchangeCodeForTokenOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ExchangeCodeForTokenOutput) GoString() string { +func (s DeleteFormOutput) GoString() string { return s.String() } -// SetAccessToken sets the AccessToken field's value. -func (s *ExchangeCodeForTokenOutput) SetAccessToken(v string) *ExchangeCodeForTokenOutput { - s.AccessToken = &v - return s -} +type DeleteThemeInput struct { + _ struct{} `type:"structure" nopayload:"true"` -// SetExpiresIn sets the ExpiresIn field's value. -func (s *ExchangeCodeForTokenOutput) SetExpiresIn(v int64) *ExchangeCodeForTokenOutput { - s.ExpiresIn = &v + // The unique ID of the Amplify app associated with the theme to delete. + // + // AppId is a required field + AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"` + + // The name of the backend environment that is a part of the Amplify app. + // + // EnvironmentName is a required field + EnvironmentName *string `location:"uri" locationName:"environmentName" type:"string" required:"true"` + + // The unique ID of the theme to delete. + // + // Id is a required field + Id *string `location:"uri" locationName:"id" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteThemeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteThemeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteThemeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteThemeInput"} + if s.AppId == nil { + invalidParams.Add(request.NewErrParamRequired("AppId")) + } + if s.AppId != nil && len(*s.AppId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) + } + if s.EnvironmentName == nil { + invalidParams.Add(request.NewErrParamRequired("EnvironmentName")) + } + if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1)) + } + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppId sets the AppId field's value. +func (s *DeleteThemeInput) SetAppId(v string) *DeleteThemeInput { + s.AppId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *DeleteThemeInput) SetEnvironmentName(v string) *DeleteThemeInput { + s.EnvironmentName = &v + return s +} + +// SetId sets the Id field's value. +func (s *DeleteThemeInput) SetId(v string) *DeleteThemeInput { + s.Id = &v + return s +} + +type DeleteThemeOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteThemeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteThemeOutput) GoString() string { + return s.String() +} + +type ExchangeCodeForTokenInput struct { + _ struct{} `type:"structure" payload:"Request"` + + // The third-party provider for the token. The only valid value is figma. + // + // Provider is a required field + Provider *string `location:"uri" locationName:"provider" type:"string" required:"true" enum:"TokenProviders"` + + // Describes the configuration of the request. + // + // Request is a required field + Request *ExchangeCodeForTokenRequestBody `locationName:"request" type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ExchangeCodeForTokenInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ExchangeCodeForTokenInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ExchangeCodeForTokenInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ExchangeCodeForTokenInput"} + if s.Provider == nil { + invalidParams.Add(request.NewErrParamRequired("Provider")) + } + if s.Provider != nil && len(*s.Provider) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Provider", 1)) + } + if s.Request == nil { + invalidParams.Add(request.NewErrParamRequired("Request")) + } + if s.Request != nil { + if err := s.Request.Validate(); err != nil { + invalidParams.AddNested("Request", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetProvider sets the Provider field's value. +func (s *ExchangeCodeForTokenInput) SetProvider(v string) *ExchangeCodeForTokenInput { + s.Provider = &v + return s +} + +// SetRequest sets the Request field's value. +func (s *ExchangeCodeForTokenInput) SetRequest(v *ExchangeCodeForTokenRequestBody) *ExchangeCodeForTokenInput { + s.Request = v + return s +} + +type ExchangeCodeForTokenOutput struct { + _ struct{} `type:"structure"` + + // The access token. + // + // AccessToken is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ExchangeCodeForTokenOutput's + // String and GoString methods. + // + // AccessToken is a required field + AccessToken *string `locationName:"accessToken" type:"string" required:"true" sensitive:"true"` + + // The date and time when the new access token expires. + // + // ExpiresIn is a required field + ExpiresIn *int64 `locationName:"expiresIn" type:"integer" required:"true"` + + // The token to use to refresh a previously issued access token that might have + // expired. + // + // RefreshToken is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ExchangeCodeForTokenOutput's + // String and GoString methods. + // + // RefreshToken is a required field + RefreshToken *string `locationName:"refreshToken" type:"string" required:"true" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ExchangeCodeForTokenOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ExchangeCodeForTokenOutput) GoString() string { + return s.String() +} + +// SetAccessToken sets the AccessToken field's value. +func (s *ExchangeCodeForTokenOutput) SetAccessToken(v string) *ExchangeCodeForTokenOutput { + s.AccessToken = &v + return s +} + +// SetExpiresIn sets the ExpiresIn field's value. +func (s *ExchangeCodeForTokenOutput) SetExpiresIn(v int64) *ExchangeCodeForTokenOutput { + s.ExpiresIn = &v return s } @@ -3803,15 +5010,15 @@ func (s *ExportComponentsOutput) SetNextToken(v string) *ExportComponentsOutput return s } -type ExportThemesInput struct { +type ExportFormsInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The unique ID of the Amplify app to export the themes to. + // The unique ID of the Amplify app to export forms to. // // AppId is a required field AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"` - // The name of the backend environment that is part of the Amplify app. + // The name of the backend environment that is a part of the Amplify app. // // EnvironmentName is a required field EnvironmentName *string `location:"uri" locationName:"environmentName" type:"string" required:"true"` @@ -3825,7 +5032,7 @@ type ExportThemesInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ExportThemesInput) String() string { +func (s ExportFormsInput) String() string { return awsutil.Prettify(s) } @@ -3834,13 +5041,13 @@ func (s ExportThemesInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ExportThemesInput) GoString() string { +func (s ExportFormsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ExportThemesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ExportThemesInput"} +func (s *ExportFormsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ExportFormsInput"} if s.AppId == nil { invalidParams.Add(request.NewErrParamRequired("AppId")) } @@ -3861,30 +5068,30 @@ func (s *ExportThemesInput) Validate() error { } // SetAppId sets the AppId field's value. -func (s *ExportThemesInput) SetAppId(v string) *ExportThemesInput { +func (s *ExportFormsInput) SetAppId(v string) *ExportFormsInput { s.AppId = &v return s } // SetEnvironmentName sets the EnvironmentName field's value. -func (s *ExportThemesInput) SetEnvironmentName(v string) *ExportThemesInput { +func (s *ExportFormsInput) SetEnvironmentName(v string) *ExportFormsInput { s.EnvironmentName = &v return s } // SetNextToken sets the NextToken field's value. -func (s *ExportThemesInput) SetNextToken(v string) *ExportThemesInput { +func (s *ExportFormsInput) SetNextToken(v string) *ExportFormsInput { s.NextToken = &v return s } -type ExportThemesOutput struct { +type ExportFormsOutput struct { _ struct{} `type:"structure"` - // Represents the configuration of the exported themes. + // Represents the configuration of the exported forms. // // Entities is a required field - Entities []*Theme `locationName:"entities" type:"list" required:"true"` + Entities []*Form `locationName:"entities" type:"list" required:"true"` // The pagination token that's included if more results are available. NextToken *string `locationName:"nextToken" type:"string"` @@ -3895,7 +5102,7 @@ type ExportThemesOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ExportThemesOutput) String() string { +func (s ExportFormsOutput) String() string { return awsutil.Prettify(s) } @@ -3904,100 +5111,37 @@ func (s ExportThemesOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ExportThemesOutput) GoString() string { +func (s ExportFormsOutput) GoString() string { return s.String() } // SetEntities sets the Entities field's value. -func (s *ExportThemesOutput) SetEntities(v []*Theme) *ExportThemesOutput { +func (s *ExportFormsOutput) SetEntities(v []*Form) *ExportFormsOutput { s.Entities = v return s } // SetNextToken sets the NextToken field's value. -func (s *ExportThemesOutput) SetNextToken(v string) *ExportThemesOutput { +func (s *ExportFormsOutput) SetNextToken(v string) *ExportFormsOutput { s.NextToken = &v return s } -// Describes how to bind a component property to form data. -type FormBindingElement struct { - _ struct{} `type:"structure"` +type ExportThemesInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // The name of the component to retrieve a value from. + // The unique ID of the Amplify app to export the themes to. // - // Element is a required field - Element *string `locationName:"element" type:"string" required:"true"` + // AppId is a required field + AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"` - // The property to retrieve a value from. - // - // Property is a required field - Property *string `locationName:"property" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s FormBindingElement) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s FormBindingElement) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *FormBindingElement) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "FormBindingElement"} - if s.Element == nil { - invalidParams.Add(request.NewErrParamRequired("Element")) - } - if s.Property == nil { - invalidParams.Add(request.NewErrParamRequired("Property")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetElement sets the Element field's value. -func (s *FormBindingElement) SetElement(v string) *FormBindingElement { - s.Element = &v - return s -} - -// SetProperty sets the Property field's value. -func (s *FormBindingElement) SetProperty(v string) *FormBindingElement { - s.Property = &v - return s -} - -type GetComponentInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The unique ID of the Amplify app. - // - // AppId is a required field - AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"` - - // The name of the backend environment that is part of the Amplify app. + // The name of the backend environment that is part of the Amplify app. // // EnvironmentName is a required field EnvironmentName *string `location:"uri" locationName:"environmentName" type:"string" required:"true"` - // The unique ID of the component. - // - // Id is a required field - Id *string `location:"uri" locationName:"id" type:"string" required:"true"` + // The token to request the next page of results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` } // String returns the string representation. @@ -4005,7 +5149,7 @@ type GetComponentInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetComponentInput) String() string { +func (s ExportThemesInput) String() string { return awsutil.Prettify(s) } @@ -4014,13 +5158,13 @@ func (s GetComponentInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetComponentInput) GoString() string { +func (s ExportThemesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetComponentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetComponentInput"} +func (s *ExportThemesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ExportThemesInput"} if s.AppId == nil { invalidParams.Add(request.NewErrParamRequired("AppId")) } @@ -4033,12 +5177,6 @@ func (s *GetComponentInput) Validate() error { if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 { invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1)) } - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - if s.Id != nil && len(*s.Id) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Id", 1)) - } if invalidParams.Len() > 0 { return invalidParams @@ -4047,28 +5185,33 @@ func (s *GetComponentInput) Validate() error { } // SetAppId sets the AppId field's value. -func (s *GetComponentInput) SetAppId(v string) *GetComponentInput { +func (s *ExportThemesInput) SetAppId(v string) *ExportThemesInput { s.AppId = &v return s } // SetEnvironmentName sets the EnvironmentName field's value. -func (s *GetComponentInput) SetEnvironmentName(v string) *GetComponentInput { +func (s *ExportThemesInput) SetEnvironmentName(v string) *ExportThemesInput { s.EnvironmentName = &v return s } -// SetId sets the Id field's value. -func (s *GetComponentInput) SetId(v string) *GetComponentInput { - s.Id = &v +// SetNextToken sets the NextToken field's value. +func (s *ExportThemesInput) SetNextToken(v string) *ExportThemesInput { + s.NextToken = &v return s } -type GetComponentOutput struct { - _ struct{} `type:"structure" payload:"Component"` +type ExportThemesOutput struct { + _ struct{} `type:"structure"` - // Represents the configuration settings for the component. - Component *Component `locationName:"component" type:"structure"` + // Represents the configuration of the exported themes. + // + // Entities is a required field + Entities []*Theme `locationName:"entities" type:"list" required:"true"` + + // The pagination token that's included if more results are available. + NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation. @@ -4076,7 +5219,7 @@ type GetComponentOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetComponentOutput) String() string { +func (s ExportThemesOutput) String() string { return awsutil.Prettify(s) } @@ -4085,33 +5228,41 @@ func (s GetComponentOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetComponentOutput) GoString() string { +func (s ExportThemesOutput) GoString() string { return s.String() } -// SetComponent sets the Component field's value. -func (s *GetComponentOutput) SetComponent(v *Component) *GetComponentOutput { - s.Component = v +// SetEntities sets the Entities field's value. +func (s *ExportThemesOutput) SetEntities(v []*Theme) *ExportThemesOutput { + s.Entities = v return s } -type GetThemeInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// SetNextToken sets the NextToken field's value. +func (s *ExportThemesOutput) SetNextToken(v string) *ExportThemesOutput { + s.NextToken = &v + return s +} - // The unique ID of the Amplify app. - // - // AppId is a required field - AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"` +// Describes the configuration information for a field in a table. +type FieldConfig struct { + _ struct{} `type:"structure"` - // The name of the backend environment that is part of the Amplify app. - // - // EnvironmentName is a required field - EnvironmentName *string `location:"uri" locationName:"environmentName" type:"string" required:"true"` + // Specifies whether to hide a field. + Excluded *bool `locationName:"excluded" type:"boolean"` - // The unique ID for the theme. - // - // Id is a required field - Id *string `location:"uri" locationName:"id" type:"string" required:"true"` + // Describes the configuration for the default input value to display for a + // field. + InputType *FieldInputConfig `locationName:"inputType" type:"structure"` + + // The label for the field. + Label *string `locationName:"label" type:"string"` + + // Specifies the field position. + Position *FieldPosition `locationName:"position" type:"structure"` + + // The validations to perform on the value in the field. + Validations []*FieldValidationConfiguration `locationName:"validations" type:"list"` } // String returns the string representation. @@ -4119,7 +5270,7 @@ type GetThemeInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetThemeInput) String() string { +func (s FieldConfig) String() string { return awsutil.Prettify(s) } @@ -4128,30 +5279,27 @@ func (s GetThemeInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetThemeInput) GoString() string { +func (s FieldConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetThemeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetThemeInput"} - if s.AppId == nil { - invalidParams.Add(request.NewErrParamRequired("AppId")) - } - if s.AppId != nil && len(*s.AppId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) - } - if s.EnvironmentName == nil { - invalidParams.Add(request.NewErrParamRequired("EnvironmentName")) - } - if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1)) - } - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) +func (s *FieldConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "FieldConfig"} + if s.InputType != nil { + if err := s.InputType.Validate(); err != nil { + invalidParams.AddNested("InputType", err.(request.ErrInvalidParams)) + } } - if s.Id != nil && len(*s.Id) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + if s.Validations != nil { + for i, v := range s.Validations { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Validations", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -4160,61 +5308,84 @@ func (s *GetThemeInput) Validate() error { return nil } -// SetAppId sets the AppId field's value. -func (s *GetThemeInput) SetAppId(v string) *GetThemeInput { - s.AppId = &v +// SetExcluded sets the Excluded field's value. +func (s *FieldConfig) SetExcluded(v bool) *FieldConfig { + s.Excluded = &v return s } -// SetEnvironmentName sets the EnvironmentName field's value. -func (s *GetThemeInput) SetEnvironmentName(v string) *GetThemeInput { - s.EnvironmentName = &v +// SetInputType sets the InputType field's value. +func (s *FieldConfig) SetInputType(v *FieldInputConfig) *FieldConfig { + s.InputType = v return s } -// SetId sets the Id field's value. -func (s *GetThemeInput) SetId(v string) *GetThemeInput { - s.Id = &v +// SetLabel sets the Label field's value. +func (s *FieldConfig) SetLabel(v string) *FieldConfig { + s.Label = &v return s } -type GetThemeOutput struct { - _ struct{} `type:"structure" payload:"Theme"` - - // Represents the configuration settings for the theme. - Theme *Theme `locationName:"theme" type:"structure"` +// SetPosition sets the Position field's value. +func (s *FieldConfig) SetPosition(v *FieldPosition) *FieldConfig { + s.Position = v + return s } -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetThemeOutput) String() string { - return awsutil.Prettify(s) +// SetValidations sets the Validations field's value. +func (s *FieldConfig) SetValidations(v []*FieldValidationConfiguration) *FieldConfig { + s.Validations = v + return s } -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetThemeOutput) GoString() string { - return s.String() -} +// Describes the configuration for the default input values to display for a +// field. +type FieldInputConfig struct { + _ struct{} `type:"structure"` -// SetTheme sets the Theme field's value. -func (s *GetThemeOutput) SetTheme(v *Theme) *GetThemeOutput { - s.Theme = v - return s -} + // Specifies whether a field has a default value. + DefaultChecked *bool `locationName:"defaultChecked" type:"boolean"` -// An internal error has occurred. Please retry your request. -type InternalServerException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + // The default country code for a phone number. + DefaultCountryCode *string `locationName:"defaultCountryCode" type:"string"` - Message_ *string `locationName:"message" type:"string"` + // The default value for the field. + DefaultValue *string `locationName:"defaultValue" type:"string"` + + // The text to display to describe the field. + DescriptiveText *string `locationName:"descriptiveText" type:"string"` + + // The maximum value to display for the field. + MaxValue *float64 `locationName:"maxValue" type:"float"` + + // The minimum value to display for the field. + MinValue *float64 `locationName:"minValue" type:"float"` + + // The name of the field. + Name *string `locationName:"name" type:"string"` + + // The text to display as a placeholder for the field. + Placeholder *string `locationName:"placeholder" type:"string"` + + // Specifies a read only field. + ReadOnly *bool `locationName:"readOnly" type:"boolean"` + + // Specifies a field that requires input. + Required *bool `locationName:"required" type:"boolean"` + + // The stepping increment for a numeric value in a field. + Step *float64 `locationName:"step" type:"float"` + + // The input type for the field. + // + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true"` + + // The value for the field. + Value *string `locationName:"value" type:"string"` + + // The information to use to customize the input fields with data at runtime. + ValueMappings *ValueMappings `locationName:"valueMappings" type:"structure"` } // String returns the string representation. @@ -4222,7 +5393,7 @@ type InternalServerException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s InternalServerException) String() string { +func (s FieldInputConfig) String() string { return awsutil.Prettify(s) } @@ -4231,54 +5402,124 @@ func (s InternalServerException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s InternalServerException) GoString() string { +func (s FieldInputConfig) GoString() string { return s.String() } -func newErrorInternalServerException(v protocol.ResponseMetadata) error { - return &InternalServerException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *FieldInputConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "FieldInputConfig"} + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + if s.ValueMappings != nil { + if err := s.ValueMappings.Validate(); err != nil { + invalidParams.AddNested("ValueMappings", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams } + return nil } -// Code returns the exception type name. -func (s *InternalServerException) Code() string { - return "InternalServerException" +// SetDefaultChecked sets the DefaultChecked field's value. +func (s *FieldInputConfig) SetDefaultChecked(v bool) *FieldInputConfig { + s.DefaultChecked = &v + return s } -// Message returns the exception's message. -func (s *InternalServerException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// SetDefaultCountryCode sets the DefaultCountryCode field's value. +func (s *FieldInputConfig) SetDefaultCountryCode(v string) *FieldInputConfig { + s.DefaultCountryCode = &v + return s } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InternalServerException) OrigErr() error { - return nil +// SetDefaultValue sets the DefaultValue field's value. +func (s *FieldInputConfig) SetDefaultValue(v string) *FieldInputConfig { + s.DefaultValue = &v + return s } -func (s *InternalServerException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +// SetDescriptiveText sets the DescriptiveText field's value. +func (s *FieldInputConfig) SetDescriptiveText(v string) *FieldInputConfig { + s.DescriptiveText = &v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *InternalServerException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetMaxValue sets the MaxValue field's value. +func (s *FieldInputConfig) SetMaxValue(v float64) *FieldInputConfig { + s.MaxValue = &v + return s } -// RequestID returns the service's response RequestID for request. -func (s *InternalServerException) RequestID() string { - return s.RespMetadata.RequestID +// SetMinValue sets the MinValue field's value. +func (s *FieldInputConfig) SetMinValue(v float64) *FieldInputConfig { + s.MinValue = &v + return s } -// An invalid or out-of-range value was supplied for the input parameter. -type InvalidParameterException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +// SetName sets the Name field's value. +func (s *FieldInputConfig) SetName(v string) *FieldInputConfig { + s.Name = &v + return s +} - Message_ *string `locationName:"message" type:"string"` +// SetPlaceholder sets the Placeholder field's value. +func (s *FieldInputConfig) SetPlaceholder(v string) *FieldInputConfig { + s.Placeholder = &v + return s +} + +// SetReadOnly sets the ReadOnly field's value. +func (s *FieldInputConfig) SetReadOnly(v bool) *FieldInputConfig { + s.ReadOnly = &v + return s +} + +// SetRequired sets the Required field's value. +func (s *FieldInputConfig) SetRequired(v bool) *FieldInputConfig { + s.Required = &v + return s +} + +// SetStep sets the Step field's value. +func (s *FieldInputConfig) SetStep(v float64) *FieldInputConfig { + s.Step = &v + return s +} + +// SetType sets the Type field's value. +func (s *FieldInputConfig) SetType(v string) *FieldInputConfig { + s.Type = &v + return s +} + +// SetValue sets the Value field's value. +func (s *FieldInputConfig) SetValue(v string) *FieldInputConfig { + s.Value = &v + return s +} + +// SetValueMappings sets the ValueMappings field's value. +func (s *FieldInputConfig) SetValueMappings(v *ValueMappings) *FieldInputConfig { + s.ValueMappings = v + return s +} + +// Describes the field position. +type FieldPosition struct { + _ struct{} `type:"structure"` + + // The field position is below the field specified by the string. + Below *string `locationName:"below" type:"string"` + + // The field position is fixed and doesn't change in relation to other fields. + Fixed *string `locationName:"fixed" type:"string" enum:"FixedPosition"` + + // The field position is to the right of the field specified by the string. + RightOf *string `locationName:"rightOf" type:"string"` } // String returns the string representation. @@ -4286,7 +5527,7 @@ type InvalidParameterException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s InvalidParameterException) String() string { +func (s FieldPosition) String() string { return awsutil.Prettify(s) } @@ -4295,66 +5536,45 @@ func (s InvalidParameterException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s InvalidParameterException) GoString() string { +func (s FieldPosition) GoString() string { return s.String() } -func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { - return &InvalidParameterException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *InvalidParameterException) Code() string { - return "InvalidParameterException" -} - -// Message returns the exception's message. -func (s *InvalidParameterException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InvalidParameterException) OrigErr() error { - return nil +// SetBelow sets the Below field's value. +func (s *FieldPosition) SetBelow(v string) *FieldPosition { + s.Below = &v + return s } -func (s *InvalidParameterException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +// SetFixed sets the Fixed field's value. +func (s *FieldPosition) SetFixed(v string) *FieldPosition { + s.Fixed = &v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *InvalidParameterException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetRightOf sets the RightOf field's value. +func (s *FieldPosition) SetRightOf(v string) *FieldPosition { + s.RightOf = &v + return s } -// RequestID returns the service's response RequestID for request. -func (s *InvalidParameterException) RequestID() string { - return s.RespMetadata.RequestID -} +// Describes the validation configuration for a field. +type FieldValidationConfiguration struct { + _ struct{} `type:"structure"` -type ListComponentsInput struct { - _ struct{} `type:"structure" nopayload:"true"` + // The validation to perform on a number value. + NumValues []*int64 `locationName:"numValues" type:"list"` - // The unique ID for the Amplify app. - // - // AppId is a required field - AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"` + // The validation to perform on a string value. + StrValues []*string `locationName:"strValues" type:"list"` - // The name of the backend environment that is a part of the Amplify app. + // The validation to perform on an object type. // - // EnvironmentName is a required field - EnvironmentName *string `location:"uri" locationName:"environmentName" type:"string" required:"true"` - - // The maximum number of components to retrieve. - MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true"` - // The token to request the next page of results. - NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + // The validation message to display. + ValidationMessage *string `locationName:"validationMessage" type:"string"` } // String returns the string representation. @@ -4362,7 +5582,7 @@ type ListComponentsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListComponentsInput) String() string { +func (s FieldValidationConfiguration) String() string { return awsutil.Prettify(s) } @@ -4371,27 +5591,15 @@ func (s ListComponentsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListComponentsInput) GoString() string { +func (s FieldValidationConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListComponentsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListComponentsInput"} - if s.AppId == nil { - invalidParams.Add(request.NewErrParamRequired("AppId")) - } - if s.AppId != nil && len(*s.AppId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) - } - if s.EnvironmentName == nil { - invalidParams.Add(request.NewErrParamRequired("EnvironmentName")) - } - if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1)) - } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) +func (s *FieldValidationConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "FieldValidationConfiguration"} + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) } if invalidParams.Len() > 0 { @@ -4400,90 +5608,92 @@ func (s *ListComponentsInput) Validate() error { return nil } -// SetAppId sets the AppId field's value. -func (s *ListComponentsInput) SetAppId(v string) *ListComponentsInput { - s.AppId = &v +// SetNumValues sets the NumValues field's value. +func (s *FieldValidationConfiguration) SetNumValues(v []*int64) *FieldValidationConfiguration { + s.NumValues = v return s } -// SetEnvironmentName sets the EnvironmentName field's value. -func (s *ListComponentsInput) SetEnvironmentName(v string) *ListComponentsInput { - s.EnvironmentName = &v +// SetStrValues sets the StrValues field's value. +func (s *FieldValidationConfiguration) SetStrValues(v []*string) *FieldValidationConfiguration { + s.StrValues = v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListComponentsInput) SetMaxResults(v int64) *ListComponentsInput { - s.MaxResults = &v +// SetType sets the Type field's value. +func (s *FieldValidationConfiguration) SetType(v string) *FieldValidationConfiguration { + s.Type = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListComponentsInput) SetNextToken(v string) *ListComponentsInput { - s.NextToken = &v +// SetValidationMessage sets the ValidationMessage field's value. +func (s *FieldValidationConfiguration) SetValidationMessage(v string) *FieldValidationConfiguration { + s.ValidationMessage = &v return s } -type ListComponentsOutput struct { +// Contains the configuration settings for a Form user interface (UI) element +// for an Amplify app. A form is a component you can add to your project by +// specifying a data source as the default configuration for the form. +type Form struct { _ struct{} `type:"structure"` - // The list of components for the Amplify app. + // The unique ID of the Amplify app associated with the form. // - // Entities is a required field - Entities []*ComponentSummary `locationName:"entities" type:"list" required:"true"` + // AppId is a required field + AppId *string `locationName:"appId" type:"string" required:"true"` - // The pagination token that's included if more results are available. - NextToken *string `locationName:"nextToken" type:"string"` -} + // Stores the call to action configuration for the form. + Cta *FormCTA `locationName:"cta" type:"structure"` -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListComponentsOutput) String() string { - return awsutil.Prettify(s) -} + // The type of data source to use to create the form. + // + // DataType is a required field + DataType *FormDataTypeConfig `locationName:"dataType" type:"structure" required:"true"` -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListComponentsOutput) GoString() string { - return s.String() -} + // The name of the backend environment that is a part of the Amplify app. + // + // EnvironmentName is a required field + EnvironmentName *string `locationName:"environmentName" type:"string" required:"true"` -// SetEntities sets the Entities field's value. -func (s *ListComponentsOutput) SetEntities(v []*ComponentSummary) *ListComponentsOutput { - s.Entities = v - return s -} + // Stores the information about the form's fields. + // + // Fields is a required field + Fields map[string]*FieldConfig `locationName:"fields" type:"map" required:"true"` -// SetNextToken sets the NextToken field's value. -func (s *ListComponentsOutput) SetNextToken(v string) *ListComponentsOutput { - s.NextToken = &v - return s -} + // The operation to perform on the specified form. + // + // FormActionType is a required field + FormActionType *string `locationName:"formActionType" type:"string" required:"true" enum:"FormActionType"` -type ListThemesInput struct { - _ struct{} `type:"structure" nopayload:"true"` + // The unique ID of the form. + // + // Id is a required field + Id *string `locationName:"id" type:"string" required:"true"` - // The unique ID for the Amplify app. + // The name of the form. // - // AppId is a required field - AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"` + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` - // The name of the backend environment that is a part of the Amplify app. + // The schema version of the form when it was imported. // - // EnvironmentName is a required field - EnvironmentName *string `location:"uri" locationName:"environmentName" type:"string" required:"true"` + // SchemaVersion is a required field + SchemaVersion *string `locationName:"schemaVersion" type:"string" required:"true"` - // The maximum number of theme results to return in the response. - MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + // Stores the visual helper elements for the form that are not associated with + // any data. + // + // SectionalElements is a required field + SectionalElements map[string]*SectionalElement `locationName:"sectionalElements" type:"map" required:"true"` - // The token to request the next page of results. - NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + // Stores the configuration for the form's style. + // + // Style is a required field + Style *FormStyle `locationName:"style" type:"structure" required:"true"` + + // One or more key-value pairs to use when tagging the form. + Tags map[string]*string `locationName:"tags" type:"map"` } // String returns the string representation. @@ -4491,7 +5701,7 @@ type ListThemesInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListThemesInput) String() string { +func (s Form) String() string { return awsutil.Prettify(s) } @@ -4500,120 +5710,95 @@ func (s ListThemesInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListThemesInput) GoString() string { +func (s Form) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListThemesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListThemesInput"} - if s.AppId == nil { - invalidParams.Add(request.NewErrParamRequired("AppId")) - } - if s.AppId != nil && len(*s.AppId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) - } - if s.EnvironmentName == nil { - invalidParams.Add(request.NewErrParamRequired("EnvironmentName")) - } - if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1)) - } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } +// SetAppId sets the AppId field's value. +func (s *Form) SetAppId(v string) *Form { + s.AppId = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetCta sets the Cta field's value. +func (s *Form) SetCta(v *FormCTA) *Form { + s.Cta = v + return s } -// SetAppId sets the AppId field's value. -func (s *ListThemesInput) SetAppId(v string) *ListThemesInput { - s.AppId = &v +// SetDataType sets the DataType field's value. +func (s *Form) SetDataType(v *FormDataTypeConfig) *Form { + s.DataType = v return s } // SetEnvironmentName sets the EnvironmentName field's value. -func (s *ListThemesInput) SetEnvironmentName(v string) *ListThemesInput { +func (s *Form) SetEnvironmentName(v string) *Form { s.EnvironmentName = &v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListThemesInput) SetMaxResults(v int64) *ListThemesInput { - s.MaxResults = &v +// SetFields sets the Fields field's value. +func (s *Form) SetFields(v map[string]*FieldConfig) *Form { + s.Fields = v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListThemesInput) SetNextToken(v string) *ListThemesInput { - s.NextToken = &v +// SetFormActionType sets the FormActionType field's value. +func (s *Form) SetFormActionType(v string) *Form { + s.FormActionType = &v return s } -type ListThemesOutput struct { - _ struct{} `type:"structure"` +// SetId sets the Id field's value. +func (s *Form) SetId(v string) *Form { + s.Id = &v + return s +} - // The list of themes for the Amplify app. - // - // Entities is a required field - Entities []*ThemeSummary `locationName:"entities" type:"list" required:"true"` +// SetName sets the Name field's value. +func (s *Form) SetName(v string) *Form { + s.Name = &v + return s +} - // The pagination token that's returned if more results are available. - NextToken *string `locationName:"nextToken" type:"string"` +// SetSchemaVersion sets the SchemaVersion field's value. +func (s *Form) SetSchemaVersion(v string) *Form { + s.SchemaVersion = &v + return s } -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListThemesOutput) String() string { - return awsutil.Prettify(s) +// SetSectionalElements sets the SectionalElements field's value. +func (s *Form) SetSectionalElements(v map[string]*SectionalElement) *Form { + s.SectionalElements = v + return s } -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListThemesOutput) GoString() string { - return s.String() -} - -// SetEntities sets the Entities field's value. -func (s *ListThemesOutput) SetEntities(v []*ThemeSummary) *ListThemesOutput { - s.Entities = v +// SetStyle sets the Style field's value. +func (s *Form) SetStyle(v *FormStyle) *Form { + s.Style = v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListThemesOutput) SetNextToken(v string) *ListThemesOutput { - s.NextToken = &v +// SetTags sets the Tags field's value. +func (s *Form) SetTags(v map[string]*string) *Form { + s.Tags = v return s } -// Represents the state configuration when an action modifies a property of -// another element within the same component. -type MutationActionSetStateParameter struct { +// Describes how to bind a component property to form data. +type FormBindingElement struct { _ struct{} `type:"structure"` - // The name of the component that is being modified. + // The name of the component to retrieve a value from. // - // ComponentName is a required field - ComponentName *string `locationName:"componentName" type:"string" required:"true"` + // Element is a required field + Element *string `locationName:"element" type:"string" required:"true"` - // The name of the component property to apply the state configuration to. + // The property to retrieve a value from. // // Property is a required field Property *string `locationName:"property" type:"string" required:"true"` - - // The state configuration to assign to the property. - // - // Set is a required field - Set *ComponentProperty `locationName:"set" type:"structure" required:"true"` } // String returns the string representation. @@ -4621,7 +5806,7 @@ type MutationActionSetStateParameter struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s MutationActionSetStateParameter) String() string { +func (s FormBindingElement) String() string { return awsutil.Prettify(s) } @@ -4630,27 +5815,19 @@ func (s MutationActionSetStateParameter) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s MutationActionSetStateParameter) GoString() string { +func (s FormBindingElement) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *MutationActionSetStateParameter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "MutationActionSetStateParameter"} - if s.ComponentName == nil { - invalidParams.Add(request.NewErrParamRequired("ComponentName")) +func (s *FormBindingElement) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "FormBindingElement"} + if s.Element == nil { + invalidParams.Add(request.NewErrParamRequired("Element")) } if s.Property == nil { invalidParams.Add(request.NewErrParamRequired("Property")) } - if s.Set == nil { - invalidParams.Add(request.NewErrParamRequired("Set")) - } - if s.Set != nil { - if err := s.Set.Validate(); err != nil { - invalidParams.AddNested("Set", err.(request.ErrInvalidParams)) - } - } if invalidParams.Len() > 0 { return invalidParams @@ -4658,43 +5835,83 @@ func (s *MutationActionSetStateParameter) Validate() error { return nil } -// SetComponentName sets the ComponentName field's value. -func (s *MutationActionSetStateParameter) SetComponentName(v string) *MutationActionSetStateParameter { - s.ComponentName = &v +// SetElement sets the Element field's value. +func (s *FormBindingElement) SetElement(v string) *FormBindingElement { + s.Element = &v return s } // SetProperty sets the Property field's value. -func (s *MutationActionSetStateParameter) SetProperty(v string) *MutationActionSetStateParameter { +func (s *FormBindingElement) SetProperty(v string) *FormBindingElement { s.Property = &v return s } -// SetSet sets the Set field's value. -func (s *MutationActionSetStateParameter) SetSet(v *ComponentProperty) *MutationActionSetStateParameter { - s.Set = v +// Describes the configuration for a button UI element that is a part of a form. +type FormButton struct { + _ struct{} `type:"structure"` + + // Describes the button's properties. + Children *string `locationName:"children" type:"string"` + + // Specifies whether the button is visible on the form. + Excluded *bool `locationName:"excluded" type:"boolean"` + + // The position of the button. + Position *FieldPosition `locationName:"position" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s FormButton) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s FormButton) GoString() string { + return s.String() +} + +// SetChildren sets the Children field's value. +func (s *FormButton) SetChildren(v string) *FormButton { + s.Children = &v return s } -// Stores information for generating Amplify DataStore queries. Use a Predicate -// to retrieve a subset of the data in a collection. -type Predicate struct { - _ struct{} `type:"structure"` +// SetExcluded sets the Excluded field's value. +func (s *FormButton) SetExcluded(v bool) *FormButton { + s.Excluded = &v + return s +} - // A list of predicates to combine logically. - And []*Predicate `locationName:"and" type:"list"` +// SetPosition sets the Position field's value. +func (s *FormButton) SetPosition(v *FieldPosition) *FormButton { + s.Position = v + return s +} - // The field to query. - Field *string `locationName:"field" type:"string"` +// Describes the call to action button configuration for the form.. +type FormCTA struct { + _ struct{} `type:"structure"` - // The value to use when performing the evaluation. - Operand *string `locationName:"operand" type:"string"` + // Displays a cancel button. + Cancel *FormButton `locationName:"cancel" type:"structure"` - // The operator to use to perform the evaluation. - Operator *string `locationName:"operator" type:"string"` + // Displays a clear button. + Clear *FormButton `locationName:"clear" type:"structure"` - // A list of predicates to combine logically. - Or []*Predicate `locationName:"or" type:"list"` + // The position of the button. + Position *string `locationName:"position" type:"string" enum:"FormButtonsPosition"` + + // Displays a submit button. + Submit *FormButton `locationName:"submit" type:"structure"` } // String returns the string representation. @@ -4702,7 +5919,7 @@ type Predicate struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Predicate) String() string { +func (s FormCTA) String() string { return awsutil.Prettify(s) } @@ -4711,52 +5928,50 @@ func (s Predicate) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Predicate) GoString() string { +func (s FormCTA) GoString() string { return s.String() } -// SetAnd sets the And field's value. -func (s *Predicate) SetAnd(v []*Predicate) *Predicate { - s.And = v - return s -} - -// SetField sets the Field field's value. -func (s *Predicate) SetField(v string) *Predicate { - s.Field = &v +// SetCancel sets the Cancel field's value. +func (s *FormCTA) SetCancel(v *FormButton) *FormCTA { + s.Cancel = v return s } -// SetOperand sets the Operand field's value. -func (s *Predicate) SetOperand(v string) *Predicate { - s.Operand = &v +// SetClear sets the Clear field's value. +func (s *FormCTA) SetClear(v *FormButton) *FormCTA { + s.Clear = v return s } -// SetOperator sets the Operator field's value. -func (s *Predicate) SetOperator(v string) *Predicate { - s.Operator = &v +// SetPosition sets the Position field's value. +func (s *FormCTA) SetPosition(v string) *FormCTA { + s.Position = &v return s } -// SetOr sets the Or field's value. -func (s *Predicate) SetOr(v []*Predicate) *Predicate { - s.Or = v +// SetSubmit sets the Submit field's value. +func (s *FormCTA) SetSubmit(v *FormButton) *FormCTA { + s.Submit = v return s } -type RefreshTokenInput struct { - _ struct{} `type:"structure" payload:"RefreshTokenBody"` +// Describes the data type configuration for the data source associated with +// a form. +type FormDataTypeConfig struct { + _ struct{} `type:"structure"` - // The third-party provider for the token. The only valid value is figma. + // The data source type, either an Amplify DataStore model or a custom data + // type. // - // Provider is a required field - Provider *string `location:"uri" locationName:"provider" type:"string" required:"true" enum:"TokenProviders"` + // DataSourceType is a required field + DataSourceType *string `locationName:"dataSourceType" type:"string" required:"true" enum:"FormDataSourceType"` - // Information about the refresh token request. + // The unique name of the data type you are using as the data source for the + // form. // - // RefreshTokenBody is a required field - RefreshTokenBody *RefreshTokenRequestBody `locationName:"refreshTokenBody" type:"structure" required:"true"` + // DataTypeName is a required field + DataTypeName *string `locationName:"dataTypeName" type:"string" required:"true"` } // String returns the string representation. @@ -4764,7 +5979,7 @@ type RefreshTokenInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s RefreshTokenInput) String() string { +func (s FormDataTypeConfig) String() string { return awsutil.Prettify(s) } @@ -4773,26 +5988,18 @@ func (s RefreshTokenInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s RefreshTokenInput) GoString() string { +func (s FormDataTypeConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *RefreshTokenInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RefreshTokenInput"} - if s.Provider == nil { - invalidParams.Add(request.NewErrParamRequired("Provider")) - } - if s.Provider != nil && len(*s.Provider) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Provider", 1)) - } - if s.RefreshTokenBody == nil { - invalidParams.Add(request.NewErrParamRequired("RefreshTokenBody")) +func (s *FormDataTypeConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "FormDataTypeConfig"} + if s.DataSourceType == nil { + invalidParams.Add(request.NewErrParamRequired("DataSourceType")) } - if s.RefreshTokenBody != nil { - if err := s.RefreshTokenBody.Validate(); err != nil { - invalidParams.AddNested("RefreshTokenBody", err.(request.ErrInvalidParams)) - } + if s.DataTypeName == nil { + invalidParams.Add(request.NewErrParamRequired("DataTypeName")) } if invalidParams.Len() > 0 { @@ -4801,34 +6008,25 @@ func (s *RefreshTokenInput) Validate() error { return nil } -// SetProvider sets the Provider field's value. -func (s *RefreshTokenInput) SetProvider(v string) *RefreshTokenInput { - s.Provider = &v +// SetDataSourceType sets the DataSourceType field's value. +func (s *FormDataTypeConfig) SetDataSourceType(v string) *FormDataTypeConfig { + s.DataSourceType = &v return s } -// SetRefreshTokenBody sets the RefreshTokenBody field's value. -func (s *RefreshTokenInput) SetRefreshTokenBody(v *RefreshTokenRequestBody) *RefreshTokenInput { - s.RefreshTokenBody = v +// SetDataTypeName sets the DataTypeName field's value. +func (s *FormDataTypeConfig) SetDataTypeName(v string) *FormDataTypeConfig { + s.DataTypeName = &v return s } -type RefreshTokenOutput struct { +// Describes the configuration for an input field on a form. Use FormInputValueProperty +// to specify the values to render or bind by default. +type FormInputValueProperty struct { _ struct{} `type:"structure"` - // The access token. - // - // AccessToken is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by RefreshTokenOutput's - // String and GoString methods. - // - // AccessToken is a required field - AccessToken *string `locationName:"accessToken" type:"string" required:"true" sensitive:"true"` - - // The date and time when the new access token expires. - // - // ExpiresIn is a required field - ExpiresIn *int64 `locationName:"expiresIn" type:"integer" required:"true"` + // The value to assign to the input field. + Value *string `locationName:"value" type:"string"` } // String returns the string representation. @@ -4836,7 +6034,7 @@ type RefreshTokenOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s RefreshTokenOutput) String() string { +func (s FormInputValueProperty) String() string { return awsutil.Prettify(s) } @@ -4845,35 +6043,28 @@ func (s RefreshTokenOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s RefreshTokenOutput) GoString() string { +func (s FormInputValueProperty) GoString() string { return s.String() } -// SetAccessToken sets the AccessToken field's value. -func (s *RefreshTokenOutput) SetAccessToken(v string) *RefreshTokenOutput { - s.AccessToken = &v - return s -} - -// SetExpiresIn sets the ExpiresIn field's value. -func (s *RefreshTokenOutput) SetExpiresIn(v int64) *RefreshTokenOutput { - s.ExpiresIn = &v +// SetValue sets the Value field's value. +func (s *FormInputValueProperty) SetValue(v string) *FormInputValueProperty { + s.Value = &v return s } -// Describes a refresh token. -type RefreshTokenRequestBody struct { +// Describes the configuration for the form's style. +type FormStyle struct { _ struct{} `type:"structure"` - // The token to use to refresh a previously issued access token that might have - // expired. - // - // Token is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by RefreshTokenRequestBody's - // String and GoString methods. - // - // Token is a required field - Token *string `locationName:"token" type:"string" required:"true" sensitive:"true"` + // The spacing for the horizontal gap. + HorizontalGap *FormStyleConfig `locationName:"horizontalGap" type:"structure"` + + // The size of the outer padding for the form. + OuterPadding *FormStyleConfig `locationName:"outerPadding" type:"structure"` + + // The spacing for the vertical gap. + VerticalGap *FormStyleConfig `locationName:"verticalGap" type:"structure"` } // String returns the string representation. @@ -4881,7 +6072,7 @@ type RefreshTokenRequestBody struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s RefreshTokenRequestBody) String() string { +func (s FormStyle) String() string { return awsutil.Prettify(s) } @@ -4890,35 +6081,38 @@ func (s RefreshTokenRequestBody) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s RefreshTokenRequestBody) GoString() string { +func (s FormStyle) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RefreshTokenRequestBody) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RefreshTokenRequestBody"} - if s.Token == nil { - invalidParams.Add(request.NewErrParamRequired("Token")) - } +// SetHorizontalGap sets the HorizontalGap field's value. +func (s *FormStyle) SetHorizontalGap(v *FormStyleConfig) *FormStyle { + s.HorizontalGap = v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetOuterPadding sets the OuterPadding field's value. +func (s *FormStyle) SetOuterPadding(v *FormStyleConfig) *FormStyle { + s.OuterPadding = v + return s } -// SetToken sets the Token field's value. -func (s *RefreshTokenRequestBody) SetToken(v string) *RefreshTokenRequestBody { - s.Token = &v +// SetVerticalGap sets the VerticalGap field's value. +func (s *FormStyle) SetVerticalGap(v *FormStyleConfig) *FormStyle { + s.VerticalGap = v return s } -// The resource specified in the request conflicts with an existing resource. -type ResourceConflictException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +// Describes the configuration settings for the form's style properties. +type FormStyleConfig struct { + _ struct{} `type:"structure"` - Message_ *string `locationName:"message" type:"string"` + // A reference to a design token to use to bind the form's style properties + // to an existing theme. + TokenReference *string `locationName:"tokenReference" type:"string"` + + // The value of the style setting. + Value *string `locationName:"value" type:"string"` } // String returns the string representation. @@ -4926,7 +6120,7 @@ type ResourceConflictException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ResourceConflictException) String() string { +func (s FormStyleConfig) String() string { return awsutil.Prettify(s) } @@ -4935,54 +6129,55 @@ func (s ResourceConflictException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ResourceConflictException) GoString() string { +func (s FormStyleConfig) GoString() string { return s.String() } -func newErrorResourceConflictException(v protocol.ResponseMetadata) error { - return &ResourceConflictException{ - RespMetadata: v, - } +// SetTokenReference sets the TokenReference field's value. +func (s *FormStyleConfig) SetTokenReference(v string) *FormStyleConfig { + s.TokenReference = &v + return s } -// Code returns the exception type name. -func (s *ResourceConflictException) Code() string { - return "ResourceConflictException" +// SetValue sets the Value field's value. +func (s *FormStyleConfig) SetValue(v string) *FormStyleConfig { + s.Value = &v + return s } -// Message returns the exception's message. -func (s *ResourceConflictException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} +// Describes the basic information about a form. +type FormSummary struct { + _ struct{} `type:"structure"` -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ResourceConflictException) OrigErr() error { - return nil -} + // The unique ID for the app associated with the form summary. + // + // AppId is a required field + AppId *string `locationName:"appId" type:"string" required:"true"` -func (s *ResourceConflictException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} + // The form's data source type. + // + // DataType is a required field + DataType *FormDataTypeConfig `locationName:"dataType" type:"structure" required:"true"` -// Status code returns the HTTP status code for the request's response error. -func (s *ResourceConflictException) StatusCode() int { - return s.RespMetadata.StatusCode -} + // The name of the backend environment that is part of the Amplify app. + // + // EnvironmentName is a required field + EnvironmentName *string `locationName:"environmentName" type:"string" required:"true"` -// RequestID returns the service's response RequestID for request. -func (s *ResourceConflictException) RequestID() string { - return s.RespMetadata.RequestID -} + // The type of operation to perform on the form. + // + // FormActionType is a required field + FormActionType *string `locationName:"formActionType" type:"string" required:"true" enum:"FormActionType"` -// The requested resource does not exist, or access was denied. -type ResourceNotFoundException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + // The ID of the form. + // + // Id is a required field + Id *string `locationName:"id" type:"string" required:"true"` - Message_ *string `locationName:"message" type:"string"` + // The name of the form. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -4990,7 +6185,7 @@ type ResourceNotFoundException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ResourceNotFoundException) String() string { +func (s FormSummary) String() string { return awsutil.Prettify(s) } @@ -4999,56 +6194,63 @@ func (s ResourceNotFoundException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ResourceNotFoundException) GoString() string { +func (s FormSummary) GoString() string { return s.String() } -func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { - return &ResourceNotFoundException{ - RespMetadata: v, - } +// SetAppId sets the AppId field's value. +func (s *FormSummary) SetAppId(v string) *FormSummary { + s.AppId = &v + return s } -// Code returns the exception type name. -func (s *ResourceNotFoundException) Code() string { - return "ResourceNotFoundException" +// SetDataType sets the DataType field's value. +func (s *FormSummary) SetDataType(v *FormDataTypeConfig) *FormSummary { + s.DataType = v + return s } -// Message returns the exception's message. -func (s *ResourceNotFoundException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *FormSummary) SetEnvironmentName(v string) *FormSummary { + s.EnvironmentName = &v + return s } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ResourceNotFoundException) OrigErr() error { - return nil +// SetFormActionType sets the FormActionType field's value. +func (s *FormSummary) SetFormActionType(v string) *FormSummary { + s.FormActionType = &v + return s } -func (s *ResourceNotFoundException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +// SetId sets the Id field's value. +func (s *FormSummary) SetId(v string) *FormSummary { + s.Id = &v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *ResourceNotFoundException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetName sets the Name field's value. +func (s *FormSummary) SetName(v string) *FormSummary { + s.Name = &v + return s } -// RequestID returns the service's response RequestID for request. -func (s *ResourceNotFoundException) RequestID() string { - return s.RespMetadata.RequestID -} +type GetComponentInput struct { + _ struct{} `type:"structure" nopayload:"true"` -// You exceeded your service quota. Service quotas, also referred to as limits, -// are the maximum number of service resources or operations for your Amazon -// Web Services account. -type ServiceQuotaExceededException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + // The unique ID of the Amplify app. + // + // AppId is a required field + AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"` - Message_ *string `locationName:"message" type:"string"` + // The name of the backend environment that is part of the Amplify app. + // + // EnvironmentName is a required field + EnvironmentName *string `location:"uri" locationName:"environmentName" type:"string" required:"true"` + + // The unique ID of the component. + // + // Id is a required field + Id *string `location:"uri" locationName:"id" type:"string" required:"true"` } // String returns the string representation. @@ -5056,7 +6258,7 @@ type ServiceQuotaExceededException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ServiceQuotaExceededException) String() string { +func (s GetComponentInput) String() string { return awsutil.Prettify(s) } @@ -5065,61 +6267,61 @@ func (s ServiceQuotaExceededException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ServiceQuotaExceededException) GoString() string { +func (s GetComponentInput) GoString() string { return s.String() } -func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { - return &ServiceQuotaExceededException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetComponentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetComponentInput"} + if s.AppId == nil { + invalidParams.Add(request.NewErrParamRequired("AppId")) } -} - -// Code returns the exception type name. -func (s *ServiceQuotaExceededException) Code() string { - return "ServiceQuotaExceededException" -} - -// Message returns the exception's message. -func (s *ServiceQuotaExceededException) Message() string { - if s.Message_ != nil { - return *s.Message_ + if s.AppId != nil && len(*s.AppId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) + } + if s.EnvironmentName == nil { + invalidParams.Add(request.NewErrParamRequired("EnvironmentName")) + } + if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1)) + } + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) } - return "" -} -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ServiceQuotaExceededException) OrigErr() error { + if invalidParams.Len() > 0 { + return invalidParams + } return nil } -func (s *ServiceQuotaExceededException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +// SetAppId sets the AppId field's value. +func (s *GetComponentInput) SetAppId(v string) *GetComponentInput { + s.AppId = &v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *ServiceQuotaExceededException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *GetComponentInput) SetEnvironmentName(v string) *GetComponentInput { + s.EnvironmentName = &v + return s } -// RequestID returns the service's response RequestID for request. -func (s *ServiceQuotaExceededException) RequestID() string { - return s.RespMetadata.RequestID +// SetId sets the Id field's value. +func (s *GetComponentInput) SetId(v string) *GetComponentInput { + s.Id = &v + return s } -// Describes how to sort the data that you bind to a component. -type SortProperty struct { - _ struct{} `type:"structure"` - - // The direction of the sort, either ascending or descending. - // - // Direction is a required field - Direction *string `locationName:"direction" type:"string" required:"true" enum:"SortDirection"` +type GetComponentOutput struct { + _ struct{} `type:"structure" payload:"Component"` - // The field to perform the sort on. - // - // Field is a required field - Field *string `locationName:"field" type:"string" required:"true"` + // Represents the configuration settings for the component. + Component *Component `locationName:"component" type:"structure"` } // String returns the string representation. @@ -5127,7 +6329,7 @@ type SortProperty struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SortProperty) String() string { +func (s GetComponentOutput) String() string { return awsutil.Prettify(s) } @@ -5136,81 +6338,33 @@ func (s SortProperty) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SortProperty) GoString() string { +func (s GetComponentOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SortProperty) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SortProperty"} - if s.Direction == nil { - invalidParams.Add(request.NewErrParamRequired("Direction")) - } - if s.Field == nil { - invalidParams.Add(request.NewErrParamRequired("Field")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetDirection sets the Direction field's value. -func (s *SortProperty) SetDirection(v string) *SortProperty { - s.Direction = &v - return s -} - -// SetField sets the Field field's value. -func (s *SortProperty) SetField(v string) *SortProperty { - s.Field = &v +// SetComponent sets the Component field's value. +func (s *GetComponentOutput) SetComponent(v *Component) *GetComponentOutput { + s.Component = v return s } -// A theme is a collection of style settings that apply globally to the components -// associated with an Amplify application. -type Theme struct { - _ struct{} `type:"structure"` +type GetFormInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // The unique ID for the Amplify app associated with the theme. + // The unique ID of the Amplify app. // // AppId is a required field - AppId *string `locationName:"appId" type:"string" required:"true"` - - // The time that the theme was created. - // - // CreatedAt is a required field - CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"` + AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"` - // The name of the backend environment that is a part of the Amplify app. + // The name of the backend environment that is part of the Amplify app. // // EnvironmentName is a required field - EnvironmentName *string `locationName:"environmentName" type:"string" required:"true"` + EnvironmentName *string `location:"uri" locationName:"environmentName" type:"string" required:"true"` - // The ID for the theme. + // The unique ID of the form. // // Id is a required field - Id *string `locationName:"id" type:"string" required:"true"` - - // The time that the theme was modified. - ModifiedAt *time.Time `locationName:"modifiedAt" type:"timestamp" timestampFormat:"iso8601"` - - // The name of the theme. - // - // Name is a required field - Name *string `locationName:"name" min:"1" type:"string" required:"true"` - - // Describes the properties that can be overriden to customize a theme. - Overrides []*ThemeValues `locationName:"overrides" type:"list"` - - // One or more key-value pairs to use when tagging the theme. - Tags map[string]*string `locationName:"tags" type:"map"` - - // A list of key-value pairs that defines the properties of the theme. - // - // Values is a required field - Values []*ThemeValues `locationName:"values" type:"list" required:"true"` + Id *string `location:"uri" locationName:"id" type:"string" required:"true"` } // String returns the string representation. @@ -5218,7 +6372,7 @@ type Theme struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Theme) String() string { +func (s GetFormInput) String() string { return awsutil.Prettify(s) } @@ -5227,87 +6381,99 @@ func (s Theme) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Theme) GoString() string { +func (s GetFormInput) GoString() string { return s.String() } -// SetAppId sets the AppId field's value. -func (s *Theme) SetAppId(v string) *Theme { - s.AppId = &v - return s -} - -// SetCreatedAt sets the CreatedAt field's value. -func (s *Theme) SetCreatedAt(v time.Time) *Theme { - s.CreatedAt = &v - return s -} - +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetFormInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetFormInput"} + if s.AppId == nil { + invalidParams.Add(request.NewErrParamRequired("AppId")) + } + if s.AppId != nil && len(*s.AppId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) + } + if s.EnvironmentName == nil { + invalidParams.Add(request.NewErrParamRequired("EnvironmentName")) + } + if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1)) + } + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppId sets the AppId field's value. +func (s *GetFormInput) SetAppId(v string) *GetFormInput { + s.AppId = &v + return s +} + // SetEnvironmentName sets the EnvironmentName field's value. -func (s *Theme) SetEnvironmentName(v string) *Theme { +func (s *GetFormInput) SetEnvironmentName(v string) *GetFormInput { s.EnvironmentName = &v return s } // SetId sets the Id field's value. -func (s *Theme) SetId(v string) *Theme { +func (s *GetFormInput) SetId(v string) *GetFormInput { s.Id = &v return s } -// SetModifiedAt sets the ModifiedAt field's value. -func (s *Theme) SetModifiedAt(v time.Time) *Theme { - s.ModifiedAt = &v - return s -} +type GetFormOutput struct { + _ struct{} `type:"structure" payload:"Form"` -// SetName sets the Name field's value. -func (s *Theme) SetName(v string) *Theme { - s.Name = &v - return s + // Represents the configuration settings for the form. + Form *Form `locationName:"form" type:"structure"` } -// SetOverrides sets the Overrides field's value. -func (s *Theme) SetOverrides(v []*ThemeValues) *Theme { - s.Overrides = v - return s +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetFormOutput) String() string { + return awsutil.Prettify(s) } -// SetTags sets the Tags field's value. -func (s *Theme) SetTags(v map[string]*string) *Theme { - s.Tags = v - return s +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetFormOutput) GoString() string { + return s.String() } -// SetValues sets the Values field's value. -func (s *Theme) SetValues(v []*ThemeValues) *Theme { - s.Values = v +// SetForm sets the Form field's value. +func (s *GetFormOutput) SetForm(v *Form) *GetFormOutput { + s.Form = v return s } -// Describes the basic information about a theme. -type ThemeSummary struct { - _ struct{} `type:"structure"` +type GetMetadataInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // The unique ID for the app associated with the theme summary. + // The unique ID of the Amplify app. // // AppId is a required field - AppId *string `locationName:"appId" type:"string" required:"true"` + AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"` // The name of the backend environment that is part of the Amplify app. // // EnvironmentName is a required field - EnvironmentName *string `locationName:"environmentName" type:"string" required:"true"` - - // The ID of the theme. - // - // Id is a required field - Id *string `locationName:"id" type:"string" required:"true"` - - // The name of the theme. - // - // Name is a required field - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + EnvironmentName *string `location:"uri" locationName:"environmentName" type:"string" required:"true"` } // String returns the string representation. @@ -5315,7 +6481,7 @@ type ThemeSummary struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ThemeSummary) String() string { +func (s GetMetadataInput) String() string { return awsutil.Prettify(s) } @@ -5324,43 +6490,94 @@ func (s ThemeSummary) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ThemeSummary) GoString() string { +func (s GetMetadataInput) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetMetadataInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetMetadataInput"} + if s.AppId == nil { + invalidParams.Add(request.NewErrParamRequired("AppId")) + } + if s.AppId != nil && len(*s.AppId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) + } + if s.EnvironmentName == nil { + invalidParams.Add(request.NewErrParamRequired("EnvironmentName")) + } + if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetAppId sets the AppId field's value. -func (s *ThemeSummary) SetAppId(v string) *ThemeSummary { +func (s *GetMetadataInput) SetAppId(v string) *GetMetadataInput { s.AppId = &v return s } // SetEnvironmentName sets the EnvironmentName field's value. -func (s *ThemeSummary) SetEnvironmentName(v string) *ThemeSummary { +func (s *GetMetadataInput) SetEnvironmentName(v string) *GetMetadataInput { s.EnvironmentName = &v return s } -// SetId sets the Id field's value. -func (s *ThemeSummary) SetId(v string) *ThemeSummary { - s.Id = &v - return s +type GetMetadataOutput struct { + _ struct{} `type:"structure"` + + // Represents the configuration settings for the features metadata. + // + // Features is a required field + Features map[string]*string `locationName:"features" type:"map" required:"true"` } -// SetName sets the Name field's value. -func (s *ThemeSummary) SetName(v string) *ThemeSummary { - s.Name = &v +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetMetadataOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetMetadataOutput) GoString() string { + return s.String() +} + +// SetFeatures sets the Features field's value. +func (s *GetMetadataOutput) SetFeatures(v map[string]*string) *GetMetadataOutput { + s.Features = v return s } -// Describes the configuration of a theme's properties. -type ThemeValue struct { - _ struct{} `type:"structure"` +type GetThemeInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // A list of key-value pairs that define the theme's properties. - Children []*ThemeValues `locationName:"children" type:"list"` + // The unique ID of the Amplify app. + // + // AppId is a required field + AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"` - // The value of a theme property. - Value *string `locationName:"value" type:"string"` + // The name of the backend environment that is part of the Amplify app. + // + // EnvironmentName is a required field + EnvironmentName *string `location:"uri" locationName:"environmentName" type:"string" required:"true"` + + // The unique ID for the theme. + // + // Id is a required field + Id *string `location:"uri" locationName:"id" type:"string" required:"true"` } // String returns the string representation. @@ -5368,7 +6585,7 @@ type ThemeValue struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ThemeValue) String() string { +func (s GetThemeInput) String() string { return awsutil.Prettify(s) } @@ -5377,31 +6594,61 @@ func (s ThemeValue) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ThemeValue) GoString() string { +func (s GetThemeInput) GoString() string { return s.String() } -// SetChildren sets the Children field's value. -func (s *ThemeValue) SetChildren(v []*ThemeValues) *ThemeValue { - s.Children = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetThemeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetThemeInput"} + if s.AppId == nil { + invalidParams.Add(request.NewErrParamRequired("AppId")) + } + if s.AppId != nil && len(*s.AppId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) + } + if s.EnvironmentName == nil { + invalidParams.Add(request.NewErrParamRequired("EnvironmentName")) + } + if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1)) + } + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppId sets the AppId field's value. +func (s *GetThemeInput) SetAppId(v string) *GetThemeInput { + s.AppId = &v return s } -// SetValue sets the Value field's value. -func (s *ThemeValue) SetValue(v string) *ThemeValue { - s.Value = &v +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *GetThemeInput) SetEnvironmentName(v string) *GetThemeInput { + s.EnvironmentName = &v return s } -// A key-value pair that defines a property of a theme. -type ThemeValues struct { - _ struct{} `type:"structure"` +// SetId sets the Id field's value. +func (s *GetThemeInput) SetId(v string) *GetThemeInput { + s.Id = &v + return s +} - // The name of the property. - Key *string `locationName:"key" type:"string"` +type GetThemeOutput struct { + _ struct{} `type:"structure" payload:"Theme"` - // The value of the property. - Value *ThemeValue `locationName:"value" type:"structure"` + // Represents the configuration settings for the theme. + Theme *Theme `locationName:"theme" type:"structure"` } // String returns the string representation. @@ -5409,7 +6656,7 @@ type ThemeValues struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ThemeValues) String() string { +func (s GetThemeOutput) String() string { return awsutil.Prettify(s) } @@ -5418,65 +6665,2053 @@ func (s ThemeValues) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ThemeValues) GoString() string { +func (s GetThemeOutput) GoString() string { return s.String() } -// SetKey sets the Key field's value. -func (s *ThemeValues) SetKey(v string) *ThemeValues { - s.Key = &v +// SetTheme sets the Theme field's value. +func (s *GetThemeOutput) SetTheme(v *Theme) *GetThemeOutput { + s.Theme = v return s } -// SetValue sets the Value field's value. -func (s *ThemeValues) SetValue(v *ThemeValue) *ThemeValues { - s.Value = v +// An internal error has occurred. Please retry your request. +type InternalServerException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s *InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InternalServerException) OrigErr() error { + return nil +} + +func (s *InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *InternalServerException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InternalServerException) RequestID() string { + return s.RespMetadata.RequestID +} + +// An invalid or out-of-range value was supplied for the input parameter. +type InvalidParameterException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s InvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s InvalidParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { + return &InvalidParameterException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *InvalidParameterException) Code() string { + return "InvalidParameterException" +} + +// Message returns the exception's message. +func (s *InvalidParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InvalidParameterException) OrigErr() error { + return nil +} + +func (s *InvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *InvalidParameterException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InvalidParameterException) RequestID() string { + return s.RespMetadata.RequestID +} + +type ListComponentsInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The unique ID for the Amplify app. + // + // AppId is a required field + AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"` + + // The name of the backend environment that is a part of the Amplify app. + // + // EnvironmentName is a required field + EnvironmentName *string `location:"uri" locationName:"environmentName" type:"string" required:"true"` + + // The maximum number of components to retrieve. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // The token to request the next page of results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListComponentsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListComponentsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListComponentsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListComponentsInput"} + if s.AppId == nil { + invalidParams.Add(request.NewErrParamRequired("AppId")) + } + if s.AppId != nil && len(*s.AppId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) + } + if s.EnvironmentName == nil { + invalidParams.Add(request.NewErrParamRequired("EnvironmentName")) + } + if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppId sets the AppId field's value. +func (s *ListComponentsInput) SetAppId(v string) *ListComponentsInput { + s.AppId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *ListComponentsInput) SetEnvironmentName(v string) *ListComponentsInput { + s.EnvironmentName = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListComponentsInput) SetMaxResults(v int64) *ListComponentsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListComponentsInput) SetNextToken(v string) *ListComponentsInput { + s.NextToken = &v + return s +} + +type ListComponentsOutput struct { + _ struct{} `type:"structure"` + + // The list of components for the Amplify app. + // + // Entities is a required field + Entities []*ComponentSummary `locationName:"entities" type:"list" required:"true"` + + // The pagination token that's included if more results are available. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListComponentsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListComponentsOutput) GoString() string { + return s.String() +} + +// SetEntities sets the Entities field's value. +func (s *ListComponentsOutput) SetEntities(v []*ComponentSummary) *ListComponentsOutput { + s.Entities = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListComponentsOutput) SetNextToken(v string) *ListComponentsOutput { + s.NextToken = &v + return s +} + +type ListFormsInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The unique ID for the Amplify app. + // + // AppId is a required field + AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"` + + // The name of the backend environment that is a part of the Amplify app. + // + // EnvironmentName is a required field + EnvironmentName *string `location:"uri" locationName:"environmentName" type:"string" required:"true"` + + // The maximum number of forms to retrieve. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // The token to request the next page of results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListFormsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListFormsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListFormsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListFormsInput"} + if s.AppId == nil { + invalidParams.Add(request.NewErrParamRequired("AppId")) + } + if s.AppId != nil && len(*s.AppId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) + } + if s.EnvironmentName == nil { + invalidParams.Add(request.NewErrParamRequired("EnvironmentName")) + } + if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppId sets the AppId field's value. +func (s *ListFormsInput) SetAppId(v string) *ListFormsInput { + s.AppId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *ListFormsInput) SetEnvironmentName(v string) *ListFormsInput { + s.EnvironmentName = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListFormsInput) SetMaxResults(v int64) *ListFormsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListFormsInput) SetNextToken(v string) *ListFormsInput { + s.NextToken = &v + return s +} + +type ListFormsOutput struct { + _ struct{} `type:"structure"` + + // The list of forms for the Amplify app. + // + // Entities is a required field + Entities []*FormSummary `locationName:"entities" type:"list" required:"true"` + + // The pagination token that's included if more results are available. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListFormsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListFormsOutput) GoString() string { + return s.String() +} + +// SetEntities sets the Entities field's value. +func (s *ListFormsOutput) SetEntities(v []*FormSummary) *ListFormsOutput { + s.Entities = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListFormsOutput) SetNextToken(v string) *ListFormsOutput { + s.NextToken = &v + return s +} + +type ListThemesInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The unique ID for the Amplify app. + // + // AppId is a required field + AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"` + + // The name of the backend environment that is a part of the Amplify app. + // + // EnvironmentName is a required field + EnvironmentName *string `location:"uri" locationName:"environmentName" type:"string" required:"true"` + + // The maximum number of theme results to return in the response. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // The token to request the next page of results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListThemesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListThemesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListThemesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListThemesInput"} + if s.AppId == nil { + invalidParams.Add(request.NewErrParamRequired("AppId")) + } + if s.AppId != nil && len(*s.AppId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) + } + if s.EnvironmentName == nil { + invalidParams.Add(request.NewErrParamRequired("EnvironmentName")) + } + if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppId sets the AppId field's value. +func (s *ListThemesInput) SetAppId(v string) *ListThemesInput { + s.AppId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *ListThemesInput) SetEnvironmentName(v string) *ListThemesInput { + s.EnvironmentName = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListThemesInput) SetMaxResults(v int64) *ListThemesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListThemesInput) SetNextToken(v string) *ListThemesInput { + s.NextToken = &v + return s +} + +type ListThemesOutput struct { + _ struct{} `type:"structure"` + + // The list of themes for the Amplify app. + // + // Entities is a required field + Entities []*ThemeSummary `locationName:"entities" type:"list" required:"true"` + + // The pagination token that's returned if more results are available. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListThemesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListThemesOutput) GoString() string { + return s.String() +} + +// SetEntities sets the Entities field's value. +func (s *ListThemesOutput) SetEntities(v []*ThemeSummary) *ListThemesOutput { + s.Entities = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListThemesOutput) SetNextToken(v string) *ListThemesOutput { + s.NextToken = &v + return s +} + +// Represents the state configuration when an action modifies a property of +// another element within the same component. +type MutationActionSetStateParameter struct { + _ struct{} `type:"structure"` + + // The name of the component that is being modified. + // + // ComponentName is a required field + ComponentName *string `locationName:"componentName" type:"string" required:"true"` + + // The name of the component property to apply the state configuration to. + // + // Property is a required field + Property *string `locationName:"property" type:"string" required:"true"` + + // The state configuration to assign to the property. + // + // Set is a required field + Set *ComponentProperty `locationName:"set" type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s MutationActionSetStateParameter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s MutationActionSetStateParameter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MutationActionSetStateParameter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MutationActionSetStateParameter"} + if s.ComponentName == nil { + invalidParams.Add(request.NewErrParamRequired("ComponentName")) + } + if s.Property == nil { + invalidParams.Add(request.NewErrParamRequired("Property")) + } + if s.Set == nil { + invalidParams.Add(request.NewErrParamRequired("Set")) + } + if s.Set != nil { + if err := s.Set.Validate(); err != nil { + invalidParams.AddNested("Set", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetComponentName sets the ComponentName field's value. +func (s *MutationActionSetStateParameter) SetComponentName(v string) *MutationActionSetStateParameter { + s.ComponentName = &v + return s +} + +// SetProperty sets the Property field's value. +func (s *MutationActionSetStateParameter) SetProperty(v string) *MutationActionSetStateParameter { + s.Property = &v + return s +} + +// SetSet sets the Set field's value. +func (s *MutationActionSetStateParameter) SetSet(v *ComponentProperty) *MutationActionSetStateParameter { + s.Set = v + return s +} + +// Stores information for generating Amplify DataStore queries. Use a Predicate +// to retrieve a subset of the data in a collection. +type Predicate struct { + _ struct{} `type:"structure"` + + // A list of predicates to combine logically. + And []*Predicate `locationName:"and" type:"list"` + + // The field to query. + Field *string `locationName:"field" type:"string"` + + // The value to use when performing the evaluation. + Operand *string `locationName:"operand" type:"string"` + + // The operator to use to perform the evaluation. + Operator *string `locationName:"operator" type:"string"` + + // A list of predicates to combine logically. + Or []*Predicate `locationName:"or" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Predicate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Predicate) GoString() string { + return s.String() +} + +// SetAnd sets the And field's value. +func (s *Predicate) SetAnd(v []*Predicate) *Predicate { + s.And = v + return s +} + +// SetField sets the Field field's value. +func (s *Predicate) SetField(v string) *Predicate { + s.Field = &v + return s +} + +// SetOperand sets the Operand field's value. +func (s *Predicate) SetOperand(v string) *Predicate { + s.Operand = &v + return s +} + +// SetOperator sets the Operator field's value. +func (s *Predicate) SetOperator(v string) *Predicate { + s.Operator = &v + return s +} + +// SetOr sets the Or field's value. +func (s *Predicate) SetOr(v []*Predicate) *Predicate { + s.Or = v + return s +} + +// Stores the metadata information about a feature on a form or view. +type PutMetadataFlagBody struct { + _ struct{} `type:"structure"` + + // The new information to store. + // + // NewValue is a required field + NewValue *string `locationName:"newValue" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutMetadataFlagBody) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutMetadataFlagBody) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutMetadataFlagBody) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutMetadataFlagBody"} + if s.NewValue == nil { + invalidParams.Add(request.NewErrParamRequired("NewValue")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNewValue sets the NewValue field's value. +func (s *PutMetadataFlagBody) SetNewValue(v string) *PutMetadataFlagBody { + s.NewValue = &v + return s +} + +type PutMetadataFlagInput struct { + _ struct{} `type:"structure" payload:"Body"` + + // The unique ID for the Amplify app. + // + // AppId is a required field + AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"` + + // The metadata information to store. + // + // Body is a required field + Body *PutMetadataFlagBody `locationName:"body" type:"structure" required:"true"` + + // The name of the backend environment that is part of the Amplify app. + // + // EnvironmentName is a required field + EnvironmentName *string `location:"uri" locationName:"environmentName" type:"string" required:"true"` + + // The name of the feature associated with the metadata. + // + // FeatureName is a required field + FeatureName *string `location:"uri" locationName:"featureName" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutMetadataFlagInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutMetadataFlagInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutMetadataFlagInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutMetadataFlagInput"} + if s.AppId == nil { + invalidParams.Add(request.NewErrParamRequired("AppId")) + } + if s.AppId != nil && len(*s.AppId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) + } + if s.Body == nil { + invalidParams.Add(request.NewErrParamRequired("Body")) + } + if s.EnvironmentName == nil { + invalidParams.Add(request.NewErrParamRequired("EnvironmentName")) + } + if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1)) + } + if s.FeatureName == nil { + invalidParams.Add(request.NewErrParamRequired("FeatureName")) + } + if s.FeatureName != nil && len(*s.FeatureName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FeatureName", 1)) + } + if s.Body != nil { + if err := s.Body.Validate(); err != nil { + invalidParams.AddNested("Body", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppId sets the AppId field's value. +func (s *PutMetadataFlagInput) SetAppId(v string) *PutMetadataFlagInput { + s.AppId = &v + return s +} + +// SetBody sets the Body field's value. +func (s *PutMetadataFlagInput) SetBody(v *PutMetadataFlagBody) *PutMetadataFlagInput { + s.Body = v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *PutMetadataFlagInput) SetEnvironmentName(v string) *PutMetadataFlagInput { + s.EnvironmentName = &v + return s +} + +// SetFeatureName sets the FeatureName field's value. +func (s *PutMetadataFlagInput) SetFeatureName(v string) *PutMetadataFlagInput { + s.FeatureName = &v + return s +} + +type PutMetadataFlagOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutMetadataFlagOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutMetadataFlagOutput) GoString() string { + return s.String() +} + +type RefreshTokenInput struct { + _ struct{} `type:"structure" payload:"RefreshTokenBody"` + + // The third-party provider for the token. The only valid value is figma. + // + // Provider is a required field + Provider *string `location:"uri" locationName:"provider" type:"string" required:"true" enum:"TokenProviders"` + + // Information about the refresh token request. + // + // RefreshTokenBody is a required field + RefreshTokenBody *RefreshTokenRequestBody `locationName:"refreshTokenBody" type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RefreshTokenInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RefreshTokenInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RefreshTokenInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RefreshTokenInput"} + if s.Provider == nil { + invalidParams.Add(request.NewErrParamRequired("Provider")) + } + if s.Provider != nil && len(*s.Provider) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Provider", 1)) + } + if s.RefreshTokenBody == nil { + invalidParams.Add(request.NewErrParamRequired("RefreshTokenBody")) + } + if s.RefreshTokenBody != nil { + if err := s.RefreshTokenBody.Validate(); err != nil { + invalidParams.AddNested("RefreshTokenBody", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetProvider sets the Provider field's value. +func (s *RefreshTokenInput) SetProvider(v string) *RefreshTokenInput { + s.Provider = &v + return s +} + +// SetRefreshTokenBody sets the RefreshTokenBody field's value. +func (s *RefreshTokenInput) SetRefreshTokenBody(v *RefreshTokenRequestBody) *RefreshTokenInput { + s.RefreshTokenBody = v + return s +} + +type RefreshTokenOutput struct { + _ struct{} `type:"structure"` + + // The access token. + // + // AccessToken is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by RefreshTokenOutput's + // String and GoString methods. + // + // AccessToken is a required field + AccessToken *string `locationName:"accessToken" type:"string" required:"true" sensitive:"true"` + + // The date and time when the new access token expires. + // + // ExpiresIn is a required field + ExpiresIn *int64 `locationName:"expiresIn" type:"integer" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RefreshTokenOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RefreshTokenOutput) GoString() string { + return s.String() +} + +// SetAccessToken sets the AccessToken field's value. +func (s *RefreshTokenOutput) SetAccessToken(v string) *RefreshTokenOutput { + s.AccessToken = &v + return s +} + +// SetExpiresIn sets the ExpiresIn field's value. +func (s *RefreshTokenOutput) SetExpiresIn(v int64) *RefreshTokenOutput { + s.ExpiresIn = &v + return s +} + +// Describes a refresh token. +type RefreshTokenRequestBody struct { + _ struct{} `type:"structure"` + + // The token to use to refresh a previously issued access token that might have + // expired. + // + // Token is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by RefreshTokenRequestBody's + // String and GoString methods. + // + // Token is a required field + Token *string `locationName:"token" type:"string" required:"true" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RefreshTokenRequestBody) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RefreshTokenRequestBody) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RefreshTokenRequestBody) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RefreshTokenRequestBody"} + if s.Token == nil { + invalidParams.Add(request.NewErrParamRequired("Token")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetToken sets the Token field's value. +func (s *RefreshTokenRequestBody) SetToken(v string) *RefreshTokenRequestBody { + s.Token = &v + return s +} + +// The resource specified in the request conflicts with an existing resource. +type ResourceConflictException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResourceConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResourceConflictException) GoString() string { + return s.String() +} + +func newErrorResourceConflictException(v protocol.ResponseMetadata) error { + return &ResourceConflictException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ResourceConflictException) Code() string { + return "ResourceConflictException" +} + +// Message returns the exception's message. +func (s *ResourceConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ResourceConflictException) OrigErr() error { + return nil +} + +func (s *ResourceConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ResourceConflictException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ResourceConflictException) RequestID() string { + return s.RespMetadata.RequestID +} + +// The requested resource does not exist, or access was denied. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s *ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s *ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ResourceNotFoundException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ResourceNotFoundException) RequestID() string { + return s.RespMetadata.RequestID +} + +// Stores the configuration information for a visual helper element for a form. +// A sectional element can be a header, a text block, or a divider. These elements +// are static and not associated with any data. +type SectionalElement struct { + _ struct{} `type:"structure"` + + // Specifies the size of the font for a Heading sectional element. Valid values + // are 1 | 2 | 3 | 4 | 5 | 6. + Level *int64 `locationName:"level" type:"integer"` + + // Specifies the orientation for a Divider sectional element. Valid values are + // horizontal or vertical. + Orientation *string `locationName:"orientation" type:"string"` + + // Specifies the position of the text in a field for a Text sectional element. + Position *FieldPosition `locationName:"position" type:"structure"` + + // The text for a Text sectional element. + Text *string `locationName:"text" type:"string"` + + // The type of sectional element. Valid values are Heading, Text, and Divider. + // + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SectionalElement) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SectionalElement) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SectionalElement) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SectionalElement"} + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLevel sets the Level field's value. +func (s *SectionalElement) SetLevel(v int64) *SectionalElement { + s.Level = &v + return s +} + +// SetOrientation sets the Orientation field's value. +func (s *SectionalElement) SetOrientation(v string) *SectionalElement { + s.Orientation = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *SectionalElement) SetPosition(v *FieldPosition) *SectionalElement { + s.Position = v + return s +} + +// SetText sets the Text field's value. +func (s *SectionalElement) SetText(v string) *SectionalElement { + s.Text = &v + return s +} + +// SetType sets the Type field's value. +func (s *SectionalElement) SetType(v string) *SectionalElement { + s.Type = &v + return s +} + +// You exceeded your service quota. Service quotas, also referred to as limits, +// are the maximum number of service resources or operations for your Amazon +// Web Services account. +type ServiceQuotaExceededException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ServiceQuotaExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ServiceQuotaExceededException) GoString() string { + return s.String() +} + +func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { + return &ServiceQuotaExceededException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ServiceQuotaExceededException) Code() string { + return "ServiceQuotaExceededException" +} + +// Message returns the exception's message. +func (s *ServiceQuotaExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ServiceQuotaExceededException) OrigErr() error { + return nil +} + +func (s *ServiceQuotaExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ServiceQuotaExceededException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ServiceQuotaExceededException) RequestID() string { + return s.RespMetadata.RequestID +} + +// Describes how to sort the data that you bind to a component. +type SortProperty struct { + _ struct{} `type:"structure"` + + // The direction of the sort, either ascending or descending. + // + // Direction is a required field + Direction *string `locationName:"direction" type:"string" required:"true" enum:"SortDirection"` + + // The field to perform the sort on. + // + // Field is a required field + Field *string `locationName:"field" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SortProperty) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SortProperty) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SortProperty) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SortProperty"} + if s.Direction == nil { + invalidParams.Add(request.NewErrParamRequired("Direction")) + } + if s.Field == nil { + invalidParams.Add(request.NewErrParamRequired("Field")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDirection sets the Direction field's value. +func (s *SortProperty) SetDirection(v string) *SortProperty { + s.Direction = &v + return s +} + +// SetField sets the Field field's value. +func (s *SortProperty) SetField(v string) *SortProperty { + s.Field = &v + return s +} + +// A theme is a collection of style settings that apply globally to the components +// associated with an Amplify application. +type Theme struct { + _ struct{} `type:"structure"` + + // The unique ID for the Amplify app associated with the theme. + // + // AppId is a required field + AppId *string `locationName:"appId" type:"string" required:"true"` + + // The time that the theme was created. + // + // CreatedAt is a required field + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"` + + // The name of the backend environment that is a part of the Amplify app. + // + // EnvironmentName is a required field + EnvironmentName *string `locationName:"environmentName" type:"string" required:"true"` + + // The ID for the theme. + // + // Id is a required field + Id *string `locationName:"id" type:"string" required:"true"` + + // The time that the theme was modified. + ModifiedAt *time.Time `locationName:"modifiedAt" type:"timestamp" timestampFormat:"iso8601"` + + // The name of the theme. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // Describes the properties that can be overriden to customize a theme. + Overrides []*ThemeValues `locationName:"overrides" type:"list"` + + // One or more key-value pairs to use when tagging the theme. + Tags map[string]*string `locationName:"tags" type:"map"` + + // A list of key-value pairs that defines the properties of the theme. + // + // Values is a required field + Values []*ThemeValues `locationName:"values" type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Theme) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Theme) GoString() string { + return s.String() +} + +// SetAppId sets the AppId field's value. +func (s *Theme) SetAppId(v string) *Theme { + s.AppId = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Theme) SetCreatedAt(v time.Time) *Theme { + s.CreatedAt = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *Theme) SetEnvironmentName(v string) *Theme { + s.EnvironmentName = &v + return s +} + +// SetId sets the Id field's value. +func (s *Theme) SetId(v string) *Theme { + s.Id = &v + return s +} + +// SetModifiedAt sets the ModifiedAt field's value. +func (s *Theme) SetModifiedAt(v time.Time) *Theme { + s.ModifiedAt = &v + return s +} + +// SetName sets the Name field's value. +func (s *Theme) SetName(v string) *Theme { + s.Name = &v + return s +} + +// SetOverrides sets the Overrides field's value. +func (s *Theme) SetOverrides(v []*ThemeValues) *Theme { + s.Overrides = v + return s +} + +// SetTags sets the Tags field's value. +func (s *Theme) SetTags(v map[string]*string) *Theme { + s.Tags = v + return s +} + +// SetValues sets the Values field's value. +func (s *Theme) SetValues(v []*ThemeValues) *Theme { + s.Values = v + return s +} + +// Describes the basic information about a theme. +type ThemeSummary struct { + _ struct{} `type:"structure"` + + // The unique ID for the app associated with the theme summary. + // + // AppId is a required field + AppId *string `locationName:"appId" type:"string" required:"true"` + + // The name of the backend environment that is part of the Amplify app. + // + // EnvironmentName is a required field + EnvironmentName *string `locationName:"environmentName" type:"string" required:"true"` + + // The ID of the theme. + // + // Id is a required field + Id *string `locationName:"id" type:"string" required:"true"` + + // The name of the theme. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ThemeSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ThemeSummary) GoString() string { + return s.String() +} + +// SetAppId sets the AppId field's value. +func (s *ThemeSummary) SetAppId(v string) *ThemeSummary { + s.AppId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *ThemeSummary) SetEnvironmentName(v string) *ThemeSummary { + s.EnvironmentName = &v + return s +} + +// SetId sets the Id field's value. +func (s *ThemeSummary) SetId(v string) *ThemeSummary { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *ThemeSummary) SetName(v string) *ThemeSummary { + s.Name = &v + return s +} + +// Describes the configuration of a theme's properties. +type ThemeValue struct { + _ struct{} `type:"structure"` + + // A list of key-value pairs that define the theme's properties. + Children []*ThemeValues `locationName:"children" type:"list"` + + // The value of a theme property. + Value *string `locationName:"value" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ThemeValue) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ThemeValue) GoString() string { + return s.String() +} + +// SetChildren sets the Children field's value. +func (s *ThemeValue) SetChildren(v []*ThemeValues) *ThemeValue { + s.Children = v + return s +} + +// SetValue sets the Value field's value. +func (s *ThemeValue) SetValue(v string) *ThemeValue { + s.Value = &v + return s +} + +// A key-value pair that defines a property of a theme. +type ThemeValues struct { + _ struct{} `type:"structure"` + + // The name of the property. + Key *string `locationName:"key" type:"string"` + + // The value of the property. + Value *ThemeValue `locationName:"value" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ThemeValues) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ThemeValues) GoString() string { + return s.String() +} + +// SetKey sets the Key field's value. +func (s *ThemeValues) SetKey(v string) *ThemeValues { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *ThemeValues) SetValue(v *ThemeValue) *ThemeValues { + s.Value = v + return s +} + +// You don't have permission to perform this operation. +type UnauthorizedException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UnauthorizedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UnauthorizedException) GoString() string { + return s.String() +} + +func newErrorUnauthorizedException(v protocol.ResponseMetadata) error { + return &UnauthorizedException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *UnauthorizedException) Code() string { + return "UnauthorizedException" +} + +// Message returns the exception's message. +func (s *UnauthorizedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *UnauthorizedException) OrigErr() error { + return nil +} + +func (s *UnauthorizedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *UnauthorizedException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *UnauthorizedException) RequestID() string { + return s.RespMetadata.RequestID +} + +// Updates and saves all of the information about a component, based on component +// ID. +type UpdateComponentData struct { + _ struct{} `type:"structure"` + + // The data binding information for the component's properties. + BindingProperties map[string]*ComponentBindingPropertiesValue `locationName:"bindingProperties" type:"map"` + + // The components that are instances of the main component. + Children []*ComponentChild `locationName:"children" type:"list"` + + // The configuration for binding a component's properties to a data model. Use + // this for a collection component. + CollectionProperties map[string]*ComponentDataConfiguration `locationName:"collectionProperties" type:"map"` + + // The type of the component. This can be an Amplify custom UI component or + // another custom component. + ComponentType *string `locationName:"componentType" min:"1" type:"string"` + + // The event configuration for the component. Use for the workflow feature in + // Amplify Studio that allows you to bind events and actions to components. + Events map[string]*ComponentEvent `locationName:"events" type:"map"` + + // The unique ID of the component to update. + Id *string `locationName:"id" type:"string"` + + // The name of the component to update. + Name *string `locationName:"name" min:"1" type:"string"` + + // Describes the properties that can be overriden to customize the component. + Overrides map[string]map[string]*string `locationName:"overrides" type:"map"` + + // Describes the component's properties. + Properties map[string]*ComponentProperty `locationName:"properties" type:"map"` + + // The schema version of the component when it was imported. + SchemaVersion *string `locationName:"schemaVersion" type:"string"` + + // The unique ID of the component in its original source system, such as Figma. + SourceId *string `locationName:"sourceId" type:"string"` + + // A list of the unique variants of the main component being updated. + Variants []*ComponentVariant `locationName:"variants" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateComponentData) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateComponentData) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateComponentData) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateComponentData"} + if s.ComponentType != nil && len(*s.ComponentType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ComponentType", 1)) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Children != nil { + for i, v := range s.Children { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Children", i), err.(request.ErrInvalidParams)) + } + } + } + if s.CollectionProperties != nil { + for i, v := range s.CollectionProperties { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CollectionProperties", i), err.(request.ErrInvalidParams)) + } + } + } + if s.Events != nil { + for i, v := range s.Events { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Events", i), err.(request.ErrInvalidParams)) + } + } + } + if s.Properties != nil { + for i, v := range s.Properties { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Properties", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBindingProperties sets the BindingProperties field's value. +func (s *UpdateComponentData) SetBindingProperties(v map[string]*ComponentBindingPropertiesValue) *UpdateComponentData { + s.BindingProperties = v + return s +} + +// SetChildren sets the Children field's value. +func (s *UpdateComponentData) SetChildren(v []*ComponentChild) *UpdateComponentData { + s.Children = v + return s +} + +// SetCollectionProperties sets the CollectionProperties field's value. +func (s *UpdateComponentData) SetCollectionProperties(v map[string]*ComponentDataConfiguration) *UpdateComponentData { + s.CollectionProperties = v + return s +} + +// SetComponentType sets the ComponentType field's value. +func (s *UpdateComponentData) SetComponentType(v string) *UpdateComponentData { + s.ComponentType = &v + return s +} + +// SetEvents sets the Events field's value. +func (s *UpdateComponentData) SetEvents(v map[string]*ComponentEvent) *UpdateComponentData { + s.Events = v + return s +} + +// SetId sets the Id field's value. +func (s *UpdateComponentData) SetId(v string) *UpdateComponentData { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateComponentData) SetName(v string) *UpdateComponentData { + s.Name = &v + return s +} + +// SetOverrides sets the Overrides field's value. +func (s *UpdateComponentData) SetOverrides(v map[string]map[string]*string) *UpdateComponentData { + s.Overrides = v + return s +} + +// SetProperties sets the Properties field's value. +func (s *UpdateComponentData) SetProperties(v map[string]*ComponentProperty) *UpdateComponentData { + s.Properties = v + return s +} + +// SetSchemaVersion sets the SchemaVersion field's value. +func (s *UpdateComponentData) SetSchemaVersion(v string) *UpdateComponentData { + s.SchemaVersion = &v + return s +} + +// SetSourceId sets the SourceId field's value. +func (s *UpdateComponentData) SetSourceId(v string) *UpdateComponentData { + s.SourceId = &v + return s +} + +// SetVariants sets the Variants field's value. +func (s *UpdateComponentData) SetVariants(v []*ComponentVariant) *UpdateComponentData { + s.Variants = v + return s +} + +type UpdateComponentInput struct { + _ struct{} `type:"structure" payload:"UpdatedComponent"` + + // The unique ID for the Amplify app. + // + // AppId is a required field + AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"` + + // The unique client token. + ClientToken *string `location:"querystring" locationName:"clientToken" type:"string" idempotencyToken:"true"` + + // The name of the backend environment that is part of the Amplify app. + // + // EnvironmentName is a required field + EnvironmentName *string `location:"uri" locationName:"environmentName" type:"string" required:"true"` + + // The unique ID for the component. + // + // Id is a required field + Id *string `location:"uri" locationName:"id" type:"string" required:"true"` + + // The configuration of the updated component. + // + // UpdatedComponent is a required field + UpdatedComponent *UpdateComponentData `locationName:"updatedComponent" type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateComponentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateComponentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateComponentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateComponentInput"} + if s.AppId == nil { + invalidParams.Add(request.NewErrParamRequired("AppId")) + } + if s.AppId != nil && len(*s.AppId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) + } + if s.EnvironmentName == nil { + invalidParams.Add(request.NewErrParamRequired("EnvironmentName")) + } + if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1)) + } + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + if s.UpdatedComponent == nil { + invalidParams.Add(request.NewErrParamRequired("UpdatedComponent")) + } + if s.UpdatedComponent != nil { + if err := s.UpdatedComponent.Validate(); err != nil { + invalidParams.AddNested("UpdatedComponent", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppId sets the AppId field's value. +func (s *UpdateComponentInput) SetAppId(v string) *UpdateComponentInput { + s.AppId = &v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *UpdateComponentInput) SetClientToken(v string) *UpdateComponentInput { + s.ClientToken = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *UpdateComponentInput) SetEnvironmentName(v string) *UpdateComponentInput { + s.EnvironmentName = &v + return s +} + +// SetId sets the Id field's value. +func (s *UpdateComponentInput) SetId(v string) *UpdateComponentInput { + s.Id = &v + return s +} + +// SetUpdatedComponent sets the UpdatedComponent field's value. +func (s *UpdateComponentInput) SetUpdatedComponent(v *UpdateComponentData) *UpdateComponentInput { + s.UpdatedComponent = v + return s +} + +type UpdateComponentOutput struct { + _ struct{} `type:"structure" payload:"Entity"` + + // Describes the configuration of the updated component. + Entity *Component `locationName:"entity" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateComponentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateComponentOutput) GoString() string { + return s.String() +} + +// SetEntity sets the Entity field's value. +func (s *UpdateComponentOutput) SetEntity(v *Component) *UpdateComponentOutput { + s.Entity = v return s } -// Updates and saves all of the information about a component, based on component -// ID. -type UpdateComponentData struct { +// Updates and saves all of the information about a form, based on form ID. +type UpdateFormData struct { _ struct{} `type:"structure"` - // The data binding information for the component's properties. - BindingProperties map[string]*ComponentBindingPropertiesValue `locationName:"bindingProperties" type:"map"` - - // The components that are instances of the main component. - Children []*ComponentChild `locationName:"children" type:"list"` - - // The configuration for binding a component's properties to a data model. Use - // this for a collection component. - CollectionProperties map[string]*ComponentDataConfiguration `locationName:"collectionProperties" type:"map"` + // The FormCTA object that stores the call to action configuration for the form. + Cta *FormCTA `locationName:"cta" type:"structure"` - // The type of the component. This can be an Amplify custom UI component or - // another custom component. - ComponentType *string `locationName:"componentType" min:"1" type:"string"` + // The type of data source to use to create the form. + DataType *FormDataTypeConfig `locationName:"dataType" type:"structure"` - // The event configuration for the component. Use for the workflow feature in - // Amplify Studio that allows you to bind events and actions to components. - Events map[string]*ComponentEvent `locationName:"events" type:"map"` + // The configuration information for the form's fields. + Fields map[string]*FieldConfig `locationName:"fields" type:"map"` - // The unique ID of the component to update. - Id *string `locationName:"id" type:"string"` + // Specifies whether to perform a create or update action on the form. + FormActionType *string `locationName:"formActionType" type:"string" enum:"FormActionType"` - // The name of the component to update. + // The name of the form. Name *string `locationName:"name" min:"1" type:"string"` - // Describes the properties that can be overriden to customize the component. - Overrides map[string]map[string]*string `locationName:"overrides" type:"map"` - - // Describes the component's properties. - Properties map[string]*ComponentProperty `locationName:"properties" type:"map"` - - // The schema version of the component when it was imported. + // The schema version of the form. SchemaVersion *string `locationName:"schemaVersion" type:"string"` - // The unique ID of the component in its original source system, such as Figma. - SourceId *string `locationName:"sourceId" type:"string"` + // The configuration information for the visual helper elements for the form. + // These elements are not associated with any data. + SectionalElements map[string]*SectionalElement `locationName:"sectionalElements" type:"map"` - // A list of the unique variants of the main component being updated. - Variants []*ComponentVariant `locationName:"variants" type:"list"` + // The configuration for the form's style. + Style *FormStyle `locationName:"style" type:"structure"` } // String returns the string representation. @@ -5484,7 +8719,7 @@ type UpdateComponentData struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateComponentData) String() string { +func (s UpdateFormData) String() string { return awsutil.Prettify(s) } @@ -5493,56 +8728,38 @@ func (s UpdateComponentData) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateComponentData) GoString() string { +func (s UpdateFormData) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateComponentData) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateComponentData"} - if s.ComponentType != nil && len(*s.ComponentType) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ComponentType", 1)) - } +func (s *UpdateFormData) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateFormData"} if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } - if s.Children != nil { - for i, v := range s.Children { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Children", i), err.(request.ErrInvalidParams)) - } - } - } - if s.CollectionProperties != nil { - for i, v := range s.CollectionProperties { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CollectionProperties", i), err.(request.ErrInvalidParams)) - } + if s.DataType != nil { + if err := s.DataType.Validate(); err != nil { + invalidParams.AddNested("DataType", err.(request.ErrInvalidParams)) } } - if s.Events != nil { - for i, v := range s.Events { + if s.Fields != nil { + for i, v := range s.Fields { if v == nil { continue } if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Events", i), err.(request.ErrInvalidParams)) + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Fields", i), err.(request.ErrInvalidParams)) } } } - if s.Properties != nil { - for i, v := range s.Properties { + if s.SectionalElements != nil { + for i, v := range s.SectionalElements { if v == nil { continue } if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Properties", i), err.(request.ErrInvalidParams)) + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SectionalElements", i), err.(request.ErrInvalidParams)) } } } @@ -5553,80 +8770,56 @@ func (s *UpdateComponentData) Validate() error { return nil } -// SetBindingProperties sets the BindingProperties field's value. -func (s *UpdateComponentData) SetBindingProperties(v map[string]*ComponentBindingPropertiesValue) *UpdateComponentData { - s.BindingProperties = v - return s -} - -// SetChildren sets the Children field's value. -func (s *UpdateComponentData) SetChildren(v []*ComponentChild) *UpdateComponentData { - s.Children = v - return s -} - -// SetCollectionProperties sets the CollectionProperties field's value. -func (s *UpdateComponentData) SetCollectionProperties(v map[string]*ComponentDataConfiguration) *UpdateComponentData { - s.CollectionProperties = v +// SetCta sets the Cta field's value. +func (s *UpdateFormData) SetCta(v *FormCTA) *UpdateFormData { + s.Cta = v return s } -// SetComponentType sets the ComponentType field's value. -func (s *UpdateComponentData) SetComponentType(v string) *UpdateComponentData { - s.ComponentType = &v +// SetDataType sets the DataType field's value. +func (s *UpdateFormData) SetDataType(v *FormDataTypeConfig) *UpdateFormData { + s.DataType = v return s } -// SetEvents sets the Events field's value. -func (s *UpdateComponentData) SetEvents(v map[string]*ComponentEvent) *UpdateComponentData { - s.Events = v +// SetFields sets the Fields field's value. +func (s *UpdateFormData) SetFields(v map[string]*FieldConfig) *UpdateFormData { + s.Fields = v return s } -// SetId sets the Id field's value. -func (s *UpdateComponentData) SetId(v string) *UpdateComponentData { - s.Id = &v +// SetFormActionType sets the FormActionType field's value. +func (s *UpdateFormData) SetFormActionType(v string) *UpdateFormData { + s.FormActionType = &v return s } // SetName sets the Name field's value. -func (s *UpdateComponentData) SetName(v string) *UpdateComponentData { +func (s *UpdateFormData) SetName(v string) *UpdateFormData { s.Name = &v return s } -// SetOverrides sets the Overrides field's value. -func (s *UpdateComponentData) SetOverrides(v map[string]map[string]*string) *UpdateComponentData { - s.Overrides = v - return s -} - -// SetProperties sets the Properties field's value. -func (s *UpdateComponentData) SetProperties(v map[string]*ComponentProperty) *UpdateComponentData { - s.Properties = v - return s -} - // SetSchemaVersion sets the SchemaVersion field's value. -func (s *UpdateComponentData) SetSchemaVersion(v string) *UpdateComponentData { +func (s *UpdateFormData) SetSchemaVersion(v string) *UpdateFormData { s.SchemaVersion = &v return s } -// SetSourceId sets the SourceId field's value. -func (s *UpdateComponentData) SetSourceId(v string) *UpdateComponentData { - s.SourceId = &v +// SetSectionalElements sets the SectionalElements field's value. +func (s *UpdateFormData) SetSectionalElements(v map[string]*SectionalElement) *UpdateFormData { + s.SectionalElements = v return s } -// SetVariants sets the Variants field's value. -func (s *UpdateComponentData) SetVariants(v []*ComponentVariant) *UpdateComponentData { - s.Variants = v +// SetStyle sets the Style field's value. +func (s *UpdateFormData) SetStyle(v *FormStyle) *UpdateFormData { + s.Style = v return s } -type UpdateComponentInput struct { - _ struct{} `type:"structure" payload:"UpdatedComponent"` +type UpdateFormInput struct { + _ struct{} `type:"structure" payload:"UpdatedForm"` // The unique ID for the Amplify app. // @@ -5641,15 +8834,15 @@ type UpdateComponentInput struct { // EnvironmentName is a required field EnvironmentName *string `location:"uri" locationName:"environmentName" type:"string" required:"true"` - // The unique ID for the component. + // The unique ID for the form. // // Id is a required field Id *string `location:"uri" locationName:"id" type:"string" required:"true"` - // The configuration of the updated component. + // The request accepts the following data in JSON format. // - // UpdatedComponent is a required field - UpdatedComponent *UpdateComponentData `locationName:"updatedComponent" type:"structure" required:"true"` + // UpdatedForm is a required field + UpdatedForm *UpdateFormData `locationName:"updatedForm" type:"structure" required:"true"` } // String returns the string representation. @@ -5657,7 +8850,7 @@ type UpdateComponentInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateComponentInput) String() string { +func (s UpdateFormInput) String() string { return awsutil.Prettify(s) } @@ -5666,13 +8859,13 @@ func (s UpdateComponentInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateComponentInput) GoString() string { +func (s UpdateFormInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateComponentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateComponentInput"} +func (s *UpdateFormInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateFormInput"} if s.AppId == nil { invalidParams.Add(request.NewErrParamRequired("AppId")) } @@ -5691,12 +8884,12 @@ func (s *UpdateComponentInput) Validate() error { if s.Id != nil && len(*s.Id) < 1 { invalidParams.Add(request.NewErrParamMinLen("Id", 1)) } - if s.UpdatedComponent == nil { - invalidParams.Add(request.NewErrParamRequired("UpdatedComponent")) + if s.UpdatedForm == nil { + invalidParams.Add(request.NewErrParamRequired("UpdatedForm")) } - if s.UpdatedComponent != nil { - if err := s.UpdatedComponent.Validate(); err != nil { - invalidParams.AddNested("UpdatedComponent", err.(request.ErrInvalidParams)) + if s.UpdatedForm != nil { + if err := s.UpdatedForm.Validate(); err != nil { + invalidParams.AddNested("UpdatedForm", err.(request.ErrInvalidParams)) } } @@ -5707,40 +8900,40 @@ func (s *UpdateComponentInput) Validate() error { } // SetAppId sets the AppId field's value. -func (s *UpdateComponentInput) SetAppId(v string) *UpdateComponentInput { +func (s *UpdateFormInput) SetAppId(v string) *UpdateFormInput { s.AppId = &v return s } // SetClientToken sets the ClientToken field's value. -func (s *UpdateComponentInput) SetClientToken(v string) *UpdateComponentInput { +func (s *UpdateFormInput) SetClientToken(v string) *UpdateFormInput { s.ClientToken = &v return s } // SetEnvironmentName sets the EnvironmentName field's value. -func (s *UpdateComponentInput) SetEnvironmentName(v string) *UpdateComponentInput { +func (s *UpdateFormInput) SetEnvironmentName(v string) *UpdateFormInput { s.EnvironmentName = &v return s } // SetId sets the Id field's value. -func (s *UpdateComponentInput) SetId(v string) *UpdateComponentInput { +func (s *UpdateFormInput) SetId(v string) *UpdateFormInput { s.Id = &v return s } -// SetUpdatedComponent sets the UpdatedComponent field's value. -func (s *UpdateComponentInput) SetUpdatedComponent(v *UpdateComponentData) *UpdateComponentInput { - s.UpdatedComponent = v +// SetUpdatedForm sets the UpdatedForm field's value. +func (s *UpdateFormInput) SetUpdatedForm(v *UpdateFormData) *UpdateFormInput { + s.UpdatedForm = v return s } -type UpdateComponentOutput struct { +type UpdateFormOutput struct { _ struct{} `type:"structure" payload:"Entity"` - // Describes the configuration of the updated component. - Entity *Component `locationName:"entity" type:"structure"` + // Describes the configuration of the updated form. + Entity *Form `locationName:"entity" type:"structure"` } // String returns the string representation. @@ -5748,7 +8941,7 @@ type UpdateComponentOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateComponentOutput) String() string { +func (s UpdateFormOutput) String() string { return awsutil.Prettify(s) } @@ -5757,12 +8950,12 @@ func (s UpdateComponentOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateComponentOutput) GoString() string { +func (s UpdateFormOutput) GoString() string { return s.String() } // SetEntity sets the Entity field's value. -func (s *UpdateComponentOutput) SetEntity(v *Component) *UpdateComponentOutput { +func (s *UpdateFormOutput) SetEntity(v *Form) *UpdateFormOutput { s.Entity = v return s } @@ -5986,6 +9179,184 @@ func (s *UpdateThemeOutput) SetEntity(v *Theme) *UpdateThemeOutput { return s } +// Associates a complex object with a display value. Use ValueMapping to store +// how to represent complex objects when they are displayed. +type ValueMapping struct { + _ struct{} `type:"structure"` + + // The value to display for the complex object. + DisplayValue *FormInputValueProperty `locationName:"displayValue" type:"structure"` + + // The complex object. + // + // Value is a required field + Value *FormInputValueProperty `locationName:"value" type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ValueMapping) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ValueMapping) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ValueMapping) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ValueMapping"} + if s.Value == nil { + invalidParams.Add(request.NewErrParamRequired("Value")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDisplayValue sets the DisplayValue field's value. +func (s *ValueMapping) SetDisplayValue(v *FormInputValueProperty) *ValueMapping { + s.DisplayValue = v + return s +} + +// SetValue sets the Value field's value. +func (s *ValueMapping) SetValue(v *FormInputValueProperty) *ValueMapping { + s.Value = v + return s +} + +// Represents the data binding configuration for a value map. +type ValueMappings struct { + _ struct{} `type:"structure"` + + // The value and display value pairs. + // + // Values is a required field + Values []*ValueMapping `locationName:"values" type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ValueMappings) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ValueMappings) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ValueMappings) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ValueMappings"} + if s.Values == nil { + invalidParams.Add(request.NewErrParamRequired("Values")) + } + if s.Values != nil { + for i, v := range s.Values { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Values", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetValues sets the Values field's value. +func (s *ValueMappings) SetValues(v []*ValueMapping) *ValueMappings { + s.Values = v + return s +} + +const ( + // FixedPositionFirst is a FixedPosition enum value + FixedPositionFirst = "first" +) + +// FixedPosition_Values returns all elements of the FixedPosition enum +func FixedPosition_Values() []string { + return []string{ + FixedPositionFirst, + } +} + +const ( + // FormActionTypeCreate is a FormActionType enum value + FormActionTypeCreate = "create" + + // FormActionTypeUpdate is a FormActionType enum value + FormActionTypeUpdate = "update" +) + +// FormActionType_Values returns all elements of the FormActionType enum +func FormActionType_Values() []string { + return []string{ + FormActionTypeCreate, + FormActionTypeUpdate, + } +} + +const ( + // FormButtonsPositionTop is a FormButtonsPosition enum value + FormButtonsPositionTop = "top" + + // FormButtonsPositionBottom is a FormButtonsPosition enum value + FormButtonsPositionBottom = "bottom" + + // FormButtonsPositionTopAndBottom is a FormButtonsPosition enum value + FormButtonsPositionTopAndBottom = "top_and_bottom" +) + +// FormButtonsPosition_Values returns all elements of the FormButtonsPosition enum +func FormButtonsPosition_Values() []string { + return []string{ + FormButtonsPositionTop, + FormButtonsPositionBottom, + FormButtonsPositionTopAndBottom, + } +} + +const ( + // FormDataSourceTypeDataStore is a FormDataSourceType enum value + FormDataSourceTypeDataStore = "DataStore" + + // FormDataSourceTypeCustom is a FormDataSourceType enum value + FormDataSourceTypeCustom = "Custom" +) + +// FormDataSourceType_Values returns all elements of the FormDataSourceType enum +func FormDataSourceType_Values() []string { + return []string{ + FormDataSourceTypeDataStore, + FormDataSourceTypeCustom, + } +} + const ( // SortDirectionAsc is a SortDirection enum value SortDirectionAsc = "ASC" diff --git a/service/amplifyuibuilder/errors.go b/service/amplifyuibuilder/errors.go index dd4338a3c2..d66e627f07 100644 --- a/service/amplifyuibuilder/errors.go +++ b/service/amplifyuibuilder/errors.go @@ -39,6 +39,12 @@ const ( // are the maximum number of service resources or operations for your Amazon // Web Services account. ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" + + // ErrCodeUnauthorizedException for service response error code + // "UnauthorizedException". + // + // You don't have permission to perform this operation. + ErrCodeUnauthorizedException = "UnauthorizedException" ) var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ @@ -47,4 +53,5 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "ResourceConflictException": newErrorResourceConflictException, "ResourceNotFoundException": newErrorResourceNotFoundException, "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, + "UnauthorizedException": newErrorUnauthorizedException, } diff --git a/service/ec2/api.go b/service/ec2/api.go index 177879d859..22ed684091 100644 --- a/service/ec2/api.go +++ b/service/ec2/api.go @@ -4329,6 +4329,152 @@ func (c *EC2) CreateClientVpnRouteWithContext(ctx aws.Context, input *CreateClie return out, req.Send() } +const opCreateCoipCidr = "CreateCoipCidr" + +// CreateCoipCidrRequest generates a "aws/request.Request" representing the +// client's request for the CreateCoipCidr operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateCoipCidr for more information on using the CreateCoipCidr +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the CreateCoipCidrRequest method. +// req, resp := client.CreateCoipCidrRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCoipCidr +func (c *EC2) CreateCoipCidrRequest(input *CreateCoipCidrInput) (req *request.Request, output *CreateCoipCidrOutput) { + op := &request.Operation{ + Name: opCreateCoipCidr, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateCoipCidrInput{} + } + + output = &CreateCoipCidrOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateCoipCidr API operation for Amazon Elastic Compute Cloud. +// +// Creates a range of customer-owned IP addresses. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateCoipCidr for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCoipCidr +func (c *EC2) CreateCoipCidr(input *CreateCoipCidrInput) (*CreateCoipCidrOutput, error) { + req, out := c.CreateCoipCidrRequest(input) + return out, req.Send() +} + +// CreateCoipCidrWithContext is the same as CreateCoipCidr with the addition of +// the ability to pass a context and additional request options. +// +// See CreateCoipCidr for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) CreateCoipCidrWithContext(ctx aws.Context, input *CreateCoipCidrInput, opts ...request.Option) (*CreateCoipCidrOutput, error) { + req, out := c.CreateCoipCidrRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateCoipPool = "CreateCoipPool" + +// CreateCoipPoolRequest generates a "aws/request.Request" representing the +// client's request for the CreateCoipPool operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateCoipPool for more information on using the CreateCoipPool +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the CreateCoipPoolRequest method. +// req, resp := client.CreateCoipPoolRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCoipPool +func (c *EC2) CreateCoipPoolRequest(input *CreateCoipPoolInput) (req *request.Request, output *CreateCoipPoolOutput) { + op := &request.Operation{ + Name: opCreateCoipPool, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateCoipPoolInput{} + } + + output = &CreateCoipPoolOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateCoipPool API operation for Amazon Elastic Compute Cloud. +// +// Creates a pool of customer-owned IP (CoIP) addresses. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateCoipPool for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCoipPool +func (c *EC2) CreateCoipPool(input *CreateCoipPoolInput) (*CreateCoipPoolOutput, error) { + req, out := c.CreateCoipPoolRequest(input) + return out, req.Send() +} + +// CreateCoipPoolWithContext is the same as CreateCoipPool with the addition of +// the ability to pass a context and additional request options. +// +// See CreateCoipPool for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) CreateCoipPoolWithContext(ctx aws.Context, input *CreateCoipPoolInput, opts ...request.Option) (*CreateCoipPoolOutput, error) { + req, out := c.CreateCoipPoolRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateCustomerGateway = "CreateCustomerGateway" // CreateCustomerGatewayRequest generates a "aws/request.Request" representing the @@ -5938,6 +6084,152 @@ func (c *EC2) CreateLocalGatewayRouteWithContext(ctx aws.Context, input *CreateL return out, req.Send() } +const opCreateLocalGatewayRouteTable = "CreateLocalGatewayRouteTable" + +// CreateLocalGatewayRouteTableRequest generates a "aws/request.Request" representing the +// client's request for the CreateLocalGatewayRouteTable operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateLocalGatewayRouteTable for more information on using the CreateLocalGatewayRouteTable +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the CreateLocalGatewayRouteTableRequest method. +// req, resp := client.CreateLocalGatewayRouteTableRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLocalGatewayRouteTable +func (c *EC2) CreateLocalGatewayRouteTableRequest(input *CreateLocalGatewayRouteTableInput) (req *request.Request, output *CreateLocalGatewayRouteTableOutput) { + op := &request.Operation{ + Name: opCreateLocalGatewayRouteTable, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateLocalGatewayRouteTableInput{} + } + + output = &CreateLocalGatewayRouteTableOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateLocalGatewayRouteTable API operation for Amazon Elastic Compute Cloud. +// +// Creates a local gateway route table. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateLocalGatewayRouteTable for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLocalGatewayRouteTable +func (c *EC2) CreateLocalGatewayRouteTable(input *CreateLocalGatewayRouteTableInput) (*CreateLocalGatewayRouteTableOutput, error) { + req, out := c.CreateLocalGatewayRouteTableRequest(input) + return out, req.Send() +} + +// CreateLocalGatewayRouteTableWithContext is the same as CreateLocalGatewayRouteTable with the addition of +// the ability to pass a context and additional request options. +// +// See CreateLocalGatewayRouteTable for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) CreateLocalGatewayRouteTableWithContext(ctx aws.Context, input *CreateLocalGatewayRouteTableInput, opts ...request.Option) (*CreateLocalGatewayRouteTableOutput, error) { + req, out := c.CreateLocalGatewayRouteTableRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation = "CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation" + +// CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest generates a "aws/request.Request" representing the +// client's request for the CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation for more information on using the CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest method. +// req, resp := client.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation +func (c *EC2) CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest(input *CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) (req *request.Request, output *CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput) { + op := &request.Operation{ + Name: opCreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput{} + } + + output = &CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation API operation for Amazon Elastic Compute Cloud. +// +// Creates a local gateway route table virtual interface group association. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation +func (c *EC2) CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation(input *CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) (*CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput, error) { + req, out := c.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest(input) + return out, req.Send() +} + +// CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationWithContext is the same as CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation with the addition of +// the ability to pass a context and additional request options. +// +// See CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationWithContext(ctx aws.Context, input *CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput, opts ...request.Option) (*CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput, error) { + req, out := c.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateLocalGatewayRouteTableVpcAssociation = "CreateLocalGatewayRouteTableVpcAssociation" // CreateLocalGatewayRouteTableVpcAssociationRequest generates a "aws/request.Request" representing the @@ -10108,6 +10400,152 @@ func (c *EC2) DeleteClientVpnRouteWithContext(ctx aws.Context, input *DeleteClie return out, req.Send() } +const opDeleteCoipCidr = "DeleteCoipCidr" + +// DeleteCoipCidrRequest generates a "aws/request.Request" representing the +// client's request for the DeleteCoipCidr operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteCoipCidr for more information on using the DeleteCoipCidr +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteCoipCidrRequest method. +// req, resp := client.DeleteCoipCidrRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteCoipCidr +func (c *EC2) DeleteCoipCidrRequest(input *DeleteCoipCidrInput) (req *request.Request, output *DeleteCoipCidrOutput) { + op := &request.Operation{ + Name: opDeleteCoipCidr, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteCoipCidrInput{} + } + + output = &DeleteCoipCidrOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteCoipCidr API operation for Amazon Elastic Compute Cloud. +// +// Deletes a range of customer-owned IP addresses. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteCoipCidr for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteCoipCidr +func (c *EC2) DeleteCoipCidr(input *DeleteCoipCidrInput) (*DeleteCoipCidrOutput, error) { + req, out := c.DeleteCoipCidrRequest(input) + return out, req.Send() +} + +// DeleteCoipCidrWithContext is the same as DeleteCoipCidr with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteCoipCidr for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DeleteCoipCidrWithContext(ctx aws.Context, input *DeleteCoipCidrInput, opts ...request.Option) (*DeleteCoipCidrOutput, error) { + req, out := c.DeleteCoipCidrRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteCoipPool = "DeleteCoipPool" + +// DeleteCoipPoolRequest generates a "aws/request.Request" representing the +// client's request for the DeleteCoipPool operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteCoipPool for more information on using the DeleteCoipPool +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteCoipPoolRequest method. +// req, resp := client.DeleteCoipPoolRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteCoipPool +func (c *EC2) DeleteCoipPoolRequest(input *DeleteCoipPoolInput) (req *request.Request, output *DeleteCoipPoolOutput) { + op := &request.Operation{ + Name: opDeleteCoipPool, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteCoipPoolInput{} + } + + output = &DeleteCoipPoolOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteCoipPool API operation for Amazon Elastic Compute Cloud. +// +// Deletes a pool of customer-owned IP (CoIP) addresses. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteCoipPool for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteCoipPool +func (c *EC2) DeleteCoipPool(input *DeleteCoipPoolInput) (*DeleteCoipPoolOutput, error) { + req, out := c.DeleteCoipPoolRequest(input) + return out, req.Send() +} + +// DeleteCoipPoolWithContext is the same as DeleteCoipPool with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteCoipPool for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DeleteCoipPoolWithContext(ctx aws.Context, input *DeleteCoipPoolInput, opts ...request.Option) (*DeleteCoipPoolOutput, error) { + req, out := c.DeleteCoipPoolRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteCustomerGateway = "DeleteCustomerGateway" // DeleteCustomerGatewayRequest generates a "aws/request.Request" representing the @@ -11257,6 +11695,152 @@ func (c *EC2) DeleteLocalGatewayRouteWithContext(ctx aws.Context, input *DeleteL return out, req.Send() } +const opDeleteLocalGatewayRouteTable = "DeleteLocalGatewayRouteTable" + +// DeleteLocalGatewayRouteTableRequest generates a "aws/request.Request" representing the +// client's request for the DeleteLocalGatewayRouteTable operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteLocalGatewayRouteTable for more information on using the DeleteLocalGatewayRouteTable +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteLocalGatewayRouteTableRequest method. +// req, resp := client.DeleteLocalGatewayRouteTableRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLocalGatewayRouteTable +func (c *EC2) DeleteLocalGatewayRouteTableRequest(input *DeleteLocalGatewayRouteTableInput) (req *request.Request, output *DeleteLocalGatewayRouteTableOutput) { + op := &request.Operation{ + Name: opDeleteLocalGatewayRouteTable, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteLocalGatewayRouteTableInput{} + } + + output = &DeleteLocalGatewayRouteTableOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteLocalGatewayRouteTable API operation for Amazon Elastic Compute Cloud. +// +// Deletes a local gateway route table. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteLocalGatewayRouteTable for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLocalGatewayRouteTable +func (c *EC2) DeleteLocalGatewayRouteTable(input *DeleteLocalGatewayRouteTableInput) (*DeleteLocalGatewayRouteTableOutput, error) { + req, out := c.DeleteLocalGatewayRouteTableRequest(input) + return out, req.Send() +} + +// DeleteLocalGatewayRouteTableWithContext is the same as DeleteLocalGatewayRouteTable with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteLocalGatewayRouteTable for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DeleteLocalGatewayRouteTableWithContext(ctx aws.Context, input *DeleteLocalGatewayRouteTableInput, opts ...request.Option) (*DeleteLocalGatewayRouteTableOutput, error) { + req, out := c.DeleteLocalGatewayRouteTableRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation = "DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation" + +// DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation for more information on using the DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest method. +// req, resp := client.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation +func (c *EC2) DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest(input *DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) (req *request.Request, output *DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput) { + op := &request.Operation{ + Name: opDeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput{} + } + + output = &DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation API operation for Amazon Elastic Compute Cloud. +// +// Deletes a local gateway route table virtual interface group association. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation +func (c *EC2) DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation(input *DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) (*DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput, error) { + req, out := c.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest(input) + return out, req.Send() +} + +// DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationWithContext is the same as DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationWithContext(ctx aws.Context, input *DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput, opts ...request.Option) (*DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput, error) { + req, out := c.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteLocalGatewayRouteTableVpcAssociation = "DeleteLocalGatewayRouteTableVpcAssociation" // DeleteLocalGatewayRouteTableVpcAssociationRequest generates a "aws/request.Request" representing the @@ -59569,6 +60153,56 @@ func (s *CoipAddressUsage) SetCoIp(v string) *CoipAddressUsage { return s } +// Information about a customer-owned IP address range. +type CoipCidr struct { + _ struct{} `type:"structure"` + + // An address range in a customer-owned IP address space. + Cidr *string `locationName:"cidr" type:"string"` + + // The ID of the address pool. + CoipPoolId *string `locationName:"coipPoolId" type:"string"` + + // The ID of the local gateway route table. + LocalGatewayRouteTableId *string `locationName:"localGatewayRouteTableId" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CoipCidr) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CoipCidr) GoString() string { + return s.String() +} + +// SetCidr sets the Cidr field's value. +func (s *CoipCidr) SetCidr(v string) *CoipCidr { + s.Cidr = &v + return s +} + +// SetCoipPoolId sets the CoipPoolId field's value. +func (s *CoipCidr) SetCoipPoolId(v string) *CoipCidr { + s.CoipPoolId = &v + return s +} + +// SetLocalGatewayRouteTableId sets the LocalGatewayRouteTableId field's value. +func (s *CoipCidr) SetLocalGatewayRouteTableId(v string) *CoipCidr { + s.LocalGatewayRouteTableId = &v + return s +} + // Describes a customer-owned address pool. type CoipPool struct { _ struct{} `type:"structure"` @@ -61807,6 +62441,207 @@ func (s *CreateClientVpnRouteOutput) SetStatus(v *ClientVpnRouteStatus) *CreateC return s } +type CreateCoipCidrInput struct { + _ struct{} `type:"structure"` + + // A customer-owned IP address range to create. + // + // Cidr is a required field + Cidr *string `type:"string" required:"true"` + + // The ID of the address pool. + // + // CoipPoolId is a required field + CoipPoolId *string `type:"string" required:"true"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateCoipCidrInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateCoipCidrInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateCoipCidrInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateCoipCidrInput"} + if s.Cidr == nil { + invalidParams.Add(request.NewErrParamRequired("Cidr")) + } + if s.CoipPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("CoipPoolId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCidr sets the Cidr field's value. +func (s *CreateCoipCidrInput) SetCidr(v string) *CreateCoipCidrInput { + s.Cidr = &v + return s +} + +// SetCoipPoolId sets the CoipPoolId field's value. +func (s *CreateCoipCidrInput) SetCoipPoolId(v string) *CreateCoipCidrInput { + s.CoipPoolId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateCoipCidrInput) SetDryRun(v bool) *CreateCoipCidrInput { + s.DryRun = &v + return s +} + +type CreateCoipCidrOutput struct { + _ struct{} `type:"structure"` + + // Information about a range of customer-owned IP addresses. + CoipCidr *CoipCidr `locationName:"coipCidr" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateCoipCidrOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateCoipCidrOutput) GoString() string { + return s.String() +} + +// SetCoipCidr sets the CoipCidr field's value. +func (s *CreateCoipCidrOutput) SetCoipCidr(v *CoipCidr) *CreateCoipCidrOutput { + s.CoipCidr = v + return s +} + +type CreateCoipPoolInput struct { + _ struct{} `type:"structure"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // The ID of the local gateway route table. + // + // LocalGatewayRouteTableId is a required field + LocalGatewayRouteTableId *string `type:"string" required:"true"` + + // The tags to assign to the CoIP address pool. + TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateCoipPoolInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateCoipPoolInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateCoipPoolInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateCoipPoolInput"} + if s.LocalGatewayRouteTableId == nil { + invalidParams.Add(request.NewErrParamRequired("LocalGatewayRouteTableId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateCoipPoolInput) SetDryRun(v bool) *CreateCoipPoolInput { + s.DryRun = &v + return s +} + +// SetLocalGatewayRouteTableId sets the LocalGatewayRouteTableId field's value. +func (s *CreateCoipPoolInput) SetLocalGatewayRouteTableId(v string) *CreateCoipPoolInput { + s.LocalGatewayRouteTableId = &v + return s +} + +// SetTagSpecifications sets the TagSpecifications field's value. +func (s *CreateCoipPoolInput) SetTagSpecifications(v []*TagSpecification) *CreateCoipPoolInput { + s.TagSpecifications = v + return s +} + +type CreateCoipPoolOutput struct { + _ struct{} `type:"structure"` + + // Describes a customer-owned address pool. + CoipPool *CoipPool `locationName:"coipPool" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateCoipPoolOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateCoipPoolOutput) GoString() string { + return s.String() +} + +// SetCoipPool sets the CoipPool field's value. +func (s *CreateCoipPoolOutput) SetCoipPool(v *CoipPool) *CreateCoipPoolOutput { + s.CoipPool = v + return s +} + // Contains the parameters for CreateCustomerGateway. type CreateCustomerGatewayInput struct { _ struct{} `type:"structure"` @@ -64751,6 +65586,227 @@ func (s *CreateLocalGatewayRouteOutput) SetRoute(v *LocalGatewayRoute) *CreateLo return s } +type CreateLocalGatewayRouteTableInput struct { + _ struct{} `type:"structure"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // The ID of the local gateway. + // + // LocalGatewayId is a required field + LocalGatewayId *string `type:"string" required:"true"` + + // The mode of the local gateway route table. + Mode *string `type:"string" enum:"LocalGatewayRouteTableMode"` + + // The tags assigned to the local gateway route table. + TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateLocalGatewayRouteTableInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateLocalGatewayRouteTableInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateLocalGatewayRouteTableInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateLocalGatewayRouteTableInput"} + if s.LocalGatewayId == nil { + invalidParams.Add(request.NewErrParamRequired("LocalGatewayId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateLocalGatewayRouteTableInput) SetDryRun(v bool) *CreateLocalGatewayRouteTableInput { + s.DryRun = &v + return s +} + +// SetLocalGatewayId sets the LocalGatewayId field's value. +func (s *CreateLocalGatewayRouteTableInput) SetLocalGatewayId(v string) *CreateLocalGatewayRouteTableInput { + s.LocalGatewayId = &v + return s +} + +// SetMode sets the Mode field's value. +func (s *CreateLocalGatewayRouteTableInput) SetMode(v string) *CreateLocalGatewayRouteTableInput { + s.Mode = &v + return s +} + +// SetTagSpecifications sets the TagSpecifications field's value. +func (s *CreateLocalGatewayRouteTableInput) SetTagSpecifications(v []*TagSpecification) *CreateLocalGatewayRouteTableInput { + s.TagSpecifications = v + return s +} + +type CreateLocalGatewayRouteTableOutput struct { + _ struct{} `type:"structure"` + + // Describes a local gateway route table. + LocalGatewayRouteTable *LocalGatewayRouteTable `locationName:"localGatewayRouteTable" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateLocalGatewayRouteTableOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateLocalGatewayRouteTableOutput) GoString() string { + return s.String() +} + +// SetLocalGatewayRouteTable sets the LocalGatewayRouteTable field's value. +func (s *CreateLocalGatewayRouteTableOutput) SetLocalGatewayRouteTable(v *LocalGatewayRouteTable) *CreateLocalGatewayRouteTableOutput { + s.LocalGatewayRouteTable = v + return s +} + +type CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput struct { + _ struct{} `type:"structure"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // The ID of the local gateway route table. + // + // LocalGatewayRouteTableId is a required field + LocalGatewayRouteTableId *string `type:"string" required:"true"` + + // The ID of the local gateway route table virtual interface group association. + // + // LocalGatewayVirtualInterfaceGroupId is a required field + LocalGatewayVirtualInterfaceGroupId *string `type:"string" required:"true"` + + // The tags assigned to the local gateway route table virtual interface group + // association. + TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput"} + if s.LocalGatewayRouteTableId == nil { + invalidParams.Add(request.NewErrParamRequired("LocalGatewayRouteTableId")) + } + if s.LocalGatewayVirtualInterfaceGroupId == nil { + invalidParams.Add(request.NewErrParamRequired("LocalGatewayVirtualInterfaceGroupId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) SetDryRun(v bool) *CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput { + s.DryRun = &v + return s +} + +// SetLocalGatewayRouteTableId sets the LocalGatewayRouteTableId field's value. +func (s *CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) SetLocalGatewayRouteTableId(v string) *CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput { + s.LocalGatewayRouteTableId = &v + return s +} + +// SetLocalGatewayVirtualInterfaceGroupId sets the LocalGatewayVirtualInterfaceGroupId field's value. +func (s *CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) SetLocalGatewayVirtualInterfaceGroupId(v string) *CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput { + s.LocalGatewayVirtualInterfaceGroupId = &v + return s +} + +// SetTagSpecifications sets the TagSpecifications field's value. +func (s *CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) SetTagSpecifications(v []*TagSpecification) *CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput { + s.TagSpecifications = v + return s +} + +type CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput struct { + _ struct{} `type:"structure"` + + // Describes an association between a local gateway route table and a virtual + // interface group. + LocalGatewayRouteTableVirtualInterfaceGroupAssociation *LocalGatewayRouteTableVirtualInterfaceGroupAssociation `locationName:"localGatewayRouteTableVirtualInterfaceGroupAssociation" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput) GoString() string { + return s.String() +} + +// SetLocalGatewayRouteTableVirtualInterfaceGroupAssociation sets the LocalGatewayRouteTableVirtualInterfaceGroupAssociation field's value. +func (s *CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput) SetLocalGatewayRouteTableVirtualInterfaceGroupAssociation(v *LocalGatewayRouteTableVirtualInterfaceGroupAssociation) *CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput { + s.LocalGatewayRouteTableVirtualInterfaceGroupAssociation = v + return s +} + type CreateLocalGatewayRouteTableVpcAssociationInput struct { _ struct{} `type:"structure"` @@ -72129,6 +73185,198 @@ func (s *DeleteClientVpnRouteOutput) SetStatus(v *ClientVpnRouteStatus) *DeleteC return s } +type DeleteCoipCidrInput struct { + _ struct{} `type:"structure"` + + // A customer-owned IP address range that you want to delete. + // + // Cidr is a required field + Cidr *string `type:"string" required:"true"` + + // The ID of the customer-owned address pool. + // + // CoipPoolId is a required field + CoipPoolId *string `type:"string" required:"true"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteCoipCidrInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteCoipCidrInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteCoipCidrInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteCoipCidrInput"} + if s.Cidr == nil { + invalidParams.Add(request.NewErrParamRequired("Cidr")) + } + if s.CoipPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("CoipPoolId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCidr sets the Cidr field's value. +func (s *DeleteCoipCidrInput) SetCidr(v string) *DeleteCoipCidrInput { + s.Cidr = &v + return s +} + +// SetCoipPoolId sets the CoipPoolId field's value. +func (s *DeleteCoipCidrInput) SetCoipPoolId(v string) *DeleteCoipCidrInput { + s.CoipPoolId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DeleteCoipCidrInput) SetDryRun(v bool) *DeleteCoipCidrInput { + s.DryRun = &v + return s +} + +type DeleteCoipCidrOutput struct { + _ struct{} `type:"structure"` + + // Information about a range of customer-owned IP addresses. + CoipCidr *CoipCidr `locationName:"coipCidr" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteCoipCidrOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteCoipCidrOutput) GoString() string { + return s.String() +} + +// SetCoipCidr sets the CoipCidr field's value. +func (s *DeleteCoipCidrOutput) SetCoipCidr(v *CoipCidr) *DeleteCoipCidrOutput { + s.CoipCidr = v + return s +} + +type DeleteCoipPoolInput struct { + _ struct{} `type:"structure"` + + // The ID of the CoIP pool that you want to delete. + // + // CoipPoolId is a required field + CoipPoolId *string `type:"string" required:"true"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteCoipPoolInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteCoipPoolInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteCoipPoolInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteCoipPoolInput"} + if s.CoipPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("CoipPoolId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCoipPoolId sets the CoipPoolId field's value. +func (s *DeleteCoipPoolInput) SetCoipPoolId(v string) *DeleteCoipPoolInput { + s.CoipPoolId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DeleteCoipPoolInput) SetDryRun(v bool) *DeleteCoipPoolInput { + s.DryRun = &v + return s +} + +type DeleteCoipPoolOutput struct { + _ struct{} `type:"structure"` + + // Describes a customer-owned address pool. + CoipPool *CoipPool `locationName:"coipPool" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteCoipPoolOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteCoipPoolOutput) GoString() string { + return s.String() +} + +// SetCoipPool sets the CoipPool field's value. +func (s *DeleteCoipPoolOutput) SetCoipPool(v *CoipPool) *DeleteCoipPoolOutput { + s.CoipPool = v + return s +} + // Contains the parameters for DeleteCustomerGateway. type DeleteCustomerGatewayInput struct { _ struct{} `type:"structure"` @@ -73794,6 +75042,185 @@ func (s *DeleteLocalGatewayRouteOutput) SetRoute(v *LocalGatewayRoute) *DeleteLo return s } +type DeleteLocalGatewayRouteTableInput struct { + _ struct{} `type:"structure"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // The ID of the local gateway route table. + // + // LocalGatewayRouteTableId is a required field + LocalGatewayRouteTableId *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteLocalGatewayRouteTableInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteLocalGatewayRouteTableInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteLocalGatewayRouteTableInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteLocalGatewayRouteTableInput"} + if s.LocalGatewayRouteTableId == nil { + invalidParams.Add(request.NewErrParamRequired("LocalGatewayRouteTableId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *DeleteLocalGatewayRouteTableInput) SetDryRun(v bool) *DeleteLocalGatewayRouteTableInput { + s.DryRun = &v + return s +} + +// SetLocalGatewayRouteTableId sets the LocalGatewayRouteTableId field's value. +func (s *DeleteLocalGatewayRouteTableInput) SetLocalGatewayRouteTableId(v string) *DeleteLocalGatewayRouteTableInput { + s.LocalGatewayRouteTableId = &v + return s +} + +type DeleteLocalGatewayRouteTableOutput struct { + _ struct{} `type:"structure"` + + // Describes a local gateway route table. + LocalGatewayRouteTable *LocalGatewayRouteTable `locationName:"localGatewayRouteTable" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteLocalGatewayRouteTableOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteLocalGatewayRouteTableOutput) GoString() string { + return s.String() +} + +// SetLocalGatewayRouteTable sets the LocalGatewayRouteTable field's value. +func (s *DeleteLocalGatewayRouteTableOutput) SetLocalGatewayRouteTable(v *LocalGatewayRouteTable) *DeleteLocalGatewayRouteTableOutput { + s.LocalGatewayRouteTable = v + return s +} + +type DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput struct { + _ struct{} `type:"structure"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // The ID of the local gateway route table virtual interface group association. + // + // LocalGatewayRouteTableVirtualInterfaceGroupAssociationId is a required field + LocalGatewayRouteTableVirtualInterfaceGroupAssociationId *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput"} + if s.LocalGatewayRouteTableVirtualInterfaceGroupAssociationId == nil { + invalidParams.Add(request.NewErrParamRequired("LocalGatewayRouteTableVirtualInterfaceGroupAssociationId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) SetDryRun(v bool) *DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput { + s.DryRun = &v + return s +} + +// SetLocalGatewayRouteTableVirtualInterfaceGroupAssociationId sets the LocalGatewayRouteTableVirtualInterfaceGroupAssociationId field's value. +func (s *DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) SetLocalGatewayRouteTableVirtualInterfaceGroupAssociationId(v string) *DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput { + s.LocalGatewayRouteTableVirtualInterfaceGroupAssociationId = &v + return s +} + +type DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput struct { + _ struct{} `type:"structure"` + + // Describes an association between a local gateway route table and a virtual + // interface group. + LocalGatewayRouteTableVirtualInterfaceGroupAssociation *LocalGatewayRouteTableVirtualInterfaceGroupAssociation `locationName:"localGatewayRouteTableVirtualInterfaceGroupAssociation" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput) GoString() string { + return s.String() +} + +// SetLocalGatewayRouteTableVirtualInterfaceGroupAssociation sets the LocalGatewayRouteTableVirtualInterfaceGroupAssociation field's value. +func (s *DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput) SetLocalGatewayRouteTableVirtualInterfaceGroupAssociation(v *LocalGatewayRouteTableVirtualInterfaceGroupAssociation) *DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput { + s.LocalGatewayRouteTableVirtualInterfaceGroupAssociation = v + return s +} + type DeleteLocalGatewayRouteTableVpcAssociationInput struct { _ struct{} `type:"structure"` @@ -125533,6 +126960,9 @@ type LocalGatewayRouteTable struct { // The state of the local gateway route table. State *string `locationName:"state" type:"string"` + // Describes a state change. + StateReason *StateReason `locationName:"stateReason" type:"structure"` + // The tags assigned to the local gateway route table. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"` } @@ -125597,6 +127027,12 @@ func (s *LocalGatewayRouteTable) SetState(v string) *LocalGatewayRouteTable { return s } +// SetStateReason sets the StateReason field's value. +func (s *LocalGatewayRouteTable) SetStateReason(v *StateReason) *LocalGatewayRouteTable { + s.StateReason = v + return s +} + // SetTags sets the Tags field's value. func (s *LocalGatewayRouteTable) SetTags(v []*Tag) *LocalGatewayRouteTable { s.Tags = v @@ -129895,10 +131331,11 @@ type ModifyLocalGatewayRouteInput struct { // LocalGatewayRouteTableId is a required field LocalGatewayRouteTableId *string `type:"string" required:"true"` + // The ID of the virtual interface group. + LocalGatewayVirtualInterfaceGroupId *string `type:"string"` + // The ID of the network interface. - // - // NetworkInterfaceId is a required field - NetworkInterfaceId *string `type:"string" required:"true"` + NetworkInterfaceId *string `type:"string"` } // String returns the string representation. @@ -129928,9 +131365,6 @@ func (s *ModifyLocalGatewayRouteInput) Validate() error { if s.LocalGatewayRouteTableId == nil { invalidParams.Add(request.NewErrParamRequired("LocalGatewayRouteTableId")) } - if s.NetworkInterfaceId == nil { - invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId")) - } if invalidParams.Len() > 0 { return invalidParams @@ -129956,6 +131390,12 @@ func (s *ModifyLocalGatewayRouteInput) SetLocalGatewayRouteTableId(v string) *Mo return s } +// SetLocalGatewayVirtualInterfaceGroupId sets the LocalGatewayVirtualInterfaceGroupId field's value. +func (s *ModifyLocalGatewayRouteInput) SetLocalGatewayVirtualInterfaceGroupId(v string) *ModifyLocalGatewayRouteInput { + s.LocalGatewayVirtualInterfaceGroupId = &v + return s +} + // SetNetworkInterfaceId sets the NetworkInterfaceId field's value. func (s *ModifyLocalGatewayRouteInput) SetNetworkInterfaceId(v string) *ModifyLocalGatewayRouteInput { s.NetworkInterfaceId = &v @@ -170597,6 +172037,9 @@ const ( // ResourceTypeCarrierGateway is a ResourceType enum value ResourceTypeCarrierGateway = "carrier-gateway" + // ResourceTypeCoipPool is a ResourceType enum value + ResourceTypeCoipPool = "coip-pool" + // ResourceTypeDedicatedHost is a ResourceType enum value ResourceTypeDedicatedHost = "dedicated-host" @@ -170815,6 +172258,7 @@ func ResourceType_Values() []string { ResourceTypeClientVpnEndpoint, ResourceTypeCustomerGateway, ResourceTypeCarrierGateway, + ResourceTypeCoipPool, ResourceTypeDedicatedHost, ResourceTypeDhcpOptions, ResourceTypeEgressOnlyInternetGateway, diff --git a/service/ec2/ec2iface/interface.go b/service/ec2/ec2iface/interface.go index b6d49f393f..4c50d16ce7 100644 --- a/service/ec2/ec2iface/interface.go +++ b/service/ec2/ec2iface/interface.go @@ -272,6 +272,14 @@ type EC2API interface { CreateClientVpnRouteWithContext(aws.Context, *ec2.CreateClientVpnRouteInput, ...request.Option) (*ec2.CreateClientVpnRouteOutput, error) CreateClientVpnRouteRequest(*ec2.CreateClientVpnRouteInput) (*request.Request, *ec2.CreateClientVpnRouteOutput) + CreateCoipCidr(*ec2.CreateCoipCidrInput) (*ec2.CreateCoipCidrOutput, error) + CreateCoipCidrWithContext(aws.Context, *ec2.CreateCoipCidrInput, ...request.Option) (*ec2.CreateCoipCidrOutput, error) + CreateCoipCidrRequest(*ec2.CreateCoipCidrInput) (*request.Request, *ec2.CreateCoipCidrOutput) + + CreateCoipPool(*ec2.CreateCoipPoolInput) (*ec2.CreateCoipPoolOutput, error) + CreateCoipPoolWithContext(aws.Context, *ec2.CreateCoipPoolInput, ...request.Option) (*ec2.CreateCoipPoolOutput, error) + CreateCoipPoolRequest(*ec2.CreateCoipPoolInput) (*request.Request, *ec2.CreateCoipPoolOutput) + CreateCustomerGateway(*ec2.CreateCustomerGatewayInput) (*ec2.CreateCustomerGatewayOutput, error) CreateCustomerGatewayWithContext(aws.Context, *ec2.CreateCustomerGatewayInput, ...request.Option) (*ec2.CreateCustomerGatewayOutput, error) CreateCustomerGatewayRequest(*ec2.CreateCustomerGatewayInput) (*request.Request, *ec2.CreateCustomerGatewayOutput) @@ -348,6 +356,14 @@ type EC2API interface { CreateLocalGatewayRouteWithContext(aws.Context, *ec2.CreateLocalGatewayRouteInput, ...request.Option) (*ec2.CreateLocalGatewayRouteOutput, error) CreateLocalGatewayRouteRequest(*ec2.CreateLocalGatewayRouteInput) (*request.Request, *ec2.CreateLocalGatewayRouteOutput) + CreateLocalGatewayRouteTable(*ec2.CreateLocalGatewayRouteTableInput) (*ec2.CreateLocalGatewayRouteTableOutput, error) + CreateLocalGatewayRouteTableWithContext(aws.Context, *ec2.CreateLocalGatewayRouteTableInput, ...request.Option) (*ec2.CreateLocalGatewayRouteTableOutput, error) + CreateLocalGatewayRouteTableRequest(*ec2.CreateLocalGatewayRouteTableInput) (*request.Request, *ec2.CreateLocalGatewayRouteTableOutput) + + CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation(*ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) (*ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput, error) + CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationWithContext(aws.Context, *ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput, ...request.Option) (*ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput, error) + CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest(*ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) (*request.Request, *ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput) + CreateLocalGatewayRouteTableVpcAssociation(*ec2.CreateLocalGatewayRouteTableVpcAssociationInput) (*ec2.CreateLocalGatewayRouteTableVpcAssociationOutput, error) CreateLocalGatewayRouteTableVpcAssociationWithContext(aws.Context, *ec2.CreateLocalGatewayRouteTableVpcAssociationInput, ...request.Option) (*ec2.CreateLocalGatewayRouteTableVpcAssociationOutput, error) CreateLocalGatewayRouteTableVpcAssociationRequest(*ec2.CreateLocalGatewayRouteTableVpcAssociationInput) (*request.Request, *ec2.CreateLocalGatewayRouteTableVpcAssociationOutput) @@ -552,6 +568,14 @@ type EC2API interface { DeleteClientVpnRouteWithContext(aws.Context, *ec2.DeleteClientVpnRouteInput, ...request.Option) (*ec2.DeleteClientVpnRouteOutput, error) DeleteClientVpnRouteRequest(*ec2.DeleteClientVpnRouteInput) (*request.Request, *ec2.DeleteClientVpnRouteOutput) + DeleteCoipCidr(*ec2.DeleteCoipCidrInput) (*ec2.DeleteCoipCidrOutput, error) + DeleteCoipCidrWithContext(aws.Context, *ec2.DeleteCoipCidrInput, ...request.Option) (*ec2.DeleteCoipCidrOutput, error) + DeleteCoipCidrRequest(*ec2.DeleteCoipCidrInput) (*request.Request, *ec2.DeleteCoipCidrOutput) + + DeleteCoipPool(*ec2.DeleteCoipPoolInput) (*ec2.DeleteCoipPoolOutput, error) + DeleteCoipPoolWithContext(aws.Context, *ec2.DeleteCoipPoolInput, ...request.Option) (*ec2.DeleteCoipPoolOutput, error) + DeleteCoipPoolRequest(*ec2.DeleteCoipPoolInput) (*request.Request, *ec2.DeleteCoipPoolOutput) + DeleteCustomerGateway(*ec2.DeleteCustomerGatewayInput) (*ec2.DeleteCustomerGatewayOutput, error) DeleteCustomerGatewayWithContext(aws.Context, *ec2.DeleteCustomerGatewayInput, ...request.Option) (*ec2.DeleteCustomerGatewayOutput, error) DeleteCustomerGatewayRequest(*ec2.DeleteCustomerGatewayInput) (*request.Request, *ec2.DeleteCustomerGatewayOutput) @@ -612,6 +636,14 @@ type EC2API interface { DeleteLocalGatewayRouteWithContext(aws.Context, *ec2.DeleteLocalGatewayRouteInput, ...request.Option) (*ec2.DeleteLocalGatewayRouteOutput, error) DeleteLocalGatewayRouteRequest(*ec2.DeleteLocalGatewayRouteInput) (*request.Request, *ec2.DeleteLocalGatewayRouteOutput) + DeleteLocalGatewayRouteTable(*ec2.DeleteLocalGatewayRouteTableInput) (*ec2.DeleteLocalGatewayRouteTableOutput, error) + DeleteLocalGatewayRouteTableWithContext(aws.Context, *ec2.DeleteLocalGatewayRouteTableInput, ...request.Option) (*ec2.DeleteLocalGatewayRouteTableOutput, error) + DeleteLocalGatewayRouteTableRequest(*ec2.DeleteLocalGatewayRouteTableInput) (*request.Request, *ec2.DeleteLocalGatewayRouteTableOutput) + + DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation(*ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) (*ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput, error) + DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationWithContext(aws.Context, *ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput, ...request.Option) (*ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput, error) + DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest(*ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) (*request.Request, *ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput) + DeleteLocalGatewayRouteTableVpcAssociation(*ec2.DeleteLocalGatewayRouteTableVpcAssociationInput) (*ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput, error) DeleteLocalGatewayRouteTableVpcAssociationWithContext(aws.Context, *ec2.DeleteLocalGatewayRouteTableVpcAssociationInput, ...request.Option) (*ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput, error) DeleteLocalGatewayRouteTableVpcAssociationRequest(*ec2.DeleteLocalGatewayRouteTableVpcAssociationInput) (*request.Request, *ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput)