aws-sdk-amplify 1.13.0 → 1.18.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f88c6f743047e21adac86093dce6a3ea8c18a1ed
4
- data.tar.gz: be527d89ca4255ea7791bee65e541449e1943d93
2
+ SHA256:
3
+ metadata.gz: 2a7f0e787e28e23937f5d5dd89224db424d9c183526ccfa5fc27ba3e78e2515d
4
+ data.tar.gz: e74857dff8b9e3bb54bc02fa113a7a4bdc38bb7a25f0c84b4d75eff5119a2d3b
5
5
  SHA512:
6
- metadata.gz: 41d29ae4b639719d318fc03f14483ac1aed02966f42465019bc10eeebe452c6dd0f1440b93d2fc189723226c1da193eb81d79d8aa9237c3b5328a16e0e3327c0
7
- data.tar.gz: 0ffb539e796579cffef3a6d489f9fa119deddf82f0b98e570d1860456658acc96a3dec6c09abe2cd2fc53ee98bd7f5e79cc734e83202e8c22ee1b66c506220f9
6
+ metadata.gz: 7812899e5e0e60fba03f3cb34a197c8ba6c7506ff7ff85f4e981060a8e169513a07f1a4dc4b12f5693cba55a3eee90c42ea19b5659e340eefbda3dc6a2c0d6a5
7
+ data.tar.gz: ddcd1b1950d6c620ccc95528dee5f4491a6585043a19149c74a0fd2d58caf528481a4b23e3fc9495482f1e360beab6163b6ba06d3a108e36136c039b7b460cc3
@@ -24,17 +24,20 @@ require_relative 'aws-sdk-amplify/customizations'
24
24
  # methods each accept a hash of request parameters and return a response
25
25
  # structure.
26
26
  #
27
+ # amplify = Aws::Amplify::Client.new
28
+ # resp = amplify.create_app(params)
29
+ #
27
30
  # See {Client} for more information.
28
31
  #
29
32
  # # Errors
30
33
  #
31
- # Errors returned from AWS Amplify all
32
- # extend {Errors::ServiceError}.
34
+ # Errors returned from AWS Amplify are defined in the
35
+ # {Errors} module and all extend {Errors::ServiceError}.
33
36
  #
34
37
  # begin
35
38
  # # do stuff
36
39
  # rescue Aws::Amplify::Errors::ServiceError
37
- # # rescues all service API errors
40
+ # # rescues all AWS Amplify API errors
38
41
  # end
39
42
  #
40
43
  # See {Errors} for more information.
@@ -42,6 +45,6 @@ require_relative 'aws-sdk-amplify/customizations'
42
45
  # @service
43
46
  module Aws::Amplify
44
47
 
45
- GEM_VERSION = '1.13.0'
48
+ GEM_VERSION = '1.18.1'
46
49
 
47
50
  end
@@ -24,12 +24,25 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
24
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
25
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
26
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
27
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
28
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
29
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
29
30
 
30
31
  Aws::Plugins::GlobalConfiguration.add_identifier(:amplify)
31
32
 
32
33
  module Aws::Amplify
34
+ # An API client for Amplify. To construct a client, you need to configure a `:region` and `:credentials`.
35
+ #
36
+ # client = Aws::Amplify::Client.new(
37
+ # region: region_name,
38
+ # credentials: credentials,
39
+ # # ...
40
+ # )
41
+ #
42
+ # For details on configuring region and credentials see
43
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
44
+ #
45
+ # See {#initialize} for a full list of supported configuration options.
33
46
  class Client < Seahorse::Client::Base
34
47
 
35
48
  include Aws::ClientStubs
@@ -57,6 +70,7 @@ module Aws::Amplify
57
70
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
58
71
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
59
72
  add_plugin(Aws::Plugins::TransferEncoding)
73
+ add_plugin(Aws::Plugins::HttpChecksum)
60
74
  add_plugin(Aws::Plugins::SignatureV4)
61
75
  add_plugin(Aws::Plugins::Protocols::RestJson)
62
76
 
@@ -93,7 +107,7 @@ module Aws::Amplify
93
107
  # @option options [required, String] :region
94
108
  # The AWS region to connect to. The configured `:region` is
95
109
  # used to determine the service `:endpoint`. When not passed,
96
- # a default `:region` is search for in the following locations:
110
+ # a default `:region` is searched for in the following locations:
97
111
  #
98
112
  # * `Aws.config[:region]`
99
113
  # * `ENV['AWS_REGION']`
@@ -108,6 +122,12 @@ module Aws::Amplify
108
122
  # When set to `true`, a thread polling for endpoints will be running in
109
123
  # the background every 60 secs (default). Defaults to `false`.
110
124
  #
125
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
126
+ # Used only in `adaptive` retry mode. When true, the request will sleep
127
+ # until there is sufficent client side capacity to retry the request.
128
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
129
+ # not retry instead of sleeping.
130
+ #
111
131
  # @option options [Boolean] :client_side_monitoring (false)
112
132
  # When `true`, client-side metrics will be collected for all API requests from
113
133
  # this client.
@@ -132,6 +152,10 @@ module Aws::Amplify
132
152
  # When `true`, an attempt is made to coerce request parameters into
133
153
  # the required types.
134
154
  #
155
+ # @option options [Boolean] :correct_clock_skew (true)
156
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
157
+ # a clock skew correction and retry requests with skewed client clocks.
158
+ #
135
159
  # @option options [Boolean] :disable_host_prefix_injection (false)
136
160
  # Set to true to disable SDK automatically adding host prefix
137
161
  # to default service endpoint when available.
@@ -139,7 +163,7 @@ module Aws::Amplify
139
163
  # @option options [String] :endpoint
140
164
  # The client endpoint is normally constructed from the `:region`
141
165
  # option. You should only configure an `:endpoint` when connecting
142
- # to test endpoints. This should be avalid HTTP(S) URI.
166
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
143
167
  #
144
168
  # @option options [Integer] :endpoint_cache_max_entries (1000)
145
169
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -154,7 +178,7 @@ module Aws::Amplify
154
178
  # requests fetching endpoints information. Defaults to 60 sec.
155
179
  #
156
180
  # @option options [Boolean] :endpoint_discovery (false)
157
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
181
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
158
182
  #
159
183
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
160
184
  # The log formatter.
