aws-sdk-amplifyuibuilder 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -399,6 +399,7 @@ module Aws::AmplifyUIBuilder
399
399
  # },
400
400
  # },
401
401
  # ],
402
+ # slot_name: "String",
402
403
  # user_attribute: "String",
403
404
  # },
404
405
  # default_value: "String",
@@ -1311,6 +1312,7 @@ module Aws::AmplifyUIBuilder
1311
1312
  # resp.entity.binding_properties["String"].binding_properties.predicates[0].operand #=> String
1312
1313
  # resp.entity.binding_properties["String"].binding_properties.predicates[0].operator #=> String
1313
1314
  # resp.entity.binding_properties["String"].binding_properties.predicates[0].or #=> Types::PredicateList
1315
+ # resp.entity.binding_properties["String"].binding_properties.slot_name #=> String
1314
1316
  # resp.entity.binding_properties["String"].binding_properties.user_attribute #=> String
1315
1317
  # resp.entity.binding_properties["String"].default_value #=> String
1316
1318
  # resp.entity.binding_properties["String"].type #=> String
@@ -1846,6 +1848,231 @@ module Aws::AmplifyUIBuilder
1846
1848
  req.send_request(options)
1847
1849
  end
1848
1850
 
1851
+ # Creates a new form for an Amplify app.
1852
+ #
1853
+ # @option params [required, String] :app_id
1854
+ # The unique ID of the Amplify app to associate with the form.
1855
+ #
1856
+ # @option params [String] :client_token
1857
+ # The unique client token.
1858
+ #
1859
+ # **A suitable default value is auto-generated.** You should normally
1860
+ # not need to pass this option.**
1861
+ #
1862
+ # @option params [required, String] :environment_name
1863
+ # The name of the backend environment that is a part of the Amplify app.
1864
+ #
1865
+ # @option params [required, Types::CreateFormData] :form_to_create
1866
+ # Represents the configuration of the form to create.
1867
+ #
1868
+ # @return [Types::CreateFormResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1869
+ #
1870
+ # * {Types::CreateFormResponse#entity #entity} => Types::Form
1871
+ #
1872
+ # @example Request syntax with placeholder values
1873
+ #
1874
+ # resp = client.create_form({
1875
+ # app_id: "String", # required
1876
+ # client_token: "String",
1877
+ # environment_name: "String", # required
1878
+ # form_to_create: { # required
1879
+ # cta: {
1880
+ # cancel: {
1881
+ # children: "String",
1882
+ # excluded: false,
1883
+ # position: {
1884
+ # below: "String",
1885
+ # fixed: "first", # accepts first
1886
+ # right_of: "String",
1887
+ # },
1888
+ # },
1889
+ # clear: {
1890
+ # children: "String",
1891
+ # excluded: false,
1892
+ # position: {
1893
+ # below: "String",
1894
+ # fixed: "first", # accepts first
1895
+ # right_of: "String",
1896
+ # },
1897
+ # },
1898
+ # position: "top", # accepts top, bottom, top_and_bottom
1899
+ # submit: {
1900
+ # children: "String",
1901
+ # excluded: false,
1902
+ # position: {
1903
+ # below: "String",
1904
+ # fixed: "first", # accepts first
1905
+ # right_of: "String",
1906
+ # },
1907
+ # },
1908
+ # },
1909
+ # data_type: { # required
1910
+ # data_source_type: "DataStore", # required, accepts DataStore, Custom
1911
+ # data_type_name: "String", # required
1912
+ # },
1913
+ # fields: { # required
1914
+ # "String" => {
1915
+ # excluded: false,
1916
+ # input_type: {
1917
+ # default_checked: false,
1918
+ # default_country_code: "String",
1919
+ # default_value: "String",
1920
+ # descriptive_text: "String",
1921
+ # max_value: 1.0,
1922
+ # min_value: 1.0,
1923
+ # name: "String",
1924
+ # placeholder: "String",
1925
+ # read_only: false,
1926
+ # required: false,
1927
+ # step: 1.0,
1928
+ # type: "String", # required
1929
+ # value: "String",
1930
+ # value_mappings: {
1931
+ # values: [ # required
1932
+ # {
1933
+ # display_value: {
1934
+ # value: "String",
1935
+ # },
1936
+ # value: { # required
1937
+ # value: "String",
1938
+ # },
1939
+ # },
1940
+ # ],
1941
+ # },
1942
+ # },
1943
+ # label: "String",
1944
+ # position: {
1945
+ # below: "String",
1946
+ # fixed: "first", # accepts first
1947
+ # right_of: "String",
1948
+ # },
1949
+ # validations: [
1950
+ # {
1951
+ # num_values: [1],
1952
+ # str_values: ["String"],
1953
+ # type: "String", # required
1954
+ # validation_message: "String",
1955
+ # },
1956
+ # ],
1957
+ # },
1958
+ # },
1959
+ # form_action_type: "create", # required, accepts create, update
1960
+ # name: "FormName", # required
1961
+ # schema_version: "String", # required
1962
+ # sectional_elements: { # required
1963
+ # "String" => {
1964
+ # level: 1,
1965
+ # orientation: "String",
1966
+ # position: {
1967
+ # below: "String",
1968
+ # fixed: "first", # accepts first
1969
+ # right_of: "String",
1970
+ # },
1971
+ # text: "String",
1972
+ # type: "String", # required
1973
+ # },
1974
+ # },
1975
+ # style: { # required
1976
+ # horizontal_gap: {
1977
+ # token_reference: "String",
1978
+ # value: "String",
1979
+ # },
1980
+ # outer_padding: {
1981
+ # token_reference: "String",
1982
+ # value: "String",
1983
+ # },
1984
+ # vertical_gap: {
1985
+ # token_reference: "String",
1986
+ # value: "String",
1987
+ # },
1988
+ # },
1989
+ # tags: {
1990
+ # "TagKey" => "TagValue",
1991
+ # },
1992
+ # },
1993
+ # })
1994
+ #
1995
+ # @example Response structure
1996
+ #
1997
+ # resp.entity.app_id #=> String
1998
+ # resp.entity.cta.cancel.children #=> String
1999
+ # resp.entity.cta.cancel.excluded #=> Boolean
2000
+ # resp.entity.cta.cancel.position.below #=> String
2001
+ # resp.entity.cta.cancel.position.fixed #=> String, one of "first"
2002
+ # resp.entity.cta.cancel.position.right_of #=> String
2003
+ # resp.entity.cta.clear.children #=> String
2004
+ # resp.entity.cta.clear.excluded #=> Boolean
2005
+ # resp.entity.cta.clear.position.below #=> String
2006
+ # resp.entity.cta.clear.position.fixed #=> String, one of "first"
2007
+ # resp.entity.cta.clear.position.right_of #=> String
2008
+ # resp.entity.cta.position #=> String, one of "top", "bottom", "top_and_bottom"
2009
+ # resp.entity.cta.submit.children #=> String
2010
+ # resp.entity.cta.submit.excluded #=> Boolean
2011
+ # resp.entity.cta.submit.position.below #=> String
2012
+ # resp.entity.cta.submit.position.fixed #=> String, one of "first"
2013
+ # resp.entity.cta.submit.position.right_of #=> String
2014
+ # resp.entity.data_type.data_source_type #=> String, one of "DataStore", "Custom"
2015
+ # resp.entity.data_type.data_type_name #=> String
2016
+ # resp.entity.environment_name #=> String
2017
+ # resp.entity.fields #=> Hash
2018
+ # resp.entity.fields["String"].excluded #=> Boolean
2019
+ # resp.entity.fields["String"].input_type.default_checked #=> Boolean
2020
+ # resp.entity.fields["String"].input_type.default_country_code #=> String
2021
+ # resp.entity.fields["String"].input_type.default_value #=> String
2022
+ # resp.entity.fields["String"].input_type.descriptive_text #=> String
2023
+ # resp.entity.fields["String"].input_type.max_value #=> Float
2024
+ # resp.entity.fields["String"].input_type.min_value #=> Float
2025
+ # resp.entity.fields["String"].input_type.name #=> String
2026
+ # resp.entity.fields["String"].input_type.placeholder #=> String
2027
+ # resp.entity.fields["String"].input_type.read_only #=> Boolean
2028
+ # resp.entity.fields["String"].input_type.required #=> Boolean
2029
+ # resp.entity.fields["String"].input_type.step #=> Float
2030
+ # resp.entity.fields["String"].input_type.type #=> String
2031
+ # resp.entity.fields["String"].input_type.value #=> String
2032
+ # resp.entity.fields["String"].input_type.value_mappings.values #=> Array
2033
+ # resp.entity.fields["String"].input_type.value_mappings.values[0].display_value.value #=> String
2034
+ # resp.entity.fields["String"].input_type.value_mappings.values[0].value.value #=> String
2035
+ # resp.entity.fields["String"].label #=> String
2036
+ # resp.entity.fields["String"].position.below #=> String
2037
+ # resp.entity.fields["String"].position.fixed #=> String, one of "first"
2038
+ # resp.entity.fields["String"].position.right_of #=> String
2039
+ # resp.entity.fields["String"].validations #=> Array
2040
+ # resp.entity.fields["String"].validations[0].num_values #=> Array
2041
+ # resp.entity.fields["String"].validations[0].num_values[0] #=> Integer
2042
+ # resp.entity.fields["String"].validations[0].str_values #=> Array
2043
+ # resp.entity.fields["String"].validations[0].str_values[0] #=> String
2044
+ # resp.entity.fields["String"].validations[0].type #=> String
2045
+ # resp.entity.fields["String"].validations[0].validation_message #=> String
2046
+ # resp.entity.form_action_type #=> String, one of "create", "update"
2047
+ # resp.entity.id #=> String
2048
+ # resp.entity.name #=> String
2049
+ # resp.entity.schema_version #=> String
2050
+ # resp.entity.sectional_elements #=> Hash
2051
+ # resp.entity.sectional_elements["String"].level #=> Integer
2052
+ # resp.entity.sectional_elements["String"].orientation #=> String
2053
+ # resp.entity.sectional_elements["String"].position.below #=> String
2054
+ # resp.entity.sectional_elements["String"].position.fixed #=> String, one of "first"
2055
+ # resp.entity.sectional_elements["String"].position.right_of #=> String
2056
+ # resp.entity.sectional_elements["String"].text #=> String
2057
+ # resp.entity.sectional_elements["String"].type #=> String
2058
+ # resp.entity.style.horizontal_gap.token_reference #=> String
2059
+ # resp.entity.style.horizontal_gap.value #=> String
2060
+ # resp.entity.style.outer_padding.token_reference #=> String
2061
+ # resp.entity.style.outer_padding.value #=> String
2062
+ # resp.entity.style.vertical_gap.token_reference #=> String
2063
+ # resp.entity.style.vertical_gap.value #=> String
2064
+ # resp.entity.tags #=> Hash
2065
+ # resp.entity.tags["TagKey"] #=> String
2066
+ #
2067
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateForm AWS API Documentation
2068
+ #
2069
+ # @overload create_form(params = {})
2070
+ # @param [Hash] params ({})
2071
+ def create_form(params = {}, options = {})
2072
+ req = build_request(:create_form, params)
2073
+ req.send_request(options)
2074
+ end
2075
+
1849
2076
  # Creates a theme to apply to the components in an Amplify app.
