aws-sdk-elasticbeanstalk 1.30.0 → 1.35.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.
- checksums.yaml +4 -4
- data/lib/aws-sdk-elasticbeanstalk.rb +4 -1
- data/lib/aws-sdk-elasticbeanstalk/client.rb +230 -8
- data/lib/aws-sdk-elasticbeanstalk/client_api.rb +44 -0
- data/lib/aws-sdk-elasticbeanstalk/customizations.rb +1 -0
- data/lib/aws-sdk-elasticbeanstalk/errors.rb +2 -0
- data/lib/aws-sdk-elasticbeanstalk/resource.rb +2 -0
- data/lib/aws-sdk-elasticbeanstalk/types.rb +216 -7
- data/lib/aws-sdk-elasticbeanstalk/waiters.rb +210 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b84c4cde014f9096639a7008f1265a93484271a1ea0a2454a196ffeb9bf16178
|
4
|
+
data.tar.gz: bc8b419956a4fab618e015ed99833a845924a862b5d69168a0c8be6628a01d23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45886e4cd8cd3aac96b84a6d3a2123c134b7a00f32e67ead85f10c1130b82178de8ad85b17ce1ee21b76028ad232779bf013eebbc7422aadc7b758367bf380f1
|
7
|
+
data.tar.gz: 3d43b824722656b86e7c35b44e914b90af70ccbfaee50ea66e52cd39f547dc13a219c6434dad544bdbb6d6819785afe67ba442a4ff442a182a73feef03d800ec
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -12,6 +14,7 @@ require_relative 'aws-sdk-elasticbeanstalk/types'
|
|
12
14
|
require_relative 'aws-sdk-elasticbeanstalk/client_api'
|
13
15
|
require_relative 'aws-sdk-elasticbeanstalk/client'
|
14
16
|
require_relative 'aws-sdk-elasticbeanstalk/errors'
|
17
|
+
require_relative 'aws-sdk-elasticbeanstalk/waiters'
|
15
18
|
require_relative 'aws-sdk-elasticbeanstalk/resource'
|
16
19
|
require_relative 'aws-sdk-elasticbeanstalk/customizations'
|
17
20
|
|
@@ -45,6 +48,6 @@ require_relative 'aws-sdk-elasticbeanstalk/customizations'
|
|
45
48
|
# @service
|
46
49
|
module Aws::ElasticBeanstalk
|
47
50
|
|
48
|
-
GEM_VERSION = '1.
|
51
|
+
GEM_VERSION = '1.35.0'
|
49
52
|
|
50
53
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
|
24
26
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
25
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
26
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
|
+
require 'aws-sdk-core/plugins/http_checksum.rb'
|
27
30
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
28
31
|
require 'aws-sdk-core/plugins/protocols/query.rb'
|
29
32
|
|
@@ -69,6 +72,7 @@ module Aws::ElasticBeanstalk
|
|
69
72
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
70
73
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
71
74
|
add_plugin(Aws::Plugins::TransferEncoding)
|
75
|
+
add_plugin(Aws::Plugins::HttpChecksum)
|
72
76
|
add_plugin(Aws::Plugins::SignatureV4)
|
73
77
|
add_plugin(Aws::Plugins::Protocols::Query)
|
74
78
|
|
@@ -161,7 +165,7 @@ module Aws::ElasticBeanstalk
|
|
161
165
|
# @option options [String] :endpoint
|
162
166
|
# The client endpoint is normally constructed from the `:region`
|
163
167
|
# option. You should only configure an `:endpoint` when connecting
|
164
|
-
# to test endpoints. This should be a valid HTTP(S) URI.
|
168
|
+
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
165
169
|
#
|
166
170
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
167
171
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -390,6 +394,41 @@ module Aws::ElasticBeanstalk
|
|
390
394
|
req.send_request(options)
|
391
395
|
end
|
392
396
|
|
397
|
+
# Add or change the operations role used by an environment. After this
|
398
|
+
# call is made, Elastic Beanstalk uses the associated operations role
|
399
|
+
# for permissions to downstream services during subsequent calls acting
|
400
|
+
# on this environment. For more information, see [Operations roles][1]
|
401
|
+
# in the *AWS Elastic Beanstalk Developer Guide*.
|
402
|
+
#
|
403
|
+
#
|
404
|
+
#
|
405
|
+
# [1]: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/iam-operationsrole.html
|
406
|
+
#
|
407
|
+
# @option params [required, String] :environment_name
|
408
|
+
# The name of the environment to which to set the operations role.
|
409
|
+
#
|
410
|
+
# @option params [required, String] :operations_role
|
411
|
+
# The Amazon Resource Name (ARN) of an existing IAM role to be used as
|
412
|
+
# the environment's operations role.
|
413
|
+
#
|
414
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
415
|
+
#
|
416
|
+
# @example Request syntax with placeholder values
|
417
|
+
#
|
418
|
+
# resp = client.associate_environment_operations_role({
|
419
|
+
# environment_name: "EnvironmentName", # required
|
420
|
+
# operations_role: "OperationsRole", # required
|
421
|
+
# })
|
422
|
+
#
|
423
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/AssociateEnvironmentOperationsRole AWS API Documentation
|
424
|
+
#
|
425
|
+
# @overload associate_environment_operations_role(params = {})
|
426
|
+
# @param [Hash] params ({})
|
427
|
+
def associate_environment_operations_role(params = {}, options = {})
|
428
|
+
req = build_request(:associate_environment_operations_role, params)
|
429
|
+
req.send_request(options)
|
430
|
+
end
|
431
|
+
|
393
432
|
# Checks if the specified CNAME is available.
|
394
433
|
#
|
395
434
|
# @option params [required, String] :cname_prefix
|
@@ -511,6 +550,7 @@ module Aws::ElasticBeanstalk
|
|
511
550
|
# resp.environments[0].environment_links[0].link_name #=> String
|
512
551
|
# resp.environments[0].environment_links[0].environment_name #=> String
|
513
552
|
# resp.environments[0].environment_arn #=> String
|
553
|
+
# resp.environments[0].operations_role #=> String
|
514
554
|
# resp.next_token #=> String
|
515
555
|
#
|
516
556
|
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ComposeEnvironments AWS API Documentation
|
@@ -1068,7 +1108,7 @@ module Aws::ElasticBeanstalk
|
|
1068
1108
|
#
|
1069
1109
|
# @option params [String] :platform_arn
|
1070
1110
|
# The Amazon Resource Name (ARN) of the custom platform to use with the
|
1071
|
-
# environment. For more information, see [
|
1111
|
+
# environment. For more information, see [Custom Platforms][1] in the
|
1072
1112
|
# *AWS Elastic Beanstalk Developer Guide*.
|
1073
1113
|
#
|
1074
1114
|
# <note markdown="1"> If you specify `PlatformArn`, don't specify `SolutionStackName`.
|
@@ -1089,6 +1129,19 @@ module Aws::ElasticBeanstalk
|
|
1089
1129
|
# A list of custom user-defined configuration options to remove from the
|
1090
1130
|
# configuration set for this new environment.
|
1091
1131
|
#
|
1132
|
+
# @option params [String] :operations_role
|
1133
|
+
# The Amazon Resource Name (ARN) of an existing IAM role to be used as
|
1134
|
+
# the environment's operations role. If specified, Elastic Beanstalk
|
1135
|
+
# uses the operations role for permissions to downstream services during
|
1136
|
+
# this call and during subsequent calls acting on this environment. To
|
1137
|
+
# specify an operations role, you must have the `iam:PassRole`
|
1138
|
+
# permission for the role. For more information, see [Operations
|
1139
|
+
# roles][1] in the *AWS Elastic Beanstalk Developer Guide*.
|
1140
|
+
#
|
1141
|
+
#
|
1142
|
+
#
|
1143
|
+
# [1]: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/iam-operationsrole.html
|
1144
|
+
#
|
1092
1145
|
# @return [Types::EnvironmentDescription] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1093
1146
|
#
|
1094
1147
|
# * {Types::EnvironmentDescription#environment_name #environment_name} => String
|
@@ -1111,6 +1164,7 @@ module Aws::ElasticBeanstalk
|
|
1111
1164
|
# * {Types::EnvironmentDescription#tier #tier} => Types::EnvironmentTier
|
1112
1165
|
# * {Types::EnvironmentDescription#environment_links #environment_links} => Array<Types::EnvironmentLink>
|
1113
1166
|
# * {Types::EnvironmentDescription#environment_arn #environment_arn} => String
|
1167
|
+
# * {Types::EnvironmentDescription#operations_role #operations_role} => String
|
1114
1168
|
#
|
1115
1169
|
#
|
1116
1170
|
# @example Example: To create a new environment for an application
|
@@ -1182,6 +1236,7 @@ module Aws::ElasticBeanstalk
|
|
1182
1236
|
# option_name: "ConfigurationOptionName",
|
1183
1237
|
# },
|
1184
1238
|
# ],
|
1239
|
+
# operations_role: "OperationsRole",
|
1185
1240
|
# })
|
1186
1241
|
#
|
1187
1242
|
# @example Response structure
|
@@ -1214,6 +1269,7 @@ module Aws::ElasticBeanstalk
|
|
1214
1269
|
# resp.environment_links[0].link_name #=> String
|
1215
1270
|
# resp.environment_links[0].environment_name #=> String
|
1216
1271
|
# resp.environment_arn #=> String
|
1272
|
+
# resp.operations_role #=> String
|
1217
1273
|
#
|
1218
1274
|
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateEnvironment AWS API Documentation
|
1219
1275
|
#
|
@@ -2176,6 +2232,8 @@ module Aws::ElasticBeanstalk
|
|
2176
2232
|
# * {Types::DescribeEnvironmentManagedActionHistoryResult#managed_action_history_items #managed_action_history_items} => Array<Types::ManagedActionHistoryItem>
|
2177
2233
|
# * {Types::DescribeEnvironmentManagedActionHistoryResult#next_token #next_token} => String
|
2178
2234
|
#
|
2235
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2236
|
+
#
|
2179
2237
|
# @example Request syntax with placeholder values
|
2180
2238
|
#
|
2181
2239
|
# resp = client.describe_environment_managed_action_history({
|
@@ -2474,8 +2532,16 @@ module Aws::ElasticBeanstalk
|
|
2474
2532
|
# resp.environments[0].environment_links[0].link_name #=> String
|
2475
2533
|
# resp.environments[0].environment_links[0].environment_name #=> String
|
2476
2534
|
# resp.environments[0].environment_arn #=> String
|
2535
|
+
# resp.environments[0].operations_role #=> String
|
2477
2536
|
# resp.next_token #=> String
|
2478
2537
|
#
|
2538
|
+
#
|
2539
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
2540
|
+
#
|
2541
|
+
# * environment_exists
|
2542
|
+
# * environment_terminated
|
2543
|
+
# * environment_updated
|
2544
|
+
#
|
2479
2545
|
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironments AWS API Documentation
|
2480
2546
|
#
|
2481
2547
|
# @overload describe_environments(params = {})
|
@@ -2853,6 +2919,37 @@ module Aws::ElasticBeanstalk
|
|
2853
2919
|
req.send_request(options)
|
2854
2920
|
end
|
2855
2921
|
|
2922
|
+
# Disassociate the operations role from an environment. After this call
|
2923
|
+
# is made, Elastic Beanstalk uses the caller's permissions for
|
2924
|
+
# permissions to downstream services during subsequent calls acting on
|
2925
|
+
# this environment. For more information, see [Operations roles][1] in
|
2926
|
+
# the *AWS Elastic Beanstalk Developer Guide*.
|
2927
|
+
#
|
2928
|
+
#
|
2929
|
+
#
|
2930
|
+
# [1]: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/iam-operationsrole.html
|
2931
|
+
#
|
2932
|
+
# @option params [required, String] :environment_name
|
2933
|
+
# The name of the environment from which to disassociate the operations
|
2934
|
+
# role.
|
2935
|
+
#
|
2936
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2937
|
+
#
|
2938
|
+
# @example Request syntax with placeholder values
|
2939
|
+
#
|
2940
|
+
# resp = client.disassociate_environment_operations_role({
|
2941
|
+
# environment_name: "EnvironmentName", # required
|
2942
|
+
# })
|
2943
|
+
#
|
2944
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DisassociateEnvironmentOperationsRole AWS API Documentation
|
2945
|
+
#
|
2946
|
+
# @overload disassociate_environment_operations_role(params = {})
|
2947
|
+
# @param [Hash] params ({})
|
2948
|
+
def disassociate_environment_operations_role(params = {}, options = {})
|
2949
|
+
req = build_request(:disassociate_environment_operations_role, params)
|
2950
|
+
req.send_request(options)
|
2951
|
+
end
|
2952
|
+
|
2856
2953
|
# Returns a list of the available solution stack names, with the public
|
2857
2954
|
# version first and then in reverse chronological order.
|
2858
2955
|
#
|
@@ -3063,6 +3160,8 @@ module Aws::ElasticBeanstalk
|
|
3063
3160
|
# * {Types::ListPlatformVersionsResult#platform_summary_list #platform_summary_list} => Array<Types::PlatformSummary>
|
3064
3161
|
# * {Types::ListPlatformVersionsResult#next_token #next_token} => String
|
3065
3162
|
#
|
3163
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
3164
|
+
#
|
3066
3165
|
# @example Request syntax with placeholder values
|
3067
3166
|
#
|
3068
3167
|
# resp = client.list_platform_versions({
|
@@ -3518,6 +3617,7 @@ module Aws::ElasticBeanstalk
|
|
3518
3617
|
# * {Types::EnvironmentDescription#tier #tier} => Types::EnvironmentTier
|
3519
3618
|
# * {Types::EnvironmentDescription#environment_links #environment_links} => Array<Types::EnvironmentLink>
|
3520
3619
|
# * {Types::EnvironmentDescription#environment_arn #environment_arn} => String
|
3620
|
+
# * {Types::EnvironmentDescription#operations_role #operations_role} => String
|
3521
3621
|
#
|
3522
3622
|
#
|
3523
3623
|
# @example Example: To terminate an environment
|
@@ -3587,6 +3687,7 @@ module Aws::ElasticBeanstalk
|
|
3587
3687
|
# resp.environment_links[0].link_name #=> String
|
3588
3688
|
# resp.environment_links[0].environment_name #=> String
|
3589
3689
|
# resp.environment_arn #=> String
|
3690
|
+
# resp.operations_role #=> String
|
3590
3691
|
#
|
3591
3692
|
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/TerminateEnvironment AWS API Documentation
|
3592
3693
|
#
|
@@ -4057,6 +4158,7 @@ module Aws::ElasticBeanstalk
|
|
4057
4158
|
# * {Types::EnvironmentDescription#tier #tier} => Types::EnvironmentTier
|
4058
4159
|
# * {Types::EnvironmentDescription#environment_links #environment_links} => Array<Types::EnvironmentLink>
|
4059
4160
|
# * {Types::EnvironmentDescription#environment_arn #environment_arn} => String
|
4161
|
+
# * {Types::EnvironmentDescription#operations_role #operations_role} => String
|
4060
4162
|
#
|
4061
4163
|
#
|
4062
4164
|
# @example Example: To update an environment to a new version
|
@@ -4203,6 +4305,7 @@ module Aws::ElasticBeanstalk
|
|
4203
4305
|
# resp.environment_links[0].link_name #=> String
|
4204
4306
|
# resp.environment_links[0].environment_name #=> String
|
4205
4307
|
# resp.environment_arn #=> String
|
4308
|
+
# resp.operations_role #=> String
|
4206
4309
|
#
|
4207
4310
|
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateEnvironment AWS API Documentation
|
4208
4311
|
#
|
@@ -4249,14 +4352,16 @@ module Aws::ElasticBeanstalk
|
|
4249
4352
|
# Must be the ARN of an Elastic Beanstalk resource.
|
4250
4353
|
#
|
4251
4354
|
# @option params [Array<Types::Tag>] :tags_to_add
|
4252
|
-
# A list of tags to add or update.
|
4355
|
+
# A list of tags to add or update. If a key of an existing tag is added,
|
4356
|
+
# the tag's value is updated.
|
4253
4357
|
#
|
4254
|
-
#
|
4358
|
+
# Specify at least one of these parameters: `TagsToAdd`, `TagsToRemove`.
|
4255
4359
|
#
|
4256
4360
|
# @option params [Array<String>] :tags_to_remove
|
4257
|
-
# A list of tag keys to remove.
|
4361
|
+
# A list of tag keys to remove. If a tag key doesn't exist, it is
|
4362
|
+
# silently ignored.
|
4258
4363
|
#
|
4259
|
-
#
|
4364
|
+
# Specify at least one of these parameters: `TagsToAdd`, `TagsToRemove`.
|
4260
4365
|
#
|
4261
4366
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
4262
4367
|
#
|
@@ -4381,14 +4486,131 @@ module Aws::ElasticBeanstalk
|
|
4381
4486
|
params: params,
|
4382
4487
|
config: config)
|
4383
4488
|
context[:gem_name] = 'aws-sdk-elasticbeanstalk'
|
4384
|
-
context[:gem_version] = '1.
|
4489
|
+
context[:gem_version] = '1.35.0'
|
4385
4490
|
Seahorse::Client::Request.new(handlers, context)
|
4386
4491
|
end
|
4387
4492
|
|
4493
|
+
# Polls an API operation until a resource enters a desired state.
|
4494
|
+
#
|
4495
|
+
# ## Basic Usage
|
4496
|
+
#
|
4497
|
+
# A waiter will call an API operation until:
|
4498
|
+
#
|
4499
|
+
# * It is successful
|
4500
|
+
# * It enters a terminal state
|
4501
|
+
# * It makes the maximum number of attempts
|
4502
|
+
#
|
4503
|
+
# In between attempts, the waiter will sleep.
|
4504
|
+
#
|
4505
|
+
# # polls in a loop, sleeping between attempts
|
4506
|
+
# client.wait_until(waiter_name, params)
|
4507
|
+
#
|
4508
|
+
# ## Configuration
|
4509
|
+
#
|
4510
|
+
# You can configure the maximum number of polling attempts, and the
|
4511
|
+
# delay (in seconds) between each polling attempt. You can pass
|
4512
|
+
# configuration as the final arguments hash.
|
4513
|
+
#
|
4514
|
+
# # poll for ~25 seconds
|
4515
|
+
# client.wait_until(waiter_name, params, {
|
4516
|
+
# max_attempts: 5,
|
4517
|
+
# delay: 5,
|
4518
|
+
# })
|
4519
|
+
#
|
4520
|
+
# ## Callbacks
|
4521
|
+
#
|
4522
|
+
# You can be notified before each polling attempt and before each
|
4523
|
+
# delay. If you throw `:success` or `:failure` from these callbacks,
|
4524
|
+
# it will terminate the waiter.
|
4525
|
+
#
|
4526
|
+
# started_at = Time.now
|
4527
|
+
# client.wait_until(waiter_name, params, {
|
4528
|
+
#
|
4529
|
+
# # disable max attempts
|
4530
|
+
# max_attempts: nil,
|
4531
|
+
#
|
4532
|
+
# # poll for 1 hour, instead of a number of attempts
|
4533
|
+
# before_wait: -> (attempts, response) do
|
4534
|
+
# throw :failure if Time.now - started_at > 3600
|
4535
|
+
# end
|
4536
|
+
# })
|
4537
|
+
#
|
4538
|
+
# ## Handling Errors
|
4539
|
+
#
|
4540
|
+
# When a waiter is unsuccessful, it will raise an error.
|
4541
|
+
# All of the failure errors extend from
|
4542
|
+
# {Aws::Waiters::Errors::WaiterFailed}.
|
4543
|
+
#
|
4544
|
+
# begin
|
4545
|
+
# client.wait_until(...)
|
4546
|
+
# rescue Aws::Waiters::Errors::WaiterFailed
|
4547
|
+
# # resource did not enter the desired state in time
|
4548
|
+
# end
|
4549
|
+
#
|
4550
|
+
# ## Valid Waiters
|
4551
|
+
#
|
4552
|
+
# The following table lists the valid waiter names, the operations they call,
|
4553
|
+
# and the default `:delay` and `:max_attempts` values.
|
4554
|
+
#
|
4555
|
+
# | waiter_name | params | :delay | :max_attempts |
|
4556
|
+
# | ---------------------- | ------------------------------ | -------- | ------------- |
|
4557
|
+
# | environment_exists | {Client#describe_environments} | 20 | 20 |
|
4558
|
+
# | environment_terminated | {Client#describe_environments} | 20 | 20 |
|
4559
|
+
# | environment_updated | {Client#describe_environments} | 20 | 20 |
|
4560
|
+
#
|
4561
|
+
# @raise [Errors::FailureStateError] Raised when the waiter terminates
|
4562
|
+
# because the waiter has entered a state that it will not transition
|
4563
|
+
# out of, preventing success.
|
4564
|
+
#
|
4565
|
+
# @raise [Errors::TooManyAttemptsError] Raised when the configured
|
4566
|
+
# maximum number of attempts have been made, and the waiter is not
|
4567
|
+
# yet successful.
|
4568
|
+
#
|
4569
|
+
# @raise [Errors::UnexpectedError] Raised when an error is encounted
|
4570
|
+
# while polling for a resource that is not expected.
|
4571
|
+
#
|
4572
|
+
# @raise [Errors::NoSuchWaiterError] Raised when you request to wait
|
4573
|
+
# for an unknown state.
|
4574
|
+
#
|
4575
|
+
# @return [Boolean] Returns `true` if the waiter was successful.
|
4576
|
+
# @param [Symbol] waiter_name
|
4577
|
+
# @param [Hash] params ({})
|
4578
|
+
# @param [Hash] options ({})
|
4579
|
+
# @option options [Integer] :max_attempts
|
4580
|
+
# @option options [Integer] :delay
|
4581
|
+
# @option options [Proc] :before_attempt
|
4582
|
+
# @option options [Proc] :before_wait
|
4583
|
+
def wait_until(waiter_name, params = {}, options = {})
|
4584
|
+
w = waiter(waiter_name, options)
|
4585
|
+
yield(w.waiter) if block_given? # deprecated
|
4586
|
+
w.wait(params)
|
4587
|
+
end
|
4588
|
+
|
4388
4589
|
# @api private
|
4389
4590
|
# @deprecated
|
4390
4591
|
def waiter_names
|
4391
|
-
|
4592
|
+
waiters.keys
|
4593
|
+
end
|
4594
|
+
|
4595
|
+
private
|
4596
|
+
|
4597
|
+
# @param [Symbol] waiter_name
|
4598
|
+
# @param [Hash] options ({})
|
4599
|
+
def waiter(waiter_name, options = {})
|
4600
|
+
waiter_class = waiters[waiter_name]
|
4601
|
+
if waiter_class
|
4602
|
+
waiter_class.new(options.merge(client: self))
|
4603
|
+
else
|
4604
|
+
raise Aws::Waiters::Errors::NoSuchWaiterError.new(waiter_name, waiters.keys)
|
4605
|
+
end
|
4606
|
+
end
|
4607
|
+
|
4608
|
+
def waiters
|
4609
|
+
{
|
4610
|
+
environment_exists: Waiters::EnvironmentExists,
|
4611
|
+
environment_terminated: Waiters::EnvironmentTerminated,
|
4612
|
+
environment_updated: Waiters::EnvironmentUpdated
|
4613
|
+
}
|
4392
4614
|
end
|
4393
4615
|
|
4394
4616
|
class << self
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -37,6 +39,7 @@ module Aws::ElasticBeanstalk
|
|
37
39
|
ApplicationVersionStatus = Shapes::StringShape.new(name: 'ApplicationVersionStatus')
|
38
40
|
ApplyEnvironmentManagedActionRequest = Shapes::StructureShape.new(name: 'ApplyEnvironmentManagedActionRequest')
|
39
41
|
ApplyEnvironmentManagedActionResult = Shapes::StructureShape.new(name: 'ApplyEnvironmentManagedActionResult')
|
42
|
+
AssociateEnvironmentOperationsRoleMessage = Shapes::StructureShape.new(name: 'AssociateEnvironmentOperationsRoleMessage')
|
40
43
|
AutoCreateApplication = Shapes::BooleanShape.new(name: 'AutoCreateApplication')
|
41
44
|
AutoScalingGroup = Shapes::StructureShape.new(name: 'AutoScalingGroup')
|
42
45
|
AutoScalingGroupList = Shapes::ListShape.new(name: 'AutoScalingGroupList')
|
@@ -116,6 +119,7 @@ module Aws::ElasticBeanstalk
|
|
116
119
|
DescribePlatformVersionRequest = Shapes::StructureShape.new(name: 'DescribePlatformVersionRequest')
|
117
120
|
DescribePlatformVersionResult = Shapes::StructureShape.new(name: 'DescribePlatformVersionResult')
|
118
121
|
Description = Shapes::StringShape.new(name: 'Description')
|
122
|
+
DisassociateEnvironmentOperationsRoleMessage = Shapes::StructureShape.new(name: 'DisassociateEnvironmentOperationsRoleMessage')
|
119
123
|
Ec2InstanceId = Shapes::StringShape.new(name: 'Ec2InstanceId')
|
120
124
|
ElasticBeanstalkServiceException = Shapes::StructureShape.new(name: 'ElasticBeanstalkServiceException')
|
121
125
|
EndpointURL = Shapes::StringShape.new(name: 'EndpointURL')
|
@@ -202,6 +206,7 @@ module Aws::ElasticBeanstalk
|
|
202
206
|
OperatingSystemName = Shapes::StringShape.new(name: 'OperatingSystemName')
|
203
207
|
OperatingSystemVersion = Shapes::StringShape.new(name: 'OperatingSystemVersion')
|
204
208
|
OperationInProgressException = Shapes::StructureShape.new(name: 'OperationInProgressException')
|
209
|
+
OperationsRole = Shapes::StringShape.new(name: 'OperationsRole')
|
205
210
|
OptionNamespace = Shapes::StringShape.new(name: 'OptionNamespace')
|
206
211
|
OptionRestrictionMaxLength = Shapes::IntegerShape.new(name: 'OptionRestrictionMaxLength')
|
207
212
|
OptionRestrictionMaxValue = Shapes::IntegerShape.new(name: 'OptionRestrictionMaxValue')
|
@@ -399,6 +404,10 @@ module Aws::ElasticBeanstalk
|
|
399
404
|
ApplyEnvironmentManagedActionResult.add_member(:status, Shapes::ShapeRef.new(shape: String, location_name: "Status"))
|
400
405
|
ApplyEnvironmentManagedActionResult.struct_class = Types::ApplyEnvironmentManagedActionResult
|
401
406
|
|
407
|
+
AssociateEnvironmentOperationsRoleMessage.add_member(:environment_name, Shapes::ShapeRef.new(shape: EnvironmentName, required: true, location_name: "EnvironmentName"))
|
408
|
+
AssociateEnvironmentOperationsRoleMessage.add_member(:operations_role, Shapes::ShapeRef.new(shape: OperationsRole, required: true, location_name: "OperationsRole"))
|
409
|
+
AssociateEnvironmentOperationsRoleMessage.struct_class = Types::AssociateEnvironmentOperationsRoleMessage
|
410
|
+
|
402
411
|
AutoScalingGroup.add_member(:name, Shapes::ShapeRef.new(shape: ResourceId, location_name: "Name"))
|
403
412
|
AutoScalingGroup.struct_class = Types::AutoScalingGroup
|
404
413
|
|
@@ -537,6 +546,7 @@ module Aws::ElasticBeanstalk
|
|
537
546
|
CreateEnvironmentMessage.add_member(:platform_arn, Shapes::ShapeRef.new(shape: PlatformArn, location_name: "PlatformArn"))
|
538
547
|
CreateEnvironmentMessage.add_member(:option_settings, Shapes::ShapeRef.new(shape: ConfigurationOptionSettingsList, location_name: "OptionSettings"))
|
539
548
|
CreateEnvironmentMessage.add_member(:options_to_remove, Shapes::ShapeRef.new(shape: OptionsSpecifierList, location_name: "OptionsToRemove"))
|
549
|
+
CreateEnvironmentMessage.add_member(:operations_role, Shapes::ShapeRef.new(shape: OperationsRole, location_name: "OperationsRole"))
|
540
550
|
CreateEnvironmentMessage.struct_class = Types::CreateEnvironmentMessage
|
541
551
|
|
542
552
|
CreatePlatformVersionRequest.add_member(:platform_name, Shapes::ShapeRef.new(shape: PlatformName, required: true, location_name: "PlatformName"))
|
@@ -692,6 +702,9 @@ module Aws::ElasticBeanstalk
|
|
692
702
|
DescribePlatformVersionResult.add_member(:platform_description, Shapes::ShapeRef.new(shape: PlatformDescription, location_name: "PlatformDescription"))
|
693
703
|
DescribePlatformVersionResult.struct_class = Types::DescribePlatformVersionResult
|
694
704
|
|
705
|
+
DisassociateEnvironmentOperationsRoleMessage.add_member(:environment_name, Shapes::ShapeRef.new(shape: EnvironmentName, required: true, location_name: "EnvironmentName"))
|
706
|
+
DisassociateEnvironmentOperationsRoleMessage.struct_class = Types::DisassociateEnvironmentOperationsRoleMessage
|
707
|
+
|
695
708
|
ElasticBeanstalkServiceException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
|
696
709
|
ElasticBeanstalkServiceException.struct_class = Types::ElasticBeanstalkServiceException
|
697
710
|
|
@@ -715,6 +728,7 @@ module Aws::ElasticBeanstalk
|
|
715
728
|
EnvironmentDescription.add_member(:tier, Shapes::ShapeRef.new(shape: EnvironmentTier, location_name: "Tier"))
|
716
729
|
EnvironmentDescription.add_member(:environment_links, Shapes::ShapeRef.new(shape: EnvironmentLinks, location_name: "EnvironmentLinks"))
|
717
730
|
EnvironmentDescription.add_member(:environment_arn, Shapes::ShapeRef.new(shape: EnvironmentArn, location_name: "EnvironmentArn"))
|
731
|
+
EnvironmentDescription.add_member(:operations_role, Shapes::ShapeRef.new(shape: OperationsRole, location_name: "OperationsRole"))
|
718
732
|
EnvironmentDescription.struct_class = Types::EnvironmentDescription
|
719
733
|
|
720
734
|
EnvironmentDescriptionsList.member = Shapes::ShapeRef.new(shape: EnvironmentDescription)
|
@@ -1224,6 +1238,15 @@ module Aws::ElasticBeanstalk
|
|
1224
1238
|
o.errors << Shapes::ShapeRef.new(shape: ManagedActionInvalidStateException)
|
1225
1239
|
end)
|
1226
1240
|
|
1241
|
+
api.add_operation(:associate_environment_operations_role, Seahorse::Model::Operation.new.tap do |o|
|
1242
|
+
o.name = "AssociateEnvironmentOperationsRole"
|
1243
|
+
o.http_method = "POST"
|
1244
|
+
o.http_request_uri = "/"
|
1245
|
+
o.input = Shapes::ShapeRef.new(shape: AssociateEnvironmentOperationsRoleMessage)
|
1246
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
1247
|
+
o.errors << Shapes::ShapeRef.new(shape: InsufficientPrivilegesException)
|
1248
|
+
end)
|
1249
|
+
|
1227
1250
|
api.add_operation(:check_dns_availability, Seahorse::Model::Operation.new.tap do |o|
|
1228
1251
|
o.name = "CheckDNSAvailability"
|
1229
1252
|
o.http_method = "POST"
|
@@ -1417,6 +1440,12 @@ module Aws::ElasticBeanstalk
|
|
1417
1440
|
o.input = Shapes::ShapeRef.new(shape: DescribeEnvironmentManagedActionHistoryRequest)
|
1418
1441
|
o.output = Shapes::ShapeRef.new(shape: DescribeEnvironmentManagedActionHistoryResult)
|
1419
1442
|
o.errors << Shapes::ShapeRef.new(shape: ElasticBeanstalkServiceException)
|
1443
|
+
o[:pager] = Aws::Pager.new(
|
1444
|
+
limit_key: "max_items",
|
1445
|
+
tokens: {
|
1446
|
+
"next_token" => "next_token"
|
1447
|
+
}
|
1448
|
+
)
|
1420
1449
|
end)
|
1421
1450
|
|
1422
1451
|
api.add_operation(:describe_environment_managed_actions, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1479,6 +1508,15 @@ module Aws::ElasticBeanstalk
|
|
1479
1508
|
o.errors << Shapes::ShapeRef.new(shape: ElasticBeanstalkServiceException)
|
1480
1509
|
end)
|
1481
1510
|
|
1511
|
+
api.add_operation(:disassociate_environment_operations_role, Seahorse::Model::Operation.new.tap do |o|
|
1512
|
+
o.name = "DisassociateEnvironmentOperationsRole"
|
1513
|
+
o.http_method = "POST"
|
1514
|
+
o.http_request_uri = "/"
|
1515
|
+
o.input = Shapes::ShapeRef.new(shape: DisassociateEnvironmentOperationsRoleMessage)
|
1516
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
1517
|
+
o.errors << Shapes::ShapeRef.new(shape: InsufficientPrivilegesException)
|
1518
|
+
end)
|
1519
|
+
|
1482
1520
|
api.add_operation(:list_available_solution_stacks, Seahorse::Model::Operation.new.tap do |o|
|
1483
1521
|
o.name = "ListAvailableSolutionStacks"
|
1484
1522
|
o.http_method = "POST"
|
@@ -1509,6 +1547,12 @@ module Aws::ElasticBeanstalk
|
|
1509
1547
|
o.output = Shapes::ShapeRef.new(shape: ListPlatformVersionsResult)
|
1510
1548
|
o.errors << Shapes::ShapeRef.new(shape: InsufficientPrivilegesException)
|
1511
1549
|
o.errors << Shapes::ShapeRef.new(shape: ElasticBeanstalkServiceException)
|
1550
|
+
o[:pager] = Aws::Pager.new(
|
1551
|
+
limit_key: "max_records",
|
1552
|
+
tokens: {
|
1553
|
+
"next_token" => "next_token"
|
1554
|
+
}
|
1555
|
+
)
|
1512
1556
|
end)
|
1513
1557
|
|
1514
1558
|
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|