aws-sdk-guardduty 1.57.0 → 1.58.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
  SHA256:
3
- metadata.gz: f2849fb927ef46d15f6d43d47187982a707e01ec907a8fb095f1db7e12162c29
4
- data.tar.gz: 533e43863f7f26197a11415ef941068f4bdc373c328ee1650d972392d02af21e
3
+ metadata.gz: 869d806801afa2b4a5b1949bdd1b98811394238075eb5cd043307213363c7ff8
4
+ data.tar.gz: f8299da7691c031486b83fab3756f0a68ab368063298bf7c51c0c1855f2616d9
5
5
  SHA512:
6
- metadata.gz: ea1caf66103632936148259bad3b13ed623b3661607d1085869959c0c3d25e5c52f20ff09d31a60bdd1aa52493b2eb6fc8f0834359b6b3941953a948d1634ba4
7
- data.tar.gz: 3cba6b299e6dcd150f06d17b2358bb9e9a94bff5299a4585032f0ff26209edfb73c35cf1d1c460b709538a898ba16985eed1f5f95dd89cb4381adf4a27786fe4
6
+ metadata.gz: 5df5248b5ae3aeba4793aee592e9989d0713252d024e682a16836e0abd57a31b85115ec8eb4efc700e7cbe7fc71a67e26acd93a8e4cc2552a8fbdca5157b5093
7
+ data.tar.gz: 790c45ba079457076e7e16367adc07b9d12bfa8c264b449e3cfaf91e16f82f745f65d30961126913d2a65f831fb52f086f2b49081c4a2dd3d845766e15e14e29
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.58.0 (2022-06-15)
5
+ ------------------
6
+
7
+ * Feature - Adds finding fields available from GuardDuty Console. Adds FreeTrial related operations. Deprecates the use of various APIs related to Master Accounts and Replace them with Administrator Accounts.
8
+
4
9
  1.57.0 (2022-04-28)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.57.0
1
+ 1.58.0
@@ -351,6 +351,39 @@ module Aws::GuardDuty
351
351
 
352
352
  # @!group API Operations
353
353
 
354
+ # Accepts the invitation to be a member account and get monitored by a
355
+ # GuardDuty administrator account that sent the invitation.
356
+ #
357
+ # @option params [required, String] :detector_id
358
+ # The unique ID of the detector of the GuardDuty member account.
359
+ #
360
+ # @option params [required, String] :administrator_id
361
+ # The account ID of the GuardDuty administrator account whose invitation
362
+ # you're accepting.
363
+ #
364
+ # @option params [required, String] :invitation_id
365
+ # The value that is used to validate the administrator account to the
366
+ # member account.
367
+ #
368
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
369
+ #
370
+ # @example Request syntax with placeholder values
371
+ #
372
+ # resp = client.accept_administrator_invitation({
373
+ # detector_id: "DetectorId", # required
374
+ # administrator_id: "String", # required
375
+ # invitation_id: "String", # required
376
+ # })
377
+ #
378
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/AcceptAdministratorInvitation AWS API Documentation
379
+ #
380
+ # @overload accept_administrator_invitation(params = {})
381
+ # @param [Hash] params ({})
382
+ def accept_administrator_invitation(params = {}, options = {})
383
+ req = build_request(:accept_administrator_invitation, params)
384
+ req.send_request(options)
385
+ end
386
+
354
387
  # Accepts the invitation to be monitored by a GuardDuty administrator
355
388
  # account.
356
389
  #
@@ -1291,6 +1324,29 @@ module Aws::GuardDuty
1291
1324
  req.send_request(options)
1292
1325
  end
1293
1326
 
1327
+ # Disassociates the current GuardDuty member account from its
1328
+ # administrator account.
1329
+ #
1330
+ # @option params [required, String] :detector_id
1331
+ # The unique ID of the detector of the GuardDuty member account.
1332
+ #
1333
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1334
+ #
1335
+ # @example Request syntax with placeholder values
1336
+ #
1337
+ # resp = client.disassociate_from_administrator_account({
1338
+ # detector_id: "DetectorId", # required
1339
+ # })
1340
+ #
1341
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DisassociateFromAdministratorAccount AWS API Documentation
1342
+ #
1343
+ # @overload disassociate_from_administrator_account(params = {})
1344
+ # @param [Hash] params ({})
1345
+ def disassociate_from_administrator_account(params = {}, options = {})
1346
+ req = build_request(:disassociate_from_administrator_account, params)
1347
+ req.send_request(options)
1348
+ end
1349
+
1294
1350
  # Disassociates the current GuardDuty member account from its
1295
1351
  # administrator account.
1296
1352
  #
@@ -1315,13 +1371,7 @@ module Aws::GuardDuty
1315
1371
  end
1316
1372
 
1317
1373
  # Disassociates GuardDuty member accounts (to the current GuardDuty
1318
- # administrator account) specified by the account IDs. Member accounts
1319
- # added through [Invitation][1] get deleted from the current GuardDuty
1320
- # administrator account after 30 days of disassociation.
1321
- #
1322
- #
1323
- #
1324
- # [1]: https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_invitations.html
1374
+ # administrator account) specified by the account IDs.
1325
1375
  #
1326
1376
  # @option params [required, String] :detector_id
1327
1377
  # The unique ID of the detector of the GuardDuty account whose members
@@ -1381,6 +1431,38 @@ module Aws::GuardDuty
1381
1431
  req.send_request(options)
1382
1432
  end
1383
1433
 
1434
+ # Provides the details for the GuardDuty administrator account
1435
+ # associated with the current GuardDuty member account.
1436
+ #
1437
+ # @option params [required, String] :detector_id
1438
+ # The unique ID of the detector of the GuardDuty member account.
1439
+ #
1440
+ # @return [Types::GetAdministratorAccountResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1441
+ #
1442
+ # * {Types::GetAdministratorAccountResponse#administrator #administrator} => Types::Administrator
1443
+ #
1444
+ # @example Request syntax with placeholder values
1445
+ #
1446
+ # resp = client.get_administrator_account({
1447
+ # detector_id: "DetectorId", # required
1448
+ # })
1449
+ #
1450
+ # @example Response structure
1451
+ #
1452
+ # resp.administrator.account_id #=> String
1453
+ # resp.administrator.invitation_id #=> String
1454
+ # resp.administrator.relationship_status #=> String
1455
+ # resp.administrator.invited_at #=> String
1456
+ #
1457
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetAdministratorAccount AWS API Documentation
1458
+ #
1459
+ # @overload get_administrator_account(params = {})
1460
+ # @param [Hash] params ({})
1461
+ def get_administrator_account(params = {}, options = {})
1462
+ req = build_request(:get_administrator_account, params)
1463
+ req.send_request(options)
1464
+ end
1465
+
1384
1466
  # Retrieves an Amazon GuardDuty detector specified by the detectorId.
1385
1467
  #
1386
1468
  # @option params [required, String] :detector_id
@@ -1635,7 +1717,11 @@ module Aws::GuardDuty
1635
1717
  # resp.findings[0].service.action.aws_api_call_action.service_name #=> String
1636
1718
  # resp.findings[0].service.action.aws_api_call_action.remote_account_details.account_id #=> String
1637
1719
  # resp.findings[0].service.action.aws_api_call_action.remote_account_details.affiliated #=> Boolean