@@ -166,15 +190,29 @@ module Aws::Amplify
166
190
  # The Logger instance to send log messages to. If this option
167
191
  # is not set, logging will be disabled.
168
192
  #
193
+ # @option options [Integer] :max_attempts (3)
194
+ # An integer representing the maximum number attempts that will be made for
195
+ # a single request, including the initial attempt. For example,
196
+ # setting this value to 5 will result in a request being retried up to
197
+ # 4 times. Used in `standard` and `adaptive` retry modes.
198
+ #
169
199
  # @option options [String] :profile ("default")
170
200
  # Used when loading credentials from the shared credentials file
171
201
  # at HOME/.aws/credentials. When not specified, 'default' is used.
172
202
  #
203
+ # @option options [Proc] :retry_backoff
204
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
205
+ # This option is only used in the `legacy` retry mode.
206
+ #
173
207
  # @option options [Float] :retry_base_delay (0.3)
174
- # The base delay in seconds used by the default backoff function.
208
+ # The base delay in seconds used by the default backoff function. This option
209
+ # is only used in the `legacy` retry mode.
175
210
  #
176
211
  # @option options [Symbol] :retry_jitter (:none)
177
- # A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number.
212
+ # A delay randomiser function used by the default backoff function.
213
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
214
+ # otherwise a Proc that takes and returns a number. This option is only used
215
+ # in the `legacy` retry mode.
178
216
  #
179
217
  # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
180
218
  #
@@ -182,11 +220,30 @@ module Aws::Amplify
182
220
  # The maximum number of times to retry failed requests. Only
183
221
  # ~ 500 level server errors and certain ~ 400 level client errors
184
222
  # are retried. Generally, these are throttling errors, data
185
- # checksum errors, networking errors, timeout errors and auth
186
- # errors from expired credentials.
223
+ # checksum errors, networking errors, timeout errors, auth errors,
224
+ # endpoint discovery, and errors from expired credentials.
225
+ # This option is only used in the `legacy` retry mode.
187
226
  #
188
227
  # @option options [Integer] :retry_max_delay (0)
189
- # The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function.
228
+ # The maximum number of seconds to delay between retries (0 for no limit)
229
+ # used by the default backoff function. This option is only used in the
230
+ # `legacy` retry mode.
231
+ #
232
+ # @option options [String] :retry_mode ("legacy")
233
+ # Specifies which retry algorithm to use. Values are:
234
+ #
235
+ # * `legacy` - The pre-existing retry behavior. This is default value if
236
+ # no retry mode is provided.
237
+ #
238
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
239
+ # This includes support for retry quotas, which limit the number of
240
+ # unsuccessful retries a client can make.
241
+ #
242
+ # * `adaptive` - An experimental retry mode that includes all the
243
+ # functionality of `standard` mode along with automatic client side
244
+ # throttling. This is a provisional mode that may change behavior
245
+ # in the future.
246
+ #
190
247
  #
191
248
  # @option options [String] :secret_access_key
192
249
  #
@@ -209,16 +266,15 @@ module Aws::Amplify
209
266
  # requests through. Formatted like 'http://proxy.com:123'.
210
267
  #
211
268
  # @option options [Float] :http_open_timeout (15) The number of
212
- # seconds to wait when opening a HTTP session before rasing a
269
+ # seconds to wait when opening a HTTP session before raising a
213
270
  # `Timeout::Error`.
214
271
  #
215
272
  # @option options [Integer] :http_read_timeout (60) The default
216
273
  # number of seconds to wait for response data. This value can
217
- # safely be set
218
- # per-request on the session yeidled by {#session_for}.
274
+ # safely be set per-request on the session.
219
275
  #
220
276
  # @option options [Float] :http_idle_timeout (5) The number of
221
- # seconds a connection is allowed to sit idble before it is
277
+ # seconds a connection is allowed to sit idle before it is
222
278
  # considered stale. Stale connections are closed and removed
223
279
  # from the pool before making a request.
224
280
  #
@@ -227,7 +283,7 @@ module Aws::Amplify
227
283
  # request body. This option has no effect unless the request has
228
284
  # "Expect" header set to "100-continue". Defaults to `nil` which
229
285
  # disables this behaviour. This value can safely be set per
230
- # request on the session yeidled by {#session_for}.
286
+ # request on the session.
231
287
  #
232
288
  # @option options [Boolean] :http_wire_trace (false) When `true`,
233
289
  # HTTP debug output will be sent to the `:logger`.
@@ -413,6 +469,51 @@ module Aws::Amplify
413
469
  req.send_request(options)
414
470
  end
415
471
 
472
+ # Creates a new backend environment for an Amplify App.
473
+ #
474
+ # @option params [required, String] :app_id
475
+ # Unique Id for an Amplify App.
476
+ #
477
+ # @option params [required, String] :environment_name
478
+ # Name for the backend environment.
479
+ #
480
+ # @option params [String] :stack_name
481
+ # CloudFormation stack name of backend environment.
482
+ #
483
+ # @option params [String] :deployment_artifacts
484
+ # Name of deployment artifacts.
485
+ #
486
+ # @return [Types::CreateBackendEnvironmentResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
487
+ #
488
+ # * {Types::CreateBackendEnvironmentResult#backend_environment #backend_environment} => Types::BackendEnvironment
489
+ #
490
+ # @example Request syntax with placeholder values
491
+ #
492
+ # resp = client.create_backend_environment({
493
+ # app_id: "AppId", # required
494
+ # environment_name: "EnvironmentName", # required
495
+ # stack_name: "StackName",
496
+ # deployment_artifacts: "DeploymentArtifacts",
497
+ # })
498
+ #
499
+ # @example Response structure
500
+ #
501
+ # resp.backend_environment.backend_environment_arn #=> String
502
+ # resp.backend_environment.environment_name #=> String
503
+ # resp.backend_environment.stack_name #=> String
504
+ # resp.backend_environment.deployment_artifacts #=> String
505
+ # resp.backend_environment.create_time #=> Time
506
+ # resp.backend_environment.update_time #=> Time
507
+ #
508
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateBackendEnvironment AWS API Documentation
509
+ #
510
+ # @overload create_backend_environment(params = {})
511
+ # @param [Hash] params ({})
512
+ def create_backend_environment(params = {}, options = {})
513
+ req = build_request(:create_backend_environment, params)
514
+ req.send_request(options)
515
+ end
516
+
416
517
  # Creates a new Branch for an Amplify App.
417
518
  #
418
519
  # @option params [required, String] :app_id
@@ -750,6 +851,43 @@ module Aws::Amplify
750
851
  req.send_request(options)
751
852
  end
752
853
 
854
+ # Delete backend environment for an Amplify App.
855
+ #
856
+ # @option params [required, String] :app_id
857
+ # Unique Id of an Amplify App.
858
+ #
859
+ # @option params [required, String] :environment_name
860
+ # Name of a backend environment of an Amplify App.
861
+ #
862
+ # @return [Types::DeleteBackendEnvironmentResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
863
+ #
864
+ # * {Types::DeleteBackendEnvironmentResult#backend_environment #backend_environment} => Types::BackendEnvironment
865
+ #
866
+ # @example Request syntax with placeholder values
867
+ #
868
+ # resp = client.delete_backend_environment({
869
+ # app_id: "AppId", # required
870
+ # environment_name: "EnvironmentName", # required
871
+ # })
872
+ #
873
+ # @example Response structure
874
+ #
875
+ # resp.backend_environment.backend_environment_arn #=> String
876
+ # resp.backend_environment.environment_name #=> String
877
+ # resp.backend_environment.stack_name #=> String
878
+ # resp.backend_environment.deployment_artifacts #=> String
879
+ # resp.backend_environment.create_time #=> Time
880
+ # resp.backend_environment.update_time #=> Time
881
+ #
882
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteBackendEnvironment AWS API Documentation
883
+ #
884
+ # @overload delete_backend_environment(params = {})
885
+ # @param [Hash] params ({})
886
+ def delete_backend_environment(params = {}, options = {})
887
+ req = build_request(:delete_backend_environment, params)
888
+ req.send_request(options)
889
+ end
890
+
753
891
  # Deletes a branch for an Amplify App.
754
892
  #
755
893
  # @option params [required, String] :app_id
@@ -1069,6 +1207,43 @@ module Aws::Amplify
1069
1207
  req.send_request(options)
1070
1208
  end
1071
1209
 
1210
+ # Retrieves a backend environment for an Amplify App.
1211
+ #
1212
+ # @option params [required, String] :app_id
1213
+ # Unique Id for an Amplify App.
1214
+ #
1215
+ # @option params [required, String] :environment_name
1216
+ # Name for the backend environment.
1217
+ #
1218
+ # @return [Types::GetBackendEnvironmentResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1219
+ #
1220
+ # * {Types::GetBackendEnvironmentResult#backend_environment #backend_environment} => Types::BackendEnvironment
1221
+ #
1222
+ # @example Request syntax with placeholder values
1223
+ #
1224
+ # resp = client.get_backend_environment({
1225
+ # app_id: "AppId", # required
1226
+ # environment_name: "EnvironmentName", # required
1227
+ # })
1228
+ #
1229
+ # @example Response structure
1230
+ #
1231
+ # resp.backend_environment.backend_environment_arn #=> String
1232
+ # resp.backend_environment.environment_name #=> String
1233
+ # resp.backend_environment.stack_name #=> String
1234
+ # resp.backend_environment.deployment_artifacts #=> String
1235
+ # resp.backend_environment.create_time #=> Time
1236
+ # resp.backend_environment.update_time #=> Time
1237
+ #
1238
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetBackendEnvironment AWS API Documentation
1239
+ #
1240
+ # @overload get_backend_environment(params = {})
1241
+ # @param [Hash] params ({})
1242
+ def get_backend_environment(params = {}, options = {})
1243
+ req = build_request(:get_backend_environment, params)
1244
+ req.send_request(options)
1245
+ end
1246
+
1072
1247
  # Retrieves a branch for an Amplify App.
1073
1248
  #
1074
1249
  # @option params [required, String] :app_id
@@ -1388,6 +1563,56 @@ module Aws::Amplify
1388
1563
  req.send_request(options)
1389
1564
  end
1390
1565
 
1566
+ # Lists backend environments for an Amplify App.
1567
+ #
1568
+ # @option params [required, String] :app_id
1569
+ # Unique Id for an amplify App.
1570
+ #
1571
+ # @option params [String] :environment_name
1572
+ # Name of the backend environment
1573
+ #
1574
+ # @option params [String] :next_token
1575
+ # Pagination token. Set to null to start listing backen environments
1576
+ # from start. If a non-null pagination token is returned in a result,
1577
+ # then pass its value in here to list more backend environments.
1578
+ #
1579
+ # @option params [Integer] :max_results
1580
+ # Maximum number of records to list in a single response.
1581
+ #
1582
+ # @return [Types::ListBackendEnvironmentsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1583
+ #
1584
+ # * {Types::ListBackendEnvironmentsResult#backend_environments #backend_environments} => Array&lt;Types::BackendEnvironment&gt;
1585
+ # * {Types::ListBackendEnvironmentsResult#next_token #next_token} => String
1586
+ #
1587
+ # @example Request syntax with placeholder values
1588
+ #
1589
+ # resp = client.list_backend_environments({
1590
+ # app_id: "AppId", # required
1591
+ # environment_name: "EnvironmentName",
1592
+ # next_token: "NextToken",
1593
+ # max_results: 1,
1594
+ # })
1595
+ #
1596
+ # @example Response structure
1597
+ #
1598
+ # resp.backend_environments #=> Array
1599
+ # resp.backend_environments[0].backend_environment_arn #=> String
1600
+ # resp.backend_environments[0].environment_name #=> String
1601
+ # resp.backend_environments[0].stack_name #=> String
1602
+ # resp.backend_environments[0].deployment_artifacts #=> String
1603
+ # resp.backend_environments[0].create_time #=> Time
1604
+ # resp.backend_environments[0].update_time #=> Time
1605
+ # resp.next_token #=> String
1606
+ #
1607
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListBackendEnvironments AWS API Documentation
1608
+ #
1609
+ # @overload list_backend_environments(params = {})
1610
+ # @param [Hash] params ({})
1611
+ def list_backend_environments(params = {}, options = {})
1612
+ req = build_request(:list_backend_environments, params)
1613
+ req.send_request(options)
1614
+ end
1615
+
1391
1616
  # Lists branches for an Amplify App.
1392
1617
  #
1393
1618
  # @option params [required, String] :app_id