1850
2077
  #
1851
2078
  # @option params [required, String] :app_id
@@ -1962,6 +2189,36 @@ module Aws::AmplifyUIBuilder
1962
2189
  req.send_request(options)
1963
2190
  end
1964
2191
 
2192
+ # Deletes a form from an Amplify app.
2193
+ #
2194
+ # @option params [required, String] :app_id
2195
+ # The unique ID of the Amplify app associated with the form to delete.
2196
+ #
2197
+ # @option params [required, String] :environment_name
2198
+ # The name of the backend environment that is a part of the Amplify app.
2199
+ #
2200
+ # @option params [required, String] :id
2201
+ # The unique ID of the form to delete.
2202
+ #
2203
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2204
+ #
2205
+ # @example Request syntax with placeholder values
2206
+ #
2207
+ # resp = client.delete_form({
2208
+ # app_id: "String", # required
2209
+ # environment_name: "String", # required
2210
+ # id: "Uuid", # required
2211
+ # })
2212
+ #
2213
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteForm AWS API Documentation
2214
+ #
2215
+ # @overload delete_form(params = {})
2216
+ # @param [Hash] params ({})
2217
+ def delete_form(params = {}, options = {})
2218
+ req = build_request(:delete_form, params)
2219
+ req.send_request(options)
2220
+ end
2221
+
1965
2222
  # Deletes a theme from an Amplify app.