1720
+ # resp.findings[0].service.action.aws_api_call_action.affected_resources #=> Hash
1721
+ # resp.findings[0].service.action.aws_api_call_action.affected_resources["String"] #=> String
1638
1722
  # resp.findings[0].service.action.dns_request_action.domain #=> String
1723
+ # resp.findings[0].service.action.dns_request_action.protocol #=> String
1724
+ # resp.findings[0].service.action.dns_request_action.blocked #=> Boolean
1639
1725
  # resp.findings[0].service.action.network_connection_action.blocked #=> Boolean
1640
1726
  # resp.findings[0].service.action.network_connection_action.connection_direction #=> String
1641
1727
  # resp.findings[0].service.action.network_connection_action.local_port_details.port #=> Integer
@@ -1698,6 +1784,8 @@ module Aws::GuardDuty
1698
1784
  # resp.findings[0].service.resource_role #=> String
1699
1785
  # resp.findings[0].service.service_name #=> String
1700
1786
  # resp.findings[0].service.user_feedback #=> String
1787
+ # resp.findings[0].service.additional_info.value #=> String
1788
+ # resp.findings[0].service.additional_info.type #=> String
1701
1789
  # resp.findings[0].severity #=> Float
1702
1790
  # resp.findings[0].title #=> String
1703
1791
  # resp.findings[0].type #=> String
@@ -1938,6 +2026,7 @@ module Aws::GuardDuty
1938
2026
  # resp.members[0].relationship_status #=> String
1939
2027
  # resp.members[0].invited_at #=> String
1940
2028
  # resp.members[0].updated_at #=> String
2029
+ # resp.members[0].administrator_id #=> String
1941
2030
  # resp.unprocessed_accounts #=> Array
1942
2031
  # resp.unprocessed_accounts[0].account_id #=> String
1943
2032
  # resp.unprocessed_accounts[0].result #=> String
@@ -1951,6 +2040,49 @@ module Aws::GuardDuty
1951
2040
  req.send_request(options)
1952
2041
  end
1953
2042
 
2043
+ # Provides the number of days left for each data source used in the free
2044
+ # trial period.
2045
+ #
2046
+ # @option params [required, String] :detector_id
2047
+ # The unique ID of the detector of the GuardDuty member account.
2048
+ #
2049
+ # @option params [Array<String>] :account_ids
2050
+ # A list of account identifiers of the GuardDuty member account.
2051
+ #
2052
+ # @return [Types::GetRemainingFreeTrialDaysResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2053
+ #
2054
+ # * {Types::GetRemainingFreeTrialDaysResponse#accounts #accounts} => Array&lt;Types::AccountFreeTrialInfo&gt;
2055
+ # * {Types::GetRemainingFreeTrialDaysResponse#unprocessed_accounts #unprocessed_accounts} => Array&lt;Types::UnprocessedAccount&gt;
2056
+ #
2057
+ # @example Request syntax with placeholder values
2058
+ #
2059
+ # resp = client.get_remaining_free_trial_days({
2060
+ # detector_id: "DetectorId", # required
2061
+ # account_ids: ["AccountId"],
2062
+ # })
2063
+ #
2064
+ # @example Response structure
2065
+ #
2066
+ # resp.accounts #=> Array
2067
+ # resp.accounts[0].account_id #=> String
2068
+ # resp.accounts[0].data_sources.cloud_trail.free_trial_days_remaining #=> Integer
2069
+ # resp.accounts[0].data_sources.dns_logs.free_trial_days_remaining #=> Integer
2070
+ # resp.accounts[0].data_sources.flow_logs.free_trial_days_remaining #=> Integer
2071
+ # resp.accounts[0].data_sources.s3_logs.free_trial_days_remaining #=> Integer
2072
+ # resp.accounts[0].data_sources.kubernetes.audit_logs.free_trial_days_remaining #=> Integer
2073
+ # resp.unprocessed_accounts #=> Array
2074
+ # resp.unprocessed_accounts[0].account_id #=> String
2075
+ # resp.unprocessed_accounts[0].result #=> String
2076
+ #
2077
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetRemainingFreeTrialDays AWS API Documentation
2078
+ #
2079
+ # @overload get_remaining_free_trial_days(params = {})
2080
+ # @param [Hash] params ({})
2081
+ def get_remaining_free_trial_days(params = {}, options = {})
2082
+ req = build_request(:get_remaining_free_trial_days, params)
2083
+ req.send_request(options)
2084
+ end
2085
+
1954
2086
  # Retrieves the ThreatIntelSet that is specified by the ThreatIntelSet
1955
2087
  # ID.
1956
2088
  #
@@ -1995,11 +2127,11 @@ module Aws::GuardDuty
1995
2127
  end
1996
2128
 
1997
2129
  # Lists Amazon GuardDuty usage statistics over the last 30 days for the
1998
- # specified detector ID. For newly enabled detectors or data sources the
1999
- # cost returned will include only the usage so far under 30 days, this
2000
- # may differ from the cost metrics in the console, which projects usage
2001
- # over 30 days to provide a monthly cost estimate. For more information
2002
- # see [Understanding How Usage Costs are Calculated][1].
2130
+ # specified detector ID. For newly enabled detectors or data sources,
2131
+ # the cost returned will include only the usage so far under 30 days.
2132
+ # This may differ from the cost metrics in the console, which project
2133
+ # usage over 30 days to provide a monthly cost estimate. For more
2134
+ # information, see [Understanding How Usage Costs are Calculated][1].
2003
2135
  #
2004
2136
  #
2005
2137
  #
@@ -2547,6 +2679,7 @@ module Aws::GuardDuty
2547
2679
  # resp.members[0].relationship_status #=> String
2548
2680
  # resp.members[0].invited_at #=> String
2549
2681
  # resp.members[0].updated_at #=> String
2682
+ # resp.members[0].administrator_id #=> String
2550
2683
  # resp.next_token #=> String
2551
2684
  #
2552
2685
  # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListMembers AWS API Documentation
@@ -3254,7 +3387,7 @@ module Aws::GuardDuty
3254
3387
  params: params,
3255
3388
  config: config)
3256
3389
  context[:gem_name] = 'aws-sdk-guardduty'
3257
- context[:gem_version] = '1.57.0'
3390
+ context[:gem_version] = '1.58.0'
3258
3391
  Seahorse::Client::Request.new(handlers, context)
3259
3392
  end
3260
3393
 
@@ -13,12 +13,16 @@ module Aws::GuardDuty
13
13
 
14
14
  include Seahorse::Model
15
15
 
16
+ AcceptAdministratorInvitationRequest = Shapes::StructureShape.new(name: 'AcceptAdministratorInvitationRequest')
17
+ AcceptAdministratorInvitationResponse = Shapes::StructureShape.new(name: 'AcceptAdministratorInvitationResponse')
16
18
  AcceptInvitationRequest = Shapes::StructureShape.new(name: 'AcceptInvitationRequest')
17
19
  AcceptInvitationResponse = Shapes::StructureShape.new(name: 'AcceptInvitationResponse')
18
20
  AccessControlList = Shapes::StructureShape.new(name: 'AccessControlList')
19
21
  AccessKeyDetails = Shapes::StructureShape.new(name: 'AccessKeyDetails')
20
22
  AccountDetail = Shapes::StructureShape.new(name: 'AccountDetail')
