aws-sdk-elbproxy 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-elbproxy/client.rb +2304 -0
- data/lib/aws-sdk-elbproxy/client_api.rb +783 -0
- data/lib/aws-sdk-elbproxy/customizations.rb +0 -0
- data/lib/aws-sdk-elbproxy/endpoint_parameters.rb +59 -0
- data/lib/aws-sdk-elbproxy/endpoint_provider.rb +32 -0
- data/lib/aws-sdk-elbproxy/endpoints.rb +20 -0
- data/lib/aws-sdk-elbproxy/errors.rb +214 -0
- data/lib/aws-sdk-elbproxy/plugins/endpoints.rb +77 -0
- data/lib/aws-sdk-elbproxy/resource.rb +26 -0
- data/lib/aws-sdk-elbproxy/types.rb +1605 -0
- data/lib/aws-sdk-elbproxy/waiters.rb +225 -0
- data/lib/aws-sdk-elbproxy.rb +62 -0
- data/sig/client.rbs +405 -0
- data/sig/errors.rbs +47 -0
- data/sig/resource.rbs +86 -0
- data/sig/types.rbs +492 -0
- data/sig/waiters.rbs +44 -0
- metadata +97 -0
|
@@ -0,0 +1,2304 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
|
4
|
+
#
|
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
|
7
|
+
#
|
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
|
9
|
+
|
|
10
|
+
require 'seahorse/client/plugins/content_length'
|
|
11
|
+
require 'aws-sdk-core/plugins/credentials_configuration'
|
|
12
|
+
require 'aws-sdk-core/plugins/logging'
|
|
13
|
+
require 'aws-sdk-core/plugins/param_converter'
|
|
14
|
+
require 'aws-sdk-core/plugins/param_validator'
|
|
15
|
+
require 'aws-sdk-core/plugins/user_agent'
|
|
16
|
+
require 'aws-sdk-core/plugins/helpful_socket_errors'
|
|
17
|
+
require 'aws-sdk-core/plugins/retry_errors'
|
|
18
|
+
require 'aws-sdk-core/plugins/global_configuration'
|
|
19
|
+
require 'aws-sdk-core/plugins/regional_endpoint'
|
|
20
|
+
require 'aws-sdk-core/plugins/endpoint_discovery'
|
|
21
|
+
require 'aws-sdk-core/plugins/endpoint_pattern'
|
|
22
|
+
require 'aws-sdk-core/plugins/response_paging'
|
|
23
|
+
require 'aws-sdk-core/plugins/stub_responses'
|
|
24
|
+
require 'aws-sdk-core/plugins/idempotency_token'
|
|
25
|
+
require 'aws-sdk-core/plugins/invocation_id'
|
|
26
|
+
require 'aws-sdk-core/plugins/jsonvalue_converter'
|
|
27
|
+
require 'aws-sdk-core/plugins/client_metrics_plugin'
|
|
28
|
+
require 'aws-sdk-core/plugins/client_metrics_send_plugin'
|
|
29
|
+
require 'aws-sdk-core/plugins/transfer_encoding'
|
|
30
|
+
require 'aws-sdk-core/plugins/http_checksum'
|
|
31
|
+
require 'aws-sdk-core/plugins/checksum_algorithm'
|
|
32
|
+
require 'aws-sdk-core/plugins/request_compression'
|
|
33
|
+
require 'aws-sdk-core/plugins/defaults_mode'
|
|
34
|
+
require 'aws-sdk-core/plugins/recursion_detection'
|
|
35
|
+
require 'aws-sdk-core/plugins/telemetry'
|
|
36
|
+
require 'aws-sdk-core/plugins/sign'
|
|
37
|
+
require 'aws-sdk-core/plugins/protocols/rpc_v2'
|
|
38
|
+
|
|
39
|
+
module Aws::ELBProxy
|
|
40
|
+
# An API client for ELBProxy. To construct a client, you need to configure a `:region` and `:credentials`.
|
|
41
|
+
#
|
|
42
|
+
# client = Aws::ELBProxy::Client.new(
|
|
43
|
+
# region: region_name,
|
|
44
|
+
# credentials: credentials,
|
|
45
|
+
# # ...
|
|
46
|
+
# )
|
|
47
|
+
#
|
|
48
|
+
# For details on configuring region and credentials see
|
|
49
|
+
# the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
|
|
50
|
+
#
|
|
51
|
+
# See {#initialize} for a full list of supported configuration options.
|
|
52
|
+
class Client < Seahorse::Client::Base
|
|
53
|
+
|
|
54
|
+
include Aws::ClientStubs
|
|
55
|
+
|
|
56
|
+
@identifier = :elbproxy
|
|
57
|
+
|
|
58
|
+
set_api(ClientApi::API)
|
|
59
|
+
|
|
60
|
+
add_plugin(Seahorse::Client::Plugins::ContentLength)
|
|
61
|
+
add_plugin(Aws::Plugins::CredentialsConfiguration)
|
|
62
|
+
add_plugin(Aws::Plugins::Logging)
|
|
63
|
+
add_plugin(Aws::Plugins::ParamConverter)
|
|
64
|
+
add_plugin(Aws::Plugins::ParamValidator)
|
|
65
|
+
add_plugin(Aws::Plugins::UserAgent)
|
|
66
|
+
add_plugin(Aws::Plugins::HelpfulSocketErrors)
|
|
67
|
+
add_plugin(Aws::Plugins::RetryErrors)
|
|
68
|
+
add_plugin(Aws::Plugins::GlobalConfiguration)
|
|
69
|
+
add_plugin(Aws::Plugins::RegionalEndpoint)
|
|
70
|
+
add_plugin(Aws::Plugins::EndpointDiscovery)
|
|
71
|
+
add_plugin(Aws::Plugins::EndpointPattern)
|
|
72
|
+
add_plugin(Aws::Plugins::ResponsePaging)
|
|
73
|
+
add_plugin(Aws::Plugins::StubResponses)
|
|
74
|
+
add_plugin(Aws::Plugins::IdempotencyToken)
|
|
75
|
+
add_plugin(Aws::Plugins::InvocationId)
|
|
76
|
+
add_plugin(Aws::Plugins::JsonvalueConverter)
|
|
77
|
+
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
|
78
|
+
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
|
79
|
+
add_plugin(Aws::Plugins::TransferEncoding)
|
|
80
|
+
add_plugin(Aws::Plugins::HttpChecksum)
|
|
81
|
+
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
|
82
|
+
add_plugin(Aws::Plugins::RequestCompression)
|
|
83
|
+
add_plugin(Aws::Plugins::DefaultsMode)
|
|
84
|
+
add_plugin(Aws::Plugins::RecursionDetection)
|
|
85
|
+
add_plugin(Aws::Plugins::Telemetry)
|
|
86
|
+
add_plugin(Aws::Plugins::Sign)
|
|
87
|
+
add_plugin(Aws::Plugins::Protocols::RpcV2)
|
|
88
|
+
add_plugin(Aws::ELBProxy::Plugins::Endpoints)
|
|
89
|
+
|
|
90
|
+
# @overload initialize(options)
|
|
91
|
+
# @param [Hash] options
|
|
92
|
+
#
|
|
93
|
+
# @option options [Array<Seahorse::Client::Plugin>] :plugins ([]])
|
|
94
|
+
# A list of plugins to apply to the client. Each plugin is either a
|
|
95
|
+
# class name or an instance of a plugin class.
|
|
96
|
+
#
|
|
97
|
+
# @option options [required, Aws::CredentialProvider] :credentials
|
|
98
|
+
# Your AWS credentials used for authentication. This can be any class that includes and implements
|
|
99
|
+
# `Aws::CredentialProvider`, or instance of any one of the following classes:
|
|
100
|
+
#
|
|
101
|
+
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
|
102
|
+
# credentials.
|
|
103
|
+
#
|
|
104
|
+
# * `Aws::SharedCredentials` - Used for loading static credentials from a
|
|
105
|
+
# shared file, such as `~/.aws/config`.
|
|
106
|
+
#
|
|
107
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
|
108
|
+
#
|
|
109
|
+
# * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
|
|
110
|
+
# assume a role after providing credentials via the web.
|
|
111
|
+
#
|
|
112
|
+
# * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
|
|
113
|
+
# access token generated from `aws login`.
|
|
114
|
+
#
|
|
115
|
+
# * `Aws::ProcessCredentials` - Used for loading credentials from a
|
|
116
|
+
# process that outputs to stdout.
|
|
117
|
+
#
|
|
118
|
+
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
|
119
|
+
# from an EC2 IMDS on an EC2 instance.
|
|
120
|
+
#
|
|
121
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
|
122
|
+
# instances running in ECS.
|
|
123
|
+
#
|
|
124
|
+
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
|
125
|
+
# from the Cognito Identity service.
|
|
126
|
+
#
|
|
127
|
+
# When `:credentials` are not configured directly, the following locations will be searched for credentials:
|
|
128
|
+
#
|
|
129
|
+
# * `Aws.config[:credentials]`
|
|
130
|
+
#
|
|
131
|
+
# * The `:access_key_id`, `:secret_access_key`, `:session_token`, and
|
|
132
|
+
# `:account_id` options.
|
|
133
|
+
#
|
|
134
|
+
# * `ENV['AWS_ACCESS_KEY_ID']`, `ENV['AWS_SECRET_ACCESS_KEY']`,
|
|
135
|
+
# `ENV['AWS_SESSION_TOKEN']`, and `ENV['AWS_ACCOUNT_ID']`.
|
|
136
|
+
#
|
|
137
|
+
# * `~/.aws/credentials`
|
|
138
|
+
#
|
|
139
|
+
# * `~/.aws/config`
|
|
140
|
+
#
|
|
141
|
+
# * EC2/ECS IMDS instance profile - When used by default, the timeouts are very aggressive.
|
|
142
|
+
# Construct and pass an instance of `Aws::InstanceProfileCredentials` or `Aws::ECSCredentials` to
|
|
143
|
+
# enable retries and extended timeouts. Instance profile credential fetching can be disabled by
|
|
144
|
+
# setting `ENV['AWS_EC2_METADATA_DISABLED']` to `true`.
|
|
145
|
+
#
|
|
146
|
+
# @option options [required, String] :region
|
|
147
|
+
# The AWS region to connect to. The configured `:region` is
|
|
148
|
+
# used to determine the service `:endpoint`. When not passed,
|
|
149
|
+
# a default `:region` is searched for in the following locations:
|
|
150
|
+
#
|
|
151
|
+
# * `Aws.config[:region]`
|
|
152
|
+
# * `ENV['AWS_REGION']`
|
|
153
|
+
# * `ENV['AMAZON_REGION']`
|
|
154
|
+
# * `ENV['AWS_DEFAULT_REGION']`
|
|
155
|
+
# * `~/.aws/credentials`
|
|
156
|
+
# * `~/.aws/config`
|
|
157
|
+
#
|
|
158
|
+
# @option options [String] :access_key_id
|
|
159
|
+
#
|
|
160
|
+
# @option options [String] :account_id
|
|
161
|
+
#
|
|
162
|
+
# @option options [Boolean] :active_endpoint_cache (false)
|
|
163
|
+
# When set to `true`, a thread polling for endpoints will be running in
|
|
164
|
+
# the background every 60 secs (default). Defaults to `false`.
|
|
165
|
+
#
|
|
166
|
+
# @option options [Boolean] :adaptive_retry_wait_to_fill (true)
|
|
167
|
+
# Used only in `adaptive` retry mode. When true, the request will sleep
|
|
168
|
+
# until there is sufficent client side capacity to retry the request.
|
|
169
|
+
# When false, the request will raise a `RetryCapacityNotAvailableError` and will
|
|
170
|
+
# not retry instead of sleeping.
|
|
171
|
+
#
|
|
172
|
+
# @option options [Array<String>] :auth_scheme_preference
|
|
173
|
+
# A list of preferred authentication schemes to use when making a request. Supported values are:
|
|
174
|
+
# `sigv4`, `sigv4a`, `httpBearerAuth`, and `noAuth`. When set using `ENV['AWS_AUTH_SCHEME_PREFERENCE']` or in
|
|
175
|
+
# shared config as `auth_scheme_preference`, the value should be a comma-separated list.
|
|
176
|
+
#
|
|
177
|
+
# @option options [Boolean] :client_side_monitoring (false)
|
|
178
|
+
# When `true`, client-side metrics will be collected for all API requests from
|
|
179
|
+
# this client.
|
|
180
|
+
#
|
|
181
|
+
# @option options [String] :client_side_monitoring_client_id ("")
|
|
182
|
+
# Allows you to provide an identifier for this client which will be attached to
|
|
183
|
+
# all generated client side metrics. Defaults to an empty string.
|
|
184
|
+
#
|
|
185
|
+
# @option options [String] :client_side_monitoring_host ("127.0.0.1")
|
|
186
|
+
# Allows you to specify the DNS hostname or IPv4 or IPv6 address that the client
|
|
187
|
+
# side monitoring agent is running on, where client metrics will be published via UDP.
|
|
188
|
+
#
|
|
189
|
+
# @option options [Integer] :client_side_monitoring_port (31000)
|
|
190
|
+
# Required for publishing client metrics. The port that the client side monitoring
|
|
191
|
+
# agent is running on, where client metrics will be published via UDP.
|
|
192
|
+
#
|
|
193
|
+
# @option options [Aws::ClientSideMonitoring::Publisher] :client_side_monitoring_publisher (Aws::ClientSideMonitoring::Publisher)
|
|
194
|
+
# Allows you to provide a custom client-side monitoring publisher class. By default,
|
|
195
|
+
# will use the Client Side Monitoring Agent Publisher.
|
|
196
|
+
#
|
|
197
|
+
# @option options [Boolean] :convert_params (true)
|
|
198
|
+
# When `true`, an attempt is made to coerce request parameters into
|
|
199
|
+
# the required types.
|
|
200
|
+
#
|
|
201
|
+
# @option options [Boolean] :correct_clock_skew (true)
|
|
202
|
+
# Used only in `standard` and `adaptive` retry modes. Specifies whether
|
|
203
|
+
# to apply a clock skew correction and retry requests with skewed client
|
|
204
|
+
# clocks. Takes effect only when `disable_clock_skew_correction` is not set.
|
|
205
|
+
#
|
|
206
|
+
# @option options [String] :defaults_mode ("legacy")
|
|
207
|
+
# See {Aws::DefaultsModeConfiguration} for a list of the
|
|
208
|
+
# accepted modes and the configuration defaults that are included.
|
|
209
|
+
#
|
|
210
|
+
# @option options [Boolean] :disable_clock_skew_correction
|
|
211
|
+
# Used only in `standard` and `adaptive` retry modes. When `true`, the
|
|
212
|
+
# SDK does not apply a clock skew correction, does not update its stored
|
|
213
|
+
# skew from responses, and does not retry clock skew errors. Clock skew
|
|
214
|
+
# correction is enabled by default.
|
|
215
|
+
#
|
|
216
|
+
# @option options [Boolean] :disable_host_prefix_injection (false)
|
|
217
|
+
# When `true`, the SDK will not prepend the modeled host prefix to the endpoint.
|
|
218
|
+
#
|
|
219
|
+
# @option options [Boolean] :disable_request_compression (false)
|
|
220
|
+
# When set to 'true' the request body will not be compressed
|
|
221
|
+
# for supported operations.
|
|
222
|
+
#
|
|
223
|
+
# @option options [String, URI::HTTPS, URI::HTTP] :endpoint
|
|
224
|
+
# Normally you should not configure the `:endpoint` option
|
|
225
|
+
# directly. This is normally constructed from the `:region`
|
|
226
|
+
# option. Configuring `:endpoint` is normally reserved for
|
|
227
|
+
# connecting to test or custom endpoints. The endpoint should
|
|
228
|
+
# be a URI formatted like:
|
|
229
|
+
#
|
|
230
|
+
# 'http://example.com'
|
|
231
|
+
# 'https://example.com'
|
|
232
|
+
# 'http://example.com:123'
|
|
233
|
+
#
|
|
234
|
+
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
|
235
|
+
# Used for the maximum size limit of the LRU cache storing endpoints data
|
|
236
|
+
# for endpoint discovery enabled operations. Defaults to 1000.
|
|
237
|
+
#
|
|
238
|
+
# @option options [Integer] :endpoint_cache_max_threads (10)
|
|
239
|
+
# Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.
|
|
240
|
+
#
|
|
241
|
+
# @option options [Integer] :endpoint_cache_poll_interval (60)
|
|
242
|
+
# When :endpoint_discovery and :active_endpoint_cache is enabled,
|
|
243
|
+
# Use this option to config the time interval in seconds for making
|
|
244
|
+
# requests fetching endpoints information. Defaults to 60 sec.
|
|
245
|
+
#
|
|
246
|
+
# @option options [Boolean] :endpoint_discovery (false)
|
|
247
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
|
248
|
+
#
|
|
249
|
+
# @option options [Boolean] :ignore_configured_endpoint_urls
|
|
250
|
+
# Setting to true disables use of endpoint URLs provided via environment
|
|
251
|
+
# variables and the shared configuration file.
|
|
252
|
+
#
|
|
253
|
+
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
|
254
|
+
# The log formatter.
|
|
255
|
+
#
|
|
256
|
+
# @option options [Symbol] :log_level (:info)
|
|
257
|
+
# The log level to send messages to the `:logger` at.
|
|
258
|
+
#
|
|
259
|
+
# @option options [Logger] :logger
|
|
260
|
+
# The Logger instance to send log messages to. If this option
|
|
261
|
+
# is not set, logging will be disabled.
|
|
262
|
+
#
|
|
263
|
+
# @option options [Integer] :max_attempts (3)
|
|
264
|
+
# An integer representing the maximum number attempts that will be made for
|
|
265
|
+
# a single request, including the initial attempt. For example,
|
|
266
|
+
# setting this value to 5 will result in a request being retried up to
|
|
267
|
+
# 4 times. Used in `standard` and `adaptive` retry modes. Defaults to 3,
|
|
268
|
+
# except for DynamoDB and DynamoDB Streams, which default to 4.
|
|
269
|
+
#
|
|
270
|
+
# @option options [String] :profile ("default")
|
|
271
|
+
# Used when loading credentials from the shared credentials file at `HOME/.aws/credentials`.
|
|
272
|
+
# When not specified, 'default' is used.
|
|
273
|
+
#
|
|
274
|
+
# @option options [String] :request_checksum_calculation ("when_supported")
|
|
275
|
+
# Determines when a checksum will be calculated for request payloads. Values are:
|
|
276
|
+
#
|
|
277
|
+
# * `when_supported` - (default) When set, a checksum will be
|
|
278
|
+
# calculated for all request payloads of operations modeled with the
|
|
279
|
+
# `httpChecksum` trait where `requestChecksumRequired` is `true` and/or a
|
|
280
|
+
# `requestAlgorithmMember` is modeled.
|
|
281
|
+
# * `when_required` - When set, a checksum will only be calculated for
|
|
282
|
+
# request payloads of operations modeled with the `httpChecksum` trait where
|
|
283
|
+
# `requestChecksumRequired` is `true` or where a `requestAlgorithmMember`
|
|
284
|
+
# is modeled and supplied.
|
|
285
|
+
#
|
|
286
|
+
# @option options [Integer] :request_min_compression_size_bytes (10240)
|
|
287
|
+
# The minimum size in bytes that triggers compression for request
|
|
288
|
+
# bodies. The value must be non-negative integer value between 0
|
|
289
|
+
# and 10485780 bytes inclusive.
|
|
290
|
+
#
|
|
291
|
+
# @option options [String] :response_checksum_validation ("when_supported")
|
|
292
|
+
# Determines when checksum validation will be performed on response payloads. Values are:
|
|
293
|
+
#
|
|
294
|
+
# * `when_supported` - (default) When set, checksum validation is performed on all
|
|
295
|
+
# response payloads of operations modeled with the `httpChecksum` trait where
|
|
296
|
+
# `responseAlgorithms` is modeled, except when no modeled checksum algorithms
|
|
297
|
+
# are supported.
|
|
298
|
+
# * `when_required` - When set, checksum validation is not performed on
|
|
299
|
+
# response payloads of operations unless the checksum algorithm is supported and
|
|
300
|
+
# the `requestValidationModeMember` member is set to `ENABLED`.
|
|
301
|
+
#
|
|
302
|
+
# @option options [Proc] :retry_backoff
|
|
303
|
+
# A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
|
|
304
|
+
# This option is only used in the `legacy` retry mode.
|
|
305
|
+
#
|
|
306
|
+
# @option options [Float] :retry_base_delay (0.3)
|
|
307
|
+
# The base delay in seconds used by the default backoff function. This option
|
|
308
|
+
# is only used in the `legacy` retry mode.
|
|
309
|
+
#
|
|
310
|
+
# @option options [Symbol] :retry_jitter (:none)
|
|
311
|
+
# A delay randomiser function used by the default backoff function.
|
|
312
|
+
# Some predefined functions can be referenced by name - :none, :equal, :full,
|
|
313
|
+
# otherwise a Proc that takes and returns a number. This option is only used
|
|
314
|
+
# in the `legacy` retry mode.
|
|
315
|
+
#
|
|
316
|
+
# @see https://www.awsarchitectureblog.com/2015/03/backoff.html
|
|
317
|
+
#
|
|
318
|
+
# @option options [Integer] :retry_limit (3)
|
|
319
|
+
# The maximum number of times to retry failed requests. Only
|
|
320
|
+
# ~ 500 level server errors and certain ~ 400 level client errors
|
|
321
|
+
# are retried. Generally, these are throttling errors, data
|
|
322
|
+
# checksum errors, networking errors, timeout errors, auth errors,
|
|
323
|
+
# endpoint discovery, and errors from expired credentials.
|
|
324
|
+
# This option is only used in the `legacy` retry mode.
|
|
325
|
+
#
|
|
326
|
+
# @option options [Integer] :retry_max_delay (0)
|
|
327
|
+
# The maximum number of seconds to delay between retries (0 for no limit)
|
|
328
|
+
# used by the default backoff function. This option is only used in the
|
|
329
|
+
# `legacy` retry mode.
|
|
330
|
+
#
|
|
331
|
+
# @option options [String] :retry_mode ("standard")
|
|
332
|
+
# Specifies which retry algorithm to use. Values are:
|
|
333
|
+
#
|
|
334
|
+
# * `legacy` - The pre-existing retry behavior.
|
|
335
|
+
#
|
|
336
|
+
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
|
337
|
+
# This includes support for retry quotas, which limit the number of
|
|
338
|
+
# unsuccessful retries a client can make. This is the default value
|
|
339
|
+
# if no retry mode is provided.
|
|
340
|
+
#
|
|
341
|
+
# * `adaptive` - A retry mode that includes all the functionality of
|
|
342
|
+
# `standard` mode along with automatic client side throttling.
|
|
343
|
+
#
|
|
344
|
+
# @option options [String] :sdk_ua_app_id
|
|
345
|
+
# A unique and opaque application ID that is appended to the
|
|
346
|
+
# User-Agent header as app/sdk_ua_app_id. It should have a
|
|
347
|
+
# maximum length of 50. This variable is sourced from environment
|
|
348
|
+
# variable AWS_SDK_UA_APP_ID or the shared config profile attribute sdk_ua_app_id.
|
|
349
|
+
#
|
|
350
|
+
# @option options [String] :secret_access_key
|
|
351
|
+
#
|
|
352
|
+
# @option options [String] :session_token
|
|
353
|
+
#
|
|
354
|
+
# @option options [Array] :sigv4a_signing_region_set
|
|
355
|
+
# A list of regions that should be signed with SigV4a signing. When
|
|
356
|
+
# not passed, a default `:sigv4a_signing_region_set` is searched for
|
|
357
|
+
# in the following locations:
|
|
358
|
+
#
|
|
359
|
+
# * `Aws.config[:sigv4a_signing_region_set]`
|
|
360
|
+
# * `ENV['AWS_SIGV4A_SIGNING_REGION_SET']`
|
|
361
|
+
# * `~/.aws/config`
|
|
362
|
+
#
|
|
363
|
+
# @option options [Boolean] :stub_responses (false)
|
|
364
|
+
# Causes the client to return stubbed responses. By default
|
|
365
|
+
# fake responses are generated and returned. You can specify
|
|
366
|
+
# the response data to return or errors to raise by calling
|
|
367
|
+
# {ClientStubs#stub_responses}. See {ClientStubs} for more information.
|
|
368
|
+
#
|
|
369
|
+
# ** Please note ** When response stubbing is enabled, no HTTP
|
|
370
|
+
# requests are made, and retries are disabled.
|
|
371
|
+
#
|
|
372
|
+
# @option options [Aws::Telemetry::TelemetryProviderBase] :telemetry_provider (Aws::Telemetry::NoOpTelemetryProvider)
|
|
373
|
+
# Allows you to provide a telemetry provider, which is used to
|
|
374
|
+
# emit telemetry data. By default, uses `NoOpTelemetryProvider` which
|
|
375
|
+
# will not record or emit any telemetry data. The SDK supports the
|
|
376
|
+
# following telemetry providers:
|
|
377
|
+
#
|
|
378
|
+
# * OpenTelemetry (OTel) - To use the OTel provider, install and require the
|
|
379
|
+
# `opentelemetry-sdk` gem and then, pass in an instance of a
|
|
380
|
+
# `Aws::Telemetry::OTelProvider` for telemetry provider.
|
|
381
|
+
#
|
|
382
|
+
# @option options [Aws::TokenProvider] :token_provider
|
|
383
|
+
# Your Bearer token used for authentication. This can be any class that includes and implements
|
|
384
|
+
# `Aws::TokenProvider`, or instance of any one of the following classes:
|
|
385
|
+
#
|
|
386
|
+
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
|
387
|
+
# tokens.
|
|
388
|
+
#
|
|
389
|
+
# * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
|
|
390
|
+
# access token generated from `aws login`.
|
|
391
|
+
#
|
|
392
|
+
# When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
|
|
393
|
+
# will be used to search for tokens configured for your profile in shared configuration files.
|
|
394
|
+
#
|
|
395
|
+
# @option options [Boolean] :use_dualstack_endpoint
|
|
396
|
+
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
|
397
|
+
# will be used if available.
|
|
398
|
+
#
|
|
399
|
+
# @option options [Boolean] :use_fips_endpoint
|
|
400
|
+
# When set to `true`, fips compatible endpoints will be used if available.
|
|
401
|
+
# When a `fips` region is used, the region is normalized and this config
|
|
402
|
+
# is set to `true`.
|
|
403
|
+
#
|
|
404
|
+
# @option options [Boolean] :validate_params (true)
|
|
405
|
+
# When `true`, request parameters are validated before
|
|
406
|
+
# sending the request.
|
|
407
|
+
#
|
|
408
|
+
# @option options [Aws::ELBProxy::EndpointProvider] :endpoint_provider
|
|
409
|
+
# The endpoint provider used to resolve endpoints. Any object that responds to
|
|
410
|
+
# `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
|
|
411
|
+
# `Aws::ELBProxy::EndpointParameters`.
|
|
412
|
+
#
|
|
413
|
+
# @option options [Float] :http_continue_timeout (1)
|
|
414
|
+
# The number of seconds to wait for a 100-continue response before sending the
|
|
415
|
+
# request body. This option has no effect unless the request has "Expect"
|
|
416
|
+
# header set to "100-continue". Defaults to `nil` which disables this
|
|
417
|
+
# behaviour. This value can safely be set per request on the session.
|
|
418
|
+
#
|
|
419
|
+
# @option options [Float] :http_idle_timeout (5)
|
|
420
|
+
# The number of seconds a connection is allowed to sit idle before it
|
|
421
|
+
# is considered stale. Stale connections are closed and removed from the
|
|
422
|
+
# pool before making a request.
|
|
423
|
+
#
|
|
424
|
+
# @option options [Float] :http_open_timeout (15)
|
|
425
|
+
# The default number of seconds to wait for response data.
|
|
426
|
+
# This value can safely be set per-request on the session.
|
|
427
|
+
#
|
|
428
|
+
# @option options [URI::HTTP,String] :http_proxy
|
|
429
|
+
# A proxy to send requests through. Formatted like 'http://proxy.com:123'.
|
|
430
|
+
#
|
|
431
|
+
# @option options [Float] :http_read_timeout (60)
|
|
432
|
+
# The default number of seconds to wait for response data.
|
|
433
|
+
# This value can safely be set per-request on the session.
|
|
434
|
+
#
|
|
435
|
+
# @option options [Boolean] :http_wire_trace (false)
|
|
436
|
+
# When `true`, HTTP debug output will be sent to the `:logger`.
|
|
437
|
+
#
|
|
438
|
+
# @option options [Proc] :on_chunk_received
|
|
439
|
+
# When a Proc object is provided, it will be used as callback when each chunk
|
|
440
|
+
# of the response body is received. It provides three arguments: the chunk,
|
|
441
|
+
# the number of bytes received, and the total number of
|
|
442
|
+
# bytes in the response (or nil if the server did not send a `content-length`).
|
|
443
|
+
#
|
|
444
|
+
# @option options [Proc] :on_chunk_sent
|
|
445
|
+
# When a Proc object is provided, it will be used as callback when each chunk
|
|
446
|
+
# of the request body is sent. It provides three arguments: the chunk,
|
|
447
|
+
# the number of bytes read from the body, and the total number of
|
|
448
|
+
# bytes in the body.
|
|
449
|
+
#
|
|
450
|
+
# @option options [Boolean] :raise_response_errors (true)
|
|
451
|
+
# When `true`, response errors are raised.
|
|
452
|
+
#
|
|
453
|
+
# @option options [String] :ssl_ca_bundle
|
|
454
|
+
# Full path to the SSL certificate authority bundle file that should be used when
|
|
455
|
+
# verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
|
|
456
|
+
# `:ssl_ca_directory` the the system default will be used if available.
|
|
457
|
+
#
|
|
458
|
+
# @option options [String] :ssl_ca_directory
|
|
459
|
+
# Full path of the directory that contains the unbundled SSL certificate
|
|
460
|
+
# authority files for verifying peer certificates. If you do
|
|
461
|
+
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system
|
|
462
|
+
# default will be used if available.
|
|
463
|
+
#
|
|
464
|
+
# @option options [String] :ssl_ca_store
|
|
465
|
+
# Sets the X509::Store to verify peer certificate.
|
|
466
|
+
#
|
|
467
|
+
# @option options [OpenSSL::X509::Certificate] :ssl_cert
|
|
468
|
+
# Sets a client certificate when creating http connections.
|
|
469
|
+
#
|
|
470
|
+
# @option options [OpenSSL::PKey] :ssl_key
|
|
471
|
+
# Sets a client key when creating http connections.
|
|
472
|
+
#
|
|
473
|
+
# @option options [Float] :ssl_timeout
|
|
474
|
+
# Sets the SSL timeout in seconds
|
|
475
|
+
#
|
|
476
|
+
# @option options [Boolean] :ssl_verify_peer (true)
|
|
477
|
+
# When `true`, SSL peer certificates are verified when establishing a connection.
|
|
478
|
+
#
|
|
479
|
+
def initialize(*args)
|
|
480
|
+
super
|
|
481
|
+
end
|
|
482
|
+
|
|
483
|
+
# @!group API Operations
|
|
484
|
+
|
|
485
|
+
# Associates an ACM certificate with the specified Proxy.
|
|
486
|
+
#
|
|
487
|
+
# @option params [required, String] :proxy_identifier
|
|
488
|
+
# The Amazon Resource Name (ARN) of the proxy.
|
|
489
|
+
#
|
|
490
|
+
# @option params [required, String] :certificate_identifier
|
|
491
|
+
# The Amazon Resource Name (ARN) of the ACM certificate.
|
|
492
|
+
#
|
|
493
|
+
# @return [Types::AssociateCertificateResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
494
|
+
#
|
|
495
|
+
# * {Types::AssociateCertificateResponse#certificate_association #certificate_association} => Types::CertificateAssociation
|
|
496
|
+
#
|
|
497
|
+
#
|
|
498
|
+
# @example Example: To associate a certificate with a proxy
|
|
499
|
+
#
|
|
500
|
+
# # The following example associates the specified ACM certificate with the specified proxy.
|
|
501
|
+
#
|
|
502
|
+
# resp = client.associate_certificate({
|
|
503
|
+
# certificate_identifier: "arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012",
|
|
504
|
+
# proxy_identifier: "arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef",
|
|
505
|
+
# })
|
|
506
|
+
#
|
|
507
|
+
# resp.to_h outputs the following:
|
|
508
|
+
# {
|
|
509
|
+
# certificate_association: {
|
|
510
|
+
# certificate_arn: "arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012",
|
|
511
|
+
# created_at: Time.parse(1795195800),
|
|
512
|
+
# status: {
|
|
513
|
+
# code: "associate-in-progress",
|
|
514
|
+
# reasons: [
|
|
515
|
+
# ],
|
|
516
|
+
# },
|
|
517
|
+
# },
|
|
518
|
+
# }
|
|
519
|
+
#
|
|
520
|
+
# @example Request syntax with placeholder values
|
|
521
|
+
#
|
|
522
|
+
# resp = client.associate_certificate({
|
|
523
|
+
# proxy_identifier: "ProxyIdentifier", # required
|
|
524
|
+
# certificate_identifier: "CertificateIdentifier", # required
|
|
525
|
+
# })
|
|
526
|
+
#
|
|
527
|
+
# @example Response structure
|
|
528
|
+
#
|
|
529
|
+
# resp.certificate_association.certificate_arn #=> String
|
|
530
|
+
# resp.certificate_association.status.code #=> String, one of "associate-in-progress", "active", "associate-failed", "disassociate-in-progress", "disassociated"
|
|
531
|
+
# resp.certificate_association.status.reasons #=> Array
|
|
532
|
+
# resp.certificate_association.status.reasons[0].code #=> String
|
|
533
|
+
# resp.certificate_association.status.reasons[0].message #=> String
|
|
534
|
+
# resp.certificate_association.created_at #=> Time
|
|
535
|
+
#
|
|
536
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elb-proxy-2026-11-20/AssociateCertificate AWS API Documentation
|
|
537
|
+
#
|
|
538
|
+
# @overload associate_certificate(params = {})
|
|
539
|
+
# @param [Hash] params ({})
|
|
540
|
+
def associate_certificate(params = {}, options = {})
|
|
541
|
+
req = build_request(:associate_certificate, params)
|
|
542
|
+
req.send_request(options)
|
|
543
|
+
end
|
|
544
|
+
|
|
545
|
+
# Creates a proxy. A proxy is a fully managed, Envoy-based proxy that
|
|
546
|
+
# runs your Envoy configuration on Amazon EC2 instances inside your own
|
|
547
|
+
# virtual private cloud (VPC). AWS provisions and scales the proxy,
|
|
548
|
+
# upgrades the Envoy version, patches the operating system, and monitors
|
|
549
|
+
# its health.
|
|
550
|
+
#
|
|
551
|
+
# @option params [required, String] :name
|
|
552
|
+
# The name of the proxy. The name must be unique within your account for
|
|
553
|
+
# the Region. The valid characters are a-z, 0-9, and hyphens (-). You
|
|
554
|
+
# can't use a hyphen as the first or last character.
|
|
555
|
+
#
|
|
556
|
+
# @option params [required, String] :type
|
|
557
|
+
# The type of proxy.
|
|
558
|
+
#
|
|
559
|
+
# @option params [required, String] :proxy_version
|
|
560
|
+
# The version of the proxy software, in `major.minor` format.
|
|
561
|
+
#
|
|
562
|
+
# @option params [required, String] :role_arn
|
|
563
|
+
# The Amazon Resource Name (ARN) of the IAM role that provides
|
|
564
|
+
# permissions to the code that your Envoy configuration runs on the
|
|
565
|
+
# proxy, such as filters and extensions. These are the permissions that
|
|
566
|
+
# this code needs when it calls AWS services.
|
|
567
|
+
#
|
|
568
|
+
# @option params [required, Types::ProxyConfiguration] :configuration
|
|
569
|
+
# The configuration for the proxy.
|
|
570
|
+
#
|
|
571
|
+
# @option params [required, Types::ProxyNetworkUserConfiguration] :network_configuration
|
|
572
|
+
# The network configuration for the proxy.
|
|
573
|
+
#
|
|
574
|
+
# @option params [Array<Types::Attribute>] :attributes
|
|
575
|
+
# The attributes for the proxy. Attributes can be changed after
|
|
576
|
+
# creation. Attributes that you don't specify are set to their default
|
|
577
|
+
# values.
|
|
578
|
+
#
|
|
579
|
+
# @option params [String] :customer_kms_key_arn
|
|
580
|
+
# The Amazon Resource Name (ARN) of the customer managed KMS key used to
|
|
581
|
+
# encrypt the proxy's configuration content. If you don't specify a
|
|
582
|
+
# key, the default service-owned key is used.
|
|
583
|
+
#
|
|
584
|
+
# @option params [Hash<String,String>] :tags
|
|
585
|
+
# The tags for the proxy.
|
|
586
|
+
#
|
|
587
|
+
# @option params [String] :client_token
|
|
588
|
+
# A unique, case-sensitive identifier that you provide to ensure the
|
|
589
|
+
# idempotency of the request.
|
|
590
|
+
#
|
|
591
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
592
|
+
# not need to pass this option.**
|
|
593
|
+
#
|
|
594
|
+
# @return [Types::CreateProxyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
595
|
+
#
|
|
596
|
+
# * {Types::CreateProxyResponse#arn #arn} => String
|
|
597
|
+
# * {Types::CreateProxyResponse#name #name} => String
|
|
598
|
+
# * {Types::CreateProxyResponse#type #type} => String
|
|
599
|
+
# * {Types::CreateProxyResponse#proxy_version #proxy_version} => String
|
|
600
|
+
# * {Types::CreateProxyResponse#dns_name #dns_name} => String
|
|
601
|
+
# * {Types::CreateProxyResponse#role_arn #role_arn} => String
|
|
602
|
+
# * {Types::CreateProxyResponse#network_configuration #network_configuration} => Types::ProxyNetworkConfiguration
|
|
603
|
+
# * {Types::CreateProxyResponse#status #status} => Types::ProxyStatus
|
|
604
|
+
# * {Types::CreateProxyResponse#configuration_metadata #configuration_metadata} => Types::ConfigurationMetadata
|
|
605
|
+
# * {Types::CreateProxyResponse#created_at #created_at} => Time
|
|
606
|
+
# * {Types::CreateProxyResponse#customer_kms_key_arn #customer_kms_key_arn} => String
|
|
607
|
+
#
|
|
608
|
+
#
|
|
609
|
+
# @example Example: To create a proxy
|
|
610
|
+
#
|
|
611
|
+
# # The following example creates a proxy with the specified name, Envoy version, IAM role, and configuration file. The
|
|
612
|
+
# # proxy is internet-facing over IPv4, runs in the specified subnets with the specified security group, and has deletion
|
|
613
|
+
# # protection enabled.
|
|
614
|
+
#
|
|
615
|
+
# resp = client.create_proxy({
|
|
616
|
+
# name: "my-proxy",
|
|
617
|
+
# type: "envoy",
|
|
618
|
+
# attributes: [
|
|
619
|
+
# {
|
|
620
|
+
# key: "deletion_protection.enabled",
|
|
621
|
+
# value: "true",
|
|
622
|
+
# },
|
|
623
|
+
# ],
|
|
624
|
+
# configuration: {
|
|
625
|
+
# configuration_file: {
|
|
626
|
+
# configuration_bytes: "c3RhdGljX3Jlc291cmNlczoge30K",
|
|
627
|
+
# },
|
|
628
|
+
# },
|
|
629
|
+
# network_configuration: {
|
|
630
|
+
# ip_configuration: {
|
|
631
|
+
# ip_addressing_configuration: {
|
|
632
|
+
# ipv4_addressability: "internet-facing",
|
|
633
|
+
# ipv6_addressability: "off",
|
|
634
|
+
# },
|
|
635
|
+
# },
|
|
636
|
+
# vpc_configuration: {
|
|
637
|
+
# security_groups: [
|
|
638
|
+
# {
|
|
639
|
+
# security_group_id: "sg-903004f8",
|
|
640
|
+
# },
|
|
641
|
+
# ],
|
|
642
|
+
# subnets: [
|
|
643
|
+
# {
|
|
644
|
+
# subnet_id: "subnet-8360a9e7",
|
|
645
|
+
# },
|
|
646
|
+
# {
|
|
647
|
+
# subnet_id: "subnet-b7d581c0",
|
|
648
|
+
# },
|
|
649
|
+
# ],
|
|
650
|
+
# },
|
|
651
|
+
# },
|
|
652
|
+
# proxy_version: "1.40",
|
|
653
|
+
# role_arn: "arn:aws:iam::123456789012:role/my-proxy-role",
|
|
654
|
+
# tags: {
|
|
655
|
+
# "Environment" => "production",
|
|
656
|
+
# },
|
|
657
|
+
# })
|
|
658
|
+
#
|
|
659
|
+
# resp.to_h outputs the following:
|
|
660
|
+
# {
|
|
661
|
+
# name: "my-proxy",
|
|
662
|
+
# type: "envoy",
|
|
663
|
+
# arn: "arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef",
|
|
664
|
+
# configuration_metadata: {
|
|
665
|
+
# config_file_hash: "6b9dfd96fbb077f7e4cabcb5c1be57761b474afc18499d77b6bd49cfb03b3466",
|
|
666
|
+
# config_file_last_updated_at: Time.parse(1795194000),
|
|
667
|
+
# },
|
|
668
|
+
# created_at: Time.parse(1795194000),
|
|
669
|
+
# dns_name: "my-proxy-1234567890.elb-proxy.us-east-1.on.aws",
|
|
670
|
+
# network_configuration: {
|
|
671
|
+
# ip_configuration: {
|
|
672
|
+
# ip_addressing_configuration: {
|
|
673
|
+
# ipv4_addressability: "internet-facing",
|
|
674
|
+
# ipv6_addressability: "off",
|
|
675
|
+
# },
|
|
676
|
+
# },
|
|
677
|
+
# vpc_configuration: {
|
|
678
|
+
# availability_zones: [
|
|
679
|
+
# {
|
|
680
|
+
# subnet_id: "subnet-8360a9e7",
|
|
681
|
+
# zone_id: "use1-az1",
|
|
682
|
+
# zone_name: "us-east-1a",
|
|
683
|
+
# },
|
|
684
|
+
# {
|
|
685
|
+
# subnet_id: "subnet-b7d581c0",
|
|
686
|
+
# zone_id: "use1-az2",
|
|
687
|
+
# zone_name: "us-east-1b",
|
|
688
|
+
# },
|
|
689
|
+
# ],
|
|
690
|
+
# security_groups: [
|
|
691
|
+
# {
|
|
692
|
+
# security_group_id: "sg-903004f8",
|
|
693
|
+
# },
|
|
694
|
+
# ],
|
|
695
|
+
# vpc_id: "vpc-1a2b3c4d",
|
|
696
|
+
# },
|
|
697
|
+
# },
|
|
698
|
+
# proxy_version: "1.40",
|
|
699
|
+
# role_arn: "arn:aws:iam::123456789012:role/my-proxy-role",
|
|
700
|
+
# status: {
|
|
701
|
+
# code: "create-in-progress",
|
|
702
|
+
# reasons: [
|
|
703
|
+
# ],
|
|
704
|
+
# },
|
|
705
|
+
# }
|
|
706
|
+
#
|
|
707
|
+
# @example Request syntax with placeholder values
|
|
708
|
+
#
|
|
709
|
+
# resp = client.create_proxy({
|
|
710
|
+
# name: "ProxyName", # required
|
|
711
|
+
# type: "envoy", # required, accepts envoy
|
|
712
|
+
# proxy_version: "ProxyVersion", # required
|
|
713
|
+
# role_arn: "IamRoleArn", # required
|
|
714
|
+
# configuration: { # required
|
|
715
|
+
# configuration_file: {
|
|
716
|
+
# configuration_bytes: "data", # required
|
|
717
|
+
# },
|
|
718
|
+
# configuration_archive: {
|
|
719
|
+
# configuration_bytes: "data", # required
|
|
720
|
+
# },
|
|
721
|
+
# },
|
|
722
|
+
# network_configuration: { # required
|
|
723
|
+
# ip_configuration: { # required
|
|
724
|
+
# ip_addressing_configuration: { # required
|
|
725
|
+
# ipv4_addressability: "off", # required, accepts off, internet-facing, internal
|
|
726
|
+
# ipv6_addressability: "off", # required, accepts off, internet-facing, internal
|
|
727
|
+
# },
|
|
728
|
+
# },
|
|
729
|
+
# vpc_configuration: { # required
|
|
730
|
+
# subnets: [ # required
|
|
731
|
+
# {
|
|
732
|
+
# subnet_id: "SubnetId", # required
|
|
733
|
+
# },
|
|
734
|
+
# ],
|
|
735
|
+
# security_groups: [ # required
|
|
736
|
+
# {
|
|
737
|
+
# security_group_id: "SecurityGroupId", # required
|
|
738
|
+
# },
|
|
739
|
+
# ],
|
|
740
|
+
# },
|
|
741
|
+
# },
|
|
742
|
+
# attributes: [
|
|
743
|
+
# {
|
|
744
|
+
# key: "ProxyAttributeKey", # required
|
|
745
|
+
# value: "ProxyAttributeValue", # required
|
|
746
|
+
# },
|
|
747
|
+
# ],
|
|
748
|
+
# customer_kms_key_arn: "CustomerKmsKeyArn",
|
|
749
|
+
# tags: {
|
|
750
|
+
# "TagKey" => "TagValue",
|
|
751
|
+
# },
|
|
752
|
+
# client_token: "ClientToken",
|
|
753
|
+
# })
|
|
754
|
+
#
|
|
755
|
+
# @example Response structure
|
|
756
|
+
#
|
|
757
|
+
# resp.arn #=> String
|
|
758
|
+
# resp.name #=> String
|
|
759
|
+
# resp.type #=> String, one of "envoy"
|
|
760
|
+
# resp.proxy_version #=> String
|
|
761
|
+
# resp.dns_name #=> String
|
|
762
|
+
# resp.role_arn #=> String
|
|
763
|
+
# resp.network_configuration.ip_configuration.ip_addressing_configuration.ipv4_addressability #=> String, one of "off", "internet-facing", "internal"
|
|
764
|
+
# resp.network_configuration.ip_configuration.ip_addressing_configuration.ipv6_addressability #=> String, one of "off", "internet-facing", "internal"
|
|
765
|
+
# resp.network_configuration.vpc_configuration.vpc_id #=> String
|
|
766
|
+
# resp.network_configuration.vpc_configuration.availability_zones #=> Array
|
|
767
|
+
# resp.network_configuration.vpc_configuration.availability_zones[0].subnet_id #=> String
|
|
768
|
+
# resp.network_configuration.vpc_configuration.availability_zones[0].zone_id #=> String
|
|
769
|
+
# resp.network_configuration.vpc_configuration.availability_zones[0].zone_name #=> String
|
|
770
|
+
# resp.network_configuration.vpc_configuration.security_groups #=> Array
|
|
771
|
+
# resp.network_configuration.vpc_configuration.security_groups[0].security_group_id #=> String
|
|
772
|
+
# resp.status.code #=> String, one of "action-required", "active", "create-failed", "create-in-progress", "deleted", "delete-in-progress", "update-in-progress", "cancel-update-in-progress"
|
|
773
|
+
# resp.status.reasons #=> Array
|
|
774
|
+
# resp.status.reasons[0].code #=> String
|
|
775
|
+
# resp.status.reasons[0].target #=> String
|
|
776
|
+
# resp.status.reasons[0].message #=> String
|
|
777
|
+
# resp.configuration_metadata.config_file_hash #=> String
|
|
778
|
+
# resp.configuration_metadata.config_archive_hash #=> String
|
|
779
|
+
# resp.configuration_metadata.config_file_last_updated_at #=> Time
|
|
780
|
+
# resp.configuration_metadata.config_archive_last_updated_at #=> Time
|
|
781
|
+
# resp.created_at #=> Time
|
|
782
|
+
# resp.customer_kms_key_arn #=> String
|
|
783
|
+
#
|
|
784
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elb-proxy-2026-11-20/CreateProxy AWS API Documentation
|
|
785
|
+
#
|
|
786
|
+
# @overload create_proxy(params = {})
|
|
787
|
+
# @param [Hash] params ({})
|
|
788
|
+
def create_proxy(params = {}, options = {})
|
|
789
|
+
req = build_request(:create_proxy, params)
|
|
790
|
+
req.send_request(options)
|
|
791
|
+
end
|
|
792
|
+
|
|
793
|
+
# Deletes a proxy.
|
|
794
|
+
#
|
|
795
|
+
# @option params [required, String] :proxy_identifier
|
|
796
|
+
# The Amazon Resource Name (ARN) of the proxy.
|
|
797
|
+
#
|
|
798
|
+
# @return [Types::DeleteProxyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
799
|
+
#
|
|
800
|
+
# * {Types::DeleteProxyResponse#arn #arn} => String
|
|
801
|
+
# * {Types::DeleteProxyResponse#name #name} => String
|
|
802
|
+
# * {Types::DeleteProxyResponse#status #status} => Types::ProxyStatus
|
|
803
|
+
#
|
|
804
|
+
#
|
|
805
|
+
# @example Example: To delete a proxy
|
|
806
|
+
#
|
|
807
|
+
# # The following example deletes the specified proxy. You must turn off deletion protection before you can delete a proxy.
|
|
808
|
+
#
|
|
809
|
+
# resp = client.delete_proxy({
|
|
810
|
+
# proxy_identifier: "arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef",
|
|
811
|
+
# })
|
|
812
|
+
#
|
|
813
|
+
# resp.to_h outputs the following:
|
|
814
|
+
# {
|
|
815
|
+
# name: "my-proxy",
|
|
816
|
+
# arn: "arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef",
|
|
817
|
+
# status: {
|
|
818
|
+
# code: "delete-in-progress",
|
|
819
|
+
# reasons: [
|
|
820
|
+
# ],
|
|
821
|
+
# },
|
|
822
|
+
# }
|
|
823
|
+
#
|
|
824
|
+
# @example Request syntax with placeholder values
|
|
825
|
+
#
|
|
826
|
+
# resp = client.delete_proxy({
|
|
827
|
+
# proxy_identifier: "ProxyIdentifier", # required
|
|
828
|
+
# })
|
|
829
|
+
#
|
|
830
|
+
# @example Response structure
|
|
831
|
+
#
|
|
832
|
+
# resp.arn #=> String
|
|
833
|
+
# resp.name #=> String
|
|
834
|
+
# resp.status.code #=> String, one of "action-required", "active", "create-failed", "create-in-progress", "deleted", "delete-in-progress", "update-in-progress", "cancel-update-in-progress"
|
|
835
|
+
# resp.status.reasons #=> Array
|
|
836
|
+
# resp.status.reasons[0].code #=> String
|
|
837
|
+
# resp.status.reasons[0].target #=> String
|
|
838
|
+
# resp.status.reasons[0].message #=> String
|
|
839
|
+
#
|
|
840
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elb-proxy-2026-11-20/DeleteProxy AWS API Documentation
|
|
841
|
+
#
|
|
842
|
+
# @overload delete_proxy(params = {})
|
|
843
|
+
# @param [Hash] params ({})
|
|
844
|
+
def delete_proxy(params = {}, options = {})
|
|
845
|
+
req = build_request(:delete_proxy, params)
|
|
846
|
+
req.send_request(options)
|
|
847
|
+
end
|
|
848
|
+
|
|
849
|
+
# Disassociates an ACM certificate from the specified proxy.
|
|
850
|
+
#
|
|
851
|
+
# @option params [required, String] :proxy_identifier
|
|
852
|
+
# The Amazon Resource Name (ARN) of the proxy.
|
|
853
|
+
#
|
|
854
|
+
# @option params [required, String] :certificate_identifier
|
|
855
|
+
# The Amazon Resource Name (ARN) of the ACM certificate.
|
|
856
|
+
#
|
|
857
|
+
# @return [Types::DisassociateCertificateResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
858
|
+
#
|
|
859
|
+
# * {Types::DisassociateCertificateResponse#certificate_association #certificate_association} => Types::CertificateAssociation
|
|
860
|
+
#
|
|
861
|
+
#
|
|
862
|
+
# @example Example: To disassociate a certificate from a proxy
|
|
863
|
+
#
|
|
864
|
+
# # The following example disassociates the specified ACM certificate from the specified proxy.
|
|
865
|
+
#
|
|
866
|
+
# resp = client.disassociate_certificate({
|
|
867
|
+
# certificate_identifier: "arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012",
|
|
868
|
+
# proxy_identifier: "arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef",
|
|
869
|
+
# })
|
|
870
|
+
#
|
|
871
|
+
# resp.to_h outputs the following:
|
|
872
|
+
# {
|
|
873
|
+
# certificate_association: {
|
|
874
|
+
# certificate_arn: "arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012",
|
|
875
|
+
# created_at: Time.parse(1795195800),
|
|
876
|
+
# status: {
|
|
877
|
+
# code: "disassociate-in-progress",
|
|
878
|
+
# reasons: [
|
|
879
|
+
# ],
|
|
880
|
+
# },
|
|
881
|
+
# },
|
|
882
|
+
# }
|
|
883
|
+
#
|
|
884
|
+
# @example Request syntax with placeholder values
|
|
885
|
+
#
|
|
886
|
+
# resp = client.disassociate_certificate({
|
|
887
|
+
# proxy_identifier: "ProxyIdentifier", # required
|
|
888
|
+
# certificate_identifier: "CertificateIdentifier", # required
|
|
889
|
+
# })
|
|
890
|
+
#
|
|
891
|
+
# @example Response structure
|
|
892
|
+
#
|
|
893
|
+
# resp.certificate_association.certificate_arn #=> String
|
|
894
|
+
# resp.certificate_association.status.code #=> String, one of "associate-in-progress", "active", "associate-failed", "disassociate-in-progress", "disassociated"
|
|
895
|
+
# resp.certificate_association.status.reasons #=> Array
|
|
896
|
+
# resp.certificate_association.status.reasons[0].code #=> String
|
|
897
|
+
# resp.certificate_association.status.reasons[0].message #=> String
|
|
898
|
+
# resp.certificate_association.created_at #=> Time
|
|
899
|
+
#
|
|
900
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elb-proxy-2026-11-20/DisassociateCertificate AWS API Documentation
|
|
901
|
+
#
|
|
902
|
+
# @overload disassociate_certificate(params = {})
|
|
903
|
+
# @param [Hash] params ({})
|
|
904
|
+
def disassociate_certificate(params = {}, options = {})
|
|
905
|
+
req = build_request(:disassociate_certificate, params)
|
|
906
|
+
req.send_request(options)
|
|
907
|
+
end
|
|
908
|
+
|
|
909
|
+
# Retrieves information about the specified proxy.
|
|
910
|
+
#
|
|
911
|
+
# @option params [required, String] :proxy_identifier
|
|
912
|
+
# The Amazon Resource Name (ARN) of the proxy.
|
|
913
|
+
#
|
|
914
|
+
# @return [Types::GetProxyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
915
|
+
#
|
|
916
|
+
# * {Types::GetProxyResponse#arn #arn} => String
|
|
917
|
+
# * {Types::GetProxyResponse#name #name} => String
|
|
918
|
+
# * {Types::GetProxyResponse#type #type} => String
|
|
919
|
+
# * {Types::GetProxyResponse#proxy_version #proxy_version} => String
|
|
920
|
+
# * {Types::GetProxyResponse#dns_name #dns_name} => String
|
|
921
|
+
# * {Types::GetProxyResponse#role_arn #role_arn} => String
|
|
922
|
+
# * {Types::GetProxyResponse#network_configuration #network_configuration} => Types::ProxyNetworkConfiguration
|
|
923
|
+
# * {Types::GetProxyResponse#status #status} => Types::ProxyStatus
|
|
924
|
+
# * {Types::GetProxyResponse#configuration_metadata #configuration_metadata} => Types::ConfigurationMetadata
|
|
925
|
+
# * {Types::GetProxyResponse#created_at #created_at} => Time
|
|
926
|
+
# * {Types::GetProxyResponse#customer_kms_key_arn #customer_kms_key_arn} => String
|
|
927
|
+
#
|
|
928
|
+
#
|
|
929
|
+
# @example Example: To get information about a proxy
|
|
930
|
+
#
|
|
931
|
+
# # The following example gets information about the specified proxy.
|
|
932
|
+
#
|
|
933
|
+
# resp = client.get_proxy({
|
|
934
|
+
# proxy_identifier: "arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef",
|
|
935
|
+
# })
|
|
936
|
+
#
|
|
937
|
+
# resp.to_h outputs the following:
|
|
938
|
+
# {
|
|
939
|
+
# name: "my-proxy",
|
|
940
|
+
# type: "envoy",
|
|
941
|
+
# arn: "arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef",
|
|
942
|
+
# configuration_metadata: {
|
|
943
|
+
# config_file_hash: "6b9dfd96fbb077f7e4cabcb5c1be57761b474afc18499d77b6bd49cfb03b3466",
|
|
944
|
+
# config_file_last_updated_at: Time.parse(1795194000),
|
|
945
|
+
# },
|
|
946
|
+
# created_at: Time.parse(1795194000),
|
|
947
|
+
# dns_name: "my-proxy-1234567890.elb-proxy.us-east-1.on.aws",
|
|
948
|
+
# network_configuration: {
|
|
949
|
+
# ip_configuration: {
|
|
950
|
+
# ip_addressing_configuration: {
|
|
951
|
+
# ipv4_addressability: "internet-facing",
|
|
952
|
+
# ipv6_addressability: "off",
|
|
953
|
+
# },
|
|
954
|
+
# },
|
|
955
|
+
# vpc_configuration: {
|
|
956
|
+
# availability_zones: [
|
|
957
|
+
# {
|
|
958
|
+
# subnet_id: "subnet-8360a9e7",
|
|
959
|
+
# zone_id: "use1-az1",
|
|
960
|
+
# zone_name: "us-east-1a",
|
|
961
|
+
# },
|
|
962
|
+
# {
|
|
963
|
+
# subnet_id: "subnet-b7d581c0",
|
|
964
|
+
# zone_id: "use1-az2",
|
|
965
|
+
# zone_name: "us-east-1b",
|
|
966
|
+
# },
|
|
967
|
+
# ],
|
|
968
|
+
# security_groups: [
|
|
969
|
+
# {
|
|
970
|
+
# security_group_id: "sg-903004f8",
|
|
971
|
+
# },
|
|
972
|
+
# ],
|
|
973
|
+
# vpc_id: "vpc-1a2b3c4d",
|
|
974
|
+
# },
|
|
975
|
+
# },
|
|
976
|
+
# proxy_version: "1.40",
|
|
977
|
+
# role_arn: "arn:aws:iam::123456789012:role/my-proxy-role",
|
|
978
|
+
# status: {
|
|
979
|
+
# code: "active",
|
|
980
|
+
# reasons: [
|
|
981
|
+
# ],
|
|
982
|
+
# },
|
|
983
|
+
# }
|
|
984
|
+
#
|
|
985
|
+
# @example Request syntax with placeholder values
|
|
986
|
+
#
|
|
987
|
+
# resp = client.get_proxy({
|
|
988
|
+
# proxy_identifier: "ProxyIdentifier", # required
|
|
989
|
+
# })
|
|
990
|
+
#
|
|
991
|
+
# @example Response structure
|
|
992
|
+
#
|
|
993
|
+
# resp.arn #=> String
|
|
994
|
+
# resp.name #=> String
|
|
995
|
+
# resp.type #=> String, one of "envoy"
|
|
996
|
+
# resp.proxy_version #=> String
|
|
997
|
+
# resp.dns_name #=> String
|
|
998
|
+
# resp.role_arn #=> String
|
|
999
|
+
# resp.network_configuration.ip_configuration.ip_addressing_configuration.ipv4_addressability #=> String, one of "off", "internet-facing", "internal"
|
|
1000
|
+
# resp.network_configuration.ip_configuration.ip_addressing_configuration.ipv6_addressability #=> String, one of "off", "internet-facing", "internal"
|
|
1001
|
+
# resp.network_configuration.vpc_configuration.vpc_id #=> String
|
|
1002
|
+
# resp.network_configuration.vpc_configuration.availability_zones #=> Array
|
|
1003
|
+
# resp.network_configuration.vpc_configuration.availability_zones[0].subnet_id #=> String
|
|
1004
|
+
# resp.network_configuration.vpc_configuration.availability_zones[0].zone_id #=> String
|
|
1005
|
+
# resp.network_configuration.vpc_configuration.availability_zones[0].zone_name #=> String
|
|
1006
|
+
# resp.network_configuration.vpc_configuration.security_groups #=> Array
|
|
1007
|
+
# resp.network_configuration.vpc_configuration.security_groups[0].security_group_id #=> String
|
|
1008
|
+
# resp.status.code #=> String, one of "action-required", "active", "create-failed", "create-in-progress", "deleted", "delete-in-progress", "update-in-progress", "cancel-update-in-progress"
|
|
1009
|
+
# resp.status.reasons #=> Array
|
|
1010
|
+
# resp.status.reasons[0].code #=> String
|
|
1011
|
+
# resp.status.reasons[0].target #=> String
|
|
1012
|
+
# resp.status.reasons[0].message #=> String
|
|
1013
|
+
# resp.configuration_metadata.config_file_hash #=> String
|
|
1014
|
+
# resp.configuration_metadata.config_archive_hash #=> String
|
|
1015
|
+
# resp.configuration_metadata.config_file_last_updated_at #=> Time
|
|
1016
|
+
# resp.configuration_metadata.config_archive_last_updated_at #=> Time
|
|
1017
|
+
# resp.created_at #=> Time
|
|
1018
|
+
# resp.customer_kms_key_arn #=> String
|
|
1019
|
+
#
|
|
1020
|
+
#
|
|
1021
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
|
1022
|
+
#
|
|
1023
|
+
# * proxy_active
|
|
1024
|
+
# * proxy_deleted
|
|
1025
|
+
#
|
|
1026
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elb-proxy-2026-11-20/GetProxy AWS API Documentation
|
|
1027
|
+
#
|
|
1028
|
+
# @overload get_proxy(params = {})
|
|
1029
|
+
# @param [Hash] params ({})
|
|
1030
|
+
def get_proxy(params = {}, options = {})
|
|
1031
|
+
req = build_request(:get_proxy, params)
|
|
1032
|
+
req.send_request(options)
|
|
1033
|
+
end
|
|
1034
|
+
|
|
1035
|
+
# Retrieves the attributes for the specified proxy.
|
|
1036
|
+
#
|
|
1037
|
+
# @option params [required, String] :proxy_identifier
|
|
1038
|
+
# The Amazon Resource Name (ARN) of the proxy.
|
|
1039
|
+
#
|
|
1040
|
+
# @return [Types::GetProxyAttributesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1041
|
+
#
|
|
1042
|
+
# * {Types::GetProxyAttributesResponse#attributes #attributes} => Array<Types::AttributeDetails>
|
|
1043
|
+
#
|
|
1044
|
+
#
|
|
1045
|
+
# @example Example: To get the attributes for a proxy
|
|
1046
|
+
#
|
|
1047
|
+
# # The following example gets the attributes for the specified proxy. The output includes the default value of each
|
|
1048
|
+
# # attribute that you can update.
|
|
1049
|
+
#
|
|
1050
|
+
# resp = client.get_proxy_attributes({
|
|
1051
|
+
# proxy_identifier: "arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef",
|
|
1052
|
+
# })
|
|
1053
|
+
#
|
|
1054
|
+
# resp.to_h outputs the following:
|
|
1055
|
+
# {
|
|
1056
|
+
# attributes: [
|
|
1057
|
+
# {
|
|
1058
|
+
# key: "ddos_protection.syn_cookie.mode",
|
|
1059
|
+
# value: "reactive",
|
|
1060
|
+
# default_value: "reactive",
|
|
1061
|
+
# },
|
|
1062
|
+
# {
|
|
1063
|
+
# key: "deletion_protection.enabled",
|
|
1064
|
+
# value: "true",
|
|
1065
|
+
# default_value: "false",
|
|
1066
|
+
# },
|
|
1067
|
+
# {
|
|
1068
|
+
# key: "envoy.component_log_level",
|
|
1069
|
+
# value: "",
|
|
1070
|
+
# default_value: "",
|
|
1071
|
+
# },
|
|
1072
|
+
# {
|
|
1073
|
+
# key: "envoy.log_level",
|
|
1074
|
+
# value: "warn",
|
|
1075
|
+
# default_value: "warn",
|
|
1076
|
+
# },
|
|
1077
|
+
# {
|
|
1078
|
+
# key: "waf.fail_open.enabled",
|
|
1079
|
+
# value: "false",
|
|
1080
|
+
# default_value: "false",
|
|
1081
|
+
# },
|
|
1082
|
+
# {
|
|
1083
|
+
# key: "waf.web_acl_arn",
|
|
1084
|
+
# value: "",
|
|
1085
|
+
# },
|
|
1086
|
+
# ],
|
|
1087
|
+
# }
|
|
1088
|
+
#
|
|
1089
|
+
# @example Request syntax with placeholder values
|
|
1090
|
+
#
|
|
1091
|
+
# resp = client.get_proxy_attributes({
|
|
1092
|
+
# proxy_identifier: "ProxyIdentifier", # required
|
|
1093
|
+
# })
|
|
1094
|
+
#
|
|
1095
|
+
# @example Response structure
|
|
1096
|
+
#
|
|
1097
|
+
# resp.attributes #=> Array
|
|
1098
|
+
# resp.attributes[0].key #=> String
|
|
1099
|
+
# resp.attributes[0].value #=> String
|
|
1100
|
+
# resp.attributes[0].default_value #=> String
|
|
1101
|
+
#
|
|
1102
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elb-proxy-2026-11-20/GetProxyAttributes AWS API Documentation
|
|
1103
|
+
#
|
|
1104
|
+
# @overload get_proxy_attributes(params = {})
|
|
1105
|
+
# @param [Hash] params ({})
|
|
1106
|
+
def get_proxy_attributes(params = {}, options = {})
|
|
1107
|
+
req = build_request(:get_proxy_attributes, params)
|
|
1108
|
+
req.send_request(options)
|
|
1109
|
+
end
|
|
1110
|
+
|
|
1111
|
+
# Retrieves the configuration file, the configuration archive, or both
|
|
1112
|
+
# for the specified proxy. This operation is separate from GetProxy so
|
|
1113
|
+
# that you can grant access to proxy metadata without granting access to
|
|
1114
|
+
# the configuration content.
|
|
1115
|
+
#
|
|
1116
|
+
# @option params [required, String] :proxy_identifier
|
|
1117
|
+
# The Amazon Resource Name (ARN) of the proxy.
|
|
1118
|
+
#
|
|
1119
|
+
# @option params [Boolean] :include_config_file
|
|
1120
|
+
# Indicates whether to include the configuration file contents in the
|
|
1121
|
+
# response. The default is `false`.
|
|
1122
|
+
#
|
|
1123
|
+
# @option params [Boolean] :include_config_archive
|
|
1124
|
+
# Indicates whether to include the configuration archive contents in the
|
|
1125
|
+
# response. The default is `false`.
|
|
1126
|
+
#
|
|
1127
|
+
# @return [Types::GetProxyConfigurationContentsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1128
|
+
#
|
|
1129
|
+
# * {Types::GetProxyConfigurationContentsResponse#configuration_file_contents #configuration_file_contents} => String
|
|
1130
|
+
# * {Types::GetProxyConfigurationContentsResponse#configuration_archive_contents #configuration_archive_contents} => String
|
|
1131
|
+
# * {Types::GetProxyConfigurationContentsResponse#configuration_metadata #configuration_metadata} => Types::ConfigurationMetadata
|
|
1132
|
+
# * {Types::GetProxyConfigurationContentsResponse#customer_kms_key_arn #customer_kms_key_arn} => String
|
|
1133
|
+
#
|
|
1134
|
+
#
|
|
1135
|
+
# @example Example: To get the configuration for a proxy
|
|
1136
|
+
#
|
|
1137
|
+
# # The following example gets the configuration file for the specified proxy. The configuration archive isn't included.
|
|
1138
|
+
#
|
|
1139
|
+
# resp = client.get_proxy_configuration_contents({
|
|
1140
|
+
# include_config_archive: false,
|
|
1141
|
+
# include_config_file: true,
|
|
1142
|
+
# proxy_identifier: "arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef",
|
|
1143
|
+
# })
|
|
1144
|
+
#
|
|
1145
|
+
# resp.to_h outputs the following:
|
|
1146
|
+
# {
|
|
1147
|
+
# configuration_file_contents: "c3RhdGljX3Jlc291cmNlczoKICBsaXN0ZW5lcnM6IFtdCg==",
|
|
1148
|
+
# configuration_metadata: {
|
|
1149
|
+
# config_file_hash: "29a5eb3bdf714ff29cc52e1a3723894b9f746416e1e541fddfad0a3963aed98c",
|
|
1150
|
+
# config_file_last_updated_at: Time.parse(1795197600),
|
|
1151
|
+
# },
|
|
1152
|
+
# }
|
|
1153
|
+
#
|
|
1154
|
+
# @example Request syntax with placeholder values
|
|
1155
|
+
#
|
|
1156
|
+
# resp = client.get_proxy_configuration_contents({
|
|
1157
|
+
# proxy_identifier: "ProxyIdentifier", # required
|
|
1158
|
+
# include_config_file: false,
|
|
1159
|
+
# include_config_archive: false,
|
|
1160
|
+
# })
|
|
1161
|
+
#
|
|
1162
|
+
# @example Response structure
|
|
1163
|
+
#
|
|
1164
|
+
# resp.configuration_file_contents #=> String
|
|
1165
|
+
# resp.configuration_archive_contents #=> String
|
|
1166
|
+
# resp.configuration_metadata.config_file_hash #=> String
|
|
1167
|
+
# resp.configuration_metadata.config_archive_hash #=> String
|
|
1168
|
+
# resp.configuration_metadata.config_file_last_updated_at #=> Time
|
|
1169
|
+
# resp.configuration_metadata.config_archive_last_updated_at #=> Time
|
|
1170
|
+
# resp.customer_kms_key_arn #=> String
|
|
1171
|
+
#
|
|
1172
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elb-proxy-2026-11-20/GetProxyConfigurationContents AWS API Documentation
|
|
1173
|
+
#
|
|
1174
|
+
# @overload get_proxy_configuration_contents(params = {})
|
|
1175
|
+
# @param [Hash] params ({})
|
|
1176
|
+
def get_proxy_configuration_contents(params = {}, options = {})
|
|
1177
|
+
req = build_request(:get_proxy_configuration_contents, params)
|
|
1178
|
+
req.send_request(options)
|
|
1179
|
+
end
|
|
1180
|
+
|
|
1181
|
+
# Retrieves information about the specified proxy update.
|
|
1182
|
+
#
|
|
1183
|
+
# @option params [required, String] :proxy_identifier
|
|
1184
|
+
# The Amazon Resource Name (ARN) of the proxy.
|
|
1185
|
+
#
|
|
1186
|
+
# @option params [required, String] :update_identifier
|
|
1187
|
+
# The ID of the update.
|
|
1188
|
+
#
|
|
1189
|
+
# @return [Types::GetProxyUpdateResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1190
|
+
#
|
|
1191
|
+
# * {Types::GetProxyUpdateResponse#proxy_arn #proxy_arn} => String
|
|
1192
|
+
# * {Types::GetProxyUpdateResponse#update_id #update_id} => String
|
|
1193
|
+
# * {Types::GetProxyUpdateResponse#state #state} => Types::ProxyUpdateState
|
|
1194
|
+
# * {Types::GetProxyUpdateResponse#details #details} => Types::ProxyUpdateDetails
|
|
1195
|
+
# * {Types::GetProxyUpdateResponse#submitted_at #submitted_at} => Time
|
|
1196
|
+
# * {Types::GetProxyUpdateResponse#validated_at #validated_at} => Time
|
|
1197
|
+
# * {Types::GetProxyUpdateResponse#completed_at #completed_at} => Time
|
|
1198
|
+
#
|
|
1199
|
+
#
|
|
1200
|
+
# @example Example: To get information about a proxy update
|
|
1201
|
+
#
|
|
1202
|
+
# # The following example gets information about the specified update for the specified proxy. The configuration is valid
|
|
1203
|
+
# # and was applied to all proxy nodes.
|
|
1204
|
+
#
|
|
1205
|
+
# resp = client.get_proxy_update({
|
|
1206
|
+
# proxy_identifier: "arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef",
|
|
1207
|
+
# update_identifier: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
|
|
1208
|
+
# })
|
|
1209
|
+
#
|
|
1210
|
+
# resp.to_h outputs the following:
|
|
1211
|
+
# {
|
|
1212
|
+
# completed_at: Time.parse(1795197720),
|
|
1213
|
+
# details: {
|
|
1214
|
+
# configuration: {
|
|
1215
|
+
# new_configuration_metadata: {
|
|
1216
|
+
# config_file_hash: "29a5eb3bdf714ff29cc52e1a3723894b9f746416e1e541fddfad0a3963aed98c",
|
|
1217
|
+
# config_file_last_updated_at: Time.parse(1795197600),
|
|
1218
|
+
# },
|
|
1219
|
+
# },
|
|
1220
|
+
# },
|
|
1221
|
+
# proxy_arn: "arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef",
|
|
1222
|
+
# state: {
|
|
1223
|
+
# propagation_status: "complete",
|
|
1224
|
+
# validation_status: "valid",
|
|
1225
|
+
# },
|
|
1226
|
+
# submitted_at: Time.parse(1795197600),
|
|
1227
|
+
# update_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
|
|
1228
|
+
# validated_at: Time.parse(1795197660),
|
|
1229
|
+
# }
|
|
1230
|
+
#
|
|
1231
|
+
# @example Request syntax with placeholder values
|
|
1232
|
+
#
|
|
1233
|
+
# resp = client.get_proxy_update({
|
|
1234
|
+
# proxy_identifier: "ProxyIdentifier", # required
|
|
1235
|
+
# update_identifier: "ProxyUpdateIdentifier", # required
|
|
1236
|
+
# })
|
|
1237
|
+
#
|
|
1238
|
+
# @example Response structure
|
|
1239
|
+
#
|
|
1240
|
+
# resp.proxy_arn #=> String
|
|
1241
|
+
# resp.update_id #=> String
|
|
1242
|
+
# resp.state.validation_status #=> String, one of "not-validated", "valid", "invalid"
|
|
1243
|
+
# resp.state.propagation_status #=> String, one of "in-progress", "complete", "skipped", "failed", "cancelled"
|
|
1244
|
+
# resp.state.reasons #=> Array
|
|
1245
|
+
# resp.state.reasons[0] #=> String
|
|
1246
|
+
# resp.details.configuration.new_configuration_metadata.config_file_hash #=> String
|
|
1247
|
+
# resp.details.configuration.new_configuration_metadata.config_archive_hash #=> String
|
|
1248
|
+
# resp.details.configuration.new_configuration_metadata.config_file_last_updated_at #=> Time
|
|
1249
|
+
# resp.details.configuration.new_configuration_metadata.config_archive_last_updated_at #=> Time
|
|
1250
|
+
# resp.submitted_at #=> Time
|
|
1251
|
+
# resp.validated_at #=> Time
|
|
1252
|
+
# resp.completed_at #=> Time
|
|
1253
|
+
#
|
|
1254
|
+
#
|
|
1255
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
|
1256
|
+
#
|
|
1257
|
+
# * proxy_update_complete
|
|
1258
|
+
#
|
|
1259
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elb-proxy-2026-11-20/GetProxyUpdate AWS API Documentation
|
|
1260
|
+
#
|
|
1261
|
+
# @overload get_proxy_update(params = {})
|
|
1262
|
+
# @param [Hash] params ({})
|
|
1263
|
+
def get_proxy_update(params = {}, options = {})
|
|
1264
|
+
req = build_request(:get_proxy_update, params)
|
|
1265
|
+
req.send_request(options)
|
|
1266
|
+
end
|
|
1267
|
+
|
|
1268
|
+
# Lists the ACM certificate associations for the specified proxy.
|
|
1269
|
+
#
|
|
1270
|
+
# @option params [required, String] :proxy_identifier
|
|
1271
|
+
# The Amazon Resource Name (ARN) of the proxy.
|
|
1272
|
+
#
|
|
1273
|
+
# @option params [Integer] :max_results
|
|
1274
|
+
# The maximum number of results to return.
|
|
1275
|
+
#
|
|
1276
|
+
# @option params [String] :next_token
|
|
1277
|
+
# A pagination token for the next page of results.
|
|
1278
|
+
#
|
|
1279
|
+
# @return [Types::ListCertificateAssociationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1280
|
+
#
|
|
1281
|
+
# * {Types::ListCertificateAssociationsResponse#items #items} => Array<Types::CertificateAssociation>
|
|
1282
|
+
# * {Types::ListCertificateAssociationsResponse#next_token #next_token} => String
|
|
1283
|
+
#
|
|
1284
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
1285
|
+
#
|
|
1286
|
+
#
|
|
1287
|
+
# @example Example: To list the certificate associations for a proxy
|
|
1288
|
+
#
|
|
1289
|
+
# # The following example lists the ACM certificates associated with the specified proxy.
|
|
1290
|
+
#
|
|
1291
|
+
# resp = client.list_certificate_associations({
|
|
1292
|
+
# proxy_identifier: "arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef",
|
|
1293
|
+
# })
|
|
1294
|
+
#
|
|
1295
|
+
# resp.to_h outputs the following:
|
|
1296
|
+
# {
|
|
1297
|
+
# items: [
|
|
1298
|
+
# {
|
|
1299
|
+
# certificate_arn: "arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012",
|
|
1300
|
+
# created_at: Time.parse(1795195800),
|
|
1301
|
+
# status: {
|
|
1302
|
+
# code: "active",
|
|
1303
|
+
# reasons: [
|
|
1304
|
+
# ],
|
|
1305
|
+
# },
|
|
1306
|
+
# },
|
|
1307
|
+
# ],
|
|
1308
|
+
# }
|
|
1309
|
+
#
|
|
1310
|
+
# @example Request syntax with placeholder values
|
|
1311
|
+
#
|
|
1312
|
+
# resp = client.list_certificate_associations({
|
|
1313
|
+
# proxy_identifier: "ProxyIdentifier", # required
|
|
1314
|
+
# max_results: 1,
|
|
1315
|
+
# next_token: "NextToken",
|
|
1316
|
+
# })
|
|
1317
|
+
#
|
|
1318
|
+
# @example Response structure
|
|
1319
|
+
#
|
|
1320
|
+
# resp.items #=> Array
|
|
1321
|
+
# resp.items[0].certificate_arn #=> String
|
|
1322
|
+
# resp.items[0].status.code #=> String, one of "associate-in-progress", "active", "associate-failed", "disassociate-in-progress", "disassociated"
|
|
1323
|
+
# resp.items[0].status.reasons #=> Array
|
|
1324
|
+
# resp.items[0].status.reasons[0].code #=> String
|
|
1325
|
+
# resp.items[0].status.reasons[0].message #=> String
|
|
1326
|
+
# resp.items[0].created_at #=> Time
|
|
1327
|
+
# resp.next_token #=> String
|
|
1328
|
+
#
|
|
1329
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elb-proxy-2026-11-20/ListCertificateAssociations AWS API Documentation
|
|
1330
|
+
#
|
|
1331
|
+
# @overload list_certificate_associations(params = {})
|
|
1332
|
+
# @param [Hash] params ({})
|
|
1333
|
+
def list_certificate_associations(params = {}, options = {})
|
|
1334
|
+
req = build_request(:list_certificate_associations, params)
|
|
1335
|
+
req.send_request(options)
|
|
1336
|
+
end
|
|
1337
|
+
|
|
1338
|
+
# Lists the proxies owned by the caller account.
|
|
1339
|
+
#
|
|
1340
|
+
# @option params [Integer] :max_results
|
|
1341
|
+
# The maximum number of results to return.
|
|
1342
|
+
#
|
|
1343
|
+
# @option params [String] :next_token
|
|
1344
|
+
# A pagination token for the next page of results.
|
|
1345
|
+
#
|
|
1346
|
+
# @return [Types::ListProxiesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1347
|
+
#
|
|
1348
|
+
# * {Types::ListProxiesResponse#items #items} => Array<Types::ProxySummary>
|
|
1349
|
+
# * {Types::ListProxiesResponse#next_token #next_token} => String
|
|
1350
|
+
#
|
|
1351
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
1352
|
+
#
|
|
1353
|
+
#
|
|
1354
|
+
# @example Example: To list your proxies
|
|
1355
|
+
#
|
|
1356
|
+
# # The following example lists the proxies owned by the calling account.
|
|
1357
|
+
#
|
|
1358
|
+
# resp = client.list_proxies({
|
|
1359
|
+
# })
|
|
1360
|
+
#
|
|
1361
|
+
# resp.to_h outputs the following:
|
|
1362
|
+
# {
|
|
1363
|
+
# items: [
|
|
1364
|
+
# {
|
|
1365
|
+
# name: "my-proxy",
|
|
1366
|
+
# type: "envoy",
|
|
1367
|
+
# arn: "arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef",
|
|
1368
|
+
# created_at: Time.parse(1795194000),
|
|
1369
|
+
# dns_name: "my-proxy-1234567890.elb-proxy.us-east-1.on.aws",
|
|
1370
|
+
# status: {
|
|
1371
|
+
# code: "active",
|
|
1372
|
+
# reasons: [
|
|
1373
|
+
# ],
|
|
1374
|
+
# },
|
|
1375
|
+
# vpc_id: "vpc-1a2b3c4d",
|
|
1376
|
+
# },
|
|
1377
|
+
# ],
|
|
1378
|
+
# }
|
|
1379
|
+
#
|
|
1380
|
+
# @example Request syntax with placeholder values
|
|
1381
|
+
#
|
|
1382
|
+
# resp = client.list_proxies({
|
|
1383
|
+
# max_results: 1,
|
|
1384
|
+
# next_token: "NextToken",
|
|
1385
|
+
# })
|
|
1386
|
+
#
|
|
1387
|
+
# @example Response structure
|
|
1388
|
+
#
|
|
1389
|
+
# resp.items #=> Array
|
|
1390
|
+
# resp.items[0].arn #=> String
|
|
1391
|
+
# resp.items[0].name #=> String
|
|
1392
|
+
# resp.items[0].type #=> String, one of "envoy"
|
|
1393
|
+
# resp.items[0].dns_name #=> String
|
|
1394
|
+
# resp.items[0].vpc_id #=> String
|
|
1395
|
+
# resp.items[0].status.code #=> String, one of "action-required", "active", "create-failed", "create-in-progress", "deleted", "delete-in-progress", "update-in-progress", "cancel-update-in-progress"
|
|
1396
|
+
# resp.items[0].status.reasons #=> Array
|
|
1397
|
+
# resp.items[0].status.reasons[0].code #=> String
|
|
1398
|
+
# resp.items[0].status.reasons[0].target #=> String
|
|
1399
|
+
# resp.items[0].status.reasons[0].message #=> String
|
|
1400
|
+
# resp.items[0].created_at #=> Time
|
|
1401
|
+
# resp.next_token #=> String
|
|
1402
|
+
#
|
|
1403
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elb-proxy-2026-11-20/ListProxies AWS API Documentation
|
|
1404
|
+
#
|
|
1405
|
+
# @overload list_proxies(params = {})
|
|
1406
|
+
# @param [Hash] params ({})
|
|
1407
|
+
def list_proxies(params = {}, options = {})
|
|
1408
|
+
req = build_request(:list_proxies, params)
|
|
1409
|
+
req.send_request(options)
|
|
1410
|
+
end
|
|
1411
|
+
|
|
1412
|
+
# Lists the updates for the specified proxy, most recently submitted
|
|
1413
|
+
# first.
|
|
1414
|
+
#
|
|
1415
|
+
# @option params [required, String] :proxy_identifier
|
|
1416
|
+
# The Amazon Resource Name (ARN) of the proxy.
|
|
1417
|
+
#
|
|
1418
|
+
# @option params [Integer] :max_results
|
|
1419
|
+
# The maximum number of results to return.
|
|
1420
|
+
#
|
|
1421
|
+
# @option params [String] :next_token
|
|
1422
|
+
# A pagination token for the next page of results.
|
|
1423
|
+
#
|
|
1424
|
+
# @return [Types::ListProxyUpdatesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1425
|
+
#
|
|
1426
|
+
# * {Types::ListProxyUpdatesResponse#items #items} => Array<Types::ProxyUpdateSummary>
|
|
1427
|
+
# * {Types::ListProxyUpdatesResponse#next_token #next_token} => String
|
|
1428
|
+
#
|
|
1429
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
1430
|
+
#
|
|
1431
|
+
#
|
|
1432
|
+
# @example Example: To list the updates for a proxy
|
|
1433
|
+
#
|
|
1434
|
+
# # The following example lists the updates for the specified proxy.
|
|
1435
|
+
#
|
|
1436
|
+
# resp = client.list_proxy_updates({
|
|
1437
|
+
# proxy_identifier: "arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef",
|
|
1438
|
+
# })
|
|
1439
|
+
#
|
|
1440
|
+
# resp.to_h outputs the following:
|
|
1441
|
+
# {
|
|
1442
|
+
# items: [
|
|
1443
|
+
# {
|
|
1444
|
+
# type: "update-proxy-configuration",
|
|
1445
|
+
# completed_at: Time.parse(1795197720),
|
|
1446
|
+
# propagation_status: "complete",
|
|
1447
|
+
# submitted_at: Time.parse(1795197600),
|
|
1448
|
+
# update_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
|
|
1449
|
+
# validated_at: Time.parse(1795197660),
|
|
1450
|
+
# validation_status: "valid",
|
|
1451
|
+
# },
|
|
1452
|
+
# ],
|
|
1453
|
+
# }
|
|
1454
|
+
#
|
|
1455
|
+
# @example Request syntax with placeholder values
|
|
1456
|
+
#
|
|
1457
|
+
# resp = client.list_proxy_updates({
|
|
1458
|
+
# proxy_identifier: "ProxyIdentifier", # required
|
|
1459
|
+
# max_results: 1,
|
|
1460
|
+
# next_token: "NextToken",
|
|
1461
|
+
# })
|
|
1462
|
+
#
|
|
1463
|
+
# @example Response structure
|
|
1464
|
+
#
|
|
1465
|
+
# resp.items #=> Array
|
|
1466
|
+
# resp.items[0].update_id #=> String
|
|
1467
|
+
# resp.items[0].type #=> String, one of "update-proxy-configuration"
|
|
1468
|
+
# resp.items[0].validation_status #=> String, one of "not-validated", "valid", "invalid"
|
|
1469
|
+
# resp.items[0].propagation_status #=> String, one of "in-progress", "complete", "skipped", "failed", "cancelled"
|
|
1470
|
+
# resp.items[0].submitted_at #=> Time
|
|
1471
|
+
# resp.items[0].validated_at #=> Time
|
|
1472
|
+
# resp.items[0].completed_at #=> Time
|
|
1473
|
+
# resp.next_token #=> String
|
|
1474
|
+
#
|
|
1475
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elb-proxy-2026-11-20/ListProxyUpdates AWS API Documentation
|
|
1476
|
+
#
|
|
1477
|
+
# @overload list_proxy_updates(params = {})
|
|
1478
|
+
# @param [Hash] params ({})
|
|
1479
|
+
def list_proxy_updates(params = {}, options = {})
|
|
1480
|
+
req = build_request(:list_proxy_updates, params)
|
|
1481
|
+
req.send_request(options)
|
|
1482
|
+
end
|
|
1483
|
+
|
|
1484
|
+
# Lists the available proxy versions.
|
|
1485
|
+
#
|
|
1486
|
+
# @option params [required, String] :type
|
|
1487
|
+
# The type of proxy.
|
|
1488
|
+
#
|
|
1489
|
+
# @option params [Integer] :max_results
|
|
1490
|
+
# The maximum number of results to return.
|
|
1491
|
+
#
|
|
1492
|
+
# @option params [String] :next_token
|
|
1493
|
+
# A pagination token for the next page of results.
|
|
1494
|
+
#
|
|
1495
|
+
# @return [Types::ListProxyVersionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1496
|
+
#
|
|
1497
|
+
# * {Types::ListProxyVersionsResponse#items #items} => Array<Types::ProxyVersionSummary>
|
|
1498
|
+
# * {Types::ListProxyVersionsResponse#next_token #next_token} => String
|
|
1499
|
+
#
|
|
1500
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
1501
|
+
#
|
|
1502
|
+
#
|
|
1503
|
+
# @example Example: To list the proxy versions
|
|
1504
|
+
#
|
|
1505
|
+
# # The following example lists the Envoy versions that you can specify when you create a proxy or update its version.
|
|
1506
|
+
#
|
|
1507
|
+
# resp = client.list_proxy_versions({
|
|
1508
|
+
# type: "envoy",
|
|
1509
|
+
# })
|
|
1510
|
+
#
|
|
1511
|
+
# resp.to_h outputs the following:
|
|
1512
|
+
# {
|
|
1513
|
+
# items: [
|
|
1514
|
+
# {
|
|
1515
|
+
# version: "1.40",
|
|
1516
|
+
# type: "envoy",
|
|
1517
|
+
# },
|
|
1518
|
+
# {
|
|
1519
|
+
# version: "1.41",
|
|
1520
|
+
# type: "envoy",
|
|
1521
|
+
# },
|
|
1522
|
+
# ],
|
|
1523
|
+
# }
|
|
1524
|
+
#
|
|
1525
|
+
# @example Request syntax with placeholder values
|
|
1526
|
+
#
|
|
1527
|
+
# resp = client.list_proxy_versions({
|
|
1528
|
+
# type: "envoy", # required, accepts envoy
|
|
1529
|
+
# max_results: 1,
|
|
1530
|
+
# next_token: "NextToken",
|
|
1531
|
+
# })
|
|
1532
|
+
#
|
|
1533
|
+
# @example Response structure
|
|
1534
|
+
#
|
|
1535
|
+
# resp.items #=> Array
|
|
1536
|
+
# resp.items[0].type #=> String, one of "envoy"
|
|
1537
|
+
# resp.items[0].version #=> String
|
|
1538
|
+
# resp.next_token #=> String
|
|
1539
|
+
#
|
|
1540
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elb-proxy-2026-11-20/ListProxyVersions AWS API Documentation
|
|
1541
|
+
#
|
|
1542
|
+
# @overload list_proxy_versions(params = {})
|
|
1543
|
+
# @param [Hash] params ({})
|
|
1544
|
+
def list_proxy_versions(params = {}, options = {})
|
|
1545
|
+
req = build_request(:list_proxy_versions, params)
|
|
1546
|
+
req.send_request(options)
|
|
1547
|
+
end
|
|
1548
|
+
|
|
1549
|
+
# Lists the tags for the specified resource.
|
|
1550
|
+
#
|
|
1551
|
+
# @option params [required, String] :resource_arn
|
|
1552
|
+
# The Amazon Resource Name (ARN) of the resource.
|
|
1553
|
+
#
|
|
1554
|
+
# @return [Types::ListTagsForResourceOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1555
|
+
#
|
|
1556
|
+
# * {Types::ListTagsForResourceOutput#tags #tags} => Hash<String,String>
|
|
1557
|
+
#
|
|
1558
|
+
#
|
|
1559
|
+
# @example Example: To list the tags for a proxy
|
|
1560
|
+
#
|
|
1561
|
+
# # The following example lists the tags for the specified proxy.
|
|
1562
|
+
#
|
|
1563
|
+
# resp = client.list_tags_for_resource({
|
|
1564
|
+
# resource_arn: "arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef",
|
|
1565
|
+
# })
|
|
1566
|
+
#
|
|
1567
|
+
# resp.to_h outputs the following:
|
|
1568
|
+
# {
|
|
1569
|
+
# tags: {
|
|
1570
|
+
# "Environment" => "production",
|
|
1571
|
+
# "Team" => "networking",
|
|
1572
|
+
# },
|
|
1573
|
+
# }
|
|
1574
|
+
#
|
|
1575
|
+
# @example Request syntax with placeholder values
|
|
1576
|
+
#
|
|
1577
|
+
# resp = client.list_tags_for_resource({
|
|
1578
|
+
# resource_arn: "AmazonResourceName", # required
|
|
1579
|
+
# })
|
|
1580
|
+
#
|
|
1581
|
+
# @example Response structure
|
|
1582
|
+
#
|
|
1583
|
+
# resp.tags #=> Hash
|
|
1584
|
+
# resp.tags["TagKey"] #=> String
|
|
1585
|
+
#
|
|
1586
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elb-proxy-2026-11-20/ListTagsForResource AWS API Documentation
|
|
1587
|
+
#
|
|
1588
|
+
# @overload list_tags_for_resource(params = {})
|
|
1589
|
+
# @param [Hash] params ({})
|
|
1590
|
+
def list_tags_for_resource(params = {}, options = {})
|
|
1591
|
+
req = build_request(:list_tags_for_resource, params)
|
|
1592
|
+
req.send_request(options)
|
|
1593
|
+
end
|
|
1594
|
+
|
|
1595
|
+
# Adds the specified tags to the specified resource.
|
|
1596
|
+
#
|
|
1597
|
+
# @option params [required, String] :resource_arn
|
|
1598
|
+
# The Amazon Resource Name (ARN) of the resource.
|
|
1599
|
+
#
|
|
1600
|
+
# @option params [required, Hash<String,String>] :tags
|
|
1601
|
+
# The tags for the resource.
|
|
1602
|
+
#
|
|
1603
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1604
|
+
#
|
|
1605
|
+
#
|
|
1606
|
+
# @example Example: To add tags to a proxy
|
|
1607
|
+
#
|
|
1608
|
+
# # The following example adds the specified tags to the specified proxy.
|
|
1609
|
+
#
|
|
1610
|
+
# resp = client.tag_resource({
|
|
1611
|
+
# resource_arn: "arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef",
|
|
1612
|
+
# tags: {
|
|
1613
|
+
# "Environment" => "production",
|
|
1614
|
+
# "Team" => "networking",
|
|
1615
|
+
# },
|
|
1616
|
+
# })
|
|
1617
|
+
#
|
|
1618
|
+
# resp.to_h outputs the following:
|
|
1619
|
+
# {
|
|
1620
|
+
# }
|
|
1621
|
+
#
|
|
1622
|
+
# @example Request syntax with placeholder values
|
|
1623
|
+
#
|
|
1624
|
+
# resp = client.tag_resource({
|
|
1625
|
+
# resource_arn: "AmazonResourceName", # required
|
|
1626
|
+
# tags: { # required
|
|
1627
|
+
# "TagKey" => "TagValue",
|
|
1628
|
+
# },
|
|
1629
|
+
# })
|
|
1630
|
+
#
|
|
1631
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elb-proxy-2026-11-20/TagResource AWS API Documentation
|
|
1632
|
+
#
|
|
1633
|
+
# @overload tag_resource(params = {})
|
|
1634
|
+
# @param [Hash] params ({})
|
|
1635
|
+
def tag_resource(params = {}, options = {})
|
|
1636
|
+
req = build_request(:tag_resource, params)
|
|
1637
|
+
req.send_request(options)
|
|
1638
|
+
end
|
|
1639
|
+
|
|
1640
|
+
# Removes the specified tags from the specified resource.
|
|
1641
|
+
#
|
|
1642
|
+
# @option params [required, String] :resource_arn
|
|
1643
|
+
# The Amazon Resource Name (ARN) of the resource.
|
|
1644
|
+
#
|
|
1645
|
+
# @option params [required, Array<String>] :tag_keys
|
|
1646
|
+
# The tag keys of the tags to remove.
|
|
1647
|
+
#
|
|
1648
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1649
|
+
#
|
|
1650
|
+
#
|
|
1651
|
+
# @example Example: To remove tags from a proxy
|
|
1652
|
+
#
|
|
1653
|
+
# # The following example removes the specified tags from the specified proxy.
|
|
1654
|
+
#
|
|
1655
|
+
# resp = client.untag_resource({
|
|
1656
|
+
# resource_arn: "arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef",
|
|
1657
|
+
# tag_keys: [
|
|
1658
|
+
# "Team",
|
|
1659
|
+
# ],
|
|
1660
|
+
# })
|
|
1661
|
+
#
|
|
1662
|
+
# resp.to_h outputs the following:
|
|
1663
|
+
# {
|
|
1664
|
+
# }
|
|
1665
|
+
#
|
|
1666
|
+
# @example Request syntax with placeholder values
|
|
1667
|
+
#
|
|
1668
|
+
# resp = client.untag_resource({
|
|
1669
|
+
# resource_arn: "AmazonResourceName", # required
|
|
1670
|
+
# tag_keys: ["TagKey"], # required
|
|
1671
|
+
# })
|
|
1672
|
+
#
|
|
1673
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elb-proxy-2026-11-20/UntagResource AWS API Documentation
|
|
1674
|
+
#
|
|
1675
|
+
# @overload untag_resource(params = {})
|
|
1676
|
+
# @param [Hash] params ({})
|
|
1677
|
+
def untag_resource(params = {}, options = {})
|
|
1678
|
+
req = build_request(:untag_resource, params)
|
|
1679
|
+
req.send_request(options)
|
|
1680
|
+
end
|
|
1681
|
+
|
|
1682
|
+
# Updates the attributes for the specified proxy.
|
|
1683
|
+
#
|
|
1684
|
+
# @option params [required, String] :proxy_identifier
|
|
1685
|
+
# The Amazon Resource Name (ARN) of the proxy.
|
|
1686
|
+
#
|
|
1687
|
+
# @option params [required, Array<Types::Attribute>] :attributes
|
|
1688
|
+
# The attributes to update. Attributes that you don't specify are
|
|
1689
|
+
# unchanged.
|
|
1690
|
+
#
|
|
1691
|
+
# @return [Types::UpdateProxyAttributesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1692
|
+
#
|
|
1693
|
+
# * {Types::UpdateProxyAttributesResponse#attributes #attributes} => Array<Types::AttributeDetails>
|
|
1694
|
+
#
|
|
1695
|
+
#
|
|
1696
|
+
# @example Example: To enable deletion protection
|
|
1697
|
+
#
|
|
1698
|
+
# # The following example enables deletion protection for the specified proxy.
|
|
1699
|
+
#
|
|
1700
|
+
# resp = client.update_proxy_attributes({
|
|
1701
|
+
# attributes: [
|
|
1702
|
+
# {
|
|
1703
|
+
# key: "deletion_protection.enabled",
|
|
1704
|
+
# value: "true",
|
|
1705
|
+
# },
|
|
1706
|
+
# ],
|
|
1707
|
+
# proxy_identifier: "arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef",
|
|
1708
|
+
# })
|
|
1709
|
+
#
|
|
1710
|
+
# resp.to_h outputs the following:
|
|
1711
|
+
# {
|
|
1712
|
+
# attributes: [
|
|
1713
|
+
# {
|
|
1714
|
+
# key: "ddos_protection.syn_cookie.mode",
|
|
1715
|
+
# value: "reactive",
|
|
1716
|
+
# default_value: "reactive",
|
|
1717
|
+
# },
|
|
1718
|
+
# {
|
|
1719
|
+
# key: "deletion_protection.enabled",
|
|
1720
|
+
# value: "true",
|
|
1721
|
+
# default_value: "false",
|
|
1722
|
+
# },
|
|
1723
|
+
# {
|
|
1724
|
+
# key: "envoy.component_log_level",
|
|
1725
|
+
# value: "",
|
|
1726
|
+
# default_value: "",
|
|
1727
|
+
# },
|
|
1728
|
+
# {
|
|
1729
|
+
# key: "envoy.log_level",
|
|
1730
|
+
# value: "warn",
|
|
1731
|
+
# default_value: "warn",
|
|
1732
|
+
# },
|
|
1733
|
+
# {
|
|
1734
|
+
# key: "waf.fail_open.enabled",
|
|
1735
|
+
# value: "false",
|
|
1736
|
+
# default_value: "false",
|
|
1737
|
+
# },
|
|
1738
|
+
# {
|
|
1739
|
+
# key: "waf.web_acl_arn",
|
|
1740
|
+
# value: "",
|
|
1741
|
+
# },
|
|
1742
|
+
# ],
|
|
1743
|
+
# }
|
|
1744
|
+
#
|
|
1745
|
+
# @example Example: To change the Envoy log level
|
|
1746
|
+
#
|
|
1747
|
+
# # The following example changes the Envoy log level for the specified proxy to debug.
|
|
1748
|
+
#
|
|
1749
|
+
# resp = client.update_proxy_attributes({
|
|
1750
|
+
# attributes: [
|
|
1751
|
+
# {
|
|
1752
|
+
# key: "envoy.log_level",
|
|
1753
|
+
# value: "debug",
|
|
1754
|
+
# },
|
|
1755
|
+
# ],
|
|
1756
|
+
# proxy_identifier: "arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef",
|
|
1757
|
+
# })
|
|
1758
|
+
#
|
|
1759
|
+
# resp.to_h outputs the following:
|
|
1760
|
+
# {
|
|
1761
|
+
# attributes: [
|
|
1762
|
+
# {
|
|
1763
|
+
# key: "ddos_protection.syn_cookie.mode",
|
|
1764
|
+
# value: "reactive",
|
|
1765
|
+
# default_value: "reactive",
|
|
1766
|
+
# },
|
|
1767
|
+
# {
|
|
1768
|
+
# key: "deletion_protection.enabled",
|
|
1769
|
+
# value: "false",
|
|
1770
|
+
# default_value: "false",
|
|
1771
|
+
# },
|
|
1772
|
+
# {
|
|
1773
|
+
# key: "envoy.component_log_level",
|
|
1774
|
+
# value: "",
|
|
1775
|
+
# default_value: "",
|
|
1776
|
+
# },
|
|
1777
|
+
# {
|
|
1778
|
+
# key: "envoy.log_level",
|
|
1779
|
+
# value: "debug",
|
|
1780
|
+
# default_value: "warn",
|
|
1781
|
+
# },
|
|
1782
|
+
# {
|
|
1783
|
+
# key: "waf.fail_open.enabled",
|
|
1784
|
+
# value: "false",
|
|
1785
|
+
# default_value: "false",
|
|
1786
|
+
# },
|
|
1787
|
+
# {
|
|
1788
|
+
# key: "waf.web_acl_arn",
|
|
1789
|
+
# value: "",
|
|
1790
|
+
# },
|
|
1791
|
+
# ],
|
|
1792
|
+
# }
|
|
1793
|
+
#
|
|
1794
|
+
# @example Example: To change the log level for specific Envoy components
|
|
1795
|
+
#
|
|
1796
|
+
# # The following example changes the log level for the http and router Envoy components on the specified proxy to debug.
|
|
1797
|
+
# # Components that aren't specified use the log level set by envoy.log_level.
|
|
1798
|
+
#
|
|
1799
|
+
# resp = client.update_proxy_attributes({
|
|
1800
|
+
# attributes: [
|
|
1801
|
+
# {
|
|
1802
|
+
# key: "envoy.component_log_level",
|
|
1803
|
+
# value: "http:debug,router:debug",
|
|
1804
|
+
# },
|
|
1805
|
+
# ],
|
|
1806
|
+
# proxy_identifier: "arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef",
|
|
1807
|
+
# })
|
|
1808
|
+
#
|
|
1809
|
+
# resp.to_h outputs the following:
|
|
1810
|
+
# {
|
|
1811
|
+
# attributes: [
|
|
1812
|
+
# {
|
|
1813
|
+
# key: "ddos_protection.syn_cookie.mode",
|
|
1814
|
+
# value: "reactive",
|
|
1815
|
+
# default_value: "reactive",
|
|
1816
|
+
# },
|
|
1817
|
+
# {
|
|
1818
|
+
# key: "deletion_protection.enabled",
|
|
1819
|
+
# value: "false",
|
|
1820
|
+
# default_value: "false",
|
|
1821
|
+
# },
|
|
1822
|
+
# {
|
|
1823
|
+
# key: "envoy.component_log_level",
|
|
1824
|
+
# value: "http:debug,router:debug",
|
|
1825
|
+
# default_value: "",
|
|
1826
|
+
# },
|
|
1827
|
+
# {
|
|
1828
|
+
# key: "envoy.log_level",
|
|
1829
|
+
# value: "warn",
|
|
1830
|
+
# default_value: "warn",
|
|
1831
|
+
# },
|
|
1832
|
+
# {
|
|
1833
|
+
# key: "waf.fail_open.enabled",
|
|
1834
|
+
# value: "false",
|
|
1835
|
+
# default_value: "false",
|
|
1836
|
+
# },
|
|
1837
|
+
# {
|
|
1838
|
+
# key: "waf.web_acl_arn",
|
|
1839
|
+
# value: "",
|
|
1840
|
+
# },
|
|
1841
|
+
# ],
|
|
1842
|
+
# }
|
|
1843
|
+
#
|
|
1844
|
+
# @example Example: To enable AWS WAF fail open
|
|
1845
|
+
#
|
|
1846
|
+
# # The following example enables AWS WAF fail open for the specified proxy.
|
|
1847
|
+
#
|
|
1848
|
+
# resp = client.update_proxy_attributes({
|
|
1849
|
+
# attributes: [
|
|
1850
|
+
# {
|
|
1851
|
+
# key: "waf.fail_open.enabled",
|
|
1852
|
+
# value: "true",
|
|
1853
|
+
# },
|
|
1854
|
+
# ],
|
|
1855
|
+
# proxy_identifier: "arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef",
|
|
1856
|
+
# })
|
|
1857
|
+
#
|
|
1858
|
+
# resp.to_h outputs the following:
|
|
1859
|
+
# {
|
|
1860
|
+
# attributes: [
|
|
1861
|
+
# {
|
|
1862
|
+
# key: "ddos_protection.syn_cookie.mode",
|
|
1863
|
+
# value: "reactive",
|
|
1864
|
+
# default_value: "reactive",
|
|
1865
|
+
# },
|
|
1866
|
+
# {
|
|
1867
|
+
# key: "deletion_protection.enabled",
|
|
1868
|
+
# value: "false",
|
|
1869
|
+
# default_value: "false",
|
|
1870
|
+
# },
|
|
1871
|
+
# {
|
|
1872
|
+
# key: "envoy.component_log_level",
|
|
1873
|
+
# value: "",
|
|
1874
|
+
# default_value: "",
|
|
1875
|
+
# },
|
|
1876
|
+
# {
|
|
1877
|
+
# key: "envoy.log_level",
|
|
1878
|
+
# value: "warn",
|
|
1879
|
+
# default_value: "warn",
|
|
1880
|
+
# },
|
|
1881
|
+
# {
|
|
1882
|
+
# key: "waf.fail_open.enabled",
|
|
1883
|
+
# value: "true",
|
|
1884
|
+
# default_value: "false",
|
|
1885
|
+
# },
|
|
1886
|
+
# {
|
|
1887
|
+
# key: "waf.web_acl_arn",
|
|
1888
|
+
# value: "",
|
|
1889
|
+
# },
|
|
1890
|
+
# ],
|
|
1891
|
+
# }
|
|
1892
|
+
#
|
|
1893
|
+
# @example Request syntax with placeholder values
|
|
1894
|
+
#
|
|
1895
|
+
# resp = client.update_proxy_attributes({
|
|
1896
|
+
# proxy_identifier: "ProxyIdentifier", # required
|
|
1897
|
+
# attributes: [ # required
|
|
1898
|
+
# {
|
|
1899
|
+
# key: "ProxyAttributeKey", # required
|
|
1900
|
+
# value: "ProxyAttributeValue", # required
|
|
1901
|
+
# },
|
|
1902
|
+
# ],
|
|
1903
|
+
# })
|
|
1904
|
+
#
|
|
1905
|
+
# @example Response structure
|
|
1906
|
+
#
|
|
1907
|
+
# resp.attributes #=> Array
|
|
1908
|
+
# resp.attributes[0].key #=> String
|
|
1909
|
+
# resp.attributes[0].value #=> String
|
|
1910
|
+
# resp.attributes[0].default_value #=> String
|
|
1911
|
+
#
|
|
1912
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elb-proxy-2026-11-20/UpdateProxyAttributes AWS API Documentation
|
|
1913
|
+
#
|
|
1914
|
+
# @overload update_proxy_attributes(params = {})
|
|
1915
|
+
# @param [Hash] params ({})
|
|
1916
|
+
def update_proxy_attributes(params = {}, options = {})
|
|
1917
|
+
req = build_request(:update_proxy_attributes, params)
|
|
1918
|
+
req.send_request(options)
|
|
1919
|
+
end
|
|
1920
|
+
|
|
1921
|
+
# Updates the configuration for the specified proxy. You can update the
|
|
1922
|
+
# configuration file, the configuration archive, or both.
|
|
1923
|
+
#
|
|
1924
|
+
# @option params [required, String] :proxy_identifier
|
|
1925
|
+
# The Amazon Resource Name (ARN) of the proxy.
|
|
1926
|
+
#
|
|
1927
|
+
# @option params [Types::ConfigurationFile] :configuration_file
|
|
1928
|
+
# The updated configuration file for the proxy. If you don't specify a
|
|
1929
|
+
# value, the existing configuration file is unchanged.
|
|
1930
|
+
#
|
|
1931
|
+
# @option params [Types::ConfigurationArchive] :configuration_archive
|
|
1932
|
+
# The updated configuration archive for the proxy. If you don't specify
|
|
1933
|
+
# a value, the existing configuration archive is unchanged.
|
|
1934
|
+
#
|
|
1935
|
+
# @option params [Boolean] :reset_configuration_archive
|
|
1936
|
+
# Indicates whether to remove the configuration archive from the proxy.
|
|
1937
|
+
#
|
|
1938
|
+
# @option params [String] :customer_kms_key_arn
|
|
1939
|
+
# The Amazon Resource Name (ARN) of the customer managed KMS key used to
|
|
1940
|
+
# encrypt the proxy's configuration content. Specify a new ARN to set
|
|
1941
|
+
# or rotate the key. If you don't specify a value, the existing key is
|
|
1942
|
+
# unchanged.
|
|
1943
|
+
#
|
|
1944
|
+
# @option params [Boolean] :reset_customer_kms_key_arn
|
|
1945
|
+
# Indicates whether to remove the customer managed KMS key from the
|
|
1946
|
+
# proxy and use the default service-owned key.
|
|
1947
|
+
#
|
|
1948
|
+
# @return [Types::UpdateProxyConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1949
|
+
#
|
|
1950
|
+
# * {Types::UpdateProxyConfigurationResponse#configuration_metadata #configuration_metadata} => Types::ConfigurationMetadata
|
|
1951
|
+
# * {Types::UpdateProxyConfigurationResponse#update_id #update_id} => String
|
|
1952
|
+
# * {Types::UpdateProxyConfigurationResponse#customer_kms_key_arn #customer_kms_key_arn} => String
|
|
1953
|
+
#
|
|
1954
|
+
#
|
|
1955
|
+
# @example Example: To update the configuration for a proxy
|
|
1956
|
+
#
|
|
1957
|
+
# # The following example replaces the configuration file for the specified proxy. You can use the update ID in the output
|
|
1958
|
+
# # to track the progress of the update.
|
|
1959
|
+
#
|
|
1960
|
+
# resp = client.update_proxy_configuration({
|
|
1961
|
+
# configuration_file: {
|
|
1962
|
+
# configuration_bytes: "c3RhdGljX3Jlc291cmNlczoKICBsaXN0ZW5lcnM6IFtdCg==",
|
|
1963
|
+
# },
|
|
1964
|
+
# proxy_identifier: "arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef",
|
|
1965
|
+
# })
|
|
1966
|
+
#
|
|
1967
|
+
# resp.to_h outputs the following:
|
|
1968
|
+
# {
|
|
1969
|
+
# configuration_metadata: {
|
|
1970
|
+
# config_file_hash: "29a5eb3bdf714ff29cc52e1a3723894b9f746416e1e541fddfad0a3963aed98c",
|
|
1971
|
+
# config_file_last_updated_at: Time.parse(1795197600),
|
|
1972
|
+
# },
|
|
1973
|
+
# update_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
|
|
1974
|
+
# }
|
|
1975
|
+
#
|
|
1976
|
+
# @example Request syntax with placeholder values
|
|
1977
|
+
#
|
|
1978
|
+
# resp = client.update_proxy_configuration({
|
|
1979
|
+
# proxy_identifier: "ProxyIdentifier", # required
|
|
1980
|
+
# configuration_file: {
|
|
1981
|
+
# configuration_bytes: "data", # required
|
|
1982
|
+
# },
|
|
1983
|
+
# configuration_archive: {
|
|
1984
|
+
# configuration_bytes: "data", # required
|
|
1985
|
+
# },
|
|
1986
|
+
# reset_configuration_archive: false,
|
|
1987
|
+
# customer_kms_key_arn: "CustomerKmsKeyArn",
|
|
1988
|
+
# reset_customer_kms_key_arn: false,
|
|
1989
|
+
# })
|
|
1990
|
+
#
|
|
1991
|
+
# @example Response structure
|
|
1992
|
+
#
|
|
1993
|
+
# resp.configuration_metadata.config_file_hash #=> String
|
|
1994
|
+
# resp.configuration_metadata.config_archive_hash #=> String
|
|
1995
|
+
# resp.configuration_metadata.config_file_last_updated_at #=> Time
|
|
1996
|
+
# resp.configuration_metadata.config_archive_last_updated_at #=> Time
|
|
1997
|
+
# resp.update_id #=> String
|
|
1998
|
+
# resp.customer_kms_key_arn #=> String
|
|
1999
|
+
#
|
|
2000
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elb-proxy-2026-11-20/UpdateProxyConfiguration AWS API Documentation
|
|
2001
|
+
#
|
|
2002
|
+
# @overload update_proxy_configuration(params = {})
|
|
2003
|
+
# @param [Hash] params ({})
|
|
2004
|
+
def update_proxy_configuration(params = {}, options = {})
|
|
2005
|
+
req = build_request(:update_proxy_configuration, params)
|
|
2006
|
+
req.send_request(options)
|
|
2007
|
+
end
|
|
2008
|
+
|
|
2009
|
+
# Updates the network configuration for the specified proxy.
|
|
2010
|
+
#
|
|
2011
|
+
# @option params [required, String] :proxy_identifier
|
|
2012
|
+
# The Amazon Resource Name (ARN) of the proxy.
|
|
2013
|
+
#
|
|
2014
|
+
# @option params [required, Types::UpdateProxyVpcConfiguration] :vpc_configuration
|
|
2015
|
+
# The updated VPC configuration for the proxy.
|
|
2016
|
+
#
|
|
2017
|
+
# @return [Types::UpdateProxyNetworkConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2018
|
+
#
|
|
2019
|
+
# * {Types::UpdateProxyNetworkConfigurationResponse#arn #arn} => String
|
|
2020
|
+
# * {Types::UpdateProxyNetworkConfigurationResponse#name #name} => String
|
|
2021
|
+
# * {Types::UpdateProxyNetworkConfigurationResponse#type #type} => String
|
|
2022
|
+
# * {Types::UpdateProxyNetworkConfigurationResponse#proxy_version #proxy_version} => String
|
|
2023
|
+
# * {Types::UpdateProxyNetworkConfigurationResponse#dns_name #dns_name} => String
|
|
2024
|
+
# * {Types::UpdateProxyNetworkConfigurationResponse#role_arn #role_arn} => String
|
|
2025
|
+
# * {Types::UpdateProxyNetworkConfigurationResponse#network_configuration #network_configuration} => Types::ProxyNetworkConfiguration
|
|
2026
|
+
# * {Types::UpdateProxyNetworkConfigurationResponse#status #status} => Types::ProxyStatus
|
|
2027
|
+
# * {Types::UpdateProxyNetworkConfigurationResponse#configuration_metadata #configuration_metadata} => Types::ConfigurationMetadata
|
|
2028
|
+
# * {Types::UpdateProxyNetworkConfigurationResponse#created_at #created_at} => Time
|
|
2029
|
+
# * {Types::UpdateProxyNetworkConfigurationResponse#customer_kms_key_arn #customer_kms_key_arn} => String
|
|
2030
|
+
#
|
|
2031
|
+
#
|
|
2032
|
+
# @example Example: To update the network configuration for a proxy
|
|
2033
|
+
#
|
|
2034
|
+
# # The following example replaces the security groups for the specified proxy. The subnets don't change.
|
|
2035
|
+
#
|
|
2036
|
+
# resp = client.update_proxy_network_configuration({
|
|
2037
|
+
# proxy_identifier: "arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef",
|
|
2038
|
+
# vpc_configuration: {
|
|
2039
|
+
# security_groups: [
|
|
2040
|
+
# {
|
|
2041
|
+
# security_group_id: "sg-1a2b3c4d",
|
|
2042
|
+
# },
|
|
2043
|
+
# ],
|
|
2044
|
+
# },
|
|
2045
|
+
# })
|
|
2046
|
+
#
|
|
2047
|
+
# resp.to_h outputs the following:
|
|
2048
|
+
# {
|
|
2049
|
+
# name: "my-proxy",
|
|
2050
|
+
# type: "envoy",
|
|
2051
|
+
# arn: "arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef",
|
|
2052
|
+
# created_at: Time.parse(1795194000),
|
|
2053
|
+
# dns_name: "my-proxy-1234567890.elb-proxy.us-east-1.on.aws",
|
|
2054
|
+
# network_configuration: {
|
|
2055
|
+
# ip_configuration: {
|
|
2056
|
+
# ip_addressing_configuration: {
|
|
2057
|
+
# ipv4_addressability: "internet-facing",
|
|
2058
|
+
# ipv6_addressability: "off",
|
|
2059
|
+
# },
|
|
2060
|
+
# },
|
|
2061
|
+
# vpc_configuration: {
|
|
2062
|
+
# availability_zones: [
|
|
2063
|
+
# {
|
|
2064
|
+
# subnet_id: "subnet-8360a9e7",
|
|
2065
|
+
# zone_id: "use1-az1",
|
|
2066
|
+
# zone_name: "us-east-1a",
|
|
2067
|
+
# },
|
|
2068
|
+
# {
|
|
2069
|
+
# subnet_id: "subnet-b7d581c0",
|
|
2070
|
+
# zone_id: "use1-az2",
|
|
2071
|
+
# zone_name: "us-east-1b",
|
|
2072
|
+
# },
|
|
2073
|
+
# ],
|
|
2074
|
+
# security_groups: [
|
|
2075
|
+
# {
|
|
2076
|
+
# security_group_id: "sg-1a2b3c4d",
|
|
2077
|
+
# },
|
|
2078
|
+
# ],
|
|
2079
|
+
# vpc_id: "vpc-1a2b3c4d",
|
|
2080
|
+
# },
|
|
2081
|
+
# },
|
|
2082
|
+
# proxy_version: "1.40",
|
|
2083
|
+
# role_arn: "arn:aws:iam::123456789012:role/my-proxy-role",
|
|
2084
|
+
# status: {
|
|
2085
|
+
# code: "active",
|
|
2086
|
+
# reasons: [
|
|
2087
|
+
# ],
|
|
2088
|
+
# },
|
|
2089
|
+
# }
|
|
2090
|
+
#
|
|
2091
|
+
# @example Request syntax with placeholder values
|
|
2092
|
+
#
|
|
2093
|
+
# resp = client.update_proxy_network_configuration({
|
|
2094
|
+
# proxy_identifier: "ProxyIdentifier", # required
|
|
2095
|
+
# vpc_configuration: { # required
|
|
2096
|
+
# subnets: [
|
|
2097
|
+
# {
|
|
2098
|
+
# subnet_id: "SubnetId", # required
|
|
2099
|
+
# },
|
|
2100
|
+
# ],
|
|
2101
|
+
# security_groups: [
|
|
2102
|
+
# {
|
|
2103
|
+
# security_group_id: "SecurityGroupId", # required
|
|
2104
|
+
# },
|
|
2105
|
+
# ],
|
|
2106
|
+
# },
|
|
2107
|
+
# })
|
|
2108
|
+
#
|
|
2109
|
+
# @example Response structure
|
|
2110
|
+
#
|
|
2111
|
+
# resp.arn #=> String
|
|
2112
|
+
# resp.name #=> String
|
|
2113
|
+
# resp.type #=> String, one of "envoy"
|
|
2114
|
+
# resp.proxy_version #=> String
|
|
2115
|
+
# resp.dns_name #=> String
|
|
2116
|
+
# resp.role_arn #=> String
|
|
2117
|
+
# resp.network_configuration.ip_configuration.ip_addressing_configuration.ipv4_addressability #=> String, one of "off", "internet-facing", "internal"
|
|
2118
|
+
# resp.network_configuration.ip_configuration.ip_addressing_configuration.ipv6_addressability #=> String, one of "off", "internet-facing", "internal"
|
|
2119
|
+
# resp.network_configuration.vpc_configuration.vpc_id #=> String
|
|
2120
|
+
# resp.network_configuration.vpc_configuration.availability_zones #=> Array
|
|
2121
|
+
# resp.network_configuration.vpc_configuration.availability_zones[0].subnet_id #=> String
|
|
2122
|
+
# resp.network_configuration.vpc_configuration.availability_zones[0].zone_id #=> String
|
|
2123
|
+
# resp.network_configuration.vpc_configuration.availability_zones[0].zone_name #=> String
|
|
2124
|
+
# resp.network_configuration.vpc_configuration.security_groups #=> Array
|
|
2125
|
+
# resp.network_configuration.vpc_configuration.security_groups[0].security_group_id #=> String
|
|
2126
|
+
# resp.status.code #=> String, one of "action-required", "active", "create-failed", "create-in-progress", "deleted", "delete-in-progress", "update-in-progress", "cancel-update-in-progress"
|
|
2127
|
+
# resp.status.reasons #=> Array
|
|
2128
|
+
# resp.status.reasons[0].code #=> String
|
|
2129
|
+
# resp.status.reasons[0].target #=> String
|
|
2130
|
+
# resp.status.reasons[0].message #=> String
|
|
2131
|
+
# resp.configuration_metadata.config_file_hash #=> String
|
|
2132
|
+
# resp.configuration_metadata.config_archive_hash #=> String
|
|
2133
|
+
# resp.configuration_metadata.config_file_last_updated_at #=> Time
|
|
2134
|
+
# resp.configuration_metadata.config_archive_last_updated_at #=> Time
|
|
2135
|
+
# resp.created_at #=> Time
|
|
2136
|
+
# resp.customer_kms_key_arn #=> String
|
|
2137
|
+
#
|
|
2138
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elb-proxy-2026-11-20/UpdateProxyNetworkConfiguration AWS API Documentation
|
|
2139
|
+
#
|
|
2140
|
+
# @overload update_proxy_network_configuration(params = {})
|
|
2141
|
+
# @param [Hash] params ({})
|
|
2142
|
+
def update_proxy_network_configuration(params = {}, options = {})
|
|
2143
|
+
req = build_request(:update_proxy_network_configuration, params)
|
|
2144
|
+
req.send_request(options)
|
|
2145
|
+
end
|
|
2146
|
+
|
|
2147
|
+
# @!endgroup
|
|
2148
|
+
|
|
2149
|
+
# @param params ({})
|
|
2150
|
+
# @api private
|
|
2151
|
+
def build_request(operation_name, params = {})
|
|
2152
|
+
handlers = @handlers.for(operation_name)
|
|
2153
|
+
tracer = config.telemetry_provider.tracer_provider.tracer(
|
|
2154
|
+
Aws::Telemetry.module_to_tracer_name('Aws::ELBProxy')
|
|
2155
|
+
)
|
|
2156
|
+
context = Seahorse::Client::RequestContext.new(
|
|
2157
|
+
operation_name: operation_name,
|
|
2158
|
+
operation: config.api.operation(operation_name),
|
|
2159
|
+
client: self,
|
|
2160
|
+
params: params,
|
|
2161
|
+
config: config,
|
|
2162
|
+
tracer: tracer
|
|
2163
|
+
)
|
|
2164
|
+
context[:gem_name] = 'aws-sdk-elbproxy'
|
|
2165
|
+
context[:gem_version] = '1.0.0'
|
|
2166
|
+
Seahorse::Client::Request.new(handlers, context)
|
|
2167
|
+
end
|
|
2168
|
+
|
|
2169
|
+
# Polls an API operation until a resource enters a desired state.
|
|
2170
|
+
#
|
|
2171
|
+
# ## Basic Usage
|
|
2172
|
+
#
|
|
2173
|
+
# A waiter will call an API operation until:
|
|
2174
|
+
#
|
|
2175
|
+
# * It is successful
|
|
2176
|
+
# * It enters a terminal state
|
|
2177
|
+
# * It makes the maximum number of attempts
|
|
2178
|
+
#
|
|
2179
|
+
# In between attempts, the waiter will sleep.
|
|
2180
|
+
#
|
|
2181
|
+
# # polls in a loop, sleeping between attempts
|
|
2182
|
+
# client.wait_until(waiter_name, params)
|
|
2183
|
+
#
|
|
2184
|
+
# ## Configuration
|
|
2185
|
+
#
|
|
2186
|
+
# You can configure the maximum number of polling attempts, and the
|
|
2187
|
+
# delay (in seconds) between each polling attempt. You can pass
|
|
2188
|
+
# configuration as the final arguments hash.
|
|
2189
|
+
#
|
|
2190
|
+
# # poll for ~25 seconds
|
|
2191
|
+
# client.wait_until(waiter_name, params, {
|
|
2192
|
+
# max_attempts: 5,
|
|
2193
|
+
# delay: 5,
|
|
2194
|
+
# })
|
|
2195
|
+
#
|
|
2196
|
+
# ## Callbacks
|
|
2197
|
+
#
|
|
2198
|
+
# You can be notified before each polling attempt and before each
|
|
2199
|
+
# delay. If you throw `:success` or `:failure` from these callbacks,
|
|
2200
|
+
# it will terminate the waiter.
|
|
2201
|
+
#
|
|
2202
|
+
# started_at = Time.now
|
|
2203
|
+
# client.wait_until(waiter_name, params, {
|
|
2204
|
+
#
|
|
2205
|
+
# # disable max attempts
|
|
2206
|
+
# max_attempts: nil,
|
|
2207
|
+
#
|
|
2208
|
+
# # poll for 1 hour, instead of a number of attempts
|
|
2209
|
+
# before_wait: -> (attempts, response) do
|
|
2210
|
+
# throw :failure if Time.now - started_at > 3600
|
|
2211
|
+
# end
|
|
2212
|
+
# })
|
|
2213
|
+
#
|
|
2214
|
+
# ## Handling Errors
|
|
2215
|
+
#
|
|
2216
|
+
# When a waiter is unsuccessful, it will raise an error.
|
|
2217
|
+
# All of the failure errors extend from
|
|
2218
|
+
# {Aws::Waiters::Errors::WaiterFailed}.
|
|
2219
|
+
#
|
|
2220
|
+
# begin
|
|
2221
|
+
# client.wait_until(...)
|
|
2222
|
+
# rescue Aws::Waiters::Errors::WaiterFailed
|
|
2223
|
+
# # resource did not enter the desired state in time
|
|
2224
|
+
# end
|
|
2225
|
+
#
|
|
2226
|
+
# ## Valid Waiters
|
|
2227
|
+
#
|
|
2228
|
+
# The following table lists the valid waiter names, the operations they call,
|
|
2229
|
+
# and the default `:delay` and `:max_attempts` values.
|
|
2230
|
+
#
|
|
2231
|
+
# | waiter_name | params | :delay | :max_attempts |
|
|
2232
|
+
# | --------------------- | ------------------------- | -------- | ------------- |
|
|
2233
|
+
# | proxy_active | {Client#get_proxy} | 15 | 40 |
|
|
2234
|
+
# | proxy_deleted | {Client#get_proxy} | 15 | 40 |
|
|
2235
|
+
# | proxy_update_complete | {Client#get_proxy_update} | 5 | 24 |
|
|
2236
|
+
#
|
|
2237
|
+
# @raise [Errors::FailureStateError] Raised when the waiter terminates
|
|
2238
|
+
# because the waiter has entered a state that it will not transition
|
|
2239
|
+
# out of, preventing success.
|
|
2240
|
+
#
|
|
2241
|
+
# @raise [Errors::TooManyAttemptsError] Raised when the configured
|
|
2242
|
+
# maximum number of attempts have been made, and the waiter is not
|
|
2243
|
+
# yet successful.
|
|
2244
|
+
#
|
|
2245
|
+
# @raise [Errors::UnexpectedError] Raised when an error is encounted
|
|
2246
|
+
# while polling for a resource that is not expected.
|
|
2247
|
+
#
|
|
2248
|
+
# @raise [Errors::NoSuchWaiterError] Raised when you request to wait
|
|
2249
|
+
# for an unknown state.
|
|
2250
|
+
#
|
|
2251
|
+
# @return [Boolean] Returns `true` if the waiter was successful.
|
|
2252
|
+
# @param [Symbol] waiter_name
|
|
2253
|
+
# @param [Hash] params ({})
|
|
2254
|
+
# @param [Hash] options ({})
|
|
2255
|
+
# @option options [Integer] :max_attempts
|
|
2256
|
+
# @option options [Integer] :delay
|
|
2257
|
+
# @option options [Proc] :before_attempt
|
|
2258
|
+
# @option options [Proc] :before_wait
|
|
2259
|
+
def wait_until(waiter_name, params = {}, options = {})
|
|
2260
|
+
w = waiter(waiter_name, options)
|
|
2261
|
+
yield(w.waiter) if block_given? # deprecated
|
|
2262
|
+
w.wait(params)
|
|
2263
|
+
end
|
|
2264
|
+
|
|
2265
|
+
# @api private
|
|
2266
|
+
# @deprecated
|
|
2267
|
+
def waiter_names
|
|
2268
|
+
waiters.keys
|
|
2269
|
+
end
|
|
2270
|
+
|
|
2271
|
+
private
|
|
2272
|
+
|
|
2273
|
+
# @param [Symbol] waiter_name
|
|
2274
|
+
# @param [Hash] options ({})
|
|
2275
|
+
def waiter(waiter_name, options = {})
|
|
2276
|
+
waiter_class = waiters[waiter_name]
|
|
2277
|
+
if waiter_class
|
|
2278
|
+
waiter_class.new(options.merge(client: self))
|
|
2279
|
+
else
|
|
2280
|
+
raise Aws::Waiters::Errors::NoSuchWaiterError.new(waiter_name, waiters.keys)
|
|
2281
|
+
end
|
|
2282
|
+
end
|
|
2283
|
+
|
|
2284
|
+
def waiters
|
|
2285
|
+
{
|
|
2286
|
+
proxy_active: Waiters::ProxyActive,
|
|
2287
|
+
proxy_deleted: Waiters::ProxyDeleted,
|
|
2288
|
+
proxy_update_complete: Waiters::ProxyUpdateComplete
|
|
2289
|
+
}
|
|
2290
|
+
end
|
|
2291
|
+
|
|
2292
|
+
class << self
|
|
2293
|
+
|
|
2294
|
+
# @api private
|
|
2295
|
+
attr_reader :identifier
|
|
2296
|
+
|
|
2297
|
+
# @api private
|
|
2298
|
+
def errors_module
|
|
2299
|
+
Errors
|
|
2300
|
+
end
|
|
2301
|
+
|
|
2302
|
+
end
|
|
2303
|
+
end
|
|
2304
|
+
end
|