aws-sdk-elasticloadbalancingv2 1.0.0.rc1 → 1.0.0.rc2
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-elasticloadbalancingv2.rb +2 -2
- data/lib/aws-sdk-elasticloadbalancingv2/client.rb +1634 -1321
- data/lib/aws-sdk-elasticloadbalancingv2/client_api.rb +906 -885
- data/lib/aws-sdk-elasticloadbalancingv2/errors.rb +4 -13
- data/lib/aws-sdk-elasticloadbalancingv2/resource.rb +12 -14
- data/lib/aws-sdk-elasticloadbalancingv2/types.rb +2075 -1796
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: af5c053bcc0272f80625c9c68bebf6d7aeb0290c
|
|
4
|
+
data.tar.gz: 14a797c248f598786f0ff103c1c3c811aaa9622f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 124c9ee14b89f932e604f0398bb489a2f9e773039332099e5a9ed7c2a397d558529519b5569389d1ffcfc22a622979b3d3681a1c23919c7af3a3b822b6babf1f
|
|
7
|
+
data.tar.gz: d4ba145deda9be880ad2053aba1deeba45ce571e5a59fae0c6da7058a20d87459b906a4899d382d2454c7692efb0ecc138b442eedda2dd38c9fa6cb2207afb0a
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# WARNING ABOUT GENERATED CODE
|
|
2
2
|
#
|
|
3
|
-
# This file is generated. See the contributing for
|
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
|
4
4
|
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
|
5
5
|
#
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
|
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-elasticloadbalancingv2/customizations'
|
|
|
42
42
|
# @service
|
|
43
43
|
module Aws::ElasticLoadBalancingV2
|
|
44
44
|
|
|
45
|
-
GEM_VERSION = '1.0.0.
|
|
45
|
+
GEM_VERSION = '1.0.0.rc2'
|
|
46
46
|
|
|
47
47
|
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# WARNING ABOUT GENERATED CODE
|
|
2
2
|
#
|
|
3
|
-
# This file is generated. See the contributing for
|
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
|
4
4
|
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
|
5
5
|
#
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
|
@@ -23,1369 +23,1682 @@ require 'aws-sdk-core/plugins/protocols/query.rb'
|
|
|
23
23
|
|
|
24
24
|
Aws::Plugins::GlobalConfiguration.add_identifier(:elasticloadbalancingv2)
|
|
25
25
|
|
|
26
|
-
module Aws
|
|
27
|
-
|
|
28
|
-
class Client < Seahorse::Client::Base
|
|
26
|
+
module Aws::ElasticLoadBalancingV2
|
|
27
|
+
class Client < Seahorse::Client::Base
|
|
29
28
|
|
|
30
|
-
|
|
29
|
+
include Aws::ClientStubs
|
|
31
30
|
|
|
32
|
-
|
|
31
|
+
@identifier = :elasticloadbalancingv2
|
|
33
32
|
|
|
34
|
-
|
|
33
|
+
set_api(ClientApi::API)
|
|
35
34
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
35
|
+
add_plugin(Seahorse::Client::Plugins::ContentLength)
|
|
36
|
+
add_plugin(Aws::Plugins::CredentialsConfiguration)
|
|
37
|
+
add_plugin(Aws::Plugins::Logging)
|
|
38
|
+
add_plugin(Aws::Plugins::ParamConverter)
|
|
39
|
+
add_plugin(Aws::Plugins::ParamValidator)
|
|
40
|
+
add_plugin(Aws::Plugins::UserAgent)
|
|
41
|
+
add_plugin(Aws::Plugins::HelpfulSocketErrors)
|
|
42
|
+
add_plugin(Aws::Plugins::RetryErrors)
|
|
43
|
+
add_plugin(Aws::Plugins::GlobalConfiguration)
|
|
44
|
+
add_plugin(Aws::Plugins::RegionalEndpoint)
|
|
45
|
+
add_plugin(Aws::Plugins::ResponsePaging)
|
|
46
|
+
add_plugin(Aws::Plugins::StubResponses)
|
|
47
|
+
add_plugin(Aws::Plugins::IdempotencyToken)
|
|
48
|
+
add_plugin(Aws::Plugins::SignatureV4)
|
|
49
|
+
add_plugin(Aws::Plugins::Protocols::Query)
|
|
51
50
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
51
|
+
# @option options [required, Aws::CredentialProvider] :credentials
|
|
52
|
+
# Your AWS credentials. This can be an instance of any one of the
|
|
53
|
+
# following classes:
|
|
54
|
+
#
|
|
55
|
+
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
|
56
|
+
# credentials.
|
|
57
|
+
#
|
|
58
|
+
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
|
59
|
+
# from an EC2 IMDS on an EC2 instance.
|
|
60
|
+
#
|
|
61
|
+
# * `Aws::SharedCredentials` - Used for loading credentials from a
|
|
62
|
+
# shared file, such as `~/.aws/config`.
|
|
63
|
+
#
|
|
64
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
|
65
|
+
#
|
|
66
|
+
# When `:credentials` are not configured directly, the following
|
|
67
|
+
# locations will be searched for credentials:
|
|
68
|
+
#
|
|
69
|
+
# * `Aws.config[:credentials]`
|
|
70
|
+
# * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
|
|
71
|
+
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
|
72
|
+
# * `~/.aws/credentials`
|
|
73
|
+
# * `~/.aws/config`
|
|
74
|
+
# * EC2 IMDS instance profile - When used by default, the timeouts are
|
|
75
|
+
# very aggressive. Construct and pass an instance of
|
|
76
|
+
# `Aws::InstanceProfileCredentails` to enable retries and extended
|
|
77
|
+
# timeouts.
|
|
78
|
+
#
|
|
79
|
+
# @option options [required, String] :region
|
|
80
|
+
# The AWS region to connect to. The configured `:region` is
|
|
81
|
+
# used to determine the service `:endpoint`. When not passed,
|
|
82
|
+
# a default `:region` is search for in the following locations:
|
|
83
|
+
#
|
|
84
|
+
# * `Aws.config[:region]`
|
|
85
|
+
# * `ENV['AWS_REGION']`
|
|
86
|
+
# * `ENV['AMAZON_REGION']`
|
|
87
|
+
# * `ENV['AWS_DEFAULT_REGION']`
|
|
88
|
+
# * `~/.aws/credentials`
|
|
89
|
+
# * `~/.aws/config`
|
|
90
|
+
#
|
|
91
|
+
# @option options [String] :access_key_id
|
|
92
|
+
#
|
|
93
|
+
# @option options [Boolean] :convert_params (true)
|
|
94
|
+
# When `true`, an attempt is made to coerce request parameters into
|
|
95
|
+
# the required types.
|
|
96
|
+
#
|
|
97
|
+
# @option options [String] :endpoint
|
|
98
|
+
# The client endpoint is normally constructed from the `:region`
|
|
99
|
+
# option. You should only configure an `:endpoint` when connecting
|
|
100
|
+
# to test endpoints. This should be avalid HTTP(S) URI.
|
|
101
|
+
#
|
|
102
|
+
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
|
103
|
+
# The log formatter.
|
|
104
|
+
#
|
|
105
|
+
# @option options [Symbol] :log_level (:info)
|
|
106
|
+
# The log level to send messages to the `:logger` at.
|
|
107
|
+
#
|
|
108
|
+
# @option options [Logger] :logger
|
|
109
|
+
# The Logger instance to send log messages to. If this option
|
|
110
|
+
# is not set, logging will be disabled.
|
|
111
|
+
#
|
|
112
|
+
# @option options [String] :profile ("default")
|
|
113
|
+
# Used when loading credentials from the shared credentials file
|
|
114
|
+
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
|
115
|
+
#
|
|
116
|
+
# @option options [Integer] :retry_limit (3)
|
|
117
|
+
# The maximum number of times to retry failed requests. Only
|
|
118
|
+
# ~ 500 level server errors and certain ~ 400 level client errors
|
|
119
|
+
# are retried. Generally, these are throttling errors, data
|
|
120
|
+
# checksum errors, networking errors, timeout errors and auth
|
|
121
|
+
# errors from expired credentials.
|
|
122
|
+
#
|
|
123
|
+
# @option options [String] :secret_access_key
|
|
124
|
+
#
|
|
125
|
+
# @option options [String] :session_token
|
|
126
|
+
#
|
|
127
|
+
# @option options [Boolean] :stub_responses (false)
|
|
128
|
+
# Causes the client to return stubbed responses. By default
|
|
129
|
+
# fake responses are generated and returned. You can specify
|
|
130
|
+
# the response data to return or errors to raise by calling
|
|
131
|
+
# {ClientStubs#stub_responses}. See {ClientStubs} for more information.
|
|
132
|
+
#
|
|
133
|
+
# ** Please note ** When response stubbing is enabled, no HTTP
|
|
134
|
+
# requests are made, and retries are disabled.
|
|
135
|
+
#
|
|
136
|
+
# @option options [Boolean] :validate_params (true)
|
|
137
|
+
# When `true`, request parameters are validated before
|
|
138
|
+
# sending the request.
|
|
139
|
+
#
|
|
140
|
+
def initialize(*args)
|
|
141
|
+
super
|
|
142
|
+
end
|
|
130
143
|
|
|
131
|
-
|
|
144
|
+
# @!group API Operations
|
|
132
145
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
146
|
+
# Adds the specified tags to the specified resource. You can tag your
|
|
147
|
+
# Application Load Balancers and your target groups.
|
|
148
|
+
#
|
|
149
|
+
# Each tag consists of a key and an optional value. If a resource
|
|
150
|
+
# already has a tag with the same key, `AddTags` updates its value.
|
|
151
|
+
#
|
|
152
|
+
# To list the current tags for your resources, use DescribeTags. To
|
|
153
|
+
# remove tags from your resources, use RemoveTags.
|
|
154
|
+
#
|
|
155
|
+
# @option params [required, Array<String>] :resource_arns
|
|
156
|
+
# The Amazon Resource Name (ARN) of the resource.
|
|
157
|
+
#
|
|
158
|
+
# @option params [required, Array<Types::Tag>] :tags
|
|
159
|
+
# The tags. Each resource can have a maximum of 10 tags.
|
|
160
|
+
#
|
|
161
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
162
|
+
#
|
|
163
|
+
# @example Request syntax with placeholder values
|
|
164
|
+
#
|
|
165
|
+
# resp = client.add_tags({
|
|
166
|
+
# resource_arns: ["ResourceArn"], # required
|
|
167
|
+
# tags: [ # required
|
|
168
|
+
# {
|
|
169
|
+
# key: "TagKey", # required
|
|
170
|
+
# value: "TagValue",
|
|
171
|
+
# },
|
|
172
|
+
# ],
|
|
173
|
+
# })
|
|
174
|
+
#
|
|
175
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/AddTags AWS API Documentation
|
|
176
|
+
#
|
|
177
|
+
# @overload add_tags(params = {})
|
|
178
|
+
# @param [Hash] params ({})
|
|
179
|
+
def add_tags(params = {}, options = {})
|
|
180
|
+
req = build_request(:add_tags, params)
|
|
181
|
+
req.send_request(options)
|
|
182
|
+
end
|
|
163
183
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
184
|
+
# Creates a listener for the specified Application Load Balancer.
|
|
185
|
+
#
|
|
186
|
+
# You can create up to 10 listeners per load balancer.
|
|
187
|
+
#
|
|
188
|
+
# To update a listener, use ModifyListener. When you are finished with a
|
|
189
|
+
# listener, you can delete it using DeleteListener. If you are finished
|
|
190
|
+
# with both the listener and the load balancer, you can delete them both
|
|
191
|
+
# using DeleteLoadBalancer.
|
|
192
|
+
#
|
|
193
|
+
# For more information, see [Listeners for Your Application Load
|
|
194
|
+
# Balancers][1] in the *Application Load Balancers Guide*.
|
|
195
|
+
#
|
|
196
|
+
#
|
|
197
|
+
#
|
|
198
|
+
# [1]: http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html
|
|
199
|
+
#
|
|
200
|
+
# @option params [required, String] :load_balancer_arn
|
|
201
|
+
# The Amazon Resource Name (ARN) of the load balancer.
|
|
202
|
+
#
|
|
203
|
+
# @option params [required, String] :protocol
|
|
204
|
+
# The protocol for connections from clients to the load balancer.
|
|
205
|
+
#
|
|
206
|
+
# @option params [required, Integer] :port
|
|
207
|
+
# The port on which the load balancer is listening.
|
|
208
|
+
#
|
|
209
|
+
# @option params [String] :ssl_policy
|
|
210
|
+
# The security policy that defines which ciphers and protocols are
|
|
211
|
+
# supported. The default is the current predefined security policy.
|
|
212
|
+
#
|
|
213
|
+
# @option params [Array<Types::Certificate>] :certificates
|
|
214
|
+
# The SSL server certificate. You must provide exactly one certificate
|
|
215
|
+
# if the protocol is HTTPS.
|
|
216
|
+
#
|
|
217
|
+
# @option params [required, Array<Types::Action>] :default_actions
|
|
218
|
+
# The default action for the listener.
|
|
219
|
+
#
|
|
220
|
+
# @return [Types::CreateListenerOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
221
|
+
#
|
|
222
|
+
# * {Types::CreateListenerOutput#listeners #listeners} => Array<Types::Listener>
|
|
223
|
+
#
|
|
224
|
+
# @example Request syntax with placeholder values
|
|
225
|
+
#
|
|
226
|
+
# resp = client.create_listener({
|
|
227
|
+
# load_balancer_arn: "LoadBalancerArn", # required
|
|
228
|
+
# protocol: "HTTP", # required, accepts HTTP, HTTPS
|
|
229
|
+
# port: 1, # required
|
|
230
|
+
# ssl_policy: "SslPolicyName",
|
|
231
|
+
# certificates: [
|
|
232
|
+
# {
|
|
233
|
+
# certificate_arn: "CertificateArn",
|
|
234
|
+
# },
|
|
235
|
+
# ],
|
|
236
|
+
# default_actions: [ # required
|
|
237
|
+
# {
|
|
238
|
+
# type: "forward", # required, accepts forward
|
|
239
|
+
# target_group_arn: "TargetGroupArn", # required
|
|
240
|
+
# },
|
|
241
|
+
# ],
|
|
242
|
+
# })
|
|
243
|
+
#
|
|
244
|
+
# @example Response structure
|
|
245
|
+
#
|
|
246
|
+
# resp.listeners #=> Array
|
|
247
|
+
# resp.listeners[0].listener_arn #=> String
|
|
248
|
+
# resp.listeners[0].load_balancer_arn #=> String
|
|
249
|
+
# resp.listeners[0].port #=> Integer
|
|
250
|
+
# resp.listeners[0].protocol #=> String, one of "HTTP", "HTTPS"
|
|
251
|
+
# resp.listeners[0].certificates #=> Array
|
|
252
|
+
# resp.listeners[0].certificates[0].certificate_arn #=> String
|
|
253
|
+
# resp.listeners[0].ssl_policy #=> String
|
|
254
|
+
# resp.listeners[0].default_actions #=> Array
|
|
255
|
+
# resp.listeners[0].default_actions[0].type #=> String, one of "forward"
|
|
256
|
+
# resp.listeners[0].default_actions[0].target_group_arn #=> String
|
|
257
|
+
#
|
|
258
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateListener AWS API Documentation
|
|
259
|
+
#
|
|
260
|
+
# @overload create_listener(params = {})
|
|
261
|
+
# @param [Hash] params ({})
|
|
262
|
+
def create_listener(params = {}, options = {})
|
|
263
|
+
req = build_request(:create_listener, params)
|
|
264
|
+
req.send_request(options)
|
|
265
|
+
end
|
|
234
266
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
267
|
+
# Creates an Application Load Balancer.
|
|
268
|
+
#
|
|
269
|
+
# When you create a load balancer, you can specify security groups,
|
|
270
|
+
# subnets, IP address type, and tags. Otherwise, you could do so later
|
|
271
|
+
# using SetSecurityGroups, SetSubnets, SetIpAddressType, and AddTags.
|
|
272
|
+
#
|
|
273
|
+
# To create listeners for your load balancer, use CreateListener. To
|
|
274
|
+
# describe your current load balancers, see DescribeLoadBalancers. When
|
|
275
|
+
# you are finished with a load balancer, you can delete it using
|
|
276
|
+
# DeleteLoadBalancer.
|
|
277
|
+
#
|
|
278
|
+
# You can create up to 20 load balancers per region per account. You can
|
|
279
|
+
# request an increase for the number of load balancers for your account.
|
|
280
|
+
# For more information, see [Limits for Your Application Load
|
|
281
|
+
# Balancer][1] in the *Application Load Balancers Guide*.
|
|
282
|
+
#
|
|
283
|
+
# For more information, see [Application Load Balancers][2] in the
|
|
284
|
+
# *Application Load Balancers Guide*.
|
|
285
|
+
#
|
|
286
|
+
#
|
|
287
|
+
#
|
|
288
|
+
# [1]: http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-limits.html
|
|
289
|
+
# [2]: http://docs.aws.amazon.com/elasticloadbalancing/latest/application/application-load-balancers.html
|
|
290
|
+
#
|
|
291
|
+
# @option params [required, String] :name
|
|
292
|
+
# The name of the load balancer.
|
|
293
|
+
#
|
|
294
|
+
# This name must be unique within your AWS account, can have a maximum
|
|
295
|
+
# of 32 characters, must contain only alphanumeric characters or
|
|
296
|
+
# hyphens, and must not begin or end with a hyphen.
|
|
297
|
+
#
|
|
298
|
+
# @option params [required, Array<String>] :subnets
|
|
299
|
+
# The IDs of the subnets to attach to the load balancer. You can specify
|
|
300
|
+
# only one subnet per Availability Zone. You must specify subnets from
|
|
301
|
+
# at least two Availability Zones.
|
|
302
|
+
#
|
|
303
|
+
# @option params [Array<String>] :security_groups
|
|
304
|
+
# The IDs of the security groups to assign to the load balancer.
|
|
305
|
+
#
|
|
306
|
+
# @option params [String] :scheme
|
|
307
|
+
# The nodes of an Internet-facing load balancer have public IP
|
|
308
|
+
# addresses. The DNS name of an Internet-facing load balancer is
|
|
309
|
+
# publicly resolvable to the public IP addresses of the nodes.
|
|
310
|
+
# Therefore, Internet-facing load balancers can route requests from
|
|
311
|
+
# clients over the Internet.
|
|
312
|
+
#
|
|
313
|
+
# The nodes of an internal load balancer have only private IP addresses.
|
|
314
|
+
# The DNS name of an internal load balancer is publicly resolvable to
|
|
315
|
+
# the private IP addresses of the nodes. Therefore, internal load
|
|
316
|
+
# balancers can only route requests from clients with access to the VPC
|
|
317
|
+
# for the load balancer.
|
|
318
|
+
#
|
|
319
|
+
# The default is an Internet-facing load balancer.
|
|
320
|
+
#
|
|
321
|
+
# @option params [Array<Types::Tag>] :tags
|
|
322
|
+
# One or more tags to assign to the load balancer.
|
|
323
|
+
#
|
|
324
|
+
# @option params [String] :ip_address_type
|
|
325
|
+
# The type of IP addresses used by the subnets for your load balancer.
|
|
326
|
+
# The possible values are `ipv4` (for IPv4 addresses) and `dualstack`
|
|
327
|
+
# (for IPv4 and IPv6 addresses). Internal load balancers must use
|
|
328
|
+
# `ipv4`.
|
|
329
|
+
#
|
|
330
|
+
# @return [Types::CreateLoadBalancerOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
331
|
+
#
|
|
332
|
+
# * {Types::CreateLoadBalancerOutput#load_balancers #load_balancers} => Array<Types::LoadBalancer>
|
|
333
|
+
#
|
|
334
|
+
# @example Request syntax with placeholder values
|
|
335
|
+
#
|
|
336
|
+
# resp = client.create_load_balancer({
|
|
337
|
+
# name: "LoadBalancerName", # required
|
|
338
|
+
# subnets: ["SubnetId"], # required
|
|
339
|
+
# security_groups: ["SecurityGroupId"],
|
|
340
|
+
# scheme: "internet-facing", # accepts internet-facing, internal
|
|
341
|
+
# tags: [
|
|
342
|
+
# {
|
|
343
|
+
# key: "TagKey", # required
|
|
344
|
+
# value: "TagValue",
|
|
345
|
+
# },
|
|
346
|
+
# ],
|
|
347
|
+
# ip_address_type: "ipv4", # accepts ipv4, dualstack
|
|
348
|
+
# })
|
|
349
|
+
#
|
|
350
|
+
# @example Response structure
|
|
351
|
+
#
|
|
352
|
+
# resp.load_balancers #=> Array
|
|
353
|
+
# resp.load_balancers[0].load_balancer_arn #=> String
|
|
354
|
+
# resp.load_balancers[0].dns_name #=> String
|
|
355
|
+
# resp.load_balancers[0].canonical_hosted_zone_id #=> String
|
|
356
|
+
# resp.load_balancers[0].created_time #=> Time
|
|
357
|
+
# resp.load_balancers[0].load_balancer_name #=> String
|
|
358
|
+
# resp.load_balancers[0].scheme #=> String, one of "internet-facing", "internal"
|
|
359
|
+
# resp.load_balancers[0].vpc_id #=> String
|
|
360
|
+
# resp.load_balancers[0].state.code #=> String, one of "active", "provisioning", "failed"
|
|
361
|
+
# resp.load_balancers[0].state.reason #=> String
|
|
362
|
+
# resp.load_balancers[0].type #=> String, one of "application"
|
|
363
|
+
# resp.load_balancers[0].availability_zones #=> Array
|
|
364
|
+
# resp.load_balancers[0].availability_zones[0].zone_name #=> String
|
|
365
|
+
# resp.load_balancers[0].availability_zones[0].subnet_id #=> String
|
|
366
|
+
# resp.load_balancers[0].security_groups #=> Array
|
|
367
|
+
# resp.load_balancers[0].security_groups[0] #=> String
|
|
368
|
+
# resp.load_balancers[0].ip_address_type #=> String, one of "ipv4", "dualstack"
|
|
369
|
+
#
|
|
370
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateLoadBalancer AWS API Documentation
|
|
371
|
+
#
|
|
372
|
+
# @overload create_load_balancer(params = {})
|
|
373
|
+
# @param [Hash] params ({})
|
|
374
|
+
def create_load_balancer(params = {}, options = {})
|
|
375
|
+
req = build_request(:create_load_balancer, params)
|
|
376
|
+
req.send_request(options)
|
|
377
|
+
end
|
|
327
378
|
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
379
|
+
# Creates a rule for the specified listener.
|
|
380
|
+
#
|
|
381
|
+
# Each rule can have one action and one condition. Rules are evaluated
|
|
382
|
+
# in priority order, from the lowest value to the highest value. When
|
|
383
|
+
# the condition for a rule is met, the specified action is taken. If no
|
|
384
|
+
# conditions are met, the default action for the default rule is taken.
|
|
385
|
+
# For more information, see [Listener Rules][1] in the *Application Load
|
|
386
|
+
# Balancers Guide*.
|
|
387
|
+
#
|
|
388
|
+
# To view your current rules, use DescribeRules. To update a rule, use
|
|
389
|
+
# ModifyRule. To set the priorities of your rules, use
|
|
390
|
+
# SetRulePriorities. To delete a rule, use DeleteRule.
|
|
391
|
+
#
|
|
392
|
+
#
|
|
393
|
+
#
|
|
394
|
+
# [1]: http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#listener-rules
|
|
395
|
+
#
|
|
396
|
+
# @option params [required, String] :listener_arn
|
|
397
|
+
# The Amazon Resource Name (ARN) of the listener.
|
|
398
|
+
#
|
|
399
|
+
# @option params [required, Array<Types::RuleCondition>] :conditions
|
|
400
|
+
# A condition. Each condition has the field `path-pattern` and specifies
|
|
401
|
+
# one path pattern. A path pattern is case sensitive, can be up to 128
|
|
402
|
+
# characters in length, and can contain any of the following characters.
|
|
403
|
+
# Note that you can include up to three wildcard characters in a path
|
|
404
|
+
# pattern.
|
|
405
|
+
#
|
|
406
|
+
# * A-Z, a-z, 0-9
|
|
407
|
+
#
|
|
408
|
+
# * \_ - . $ / ~ " ' @ : +
|
|
409
|
+
#
|
|
410
|
+
# * & (using &amp;)
|
|
411
|
+
#
|
|
412
|
+
# * * (matches 0 or more characters)
|
|
413
|
+
#
|
|
414
|
+
# * ? (matches exactly 1 character)
|
|
415
|
+
#
|
|
416
|
+
# @option params [required, Integer] :priority
|
|
417
|
+
# The priority for the rule. A listener can't have multiple rules with
|
|
418
|
+
# the same priority.
|
|
419
|
+
#
|
|
420
|
+
# @option params [required, Array<Types::Action>] :actions
|
|
421
|
+
# An action. Each action has the type `forward` and specifies a target
|
|
422
|
+
# group.
|
|
423
|
+
#
|
|
424
|
+
# @return [Types::CreateRuleOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
425
|
+
#
|
|
426
|
+
# * {Types::CreateRuleOutput#rules #rules} => Array<Types::Rule>
|
|
427
|
+
#
|
|
428
|
+
# @example Request syntax with placeholder values
|
|
429
|
+
#
|
|
430
|
+
# resp = client.create_rule({
|
|
431
|
+
# listener_arn: "ListenerArn", # required
|
|
432
|
+
# conditions: [ # required
|
|
433
|
+
# {
|
|
434
|
+
# field: "ConditionFieldName",
|
|
435
|
+
# values: ["StringValue"],
|
|
436
|
+
# },
|
|
437
|
+
# ],
|
|
438
|
+
# priority: 1, # required
|
|
439
|
+
# actions: [ # required
|
|
440
|
+
# {
|
|
441
|
+
# type: "forward", # required, accepts forward
|
|
442
|
+
# target_group_arn: "TargetGroupArn", # required
|
|
443
|
+
# },
|
|
444
|
+
# ],
|
|
445
|
+
# })
|
|
446
|
+
#
|
|
447
|
+
# @example Response structure
|
|
448
|
+
#
|
|
449
|
+
# resp.rules #=> Array
|
|
450
|
+
# resp.rules[0].rule_arn #=> String
|
|
451
|
+
# resp.rules[0].priority #=> String
|
|
452
|
+
# resp.rules[0].conditions #=> Array
|
|
453
|
+
# resp.rules[0].conditions[0].field #=> String
|
|
454
|
+
# resp.rules[0].conditions[0].values #=> Array
|
|
455
|
+
# resp.rules[0].conditions[0].values[0] #=> String
|
|
456
|
+
# resp.rules[0].actions #=> Array
|
|
457
|
+
# resp.rules[0].actions[0].type #=> String, one of "forward"
|
|
458
|
+
# resp.rules[0].actions[0].target_group_arn #=> String
|
|
459
|
+
# resp.rules[0].is_default #=> Boolean
|
|
460
|
+
#
|
|
461
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateRule AWS API Documentation
|
|
462
|
+
#
|
|
463
|
+
# @overload create_rule(params = {})
|
|
464
|
+
# @param [Hash] params ({})
|
|
465
|
+
def create_rule(params = {}, options = {})
|
|
466
|
+
req = build_request(:create_rule, params)
|
|
467
|
+
req.send_request(options)
|
|
468
|
+
end
|
|
406
469
|
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
470
|
+
# Creates a target group.
|
|
471
|
+
#
|
|
472
|
+
# To register targets with the target group, use RegisterTargets. To
|
|
473
|
+
# update the health check settings for the target group, use
|
|
474
|
+
# ModifyTargetGroup. To monitor the health of targets in the target
|
|
475
|
+
# group, use DescribeTargetHealth.
|
|
476
|
+
#
|
|
477
|
+
# To route traffic to the targets in a target group, specify the target
|
|
478
|
+
# group in an action using CreateListener or CreateRule.
|
|
479
|
+
#
|
|
480
|
+
# To delete a target group, use DeleteTargetGroup.
|
|
481
|
+
#
|
|
482
|
+
# For more information, see [Target Groups for Your Application Load
|
|
483
|
+
# Balancers][1] in the *Application Load Balancers Guide*.
|
|
484
|
+
#
|
|
485
|
+
#
|
|
486
|
+
#
|
|
487
|
+
# [1]: http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-target-groups.html
|
|
488
|
+
#
|
|
489
|
+
# @option params [required, String] :name
|
|
490
|
+
# The name of the target group.
|
|
491
|
+
#
|
|
492
|
+
# @option params [required, String] :protocol
|
|
493
|
+
# The protocol to use for routing traffic to the targets.
|
|
494
|
+
#
|
|
495
|
+
# @option params [required, Integer] :port
|
|
496
|
+
# The port on which the targets receive traffic. This port is used
|
|
497
|
+
# unless you specify a port override when registering the target.
|
|
498
|
+
#
|
|
499
|
+
# @option params [required, String] :vpc_id
|
|
500
|
+
# The identifier of the virtual private cloud (VPC).
|
|
501
|
+
#
|
|
502
|
+
# @option params [String] :health_check_protocol
|
|
503
|
+
# The protocol the load balancer uses when performing health checks on
|
|
504
|
+
# targets. The default is the HTTP protocol.
|
|
505
|
+
#
|
|
506
|
+
# @option params [String] :health_check_port
|
|
507
|
+
# The port the load balancer uses when performing health checks on
|
|
508
|
+
# targets. The default is `traffic-port`, which indicates the port on
|
|
509
|
+
# which each target receives traffic from the load balancer.
|
|
510
|
+
#
|
|
511
|
+
# @option params [String] :health_check_path
|
|
512
|
+
# The ping path that is the destination on the targets for health
|
|
513
|
+
# checks. The default is /.
|
|
514
|
+
#
|
|
515
|
+
# @option params [Integer] :health_check_interval_seconds
|
|
516
|
+
# The approximate amount of time, in seconds, between health checks of
|
|
517
|
+
# an individual target. The default is 30 seconds.
|
|
518
|
+
#
|
|
519
|
+
# @option params [Integer] :health_check_timeout_seconds
|
|
520
|
+
# The amount of time, in seconds, during which no response from a target
|
|
521
|
+
# means a failed health check. The default is 5 seconds.
|
|
522
|
+
#
|
|
523
|
+
# @option params [Integer] :healthy_threshold_count
|
|
524
|
+
# The number of consecutive health checks successes required before
|
|
525
|
+
# considering an unhealthy target healthy. The default is 5.
|
|
526
|
+
#
|
|
527
|
+
# @option params [Integer] :unhealthy_threshold_count
|
|
528
|
+
# The number of consecutive health check failures required before
|
|
529
|
+
# considering a target unhealthy. The default is 2.
|
|
530
|
+
#
|
|
531
|
+
# @option params [Types::Matcher] :matcher
|
|
532
|
+
# The HTTP codes to use when checking for a successful response from a
|
|
533
|
+
# target. The default is 200.
|
|
534
|
+
#
|
|
535
|
+
# @return [Types::CreateTargetGroupOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
536
|
+
#
|
|
537
|
+
# * {Types::CreateTargetGroupOutput#target_groups #target_groups} => Array<Types::TargetGroup>
|
|
538
|
+
#
|
|
539
|
+
# @example Request syntax with placeholder values
|
|
540
|
+
#
|
|
541
|
+
# resp = client.create_target_group({
|
|
542
|
+
# name: "TargetGroupName", # required
|
|
543
|
+
# protocol: "HTTP", # required, accepts HTTP, HTTPS
|
|
544
|
+
# port: 1, # required
|
|
545
|
+
# vpc_id: "VpcId", # required
|
|
546
|
+
# health_check_protocol: "HTTP", # accepts HTTP, HTTPS
|
|
547
|
+
# health_check_port: "HealthCheckPort",
|
|
548
|
+
# health_check_path: "Path",
|
|
549
|
+
# health_check_interval_seconds: 1,
|
|
550
|
+
# health_check_timeout_seconds: 1,
|
|
551
|
+
# healthy_threshold_count: 1,
|
|
552
|
+
# unhealthy_threshold_count: 1,
|
|
553
|
+
# matcher: {
|
|
554
|
+
# http_code: "HttpCode", # required
|
|
555
|
+
# },
|
|
556
|
+
# })
|
|
557
|
+
#
|
|
558
|
+
# @example Response structure
|
|
559
|
+
#
|
|
560
|
+
# resp.target_groups #=> Array
|
|
561
|
+
# resp.target_groups[0].target_group_arn #=> String
|
|
562
|
+
# resp.target_groups[0].target_group_name #=> String
|
|
563
|
+
# resp.target_groups[0].protocol #=> String, one of "HTTP", "HTTPS"
|
|
564
|
+
# resp.target_groups[0].port #=> Integer
|
|
565
|
+
# resp.target_groups[0].vpc_id #=> String
|
|
566
|
+
# resp.target_groups[0].health_check_protocol #=> String, one of "HTTP", "HTTPS"
|
|
567
|
+
# resp.target_groups[0].health_check_port #=> String
|
|
568
|
+
# resp.target_groups[0].health_check_interval_seconds #=> Integer
|
|
569
|
+
# resp.target_groups[0].health_check_timeout_seconds #=> Integer
|
|
570
|
+
# resp.target_groups[0].healthy_threshold_count #=> Integer
|
|
571
|
+
# resp.target_groups[0].unhealthy_threshold_count #=> Integer
|
|
572
|
+
# resp.target_groups[0].health_check_path #=> String
|
|
573
|
+
# resp.target_groups[0].matcher.http_code #=> String
|
|
574
|
+
# resp.target_groups[0].load_balancer_arns #=> Array
|
|
575
|
+
# resp.target_groups[0].load_balancer_arns[0] #=> String
|
|
576
|
+
#
|
|
577
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateTargetGroup AWS API Documentation
|
|
578
|
+
#
|
|
579
|
+
# @overload create_target_group(params = {})
|
|
580
|
+
# @param [Hash] params ({})
|
|
581
|
+
def create_target_group(params = {}, options = {})
|
|
582
|
+
req = build_request(:create_target_group, params)
|
|
583
|
+
req.send_request(options)
|
|
584
|
+
end
|
|
504
585
|
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
586
|
+
# Deletes the specified listener.
|
|
587
|
+
#
|
|
588
|
+
# Alternatively, your listener is deleted when you delete the load
|
|
589
|
+
# balancer it is attached to using DeleteLoadBalancer.
|
|
590
|
+
#
|
|
591
|
+
# @option params [required, String] :listener_arn
|
|
592
|
+
# The Amazon Resource Name (ARN) of the listener.
|
|
593
|
+
#
|
|
594
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
595
|
+
#
|
|
596
|
+
# @example Request syntax with placeholder values
|
|
597
|
+
#
|
|
598
|
+
# resp = client.delete_listener({
|
|
599
|
+
# listener_arn: "ListenerArn", # required
|
|
600
|
+
# })
|
|
601
|
+
#
|
|
602
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteListener AWS API Documentation
|
|
603
|
+
#
|
|
604
|
+
# @overload delete_listener(params = {})
|
|
605
|
+
# @param [Hash] params ({})
|
|
606
|
+
def delete_listener(params = {}, options = {})
|
|
607
|
+
req = build_request(:delete_listener, params)
|
|
608
|
+
req.send_request(options)
|
|
609
|
+
end
|
|
523
610
|
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
611
|
+
# Deletes the specified Application Load Balancer and its attached
|
|
612
|
+
# listeners.
|
|
613
|
+
#
|
|
614
|
+
# You can't delete a load balancer if deletion protection is enabled.
|
|
615
|
+
# If the load balancer does not exist or has already been deleted, the
|
|
616
|
+
# call succeeds.
|
|
617
|
+
#
|
|
618
|
+
# Deleting a load balancer does not affect its registered targets. For
|
|
619
|
+
# example, your EC2 instances continue to run and are still registered
|
|
620
|
+
# to their target groups. If you no longer need these EC2 instances, you
|
|
621
|
+
# can stop or terminate them.
|
|
622
|
+
#
|
|
623
|
+
# @option params [required, String] :load_balancer_arn
|
|
624
|
+
# The Amazon Resource Name (ARN) of the load balancer.
|
|
625
|
+
#
|
|
626
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
627
|
+
#
|
|
628
|
+
# @example Request syntax with placeholder values
|
|
629
|
+
#
|
|
630
|
+
# resp = client.delete_load_balancer({
|
|
631
|
+
# load_balancer_arn: "LoadBalancerArn", # required
|
|
632
|
+
# })
|
|
633
|
+
#
|
|
634
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteLoadBalancer AWS API Documentation
|
|
635
|
+
#
|
|
636
|
+
# @overload delete_load_balancer(params = {})
|
|
637
|
+
# @param [Hash] params ({})
|
|
638
|
+
def delete_load_balancer(params = {}, options = {})
|
|
639
|
+
req = build_request(:delete_load_balancer, params)
|
|
640
|
+
req.send_request(options)
|
|
641
|
+
end
|
|
549
642
|
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
643
|
+
# Deletes the specified rule.
|
|
644
|
+
#
|
|
645
|
+
# @option params [required, String] :rule_arn
|
|
646
|
+
# The Amazon Resource Name (ARN) of the rule.
|
|
647
|
+
#
|
|
648
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
649
|
+
#
|
|
650
|
+
# @example Request syntax with placeholder values
|
|
651
|
+
#
|
|
652
|
+
# resp = client.delete_rule({
|
|
653
|
+
# rule_arn: "RuleArn", # required
|
|
654
|
+
# })
|
|
655
|
+
#
|
|
656
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteRule AWS API Documentation
|
|
657
|
+
#
|
|
658
|
+
# @overload delete_rule(params = {})
|
|
659
|
+
# @param [Hash] params ({})
|
|
660
|
+
def delete_rule(params = {}, options = {})
|
|
661
|
+
req = build_request(:delete_rule, params)
|
|
662
|
+
req.send_request(options)
|
|
663
|
+
end
|
|
565
664
|
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
665
|
+
# Deletes the specified target group.
|
|
666
|
+
#
|
|
667
|
+
# You can delete a target group if it is not referenced by any actions.
|
|
668
|
+
# Deleting a target group also deletes any associated health checks.
|
|
669
|
+
#
|
|
670
|
+
# @option params [required, String] :target_group_arn
|
|
671
|
+
# The Amazon Resource Name (ARN) of the target group.
|
|
672
|
+
#
|
|
673
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
674
|
+
#
|
|
675
|
+
# @example Request syntax with placeholder values
|
|
676
|
+
#
|
|
677
|
+
# resp = client.delete_target_group({
|
|
678
|
+
# target_group_arn: "TargetGroupArn", # required
|
|
679
|
+
# })
|
|
680
|
+
#
|
|
681
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteTargetGroup AWS API Documentation
|
|
682
|
+
#
|
|
683
|
+
# @overload delete_target_group(params = {})
|
|
684
|
+
# @param [Hash] params ({})
|
|
685
|
+
def delete_target_group(params = {}, options = {})
|
|
686
|
+
req = build_request(:delete_target_group, params)
|
|
687
|
+
req.send_request(options)
|
|
688
|
+
end
|
|
584
689
|
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
690
|
+
# Deregisters the specified targets from the specified target group.
|
|
691
|
+
# After the targets are deregistered, they no longer receive traffic
|
|
692
|
+
# from the load balancer.
|
|
693
|
+
#
|
|
694
|
+
# @option params [required, String] :target_group_arn
|
|
695
|
+
# The Amazon Resource Name (ARN) of the target group.
|
|
696
|
+
#
|
|
697
|
+
# @option params [required, Array<Types::TargetDescription>] :targets
|
|
698
|
+
# The targets. If you specified a port override when you registered a
|
|
699
|
+
# target, you must specify both the target ID and the port when you
|
|
700
|
+
# deregister it.
|
|
701
|
+
#
|
|
702
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
703
|
+
#
|
|
704
|
+
# @example Request syntax with placeholder values
|
|
705
|
+
#
|
|
706
|
+
# resp = client.deregister_targets({
|
|
707
|
+
# target_group_arn: "TargetGroupArn", # required
|
|
708
|
+
# targets: [ # required
|
|
709
|
+
# {
|
|
710
|
+
# id: "TargetId", # required
|
|
711
|
+
# port: 1,
|
|
712
|
+
# },
|
|
713
|
+
# ],
|
|
714
|
+
# })
|
|
715
|
+
#
|
|
716
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeregisterTargets AWS API Documentation
|
|
717
|
+
#
|
|
718
|
+
# @overload deregister_targets(params = {})
|
|
719
|
+
# @param [Hash] params ({})
|
|
720
|
+
def deregister_targets(params = {}, options = {})
|
|
721
|
+
req = build_request(:deregister_targets, params)
|
|
722
|
+
req.send_request(options)
|
|
723
|
+
end
|
|
612
724
|
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
725
|
+
# Describes the specified listeners or the listeners for the specified
|
|
726
|
+
# Application Load Balancer. You must specify either a load balancer or
|
|
727
|
+
# one or more listeners.
|
|
728
|
+
#
|
|
729
|
+
# @option params [String] :load_balancer_arn
|
|
730
|
+
# The Amazon Resource Name (ARN) of the load balancer.
|
|
731
|
+
#
|
|
732
|
+
# @option params [Array<String>] :listener_arns
|
|
733
|
+
# The Amazon Resource Names (ARN) of the listeners.
|
|
734
|
+
#
|
|
735
|
+
# @option params [String] :marker
|
|
736
|
+
# The marker for the next set of results. (You received this marker from
|
|
737
|
+
# a previous call.)
|
|
738
|
+
#
|
|
739
|
+
# @option params [Integer] :page_size
|
|
740
|
+
# The maximum number of results to return with this call.
|
|
741
|
+
#
|
|
742
|
+
# @return [Types::DescribeListenersOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
743
|
+
#
|
|
744
|
+
# * {Types::DescribeListenersOutput#listeners #listeners} => Array<Types::Listener>
|
|
745
|
+
# * {Types::DescribeListenersOutput#next_marker #next_marker} => String
|
|
746
|
+
#
|
|
747
|
+
# @example Request syntax with placeholder values
|
|
748
|
+
#
|
|
749
|
+
# resp = client.describe_listeners({
|
|
750
|
+
# load_balancer_arn: "LoadBalancerArn",
|
|
751
|
+
# listener_arns: ["ListenerArn"],
|
|
752
|
+
# marker: "Marker",
|
|
753
|
+
# page_size: 1,
|
|
754
|
+
# })
|
|
755
|
+
#
|
|
756
|
+
# @example Response structure
|
|
757
|
+
#
|
|
758
|
+
# resp.listeners #=> Array
|
|
759
|
+
# resp.listeners[0].listener_arn #=> String
|
|
760
|
+
# resp.listeners[0].load_balancer_arn #=> String
|
|
761
|
+
# resp.listeners[0].port #=> Integer
|
|
762
|
+
# resp.listeners[0].protocol #=> String, one of "HTTP", "HTTPS"
|
|
763
|
+
# resp.listeners[0].certificates #=> Array
|
|
764
|
+
# resp.listeners[0].certificates[0].certificate_arn #=> String
|
|
765
|
+
# resp.listeners[0].ssl_policy #=> String
|
|
766
|
+
# resp.listeners[0].default_actions #=> Array
|
|
767
|
+
# resp.listeners[0].default_actions[0].type #=> String, one of "forward"
|
|
768
|
+
# resp.listeners[0].default_actions[0].target_group_arn #=> String
|
|
769
|
+
# resp.next_marker #=> String
|
|
770
|
+
#
|
|
771
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeListeners AWS API Documentation
|
|
772
|
+
#
|
|
773
|
+
# @overload describe_listeners(params = {})
|
|
774
|
+
# @param [Hash] params ({})
|
|
775
|
+
def describe_listeners(params = {}, options = {})
|
|
776
|
+
req = build_request(:describe_listeners, params)
|
|
777
|
+
req.send_request(options)
|
|
778
|
+
end
|
|
657
779
|
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
780
|
+
# Describes the attributes for the specified Application Load Balancer.
|
|
781
|
+
#
|
|
782
|
+
# @option params [required, String] :load_balancer_arn
|
|
783
|
+
# The Amazon Resource Name (ARN) of the load balancer.
|
|
784
|
+
#
|
|
785
|
+
# @return [Types::DescribeLoadBalancerAttributesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
786
|
+
#
|
|
787
|
+
# * {Types::DescribeLoadBalancerAttributesOutput#attributes #attributes} => Array<Types::LoadBalancerAttribute>
|
|
788
|
+
#
|
|
789
|
+
# @example Request syntax with placeholder values
|
|
790
|
+
#
|
|
791
|
+
# resp = client.describe_load_balancer_attributes({
|
|
792
|
+
# load_balancer_arn: "LoadBalancerArn", # required
|
|
793
|
+
# })
|
|
794
|
+
#
|
|
795
|
+
# @example Response structure
|
|
796
|
+
#
|
|
797
|
+
# resp.attributes #=> Array
|
|
798
|
+
# resp.attributes[0].key #=> String
|
|
799
|
+
# resp.attributes[0].value #=> String
|
|
800
|
+
#
|
|
801
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeLoadBalancerAttributes AWS API Documentation
|
|
802
|
+
#
|
|
803
|
+
# @overload describe_load_balancer_attributes(params = {})
|
|
804
|
+
# @param [Hash] params ({})
|
|
805
|
+
def describe_load_balancer_attributes(params = {}, options = {})
|
|
806
|
+
req = build_request(:describe_load_balancer_attributes, params)
|
|
807
|
+
req.send_request(options)
|
|
808
|
+
end
|
|
680
809
|
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
810
|
+
# Describes the specified Application Load Balancers or all of your
|
|
811
|
+
# Application Load Balancers.
|
|
812
|
+
#
|
|
813
|
+
# To describe the listeners for a load balancer, use DescribeListeners.
|
|
814
|
+
# To describe the attributes for a load balancer, use
|
|
815
|
+
# DescribeLoadBalancerAttributes.
|
|
816
|
+
#
|
|
817
|
+
# @option params [Array<String>] :load_balancer_arns
|
|
818
|
+
# The Amazon Resource Names (ARN) of the load balancers.
|
|
819
|
+
#
|
|
820
|
+
# @option params [Array<String>] :names
|
|
821
|
+
# The names of the load balancers.
|
|
822
|
+
#
|
|
823
|
+
# @option params [String] :marker
|
|
824
|
+
# The marker for the next set of results. (You received this marker from
|
|
825
|
+
# a previous call.)
|
|
826
|
+
#
|
|
827
|
+
# @option params [Integer] :page_size
|
|
828
|
+
# The maximum number of results to return with this call.
|
|
829
|
+
#
|
|
830
|
+
# @return [Types::DescribeLoadBalancersOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
831
|
+
#
|
|
832
|
+
# * {Types::DescribeLoadBalancersOutput#load_balancers #load_balancers} => Array<Types::LoadBalancer>
|
|
833
|
+
# * {Types::DescribeLoadBalancersOutput#next_marker #next_marker} => String
|
|
834
|
+
#
|
|
835
|
+
# @example Request syntax with placeholder values
|
|
836
|
+
#
|
|
837
|
+
# resp = client.describe_load_balancers({
|
|
838
|
+
# load_balancer_arns: ["LoadBalancerArn"],
|
|
839
|
+
# names: ["LoadBalancerName"],
|
|
840
|
+
# marker: "Marker",
|
|
841
|
+
# page_size: 1,
|
|
842
|
+
# })
|
|
843
|
+
#
|
|
844
|
+
# @example Response structure
|
|
845
|
+
#
|
|
846
|
+
# resp.load_balancers #=> Array
|
|
847
|
+
# resp.load_balancers[0].load_balancer_arn #=> String
|
|
848
|
+
# resp.load_balancers[0].dns_name #=> String
|
|
849
|
+
# resp.load_balancers[0].canonical_hosted_zone_id #=> String
|
|
850
|
+
# resp.load_balancers[0].created_time #=> Time
|
|
851
|
+
# resp.load_balancers[0].load_balancer_name #=> String
|
|
852
|
+
# resp.load_balancers[0].scheme #=> String, one of "internet-facing", "internal"
|
|
853
|
+
# resp.load_balancers[0].vpc_id #=> String
|
|
854
|
+
# resp.load_balancers[0].state.code #=> String, one of "active", "provisioning", "failed"
|
|
855
|
+
# resp.load_balancers[0].state.reason #=> String
|
|
856
|
+
# resp.load_balancers[0].type #=> String, one of "application"
|
|
857
|
+
# resp.load_balancers[0].availability_zones #=> Array
|
|
858
|
+
# resp.load_balancers[0].availability_zones[0].zone_name #=> String
|
|
859
|
+
# resp.load_balancers[0].availability_zones[0].subnet_id #=> String
|
|
860
|
+
# resp.load_balancers[0].security_groups #=> Array
|
|
861
|
+
# resp.load_balancers[0].security_groups[0] #=> String
|
|
862
|
+
# resp.load_balancers[0].ip_address_type #=> String, one of "ipv4", "dualstack"
|
|
863
|
+
# resp.next_marker #=> String
|
|
864
|
+
#
|
|
865
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeLoadBalancers AWS API Documentation
|
|
866
|
+
#
|
|
867
|
+
# @overload describe_load_balancers(params = {})
|
|
868
|
+
# @param [Hash] params ({})
|
|
869
|
+
def describe_load_balancers(params = {}, options = {})
|
|
870
|
+
req = build_request(:describe_load_balancers, params)
|
|
871
|
+
req.send_request(options)
|
|
872
|
+
end
|
|
733
873
|
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
874
|
+
# Describes the specified rules or the rules for the specified listener.
|
|
875
|
+
# You must specify either a listener or one or more rules.
|
|
876
|
+
#
|
|
877
|
+
# @option params [String] :listener_arn
|
|
878
|
+
# The Amazon Resource Name (ARN) of the listener.
|
|
879
|
+
#
|
|
880
|
+
# @option params [Array<String>] :rule_arns
|
|
881
|
+
# The Amazon Resource Names (ARN) of the rules.
|
|
882
|
+
#
|
|
883
|
+
# @return [Types::DescribeRulesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
884
|
+
#
|
|
885
|
+
# * {Types::DescribeRulesOutput#rules #rules} => Array<Types::Rule>
|
|
886
|
+
#
|
|
887
|
+
# @example Request syntax with placeholder values
|
|
888
|
+
#
|
|
889
|
+
# resp = client.describe_rules({
|
|
890
|
+
# listener_arn: "ListenerArn",
|
|
891
|
+
# rule_arns: ["RuleArn"],
|
|
892
|
+
# })
|
|
893
|
+
#
|
|
894
|
+
# @example Response structure
|
|
895
|
+
#
|
|
896
|
+
# resp.rules #=> Array
|
|
897
|
+
# resp.rules[0].rule_arn #=> String
|
|
898
|
+
# resp.rules[0].priority #=> String
|
|
899
|
+
# resp.rules[0].conditions #=> Array
|
|
900
|
+
# resp.rules[0].conditions[0].field #=> String
|
|
901
|
+
# resp.rules[0].conditions[0].values #=> Array
|
|
902
|
+
# resp.rules[0].conditions[0].values[0] #=> String
|
|
903
|
+
# resp.rules[0].actions #=> Array
|
|
904
|
+
# resp.rules[0].actions[0].type #=> String, one of "forward"
|
|
905
|
+
# resp.rules[0].actions[0].target_group_arn #=> String
|
|
906
|
+
# resp.rules[0].is_default #=> Boolean
|
|
907
|
+
#
|
|
908
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeRules AWS API Documentation
|
|
909
|
+
#
|
|
910
|
+
# @overload describe_rules(params = {})
|
|
911
|
+
# @param [Hash] params ({})
|
|
912
|
+
def describe_rules(params = {}, options = {})
|
|
913
|
+
req = build_request(:describe_rules, params)
|
|
914
|
+
req.send_request(options)
|
|
915
|
+
end
|
|
768
916
|
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
917
|
+
# Describes the specified policies or all policies used for SSL
|
|
918
|
+
# negotiation.
|
|
919
|
+
#
|
|
920
|
+
# Note that the only supported policy at this time is
|
|
921
|
+
# ELBSecurityPolicy-2015-05.
|
|
922
|
+
#
|
|
923
|
+
# @option params [Array<String>] :names
|
|
924
|
+
# The names of the policies.
|
|
925
|
+
#
|
|
926
|
+
# @option params [String] :marker
|
|
927
|
+
# The marker for the next set of results. (You received this marker from
|
|
928
|
+
# a previous call.)
|
|
929
|
+
#
|
|
930
|
+
# @option params [Integer] :page_size
|
|
931
|
+
# The maximum number of results to return with this call.
|
|
932
|
+
#
|
|
933
|
+
# @return [Types::DescribeSSLPoliciesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
934
|
+
#
|
|
935
|
+
# * {Types::DescribeSSLPoliciesOutput#ssl_policies #ssl_policies} => Array<Types::SslPolicy>
|
|
936
|
+
# * {Types::DescribeSSLPoliciesOutput#next_marker #next_marker} => String
|
|
937
|
+
#
|
|
938
|
+
# @example Request syntax with placeholder values
|
|
939
|
+
#
|
|
940
|
+
# resp = client.describe_ssl_policies({
|
|
941
|
+
# names: ["SslPolicyName"],
|
|
942
|
+
# marker: "Marker",
|
|
943
|
+
# page_size: 1,
|
|
944
|
+
# })
|
|
945
|
+
#
|
|
946
|
+
# @example Response structure
|
|
947
|
+
#
|
|
948
|
+
# resp.ssl_policies #=> Array
|
|
949
|
+
# resp.ssl_policies[0].ssl_protocols #=> Array
|
|
950
|
+
# resp.ssl_policies[0].ssl_protocols[0] #=> String
|
|
951
|
+
# resp.ssl_policies[0].ciphers #=> Array
|
|
952
|
+
# resp.ssl_policies[0].ciphers[0].name #=> String
|
|
953
|
+
# resp.ssl_policies[0].ciphers[0].priority #=> Integer
|
|
954
|
+
# resp.ssl_policies[0].name #=> String
|
|
955
|
+
# resp.next_marker #=> String
|
|
956
|
+
#
|
|
957
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeSSLPolicies AWS API Documentation
|
|
958
|
+
#
|
|
959
|
+
# @overload describe_ssl_policies(params = {})
|
|
960
|
+
# @param [Hash] params ({})
|
|
961
|
+
def describe_ssl_policies(params = {}, options = {})
|
|
962
|
+
req = build_request(:describe_ssl_policies, params)
|
|
963
|
+
req.send_request(options)
|
|
964
|
+
end
|
|
808
965
|
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
966
|
+
# Describes the tags for the specified resources.
|
|
967
|
+
#
|
|
968
|
+
# @option params [required, Array<String>] :resource_arns
|
|
969
|
+
# The Amazon Resource Names (ARN) of the resources.
|
|
970
|
+
#
|
|
971
|
+
# @return [Types::DescribeTagsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
972
|
+
#
|
|
973
|
+
# * {Types::DescribeTagsOutput#tag_descriptions #tag_descriptions} => Array<Types::TagDescription>
|
|
974
|
+
#
|
|
975
|
+
# @example Request syntax with placeholder values
|
|
976
|
+
#
|
|
977
|
+
# resp = client.describe_tags({
|
|
978
|
+
# resource_arns: ["ResourceArn"], # required
|
|
979
|
+
# })
|
|
980
|
+
#
|
|
981
|
+
# @example Response structure
|
|
982
|
+
#
|
|
983
|
+
# resp.tag_descriptions #=> Array
|
|
984
|
+
# resp.tag_descriptions[0].resource_arn #=> String
|
|
985
|
+
# resp.tag_descriptions[0].tags #=> Array
|
|
986
|
+
# resp.tag_descriptions[0].tags[0].key #=> String
|
|
987
|
+
# resp.tag_descriptions[0].tags[0].value #=> String
|
|
988
|
+
#
|
|
989
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTags AWS API Documentation
|
|
990
|
+
#
|
|
991
|
+
# @overload describe_tags(params = {})
|
|
992
|
+
# @param [Hash] params ({})
|
|
993
|
+
def describe_tags(params = {}, options = {})
|
|
994
|
+
req = build_request(:describe_tags, params)
|
|
995
|
+
req.send_request(options)
|
|
996
|
+
end
|
|
833
997
|
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
998
|
+
# Describes the attributes for the specified target group.
|
|
999
|
+
#
|
|
1000
|
+
# @option params [required, String] :target_group_arn
|
|
1001
|
+
# The Amazon Resource Name (ARN) of the target group.
|
|
1002
|
+
#
|
|
1003
|
+
# @return [Types::DescribeTargetGroupAttributesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1004
|
+
#
|
|
1005
|
+
# * {Types::DescribeTargetGroupAttributesOutput#attributes #attributes} => Array<Types::TargetGroupAttribute>
|
|
1006
|
+
#
|
|
1007
|
+
# @example Request syntax with placeholder values
|
|
1008
|
+
#
|
|
1009
|
+
# resp = client.describe_target_group_attributes({
|
|
1010
|
+
# target_group_arn: "TargetGroupArn", # required
|
|
1011
|
+
# })
|
|
1012
|
+
#
|
|
1013
|
+
# @example Response structure
|
|
1014
|
+
#
|
|
1015
|
+
# resp.attributes #=> Array
|
|
1016
|
+
# resp.attributes[0].key #=> String
|
|
1017
|
+
# resp.attributes[0].value #=> String
|
|
1018
|
+
#
|
|
1019
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetGroupAttributes AWS API Documentation
|
|
1020
|
+
#
|
|
1021
|
+
# @overload describe_target_group_attributes(params = {})
|
|
1022
|
+
# @param [Hash] params ({})
|
|
1023
|
+
def describe_target_group_attributes(params = {}, options = {})
|
|
1024
|
+
req = build_request(:describe_target_group_attributes, params)
|
|
1025
|
+
req.send_request(options)
|
|
1026
|
+
end
|
|
856
1027
|
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
1028
|
+
# Describes the specified target groups or all of your target groups. By
|
|
1029
|
+
# default, all target groups are described. Alternatively, you can
|
|
1030
|
+
# specify one of the following to filter the results: the ARN of the
|
|
1031
|
+
# load balancer, the names of one or more target groups, or the ARNs of
|
|
1032
|
+
# one or more target groups.
|
|
1033
|
+
#
|
|
1034
|
+
# To describe the targets for a target group, use DescribeTargetHealth.
|
|
1035
|
+
# To describe the attributes of a target group, use
|
|
1036
|
+
# DescribeTargetGroupAttributes.
|
|
1037
|
+
#
|
|
1038
|
+
# @option params [String] :load_balancer_arn
|
|
1039
|
+
# The Amazon Resource Name (ARN) of the load balancer.
|
|
1040
|
+
#
|
|
1041
|
+
# @option params [Array<String>] :target_group_arns
|
|
1042
|
+
# The Amazon Resource Names (ARN) of the target groups.
|
|
1043
|
+
#
|
|
1044
|
+
# @option params [Array<String>] :names
|
|
1045
|
+
# The names of the target groups.
|
|
1046
|
+
#
|
|
1047
|
+
# @option params [String] :marker
|
|
1048
|
+
# The marker for the next set of results. (You received this marker from
|
|
1049
|
+
# a previous call.)
|
|
1050
|
+
#
|
|
1051
|
+
# @option params [Integer] :page_size
|
|
1052
|
+
# The maximum number of results to return with this call.
|
|
1053
|
+
#
|
|
1054
|
+
# @return [Types::DescribeTargetGroupsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1055
|
+
#
|
|
1056
|
+
# * {Types::DescribeTargetGroupsOutput#target_groups #target_groups} => Array<Types::TargetGroup>
|
|
1057
|
+
# * {Types::DescribeTargetGroupsOutput#next_marker #next_marker} => String
|
|
1058
|
+
#
|
|
1059
|
+
# @example Request syntax with placeholder values
|
|
1060
|
+
#
|
|
1061
|
+
# resp = client.describe_target_groups({
|
|
1062
|
+
# load_balancer_arn: "LoadBalancerArn",
|
|
1063
|
+
# target_group_arns: ["TargetGroupArn"],
|
|
1064
|
+
# names: ["TargetGroupName"],
|
|
1065
|
+
# marker: "Marker",
|
|
1066
|
+
# page_size: 1,
|
|
1067
|
+
# })
|
|
1068
|
+
#
|
|
1069
|
+
# @example Response structure
|
|
1070
|
+
#
|
|
1071
|
+
# resp.target_groups #=> Array
|
|
1072
|
+
# resp.target_groups[0].target_group_arn #=> String
|
|
1073
|
+
# resp.target_groups[0].target_group_name #=> String
|
|
1074
|
+
# resp.target_groups[0].protocol #=> String, one of "HTTP", "HTTPS"
|
|
1075
|
+
# resp.target_groups[0].port #=> Integer
|
|
1076
|
+
# resp.target_groups[0].vpc_id #=> String
|
|
1077
|
+
# resp.target_groups[0].health_check_protocol #=> String, one of "HTTP", "HTTPS"
|
|
1078
|
+
# resp.target_groups[0].health_check_port #=> String
|
|
1079
|
+
# resp.target_groups[0].health_check_interval_seconds #=> Integer
|
|
1080
|
+
# resp.target_groups[0].health_check_timeout_seconds #=> Integer
|
|
1081
|
+
# resp.target_groups[0].healthy_threshold_count #=> Integer
|
|
1082
|
+
# resp.target_groups[0].unhealthy_threshold_count #=> Integer
|
|
1083
|
+
# resp.target_groups[0].health_check_path #=> String
|
|
1084
|
+
# resp.target_groups[0].matcher.http_code #=> String
|
|
1085
|
+
# resp.target_groups[0].load_balancer_arns #=> Array
|
|
1086
|
+
# resp.target_groups[0].load_balancer_arns[0] #=> String
|
|
1087
|
+
# resp.next_marker #=> String
|
|
1088
|
+
#
|
|
1089
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetGroups AWS API Documentation
|
|
1090
|
+
#
|
|
1091
|
+
# @overload describe_target_groups(params = {})
|
|
1092
|
+
# @param [Hash] params ({})
|
|
1093
|
+
def describe_target_groups(params = {}, options = {})
|
|
1094
|
+
req = build_request(:describe_target_groups, params)
|
|
1095
|
+
req.send_request(options)
|
|
1096
|
+
end
|
|
915
1097
|
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
1098
|
+
# Describes the health of the specified targets or all of your targets.
|
|
1099
|
+
#
|
|
1100
|
+
# @option params [required, String] :target_group_arn
|
|
1101
|
+
# The Amazon Resource Name (ARN) of the target group.
|
|
1102
|
+
#
|
|
1103
|
+
# @option params [Array<Types::TargetDescription>] :targets
|
|
1104
|
+
# The targets.
|
|
1105
|
+
#
|
|
1106
|
+
# @return [Types::DescribeTargetHealthOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1107
|
+
#
|
|
1108
|
+
# * {Types::DescribeTargetHealthOutput#target_health_descriptions #target_health_descriptions} => Array<Types::TargetHealthDescription>
|
|
1109
|
+
#
|
|
1110
|
+
# @example Request syntax with placeholder values
|
|
1111
|
+
#
|
|
1112
|
+
# resp = client.describe_target_health({
|
|
1113
|
+
# target_group_arn: "TargetGroupArn", # required
|
|
1114
|
+
# targets: [
|
|
1115
|
+
# {
|
|
1116
|
+
# id: "TargetId", # required
|
|
1117
|
+
# port: 1,
|
|
1118
|
+
# },
|
|
1119
|
+
# ],
|
|
1120
|
+
# })
|
|
1121
|
+
#
|
|
1122
|
+
# @example Response structure
|
|
1123
|
+
#
|
|
1124
|
+
# resp.target_health_descriptions #=> Array
|
|
1125
|
+
# resp.target_health_descriptions[0].target.id #=> String
|
|
1126
|
+
# resp.target_health_descriptions[0].target.port #=> Integer
|
|
1127
|
+
# resp.target_health_descriptions[0].health_check_port #=> String
|
|
1128
|
+
# resp.target_health_descriptions[0].target_health.state #=> String, one of "initial", "healthy", "unhealthy", "unused", "draining"
|
|
1129
|
+
# resp.target_health_descriptions[0].target_health.reason #=> String, one of "Elb.RegistrationInProgress", "Elb.InitialHealthChecking", "Target.ResponseCodeMismatch", "Target.Timeout", "Target.FailedHealthChecks", "Target.NotRegistered", "Target.NotInUse", "Target.DeregistrationInProgress", "Target.InvalidState", "Elb.InternalError"
|
|
1130
|
+
# resp.target_health_descriptions[0].target_health.description #=> String
|
|
1131
|
+
#
|
|
1132
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetHealth AWS API Documentation
|
|
1133
|
+
#
|
|
1134
|
+
# @overload describe_target_health(params = {})
|
|
1135
|
+
# @param [Hash] params ({})
|
|
1136
|
+
def describe_target_health(params = {}, options = {})
|
|
1137
|
+
req = build_request(:describe_target_health, params)
|
|
1138
|
+
req.send_request(options)
|
|
1139
|
+
end
|
|
950
1140
|
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1141
|
+
# Modifies the specified properties of the specified listener.
|
|
1142
|
+
#
|
|
1143
|
+
# Any properties that you do not specify retain their current values.
|
|
1144
|
+
# However, changing the protocol from HTTPS to HTTP removes the security
|
|
1145
|
+
# policy and SSL certificate properties. If you change the protocol from
|
|
1146
|
+
# HTTP to HTTPS, you must add the security policy.
|
|
1147
|
+
#
|
|
1148
|
+
# @option params [required, String] :listener_arn
|
|
1149
|
+
# The Amazon Resource Name (ARN) of the listener.
|
|
1150
|
+
#
|
|
1151
|
+
# @option params [Integer] :port
|
|
1152
|
+
# The port for connections from clients to the load balancer.
|
|
1153
|
+
#
|
|
1154
|
+
# @option params [String] :protocol
|
|
1155
|
+
# The protocol for connections from clients to the load balancer.
|
|
1156
|
+
#
|
|
1157
|
+
# @option params [String] :ssl_policy
|
|
1158
|
+
# The security policy that defines which ciphers and protocols are
|
|
1159
|
+
# supported.
|
|
1160
|
+
#
|
|
1161
|
+
# @option params [Array<Types::Certificate>] :certificates
|
|
1162
|
+
# The SSL server certificate.
|
|
1163
|
+
#
|
|
1164
|
+
# @option params [Array<Types::Action>] :default_actions
|
|
1165
|
+
# The default actions.
|
|
1166
|
+
#
|
|
1167
|
+
# @return [Types::ModifyListenerOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1168
|
+
#
|
|
1169
|
+
# * {Types::ModifyListenerOutput#listeners #listeners} => Array<Types::Listener>
|
|
1170
|
+
#
|
|
1171
|
+
# @example Request syntax with placeholder values
|
|
1172
|
+
#
|
|
1173
|
+
# resp = client.modify_listener({
|
|
1174
|
+
# listener_arn: "ListenerArn", # required
|
|
1175
|
+
# port: 1,
|
|
1176
|
+
# protocol: "HTTP", # accepts HTTP, HTTPS
|
|
1177
|
+
# ssl_policy: "SslPolicyName",
|
|
1178
|
+
# certificates: [
|
|
1179
|
+
# {
|
|
1180
|
+
# certificate_arn: "CertificateArn",
|
|
1181
|
+
# },
|
|
1182
|
+
# ],
|
|
1183
|
+
# default_actions: [
|
|
1184
|
+
# {
|
|
1185
|
+
# type: "forward", # required, accepts forward
|
|
1186
|
+
# target_group_arn: "TargetGroupArn", # required
|
|
1187
|
+
# },
|
|
1188
|
+
# ],
|
|
1189
|
+
# })
|
|
1190
|
+
#
|
|
1191
|
+
# @example Response structure
|
|
1192
|
+
#
|
|
1193
|
+
# resp.listeners #=> Array
|
|
1194
|
+
# resp.listeners[0].listener_arn #=> String
|
|
1195
|
+
# resp.listeners[0].load_balancer_arn #=> String
|
|
1196
|
+
# resp.listeners[0].port #=> Integer
|
|
1197
|
+
# resp.listeners[0].protocol #=> String, one of "HTTP", "HTTPS"
|
|
1198
|
+
# resp.listeners[0].certificates #=> Array
|
|
1199
|
+
# resp.listeners[0].certificates[0].certificate_arn #=> String
|
|
1200
|
+
# resp.listeners[0].ssl_policy #=> String
|
|
1201
|
+
# resp.listeners[0].default_actions #=> Array
|
|
1202
|
+
# resp.listeners[0].default_actions[0].type #=> String, one of "forward"
|
|
1203
|
+
# resp.listeners[0].default_actions[0].target_group_arn #=> String
|
|
1204
|
+
#
|
|
1205
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyListener AWS API Documentation
|
|
1206
|
+
#
|
|
1207
|
+
# @overload modify_listener(params = {})
|
|
1208
|
+
# @param [Hash] params ({})
|
|
1209
|
+
def modify_listener(params = {}, options = {})
|
|
1210
|
+
req = build_request(:modify_listener, params)
|
|
1211
|
+
req.send_request(options)
|
|
1212
|
+
end
|
|
1011
1213
|
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1214
|
+
# Modifies the specified attributes of the specified Application Load
|
|
1215
|
+
# Balancer.
|
|
1216
|
+
#
|
|
1217
|
+
# If any of the specified attributes can't be modified as requested,
|
|
1218
|
+
# the call fails. Any existing attributes that you do not modify retain
|
|
1219
|
+
# their current values.
|
|
1220
|
+
#
|
|
1221
|
+
# @option params [required, String] :load_balancer_arn
|
|
1222
|
+
# The Amazon Resource Name (ARN) of the load balancer.
|
|
1223
|
+
#
|
|
1224
|
+
# @option params [required, Array<Types::LoadBalancerAttribute>] :attributes
|
|
1225
|
+
# The load balancer attributes.
|
|
1226
|
+
#
|
|
1227
|
+
# @return [Types::ModifyLoadBalancerAttributesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1228
|
+
#
|
|
1229
|
+
# * {Types::ModifyLoadBalancerAttributesOutput#attributes #attributes} => Array<Types::LoadBalancerAttribute>
|
|
1230
|
+
#
|
|
1231
|
+
# @example Request syntax with placeholder values
|
|
1232
|
+
#
|
|
1233
|
+
# resp = client.modify_load_balancer_attributes({
|
|
1234
|
+
# load_balancer_arn: "LoadBalancerArn", # required
|
|
1235
|
+
# attributes: [ # required
|
|
1236
|
+
# {
|
|
1237
|
+
# key: "LoadBalancerAttributeKey",
|
|
1238
|
+
# value: "LoadBalancerAttributeValue",
|
|
1239
|
+
# },
|
|
1240
|
+
# ],
|
|
1241
|
+
# })
|
|
1242
|
+
#
|
|
1243
|
+
# @example Response structure
|
|
1244
|
+
#
|
|
1245
|
+
# resp.attributes #=> Array
|
|
1246
|
+
# resp.attributes[0].key #=> String
|
|
1247
|
+
# resp.attributes[0].value #=> String
|
|
1248
|
+
#
|
|
1249
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyLoadBalancerAttributes AWS API Documentation
|
|
1250
|
+
#
|
|
1251
|
+
# @overload modify_load_balancer_attributes(params = {})
|
|
1252
|
+
# @param [Hash] params ({})
|
|
1253
|
+
def modify_load_balancer_attributes(params = {}, options = {})
|
|
1254
|
+
req = build_request(:modify_load_balancer_attributes, params)
|
|
1255
|
+
req.send_request(options)
|
|
1256
|
+
end
|
|
1047
1257
|
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1258
|
+
# Modifies the specified rule.
|
|
1259
|
+
#
|
|
1260
|
+
# Any existing properties that you do not modify retain their current
|
|
1261
|
+
# values.
|
|
1262
|
+
#
|
|
1263
|
+
# To modify the default action, use ModifyListener.
|
|
1264
|
+
#
|
|
1265
|
+
# @option params [required, String] :rule_arn
|
|
1266
|
+
# The Amazon Resource Name (ARN) of the rule.
|
|
1267
|
+
#
|
|
1268
|
+
# @option params [Array<Types::RuleCondition>] :conditions
|
|
1269
|
+
# The conditions.
|
|
1270
|
+
#
|
|
1271
|
+
# @option params [Array<Types::Action>] :actions
|
|
1272
|
+
# The actions.
|
|
1273
|
+
#
|
|
1274
|
+
# @return [Types::ModifyRuleOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1275
|
+
#
|
|
1276
|
+
# * {Types::ModifyRuleOutput#rules #rules} => Array<Types::Rule>
|
|
1277
|
+
#
|
|
1278
|
+
# @example Request syntax with placeholder values
|
|
1279
|
+
#
|
|
1280
|
+
# resp = client.modify_rule({
|
|
1281
|
+
# rule_arn: "RuleArn", # required
|
|
1282
|
+
# conditions: [
|
|
1283
|
+
# {
|
|
1284
|
+
# field: "ConditionFieldName",
|
|
1285
|
+
# values: ["StringValue"],
|
|
1286
|
+
# },
|
|
1287
|
+
# ],
|
|
1288
|
+
# actions: [
|
|
1289
|
+
# {
|
|
1290
|
+
# type: "forward", # required, accepts forward
|
|
1291
|
+
# target_group_arn: "TargetGroupArn", # required
|
|
1292
|
+
# },
|
|
1293
|
+
# ],
|
|
1294
|
+
# })
|
|
1295
|
+
#
|
|
1296
|
+
# @example Response structure
|
|
1297
|
+
#
|
|
1298
|
+
# resp.rules #=> Array
|
|
1299
|
+
# resp.rules[0].rule_arn #=> String
|
|
1300
|
+
# resp.rules[0].priority #=> String
|
|
1301
|
+
# resp.rules[0].conditions #=> Array
|
|
1302
|
+
# resp.rules[0].conditions[0].field #=> String
|
|
1303
|
+
# resp.rules[0].conditions[0].values #=> Array
|
|
1304
|
+
# resp.rules[0].conditions[0].values[0] #=> String
|
|
1305
|
+
# resp.rules[0].actions #=> Array
|
|
1306
|
+
# resp.rules[0].actions[0].type #=> String, one of "forward"
|
|
1307
|
+
# resp.rules[0].actions[0].target_group_arn #=> String
|
|
1308
|
+
# resp.rules[0].is_default #=> Boolean
|
|
1309
|
+
#
|
|
1310
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyRule AWS API Documentation
|
|
1311
|
+
#
|
|
1312
|
+
# @overload modify_rule(params = {})
|
|
1313
|
+
# @param [Hash] params ({})
|
|
1314
|
+
def modify_rule(params = {}, options = {})
|
|
1315
|
+
req = build_request(:modify_rule, params)
|
|
1316
|
+
req.send_request(options)
|
|
1317
|
+
end
|
|
1099
1318
|
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1319
|
+
# Modifies the health checks used when evaluating the health state of
|
|
1320
|
+
# the targets in the specified target group.
|
|
1321
|
+
#
|
|
1322
|
+
# To monitor the health of the targets, use DescribeTargetHealth.
|
|
1323
|
+
#
|
|
1324
|
+
# @option params [required, String] :target_group_arn
|
|
1325
|
+
# The Amazon Resource Name (ARN) of the target group.
|
|
1326
|
+
#
|
|
1327
|
+
# @option params [String] :health_check_protocol
|
|
1328
|
+
# The protocol to use to connect with the target.
|
|
1329
|
+
#
|
|
1330
|
+
# @option params [String] :health_check_port
|
|
1331
|
+
# The port to use to connect with the target.
|
|
1332
|
+
#
|
|
1333
|
+
# @option params [String] :health_check_path
|
|
1334
|
+
# The ping path that is the destination for the health check request.
|
|
1335
|
+
#
|
|
1336
|
+
# @option params [Integer] :health_check_interval_seconds
|
|
1337
|
+
# The approximate amount of time, in seconds, between health checks of
|
|
1338
|
+
# an individual target.
|
|
1339
|
+
#
|
|
1340
|
+
# @option params [Integer] :health_check_timeout_seconds
|
|
1341
|
+
# The amount of time, in seconds, during which no response means a
|
|
1342
|
+
# failed health check.
|
|
1343
|
+
#
|
|
1344
|
+
# @option params [Integer] :healthy_threshold_count
|
|
1345
|
+
# The number of consecutive health checks successes required before
|
|
1346
|
+
# considering an unhealthy target healthy.
|
|
1347
|
+
#
|
|
1348
|
+
# @option params [Integer] :unhealthy_threshold_count
|
|
1349
|
+
# The number of consecutive health check failures required before
|
|
1350
|
+
# considering the target unhealthy.
|
|
1351
|
+
#
|
|
1352
|
+
# @option params [Types::Matcher] :matcher
|
|
1353
|
+
# The HTTP codes to use when checking for a successful response from a
|
|
1354
|
+
# target.
|
|
1355
|
+
#
|
|
1356
|
+
# @return [Types::ModifyTargetGroupOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1357
|
+
#
|
|
1358
|
+
# * {Types::ModifyTargetGroupOutput#target_groups #target_groups} => Array<Types::TargetGroup>
|
|
1359
|
+
#
|
|
1360
|
+
# @example Request syntax with placeholder values
|
|
1361
|
+
#
|
|
1362
|
+
# resp = client.modify_target_group({
|
|
1363
|
+
# target_group_arn: "TargetGroupArn", # required
|
|
1364
|
+
# health_check_protocol: "HTTP", # accepts HTTP, HTTPS
|
|
1365
|
+
# health_check_port: "HealthCheckPort",
|
|
1366
|
+
# health_check_path: "Path",
|
|
1367
|
+
# health_check_interval_seconds: 1,
|
|
1368
|
+
# health_check_timeout_seconds: 1,
|
|
1369
|
+
# healthy_threshold_count: 1,
|
|
1370
|
+
# unhealthy_threshold_count: 1,
|
|
1371
|
+
# matcher: {
|
|
1372
|
+
# http_code: "HttpCode", # required
|
|
1373
|
+
# },
|
|
1374
|
+
# })
|
|
1375
|
+
#
|
|
1376
|
+
# @example Response structure
|
|
1377
|
+
#
|
|
1378
|
+
# resp.target_groups #=> Array
|
|
1379
|
+
# resp.target_groups[0].target_group_arn #=> String
|
|
1380
|
+
# resp.target_groups[0].target_group_name #=> String
|
|
1381
|
+
# resp.target_groups[0].protocol #=> String, one of "HTTP", "HTTPS"
|
|
1382
|
+
# resp.target_groups[0].port #=> Integer
|
|
1383
|
+
# resp.target_groups[0].vpc_id #=> String
|
|
1384
|
+
# resp.target_groups[0].health_check_protocol #=> String, one of "HTTP", "HTTPS"
|
|
1385
|
+
# resp.target_groups[0].health_check_port #=> String
|
|
1386
|
+
# resp.target_groups[0].health_check_interval_seconds #=> Integer
|
|
1387
|
+
# resp.target_groups[0].health_check_timeout_seconds #=> Integer
|
|
1388
|
+
# resp.target_groups[0].healthy_threshold_count #=> Integer
|
|
1389
|
+
# resp.target_groups[0].unhealthy_threshold_count #=> Integer
|
|
1390
|
+
# resp.target_groups[0].health_check_path #=> String
|
|
1391
|
+
# resp.target_groups[0].matcher.http_code #=> String
|
|
1392
|
+
# resp.target_groups[0].load_balancer_arns #=> Array
|
|
1393
|
+
# resp.target_groups[0].load_balancer_arns[0] #=> String
|
|
1394
|
+
#
|
|
1395
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyTargetGroup AWS API Documentation
|
|
1396
|
+
#
|
|
1397
|
+
# @overload modify_target_group(params = {})
|
|
1398
|
+
# @param [Hash] params ({})
|
|
1399
|
+
def modify_target_group(params = {}, options = {})
|
|
1400
|
+
req = build_request(:modify_target_group, params)
|
|
1401
|
+
req.send_request(options)
|
|
1402
|
+
end
|
|
1169
1403
|
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1404
|
+
# Modifies the specified attributes of the specified target group.
|
|
1405
|
+
#
|
|
1406
|
+
# @option params [required, String] :target_group_arn
|
|
1407
|
+
# The Amazon Resource Name (ARN) of the target group.
|
|
1408
|
+
#
|
|
1409
|
+
# @option params [required, Array<Types::TargetGroupAttribute>] :attributes
|
|
1410
|
+
# The attributes.
|
|
1411
|
+
#
|
|
1412
|
+
# @return [Types::ModifyTargetGroupAttributesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1413
|
+
#
|
|
1414
|
+
# * {Types::ModifyTargetGroupAttributesOutput#attributes #attributes} => Array<Types::TargetGroupAttribute>
|
|
1415
|
+
#
|
|
1416
|
+
# @example Request syntax with placeholder values
|
|
1417
|
+
#
|
|
1418
|
+
# resp = client.modify_target_group_attributes({
|
|
1419
|
+
# target_group_arn: "TargetGroupArn", # required
|
|
1420
|
+
# attributes: [ # required
|
|
1421
|
+
# {
|
|
1422
|
+
# key: "TargetGroupAttributeKey",
|
|
1423
|
+
# value: "TargetGroupAttributeValue",
|
|
1424
|
+
# },
|
|
1425
|
+
# ],
|
|
1426
|
+
# })
|
|
1427
|
+
#
|
|
1428
|
+
# @example Response structure
|
|
1429
|
+
#
|
|
1430
|
+
# resp.attributes #=> Array
|
|
1431
|
+
# resp.attributes[0].key #=> String
|
|
1432
|
+
# resp.attributes[0].value #=> String
|
|
1433
|
+
#
|
|
1434
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyTargetGroupAttributes AWS API Documentation
|
|
1435
|
+
#
|
|
1436
|
+
# @overload modify_target_group_attributes(params = {})
|
|
1437
|
+
# @param [Hash] params ({})
|
|
1438
|
+
def modify_target_group_attributes(params = {}, options = {})
|
|
1439
|
+
req = build_request(:modify_target_group_attributes, params)
|
|
1440
|
+
req.send_request(options)
|
|
1441
|
+
end
|
|
1200
1442
|
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1443
|
+
# Registers the specified targets with the specified target group.
|
|
1444
|
+
#
|
|
1445
|
+
# By default, the load balancer routes requests to registered targets
|
|
1446
|
+
# using the protocol and port number for the target group.
|
|
1447
|
+
# Alternatively, you can override the port for a target when you
|
|
1448
|
+
# register it.
|
|
1449
|
+
#
|
|
1450
|
+
# The target must be in the virtual private cloud (VPC) that you
|
|
1451
|
+
# specified for the target group. If the target is an EC2 instance, it
|
|
1452
|
+
# must be in the `running` state when you register it.
|
|
1453
|
+
#
|
|
1454
|
+
# To remove a target from a target group, use DeregisterTargets.
|
|
1455
|
+
#
|
|
1456
|
+
# @option params [required, String] :target_group_arn
|
|
1457
|
+
# The Amazon Resource Name (ARN) of the target group.
|
|
1458
|
+
#
|
|
1459
|
+
# @option params [required, Array<Types::TargetDescription>] :targets
|
|
1460
|
+
# The targets. The default port for a target is the port for the target
|
|
1461
|
+
# group. You can specify a port override. If a target is already
|
|
1462
|
+
# registered, you can register it again using a different port.
|
|
1463
|
+
#
|
|
1464
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1465
|
+
#
|
|
1466
|
+
# @example Request syntax with placeholder values
|
|
1467
|
+
#
|
|
1468
|
+
# resp = client.register_targets({
|
|
1469
|
+
# target_group_arn: "TargetGroupArn", # required
|
|
1470
|
+
# targets: [ # required
|
|
1471
|
+
# {
|
|
1472
|
+
# id: "TargetId", # required
|
|
1473
|
+
# port: 1,
|
|
1474
|
+
# },
|
|
1475
|
+
# ],
|
|
1476
|
+
# })
|
|
1477
|
+
#
|
|
1478
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RegisterTargets AWS API Documentation
|
|
1479
|
+
#
|
|
1480
|
+
# @overload register_targets(params = {})
|
|
1481
|
+
# @param [Hash] params ({})
|
|
1482
|
+
def register_targets(params = {}, options = {})
|
|
1483
|
+
req = build_request(:register_targets, params)
|
|
1484
|
+
req.send_request(options)
|
|
1485
|
+
end
|
|
1237
1486
|
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1487
|
+
# Removes the specified tags from the specified resource.
|
|
1488
|
+
#
|
|
1489
|
+
# To list the current tags for your resources, use DescribeTags.
|
|
1490
|
+
#
|
|
1491
|
+
# @option params [required, Array<String>] :resource_arns
|
|
1492
|
+
# The Amazon Resource Name (ARN) of the resource.
|
|
1493
|
+
#
|
|
1494
|
+
# @option params [required, Array<String>] :tag_keys
|
|
1495
|
+
# The tag keys for the tags to remove.
|
|
1496
|
+
#
|
|
1497
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1498
|
+
#
|
|
1499
|
+
# @example Request syntax with placeholder values
|
|
1500
|
+
#
|
|
1501
|
+
# resp = client.remove_tags({
|
|
1502
|
+
# resource_arns: ["ResourceArn"], # required
|
|
1503
|
+
# tag_keys: ["TagKey"], # required
|
|
1504
|
+
# })
|
|
1505
|
+
#
|
|
1506
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RemoveTags AWS API Documentation
|
|
1507
|
+
#
|
|
1508
|
+
# @overload remove_tags(params = {})
|
|
1509
|
+
# @param [Hash] params ({})
|
|
1510
|
+
def remove_tags(params = {}, options = {})
|
|
1511
|
+
req = build_request(:remove_tags, params)
|
|
1512
|
+
req.send_request(options)
|
|
1513
|
+
end
|
|
1258
1514
|
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
# @param [Hash] params ({})
|
|
1294
|
-
def set_rule_priorities(params = {}, options = {})
|
|
1295
|
-
req = build_request(:set_rule_priorities, params)
|
|
1296
|
-
req.send_request(options)
|
|
1297
|
-
end
|
|
1515
|
+
# Sets the type of IP addresses used by the subnets of the specified
|
|
1516
|
+
# Application Load Balancer.
|
|
1517
|
+
#
|
|
1518
|
+
# @option params [required, String] :load_balancer_arn
|
|
1519
|
+
# The Amazon Resource Name (ARN) of the load balancer.
|
|
1520
|
+
#
|
|
1521
|
+
# @option params [required, String] :ip_address_type
|
|
1522
|
+
# The IP address type. The possible values are `ipv4` (for IPv4
|
|
1523
|
+
# addresses) and `dualstack` (for IPv4 and IPv6 addresses). Internal
|
|
1524
|
+
# load balancers must use `ipv4`.
|
|
1525
|
+
#
|
|
1526
|
+
# @return [Types::SetIpAddressTypeOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1527
|
+
#
|
|
1528
|
+
# * {Types::SetIpAddressTypeOutput#ip_address_type #ip_address_type} => String
|
|
1529
|
+
#
|
|
1530
|
+
# @example Request syntax with placeholder values
|
|
1531
|
+
#
|
|
1532
|
+
# resp = client.set_ip_address_type({
|
|
1533
|
+
# load_balancer_arn: "LoadBalancerArn", # required
|
|
1534
|
+
# ip_address_type: "ipv4", # required, accepts ipv4, dualstack
|
|
1535
|
+
# })
|
|
1536
|
+
#
|
|
1537
|
+
# @example Response structure
|
|
1538
|
+
#
|
|
1539
|
+
# resp.ip_address_type #=> String, one of "ipv4", "dualstack"
|
|
1540
|
+
#
|
|
1541
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetIpAddressType AWS API Documentation
|
|
1542
|
+
#
|
|
1543
|
+
# @overload set_ip_address_type(params = {})
|
|
1544
|
+
# @param [Hash] params ({})
|
|
1545
|
+
def set_ip_address_type(params = {}, options = {})
|
|
1546
|
+
req = build_request(:set_ip_address_type, params)
|
|
1547
|
+
req.send_request(options)
|
|
1548
|
+
end
|
|
1298
1549
|
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1550
|
+
# Sets the priorities of the specified rules.
|
|
1551
|
+
#
|
|
1552
|
+
# You can reorder the rules as long as there are no priority conflicts
|
|
1553
|
+
# in the new order. Any existing rules that you do not specify retain
|
|
1554
|
+
# their current priority.
|
|
1555
|
+
#
|
|
1556
|
+
# @option params [required, Array<Types::RulePriorityPair>] :rule_priorities
|
|
1557
|
+
# The rule priorities.
|
|
1558
|
+
#
|
|
1559
|
+
# @return [Types::SetRulePrioritiesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1560
|
+
#
|
|
1561
|
+
# * {Types::SetRulePrioritiesOutput#rules #rules} => Array<Types::Rule>
|
|
1562
|
+
#
|
|
1563
|
+
# @example Request syntax with placeholder values
|
|
1564
|
+
#
|
|
1565
|
+
# resp = client.set_rule_priorities({
|
|
1566
|
+
# rule_priorities: [ # required
|
|
1567
|
+
# {
|
|
1568
|
+
# rule_arn: "RuleArn",
|
|
1569
|
+
# priority: 1,
|
|
1570
|
+
# },
|
|
1571
|
+
# ],
|
|
1572
|
+
# })
|
|
1573
|
+
#
|
|
1574
|
+
# @example Response structure
|
|
1575
|
+
#
|
|
1576
|
+
# resp.rules #=> Array
|
|
1577
|
+
# resp.rules[0].rule_arn #=> String
|
|
1578
|
+
# resp.rules[0].priority #=> String
|
|
1579
|
+
# resp.rules[0].conditions #=> Array
|
|
1580
|
+
# resp.rules[0].conditions[0].field #=> String
|
|
1581
|
+
# resp.rules[0].conditions[0].values #=> Array
|
|
1582
|
+
# resp.rules[0].conditions[0].values[0] #=> String
|
|
1583
|
+
# resp.rules[0].actions #=> Array
|
|
1584
|
+
# resp.rules[0].actions[0].type #=> String, one of "forward"
|
|
1585
|
+
# resp.rules[0].actions[0].target_group_arn #=> String
|
|
1586
|
+
# resp.rules[0].is_default #=> Boolean
|
|
1587
|
+
#
|
|
1588
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetRulePriorities AWS API Documentation
|
|
1589
|
+
#
|
|
1590
|
+
# @overload set_rule_priorities(params = {})
|
|
1591
|
+
# @param [Hash] params ({})
|
|
1592
|
+
def set_rule_priorities(params = {}, options = {})
|
|
1593
|
+
req = build_request(:set_rule_priorities, params)
|
|
1594
|
+
req.send_request(options)
|
|
1595
|
+
end
|
|
1325
1596
|
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1597
|
+
# Associates the specified security groups with the specified load
|
|
1598
|
+
# balancer. The specified security groups override the previously
|
|
1599
|
+
# associated security groups.
|
|
1600
|
+
#
|
|
1601
|
+
# @option params [required, String] :load_balancer_arn
|
|
1602
|
+
# The Amazon Resource Name (ARN) of the load balancer.
|
|
1603
|
+
#
|
|
1604
|
+
# @option params [required, Array<String>] :security_groups
|
|
1605
|
+
# The IDs of the security groups.
|
|
1606
|
+
#
|
|
1607
|
+
# @return [Types::SetSecurityGroupsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1608
|
+
#
|
|
1609
|
+
# * {Types::SetSecurityGroupsOutput#security_group_ids #security_group_ids} => Array<String>
|
|
1610
|
+
#
|
|
1611
|
+
# @example Request syntax with placeholder values
|
|
1612
|
+
#
|
|
1613
|
+
# resp = client.set_security_groups({
|
|
1614
|
+
# load_balancer_arn: "LoadBalancerArn", # required
|
|
1615
|
+
# security_groups: ["SecurityGroupId"], # required
|
|
1616
|
+
# })
|
|
1617
|
+
#
|
|
1618
|
+
# @example Response structure
|
|
1619
|
+
#
|
|
1620
|
+
# resp.security_group_ids #=> Array
|
|
1621
|
+
# resp.security_group_ids[0] #=> String
|
|
1622
|
+
#
|
|
1623
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetSecurityGroups AWS API Documentation
|
|
1624
|
+
#
|
|
1625
|
+
# @overload set_security_groups(params = {})
|
|
1626
|
+
# @param [Hash] params ({})
|
|
1627
|
+
def set_security_groups(params = {}, options = {})
|
|
1628
|
+
req = build_request(:set_security_groups, params)
|
|
1629
|
+
req.send_request(options)
|
|
1630
|
+
end
|
|
1354
1631
|
|
|
1355
|
-
|
|
1632
|
+
# Enables the Availability Zone for the specified subnets for the
|
|
1633
|
+
# specified load balancer. The specified subnets replace the previously
|
|
1634
|
+
# enabled subnets.
|
|
1635
|
+
#
|
|
1636
|
+
# @option params [required, String] :load_balancer_arn
|
|
1637
|
+
# The Amazon Resource Name (ARN) of the load balancer.
|
|
1638
|
+
#
|
|
1639
|
+
# @option params [required, Array<String>] :subnets
|
|
1640
|
+
# The IDs of the subnets. You must specify at least two subnets. You can
|
|
1641
|
+
# add only one subnet per Availability Zone.
|
|
1642
|
+
#
|
|
1643
|
+
# @return [Types::SetSubnetsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1644
|
+
#
|
|
1645
|
+
# * {Types::SetSubnetsOutput#availability_zones #availability_zones} => Array<Types::AvailabilityZone>
|
|
1646
|
+
#
|
|
1647
|
+
# @example Request syntax with placeholder values
|
|
1648
|
+
#
|
|
1649
|
+
# resp = client.set_subnets({
|
|
1650
|
+
# load_balancer_arn: "LoadBalancerArn", # required
|
|
1651
|
+
# subnets: ["SubnetId"], # required
|
|
1652
|
+
# })
|
|
1653
|
+
#
|
|
1654
|
+
# @example Response structure
|
|
1655
|
+
#
|
|
1656
|
+
# resp.availability_zones #=> Array
|
|
1657
|
+
# resp.availability_zones[0].zone_name #=> String
|
|
1658
|
+
# resp.availability_zones[0].subnet_id #=> String
|
|
1659
|
+
#
|
|
1660
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetSubnets AWS API Documentation
|
|
1661
|
+
#
|
|
1662
|
+
# @overload set_subnets(params = {})
|
|
1663
|
+
# @param [Hash] params ({})
|
|
1664
|
+
def set_subnets(params = {}, options = {})
|
|
1665
|
+
req = build_request(:set_subnets, params)
|
|
1666
|
+
req.send_request(options)
|
|
1667
|
+
end
|
|
1356
1668
|
|
|
1357
|
-
|
|
1358
|
-
# @api private
|
|
1359
|
-
def build_request(operation_name, params = {})
|
|
1360
|
-
handlers = @handlers.for(operation_name)
|
|
1361
|
-
context = Seahorse::Client::RequestContext.new(
|
|
1362
|
-
operation_name: operation_name,
|
|
1363
|
-
operation: config.api.operation(operation_name),
|
|
1364
|
-
client: self,
|
|
1365
|
-
params: params,
|
|
1366
|
-
config: config)
|
|
1367
|
-
context[:gem_name] = 'aws-sdk-elasticloadbalancingv2'
|
|
1368
|
-
context[:gem_version] = '1.0.0.rc1'
|
|
1369
|
-
Seahorse::Client::Request.new(handlers, context)
|
|
1370
|
-
end
|
|
1669
|
+
# @!endgroup
|
|
1371
1670
|
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1671
|
+
# @param params ({})
|
|
1672
|
+
# @api private
|
|
1673
|
+
def build_request(operation_name, params = {})
|
|
1674
|
+
handlers = @handlers.for(operation_name)
|
|
1675
|
+
context = Seahorse::Client::RequestContext.new(
|
|
1676
|
+
operation_name: operation_name,
|
|
1677
|
+
operation: config.api.operation(operation_name),
|
|
1678
|
+
client: self,
|
|
1679
|
+
params: params,
|
|
1680
|
+
config: config)
|
|
1681
|
+
context[:gem_name] = 'aws-sdk-elasticloadbalancingv2'
|
|
1682
|
+
context[:gem_version] = '1.0.0.rc2'
|
|
1683
|
+
Seahorse::Client::Request.new(handlers, context)
|
|
1684
|
+
end
|
|
1377
1685
|
|
|
1378
|
-
|
|
1686
|
+
# @api private
|
|
1687
|
+
# @deprecated
|
|
1688
|
+
def waiter_names
|
|
1689
|
+
[]
|
|
1690
|
+
end
|
|
1379
1691
|
|
|
1380
|
-
|
|
1381
|
-
attr_reader :identifier
|
|
1692
|
+
class << self
|
|
1382
1693
|
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
Errors
|
|
1386
|
-
end
|
|
1694
|
+
# @api private
|
|
1695
|
+
attr_reader :identifier
|
|
1387
1696
|
|
|
1697
|
+
# @api private
|
|
1698
|
+
def errors_module
|
|
1699
|
+
Errors
|
|
1388
1700
|
end
|
|
1701
|
+
|
|
1389
1702
|
end
|
|
1390
1703
|
end
|
|
1391
1704
|
end
|