21
23
  AccountDetails = Shapes::ListShape.new(name: 'AccountDetails')
24
+ AccountFreeTrialInfo = Shapes::StructureShape.new(name: 'AccountFreeTrialInfo')
25
+ AccountFreeTrialInfos = Shapes::ListShape.new(name: 'AccountFreeTrialInfos')
22
26
  AccountId = Shapes::StringShape.new(name: 'AccountId')
23
27
  AccountIds = Shapes::ListShape.new(name: 'AccountIds')
24
28
  AccountLevelPermissions = Shapes::StructureShape.new(name: 'AccountLevelPermissions')
@@ -26,6 +30,8 @@ module Aws::GuardDuty
26
30
  AdminAccount = Shapes::StructureShape.new(name: 'AdminAccount')
27
31
  AdminAccounts = Shapes::ListShape.new(name: 'AdminAccounts')
28
32
  AdminStatus = Shapes::StringShape.new(name: 'AdminStatus')
33
+ Administrator = Shapes::StructureShape.new(name: 'Administrator')
34
+ AffectedResources = Shapes::MapShape.new(name: 'AffectedResources')
29
35
  ArchiveFindingsRequest = Shapes::StructureShape.new(name: 'ArchiveFindingsRequest')
30
36
  ArchiveFindingsResponse = Shapes::StructureShape.new(name: 'ArchiveFindingsResponse')
31
37
  AwsApiCallAction = Shapes::StructureShape.new(name: 'AwsApiCallAction')
@@ -61,8 +67,10 @@ module Aws::GuardDuty
61
67
  DataSource = Shapes::StringShape.new(name: 'DataSource')
62
68
  DataSourceConfigurations = Shapes::StructureShape.new(name: 'DataSourceConfigurations')
63
69
  DataSourceConfigurationsResult = Shapes::StructureShape.new(name: 'DataSourceConfigurationsResult')
70
+ DataSourceFreeTrial = Shapes::StructureShape.new(name: 'DataSourceFreeTrial')
64
71
  DataSourceList = Shapes::ListShape.new(name: 'DataSourceList')
65
72
  DataSourceStatus = Shapes::StringShape.new(name: 'DataSourceStatus')
73
+ DataSourcesFreeTrial = Shapes::StructureShape.new(name: 'DataSourcesFreeTrial')
66
74
  DeclineInvitationsRequest = Shapes::StructureShape.new(name: 'DeclineInvitationsRequest')
67
75
  DeclineInvitationsResponse = Shapes::StructureShape.new(name: 'DeclineInvitationsResponse')
68
76
  DefaultServerSideEncryption = Shapes::StructureShape.new(name: 'DefaultServerSideEncryption')
@@ -93,6 +101,8 @@ module Aws::GuardDuty
93
101
  DetectorStatus = Shapes::StringShape.new(name: 'DetectorStatus')
94
102
  DisableOrganizationAdminAccountRequest = Shapes::StructureShape.new(name: 'DisableOrganizationAdminAccountRequest')
95
103
  DisableOrganizationAdminAccountResponse = Shapes::StructureShape.new(name: 'DisableOrganizationAdminAccountResponse')
104
+ DisassociateFromAdministratorAccountRequest = Shapes::StructureShape.new(name: 'DisassociateFromAdministratorAccountRequest')
105
+ DisassociateFromAdministratorAccountResponse = Shapes::StructureShape.new(name: 'DisassociateFromAdministratorAccountResponse')
96
106
  DisassociateFromMasterAccountRequest = Shapes::StructureShape.new(name: 'DisassociateFromMasterAccountRequest')
97
107
  DisassociateFromMasterAccountResponse = Shapes::StructureShape.new(name: 'DisassociateFromMasterAccountResponse')
98
108
  DisassociateMembersRequest = Shapes::StructureShape.new(name: 'DisassociateMembersRequest')
@@ -126,6 +136,8 @@ module Aws::GuardDuty
126
136
  Findings = Shapes::ListShape.new(name: 'Findings')
127
137
  FlowLogsConfigurationResult = Shapes::StructureShape.new(name: 'FlowLogsConfigurationResult')
128
138
  GeoLocation = Shapes::StructureShape.new(name: 'GeoLocation')
139
+ GetAdministratorAccountRequest = Shapes::StructureShape.new(name: 'GetAdministratorAccountRequest')
140
+ GetAdministratorAccountResponse = Shapes::StructureShape.new(name: 'GetAdministratorAccountResponse')
129
141
  GetDetectorRequest = Shapes::StructureShape.new(name: 'GetDetectorRequest')
130
142
  GetDetectorResponse = Shapes::StructureShape.new(name: 'GetDetectorResponse')
131
143
  GetFilterRequest = Shapes::StructureShape.new(name: 'GetFilterRequest')
@@ -144,6 +156,8 @@ module Aws::GuardDuty
144
156
  GetMemberDetectorsResponse = Shapes::StructureShape.new(name: 'GetMemberDetectorsResponse')
145
157
  GetMembersRequest = Shapes::StructureShape.new(name: 'GetMembersRequest')
146
158
  GetMembersResponse = Shapes::StructureShape.new(name: 'GetMembersResponse')
159
+ GetRemainingFreeTrialDaysRequest = Shapes::StructureShape.new(name: 'GetRemainingFreeTrialDaysRequest')
160
+ GetRemainingFreeTrialDaysResponse = Shapes::StructureShape.new(name: 'GetRemainingFreeTrialDaysResponse')
147
161
  GetThreatIntelSetRequest = Shapes::StructureShape.new(name: 'GetThreatIntelSetRequest')
148
162
  GetThreatIntelSetResponse = Shapes::StructureShape.new(name: 'GetThreatIntelSetResponse')
149
163
  GetUsageStatisticsRequest = Shapes::StructureShape.new(name: 'GetUsageStatisticsRequest')
@@ -168,6 +182,7 @@ module Aws::GuardDuty
168
182
  KubernetesAuditLogsConfigurationResult = Shapes::StructureShape.new(name: 'KubernetesAuditLogsConfigurationResult')
169
183
  KubernetesConfiguration = Shapes::StructureShape.new(name: 'KubernetesConfiguration')
170
184
  KubernetesConfigurationResult = Shapes::StructureShape.new(name: 'KubernetesConfigurationResult')
185
+ KubernetesDataSourceFreeTrial = Shapes::StructureShape.new(name: 'KubernetesDataSourceFreeTrial')
171
186
  KubernetesDetails = Shapes::StructureShape.new(name: 'KubernetesDetails')
172
187
  KubernetesUserDetails = Shapes::StructureShape.new(name: 'KubernetesUserDetails')
173
188
  KubernetesWorkloadDetails = Shapes::StructureShape.new(name: 'KubernetesWorkloadDetails')
@@ -241,6 +256,7 @@ module Aws::GuardDuty
241
256
  SecurityGroup = Shapes::StructureShape.new(name: 'SecurityGroup')
242
257
  SecurityGroups = Shapes::ListShape.new(name: 'SecurityGroups')
243
258
  Service = Shapes::StructureShape.new(name: 'Service')
259
+ ServiceAdditionalInfo = Shapes::StructureShape.new(name: 'ServiceAdditionalInfo')
244
260
  SortCriteria = Shapes::StructureShape.new(name: 'SortCriteria')
