aws-sdk-apigatewaymanagementapi 1.9.0 → 1.11.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 00170634b2e44b757bf0f3711cf04c07ec6c968f
4
- data.tar.gz: 4c13931317820d0874a4738c5bbb374c26940efb
3
+ metadata.gz: 9ba59dd3c6a4ea6625fc31b911c9ea68a3a1787b
4
+ data.tar.gz: 4122a57f096a9affacafc9a70bbf47740b738a7b
5
5
  SHA512:
6
- metadata.gz: 656d037aa0cbc210cd4bb8b99b26a309d35aef62061883008626df2bac7256364ff7990f3b6803aa68b7b2f9f2bb5b4e81aae43e783d10706c30696108965c7f
7
- data.tar.gz: a79b6c68f1162690e336eccd75ea01cd8a7fbd8aac21d49ae62597da0cc0d557d2127d22420a01346a6138bd05b55972edec1d5eaf8682db861061f232b3f1f5
6
+ metadata.gz: a8329bd72d78d86d6e5693d60ad56919156363e6544e274a8ccbbf36c090951569177031833a8d25ead3ce28e27fbc3e8ead8b9553fd4264ad15a17e13032809
7
+ data.tar.gz: 87c52809b7537f8601e82cfc23372e88b5df0d819e974a3da94c5b5f58d87e48d048ba5e0ba5162cc2d3bc7778525468dca1e6c5e72009e1a6dcea0e857364b1
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-apigatewaymanagementapi/customizations'
42
42
  # @service
43
43
  module Aws::ApiGatewayManagementApi
44
44
 
45
- GEM_VERSION = '1.9.0'
45
+ GEM_VERSION = '1.11.0'
46
46
 
47
47
  end
@@ -254,6 +254,55 @@ module Aws::ApiGatewayManagementApi
254
254
 
255
255
  # @!group API Operations
256
256
 
257
+ # Delete the connection with the provided id.
258
+ #
259
+ # @option params [required, String] :connection_id
260
+ #
261
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
262
+ #
263
+ # @example Request syntax with placeholder values
264
+ #
265
+ # resp = client.delete_connection({
266
+ # connection_id: "__string", # required
267
+ # })
268
+ #
269
+ # @overload delete_connection(params = {})
270
+ # @param [Hash] params ({})
271
+ def delete_connection(params = {}, options = {})
272
+ req = build_request(:delete_connection, params)
273
+ req.send_request(options)
274
+ end
275
+
276
+ # Get information about the connection with the provided id.
277
+ #
278
+ # @option params [required, String] :connection_id
279
+ #
280
+ # @return [Types::GetConnectionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
281
+ #
282
+ # * {Types::GetConnectionResponse#connected_at #connected_at} => Time
283
+ # * {Types::GetConnectionResponse#identity #identity} => Types::Identity
284
+ # * {Types::GetConnectionResponse#last_active_at #last_active_at} => Time
285
+ #
286
+ # @example Request syntax with placeholder values
287
+ #
288
+ # resp = client.get_connection({
289
+ # connection_id: "__string", # required
290
+ # })
291
+ #
292
+ # @example Response structure
293
+ #
294
+ # resp.connected_at #=> Time
295
+ # resp.identity.source_ip #=> String
296
+ # resp.identity.user_agent #=> String
297
+ # resp.last_active_at #=> Time
298
+ #
299
+ # @overload get_connection(params = {})
300
+ # @param [Hash] params ({})
301
+ def get_connection(params = {}, options = {})
302
+ req = build_request(:get_connection, params)
303
+ req.send_request(options)
304
+ end
305
+
257
306
  # Sends the provided data to the specified connection.
258
307
  #
259
308
  # @option params [required, String, IO] :data
@@ -290,7 +339,7 @@ module Aws::ApiGatewayManagementApi
290
339
  params: params,
291
340
  config: config)
292
341
  context[:gem_name] = 'aws-sdk-apigatewaymanagementapi'
293
- context[:gem_version] = '1.9.0'
342
+ context[:gem_version] = '1.11.0'
294
343
  Seahorse::Client::Request.new(handlers, context)
295
344
  end
296
345
 
@@ -12,12 +12,32 @@ module Aws::ApiGatewayManagementApi
12
12
  include Seahorse::Model
13
13
 
14
14
  Data = Shapes::BlobShape.new(name: 'Data')
15
+ DeleteConnectionRequest = Shapes::StructureShape.new(name: 'DeleteConnectionRequest')
15
16
  ForbiddenException = Shapes::StructureShape.new(name: 'ForbiddenException')
17
+ GetConnectionRequest = Shapes::StructureShape.new(name: 'GetConnectionRequest')
18
+ GetConnectionResponse = Shapes::StructureShape.new(name: 'GetConnectionResponse')
16
19
  GoneException = Shapes::StructureShape.new(name: 'GoneException')
20
+ Identity = Shapes::StructureShape.new(name: 'Identity')
17
21
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
18
22
  PayloadTooLargeException = Shapes::StructureShape.new(name: 'PayloadTooLargeException')