1966
2223
  #
1967
2224
  # @option params [required, String] :app_id
@@ -2075,6 +2332,7 @@ module Aws::AmplifyUIBuilder
2075
2332
  # resp.entities[0].binding_properties["String"].binding_properties.predicates[0].operand #=> String
2076
2333
  # resp.entities[0].binding_properties["String"].binding_properties.predicates[0].operator #=> String
2077
2334
  # resp.entities[0].binding_properties["String"].binding_properties.predicates[0].or #=> Types::PredicateList
2335
+ # resp.entities[0].binding_properties["String"].binding_properties.slot_name #=> String
2078
2336
  # resp.entities[0].binding_properties["String"].binding_properties.user_attribute #=> String
2079
2337
  # resp.entities[0].binding_properties["String"].default_value #=> String
2080
2338
  # resp.entities[0].binding_properties["String"].type #=> String
@@ -2611,6 +2869,116 @@ module Aws::AmplifyUIBuilder
2611
2869
  req.send_request(options)
2612
2870
  end
2613
2871
 
2872
+ # Exports form configurations to code that is ready to integrate into an
2873
+ # Amplify app.
2874
+ #
2875
+ # @option params [required, String] :app_id
2876
+ # The unique ID of the Amplify app to export forms to.
2877
+ #
2878
+ # @option params [required, String] :environment_name
2879
+ # The name of the backend environment that is a part of the Amplify app.
2880
+ #
2881
+ # @option params [String] :next_token
2882
+ # The token to request the next page of results.
2883
+ #
2884
+ # @return [Types::ExportFormsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2885
+ #
2886
+ # * {Types::ExportFormsResponse#entities #entities} => Array<Types::Form>
2887
+ # * {Types::ExportFormsResponse#next_token #next_token} => String
2888
+ #
2889
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2890
+ #
2891
+ # @example Request syntax with placeholder values
2892
+ #
2893
+ # resp = client.export_forms({
2894
+ # app_id: "String", # required
2895
+ # environment_name: "String", # required
2896
+ # next_token: "String",
2897
+ # })
2898
+ #
2899
+ # @example Response structure
2900
+ #
2901
+ # resp.entities #=> Array
2902
+ # resp.entities[0].app_id #=> String
2903
+ # resp.entities[0].cta.cancel.children #=> String
2904
+ # resp.entities[0].cta.cancel.excluded #=> Boolean
2905
+ # resp.entities[0].cta.cancel.position.below #=> String
2906
+ # resp.entities[0].cta.cancel.position.fixed #=> String, one of "first"
2907
+ # resp.entities[0].cta.cancel.position.right_of #=> String
2908
+ # resp.entities[0].cta.clear.children #=> String
2909
+ # resp.entities[0].cta.clear.excluded #=> Boolean
2910
+ # resp.entities[0].cta.clear.position.below #=> String
2911
+ # resp.entities[0].cta.clear.position.fixed #=> String, one of "first"
2912
+ # resp.entities[0].cta.clear.position.right_of #=> String
2913
+ # resp.entities[0].cta.position #=> String, one of "top", "bottom", "top_and_bottom"
2914
+ # resp.entities[0].cta.submit.children #=> String
2915
+ # resp.entities[0].cta.submit.excluded #=> Boolean
2916
+ # resp.entities[0].cta.submit.position.below #=> String
2917
+ # resp.entities[0].cta.submit.position.fixed #=> String, one of "first"
2918
+ # resp.entities[0].cta.submit.position.right_of #=> String
2919
+ # resp.entities[0].data_type.data_source_type #=> String, one of "DataStore", "Custom"
2920
+ # resp.entities[0].data_type.data_type_name #=> String
2921
+ # resp.entities[0].environment_name #=> String
2922
+ # resp.entities[0].fields #=> Hash
2923
+ # resp.entities[0].fields["String"].excluded #=> Boolean
2924
+ # resp.entities[0].fields["String"].input_type.default_checked #=> Boolean
2925
+ # resp.entities[0].fields["String"].input_type.default_country_code #=> String
2926
+ # resp.entities[0].fields["String"].input_type.default_value #=> String
2927
+ # resp.entities[0].fields["String"].input_type.descriptive_text #=> String
2928
+ # resp.entities[0].fields["String"].input_type.max_value #=> Float
2929
+ # resp.entities[0].fields["String"].input_type.min_value #=> Float
2930
+ # resp.entities[0].fields["String"].input_type.name #=> String
2931
+ # resp.entities[0].fields["String"].input_type.placeholder #=> String
2932
+ # resp.entities[0].fields["String"].input_type.read_only #=> Boolean
2933
+ # resp.entities[0].fields["String"].input_type.required #=> Boolean
2934
+ # resp.entities[0].fields["String"].input_type.step #=> Float
2935
+ # resp.entities[0].fields["String"].input_type.type #=> String
2936
+ # resp.entities[0].fields["String"].input_type.value #=> String
2937
+ # resp.entities[0].fields["String"].input_type.value_mappings.values #=> Array
2938
+ # resp.entities[0].fields["String"].input_type.value_mappings.values[0].display_value.value #=> String
2939
+ # resp.entities[0].fields["String"].input_type.value_mappings.values[0].value.value #=> String
2940
+ # resp.entities[0].fields["String"].label #=> String
2941
+ # resp.entities[0].fields["String"].position.below #=> String
2942
+ # resp.entities[0].fields["String"].position.fixed #=> String, one of "first"
2943
+ # resp.entities[0].fields["String"].position.right_of #=> String
2944
+ # resp.entities[0].fields["String"].validations #=> Array
2945
+ # resp.entities[0].fields["String"].validations[0].num_values #=> Array
2946
+ # resp.entities[0].fields["String"].validations[0].num_values[0] #=> Integer
2947
+ # resp.entities[0].fields["String"].validations[0].str_values #=> Array
2948
+ # resp.entities[0].fields["String"].validations[0].str_values[0] #=> String
2949
+ # resp.entities[0].fields["String"].validations[0].type #=> String
2950
+ # resp.entities[0].fields["String"].validations[0].validation_message #=> String
2951
+ # resp.entities[0].form_action_type #=> String, one of "create", "update"
2952
+ # resp.entities[0].id #=> String
2953
+ # resp.entities[0].name #=> String
2954
+ # resp.entities[0].schema_version #=> String
2955
+ # resp.entities[0].sectional_elements #=> Hash
2956
+ # resp.entities[0].sectional_elements["String"].level #=> Integer
2957
+ # resp.entities[0].sectional_elements["String"].orientation #=> String
2958
+ # resp.entities[0].sectional_elements["String"].position.below #=> String
2959
+ # resp.entities[0].sectional_elements["String"].position.fixed #=> String, one of "first"
2960
+ # resp.entities[0].sectional_elements["String"].position.right_of #=> String
2961
+ # resp.entities[0].sectional_elements["String"].text #=> String
2962
+ # resp.entities[0].sectional_elements["String"].type #=> String
2963
+ # resp.entities[0].style.horizontal_gap.token_reference #=> String
2964
+ # resp.entities[0].style.horizontal_gap.value #=> String
2965
+ # resp.entities[0].style.outer_padding.token_reference #=> String
2966
+ # resp.entities[0].style.outer_padding.value #=> String
2967
+ # resp.entities[0].style.vertical_gap.token_reference #=> String
2968
+ # resp.entities[0].style.vertical_gap.value #=> String
2969
+ # resp.entities[0].tags #=> Hash
2970
+ # resp.entities[0].tags["TagKey"] #=> String
2971
+ # resp.next_token #=> String
2972
+ #
2973
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportForms AWS API Documentation
2974
+ #
2975
+ # @overload export_forms(params = {})
2976
+ # @param [Hash] params ({})
2977
+ def export_forms(params = {}, options = {})
2978
+ req = build_request(:export_forms, params)
2979
+ req.send_request(options)
2980
+ end
2981
+
2614
2982
  # Exports theme configurations to code that is ready to integrate into