245
261
  SourceIps = Shapes::ListShape.new(name: 'SourceIps')
246
262
  StartMonitoringMembersRequest = Shapes::StructureShape.new(name: 'StartMonitoringMembersRequest')
@@ -300,6 +316,13 @@ module Aws::GuardDuty
300
316
  VolumeMounts = Shapes::ListShape.new(name: 'VolumeMounts')
301
317
  Volumes = Shapes::ListShape.new(name: 'Volumes')
302
318
 
319
+ AcceptAdministratorInvitationRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, required: true, location: "uri", location_name: "detectorId"))
320
+ AcceptAdministratorInvitationRequest.add_member(:administrator_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "administratorId"))
321
+ AcceptAdministratorInvitationRequest.add_member(:invitation_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "invitationId"))
322
+ AcceptAdministratorInvitationRequest.struct_class = Types::AcceptAdministratorInvitationRequest
323
+
324
+ AcceptAdministratorInvitationResponse.struct_class = Types::AcceptAdministratorInvitationResponse
325
+
303
326
  AcceptInvitationRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, required: true, location: "uri", location_name: "detectorId"))
304
327
  AcceptInvitationRequest.add_member(:master_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "masterId"))
305
328
  AcceptInvitationRequest.add_member(:invitation_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "invitationId"))
@@ -323,6 +346,12 @@ module Aws::GuardDuty
323
346
 
324
347
  AccountDetails.member = Shapes::ShapeRef.new(shape: AccountDetail)
325
348
 
349
+ AccountFreeTrialInfo.add_member(:account_id, Shapes::ShapeRef.new(shape: String, location_name: "accountId"))
350
+ AccountFreeTrialInfo.add_member(:data_sources, Shapes::ShapeRef.new(shape: DataSourcesFreeTrial, location_name: "dataSources"))
351
+ AccountFreeTrialInfo.struct_class = Types::AccountFreeTrialInfo
352
+
353
+ AccountFreeTrialInfos.member = Shapes::ShapeRef.new(shape: AccountFreeTrialInfo)
354
+
326
355
  AccountIds.member = Shapes::ShapeRef.new(shape: AccountId)
327
356
 
328
357
  AccountLevelPermissions.add_member(:block_public_access, Shapes::ShapeRef.new(shape: BlockPublicAccess, location_name: "blockPublicAccess"))
@@ -342,6 +371,15 @@ module Aws::GuardDuty
342
371
 
343
372
  AdminAccounts.member = Shapes::ShapeRef.new(shape: AdminAccount)
344
373
 
374
+ Administrator.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "accountId"))
375
+ Administrator.add_member(:invitation_id, Shapes::ShapeRef.new(shape: String, location_name: "invitationId"))
376
+ Administrator.add_member(:relationship_status, Shapes::ShapeRef.new(shape: String, location_name: "relationshipStatus"))
377
+ Administrator.add_member(:invited_at, Shapes::ShapeRef.new(shape: String, location_name: "invitedAt"))
378
+ Administrator.struct_class = Types::Administrator
379
+
380
+ AffectedResources.key = Shapes::ShapeRef.new(shape: String)
381
+ AffectedResources.value = Shapes::ShapeRef.new(shape: String)
382
+
345
383
  ArchiveFindingsRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, required: true, location: "uri", location_name: "detectorId"))
346
384
  ArchiveFindingsRequest.add_member(:finding_ids, Shapes::ShapeRef.new(shape: FindingIds, required: true, location_name: "findingIds"))
347
385
  ArchiveFindingsRequest.struct_class = Types::ArchiveFindingsRequest
@@ -356,6 +394,7 @@ module Aws::GuardDuty
356
394
  AwsApiCallAction.add_member(:remote_ip_details, Shapes::ShapeRef.new(shape: RemoteIpDetails, location_name: "remoteIpDetails"))
357
395
  AwsApiCallAction.add_member(:service_name, Shapes::ShapeRef.new(shape: String, location_name: "serviceName"))
358
396
  AwsApiCallAction.add_member(:remote_account_details, Shapes::ShapeRef.new(shape: RemoteAccountDetails, location_name: "remoteAccountDetails"))
397
+ AwsApiCallAction.add_member(:affected_resources, Shapes::ShapeRef.new(shape: AffectedResources, location_name: "affectedResources"))
359
398
  AwsApiCallAction.struct_class = Types::AwsApiCallAction
360
399
 
361
400
  BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
@@ -501,8 +540,18 @@ module Aws::GuardDuty
501
540
  DataSourceConfigurationsResult.add_member(:kubernetes, Shapes::ShapeRef.new(shape: KubernetesConfigurationResult, location_name: "kubernetes"))
502
541
  DataSourceConfigurationsResult.struct_class = Types::DataSourceConfigurationsResult
503
542
 
543
+ DataSourceFreeTrial.add_member(:free_trial_days_remaining, Shapes::ShapeRef.new(shape: Integer, location_name: "freeTrialDaysRemaining"))
544
+ DataSourceFreeTrial.struct_class = Types::DataSourceFreeTrial
545
+
504
546
  DataSourceList.member = Shapes::ShapeRef.new(shape: DataSource)
505
547
 
548
+ DataSourcesFreeTrial.add_member(:cloud_trail, Shapes::ShapeRef.new(shape: DataSourceFreeTrial, location_name: "cloudTrail"))
549
+ DataSourcesFreeTrial.add_member(:dns_logs, Shapes::ShapeRef.new(shape: DataSourceFreeTrial, location_name: "dnsLogs"))
550
+ DataSourcesFreeTrial.add_member(:flow_logs, Shapes::ShapeRef.new(shape: DataSourceFreeTrial, location_name: "flowLogs"))
551
+ DataSourcesFreeTrial.add_member(:s3_logs, Shapes::ShapeRef.new(shape: DataSourceFreeTrial, location_name: "s3Logs"))
552
+ DataSourcesFreeTrial.add_member(:kubernetes, Shapes::ShapeRef.new(shape: KubernetesDataSourceFreeTrial, location_name: "kubernetes"))
553
+ DataSourcesFreeTrial.struct_class = Types::DataSourcesFreeTrial
554
+
506
555
  DeclineInvitationsRequest.add_member(:account_ids, Shapes::ShapeRef.new(shape: AccountIds, required: true, location_name: "accountIds"))
507
556
  DeclineInvitationsRequest.struct_class = Types::DeclineInvitationsRequest
508
557
 
@@ -592,6 +641,11 @@ module Aws::GuardDuty
592
641
 
593
642
  DisableOrganizationAdminAccountResponse.struct_class = Types::DisableOrganizationAdminAccountResponse
594
643
 
644
+ DisassociateFromAdministratorAccountRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, required: true, location: "uri", location_name: "detectorId"))
645
+ DisassociateFromAdministratorAccountRequest.struct_class = Types::DisassociateFromAdministratorAccountRequest
646
+
647
+ DisassociateFromAdministratorAccountResponse.struct_class = Types::DisassociateFromAdministratorAccountResponse
648
+
595
649
  DisassociateFromMasterAccountRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, required: true, location: "uri", location_name: "detectorId"))
596
650
  DisassociateFromMasterAccountRequest.struct_class = Types::DisassociateFromMasterAccountRequest
597
651
 
@@ -605,6 +659,8 @@ module Aws::GuardDuty
605
659
  DisassociateMembersResponse.struct_class = Types::DisassociateMembersResponse