19
23
  PostToConnectionRequest = Shapes::StructureShape.new(name: 'PostToConnectionRequest')
20
24
  __string = Shapes::StringShape.new(name: '__string')
25
+ __timestampIso8601 = Shapes::TimestampShape.new(name: '__timestampIso8601', timestampFormat: "iso8601")
26
+
27
+ DeleteConnectionRequest.add_member(:connection_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "connectionId"))
28
+ DeleteConnectionRequest.struct_class = Types::DeleteConnectionRequest
29
+
30
+ GetConnectionRequest.add_member(:connection_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "connectionId"))
31
+ GetConnectionRequest.struct_class = Types::GetConnectionRequest
32
+
33
+ GetConnectionResponse.add_member(:connected_at, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "connectedAt"))
34
+ GetConnectionResponse.add_member(:identity, Shapes::ShapeRef.new(shape: Identity, location_name: "identity"))
35
+ GetConnectionResponse.add_member(:last_active_at, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "lastActiveAt"))
36
+ GetConnectionResponse.struct_class = Types::GetConnectionResponse
37
+
38
+ Identity.add_member(:source_ip, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "sourceIp"))
39
+ Identity.add_member(:user_agent, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "userAgent"))
40
+ Identity.struct_class = Types::Identity
21
41
 
22
42
  PayloadTooLargeException.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "message"))
23
43
  PayloadTooLargeException.struct_class = Types::PayloadTooLargeException
@@ -46,6 +66,28 @@ module Aws::ApiGatewayManagementApi
46
66
  "uid" => "apigatewaymanagementapi-2018-11-29",
47
67
  }
48
68
 
69
+ api.add_operation(:delete_connection, Seahorse::Model::Operation.new.tap do |o|
70
+ o.name = "DeleteConnection"
71
+ o.http_method = "DELETE"
72
+ o.http_request_uri = "/@connections/{connectionId}"
73
+ o.input = Shapes::ShapeRef.new(shape: DeleteConnectionRequest)
74
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
75
+ o.errors << Shapes::ShapeRef.new(shape: GoneException)
76
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
77
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
78
+ end)
79
+
80
+ api.add_operation(:get_connection, Seahorse::Model::Operation.new.tap do |o|
81
+ o.name = "GetConnection"
82
+ o.http_method = "GET"
83
+ o.http_request_uri = "/@connections/{connectionId}"
84
+ o.input = Shapes::ShapeRef.new(shape: GetConnectionRequest)
85
+ o.output = Shapes::ShapeRef.new(shape: GetConnectionResponse)
86
+ o.errors << Shapes::ShapeRef.new(shape: GoneException)
87
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
88
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
89
+ end)
90
+
49
91
  api.add_operation(:post_to_connection, Seahorse::Model::Operation.new.tap do |o|
50
92
  o.name = "PostToConnection"
51
93
  o.http_method = "POST"
@@ -8,6 +8,67 @@
8
8
  module Aws::ApiGatewayManagementApi
9
9
  module Types
10
10
 
11
+ # @note When making an API call, you may pass DeleteConnectionRequest
12
+ # data as a hash:
13
+ #
14
+ # {
15
+ # connection_id: "__string", # required
16
+ # }
17
+ #
18
+ # @!attribute [rw] connection_id
19
+ # @return [String]
20
+ #
21
+ class DeleteConnectionRequest < Struct.new(
22
+ :connection_id)
23
+ include Aws::Structure
24
+ end
25
+
26
+ # @note When making an API call, you may pass GetConnectionRequest
27
+ # data as a hash:
28
+ #
29
+ # {
30
+ # connection_id: "__string", # required
31
+ # }
32
+ #
33
+ # @!attribute [rw] connection_id
34
+ # @return [String]
35
+ #
36
+ class GetConnectionRequest < Struct.new(
37
+ :connection_id)
38
+ include Aws::Structure
39
+ end
40
+
41
+ # @!attribute [rw] connected_at
42
+ # @return [Time]
43
+ #
44
+ # @!attribute [rw] identity
45
+ # @return [Types::Identity]
46
+ #
47
+ # @!attribute [rw] last_active_at
48
+ # @return [Time]
49
+ #
50
+ class GetConnectionResponse < Struct.new(
51
+ :connected_at,
52
+ :identity,
53
+ :last_active_at)
54
+ include Aws::Structure
55
+ end
56
+
57
+ # @!attribute [rw] source_ip
58
+ # The source IP address of the TCP connection making the request to
59
+ # API Gateway.
60
+ # @return [String]
61
+ #
62
+ # @!attribute [rw] user_agent
63
+ # The User Agent of the API caller.
64
+ # @return [String]
65
+ #
66
+ class Identity < Struct.new(
67
+ :source_ip,
68
+ :user_agent)
69
+ include Aws::Structure
70
+ end
71
+
11
72
  # The data has exceeded the maximum size allowed.
12
73
  #
13
74
  # @!attribute [rw] message
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-apigatewaymanagementapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.11.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: 2019-07-25 00:00:00.000000000 Z
11
+ date: 2019-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.61.1
22
+ version: 3.71.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.61.1
32
+ version: 3.71.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement