aws-sdk-guardduty 1.33.0 → 1.38.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -13,11 +15,13 @@ module Aws::GuardDuty
13
15
 
14
16
  AcceptInvitationRequest = Shapes::StructureShape.new(name: 'AcceptInvitationRequest')
15
17
  AcceptInvitationResponse = Shapes::StructureShape.new(name: 'AcceptInvitationResponse')
18
+ AccessControlList = Shapes::StructureShape.new(name: 'AccessControlList')
16
19
  AccessKeyDetails = Shapes::StructureShape.new(name: 'AccessKeyDetails')
17
20
  AccountDetail = Shapes::StructureShape.new(name: 'AccountDetail')
18
21
  AccountDetails = Shapes::ListShape.new(name: 'AccountDetails')
19
22
  AccountId = Shapes::StringShape.new(name: 'AccountId')
20
23
  AccountIds = Shapes::ListShape.new(name: 'AccountIds')
24
+ AccountLevelPermissions = Shapes::StructureShape.new(name: 'AccountLevelPermissions')
21
25
  Action = Shapes::StructureShape.new(name: 'Action')
22
26
  AdminAccount = Shapes::StructureShape.new(name: 'AdminAccount')
23
27
  AdminAccounts = Shapes::ListShape.new(name: 'AdminAccounts')
@@ -26,9 +30,13 @@ module Aws::GuardDuty
26
30
  ArchiveFindingsResponse = Shapes::StructureShape.new(name: 'ArchiveFindingsResponse')
27
31
  AwsApiCallAction = Shapes::StructureShape.new(name: 'AwsApiCallAction')
28
32
  BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
33
+ BlockPublicAccess = Shapes::StructureShape.new(name: 'BlockPublicAccess')
29
34
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
35
+ BucketLevelPermissions = Shapes::StructureShape.new(name: 'BucketLevelPermissions')
36
+ BucketPolicy = Shapes::StructureShape.new(name: 'BucketPolicy')
30
37
  City = Shapes::StructureShape.new(name: 'City')
31
38
  ClientToken = Shapes::StringShape.new(name: 'ClientToken')
39
+ CloudTrailConfigurationResult = Shapes::StructureShape.new(name: 'CloudTrailConfigurationResult')
32
40
  Condition = Shapes::StructureShape.new(name: 'Condition')
33
41
  CountBySeverity = Shapes::MapShape.new(name: 'CountBySeverity')
34
42
  Country = Shapes::StructureShape.new(name: 'Country')
@@ -47,8 +55,15 @@ module Aws::GuardDuty
47
55
  CreateThreatIntelSetRequest = Shapes::StructureShape.new(name: 'CreateThreatIntelSetRequest')
48
56
  CreateThreatIntelSetResponse = Shapes::StructureShape.new(name: 'CreateThreatIntelSetResponse')
49
57
  Criterion = Shapes::MapShape.new(name: 'Criterion')
58
+ DNSLogsConfigurationResult = Shapes::StructureShape.new(name: 'DNSLogsConfigurationResult')
59
+ DataSource = Shapes::StringShape.new(name: 'DataSource')
60
+ DataSourceConfigurations = Shapes::StructureShape.new(name: 'DataSourceConfigurations')
61
+ DataSourceConfigurationsResult = Shapes::StructureShape.new(name: 'DataSourceConfigurationsResult')
62
+ DataSourceList = Shapes::ListShape.new(name: 'DataSourceList')
63
+ DataSourceStatus = Shapes::StringShape.new(name: 'DataSourceStatus')
50
64
  DeclineInvitationsRequest = Shapes::StructureShape.new(name: 'DeclineInvitationsRequest')
51
65
  DeclineInvitationsResponse = Shapes::StructureShape.new(name: 'DeclineInvitationsResponse')
66
+ DefaultServerSideEncryption = Shapes::StructureShape.new(name: 'DefaultServerSideEncryption')
52
67
  DeleteDetectorRequest = Shapes::StructureShape.new(name: 'DeleteDetectorRequest')
53
68
  DeleteDetectorResponse = Shapes::StructureShape.new(name: 'DeleteDetectorResponse')
54
69
  DeleteFilterRequest = Shapes::StructureShape.new(name: 'DeleteFilterRequest')
@@ -106,6 +121,7 @@ module Aws::GuardDuty
106
121
  FindingType = Shapes::StringShape.new(name: 'FindingType')
107
122
  FindingTypes = Shapes::ListShape.new(name: 'FindingTypes')
108
123
  Findings = Shapes::ListShape.new(name: 'Findings')
124
+ FlowLogsConfigurationResult = Shapes::StructureShape.new(name: 'FlowLogsConfigurationResult')
109
125
  GeoLocation = Shapes::StructureShape.new(name: 'GeoLocation')
110
126
  GetDetectorRequest = Shapes::StructureShape.new(name: 'GetDetectorRequest')
111
127
  GetDetectorResponse = Shapes::StructureShape.new(name: 'GetDetectorResponse')
@@ -121,10 +137,14 @@ module Aws::GuardDuty
121
137
  GetInvitationsCountResponse = Shapes::StructureShape.new(name: 'GetInvitationsCountResponse')
122
138
  GetMasterAccountRequest = Shapes::StructureShape.new(name: 'GetMasterAccountRequest')
123
139
  GetMasterAccountResponse = Shapes::StructureShape.new(name: 'GetMasterAccountResponse')
140
+ GetMemberDetectorsRequest = Shapes::StructureShape.new(name: 'GetMemberDetectorsRequest')
141
+ GetMemberDetectorsResponse = Shapes::StructureShape.new(name: 'GetMemberDetectorsResponse')
124
142
  GetMembersRequest = Shapes::StructureShape.new(name: 'GetMembersRequest')
125
143
  GetMembersResponse = Shapes::StructureShape.new(name: 'GetMembersResponse')
126
144
  GetThreatIntelSetRequest = Shapes::StructureShape.new(name: 'GetThreatIntelSetRequest')
127
145
  GetThreatIntelSetResponse = Shapes::StructureShape.new(name: 'GetThreatIntelSetResponse')
146
+ GetUsageStatisticsRequest = Shapes::StructureShape.new(name: 'GetUsageStatisticsRequest')
147
+ GetUsageStatisticsResponse = Shapes::StructureShape.new(name: 'GetUsageStatisticsResponse')
128
148
  GuardDutyArn = Shapes::StringShape.new(name: 'GuardDutyArn')
129
149
  IamInstanceProfile = Shapes::StructureShape.new(name: 'IamInstanceProfile')
130
150
  InstanceDetails = Shapes::StructureShape.new(name: 'InstanceDetails')
@@ -165,6 +185,8 @@ module Aws::GuardDuty
165
185
  Master = Shapes::StructureShape.new(name: 'Master')
166
186
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
167
187
  Member = Shapes::StructureShape.new(name: 'Member')
188
+ MemberDataSourceConfiguration = Shapes::StructureShape.new(name: 'MemberDataSourceConfiguration')
189
+ MemberDataSourceConfigurations = Shapes::ListShape.new(name: 'MemberDataSourceConfigurations')
168
190
  Members = Shapes::ListShape.new(name: 'Members')
169
191
  Name = Shapes::StringShape.new(name: 'Name')
170
192
  Neq = Shapes::ListShape.new(name: 'Neq')
@@ -174,6 +196,12 @@ module Aws::GuardDuty
174
196
  NotEquals = Shapes::ListShape.new(name: 'NotEquals')
175
197
  OrderBy = Shapes::StringShape.new(name: 'OrderBy')
176
198
  Organization = Shapes::StructureShape.new(name: 'Organization')
199
+ OrganizationDataSourceConfigurations = Shapes::StructureShape.new(name: 'OrganizationDataSourceConfigurations')
200
+ OrganizationDataSourceConfigurationsResult = Shapes::StructureShape.new(name: 'OrganizationDataSourceConfigurationsResult')
201
+ OrganizationS3LogsConfiguration = Shapes::StructureShape.new(name: 'OrganizationS3LogsConfiguration')
202
+ OrganizationS3LogsConfigurationResult = Shapes::StructureShape.new(name: 'OrganizationS3LogsConfigurationResult')
203
+ Owner = Shapes::StructureShape.new(name: 'Owner')
204
+ PermissionConfiguration = Shapes::StructureShape.new(name: 'PermissionConfiguration')
177
205
  PortProbeAction = Shapes::StructureShape.new(name: 'PortProbeAction')
178
206
  PortProbeDetail = Shapes::StructureShape.new(name: 'PortProbeDetail')
179
207
  PortProbeDetails = Shapes::ListShape.new(name: 'PortProbeDetails')
@@ -181,10 +209,16 @@ module Aws::GuardDuty
181
209
  PrivateIpAddresses = Shapes::ListShape.new(name: 'PrivateIpAddresses')
182
210
  ProductCode = Shapes::StructureShape.new(name: 'ProductCode')
183
211
  ProductCodes = Shapes::ListShape.new(name: 'ProductCodes')
212
+ PublicAccess = Shapes::StructureShape.new(name: 'PublicAccess')
184
213
  PublishingStatus = Shapes::StringShape.new(name: 'PublishingStatus')
185
214
  RemoteIpDetails = Shapes::StructureShape.new(name: 'RemoteIpDetails')
186
215
  RemotePortDetails = Shapes::StructureShape.new(name: 'RemotePortDetails')
187
216
  Resource = Shapes::StructureShape.new(name: 'Resource')
217
+ ResourceList = Shapes::ListShape.new(name: 'ResourceList')
218
+ S3BucketDetail = Shapes::StructureShape.new(name: 'S3BucketDetail')
219
+ S3BucketDetails = Shapes::ListShape.new(name: 'S3BucketDetails')
220
+ S3LogsConfiguration = Shapes::StructureShape.new(name: 'S3LogsConfiguration')
221
+ S3LogsConfigurationResult = Shapes::StructureShape.new(name: 'S3LogsConfigurationResult')
188
222
  SecurityGroup = Shapes::StructureShape.new(name: 'SecurityGroup')
189
223
  SecurityGroups = Shapes::ListShape.new(name: 'SecurityGroups')
190
224
  Service = Shapes::StructureShape.new(name: 'Service')
@@ -208,6 +242,8 @@ module Aws::GuardDuty
208
242
  ThreatIntelligenceDetail = Shapes::StructureShape.new(name: 'ThreatIntelligenceDetail')
209
243
  ThreatIntelligenceDetails = Shapes::ListShape.new(name: 'ThreatIntelligenceDetails')
210
244
  ThreatNames = Shapes::ListShape.new(name: 'ThreatNames')
245
+ Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
246
+ Total = Shapes::StructureShape.new(name: 'Total')
211
247
  UnarchiveFindingsRequest = Shapes::StructureShape.new(name: 'UnarchiveFindingsRequest')
212
248
  UnarchiveFindingsResponse = Shapes::StructureShape.new(name: 'UnarchiveFindingsResponse')
213
249
  UnprocessedAccount = Shapes::StructureShape.new(name: 'UnprocessedAccount')
@@ -222,12 +258,23 @@ module Aws::GuardDuty
222
258
  UpdateFindingsFeedbackResponse = Shapes::StructureShape.new(name: 'UpdateFindingsFeedbackResponse')
223
259
  UpdateIPSetRequest = Shapes::StructureShape.new(name: 'UpdateIPSetRequest')
224
260
  UpdateIPSetResponse = Shapes::StructureShape.new(name: 'UpdateIPSetResponse')
261
+ UpdateMemberDetectorsRequest = Shapes::StructureShape.new(name: 'UpdateMemberDetectorsRequest')
262
+ UpdateMemberDetectorsResponse = Shapes::StructureShape.new(name: 'UpdateMemberDetectorsResponse')
225
263
  UpdateOrganizationConfigurationRequest = Shapes::StructureShape.new(name: 'UpdateOrganizationConfigurationRequest')
226
264
  UpdateOrganizationConfigurationResponse = Shapes::StructureShape.new(name: 'UpdateOrganizationConfigurationResponse')
227
265
  UpdatePublishingDestinationRequest = Shapes::StructureShape.new(name: 'UpdatePublishingDestinationRequest')
228
266
  UpdatePublishingDestinationResponse = Shapes::StructureShape.new(name: 'UpdatePublishingDestinationResponse')
229
267
  UpdateThreatIntelSetRequest = Shapes::StructureShape.new(name: 'UpdateThreatIntelSetRequest')
230
268
  UpdateThreatIntelSetResponse = Shapes::StructureShape.new(name: 'UpdateThreatIntelSetResponse')
269
+ UsageAccountResult = Shapes::StructureShape.new(name: 'UsageAccountResult')
270
+ UsageAccountResultList = Shapes::ListShape.new(name: 'UsageAccountResultList')
271
+ UsageCriteria = Shapes::StructureShape.new(name: 'UsageCriteria')
272
+ UsageDataSourceResult = Shapes::StructureShape.new(name: 'UsageDataSourceResult')
273
+ UsageDataSourceResultList = Shapes::ListShape.new(name: 'UsageDataSourceResultList')
274
+ UsageResourceResult = Shapes::StructureShape.new(name: 'UsageResourceResult')
275
+ UsageResourceResultList = Shapes::ListShape.new(name: 'UsageResourceResultList')
276
+ UsageStatisticType = Shapes::StringShape.new(name: 'UsageStatisticType')
277
+ UsageStatistics = Shapes::StructureShape.new(name: 'UsageStatistics')
231
278
 
232
279
  AcceptInvitationRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, required: true, location: "uri", location_name: "detectorId"))
233
280
  AcceptInvitationRequest.add_member(:master_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "masterId"))
@@ -236,6 +283,10 @@ module Aws::GuardDuty
236
283
 
237
284
  AcceptInvitationResponse.struct_class = Types::AcceptInvitationResponse
238
285
 
286
+ AccessControlList.add_member(:allows_public_read_access, Shapes::ShapeRef.new(shape: Boolean, location_name: "allowsPublicReadAccess"))
287
+ AccessControlList.add_member(:allows_public_write_access, Shapes::ShapeRef.new(shape: Boolean, location_name: "allowsPublicWriteAccess"))
288
+ AccessControlList.struct_class = Types::AccessControlList
289
+
239
290
  AccessKeyDetails.add_member(:access_key_id, Shapes::ShapeRef.new(shape: String, location_name: "accessKeyId"))
240
291
  AccessKeyDetails.add_member(:principal_id, Shapes::ShapeRef.new(shape: String, location_name: "principalId"))
241
292
  AccessKeyDetails.add_member(:user_name, Shapes::ShapeRef.new(shape: String, location_name: "userName"))
@@ -250,6 +301,9 @@ module Aws::GuardDuty
250
301
 
251
302
  AccountIds.member = Shapes::ShapeRef.new(shape: AccountId)
252
303
 
304
+ AccountLevelPermissions.add_member(:block_public_access, Shapes::ShapeRef.new(shape: BlockPublicAccess, location_name: "blockPublicAccess"))
305
+ AccountLevelPermissions.struct_class = Types::AccountLevelPermissions
306
+
253
307
  Action.add_member(:action_type, Shapes::ShapeRef.new(shape: String, location_name: "actionType"))
254
308
  Action.add_member(:aws_api_call_action, Shapes::ShapeRef.new(shape: AwsApiCallAction, location_name: "awsApiCallAction"))
255
309
  Action.add_member(:dns_request_action, Shapes::ShapeRef.new(shape: DnsRequestAction, location_name: "dnsRequestAction"))
@@ -280,9 +334,27 @@ module Aws::GuardDuty
280
334
  BadRequestException.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "__type"))
281
335
  BadRequestException.struct_class = Types::BadRequestException
282
336
 
337
+ BlockPublicAccess.add_member(:ignore_public_acls, Shapes::ShapeRef.new(shape: Boolean, location_name: "ignorePublicAcls"))
338
+ BlockPublicAccess.add_member(:restrict_public_buckets, Shapes::ShapeRef.new(shape: Boolean, location_name: "restrictPublicBuckets"))
339
+ BlockPublicAccess.add_member(:block_public_acls, Shapes::ShapeRef.new(shape: Boolean, location_name: "blockPublicAcls"))
340
+ BlockPublicAccess.add_member(:block_public_policy, Shapes::ShapeRef.new(shape: Boolean, location_name: "blockPublicPolicy"))
341
+ BlockPublicAccess.struct_class = Types::BlockPublicAccess
342
+
343
+ BucketLevelPermissions.add_member(:access_control_list, Shapes::ShapeRef.new(shape: AccessControlList, location_name: "accessControlList"))
344
+ BucketLevelPermissions.add_member(:bucket_policy, Shapes::ShapeRef.new(shape: BucketPolicy, location_name: "bucketPolicy"))
345
+ BucketLevelPermissions.add_member(:block_public_access, Shapes::ShapeRef.new(shape: BlockPublicAccess, location_name: "blockPublicAccess"))
346
+ BucketLevelPermissions.struct_class = Types::BucketLevelPermissions
347
+
348
+ BucketPolicy.add_member(:allows_public_read_access, Shapes::ShapeRef.new(shape: Boolean, location_name: "allowsPublicReadAccess"))
349
+ BucketPolicy.add_member(:allows_public_write_access, Shapes::ShapeRef.new(shape: Boolean, location_name: "allowsPublicWriteAccess"))
350
+ BucketPolicy.struct_class = Types::BucketPolicy
351
+
283
352
  City.add_member(:city_name, Shapes::ShapeRef.new(shape: String, location_name: "cityName"))
284
353
  City.struct_class = Types::City
285
354
 
355
+ CloudTrailConfigurationResult.add_member(:status, Shapes::ShapeRef.new(shape: DataSourceStatus, required: true, location_name: "status"))
356
+ CloudTrailConfigurationResult.struct_class = Types::CloudTrailConfigurationResult
357
+
286
358
  Condition.add_member(:eq, Shapes::ShapeRef.new(shape: Eq, deprecated: true, location_name: "eq"))
287
359
  Condition.add_member(:neq, Shapes::ShapeRef.new(shape: Neq, deprecated: true, location_name: "neq"))
288
360
  Condition.add_member(:gt, Shapes::ShapeRef.new(shape: Integer, deprecated: true, location_name: "gt"))
@@ -307,6 +379,7 @@ module Aws::GuardDuty
307
379
  CreateDetectorRequest.add_member(:enable, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "enable"))
308
380
  CreateDetectorRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
309
381
  CreateDetectorRequest.add_member(:finding_publishing_frequency, Shapes::ShapeRef.new(shape: FindingPublishingFrequency, location_name: "findingPublishingFrequency"))
382
+ CreateDetectorRequest.add_member(:data_sources, Shapes::ShapeRef.new(shape: DataSourceConfigurations, location_name: "dataSources"))
310
383
  CreateDetectorRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
311
384
  CreateDetectorRequest.struct_class = Types::CreateDetectorRequest
312
385
 
@@ -375,12 +448,30 @@ module Aws::GuardDuty
375
448
  Criterion.key = Shapes::ShapeRef.new(shape: String)
376
449
  Criterion.value = Shapes::ShapeRef.new(shape: Condition)
377
450
 
451
+ DNSLogsConfigurationResult.add_member(:status, Shapes::ShapeRef.new(shape: DataSourceStatus, required: true, location_name: "status"))
452
+ DNSLogsConfigurationResult.struct_class = Types::DNSLogsConfigurationResult
453
+
454
+ DataSourceConfigurations.add_member(:s3_logs, Shapes::ShapeRef.new(shape: S3LogsConfiguration, location_name: "s3Logs"))
455
+ DataSourceConfigurations.struct_class = Types::DataSourceConfigurations
456
+
457
+ DataSourceConfigurationsResult.add_member(:cloud_trail, Shapes::ShapeRef.new(shape: CloudTrailConfigurationResult, required: true, location_name: "cloudTrail"))
458
+ DataSourceConfigurationsResult.add_member(:dns_logs, Shapes::ShapeRef.new(shape: DNSLogsConfigurationResult, required: true, location_name: "dnsLogs"))
459
+ DataSourceConfigurationsResult.add_member(:flow_logs, Shapes::ShapeRef.new(shape: FlowLogsConfigurationResult, required: true, location_name: "flowLogs"))
460
+ DataSourceConfigurationsResult.add_member(:s3_logs, Shapes::ShapeRef.new(shape: S3LogsConfigurationResult, required: true, location_name: "s3Logs"))
461
+ DataSourceConfigurationsResult.struct_class = Types::DataSourceConfigurationsResult
462
+
463
+ DataSourceList.member = Shapes::ShapeRef.new(shape: DataSource)
464
+
378
465
  DeclineInvitationsRequest.add_member(:account_ids, Shapes::ShapeRef.new(shape: AccountIds, required: true, location_name: "accountIds"))
379
466
  DeclineInvitationsRequest.struct_class = Types::DeclineInvitationsRequest
380
467
 
381
468
  DeclineInvitationsResponse.add_member(:unprocessed_accounts, Shapes::ShapeRef.new(shape: UnprocessedAccounts, required: true, location_name: "unprocessedAccounts"))
382
469
  DeclineInvitationsResponse.struct_class = Types::DeclineInvitationsResponse
383
470
 
471
+ DefaultServerSideEncryption.add_member(:encryption_type, Shapes::ShapeRef.new(shape: String, location_name: "encryptionType"))
472
+ DefaultServerSideEncryption.add_member(:kms_master_key_arn, Shapes::ShapeRef.new(shape: String, location_name: "kmsMasterKeyArn"))
473
+ DefaultServerSideEncryption.struct_class = Types::DefaultServerSideEncryption
474
+
384
475
  DeleteDetectorRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, required: true, location: "uri", location_name: "detectorId"))