606
660
 
607
661
  DnsRequestAction.add_member(:domain, Shapes::ShapeRef.new(shape: String, location_name: "domain"))
662
+ DnsRequestAction.add_member(:protocol, Shapes::ShapeRef.new(shape: String, location_name: "protocol"))
663
+ DnsRequestAction.add_member(:blocked, Shapes::ShapeRef.new(shape: Boolean, location_name: "blocked"))
608
664
  DnsRequestAction.struct_class = Types::DnsRequestAction
609
665
 
610
666
  DomainDetails.add_member(:domain, Shapes::ShapeRef.new(shape: String, location_name: "domain"))
@@ -670,6 +726,12 @@ module Aws::GuardDuty
670
726
  GeoLocation.add_member(:lon, Shapes::ShapeRef.new(shape: Double, location_name: "lon"))
671
727
  GeoLocation.struct_class = Types::GeoLocation
672
728
 
729
+ GetAdministratorAccountRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, required: true, location: "uri", location_name: "detectorId"))
730
+ GetAdministratorAccountRequest.struct_class = Types::GetAdministratorAccountRequest
731
+
732
+ GetAdministratorAccountResponse.add_member(:administrator, Shapes::ShapeRef.new(shape: Administrator, required: true, location_name: "administrator"))
733
+ GetAdministratorAccountResponse.struct_class = Types::GetAdministratorAccountResponse
734
+
673
735
  GetDetectorRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, required: true, location: "uri", location_name: "detectorId"))
674
736
  GetDetectorRequest.struct_class = Types::GetDetectorRequest
675
737
 
@@ -748,6 +810,14 @@ module Aws::GuardDuty
748
810
  GetMembersResponse.add_member(:unprocessed_accounts, Shapes::ShapeRef.new(shape: UnprocessedAccounts, required: true, location_name: "unprocessedAccounts"))
749
811
  GetMembersResponse.struct_class = Types::GetMembersResponse
750
812
 
813
+ GetRemainingFreeTrialDaysRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, required: true, location: "uri", location_name: "detectorId"))
814
+ GetRemainingFreeTrialDaysRequest.add_member(:account_ids, Shapes::ShapeRef.new(shape: AccountIds, location_name: "accountIds"))
815
+ GetRemainingFreeTrialDaysRequest.struct_class = Types::GetRemainingFreeTrialDaysRequest
816
+
817
+ GetRemainingFreeTrialDaysResponse.add_member(:accounts, Shapes::ShapeRef.new(shape: AccountFreeTrialInfos, location_name: "accounts"))
818
+ GetRemainingFreeTrialDaysResponse.add_member(:unprocessed_accounts, Shapes::ShapeRef.new(shape: UnprocessedAccounts, location_name: "unprocessedAccounts"))
819
+ GetRemainingFreeTrialDaysResponse.struct_class = Types::GetRemainingFreeTrialDaysResponse
820
+
751
821
  GetThreatIntelSetRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, required: true, location: "uri", location_name: "detectorId"))
752
822
  GetThreatIntelSetRequest.add_member(:threat_intel_set_id, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "threatIntelSetId"))
753
823
  GetThreatIntelSetRequest.struct_class = Types::GetThreatIntelSetRequest
@@ -841,6 +911,9 @@ module Aws::GuardDuty
841
911
  KubernetesConfigurationResult.add_member(:audit_logs, Shapes::ShapeRef.new(shape: KubernetesAuditLogsConfigurationResult, required: true, location_name: "auditLogs"))
842
912
  KubernetesConfigurationResult.struct_class = Types::KubernetesConfigurationResult
843
913
 
914
+ KubernetesDataSourceFreeTrial.add_member(:audit_logs, Shapes::ShapeRef.new(shape: DataSourceFreeTrial, location_name: "auditLogs"))
915
+ KubernetesDataSourceFreeTrial.struct_class = Types::KubernetesDataSourceFreeTrial
916
+
844
917
  KubernetesDetails.add_member(:kubernetes_user_details, Shapes::ShapeRef.new(shape: KubernetesUserDetails, location_name: "kubernetesUserDetails"))
845
918
  KubernetesDetails.add_member(:kubernetes_workload_details, Shapes::ShapeRef.new(shape: KubernetesWorkloadDetails, location_name: "kubernetesWorkloadDetails"))
846
919
  KubernetesDetails.struct_class = Types::KubernetesDetails
@@ -966,6 +1039,7 @@ module Aws::GuardDuty
966
1039
  Member.add_member(:relationship_status, Shapes::ShapeRef.new(shape: String, required: true, location_name: "relationshipStatus"))
967
1040
  Member.add_member(:invited_at, Shapes::ShapeRef.new(shape: String, location_name: "invitedAt"))
968
1041
  Member.add_member(:updated_at, Shapes::ShapeRef.new(shape: String, required: true, location_name: "updatedAt"))
1042
+ Member.add_member(:administrator_id, Shapes::ShapeRef.new(shape: String, location_name: "administratorId"))
969
1043
  Member.struct_class = Types::Member
970
1044
 
971
1045
  MemberDataSourceConfiguration.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "accountId"))
@@ -1059,8 +1133,8 @@ module Aws::GuardDuty
1059
1133
 
1060
1134
  PrivateIpAddresses.member = Shapes::ShapeRef.new(shape: PrivateIpAddressDetails)
1061
1135
 
1062
- ProductCode.add_member(:code, Shapes::ShapeRef.new(shape: String, location_name: "code"))
1063
- ProductCode.add_member(:product_type, Shapes::ShapeRef.new(shape: String, location_name: "productType"))
1136
+ ProductCode.add_member(:code, Shapes::ShapeRef.new(shape: String, location_name: "productCodeId"))
1137
+ ProductCode.add_member(:product_type, Shapes::ShapeRef.new(shape: String, location_name: "productCodeType"))
1064
1138
  ProductCode.struct_class = Types::ProductCode
1065
1139
 
1066
1140
  ProductCodes.member = Shapes::ShapeRef.new(shape: ProductCode)
@@ -1131,8 +1205,13 @@ module Aws::GuardDuty
1131
1205
  Service.add_member(:resource_role, Shapes::ShapeRef.new(shape: String, location_name: "resourceRole"))
1132
1206
  Service.add_member(:service_name, Shapes::ShapeRef.new(shape: String, location_name: "serviceName"))
1133
1207
  Service.add_member(:user_feedback, Shapes::ShapeRef.new(shape: String, location_name: "userFeedback"))
1208
+ Service.add_member(:additional_info, Shapes::ShapeRef.new(shape: ServiceAdditionalInfo, location_name: "additionalInfo"))
1134
1209
  Service.struct_class = Types::Service
1135
1210
 
1211
+ ServiceAdditionalInfo.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "value"))
1212
+ ServiceAdditionalInfo.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "type"))
1213
+ ServiceAdditionalInfo.struct_class = Types::ServiceAdditionalInfo
1214
+
1136
1215
  SortCriteria.add_member(:attribute_name, Shapes::ShapeRef.new(shape: String, location_name: "attributeName"))
1137
1216
  SortCriteria.add_member(:order_by, Shapes::ShapeRef.new(shape: OrderBy, location_name: "orderBy"))
1138
1217
  SortCriteria.struct_class = Types::SortCriteria
