aws-sdk-guardduty 1.59.0 → 1.61.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-guardduty/client.rb +39 -8
- data/lib/aws-sdk-guardduty/client_api.rb +6 -0
- data/lib/aws-sdk-guardduty/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-guardduty/endpoint_provider.rb +117 -0
- data/lib/aws-sdk-guardduty/endpoints.rb +925 -0
- data/lib/aws-sdk-guardduty/plugins/endpoints.rb +198 -0
- data/lib/aws-sdk-guardduty/types.rb +44 -8
- data/lib/aws-sdk-guardduty.rb +5 -1
- metadata +8 -4
@@ -0,0 +1,198 @@
|
|
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
|
+
|
11
|
+
module Aws::GuardDuty
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::GuardDuty::EndpointProvider',
|
17
|
+
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
|
+
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
|
+
'where `parameters` is a Struct similar to '\
|
20
|
+
'`Aws::GuardDuty::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::GuardDuty::EndpointProvider.new
|
23
|
+
end
|
24
|
+
|
25
|
+
# @api private
|
26
|
+
class Handler < Seahorse::Client::Handler
|
27
|
+
def call(context)
|
28
|
+
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
|
+
unless context[:discovered_endpoint]
|
30
|
+
params = parameters_for_operation(context)
|
31
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
|
+
|
33
|
+
context.http_request.endpoint = endpoint.url
|
34
|
+
apply_endpoint_headers(context, endpoint.headers)
|
35
|
+
end
|
36
|
+
|
37
|
+
context[:endpoint_params] = params
|
38
|
+
context[:auth_scheme] =
|
39
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
|
+
|
41
|
+
@handler.call(context)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def apply_endpoint_headers(context, headers)
|
47
|
+
headers.each do |key, values|
|
48
|
+
value = values
|
49
|
+
.compact
|
50
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
51
|
+
.join(',')
|
52
|
+
|
53
|
+
context.http_request.headers[key] = value
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def parameters_for_operation(context)
|
58
|
+
case context.operation_name
|
59
|
+
when :accept_administrator_invitation
|
60
|
+
Aws::GuardDuty::Endpoints::AcceptAdministratorInvitation.build(context)
|
61
|
+
when :accept_invitation
|
62
|
+
Aws::GuardDuty::Endpoints::AcceptInvitation.build(context)
|
63
|
+
when :archive_findings
|
64
|
+
Aws::GuardDuty::Endpoints::ArchiveFindings.build(context)
|
65
|
+
when :create_detector
|
66
|
+
Aws::GuardDuty::Endpoints::CreateDetector.build(context)
|
67
|
+
when :create_filter
|
68
|
+
Aws::GuardDuty::Endpoints::CreateFilter.build(context)
|
69
|
+
when :create_ip_set
|
70
|
+
Aws::GuardDuty::Endpoints::CreateIPSet.build(context)
|
71
|
+
when :create_members
|
72
|
+
Aws::GuardDuty::Endpoints::CreateMembers.build(context)
|
73
|
+
when :create_publishing_destination
|
74
|
+
Aws::GuardDuty::Endpoints::CreatePublishingDestination.build(context)
|
75
|
+
when :create_sample_findings
|
76
|
+
Aws::GuardDuty::Endpoints::CreateSampleFindings.build(context)
|
77
|
+
when :create_threat_intel_set
|
78
|
+
Aws::GuardDuty::Endpoints::CreateThreatIntelSet.build(context)
|
79
|
+
when :decline_invitations
|
80
|
+
Aws::GuardDuty::Endpoints::DeclineInvitations.build(context)
|
81
|
+
when :delete_detector
|
82
|
+
Aws::GuardDuty::Endpoints::DeleteDetector.build(context)
|
83
|
+
when :delete_filter
|
84
|
+
Aws::GuardDuty::Endpoints::DeleteFilter.build(context)
|
85
|
+
when :delete_ip_set
|
86
|
+
Aws::GuardDuty::Endpoints::DeleteIPSet.build(context)
|
87
|
+
when :delete_invitations
|
88
|
+
Aws::GuardDuty::Endpoints::DeleteInvitations.build(context)
|
89
|
+
when :delete_members
|
90
|
+
Aws::GuardDuty::Endpoints::DeleteMembers.build(context)
|
91
|
+
when :delete_publishing_destination
|
92
|
+
Aws::GuardDuty::Endpoints::DeletePublishingDestination.build(context)
|
93
|
+
when :delete_threat_intel_set
|
94
|
+
Aws::GuardDuty::Endpoints::DeleteThreatIntelSet.build(context)
|
95
|
+
when :describe_malware_scans
|
96
|
+
Aws::GuardDuty::Endpoints::DescribeMalwareScans.build(context)
|
97
|
+
when :describe_organization_configuration
|
98
|
+
Aws::GuardDuty::Endpoints::DescribeOrganizationConfiguration.build(context)
|
99
|
+
when :describe_publishing_destination
|
100
|
+
Aws::GuardDuty::Endpoints::DescribePublishingDestination.build(context)
|
101
|
+
when :disable_organization_admin_account
|
102
|
+
Aws::GuardDuty::Endpoints::DisableOrganizationAdminAccount.build(context)
|
103
|
+
when :disassociate_from_administrator_account
|
104
|
+
Aws::GuardDuty::Endpoints::DisassociateFromAdministratorAccount.build(context)
|
105
|
+
when :disassociate_from_master_account
|
106
|
+
Aws::GuardDuty::Endpoints::DisassociateFromMasterAccount.build(context)
|
107
|
+
when :disassociate_members
|
108
|
+
Aws::GuardDuty::Endpoints::DisassociateMembers.build(context)
|
109
|
+
when :enable_organization_admin_account
|
110
|
+
Aws::GuardDuty::Endpoints::EnableOrganizationAdminAccount.build(context)
|
111
|
+
when :get_administrator_account
|
112
|
+
Aws::GuardDuty::Endpoints::GetAdministratorAccount.build(context)
|
113
|
+
when :get_detector
|
114
|
+
Aws::GuardDuty::Endpoints::GetDetector.build(context)
|
115
|
+
when :get_filter
|
116
|
+
Aws::GuardDuty::Endpoints::GetFilter.build(context)
|
117
|
+
when :get_findings
|
118
|
+
Aws::GuardDuty::Endpoints::GetFindings.build(context)
|
119
|
+
when :get_findings_statistics
|
120
|
+
Aws::GuardDuty::Endpoints::GetFindingsStatistics.build(context)
|
121
|
+
when :get_ip_set
|
122
|
+
Aws::GuardDuty::Endpoints::GetIPSet.build(context)
|
123
|
+
when :get_invitations_count
|
124
|
+
Aws::GuardDuty::Endpoints::GetInvitationsCount.build(context)
|
125
|
+
when :get_malware_scan_settings
|
126
|
+
Aws::GuardDuty::Endpoints::GetMalwareScanSettings.build(context)
|
127
|
+
when :get_master_account
|
128
|
+
Aws::GuardDuty::Endpoints::GetMasterAccount.build(context)
|
129
|
+
when :get_member_detectors
|
130
|
+
Aws::GuardDuty::Endpoints::GetMemberDetectors.build(context)
|
131
|
+
when :get_members
|
132
|
+
Aws::GuardDuty::Endpoints::GetMembers.build(context)
|
133
|
+
when :get_remaining_free_trial_days
|
134
|
+
Aws::GuardDuty::Endpoints::GetRemainingFreeTrialDays.build(context)
|
135
|
+
when :get_threat_intel_set
|
136
|
+
Aws::GuardDuty::Endpoints::GetThreatIntelSet.build(context)
|
137
|
+
when :get_usage_statistics
|
138
|
+
Aws::GuardDuty::Endpoints::GetUsageStatistics.build(context)
|
139
|
+
when :invite_members
|
140
|
+
Aws::GuardDuty::Endpoints::InviteMembers.build(context)
|
141
|
+
when :list_detectors
|
142
|
+
Aws::GuardDuty::Endpoints::ListDetectors.build(context)
|
143
|
+
when :list_filters
|
144
|
+
Aws::GuardDuty::Endpoints::ListFilters.build(context)
|
145
|
+
when :list_findings
|
146
|
+
Aws::GuardDuty::Endpoints::ListFindings.build(context)
|
147
|
+
when :list_ip_sets
|
148
|
+
Aws::GuardDuty::Endpoints::ListIPSets.build(context)
|
149
|
+
when :list_invitations
|
150
|
+
Aws::GuardDuty::Endpoints::ListInvitations.build(context)
|
151
|
+
when :list_members
|
152
|
+
Aws::GuardDuty::Endpoints::ListMembers.build(context)
|
153
|
+
when :list_organization_admin_accounts
|
154
|
+
Aws::GuardDuty::Endpoints::ListOrganizationAdminAccounts.build(context)
|
155
|
+
when :list_publishing_destinations
|
156
|
+
Aws::GuardDuty::Endpoints::ListPublishingDestinations.build(context)
|
157
|
+
when :list_tags_for_resource
|
158
|
+
Aws::GuardDuty::Endpoints::ListTagsForResource.build(context)
|
159
|
+
when :list_threat_intel_sets
|
160
|
+
Aws::GuardDuty::Endpoints::ListThreatIntelSets.build(context)
|
161
|
+
when :start_monitoring_members
|
162
|
+
Aws::GuardDuty::Endpoints::StartMonitoringMembers.build(context)
|
163
|
+
when :stop_monitoring_members
|
164
|
+
Aws::GuardDuty::Endpoints::StopMonitoringMembers.build(context)
|
165
|
+
when :tag_resource
|
166
|
+
Aws::GuardDuty::Endpoints::TagResource.build(context)
|
167
|
+
when :unarchive_findings
|
168
|
+
Aws::GuardDuty::Endpoints::UnarchiveFindings.build(context)
|
169
|
+
when :untag_resource
|
170
|
+
Aws::GuardDuty::Endpoints::UntagResource.build(context)
|
171
|
+
when :update_detector
|
172
|
+
Aws::GuardDuty::Endpoints::UpdateDetector.build(context)
|
173
|
+
when :update_filter
|
174
|
+
Aws::GuardDuty::Endpoints::UpdateFilter.build(context)
|
175
|
+
when :update_findings_feedback
|
176
|
+
Aws::GuardDuty::Endpoints::UpdateFindingsFeedback.build(context)
|
177
|
+
when :update_ip_set
|
178
|
+
Aws::GuardDuty::Endpoints::UpdateIPSet.build(context)
|
179
|
+
when :update_malware_scan_settings
|
180
|
+
Aws::GuardDuty::Endpoints::UpdateMalwareScanSettings.build(context)
|
181
|
+
when :update_member_detectors
|
182
|
+
Aws::GuardDuty::Endpoints::UpdateMemberDetectors.build(context)
|
183
|
+
when :update_organization_configuration
|
184
|
+
Aws::GuardDuty::Endpoints::UpdateOrganizationConfiguration.build(context)
|
185
|
+
when :update_publishing_destination
|
186
|
+
Aws::GuardDuty::Endpoints::UpdatePublishingDestination.build(context)
|
187
|
+
when :update_threat_intel_set
|
188
|
+
Aws::GuardDuty::Endpoints::UpdateThreatIntelSet.build(context)
|
189
|
+
end
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
def add_handlers(handlers, _config)
|
194
|
+
handlers.add(Handler, step: :build, priority: 75)
|
195
|
+
end
|
196
|
+
end
|
197
|
+
end
|
198
|
+
end
|
@@ -748,10 +748,16 @@ module Aws::GuardDuty
|
|
748
748
|
# The unique ID of the created detector.
|
749
749
|
# @return [String]
|
750
750
|
#
|
751
|
+
# @!attribute [rw] unprocessed_data_sources
|
752
|
+
# Specifies the data sources that couldn't be enabled when GuardDuty
|
753
|
+
# was enabled for the first time.
|
754
|
+
# @return [Types::UnprocessedDataSourcesResult]
|
755
|
+
#
|
751
756
|
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateDetectorResponse AWS API Documentation
|
752
757
|
#
|
753
758
|
class CreateDetectorResponse < Struct.new(
|
754
|
-
:detector_id
|
759
|
+
:detector_id,
|
760
|
+
:unprocessed_data_sources)
|
755
761
|
SENSITIVE = []
|
756
762
|
include Aws::Structure
|
757
763
|
end
|
@@ -1389,8 +1395,8 @@ module Aws::GuardDuty
|
|
1389
1395
|
# GuardDuty member account.
|
1390
1396
|
#
|
1391
1397
|
# @!attribute [rw] cloud_trail
|
1392
|
-
# Describes whether any
|
1393
|
-
# enabled as data sources.
|
1398
|
+
# Describes whether any Amazon Web Services CloudTrail management
|
1399
|
+
# event logs are enabled as data sources.
|
1394
1400
|
# @return [Types::DataSourceFreeTrial]
|
1395
1401
|
#
|
1396
1402
|
# @!attribute [rw] dns_logs
|
@@ -2161,10 +2167,16 @@ module Aws::GuardDuty
|
|
2161
2167
|
# Describes whether scanning EBS volumes is enabled as a data source.
|
2162
2168
|
# @return [String]
|
2163
2169
|
#
|
2170
|
+
# @!attribute [rw] reason
|
2171
|
+
# Specifies the reason why scanning EBS volumes (Malware Protection)
|
2172
|
+
# was not enabled as a data source.
|
2173
|
+
# @return [String]
|
2174
|
+
#
|
2164
2175
|
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/EbsVolumesResult AWS API Documentation
|
2165
2176
|
#
|
2166
2177
|
class EbsVolumesResult < Struct.new(
|
2167
|
-
:status
|
2178
|
+
:status,
|
2179
|
+
:reason)
|
2168
2180
|
SENSITIVE = []
|
2169
2181
|
include Aws::Structure
|
2170
2182
|
end
|
@@ -2424,7 +2436,10 @@ module Aws::GuardDuty
|
|
2424
2436
|
end
|
2425
2437
|
|
2426
2438
|
# Represents a condition that when matched will be added to the response
|
2427
|
-
# of the operation.
|
2439
|
+
# of the operation. Irrespective of using any filter criteria, an
|
2440
|
+
# administrator account can view the scan entries for all of its member
|
2441
|
+
# accounts. However, each member account can view the scan entries only
|
2442
|
+
# for their own account.
|
2428
2443
|
#
|
2429
2444
|
# @note When making an API call, you may pass FilterCriterion
|
2430
2445
|
# data as a hash:
|
@@ -2995,7 +3010,7 @@ module Aws::GuardDuty
|
|
2995
3010
|
# @return [Types::ScanResourceCriteria]
|
2996
3011
|
#
|
2997
3012
|
# @!attribute [rw] ebs_snapshot_preservation
|
2998
|
-
# An enum value representing possible snapshot
|
3013
|
+
# An enum value representing possible snapshot preservation settings.
|
2999
3014
|
# @return [String]
|
3000
3015
|
#
|
3001
3016
|
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetMalwareScanSettingsResponse AWS API Documentation
|
@@ -4209,7 +4224,13 @@ module Aws::GuardDuty
|
|
4209
4224
|
# @!attribute [rw] only_associated
|
4210
4225
|
# Specifies whether to only return associated members or to return all
|
4211
4226
|
# members (including members who haven't been invited yet or have
|
4212
|
-
# been disassociated).
|
4227
|
+
# been disassociated). Member accounts must have been previously
|
4228
|
+
# associated with the GuardDuty administrator account using [ `Create
|
4229
|
+
# Members` ][1].
|
4230
|
+
#
|
4231
|
+
#
|
4232
|
+
#
|
4233
|
+
# [1]: https://docs.aws.amazon.com/guardduty/latest/APIReference/API_CreateMembers.html
|
4213
4234
|
# @return [String]
|
4214
4235
|
#
|
4215
4236
|
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListMembersRequest AWS API Documentation
|
@@ -6252,6 +6273,21 @@ module Aws::GuardDuty
|
|
6252
6273
|
include Aws::Structure
|
6253
6274
|
end
|
6254
6275
|
|
6276
|
+
# Specifies the names of the data sources that couldn't be enabled.
|
6277
|
+
#
|
6278
|
+
# @!attribute [rw] malware_protection
|
6279
|
+
# An object that contains information on the status of all Malware
|
6280
|
+
# Protection data sources.
|
6281
|
+
# @return [Types::MalwareProtectionConfigurationResult]
|
6282
|
+
#
|
6283
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UnprocessedDataSourcesResult AWS API Documentation
|
6284
|
+
#
|
6285
|
+
class UnprocessedDataSourcesResult < Struct.new(
|
6286
|
+
:malware_protection)
|
6287
|
+
SENSITIVE = []
|
6288
|
+
include Aws::Structure
|
6289
|
+
end
|
6290
|
+
|
6255
6291
|
# @note When making an API call, you may pass UntagResourceRequest
|
6256
6292
|
# data as a hash:
|
6257
6293
|
#
|
@@ -6553,7 +6589,7 @@ module Aws::GuardDuty
|
|
6553
6589
|
# @return [Types::ScanResourceCriteria]
|
6554
6590
|
#
|
6555
6591
|
# @!attribute [rw] ebs_snapshot_preservation
|
6556
|
-
# An enum value representing possible snapshot
|
6592
|
+
# An enum value representing possible snapshot preservation settings.
|
6557
6593
|
# @return [String]
|
6558
6594
|
#
|
6559
6595
|
# @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UpdateMalwareScanSettingsRequest AWS API Documentation
|
data/lib/aws-sdk-guardduty.rb
CHANGED
@@ -13,9 +13,13 @@ require 'aws-sigv4'
|
|
13
13
|
|
14
14
|
require_relative 'aws-sdk-guardduty/types'
|
15
15
|
require_relative 'aws-sdk-guardduty/client_api'
|
16
|
+
require_relative 'aws-sdk-guardduty/plugins/endpoints.rb'
|
16
17
|
require_relative 'aws-sdk-guardduty/client'
|
17
18
|
require_relative 'aws-sdk-guardduty/errors'
|
18
19
|
require_relative 'aws-sdk-guardduty/resource'
|
20
|
+
require_relative 'aws-sdk-guardduty/endpoint_parameters'
|
21
|
+
require_relative 'aws-sdk-guardduty/endpoint_provider'
|
22
|
+
require_relative 'aws-sdk-guardduty/endpoints'
|
19
23
|
require_relative 'aws-sdk-guardduty/customizations'
|
20
24
|
|
21
25
|
# This module provides support for Amazon GuardDuty. This module is available in the
|
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-guardduty/customizations'
|
|
48
52
|
# @!group service
|
49
53
|
module Aws::GuardDuty
|
50
54
|
|
51
|
-
GEM_VERSION = '1.
|
55
|
+
GEM_VERSION = '1.61.0'
|
52
56
|
|
53
57
|
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.
|
4
|
+
version: 1.61.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: 2022-
|
11
|
+
date: 2022-10-25 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.
|
22
|
+
version: 3.165.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.
|
32
|
+
version: 3.165.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +59,11 @@ files:
|
|
59
59
|
- lib/aws-sdk-guardduty/client.rb
|
60
60
|
- lib/aws-sdk-guardduty/client_api.rb
|
61
61
|
- lib/aws-sdk-guardduty/customizations.rb
|
62
|
+
- lib/aws-sdk-guardduty/endpoint_parameters.rb
|
63
|
+
- lib/aws-sdk-guardduty/endpoint_provider.rb
|
64
|
+
- lib/aws-sdk-guardduty/endpoints.rb
|
62
65
|
- lib/aws-sdk-guardduty/errors.rb
|
66
|
+
- lib/aws-sdk-guardduty/plugins/endpoints.rb
|
63
67
|
- lib/aws-sdk-guardduty/resource.rb
|
64
68
|
- lib/aws-sdk-guardduty/types.rb
|
65
69
|
homepage: https://github.com/aws/aws-sdk-ruby
|