385
476
  DeleteDetectorRequest.struct_class = Types::DeleteDetectorRequest
386
477
 
@@ -428,6 +519,7 @@ module Aws::GuardDuty
428
519
 
429
520
  DescribeOrganizationConfigurationResponse.add_member(:auto_enable, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "autoEnable"))
430
521
  DescribeOrganizationConfigurationResponse.add_member(:member_account_limit_reached, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "memberAccountLimitReached"))
522
+ DescribeOrganizationConfigurationResponse.add_member(:data_sources, Shapes::ShapeRef.new(shape: OrganizationDataSourceConfigurationsResult, location_name: "dataSources"))
431
523
  DescribeOrganizationConfigurationResponse.struct_class = Types::DescribeOrganizationConfigurationResponse
432
524
 
433
525
  DescribePublishingDestinationRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, required: true, location: "uri", location_name: "detectorId"))
@@ -522,6 +614,9 @@ module Aws::GuardDuty
522
614
 
523
615
  Findings.member = Shapes::ShapeRef.new(shape: Finding)
524
616
 
617
+ FlowLogsConfigurationResult.add_member(:status, Shapes::ShapeRef.new(shape: DataSourceStatus, required: true, location_name: "status"))
618
+ FlowLogsConfigurationResult.struct_class = Types::FlowLogsConfigurationResult
619
+
525
620
  GeoLocation.add_member(:lat, Shapes::ShapeRef.new(shape: Double, location_name: "lat"))
526
621
  GeoLocation.add_member(:lon, Shapes::ShapeRef.new(shape: Double, location_name: "lon"))
527
622
  GeoLocation.struct_class = Types::GeoLocation
@@ -534,6 +629,7 @@ module Aws::GuardDuty
534
629
  GetDetectorResponse.add_member(:service_role, Shapes::ShapeRef.new(shape: String, required: true, location_name: "serviceRole"))
535
630
  GetDetectorResponse.add_member(:status, Shapes::ShapeRef.new(shape: DetectorStatus, required: true, location_name: "status"))
536
631
  GetDetectorResponse.add_member(:updated_at, Shapes::ShapeRef.new(shape: String, location_name: "updatedAt"))
632
+ GetDetectorResponse.add_member(:data_sources, Shapes::ShapeRef.new(shape: DataSourceConfigurationsResult, location_name: "dataSources"))
537
633
  GetDetectorResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
538
634
  GetDetectorResponse.struct_class = Types::GetDetectorResponse
539
635
 
@@ -587,6 +683,14 @@ module Aws::GuardDuty
587
683
  GetMasterAccountResponse.add_member(:master, Shapes::ShapeRef.new(shape: Master, required: true, location_name: "master"))
588
684
  GetMasterAccountResponse.struct_class = Types::GetMasterAccountResponse
589
685
 
686
+ GetMemberDetectorsRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, required: true, location: "uri", location_name: "detectorId"))
687
+ GetMemberDetectorsRequest.add_member(:account_ids, Shapes::ShapeRef.new(shape: AccountIds, required: true, location_name: "accountIds"))
688
+ GetMemberDetectorsRequest.struct_class = Types::GetMemberDetectorsRequest
689
+
690
+ GetMemberDetectorsResponse.add_member(:member_data_source_configurations, Shapes::ShapeRef.new(shape: MemberDataSourceConfigurations, required: true, location_name: "members"))
691
+ GetMemberDetectorsResponse.add_member(:unprocessed_accounts, Shapes::ShapeRef.new(shape: UnprocessedAccounts, required: true, location_name: "unprocessedAccounts"))
692
+ GetMemberDetectorsResponse.struct_class = Types::GetMemberDetectorsResponse
693
+
590
694
  GetMembersRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, required: true, location: "uri", location_name: "detectorId"))
591
695
  GetMembersRequest.add_member(:account_ids, Shapes::ShapeRef.new(shape: AccountIds, required: true, location_name: "accountIds"))
592
696
  GetMembersRequest.struct_class = Types::GetMembersRequest
@@ -606,6 +710,18 @@ module Aws::GuardDuty
606
710
  GetThreatIntelSetResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
607
711
  GetThreatIntelSetResponse.struct_class = Types::GetThreatIntelSetResponse
608
712
 
713
+ GetUsageStatisticsRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, required: true, location: "uri", location_name: "detectorId"))
714
+ GetUsageStatisticsRequest.add_member(:usage_statistic_type, Shapes::ShapeRef.new(shape: UsageStatisticType, required: true, location_name: "usageStatisticsType"))
715
+ GetUsageStatisticsRequest.add_member(:usage_criteria, Shapes::ShapeRef.new(shape: UsageCriteria, required: true, location_name: "usageCriteria"))
716
+ GetUsageStatisticsRequest.add_member(:unit, Shapes::ShapeRef.new(shape: String, location_name: "unit"))
717
+ GetUsageStatisticsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
718
+ GetUsageStatisticsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
719
+ GetUsageStatisticsRequest.struct_class = Types::GetUsageStatisticsRequest
720
+
721
+ GetUsageStatisticsResponse.add_member(:usage_statistics, Shapes::ShapeRef.new(shape: UsageStatistics, location_name: "usageStatistics"))
722
+ GetUsageStatisticsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
723
+ GetUsageStatisticsResponse.struct_class = Types::GetUsageStatisticsResponse
724
+
609
725
  IamInstanceProfile.add_member(:arn, Shapes::ShapeRef.new(shape: String, location_name: "arn"))