@@ -1328,10 +1407,21 @@ module Aws::GuardDuty
1328
1407
  "uid" => "guardduty-2017-11-28",
1329
1408
  }
1330
1409
 
1410
+ api.add_operation(:accept_administrator_invitation, Seahorse::Model::Operation.new.tap do |o|
1411
+ o.name = "AcceptAdministratorInvitation"
1412
+ o.http_method = "POST"
1413
+ o.http_request_uri = "/detector/{detectorId}/administrator"
1414
+ o.input = Shapes::ShapeRef.new(shape: AcceptAdministratorInvitationRequest)
1415
+ o.output = Shapes::ShapeRef.new(shape: AcceptAdministratorInvitationResponse)
1416
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1417
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1418
+ end)
1419
+
1331
1420
  api.add_operation(:accept_invitation, Seahorse::Model::Operation.new.tap do |o|
1332
1421
  o.name = "AcceptInvitation"
1333
1422
  o.http_method = "POST"
1334
1423
  o.http_request_uri = "/detector/{detectorId}/master"
1424
+ o.deprecated = true
1335
1425
  o.input = Shapes::ShapeRef.new(shape: AcceptInvitationRequest)
1336
1426
  o.output = Shapes::ShapeRef.new(shape: AcceptInvitationResponse)
1337
1427
  o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
@@ -1528,10 +1618,21 @@ module Aws::GuardDuty
1528
1618
  o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1529
1619
  end)
1530
1620
 
1621
+ api.add_operation(:disassociate_from_administrator_account, Seahorse::Model::Operation.new.tap do |o|
1622
+ o.name = "DisassociateFromAdministratorAccount"
1623
+ o.http_method = "POST"
1624
+ o.http_request_uri = "/detector/{detectorId}/administrator/disassociate"
1625
+ o.input = Shapes::ShapeRef.new(shape: DisassociateFromAdministratorAccountRequest)
1626
+ o.output = Shapes::ShapeRef.new(shape: DisassociateFromAdministratorAccountResponse)
1627
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1628
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1629
+ end)
1630
+
1531
1631
  api.add_operation(:disassociate_from_master_account, Seahorse::Model::Operation.new.tap do |o|
1532
1632
  o.name = "DisassociateFromMasterAccount"
1533
1633
  o.http_method = "POST"
1534
1634
  o.http_request_uri = "/detector/{detectorId}/master/disassociate"
1635
+ o.deprecated = true
1535
1636
  o.input = Shapes::ShapeRef.new(shape: DisassociateFromMasterAccountRequest)
1536
1637
  o.output = Shapes::ShapeRef.new(shape: DisassociateFromMasterAccountResponse)
1537
1638
  o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
@@ -1558,6 +1659,16 @@ module Aws::GuardDuty
1558
1659
  o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1559
1660
  end)
1560
1661
 
1662
+ api.add_operation(:get_administrator_account, Seahorse::Model::Operation.new.tap do |o|
1663
+ o.name = "GetAdministratorAccount"
1664
+ o.http_method = "GET"
1665
+ o.http_request_uri = "/detector/{detectorId}/administrator"
1666
+ o.input = Shapes::ShapeRef.new(shape: GetAdministratorAccountRequest)
1667
+ o.output = Shapes::ShapeRef.new(shape: GetAdministratorAccountResponse)
1668
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1669
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1670
+ end)
1671
+
1561
1672
  api.add_operation(:get_detector, Seahorse::Model::Operation.new.tap do |o|
1562
1673
  o.name = "GetDetector"
1563
1674
  o.http_method = "GET"
@@ -1622,6 +1733,7 @@ module Aws::GuardDuty
1622
1733
  o.name = "GetMasterAccount"
1623
1734
  o.http_method = "GET"
1624
1735
  o.http_request_uri = "/detector/{detectorId}/master"
1736
+ o.deprecated = true
1625
1737
  o.input = Shapes::ShapeRef.new(shape: GetMasterAccountRequest)
1626
1738
  o.output = Shapes::ShapeRef.new(shape: GetMasterAccountResponse)
1627
1739
  o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
@@ -1648,6 +1760,16 @@ module Aws::GuardDuty
1648
1760
  o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1649
1761
  end)
1650
1762
 
1763
+ api.add_operation(:get_remaining_free_trial_days, Seahorse::Model::Operation.new.tap do |o|
1764
+ o.name = "GetRemainingFreeTrialDays"
1765
+ o.http_method = "POST"
1766
+ o.http_request_uri = "/detector/{detectorId}/freeTrial/daysRemaining"
1767
+ o.input = Shapes::ShapeRef.new(shape: GetRemainingFreeTrialDaysRequest)
1768
+ o.output = Shapes::ShapeRef.new(shape: GetRemainingFreeTrialDaysResponse)
1769
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1770
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1771
+ end)
1772
+
1651
1773
  api.add_operation(:get_threat_intel_set, Seahorse::Model::Operation.new.tap do |o|
1652
1774
  o.name = "GetThreatIntelSet"
1653
1775
  o.http_method = "GET"
@@ -10,6 +10,43 @@
10
10
  module Aws::GuardDuty
11
11
  module Types
12
12
 
13
+ # @note When making an API call, you may pass AcceptAdministratorInvitationRequest
14
+ # data as a hash:
15
+ #
16
+ # {
17
+ # detector_id: "DetectorId", # required
18
+ # administrator_id: "String", # required
19
+ # invitation_id: "String", # required
20
+ # }
21
+ #
22
+ # @!attribute [rw] detector_id
23
+ # The unique ID of the detector of the GuardDuty member account.
24
+ # @return [String]
25
+ #
26
+ # @!attribute [rw] administrator_id
27
+ # The account ID of the GuardDuty administrator account whose
28
+ # invitation you're accepting.
29
+ # @return [String]
30
+ #
31
+ # @!attribute [rw] invitation_id
32
+ # The value that is used to validate the administrator account to the
33
+ # member account.
34
+ # @return [String]
35
+ #
36
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/AcceptAdministratorInvitationRequest AWS API Documentation
37
+ #
38
+ class AcceptAdministratorInvitationRequest < Struct.new(
39
+ :detector_id,
40
+ :administrator_id,
41
+ :invitation_id)
42
+ SENSITIVE = []
43
+ include Aws::Structure
44
+ end
45
+
46
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/AcceptAdministratorInvitationResponse AWS API Documentation
47
+ #
48
+ class AcceptAdministratorInvitationResponse < Aws::EmptyStructure; end
49
+
13
50
  # @note When making an API call, you may pass AcceptInvitationRequest
14
51
  # data as a hash:
15
52
  #
@@ -125,6 +162,26 @@ module Aws::GuardDuty
125
162
  include Aws::Structure
126
163
  end
127
164
 
165
+ # Provides details of the GuardDuty member account that uses a free
166
+ # trial service.
167
+ #
168
+ # @!attribute [rw] account_id
169
+ # The account identifier of the GuardDuty member account.
170
+ # @return [String]
171
+ #
172
+ # @!attribute [rw] data_sources
173
+ # Describes the data source enabled for the GuardDuty member account.
174
+ # @return [Types::DataSourcesFreeTrial]
175
+ #
176
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/AccountFreeTrialInfo AWS API Documentation
177
+ #
178
+ class AccountFreeTrialInfo < Struct.new(
179
+ :account_id,
180
+ :data_sources)
181
+ SENSITIVE = []
182
+ include Aws::Structure
183
+ end
184
+
128
185
  # Contains information about the account level permissions on the S3
129
186
  # bucket.
130
187
  #
@@ -204,6 +261,37 @@ module Aws::GuardDuty
204
261
  include Aws::Structure
205
262
  end
206
263
 
264
+ # Contains information about the administrator account and invitation.
265
+ #
266
+ # @!attribute [rw] account_id
267
+ # The ID of the account used as the administrator account.
268
+ # @return [String]
269
+ #
270
+ # @!attribute [rw] invitation_id
271
+ # The value that is used to validate the administrator account to the
272
+ # member account.
273
+ # @return [String]
274
+ #
275
+ # @!attribute [rw] relationship_status
276
+ # The status of the relationship between the administrator and member
277
+ # accounts.
278
+ # @return [String]
279
+ #
280
+ # @!attribute [rw] invited_at
281
+ # The timestamp when the invitation was sent.
282
+ # @return [String]
283
+ #
284
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/Administrator AWS API Documentation
285
+ #
286
+ class Administrator < Struct.new(
287
+ :account_id,
288
+ :invitation_id,
289
+ :relationship_status,
290
+ :invited_at)
291
+ SENSITIVE = []
292
+ include Aws::Structure
293
+ end
294
+
207
295
  # @note When making an API call, you may pass ArchiveFindingsRequest
208
296
  # data as a hash:
209
297
  #
@@ -271,6 +359,12 @@ module Aws::GuardDuty
271
359
  # account.
272
360
  # @return [Types::RemoteAccountDetails]
273
361
  #
362
+ # @!attribute [rw] affected_resources
363
+ # The details of the Amazon Web Services account that made the API
364
+ # call. This field identifies the resources that were affected by this
365
+ # API call.
366
+ # @return [Hash<String,String>]
367
+ #
274
368
  # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/AwsApiCallAction AWS API Documentation
275
369
  #
276
370
  class AwsApiCallAction < Struct.new(
@@ -281,7 +375,8 @@ module Aws::GuardDuty
281
375
  :user_agent,
282
376
  :remote_ip_details,
283
377
  :service_name,
284
- :remote_account_details)
378
+ :remote_account_details,
379
+ :affected_resources)
285
380
  SENSITIVE = []
