aws-sdk-guardduty 1.25.0 → 1.26.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d58dc0c704cd34c7e1ba86434e529a2eb75ba0ce
4
- data.tar.gz: efa12c09278f3ac980795d69644cb4a9a0d20ace
3
+ metadata.gz: 72b30881ab778a4f07447bcc62e056c453a737fa
4
+ data.tar.gz: 90d3a46fe21d8ca41fb255a09a70c0aceb4b2e21
5
5
  SHA512:
6
- metadata.gz: 330bc809106b13c91c4dc479a22a52f51712cb95c05907feece42829440f01b2847a8899cc5a5ea0080aef1d18979e078e6a65071b7f783b89fe57faa76e3a6f
7
- data.tar.gz: 6ce9e6c06c76b722f08610771a06d1cf61396a6ecbf75aa0efebee4742c43703f15139c4862ae65e24cea9d5cfec3c4506b8493a7fa210f3e88260524b7af725
6
+ metadata.gz: 4773344ff88c88a26447fab6d71c1d7b77e0bafee8b18ff0d41e2cc316c8324d1342ea25cebeb04e8f3ae0e92c02701e4304713fd072cde34487f2be25e6ebdd
7
+ data.tar.gz: 3cb132aaf4a0d5023e2c9a80952994ef2f740fbdf263ab8ecc35a80b7a3f4bbeae4c6207023a86b3307f0bf7a65044fd9bb56d515a3a128698c1d48a690de49f
@@ -24,17 +24,20 @@ require_relative 'aws-sdk-guardduty/customizations'
24
24
  # methods each accept a hash of request parameters and return a response
25
25
  # structure.
26
26
  #
27
+ # guard_duty = Aws::GuardDuty::Client.new
28
+ # resp = guard_duty.accept_invitation(params)
29
+ #
27
30
  # See {Client} for more information.
28
31
  #
29
32
  # # Errors
30
33
  #
31
- # Errors returned from Amazon GuardDuty all
32
- # extend {Errors::ServiceError}.
34
+ # Errors returned from Amazon GuardDuty are defined in the
35
+ # {Errors} module and all extend {Errors::ServiceError}.
33
36
  #
34
37
  # begin
35
38
  # # do stuff
36
39
  # rescue Aws::GuardDuty::Errors::ServiceError
37
- # # rescues all service API errors
40
+ # # rescues all Amazon GuardDuty API errors
38
41
  # end
39
42
  #
40
43
  # See {Errors} for more information.
@@ -42,6 +45,6 @@ require_relative 'aws-sdk-guardduty/customizations'
42
45
  # @service
43
46
  module Aws::GuardDuty
44
47
 
45
- GEM_VERSION = '1.25.0'
48
+ GEM_VERSION = '1.26.0'
46
49
 
47
50
  end
@@ -30,6 +30,16 @@ require 'aws-sdk-core/plugins/protocols/rest_json.rb'
30
30
  Aws::Plugins::GlobalConfiguration.add_identifier(:guardduty)
31
31
 
32
32
  module Aws::GuardDuty
33
+ # An API client for GuardDuty. To construct a client, you need to configure a +:region+ and +:credentials+.
34
+ # client = Aws::GuardDuty::Client.new(
35
+ # region: region_name,
36
+ # credentials: credentials,
37
+ # # ...
38
+ # )
39
+ # For details on configuring region and credentials see
40
+ # the {developer-guide}[https://docs.aws.amazon.com/sdk-for-ruby/v3/developer-guide/setup-config.html].
41
+ #
42
+ # See {#initialize} for a full list of supported configuration options.
33
43
  class Client < Seahorse::Client::Base
34
44
 
35
45
  include Aws::ClientStubs
@@ -209,16 +219,16 @@ module Aws::GuardDuty
209
219
  # requests through. Formatted like 'http://proxy.com:123'.
210
220
  #
211
221
  # @option options [Float] :http_open_timeout (15) The number of
212
- # seconds to wait when opening a HTTP session before rasing a
222
+ # seconds to wait when opening a HTTP session before raising a
213
223
  # `Timeout::Error`.