@@ -2242,7 +2467,7 @@ module Aws::Amplify
2242
2467
  params: params,
2243
2468
  config: config)
2244
2469
  context[:gem_name] = 'aws-sdk-amplify'
2245
- context[:gem_version] = '1.13.0'
2470
+ context[:gem_version] = '1.18.1'
2246
2471
  Seahorse::Client::Request.new(handlers, context)
2247
2472
  end
2248
2473
 
@@ -28,7 +28,9 @@ module Aws::Amplify
28
28
  AutoBranchCreationConfig = Shapes::StructureShape.new(name: 'AutoBranchCreationConfig')
29
29
  AutoBranchCreationPattern = Shapes::StringShape.new(name: 'AutoBranchCreationPattern')
30
30
  AutoBranchCreationPatterns = Shapes::ListShape.new(name: 'AutoBranchCreationPatterns')
31
+ BackendEnvironment = Shapes::StructureShape.new(name: 'BackendEnvironment')
31
32
  BackendEnvironmentArn = Shapes::StringShape.new(name: 'BackendEnvironmentArn')
33
+ BackendEnvironments = Shapes::ListShape.new(name: 'BackendEnvironments')
32
34
  BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
33
35
  BasicAuthCredentials = Shapes::StringShape.new(name: 'BasicAuthCredentials')
34
36
  Branch = Shapes::StructureShape.new(name: 'Branch')
@@ -45,6 +47,8 @@ module Aws::Amplify
45
47
  Context = Shapes::StringShape.new(name: 'Context')
46
48
  CreateAppRequest = Shapes::StructureShape.new(name: 'CreateAppRequest')
47
49
  CreateAppResult = Shapes::StructureShape.new(name: 'CreateAppResult')
50
+ CreateBackendEnvironmentRequest = Shapes::StructureShape.new(name: 'CreateBackendEnvironmentRequest')
51
+ CreateBackendEnvironmentResult = Shapes::StructureShape.new(name: 'CreateBackendEnvironmentResult')
48
52
  CreateBranchRequest = Shapes::StructureShape.new(name: 'CreateBranchRequest')
49
53
  CreateBranchResult = Shapes::StructureShape.new(name: 'CreateBranchResult')
50
54
  CreateDeploymentRequest = Shapes::StructureShape.new(name: 'CreateDeploymentRequest')
@@ -62,6 +66,8 @@ module Aws::Amplify
62
66
  DefaultDomain = Shapes::StringShape.new(name: 'DefaultDomain')
63
67
  DeleteAppRequest = Shapes::StructureShape.new(name: 'DeleteAppRequest')
64
68
  DeleteAppResult = Shapes::StructureShape.new(name: 'DeleteAppResult')
69
+ DeleteBackendEnvironmentRequest = Shapes::StructureShape.new(name: 'DeleteBackendEnvironmentRequest')
70
+ DeleteBackendEnvironmentResult = Shapes::StructureShape.new(name: 'DeleteBackendEnvironmentResult')
65
71
  DeleteBranchRequest = Shapes::StructureShape.new(name: 'DeleteBranchRequest')
66
72
  DeleteBranchResult = Shapes::StructureShape.new(name: 'DeleteBranchResult')
67
73
  DeleteDomainAssociationRequest = Shapes::StructureShape.new(name: 'DeleteDomainAssociationRequest')
@@ -71,6 +77,7 @@ module Aws::Amplify
71
77
  DeleteWebhookRequest = Shapes::StructureShape.new(name: 'DeleteWebhookRequest')
72
78
  DeleteWebhookResult = Shapes::StructureShape.new(name: 'DeleteWebhookResult')
73
79
  DependentServiceFailureException = Shapes::StructureShape.new(name: 'DependentServiceFailureException')
80
+ DeploymentArtifacts = Shapes::StringShape.new(name: 'DeploymentArtifacts')
74
81
  Description = Shapes::StringShape.new(name: 'Description')
75
82
  DisplayName = Shapes::StringShape.new(name: 'DisplayName')
76
83
  DomainAssociation = Shapes::StructureShape.new(name: 'DomainAssociation')
@@ -89,6 +96,7 @@ module Aws::Amplify
89
96
  EndTime = Shapes::TimestampShape.new(name: 'EndTime')
90
97
  EnvKey = Shapes::StringShape.new(name: 'EnvKey')
91
98
  EnvValue = Shapes::StringShape.new(name: 'EnvValue')
99
+ EnvironmentName = Shapes::StringShape.new(name: 'EnvironmentName')
92
100
  EnvironmentVariables = Shapes::MapShape.new(name: 'EnvironmentVariables')
93
101
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
94
102
  FileMap = Shapes::MapShape.new(name: 'FileMap')
@@ -101,6 +109,8 @@ module Aws::Amplify
101
109
  GetAppResult = Shapes::StructureShape.new(name: 'GetAppResult')
102
110
  GetArtifactUrlRequest = Shapes::StructureShape.new(name: 'GetArtifactUrlRequest')
103
111
  GetArtifactUrlResult = Shapes::StructureShape.new(name: 'GetArtifactUrlResult')
112
+ GetBackendEnvironmentRequest = Shapes::StructureShape.new(name: 'GetBackendEnvironmentRequest')
113
+ GetBackendEnvironmentResult = Shapes::StructureShape.new(name: 'GetBackendEnvironmentResult')
104
114
  GetBranchRequest = Shapes::StructureShape.new(name: 'GetBranchRequest')
105
115
  GetBranchResult = Shapes::StructureShape.new(name: 'GetBranchResult')
106
116
  GetDomainAssociationRequest = Shapes::StructureShape.new(name: 'GetDomainAssociationRequest')
@@ -124,6 +134,8 @@ module Aws::Amplify
124
134
  ListAppsResult = Shapes::StructureShape.new(name: 'ListAppsResult')
125
135
  ListArtifactsRequest = Shapes::StructureShape.new(name: 'ListArtifactsRequest')
126
136
  ListArtifactsResult = Shapes::StructureShape.new(name: 'ListArtifactsResult')
137
+ ListBackendEnvironmentsRequest = Shapes::StructureShape.new(name: 'ListBackendEnvironmentsRequest')
138
+ ListBackendEnvironmentsResult = Shapes::StructureShape.new(name: 'ListBackendEnvironmentsResult')
127
139
  ListBranchesRequest = Shapes::StructureShape.new(name: 'ListBranchesRequest')