286
381
  include Aws::Structure
287
382
  end
@@ -1254,6 +1349,59 @@ module Aws::GuardDuty
1254
1349
  include Aws::Structure
1255
1350
  end
1256
1351
 
1352
+ # Contains information about which data sources are enabled for the
1353
+ # GuardDuty member account.
1354
+ #
1355
+ # @!attribute [rw] free_trial_days_remaining
1356
+ # A value that specifies the number of days left to use each enabled
1357
+ # data source.
1358
+ # @return [Integer]
1359
+ #
1360
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DataSourceFreeTrial AWS API Documentation
1361
+ #
1362
+ class DataSourceFreeTrial < Struct.new(
1363
+ :free_trial_days_remaining)
1364
+ SENSITIVE = []
1365
+ include Aws::Structure
1366
+ end
1367
+
1368
+ # Contains information about which data sources are enabled for the
1369
+ # GuardDuty member account.
1370
+ #
1371
+ # @!attribute [rw] cloud_trail
1372
+ # Describes whether any AWS CloudTrail management event logs are
1373
+ # enabled as data sources.
1374
+ # @return [Types::DataSourceFreeTrial]
1375
+ #
1376
+ # @!attribute [rw] dns_logs
1377
+ # Describes whether any DNS logs are enabled as data sources.
1378
+ # @return [Types::DataSourceFreeTrial]
1379
+ #
1380
+ # @!attribute [rw] flow_logs
1381
+ # Describes whether any VPC Flow logs are enabled as data sources.
1382
+ # @return [Types::DataSourceFreeTrial]
1383
+ #
1384
+ # @!attribute [rw] s3_logs
1385
+ # Describes whether any S3 data event logs are enabled as data
1386
+ # sources.
1387
+ # @return [Types::DataSourceFreeTrial]
1388
+ #
1389
+ # @!attribute [rw] kubernetes
1390
+ # Describes whether any Kubernetes logs are enabled as data sources.
1391
+ # @return [Types::KubernetesDataSourceFreeTrial]
1392
+ #
1393
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DataSourcesFreeTrial AWS API Documentation
1394
+ #
1395
+ class DataSourcesFreeTrial < Struct.new(
1396
+ :cloud_trail,
1397
+ :dns_logs,
1398
+ :flow_logs,
1399
+ :s3_logs,
1400
+ :kubernetes)
1401
+ SENSITIVE = []
1402
+ include Aws::Structure
1403
+ end
1404
+
1257
1405
  # @note When making an API call, you may pass DeclineInvitationsRequest
1258
1406
  # data as a hash:
1259
1407
  #
@@ -1716,6 +1864,29 @@ module Aws::GuardDuty
1716
1864
  #
1717
1865
  class DisableOrganizationAdminAccountResponse < Aws::EmptyStructure; end
1718
1866
 
1867
+ # @note When making an API call, you may pass DisassociateFromAdministratorAccountRequest
1868
+ # data as a hash:
1869
+ #
1870
+ # {
1871
+ # detector_id: "DetectorId", # required
1872
+ # }
1873
+ #
1874
+ # @!attribute [rw] detector_id
1875
+ # The unique ID of the detector of the GuardDuty member account.
1876
+ # @return [String]
1877
+ #
1878
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DisassociateFromAdministratorAccountRequest AWS API Documentation
1879
+ #
1880
+ class DisassociateFromAdministratorAccountRequest < Struct.new(
1881
+ :detector_id)
1882
+ SENSITIVE = []
1883
+ include Aws::Structure
1884
+ end
1885
+
1886
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DisassociateFromAdministratorAccountResponse AWS API Documentation
1887
+ #
1888
+ class DisassociateFromAdministratorAccountResponse < Aws::EmptyStructure; end
1889
+
1719
1890
  # @note When making an API call, you may pass DisassociateFromMasterAccountRequest
1720
1891
  # data as a hash:
1721
1892
  #
@@ -1786,10 +1957,21 @@ module Aws::GuardDuty
1786
1957
  # The domain information for the API request.
1787
1958
  # @return [String]
1788
1959
  #
1960
+ # @!attribute [rw] protocol
1961
+ # The network connection protocol observed in the activity that
1962
+ # prompted GuardDuty to generate the finding.
1963
+ # @return [String]
1964
+ #
1965
+ # @!attribute [rw] blocked
1966
+ # Indicates whether the targeted port is blocked.
1967
+ # @return [Boolean]
1968
+ #
1789
1969
  # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DnsRequestAction AWS API Documentation
1790
1970
  #
1791
1971
  class DnsRequestAction < Struct.new(
1792
- :domain)
1972
+ :domain,
1973
+ :protocol,
1974
+ :blocked)
1793
1975
  SENSITIVE = []
1794
1976
  include Aws::Structure
1795
1977
  end
@@ -2057,6 +2239,37 @@ module Aws::GuardDuty
2057
2239
  include Aws::Structure
2058
2240
  end
2059
2241
 