2615
2983
  # an Amplify app.
2616
2984
  #
@@ -2706,6 +3074,7 @@ module Aws::AmplifyUIBuilder
2706
3074
  # resp.component.binding_properties["String"].binding_properties.predicates[0].operand #=> String
2707
3075
  # resp.component.binding_properties["String"].binding_properties.predicates[0].operator #=> String
2708
3076
  # resp.component.binding_properties["String"].binding_properties.predicates[0].or #=> Types::PredicateList
3077
+ # resp.component.binding_properties["String"].binding_properties.slot_name #=> String
2709
3078
  # resp.component.binding_properties["String"].binding_properties.user_attribute #=> String
2710
3079
  # resp.component.binding_properties["String"].default_value #=> String
2711
3080
  # resp.component.binding_properties["String"].type #=> String
@@ -3241,6 +3610,143 @@ module Aws::AmplifyUIBuilder
3241
3610
  req.send_request(options)
3242
3611
  end
3243
3612
 
3613
+ # Returns an existing form for an Amplify app.
3614
+ #
3615
+ # @option params [required, String] :app_id
3616
+ # The unique ID of the Amplify app.
3617
+ #
3618
+ # @option params [required, String] :environment_name
3619
+ # The name of the backend environment that is part of the Amplify app.
3620
+ #
3621
+ # @option params [required, String] :id
3622
+ # The unique ID of the form.
3623
+ #
3624
+ # @return [Types::GetFormResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3625
+ #
3626
+ # * {Types::GetFormResponse#form #form} => Types::Form
3627
+ #
3628
+ # @example Request syntax with placeholder values
3629
+ #
3630
+ # resp = client.get_form({
3631
+ # app_id: "String", # required
3632
+ # environment_name: "String", # required
3633
+ # id: "Uuid", # required
3634
+ # })
3635
+ #
3636
+ # @example Response structure
3637
+ #
3638
+ # resp.form.app_id #=> String
3639
+ # resp.form.cta.cancel.children #=> String
3640
+ # resp.form.cta.cancel.excluded #=> Boolean
3641
+ # resp.form.cta.cancel.position.below #=> String
3642
+ # resp.form.cta.cancel.position.fixed #=> String, one of "first"
3643
+ # resp.form.cta.cancel.position.right_of #=> String
3644
+ # resp.form.cta.clear.children #=> String
3645
+ # resp.form.cta.clear.excluded #=> Boolean
3646
+ # resp.form.cta.clear.position.below #=> String
3647
+ # resp.form.cta.clear.position.fixed #=> String, one of "first"
3648
+ # resp.form.cta.clear.position.right_of #=> String
3649
+ # resp.form.cta.position #=> String, one of "top", "bottom", "top_and_bottom"
3650
+ # resp.form.cta.submit.children #=> String
3651
+ # resp.form.cta.submit.excluded #=> Boolean
3652
+ # resp.form.cta.submit.position.below #=> String
3653
+ # resp.form.cta.submit.position.fixed #=> String, one of "first"
3654
+ # resp.form.cta.submit.position.right_of #=> String
3655
+ # resp.form.data_type.data_source_type #=> String, one of "DataStore", "Custom"
3656
+ # resp.form.data_type.data_type_name #=> String
3657
+ # resp.form.environment_name #=> String
3658
+ # resp.form.fields #=> Hash
3659
+ # resp.form.fields["String"].excluded #=> Boolean
3660
+ # resp.form.fields["String"].input_type.default_checked #=> Boolean
3661
+ # resp.form.fields["String"].input_type.default_country_code #=> String
3662
+ # resp.form.fields["String"].input_type.default_value #=> String
3663
+ # resp.form.fields["String"].input_type.descriptive_text #=> String
3664
+ # resp.form.fields["String"].input_type.max_value #=> Float
3665
+ # resp.form.fields["String"].input_type.min_value #=> Float
3666
+ # resp.form.fields["String"].input_type.name #=> String
3667
+ # resp.form.fields["String"].input_type.placeholder #=> String
3668
+ # resp.form.fields["String"].input_type.read_only #=> Boolean
3669
+ # resp.form.fields["String"].input_type.required #=> Boolean
3670
+ # resp.form.fields["String"].input_type.step #=> Float
3671
+ # resp.form.fields["String"].input_type.type #=> String
3672
+ # resp.form.fields["String"].input_type.value #=> String
3673
+ # resp.form.fields["String"].input_type.value_mappings.values #=> Array
3674
+ # resp.form.fields["String"].input_type.value_mappings.values[0].display_value.value #=> String
3675
+ # resp.form.fields["String"].input_type.value_mappings.values[0].value.value #=> String
3676
+ # resp.form.fields["String"].label #=> String
3677
+ # resp.form.fields["String"].position.below #=> String
3678
+ # resp.form.fields["String"].position.fixed #=> String, one of "first"
3679
+ # resp.form.fields["String"].position.right_of #=> String
3680
+ # resp.form.fields["String"].validations #=> Array
3681
+ # resp.form.fields["String"].validations[0].num_values #=> Array
3682
+ # resp.form.fields["String"].validations[0].num_values[0] #=> Integer
3683
+ # resp.form.fields["String"].validations[0].str_values #=> Array
3684
+ # resp.form.fields["String"].validations[0].str_values[0] #=> String
3685
+ # resp.form.fields["String"].validations[0].type #=> String
3686
+ # resp.form.fields["String"].validations[0].validation_message #=> String
3687
+ # resp.form.form_action_type #=> String, one of "create", "update"
3688
+ # resp.form.id #=> String
3689
+ # resp.form.name #=> String
3690
+ # resp.form.schema_version #=> String
3691
+ # resp.form.sectional_elements #=> Hash
3692
+ # resp.form.sectional_elements["String"].level #=> Integer
3693
+ # resp.form.sectional_elements["String"].orientation #=> String
3694
+ # resp.form.sectional_elements["String"].position.below #=> String
3695
+ # resp.form.sectional_elements["String"].position.fixed #=> String, one of "first"
3696
+ # resp.form.sectional_elements["String"].position.right_of #=> String
3697
+ # resp.form.sectional_elements["String"].text #=> String
3698
+ # resp.form.sectional_elements["String"].type #=> String
3699
+ # resp.form.style.horizontal_gap.token_reference #=> String
3700
+ # resp.form.style.horizontal_gap.value #=> String
3701
+ # resp.form.style.outer_padding.token_reference #=> String
3702
+ # resp.form.style.outer_padding.value #=> String
3703
+ # resp.form.style.vertical_gap.token_reference #=> String
3704
+ # resp.form.style.vertical_gap.value #=> String
3705
+ # resp.form.tags #=> Hash
3706
+ # resp.form.tags["TagKey"] #=> String
3707
+ #
3708
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetForm AWS API Documentation
3709
+ #
3710
+ # @overload get_form(params = {})
3711
+ # @param [Hash] params ({})
3712
+ def get_form(params = {}, options = {})
3713
+ req = build_request(:get_form, params)
3714
+ req.send_request(options)
3715
+ end
3716
+
3717
+ # Returns existing metadata for an Amplify app.
3718
+ #
3719
+ # @option params [required, String] :app_id
3720
+ # The unique ID of the Amplify app.
3721
+ #
3722
+ # @option params [required, String] :environment_name
3723
+ # The name of the backend environment that is part of the Amplify app.
3724
+ #
3725
+ # @return [Types::GetMetadataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3726
+ #
3727
+ # * {Types::GetMetadataResponse#features #features} => Hash<String,String>
3728
+ #
3729
+ # @example Request syntax with placeholder values
3730
+ #
3731
+ # resp = client.get_metadata({
3732
+ # app_id: "String", # required
3733
+ # environment_name: "String", # required
3734
+ # })
3735
+ #
3736
+ # @example Response structure
3737
+ #
3738
+ # resp.features #=> Hash
3739
+ # resp.features["String"] #=> String
3740
+ #
3741
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetMetadata AWS API Documentation
3742
+ #
3743
+ # @overload get_metadata(params = {})
3744
+ # @param [Hash] params ({})
3745
+ def get_metadata(params = {}, options = {})
3746
+ req = build_request(:get_metadata, params)
3747
+ req.send_request(options)
3748
+ end
3749
+
3244
3750
  # Returns an existing theme for an Amplify app.
