aws-sdk-core 3.114.3 → 3.118.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.
@@ -80,13 +80,18 @@ module Seahorse
80
80
  _nonblocking_connect(tcp, addr)
81
81
  debug_output('opened')
82
82
 
83
- @socket = OpenSSL::SSL::SSLSocket.new(tcp, _tls_context)
84
- @socket.sync_close = true
85
- @socket.hostname = endpoint.host
83
+ if endpoint.scheme == 'https'
84
+ @socket = OpenSSL::SSL::SSLSocket.new(tcp, _tls_context)
85
+ @socket.sync_close = true
86
+ @socket.hostname = endpoint.host
87
+
88
+ debug_output("starting TLS for #{endpoint.host}:#{endpoint.port} ...")
89
+ @socket.connect
90
+ debug_output('TLS established')
91
+ else
92
+ @socket = tcp
93
+ end
86
94
 
87
- debug_output("starting TLS for #{endpoint.host}:#{endpoint.port} ...")
88
- @socket.connect
89
- debug_output('TLS established')
90
95
  _register_h2_callbacks
91
96
  @status = :active
92
97
  elsif @status == :closed
@@ -114,6 +114,9 @@ module Seahorse
114
114
  # @return [String, nil]
115
115
  attr_accessor :documentation
116
116
 
117
+ # @return [Boolean]
118
+ attr_accessor :union
119
+
117
120
  # Gets metadata for the given `key`.
118
121
  def [](key)
119
122
  @metadata[key.to_s]
@@ -264,6 +267,23 @@ module Seahorse
264
267
 
265
268
  end
266
269
 
270
+ class UnionShape < StructureShape
271
+ def initialize(options = {})
272
+ @member_subclasses = {}
273
+ super options.merge(union: true)
274
+ end
275
+
276
+ # @api private
277
+ def member_subclass(member)
278
+ @member_subclasses[member]
279
+ end
280
+
281
+ # @api private
282
+ def add_member_subclass(member, subclass)
283
+ @member_subclasses[member] = subclass
284
+ end
285
+ end
286
+
267
287
  class TimestampShape < Shape; end
268
288
 
269
289
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.114.3
4
+ version: 3.118.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-15 00:00:00.000000000 Z
11
+ date: 2021-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath