aws-sdk-amplifyuibuilder 1.5.0 → 1.7.0

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