214
224
  #
215
225
  # @option options [Integer] :http_read_timeout (60) The default
216
226
  # number of seconds to wait for response data. This value can
217
227
  # safely be set
218
- # per-request on the session yeidled by {#session_for}.
228
+ # per-request on the session yielded by {#session_for}.
219
229
  #
220
230
  # @option options [Float] :http_idle_timeout (5) The number of
221
- # seconds a connection is allowed to sit idble before it is
231
+ # seconds a connection is allowed to sit idle before it is
222
232
  # considered stale. Stale connections are closed and removed
223
233
  # from the pool before making a request.
224
234
  #
@@ -227,7 +237,7 @@ module Aws::GuardDuty
227
237
  # request body. This option has no effect unless the request has
228
238
  # "Expect" header set to "100-continue". Defaults to `nil` which
229
239
  # disables this behaviour. This value can safely be set per
230
- # request on the session yeidled by {#session_for}.
240
+ # request on the session yielded by {#session_for}.
231
241
  #
232
242
  # @option options [Boolean] :http_wire_trace (false) When `true`,
233
243
  # HTTP debug output will be sent to the `:logger`.
@@ -1229,6 +1239,7 @@ module Aws::GuardDuty
1229
1239
  # resp.findings[0].service.action.network_connection_action.local_port_details.port #=> Integer
1230
1240
  # resp.findings[0].service.action.network_connection_action.local_port_details.port_name #=> String
1231
1241
  # resp.findings[0].service.action.network_connection_action.protocol #=> String
1242
+ # resp.findings[0].service.action.network_connection_action.local_ip_details.ip_address_v4 #=> String
1232
1243
  # resp.findings[0].service.action.network_connection_action.remote_ip_details.city.city_name #=> String
1233
1244
  # resp.findings[0].service.action.network_connection_action.remote_ip_details.country.country_code #=> String
1234
1245
  # resp.findings[0].service.action.network_connection_action.remote_ip_details.country.country_name #=> String
@@ -1245,6 +1256,7 @@ module Aws::GuardDuty
1245
1256
  # resp.findings[0].service.action.port_probe_action.port_probe_details #=> Array
1246
1257
  # resp.findings[0].service.action.port_probe_action.port_probe_details[0].local_port_details.port #=> Integer
1247
1258
  # resp.findings[0].service.action.port_probe_action.port_probe_details[0].local_port_details.port_name #=> String
1259
+ # resp.findings[0].service.action.port_probe_action.port_probe_details[0].local_ip_details.ip_address_v4 #=> String
1248
1260
  # resp.findings[0].service.action.port_probe_action.port_probe_details[0].remote_ip_details.city.city_name #=> String
1249
1261
  # resp.findings[0].service.action.port_probe_action.port_probe_details[0].remote_ip_details.country.country_code #=> String
1250
1262
  # resp.findings[0].service.action.port_probe_action.port_probe_details[0].remote_ip_details.country.country_name #=> String
@@ -1740,6 +1752,8 @@ module Aws::GuardDuty
1740
1752
  #
1741
1753
  # * service.action.networkConnectionAction.protocol
1742
1754
  #
1755
+ # * service.action.networkConnectionAction.localIpDetails.ipAddressV4
1756
+ #
1743
1757
  # * service.action.networkConnectionAction.remoteIpDetails.city.cityName
1744
1758
  #
1745
1759
  # * service.action.networkConnectionAction.remoteIpDetails.country.countryName
@@ -2535,7 +2549,7 @@ module Aws::GuardDuty
2535
2549
  params: params,
2536
2550
  config: config)
2537
2551
  context[:gem_name] = 'aws-sdk-guardduty'
2538
- context[:gem_version] = '1.25.0'
2552
+ context[:gem_version] = '1.26.0'
2539
2553
  Seahorse::Client::Request.new(handlers, context)
2540
2554
  end
2541
2555
 
@@ -147,6 +147,7 @@ module Aws::GuardDuty
147
147
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
148
148
  ListThreatIntelSetsRequest = Shapes::StructureShape.new(name: 'ListThreatIntelSetsRequest')