3245
3751
  #
3246
3752
  # @option params [required, String] :app_id
@@ -3342,6 +3848,58 @@ module Aws::AmplifyUIBuilder
3342
3848
  req.send_request(options)
3343
3849
  end
3344
3850
 
3851
+ # Retrieves a list of forms for a specified Amplify app and backend
3852
+ # environment.
3853
+ #
3854
+ # @option params [required, String] :app_id
3855
+ # The unique ID for the Amplify app.
3856
+ #
3857
+ # @option params [required, String] :environment_name
3858
+ # The name of the backend environment that is a part of the Amplify app.
3859
+ #
3860
+ # @option params [Integer] :max_results
3861
+ # The maximum number of forms to retrieve.
3862
+ #
3863
+ # @option params [String] :next_token
3864
+ # The token to request the next page of results.
3865
+ #
3866
+ # @return [Types::ListFormsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3867
+ #
3868
+ # * {Types::ListFormsResponse#entities #entities} => Array<Types::FormSummary>
3869
+ # * {Types::ListFormsResponse#next_token #next_token} => String
3870
+ #
3871
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3872
+ #
3873
+ # @example Request syntax with placeholder values
3874
+ #
3875
+ # resp = client.list_forms({
3876
+ # app_id: "String", # required
3877
+ # environment_name: "String", # required
3878
+ # max_results: 1,
3879
+ # next_token: "String",
3880
+ # })
3881
+ #
3882
+ # @example Response structure
3883
+ #
3884
+ # resp.entities #=> Array
3885
+ # resp.entities[0].app_id #=> String
3886
+ # resp.entities[0].data_type.data_source_type #=> String, one of "DataStore", "Custom"
3887
+ # resp.entities[0].data_type.data_type_name #=> String
3888
+ # resp.entities[0].environment_name #=> String
3889
+ # resp.entities[0].form_action_type #=> String, one of "create", "update"
3890
+ # resp.entities[0].id #=> String
3891
+ # resp.entities[0].name #=> String
3892
+ # resp.next_token #=> String
3893
+ #
3894
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListForms AWS API Documentation
3895
+ #
3896
+ # @overload list_forms(params = {})
3897
+ # @param [Hash] params ({})
3898
+ def list_forms(params = {}, options = {})
3899
+ req = build_request(:list_forms, params)
3900
+ req.send_request(options)
3901
+ end
3902
+
3345
3903
  # Retrieves a list of themes for a specified Amplify app and backend