610
726
  IamInstanceProfile.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "id"))
611
727
  IamInstanceProfile.struct_class = Types::IamInstanceProfile
@@ -759,6 +875,12 @@ module Aws::GuardDuty
759
875
  Member.add_member(:updated_at, Shapes::ShapeRef.new(shape: String, required: true, location_name: "updatedAt"))
760
876
  Member.struct_class = Types::Member
761
877
 
878
+ MemberDataSourceConfiguration.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "accountId"))
879
+ MemberDataSourceConfiguration.add_member(:data_sources, Shapes::ShapeRef.new(shape: DataSourceConfigurationsResult, required: true, location_name: "dataSources"))
880
+ MemberDataSourceConfiguration.struct_class = Types::MemberDataSourceConfiguration
881
+
882
+ MemberDataSourceConfigurations.member = Shapes::ShapeRef.new(shape: MemberDataSourceConfiguration)
883
+
762
884
  Members.member = Shapes::ShapeRef.new(shape: Member)
763
885
 
764
886
  Neq.member = Shapes::ShapeRef.new(shape: String)
@@ -794,6 +916,25 @@ module Aws::GuardDuty
794
916
  Organization.add_member(:org, Shapes::ShapeRef.new(shape: String, location_name: "org"))
795
917
  Organization.struct_class = Types::Organization
796
918
 
919
+ OrganizationDataSourceConfigurations.add_member(:s3_logs, Shapes::ShapeRef.new(shape: OrganizationS3LogsConfiguration, location_name: "s3Logs"))
920
+ OrganizationDataSourceConfigurations.struct_class = Types::OrganizationDataSourceConfigurations
921
+
922
+ OrganizationDataSourceConfigurationsResult.add_member(:s3_logs, Shapes::ShapeRef.new(shape: OrganizationS3LogsConfigurationResult, required: true, location_name: "s3Logs"))
923
+ OrganizationDataSourceConfigurationsResult.struct_class = Types::OrganizationDataSourceConfigurationsResult
924
+
925
+ OrganizationS3LogsConfiguration.add_member(:auto_enable, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "autoEnable"))
926
+ OrganizationS3LogsConfiguration.struct_class = Types::OrganizationS3LogsConfiguration
927
+
928
+ OrganizationS3LogsConfigurationResult.add_member(:auto_enable, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "autoEnable"))
929
+ OrganizationS3LogsConfigurationResult.struct_class = Types::OrganizationS3LogsConfigurationResult
930
+
931
+ Owner.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "id"))
932
+ Owner.struct_class = Types::Owner
933
+
934
+ PermissionConfiguration.add_member(:bucket_level_permissions, Shapes::ShapeRef.new(shape: BucketLevelPermissions, location_name: "bucketLevelPermissions"))
935
+ PermissionConfiguration.add_member(:account_level_permissions, Shapes::ShapeRef.new(shape: AccountLevelPermissions, location_name: "accountLevelPermissions"))
936
+ PermissionConfiguration.struct_class = Types::PermissionConfiguration
937
+
797
938
  PortProbeAction.add_member(:blocked, Shapes::ShapeRef.new(shape: Boolean, location_name: "blocked"))
798
939
  PortProbeAction.add_member(:port_probe_details, Shapes::ShapeRef.new(shape: PortProbeDetails, location_name: "portProbeDetails"))
799
940
  PortProbeAction.struct_class = Types::PortProbeAction
@@ -817,6 +958,10 @@ module Aws::GuardDuty
817
958
 
818
959
  ProductCodes.member = Shapes::ShapeRef.new(shape: ProductCode)
819
960
 
961
+ PublicAccess.add_member(:permission_configuration, Shapes::ShapeRef.new(shape: PermissionConfiguration, location_name: "permissionConfiguration"))
962
+ PublicAccess.add_member(:effective_permission, Shapes::ShapeRef.new(shape: String, location_name: "effectivePermission"))
963
+ PublicAccess.struct_class = Types::PublicAccess
964
+
820
965
  RemoteIpDetails.add_member(:city, Shapes::ShapeRef.new(shape: City, location_name: "city"))
821
966
  RemoteIpDetails.add_member(:country, Shapes::ShapeRef.new(shape: Country, location_name: "country"))
822
967
  RemoteIpDetails.add_member(:geo_location, Shapes::ShapeRef.new(shape: GeoLocation, location_name: "geoLocation"))
@@ -829,10 +974,31 @@ module Aws::GuardDuty
829
974
  RemotePortDetails.struct_class = Types::RemotePortDetails
830
975
 
831
976
  Resource.add_member(:access_key_details, Shapes::ShapeRef.new(shape: AccessKeyDetails, location_name: "accessKeyDetails"))
977
+ Resource.add_member(:s3_bucket_details, Shapes::ShapeRef.new(shape: S3BucketDetails, location_name: "s3BucketDetails"))
832
978
  Resource.add_member(:instance_details, Shapes::ShapeRef.new(shape: InstanceDetails, location_name: "instanceDetails"))
833
979
  Resource.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, location_name: "resourceType"))
834
980
  Resource.struct_class = Types::Resource
835
981
 