128
140
  ListBranchesResult = Shapes::StructureShape.new(name: 'ListBranchesResult')
129
141
  ListDomainAssociationsRequest = Shapes::StructureShape.new(name: 'ListDomainAssociationsRequest')
@@ -151,6 +163,7 @@ module Aws::Amplify
151
163
  ServiceRoleArn = Shapes::StringShape.new(name: 'ServiceRoleArn')
152
164
  Source = Shapes::StringShape.new(name: 'Source')
153
165
  SourceUrl = Shapes::StringShape.new(name: 'SourceUrl')
166
+ StackName = Shapes::StringShape.new(name: 'StackName')
154
167
  Stage = Shapes::StringShape.new(name: 'Stage')
155
168
  StartDeploymentRequest = Shapes::StructureShape.new(name: 'StartDeploymentRequest')
156
169
  StartDeploymentResult = Shapes::StructureShape.new(name: 'StartDeploymentResult')
@@ -247,6 +260,16 @@ module Aws::Amplify
247
260
 
248
261
  AutoBranchCreationPatterns.member = Shapes::ShapeRef.new(shape: AutoBranchCreationPattern)
249
262
 
263
+ BackendEnvironment.add_member(:backend_environment_arn, Shapes::ShapeRef.new(shape: BackendEnvironmentArn, required: true, location_name: "backendEnvironmentArn"))
264
+ BackendEnvironment.add_member(:environment_name, Shapes::ShapeRef.new(shape: EnvironmentName, required: true, location_name: "environmentName"))
265
+ BackendEnvironment.add_member(:stack_name, Shapes::ShapeRef.new(shape: StackName, location_name: "stackName"))
266
+ BackendEnvironment.add_member(:deployment_artifacts, Shapes::ShapeRef.new(shape: DeploymentArtifacts, location_name: "deploymentArtifacts"))
267
+ BackendEnvironment.add_member(:create_time, Shapes::ShapeRef.new(shape: CreateTime, required: true, location_name: "createTime"))
268
+ BackendEnvironment.add_member(:update_time, Shapes::ShapeRef.new(shape: UpdateTime, required: true, location_name: "updateTime"))
269
+ BackendEnvironment.struct_class = Types::BackendEnvironment
270
+
271
+ BackendEnvironments.member = Shapes::ShapeRef.new(shape: BackendEnvironment)
272
+
250
273
  BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
251
274
  BadRequestException.struct_class = Types::BadRequestException
252
275
 
@@ -302,6 +325,15 @@ module Aws::Amplify
302
325
  CreateAppResult.add_member(:app, Shapes::ShapeRef.new(shape: App, required: true, location_name: "app"))
303
326
  CreateAppResult.struct_class = Types::CreateAppResult
304
327
 
328
+ CreateBackendEnvironmentRequest.add_member(:app_id, Shapes::ShapeRef.new(shape: AppId, required: true, location: "uri", location_name: "appId"))
329
+ CreateBackendEnvironmentRequest.add_member(:environment_name, Shapes::ShapeRef.new(shape: EnvironmentName, required: true, location_name: "environmentName"))
330
+ CreateBackendEnvironmentRequest.add_member(:stack_name, Shapes::ShapeRef.new(shape: StackName, location_name: "stackName"))
331
+ CreateBackendEnvironmentRequest.add_member(:deployment_artifacts, Shapes::ShapeRef.new(shape: DeploymentArtifacts, location_name: "deploymentArtifacts"))
332
+ CreateBackendEnvironmentRequest.struct_class = Types::CreateBackendEnvironmentRequest
333
+
334
+ CreateBackendEnvironmentResult.add_member(:backend_environment, Shapes::ShapeRef.new(shape: BackendEnvironment, required: true, location_name: "backendEnvironment"))
335
+ CreateBackendEnvironmentResult.struct_class = Types::CreateBackendEnvironmentResult
336
+
305
337
  CreateBranchRequest.add_member(:app_id, Shapes::ShapeRef.new(shape: AppId, required: true, location: "uri", location_name: "appId"))
306
338
  CreateBranchRequest.add_member(:branch_name, Shapes::ShapeRef.new(shape: BranchName, required: true, location_name: "branchName"))
307
339
  CreateBranchRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
@@ -367,6 +399,13 @@ module Aws::Amplify
367
399
  DeleteAppResult.add_member(:app, Shapes::ShapeRef.new(shape: App, required: true, location_name: "app"))
368
400
  DeleteAppResult.struct_class = Types::DeleteAppResult
369
401
 
402
+ DeleteBackendEnvironmentRequest.add_member(:app_id, Shapes::ShapeRef.new(shape: AppId, required: true, location: "uri", location_name: "appId"))
403
+ DeleteBackendEnvironmentRequest.add_member(:environment_name, Shapes::ShapeRef.new(shape: EnvironmentName, required: true, location: "uri", location_name: "environmentName"))
404
+ DeleteBackendEnvironmentRequest.struct_class = Types::DeleteBackendEnvironmentRequest
405
+
406
+ DeleteBackendEnvironmentResult.add_member(:backend_environment, Shapes::ShapeRef.new(shape: BackendEnvironment, required: true, location_name: "backendEnvironment"))
407
+ DeleteBackendEnvironmentResult.struct_class = Types::DeleteBackendEnvironmentResult
408
+
370
409
  DeleteBranchRequest.add_member(:app_id, Shapes::ShapeRef.new(shape: AppId, required: true, location: "uri", location_name: "appId"))
371
410
  DeleteBranchRequest.add_member(:branch_name, Shapes::ShapeRef.new(shape: BranchName, required: true, location: "uri", location_name: "branchName"))
372
411
  DeleteBranchRequest.struct_class = Types::DeleteBranchRequest
@@ -440,6 +479,13 @@ module Aws::Amplify
440
479
  GetArtifactUrlResult.add_member(:artifact_url, Shapes::ShapeRef.new(shape: ArtifactUrl, required: true, location_name: "artifactUrl"))
441
480
  GetArtifactUrlResult.struct_class = Types::GetArtifactUrlResult
442
481
 
482
+ GetBackendEnvironmentRequest.add_member(:app_id, Shapes::ShapeRef.new(shape: AppId, required: true, location: "uri", location_name: "appId"))
483
+ GetBackendEnvironmentRequest.add_member(:environment_name, Shapes::ShapeRef.new(shape: EnvironmentName, required: true, location: "uri", location_name: "environmentName"))
484
+ GetBackendEnvironmentRequest.struct_class = Types::GetBackendEnvironmentRequest
485
+
486
+ GetBackendEnvironmentResult.add_member(:backend_environment, Shapes::ShapeRef.new(shape: BackendEnvironment, required: true, location_name: "backendEnvironment"))
487
+ GetBackendEnvironmentResult.struct_class = Types::GetBackendEnvironmentResult
488
+
443
489
  GetBranchRequest.add_member(:app_id, Shapes::ShapeRef.new(shape: AppId, required: true, location: "uri", location_name: "appId"))
444
490
  GetBranchRequest.add_member(:branch_name, Shapes::ShapeRef.new(shape: BranchName, required: true, location: "uri", location_name: "branchName"))
445
491
  GetBranchRequest.struct_class = Types::GetBranchRequest
@@ -510,6 +556,16 @@ module Aws::Amplify
510
556
  ListArtifactsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
511
557
  ListArtifactsResult.struct_class = Types::ListArtifactsResult
512
558
 
559
+ ListBackendEnvironmentsRequest.add_member(:app_id, Shapes::ShapeRef.new(shape: AppId, required: true, location: "uri", location_name: "appId"))
560
+ ListBackendEnvironmentsRequest.add_member(:environment_name, Shapes::ShapeRef.new(shape: EnvironmentName, location_name: "environmentName"))
561
+ ListBackendEnvironmentsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
562
+ ListBackendEnvironmentsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
563
+ ListBackendEnvironmentsRequest.struct_class = Types::ListBackendEnvironmentsRequest
564
+
565
+ ListBackendEnvironmentsResult.add_member(:backend_environments, Shapes::ShapeRef.new(shape: BackendEnvironments, required: true, location_name: "backendEnvironments"))
566
+ ListBackendEnvironmentsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
567
+ ListBackendEnvironmentsResult.struct_class = Types::ListBackendEnvironmentsResult
568
+
513
569
  ListBranchesRequest.add_member(:app_id, Shapes::ShapeRef.new(shape: AppId, required: true, location: "uri", location_name: "appId"))
514
570
  ListBranchesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
515
571
  ListBranchesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
@@ -750,6 +806,19 @@ module Aws::Amplify
750
806
  o.errors << Shapes::ShapeRef.new(shape: DependentServiceFailureException)
751
807
  end)
752
808
 
809
+ api.add_operation(:create_backend_environment, Seahorse::Model::Operation.new.tap do |o|
810
+ o.name = "CreateBackendEnvironment"
811
+ o.http_method = "POST"
812
+ o.http_request_uri = "/apps/{appId}/backendenvironments"
813
+ o.input = Shapes::ShapeRef.new(shape: CreateBackendEnvironmentRequest)
814
+ o.output = Shapes::ShapeRef.new(shape: CreateBackendEnvironmentResult)
815
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
816
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
817
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
818
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
819
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
820
+ end)
821
+
753
822
  api.add_operation(:create_branch, Seahorse::Model::Operation.new.tap do |o|
754
823
  o.name = "CreateBranch"
755
824
  o.http_method = "POST"
@@ -817,6 +886,19 @@ module Aws::Amplify
817
886
  o.errors << Shapes::ShapeRef.new(shape: DependentServiceFailureException)
818
887
  end)
819
888
 
889
+ api.add_operation(:delete_backend_environment, Seahorse::Model::Operation.new.tap do |o|
890
+ o.name = "DeleteBackendEnvironment"
891
+ o.http_method = "DELETE"
892
+ o.http_request_uri = "/apps/{appId}/backendenvironments/{environmentName}"
893
+ o.input = Shapes::ShapeRef.new(shape: DeleteBackendEnvironmentRequest)
894
+ o.output = Shapes::ShapeRef.new(shape: DeleteBackendEnvironmentResult)
895
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
896
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
897
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
898
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
899
+ o.errors << Shapes::ShapeRef.new(shape: DependentServiceFailureException)
900
+ end)
901
+
820
902
  api.add_operation(:delete_branch, Seahorse::Model::Operation.new.tap do |o|
821
903
  o.name = "DeleteBranch"
822
904
  o.http_method = "DELETE"
@@ -906,6 +988,18 @@ module Aws::Amplify
906
988
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
907
989
  end)
908
990
 
991
+ api.add_operation(:get_backend_environment, Seahorse::Model::Operation.new.tap do |o|
992
+ o.name = "GetBackendEnvironment"
993
+ o.http_method = "GET"
994
+ o.http_request_uri = "/apps/{appId}/backendenvironments/{environmentName}"
995
+ o.input = Shapes::ShapeRef.new(shape: GetBackendEnvironmentRequest)
996
+ o.output = Shapes::ShapeRef.new(shape: GetBackendEnvironmentResult)
997
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
998
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
999
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1000
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
1001
+ end)
1002
+
909
1003
  api.add_operation(:get_branch, Seahorse::Model::Operation.new.tap do |o|
910
1004
  o.name = "GetBranch"
911
1005
  o.http_method = "GET"
@@ -979,6 +1073,17 @@ module Aws::Amplify
979
1073
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
980
1074
  end)
981
1075
 