149
149
  ListThreatIntelSetsResponse = Shapes::StructureShape.new(name: 'ListThreatIntelSetsResponse')
150
+ LocalIpDetails = Shapes::StructureShape.new(name: 'LocalIpDetails')
150
151
  LocalPortDetails = Shapes::StructureShape.new(name: 'LocalPortDetails')
151
152
  Location = Shapes::StringShape.new(name: 'Location')
152
153
  Long = Shapes::IntegerShape.new(name: 'Long')
@@ -691,6 +692,9 @@ module Aws::GuardDuty
691
692
  ListThreatIntelSetsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
692
693
  ListThreatIntelSetsResponse.struct_class = Types::ListThreatIntelSetsResponse
693
694
 
695
+ LocalIpDetails.add_member(:ip_address_v4, Shapes::ShapeRef.new(shape: String, location_name: "ipAddressV4"))
696
+ LocalIpDetails.struct_class = Types::LocalIpDetails
697
+
694
698
  LocalPortDetails.add_member(:port, Shapes::ShapeRef.new(shape: Integer, location_name: "port"))
695
699
  LocalPortDetails.add_member(:port_name, Shapes::ShapeRef.new(shape: String, location_name: "portName"))
696
700
  LocalPortDetails.struct_class = Types::LocalPortDetails
@@ -718,6 +722,7 @@ module Aws::GuardDuty
718
722
  NetworkConnectionAction.add_member(:connection_direction, Shapes::ShapeRef.new(shape: String, location_name: "connectionDirection"))
719
723
  NetworkConnectionAction.add_member(:local_port_details, Shapes::ShapeRef.new(shape: LocalPortDetails, location_name: "localPortDetails"))
720
724
  NetworkConnectionAction.add_member(:protocol, Shapes::ShapeRef.new(shape: String, location_name: "protocol"))
725
+ NetworkConnectionAction.add_member(:local_ip_details, Shapes::ShapeRef.new(shape: LocalIpDetails, location_name: "localIpDetails"))
721
726
  NetworkConnectionAction.add_member(:remote_ip_details, Shapes::ShapeRef.new(shape: RemoteIpDetails, location_name: "remoteIpDetails"))
722
727
  NetworkConnectionAction.add_member(:remote_port_details, Shapes::ShapeRef.new(shape: RemotePortDetails, location_name: "remotePortDetails"))
723
728
  NetworkConnectionAction.struct_class = Types::NetworkConnectionAction
@@ -749,6 +754,7 @@ module Aws::GuardDuty
749
754
  PortProbeAction.struct_class = Types::PortProbeAction
750
755
 
751
756
  PortProbeDetail.add_member(:local_port_details, Shapes::ShapeRef.new(shape: LocalPortDetails, location_name: "localPortDetails"))
757
+ PortProbeDetail.add_member(:local_ip_details, Shapes::ShapeRef.new(shape: LocalIpDetails, location_name: "localIpDetails"))
752
758
  PortProbeDetail.add_member(:remote_ip_details, Shapes::ShapeRef.new(shape: RemoteIpDetails, location_name: "remoteIpDetails"))
753
759
  PortProbeDetail.struct_class = Types::PortProbeDetail
754
760
 
@@ -6,6 +6,34 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::GuardDuty
9
+
10
+ # When GuardDuty returns an error response, the Ruby SDK constructs and raises an error.
11
+ # These errors all extend Aws::GuardDuty::Errors::ServiceError < {Aws::Errors::ServiceError}
12
+ #
13
+ # You can rescue all GuardDuty errors using ServiceError:
14
+ # begin
15
+ # # do stuff
16
+ # rescue Aws::GuardDuty::Errors::ServiceError
17
+ # # rescues all GuardDuty API errors
18
+ # end
19
+ #
20
+ # ## Request Context
21
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
22
+ # information about the request that generated the error, including:
23
+ # *
24
+ # * #params - The request params
25
+ # * #operation_name - Name of the API operation invoked
26
+ # * #http_request
27
+ # * #http_response
28
+ # * etc ...
29
+ #
30
+ # See {Seahorse::Client::RequestContext} for more information.
31
+ #
32
+ # ## Error Classes
33
+ # * {BadRequestException}
34
+ # * {InternalServerErrorException}
35
+ # Additionally, error classes are dynamically generated for service errors based on the error code
36
+ # if they are not defined above.
9
37
  module Errors