3346
3904
  # environment.
3347
3905
  #
@@ -3391,6 +3949,42 @@ module Aws::AmplifyUIBuilder
3391
3949
  req.send_request(options)
3392
3950
  end
3393
3951
 
3952
+ # Stores the metadata information about a feature on a form or view.
3953
+ #
3954
+ # @option params [required, String] :app_id
3955
+ # The unique ID for the Amplify app.
3956
+ #
3957
+ # @option params [required, Types::PutMetadataFlagBody] :body
3958
+ # The metadata information to store.
3959
+ #
3960
+ # @option params [required, String] :environment_name
3961
+ # The name of the backend environment that is part of the Amplify app.
3962
+ #
3963
+ # @option params [required, String] :feature_name
3964
+ # The name of the feature associated with the metadata.
3965
+ #
3966
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
3967
+ #
3968
+ # @example Request syntax with placeholder values
3969
+ #
3970
+ # resp = client.put_metadata_flag({
3971
+ # app_id: "String", # required
3972
+ # body: { # required
3973
+ # new_value: "String", # required
3974
+ # },
3975
+ # environment_name: "String", # required
3976
+ # feature_name: "String", # required
3977
+ # })
3978
+ #
3979
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/PutMetadataFlag AWS API Documentation
3980
+ #
3981
+ # @overload put_metadata_flag(params = {})
3982
+ # @param [Hash] params ({})
3983
+ def put_metadata_flag(params = {}, options = {})
3984
+ req = build_request(:put_metadata_flag, params)
3985
+ req.send_request(options)
3986
+ end
3987
+
3394
3988
  # Refreshes a previously issued access token that might have expired.
3395
3989
  #
3396
3990
  # @option params [required, String] :provider
@@ -3481,6 +4075,7 @@ module Aws::AmplifyUIBuilder
3481
4075
  # },
3482
4076
  # },
3483
4077
  # ],
4078
+ # slot_name: "String",
3484
4079
  # user_attribute: "String",
3485
4080
  # },
3486
4081
  # default_value: "String",
@@ -4390,6 +4985,7 @@ module Aws::AmplifyUIBuilder
4390
4985
  # resp.entity.binding_properties["String"].binding_properties.predicates[0].operand #=> String
4391
4986
  # resp.entity.binding_properties["String"].binding_properties.predicates[0].operator #=> String