982
+ ResourceList.member = Shapes::ShapeRef.new(shape: String)
983
+
984
+ S3BucketDetail.add_member(:arn, Shapes::ShapeRef.new(shape: String, location_name: "arn"))
985
+ S3BucketDetail.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
986
+ S3BucketDetail.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "type"))
987
+ S3BucketDetail.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdAt"))
988
+ S3BucketDetail.add_member(:owner, Shapes::ShapeRef.new(shape: Owner, location_name: "owner"))
989
+ S3BucketDetail.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
990
+ S3BucketDetail.add_member(:default_server_side_encryption, Shapes::ShapeRef.new(shape: DefaultServerSideEncryption, location_name: "defaultServerSideEncryption"))
991
+ S3BucketDetail.add_member(:public_access, Shapes::ShapeRef.new(shape: PublicAccess, location_name: "publicAccess"))
992
+ S3BucketDetail.struct_class = Types::S3BucketDetail
993
+
994
+ S3BucketDetails.member = Shapes::ShapeRef.new(shape: S3BucketDetail)
995
+
996
+ S3LogsConfiguration.add_member(:enable, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "enable"))
997
+ S3LogsConfiguration.struct_class = Types::S3LogsConfiguration
998
+
999
+ S3LogsConfigurationResult.add_member(:status, Shapes::ShapeRef.new(shape: DataSourceStatus, required: true, location_name: "status"))
1000
+ S3LogsConfigurationResult.struct_class = Types::S3LogsConfigurationResult
1001
+
836
1002
  SecurityGroup.add_member(:group_id, Shapes::ShapeRef.new(shape: String, location_name: "groupId"))
837
1003
  SecurityGroup.add_member(:group_name, Shapes::ShapeRef.new(shape: String, location_name: "groupName"))
838
1004
  SecurityGroup.struct_class = Types::SecurityGroup
@@ -896,6 +1062,10 @@ module Aws::GuardDuty
896
1062
 
897
1063
  ThreatNames.member = Shapes::ShapeRef.new(shape: String)
898
1064
 
1065
+ Total.add_member(:amount, Shapes::ShapeRef.new(shape: String, location_name: "amount"))
1066
+ Total.add_member(:unit, Shapes::ShapeRef.new(shape: String, location_name: "unit"))
1067
+ Total.struct_class = Types::Total
1068
+
899
1069
  UnarchiveFindingsRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, required: true, location: "uri", location_name: "detectorId"))
900
1070
  UnarchiveFindingsRequest.add_member(:finding_ids, Shapes::ShapeRef.new(shape: FindingIds, required: true, location_name: "findingIds"))
901
1071
  UnarchiveFindingsRequest.struct_class = Types::UnarchiveFindingsRequest
@@ -917,6 +1087,7 @@ module Aws::GuardDuty
917
1087
  UpdateDetectorRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, required: true, location: "uri", location_name: "detectorId"))
918
1088
  UpdateDetectorRequest.add_member(:enable, Shapes::ShapeRef.new(shape: Boolean, location_name: "enable"))
919
1089
  UpdateDetectorRequest.add_member(:finding_publishing_frequency, Shapes::ShapeRef.new(shape: FindingPublishingFrequency, location_name: "findingPublishingFrequency"))
1090
+ UpdateDetectorRequest.add_member(:data_sources, Shapes::ShapeRef.new(shape: DataSourceConfigurations, location_name: "dataSources"))
920
1091
  UpdateDetectorRequest.struct_class = Types::UpdateDetectorRequest
921
1092
 
922
1093
  UpdateDetectorResponse.struct_class = Types::UpdateDetectorResponse
@@ -949,8 +1120,17 @@ module Aws::GuardDuty
949
1120
 
950
1121
  UpdateIPSetResponse.struct_class = Types::UpdateIPSetResponse
951
1122
 
1123
+ UpdateMemberDetectorsRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, required: true, location: "uri", location_name: "detectorId"))
1124
+ UpdateMemberDetectorsRequest.add_member(:account_ids, Shapes::ShapeRef.new(shape: AccountIds, required: true, location_name: "accountIds"))
1125
+ UpdateMemberDetectorsRequest.add_member(:data_sources, Shapes::ShapeRef.new(shape: DataSourceConfigurations, location_name: "dataSources"))
1126
+ UpdateMemberDetectorsRequest.struct_class = Types::UpdateMemberDetectorsRequest
1127
+
1128
+ UpdateMemberDetectorsResponse.add_member(:unprocessed_accounts, Shapes::ShapeRef.new(shape: UnprocessedAccounts, required: true, location_name: "unprocessedAccounts"))
1129
+ UpdateMemberDetectorsResponse.struct_class = Types::UpdateMemberDetectorsResponse
1130
+
952
1131
  UpdateOrganizationConfigurationRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, required: true, location: "uri", location_name: "detectorId"))
953
1132
  UpdateOrganizationConfigurationRequest.add_member(:auto_enable, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "autoEnable"))
1133
+ UpdateOrganizationConfigurationRequest.add_member(:data_sources, Shapes::ShapeRef.new(shape: OrganizationDataSourceConfigurations, location_name: "dataSources"))
954
1134
  UpdateOrganizationConfigurationRequest.struct_class = Types::UpdateOrganizationConfigurationRequest
955
1135
 
956
1136
  UpdateOrganizationConfigurationResponse.struct_class = Types::UpdateOrganizationConfigurationResponse
@@ -971,6 +1151,35 @@ module Aws::GuardDuty
971
1151
 
972
1152
  UpdateThreatIntelSetResponse.struct_class = Types::UpdateThreatIntelSetResponse
973
1153
 
1154
+ UsageAccountResult.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "accountId"))
1155
+ UsageAccountResult.add_member(:total, Shapes::ShapeRef.new(shape: Total, location_name: "total"))
1156
+ UsageAccountResult.struct_class = Types::UsageAccountResult
1157
+
1158
+ UsageAccountResultList.member = Shapes::ShapeRef.new(shape: UsageAccountResult)
1159
+
1160
+ UsageCriteria.add_member(:account_ids, Shapes::ShapeRef.new(shape: AccountIds, location_name: "accountIds"))
1161
+ UsageCriteria.add_member(:data_sources, Shapes::ShapeRef.new(shape: DataSourceList, required: true, location_name: "dataSources"))
1162
+ UsageCriteria.add_member(:resources, Shapes::ShapeRef.new(shape: ResourceList, location_name: "resources"))
1163
+ UsageCriteria.struct_class = Types::UsageCriteria
1164
+
1165
+ UsageDataSourceResult.add_member(:data_source, Shapes::ShapeRef.new(shape: DataSource, location_name: "dataSource"))
1166
+ UsageDataSourceResult.add_member(:total, Shapes::ShapeRef.new(shape: Total, location_name: "total"))
1167
+ UsageDataSourceResult.struct_class = Types::UsageDataSourceResult
1168
+
1169
+ UsageDataSourceResultList.member = Shapes::ShapeRef.new(shape: UsageDataSourceResult)
1170
+
1171
+ UsageResourceResult.add_member(:resource, Shapes::ShapeRef.new(shape: String, location_name: "resource"))
1172
+ UsageResourceResult.add_member(:total, Shapes::ShapeRef.new(shape: Total, location_name: "total"))
1173
+ UsageResourceResult.struct_class = Types::UsageResourceResult
1174
+
1175
+ UsageResourceResultList.member = Shapes::ShapeRef.new(shape: UsageResourceResult)
1176
+
1177
+ UsageStatistics.add_member(:sum_by_account, Shapes::ShapeRef.new(shape: UsageAccountResultList, location_name: "sumByAccount"))
1178
+ UsageStatistics.add_member(:sum_by_data_source, Shapes::ShapeRef.new(shape: UsageDataSourceResultList, location_name: "sumByDataSource"))
1179
+ UsageStatistics.add_member(:sum_by_resource, Shapes::ShapeRef.new(shape: UsageResourceResultList, location_name: "sumByResource"))
1180
+ UsageStatistics.add_member(:top_resources, Shapes::ShapeRef.new(shape: UsageResourceResultList, location_name: "topResources"))
1181
+ UsageStatistics.struct_class = Types::UsageStatistics
1182
+
974
1183
 
975
1184
  # @api private
976
1185
  API = Seahorse::Model::Api.new.tap do |api|
@@ -1289,6 +1498,16 @@ module Aws::GuardDuty
1289
1498
  o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1290
1499
  end)
1291
1500
 
1501
+ api.add_operation(:get_member_detectors, Seahorse::Model::Operation.new.tap do |o|
1502
+ o.name = "GetMemberDetectors"
1503
+ o.http_method = "POST"
1504
+ o.http_request_uri = "/detector/{detectorId}/member/detector/get"
1505
+ o.input = Shapes::ShapeRef.new(shape: GetMemberDetectorsRequest)
1506
+ o.output = Shapes::ShapeRef.new(shape: GetMemberDetectorsResponse)
1507
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1508
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1509
+ end)
1510
+
1292
1511
  api.add_operation(:get_members, Seahorse::Model::Operation.new.tap do |o|
1293
1512
  o.name = "GetMembers"
1294
1513
  o.http_method = "POST"
@@ -1309,6 +1528,22 @@ module Aws::GuardDuty
1309
1528
  o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1310
1529
  end)
1311
1530
 
1531
+ api.add_operation(:get_usage_statistics, Seahorse::Model::Operation.new.tap do |o|
1532
+ o.name = "GetUsageStatistics"
1533
+ o.http_method = "POST"
1534
+ o.http_request_uri = "/detector/{detectorId}/usage/statistics"
1535
+ o.input = Shapes::ShapeRef.new(shape: GetUsageStatisticsRequest)
1536
+ o.output = Shapes::ShapeRef.new(shape: GetUsageStatisticsResponse)
1537
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1538
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1539
+ o[:pager] = Aws::Pager.new(
1540
+ limit_key: "max_results",
1541
+ tokens: {
1542
+ "next_token" => "next_token"
1543
+ }
1544
+ )
1545
+ end)
1546
+
1312
1547
  api.add_operation(:invite_members, Seahorse::Model::Operation.new.tap do |o|
1313
1548
  o.name = "InviteMembers"
1314
1549
  o.http_method = "POST"
@@ -1563,6 +1798,16 @@ module Aws::GuardDuty
1563
1798
  o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1564
1799
  end)
1565
1800
 
1801
+ api.add_operation(:update_member_detectors, Seahorse::Model::Operation.new.tap do |o|
1802
+ o.name = "UpdateMemberDetectors"
1803
+ o.http_method = "POST"
1804
+ o.http_request_uri = "/detector/{detectorId}/member/detector/update"
1805
+ o.input = Shapes::ShapeRef.new(shape: UpdateMemberDetectorsRequest)
1806
+ o.output = Shapes::ShapeRef.new(shape: UpdateMemberDetectorsResponse)
1807
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1808
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1809
+ end)
1810
+
1566
1811
  api.add_operation(:update_organization_configuration, Seahorse::Model::Operation.new.tap do |o|
1567
1812
  o.name = "UpdateOrganizationConfiguration"
1568
1813
  o.http_method = "POST"