10
38
 
11
39
  extend Aws::Errors::DynamicErrors
@@ -6,6 +6,13 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::GuardDuty
9
+ # This class provides a resource oriented interface for GuardDuty.
10
+ # To create a resource object:
11
+ # resource = Aws::GuardDuty::Resource.new(region: 'us-west-2')
12
+ # You can supply a client object with custom configuration that will be used for all resource operations.
13
+ # If you do not pass +:client+, a default client will be constructed.
14
+ # client = Aws::GuardDuty::Client.new(region: 'us-west-2')
15
+ # resource = Aws::GuardDuty::Resource.new(client: client)
9
16
  class Resource
10
17
 
11
18
  # @param options ({})
@@ -2197,6 +2197,8 @@ module Aws::GuardDuty
2197
2197
  #
2198
2198
  # * service.action.networkConnectionAction.protocol
2199
2199
  #
2200
+ # * service.action.networkConnectionAction.localIpDetails.ipAddressV4
2201
+ #
2200
2202
  # * service.action.networkConnectionAction.remoteIpDetails.city.cityName
2201
2203
  #
2202
2204
  # * service.action.networkConnectionAction.remoteIpDetails.country.countryName
@@ -2573,6 +2575,19 @@ module Aws::GuardDuty
2573
2575
  include Aws::Structure
2574
2576
  end
2575
2577
 
2578
+ # Contains information about the local IP address of the connection.
2579
+ #
2580
+ # @!attribute [rw] ip_address_v4
2581
+ # IPV4 remote address of the connection.
2582
+ # @return [String]
2583
+ #
2584
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/LocalIpDetails AWS API Documentation
2585
+ #
2586
+ class LocalIpDetails < Struct.new(
2587
+ :ip_address_v4)
2588
+ include Aws::Structure
2589
+ end
2590
+
2576
2591
  # Contains information about the port for the local connection.
2577
2592
  #
2578
2593
  # @!attribute [rw] port
@@ -2683,6 +2698,10 @@ module Aws::GuardDuty
2683
2698
  # Network connection protocol.
2684
2699
  # @return [String]
2685
2700
  #
2701
+ # @!attribute [rw] local_ip_details
2702
+ # Local IP information of the connection.
2703
+ # @return [Types::LocalIpDetails]
2704
+ #
2686
2705
  # @!attribute [rw] remote_ip_details
2687
2706
  # Remote IP information of the connection.
2688
2707
  # @return [Types::RemoteIpDetails]
@@ -2698,6 +2717,7 @@ module Aws::GuardDuty
2698
2717
  :connection_direction,
2699
2718
  :local_port_details,
2700
2719
  :protocol,
2720
+ :local_ip_details,
2701
2721
  :remote_ip_details,
2702
2722
  :remote_port_details)
2703
2723
  include Aws::Structure
@@ -2816,6 +2836,10 @@ module Aws::GuardDuty
2816
2836
  # Local port information of the connection.
2817
2837
  # @return [Types::LocalPortDetails]
2818
2838
  #
2839
+ # @!attribute [rw] local_ip_details
2840
+ # Local IP information of the connection.
2841
+ # @return [Types::LocalIpDetails]
2842
+ #
2819
2843
  # @!attribute [rw] remote_ip_details
2820
2844
  # Remote IP information of the connection.
2821
2845
  # @return [Types::RemoteIpDetails]
@@ -2824,6 +2848,7 @@ module Aws::GuardDuty
2824
2848
  #
2825
2849
  class PortProbeDetail < Struct.new(
2826
2850
  :local_port_details,
2851
+ :local_ip_details,
2827
2852
  :remote_ip_details)
2828
2853
  include Aws::Structure
2829
2854
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-guardduty
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.25.0
4
+ version: 1.26.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-11-15 00:00:00.000000000 Z
11
+ date: 2020-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core