4392
4987
  # resp.entity.binding_properties["String"].binding_properties.predicates[0].or #=> Types::PredicateList
4988
+ # resp.entity.binding_properties["String"].binding_properties.slot_name #=> String
4393
4989
  # resp.entity.binding_properties["String"].binding_properties.user_attribute #=> String
4394
4990
  # resp.entity.binding_properties["String"].default_value #=> String
4395
4991
  # resp.entity.binding_properties["String"].type #=> String
@@ -4925,6 +5521,232 @@ module Aws::AmplifyUIBuilder
4925
5521
  req.send_request(options)
4926
5522
  end
4927
5523
 
5524
+ # Updates an existing form.
5525
+ #
5526
+ # @option params [required, String] :app_id
5527
+ # The unique ID for the Amplify app.
5528
+ #
5529
+ # @option params [String] :client_token
5530
+ # The unique client token.
5531
+ #
5532
+ # **A suitable default value is auto-generated.** You should normally
5533
+ # not need to pass this option.**
5534
+ #
5535
+ # @option params [required, String] :environment_name
5536
+ # The name of the backend environment that is part of the Amplify app.
5537
+ #
5538
+ # @option params [required, String] :id
5539
+ # The unique ID for the form.
5540
+ #
5541
+ # @option params [required, Types::UpdateFormData] :updated_form
5542
+ # The request accepts the following data in JSON format.
5543
+ #
5544
+ # @return [Types::UpdateFormResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5545
+ #
5546
+ # * {Types::UpdateFormResponse#entity #entity} => Types::Form
5547
+ #
5548
+ # @example Request syntax with placeholder values
5549
+ #
5550
+ # resp = client.update_form({
5551
+ # app_id: "String", # required
5552
+ # client_token: "String",
5553
+ # environment_name: "String", # required
5554
+ # id: "Uuid", # required
5555
+ # updated_form: { # required
5556
+ # cta: {
5557
+ # cancel: {
5558
+ # children: "String",
5559
+ # excluded: false,
5560
+ # position: {
5561
+ # below: "String",
5562
+ # fixed: "first", # accepts first
5563
+ # right_of: "String",
5564
+ # },
5565
+ # },
5566
+ # clear: {
5567
+ # children: "String",
5568
+ # excluded: false,
5569
+ # position: {
5570
+ # below: "String",
5571
+ # fixed: "first", # accepts first
5572
+ # right_of: "String",
5573
+ # },
5574
+ # },
5575
+ # position: "top", # accepts top, bottom, top_and_bottom
5576
+ # submit: {
5577
+ # children: "String",
5578
+ # excluded: false,
5579
+ # position: {
5580
+ # below: "String",
5581
+ # fixed: "first", # accepts first
5582
+ # right_of: "String",
5583
+ # },
5584
+ # },
5585
+ # },
5586
+ # data_type: {
5587
+ # data_source_type: "DataStore", # required, accepts DataStore, Custom
5588
+ # data_type_name: "String", # required
5589
+ # },
5590
+ # fields: {
5591
+ # "String" => {
5592
+ # excluded: false,
5593
+ # input_type: {
5594
+ # default_checked: false,
5595
+ # default_country_code: "String",
5596
+ # default_value: "String",
5597
+ # descriptive_text: "String",
5598
+ # max_value: 1.0,
5599
+ # min_value: 1.0,
5600
+ # name: "String",
5601
+ # placeholder: "String",
5602
+ # read_only: false,
5603
+ # required: false,
5604
+ # step: 1.0,
5605
+ # type: "String", # required
5606
+ # value: "String",
5607
+ # value_mappings: {
5608
+ # values: [ # required
5609
+ # {
5610
+ # display_value: {
5611
+ # value: "String",
5612
+ # },
5613
+ # value: { # required
5614
+ # value: "String",
5615
+ # },
5616
+ # },
5617
+ # ],
5618
+ # },
5619
+ # },
5620
+ # label: "String",
5621
+ # position: {
5622
+ # below: "String",
5623
+ # fixed: "first", # accepts first
5624
+ # right_of: "String",
5625
+ # },
5626
+ # validations: [
5627
+ # {
5628
+ # num_values: [1],
5629
+ # str_values: ["String"],
5630
+ # type: "String", # required
5631
+ # validation_message: "String",
5632
+ # },
5633
+ # ],
5634
+ # },
5635
+ # },
5636
+ # form_action_type: "create", # accepts create, update
5637
+ # name: "FormName",
5638
+ # schema_version: "String",
5639
+ # sectional_elements: {
5640
+ # "String" => {
5641
+ # level: 1,
5642
+ # orientation: "String",
5643
+ # position: {
5644
+ # below: "String",
5645
+ # fixed: "first", # accepts first
5646
+ # right_of: "String",
5647
+ # },
5648
+ # text: "String",
5649
+ # type: "String", # required
5650
+ # },
5651
+ # },
5652
+ # style: {
5653
+ # horizontal_gap: {
5654
+ # token_reference: "String",
5655
+ # value: "String",
5656
+ # },
5657
+ # outer_padding: {
5658
+ # token_reference: "String",
5659
+ # value: "String",
5660
+ # },
5661
+ # vertical_gap: {
5662
+ # token_reference: "String",
5663
+ # value: "String",
5664
+ # },
5665
+ # },
5666
+ # },
5667
+ # })
5668
+ #
5669
+ # @example Response structure
5670
+ #
5671
+ # resp.entity.app_id #=> String
5672
+ # resp.entity.cta.cancel.children #=> String
5673
+ # resp.entity.cta.cancel.excluded #=> Boolean
5674
+ # resp.entity.cta.cancel.position.below #=> String
5675
+ # resp.entity.cta.cancel.position.fixed #=> String, one of "first"
5676
+ # resp.entity.cta.cancel.position.right_of #=> String
5677
+ # resp.entity.cta.clear.children #=> String
5678
+ # resp.entity.cta.clear.excluded #=> Boolean
5679
+ # resp.entity.cta.clear.position.below #=> String
5680
+ # resp.entity.cta.clear.position.fixed #=> String, one of "first"
5681
+ # resp.entity.cta.clear.position.right_of #=> String
5682
+ # resp.entity.cta.position #=> String, one of "top", "bottom", "top_and_bottom"
5683
+ # resp.entity.cta.submit.children #=> String
5684
+ # resp.entity.cta.submit.excluded #=> Boolean
5685
+ # resp.entity.cta.submit.position.below #=> String
5686
+ # resp.entity.cta.submit.position.fixed #=> String, one of "first"
5687
+ # resp.entity.cta.submit.position.right_of #=> String
5688
+ # resp.entity.data_type.data_source_type #=> String, one of "DataStore", "Custom"
5689
+ # resp.entity.data_type.data_type_name #=> String
5690
+ # resp.entity.environment_name #=> String
5691
+ # resp.entity.fields #=> Hash
5692
+ # resp.entity.fields["String"].excluded #=> Boolean
5693
+ # resp.entity.fields["String"].input_type.default_checked #=> Boolean
5694
+ # resp.entity.fields["String"].input_type.default_country_code #=> String
5695
+ # resp.entity.fields["String"].input_type.default_value #=> String
5696
+ # resp.entity.fields["String"].input_type.descriptive_text #=> String
5697
+ # resp.entity.fields["String"].input_type.max_value #=> Float
5698
+ # resp.entity.fields["String"].input_type.min_value #=> Float
5699
+ # resp.entity.fields["String"].input_type.name #=> String
5700
+ # resp.entity.fields["String"].input_type.placeholder #=> String
5701
+ # resp.entity.fields["String"].input_type.read_only #=> Boolean
5702
+ # resp.entity.fields["String"].input_type.required #=> Boolean
5703
+ # resp.entity.fields["String"].input_type.step #=> Float
5704
+ # resp.entity.fields["String"].input_type.type #=> String
5705
+ # resp.entity.fields["String"].input_type.value #=> String
5706
+ # resp.entity.fields["String"].input_type.value_mappings.values #=> Array
5707
+ # resp.entity.fields["String"].input_type.value_mappings.values[0].display_value.value #=> String
5708
+ # resp.entity.fields["String"].input_type.value_mappings.values[0].value.value #=> String
5709
+ # resp.entity.fields["String"].label #=> String
5710
+ # resp.entity.fields["String"].position.below #=> String
5711
+ # resp.entity.fields["String"].position.fixed #=> String, one of "first"
5712
+ # resp.entity.fields["String"].position.right_of #=> String
5713
+ # resp.entity.fields["String"].validations #=> Array
5714
+ # resp.entity.fields["String"].validations[0].num_values #=> Array
5715
+ # resp.entity.fields["String"].validations[0].num_values[0] #=> Integer
5716
+ # resp.entity.fields["String"].validations[0].str_values #=> Array
5717
+ # resp.entity.fields["String"].validations[0].str_values[0] #=> String
5718
+ # resp.entity.fields["String"].validations[0].type #=> String
5719
+ # resp.entity.fields["String"].validations[0].validation_message #=> String
5720
+ # resp.entity.form_action_type #=> String, one of "create", "update"
5721
+ # resp.entity.id #=> String
5722
+ # resp.entity.name #=> String
5723
+ # resp.entity.schema_version #=> String
5724
+ # resp.entity.sectional_elements #=> Hash
5725
+ # resp.entity.sectional_elements["String"].level #=> Integer
5726
+ # resp.entity.sectional_elements["String"].orientation #=> String
5727
+ # resp.entity.sectional_elements["String"].position.below #=> String
5728
+ # resp.entity.sectional_elements["String"].position.fixed #=> String, one of "first"
5729
+ # resp.entity.sectional_elements["String"].position.right_of #=> String
5730
+ # resp.entity.sectional_elements["String"].text #=> String
5731
+ # resp.entity.sectional_elements["String"].type #=> String
5732
+ # resp.entity.style.horizontal_gap.token_reference #=> String
5733
+ # resp.entity.style.horizontal_gap.value #=> String
5734
+ # resp.entity.style.outer_padding.token_reference #=> String
5735
+ # resp.entity.style.outer_padding.value #=> String
5736
+ # resp.entity.style.vertical_gap.token_reference #=> String
5737
+ # resp.entity.style.vertical_gap.value #=> String
5738
+ # resp.entity.tags #=> Hash
5739
+ # resp.entity.tags["TagKey"] #=> String
5740
+ #
5741
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateForm AWS API Documentation
5742
+ #
5743
+ # @overload update_form(params = {})
5744
+ # @param [Hash] params ({})
5745
+ def update_form(params = {}, options = {})
5746
+ req = build_request(:update_form, params)
5747
+ req.send_request(options)
5748
+ end
5749
+
4928
5750
  # Updates an existing theme.
4929
5751
  #
4930
5752
  # @option params [required, String] :app_id
@@ -5025,7 +5847,7 @@ module Aws::AmplifyUIBuilder
5025
5847
  params: params,
5026
5848
  config: config)
5027
5849
  context[:gem_name] = 'aws-sdk-amplifyuibuilder'
5028
- context[:gem_version] = '1.5.0'
5850
+ context[:gem_version] = '1.6.0'
5029
5851
  Seahorse::Client::Request.new(handlers, context)
5030
5852
  end
5031
5853