2242
+ # @note When making an API call, you may pass GetAdministratorAccountRequest
2243
+ # data as a hash:
2244
+ #
2245
+ # {
2246
+ # detector_id: "DetectorId", # required
2247
+ # }
2248
+ #
2249
+ # @!attribute [rw] detector_id
2250
+ # The unique ID of the detector of the GuardDuty member account.
2251
+ # @return [String]
2252
+ #
2253
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetAdministratorAccountRequest AWS API Documentation
2254
+ #
2255
+ class GetAdministratorAccountRequest < Struct.new(
2256
+ :detector_id)
2257
+ SENSITIVE = []
2258
+ include Aws::Structure
2259
+ end
2260
+
2261
+ # @!attribute [rw] administrator
2262
+ # The administrator account details.
2263
+ # @return [Types::Administrator]
2264
+ #
2265
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetAdministratorAccountResponse AWS API Documentation
2266
+ #
2267
+ class GetAdministratorAccountResponse < Struct.new(
2268
+ :administrator)
2269
+ SENSITIVE = []
2270
+ include Aws::Structure
2271
+ end
2272
+
2060
2273
  # @note When making an API call, you may pass GetDetectorRequest
2061
2274
  # data as a hash:
2062
2275
  #
@@ -2487,6 +2700,50 @@ module Aws::GuardDuty
2487
2700
  include Aws::Structure
2488
2701
  end
2489
2702
 
2703
+ # @note When making an API call, you may pass GetRemainingFreeTrialDaysRequest
2704
+ # data as a hash:
2705
+ #
2706
+ # {
2707
+ # detector_id: "DetectorId", # required
2708
+ # account_ids: ["AccountId"],
2709
+ # }
2710
+ #
2711
+ # @!attribute [rw] detector_id
2712
+ # The unique ID of the detector of the GuardDuty member account.
2713
+ # @return [String]
2714
+ #
2715
+ # @!attribute [rw] account_ids
2716
+ # A list of account identifiers of the GuardDuty member account.
2717
+ # @return [Array<String>]
2718
+ #
2719
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetRemainingFreeTrialDaysRequest AWS API Documentation
2720
+ #
2721
+ class GetRemainingFreeTrialDaysRequest < Struct.new(
2722
+ :detector_id,
2723
+ :account_ids)
2724
+ SENSITIVE = []
2725
+ include Aws::Structure
2726
+ end
2727
+
2728
+ # @!attribute [rw] accounts
2729
+ # The member accounts which were included in a request and were
2730
+ # processed successfully.
2731
+ # @return [Array<Types::AccountFreeTrialInfo>]
2732
+ #
2733
+ # @!attribute [rw] unprocessed_accounts
2734
+ # The member account that was included in a request but for which the
2735
+ # request could not be processed.
2736
+ # @return [Array<Types::UnprocessedAccount>]
2737
+ #
2738
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetRemainingFreeTrialDaysResponse AWS API Documentation
2739
+ #
2740
+ class GetRemainingFreeTrialDaysResponse < Struct.new(
2741
+ :accounts,
2742
+ :unprocessed_accounts)
2743
+ SENSITIVE = []
2744
+ include Aws::Structure
2745
+ end
2746
+
2490
2747
  # @note When making an API call, you may pass GetThreatIntelSetRequest
2491
2748
  # data as a hash:
2492
2749
  #
@@ -2960,6 +3217,22 @@ module Aws::GuardDuty
2960
3217
  include Aws::Structure
2961
3218
  end
2962
3219
 
3220
+ # Provides details about the Kubernetes resources when it is enabled as
3221
+ # a data source.
3222
+ #
3223
+ # @!attribute [rw] audit_logs
3224
+ # Describes whether Kubernetes audit logs are enabled as a data
3225
+ # source.
3226
+ # @return [Types::DataSourceFreeTrial]
3227
+ #
3228
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/KubernetesDataSourceFreeTrial AWS API Documentation
3229
+ #
3230
+ class KubernetesDataSourceFreeTrial < Struct.new(
3231
+ :audit_logs)
3232
+ SENSITIVE = []
3233
+ include Aws::Structure
3234
+ end
3235
+
2963
3236
  # Details about Kubernetes resources such as a Kubernetes user or
2964
3237
  # workload resource involved in a Kubernetes finding.
2965
3238
  #
@@ -3800,6 +4073,10 @@ module Aws::GuardDuty
3800
4073
  # The last-updated timestamp of the member.
3801
4074
  # @return [String]
3802
4075
  #
4076
+ # @!attribute [rw] administrator_id
4077
+ # The administrator account ID.
4078
+ # @return [String]
4079
+ #
3803
4080
  # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/Member AWS API Documentation
3804
4081
  #
3805
4082
  class Member < Struct.new(
@@ -3809,7 +4086,8 @@ module Aws::GuardDuty
3809
4086
  :email,
3810
4087
  :relationship_status,
3811
4088
  :invited_at,
3812
- :updated_at)
4089
+ :updated_at,
4090
+ :administrator_id)
3813
4091
  SENSITIVE = []
3814
4092
  include Aws::Structure
3815
4093
  end
@@ -4576,6 +4854,10 @@ module Aws::GuardDuty
4576
4854
  # Feedback that was submitted about the finding.
4577
4855
  # @return [String]
4578
4856
  #
4857
+ # @!attribute [rw] additional_info
4858
+ # Contains additional information about the generated finding.
4859
+ # @return [Types::ServiceAdditionalInfo]
4860
+ #
4579
4861
  # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/Service AWS API Documentation
4580
4862
  #
4581
4863
  class Service < Struct.new(
@@ -4588,7 +4870,27 @@ module Aws::GuardDuty
4588
4870
  :event_last_seen,
4589
4871
  :resource_role,
4590
4872
  :service_name,
4591
- :user_feedback)
4873
+ :user_feedback,
4874
+ :additional_info)
4875
+ SENSITIVE = []
4876
+ include Aws::Structure
4877
+ end
4878
+
4879
+ # Additional information about the generated finding.
4880
+ #
4881
+ # @!attribute [rw] value
4882
+ # This field specifies the value of the additional information.
4883
+ # @return [String]
4884
+ #
4885
+ # @!attribute [rw] type
4886
+ # Describes the type of the additional information.
4887
+ # @return [String]
4888
+ #
4889
+ # @see http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ServiceAdditionalInfo AWS API Documentation
4890
+ #
4891
+ class ServiceAdditionalInfo < Struct.new(
4892
+ :value,
4893
+ :type)
4592
4894
  SENSITIVE = []
4593
4895
  include Aws::Structure
4594
4896
  end
@@ -28,7 +28,7 @@ require_relative 'aws-sdk-guardduty/customizations'
28
28
  # structure.
29
29
  #
30
30
  # guard_duty = Aws::GuardDuty::Client.new
31
- # resp = guard_duty.accept_invitation(params)
31
+ # resp = guard_duty.accept_administrator_invitation(params)
32
32
  #
33
33
  # See {Client} for more information.
34
34
  #
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-guardduty/customizations'
48
48
  # @!group service
49
49
  module Aws::GuardDuty
50
50
 
51
- GEM_VERSION = '1.57.0'
51
+ GEM_VERSION = '1.58.0'
52
52
 
53
53
  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.57.0
4
+ version: 1.58.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-04-28 00:00:00.000000000 Z
11
+ date: 2022-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core