1076
+ api.add_operation(:list_backend_environments, Seahorse::Model::Operation.new.tap do |o|
1077
+ o.name = "ListBackendEnvironments"
1078
+ o.http_method = "GET"
1079
+ o.http_request_uri = "/apps/{appId}/backendenvironments"
1080
+ o.input = Shapes::ShapeRef.new(shape: ListBackendEnvironmentsRequest)
1081
+ o.output = Shapes::ShapeRef.new(shape: ListBackendEnvironmentsResult)
1082
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1083
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
1084
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
1085
+ end)
1086
+
982
1087
  api.add_operation(:list_branches, Seahorse::Model::Operation.new.tap do |o|
983
1088
  o.name = "ListBranches"
984
1089
  o.http_method = "GET"
@@ -6,6 +6,35 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::Amplify
9
+
10
+ # When Amplify returns an error response, the Ruby SDK constructs and raises an error.
11
+ # These errors all extend Aws::Amplify::Errors::ServiceError < {Aws::Errors::ServiceError}
12
+ #
13
+ # You can rescue all Amplify errors using ServiceError:
14
+ #
15
+ # begin
16
+ # # do stuff
17
+ # rescue Aws::Amplify::Errors::ServiceError
18
+ # # rescues all Amplify API errors
19
+ # end
20
+ #
21
+ #
22
+ # ## Request Context
23
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
24
+ # information about the request that generated the error.
25
+ # See {Seahorse::Client::RequestContext} for more information.
26
+ #
27
+ # ## Error Classes
28
+ # * {BadRequestException}
29
+ # * {DependentServiceFailureException}
30
+ # * {InternalFailureException}
31
+ # * {LimitExceededException}
32
+ # * {NotFoundException}
33
+ # * {ResourceNotFoundException}
34
+ # * {UnauthorizedException}
35
+ #
36
+ # Additionally, error classes are dynamically generated for service errors based on the error code
37
+ # if they are not defined above.
9
38
  module Errors
10
39
 
11
40
  extend Aws::Errors::DynamicErrors
@@ -23,7 +52,6 @@ module Aws::Amplify
23
52
  def message
24
53
  @message || @data[:message]
25
54
  end
26
-
27
55
  end
28
56
 
29
57
  class DependentServiceFailureException < ServiceError
@@ -39,7 +67,6 @@ module Aws::Amplify
39
67
  def message
40
68
  @message || @data[:message]
41
69
  end
42
-
43
70
  end
44
71
 
45
72
  class InternalFailureException < ServiceError
@@ -55,7 +82,6 @@ module Aws::Amplify
55
82
  def message
56
83
  @message || @data[:message]
57
84
  end
58
-
59
85
  end
60
86
 
61
87
  class LimitExceededException < ServiceError
@@ -71,7 +97,6 @@ module Aws::Amplify
71
97
  def message
72
98
  @message || @data[:message]
73
99
  end
74
-
75
100
  end
76
101
 
77
102
  class NotFoundException < ServiceError
@@ -87,7 +112,6 @@ module Aws::Amplify
87
112
  def message
88
113
  @message || @data[:message]
89
114
  end
90
-
91
115
  end
92
116
 
93
117
  class ResourceNotFoundException < ServiceError
@@ -108,7 +132,6 @@ module Aws::Amplify
108
132
  def message
109
133
  @message || @data[:message]
110
134
  end
111
-
112
135
  end
113
136
 
114
137
  class UnauthorizedException < ServiceError
@@ -124,7 +147,6 @@ module Aws::Amplify
124
147
  def message
125
148
  @message || @data[:message]
126
149
  end
127
-
128
150
  end
129
151
 
130
152
  end
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::Amplify
9
+
9
10
  class Resource
10
11
 
11
12
  # @param options ({})
@@ -210,6 +210,46 @@ module Aws::Amplify
210
210
  include Aws::Structure
211
211
  end
212
212
 
213
+ # Backend environment for an Amplify App.
214
+ #
215
+ # @!attribute [rw] backend_environment_arn
216
+ # Arn for a backend environment, part of an Amplify App.
217
+ # @return [String]
218
+ #
219
+ # @!attribute [rw] environment_name
220
+ # Name for a backend environment, part of an Amplify App.
221
+ # @return [String]
222
+ #
223
+ # @!attribute [rw] stack_name
224
+ # CloudFormation stack name of backend environment.
225
+ # @return [String]
226
+ #
227
+ # @!attribute [rw] deployment_artifacts
228
+ # Name of deployment artifacts.
229
+ # @return [String]
230
+ #
231
+ # @!attribute [rw] create_time
232
+ # Creation date and time for a backend environment, part of an Amplify
233
+ # App.
234
+ # @return [Time]
235
+ #
236
+ # @!attribute [rw] update_time
237
+ # Last updated date and time for a backend environment, part of an
238
+ # Amplify App.
239
+ # @return [Time]
240
+ #
241
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/BackendEnvironment AWS API Documentation
242
+ #
243
+ class BackendEnvironment < Struct.new(
244
+ :backend_environment_arn,
245
+ :environment_name,
246
+ :stack_name,
247
+ :deployment_artifacts,
248
+ :create_time,
249
+ :update_time)
250
+ include Aws::Structure
251
+ end
252
+
213
253
  # Exception thrown when a request contains unexpected data.
214
254
  #
215
255
  # @!attribute [rw] message
@@ -518,6 +558,57 @@ module Aws::Amplify
518
558
  include Aws::Structure
519
559
  end
520
560
 
561
+ # Request structure for a backend environment create request.
562
+ #
563
+ # @note When making an API call, you may pass CreateBackendEnvironmentRequest
564
+ # data as a hash:
565
+ #
566
+ # {
567
+ # app_id: "AppId", # required
568
+ # environment_name: "EnvironmentName", # required
569
+ # stack_name: "StackName",
570
+ # deployment_artifacts: "DeploymentArtifacts",
571
+ # }
572
+ #
573
+ # @!attribute [rw] app_id
574
+ # Unique Id for an Amplify App.
575
+ # @return [String]
576
+ #
577
+ # @!attribute [rw] environment_name
578
+ # Name for the backend environment.
579
+ # @return [String]
580
+ #
581
+ # @!attribute [rw] stack_name
582
+ # CloudFormation stack name of backend environment.
583
+ # @return [String]
584
+ #
585
+ # @!attribute [rw] deployment_artifacts
586
+ # Name of deployment artifacts.
587
+ # @return [String]
588
+ #
589
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateBackendEnvironmentRequest AWS API Documentation
590
+ #
591
+ class CreateBackendEnvironmentRequest < Struct.new(
592
+ :app_id,
593
+ :environment_name,
594
+ :stack_name,
595
+ :deployment_artifacts)
596
+ include Aws::Structure
597
+ end
598
+
599
+ # Result structure for create backend environment.
600
+ #
601
+ # @!attribute [rw] backend_environment
602
+ # Backend environment structure for an amplify App.
603
+ # @return [Types::BackendEnvironment]
604
+ #
605
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateBackendEnvironmentResult AWS API Documentation
606
+ #
607
+ class CreateBackendEnvironmentResult < Struct.new(
608
+ :backend_environment)
609
+ include Aws::Structure
610
+ end
611
+
521
612
  # Request structure for a branch create request.
522
613
  #
523
614
  # @note When making an API call, you may pass CreateBranchRequest
@@ -887,6 +978,45 @@ module Aws::Amplify
887
978
  include Aws::Structure
888
979
  end
889
980
 
981
+ # Request structure for delete backend environment request.
982
+ #
983
+ # @note When making an API call, you may pass DeleteBackendEnvironmentRequest
984
+ # data as a hash:
985
+ #
986
+ # {
987
+ # app_id: "AppId", # required
988
+ # environment_name: "EnvironmentName", # required
989
+ # }
990
+ #
991
+ # @!attribute [rw] app_id
992
+ # Unique Id of an Amplify App.
993
+ # @return [String]
994
+ #
995
+ # @!attribute [rw] environment_name
996
+ # Name of a backend environment of an Amplify App.
997
+ # @return [String]
998
+ #
999
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteBackendEnvironmentRequest AWS API Documentation
1000
+ #
1001
+ class DeleteBackendEnvironmentRequest < Struct.new(
1002
+ :app_id,
1003
+ :environment_name)
1004
+ include Aws::Structure
1005
+ end
1006
+
1007
+ # Result structure of a delete backend environment result.
1008
+ #
1009
+ # @!attribute [rw] backend_environment
1010
+ # Backend environment structure for an Amplify App.
1011
+ # @return [Types::BackendEnvironment]
1012
+ #
1013
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteBackendEnvironmentResult AWS API Documentation
1014
+ #
1015
+ class DeleteBackendEnvironmentResult < Struct.new(
1016
+ :backend_environment)
1017
+ include Aws::Structure
1018
+ end
1019
+
890
1020
  # Request structure for delete branch request.
891
1021
  #
892
1022
  # @note When making an API call, you may pass DeleteBranchRequest
@@ -1221,6 +1351,45 @@ module Aws::Amplify
1221
1351
  include Aws::Structure
1222
1352
  end
1223
1353
 
1354
+ # Request structure for get backend environment request.
1355
+ #
1356
+ # @note When making an API call, you may pass GetBackendEnvironmentRequest
1357
+ # data as a hash:
1358
+ #
1359
+ # {
1360
+ # app_id: "AppId", # required
1361
+ # environment_name: "EnvironmentName", # required
1362
+ # }
1363
+ #
1364
+ # @!attribute [rw] app_id
1365
+ # Unique Id for an Amplify App.
1366
+ # @return [String]
1367
+ #
1368
+ # @!attribute [rw] environment_name
1369
+ # Name for the backend environment.
1370
+ # @return [String]
1371
+ #
1372
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetBackendEnvironmentRequest AWS API Documentation
1373
+ #
1374
+ class GetBackendEnvironmentRequest < Struct.new(
1375
+ :app_id,
1376
+ :environment_name)
1377
+ include Aws::Structure
1378
+ end
1379
+
1380
+ # Result structure for get backend environment result.
1381
+ #
1382
+ # @!attribute [rw] backend_environment
1383
+ # Backend environment structure for an an Amplify App.
1384
+ # @return [Types::BackendEnvironment]
1385
+ #
1386
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetBackendEnvironmentResult AWS API Documentation
1387
+ #
1388
+ class GetBackendEnvironmentResult < Struct.new(
1389
+ :backend_environment)
1390
+ include Aws::Structure
1391
+ end
1392
+
1224
1393
  # Request structure for get branch request.
1225
1394
  #
1226
1395
  # @note When making an API call, you may pass GetBranchRequest
@@ -1587,6 +1756,66 @@ module Aws::Amplify
1587
1756
  include Aws::Structure
1588
1757
  end
1589
1758
 
1759
+ # Request structure for list backend environments request.
1760
+ #
1761
+ # @note When making an API call, you may pass ListBackendEnvironmentsRequest
1762
+ # data as a hash:
1763
+ #
1764
+ # {
1765
+ # app_id: "AppId", # required
1766
+ # environment_name: "EnvironmentName",
1767
+ # next_token: "NextToken",
1768
+ # max_results: 1,
1769
+ # }
1770
+ #
1771
+ # @!attribute [rw] app_id
1772
+ # Unique Id for an amplify App.
1773
+ # @return [String]
1774
+ #
1775
+ # @!attribute [rw] environment_name
1776
+ # Name of the backend environment
1777
+ # @return [String]
1778
+ #
1779
+ # @!attribute [rw] next_token
1780
+ # Pagination token. Set to null to start listing backen environments
1781
+ # from start. If a non-null pagination token is returned in a result,
1782
+ # then pass its value in here to list more backend environments.
1783
+ # @return [String]
1784
+ #
1785
+ # @!attribute [rw] max_results
1786
+ # Maximum number of records to list in a single response.
1787
+ # @return [Integer]
1788
+ #
1789
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListBackendEnvironmentsRequest AWS API Documentation
1790
+ #
1791
+ class ListBackendEnvironmentsRequest < Struct.new(
1792
+ :app_id,
1793
+ :environment_name,
1794
+ :next_token,
1795
+ :max_results)
1796
+ include Aws::Structure
1797
+ end
1798
+
1799
+ # Result structure for list backend environments result.
1800
+ #
1801
+ # @!attribute [rw] backend_environments
1802
+ # List of backend environments for an Amplify App.
1803
+ # @return [Array<Types::BackendEnvironment>]
1804
+ #
1805
+ # @!attribute [rw] next_token
1806
+ # Pagination token. If non-null pagination token is returned in a
1807
+ # result, then pass its value in another request to fetch more
1808
+ # entries.
1809
+ # @return [String]
1810
+ #
1811
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListBackendEnvironmentsResult AWS API Documentation
1812
+ #
1813
+ class ListBackendEnvironmentsResult < Struct.new(
1814
+ :backend_environments,
1815
+ :next_token)
1816
+ include Aws::Structure
1817
+ end
1818
+
1590
1819
  # Request structure for list branches request.
1591
1820
  #
1592
1821
  # @note When making an API call, you may pass ListBranchesRequest
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-amplify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.13.0
4
+ version: 1.18.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-31 00:00:00.000000000 Z
11
+ date: 2020-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.71.0
22
+ version: 3.99.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.71.0
32
+ version: 3.99.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  version: '0'
82
82
  requirements: []
83
83
  rubyforge_project:
84
- rubygems_version: 2.5.2.3
84
+ rubygems_version: 2.7.6.2
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: AWS SDK for Ruby - Amplify