aws-sdk-guardduty 1.63.0 → 1.65.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -99,6 +99,12 @@ module Aws::GuardDuty
99
99
  DestinationProperties = Shapes::StructureShape.new(name: 'DestinationProperties')
100
100
  DestinationType = Shapes::StringShape.new(name: 'DestinationType')
101
101
  Destinations = Shapes::ListShape.new(name: 'Destinations')
102
+ DetectorFeature = Shapes::StringShape.new(name: 'DetectorFeature')
103
+ DetectorFeatureConfiguration = Shapes::StructureShape.new(name: 'DetectorFeatureConfiguration')
104
+ DetectorFeatureConfigurationResult = Shapes::StructureShape.new(name: 'DetectorFeatureConfigurationResult')
105
+ DetectorFeatureConfigurations = Shapes::ListShape.new(name: 'DetectorFeatureConfigurations')
106
+ DetectorFeatureConfigurationsResults = Shapes::ListShape.new(name: 'DetectorFeatureConfigurationsResults')
107
+ DetectorFeatureResult = Shapes::StringShape.new(name: 'DetectorFeatureResult')
102
108
  DetectorId = Shapes::StringShape.new(name: 'DetectorId')
103
109
  DetectorIds = Shapes::ListShape.new(name: 'DetectorIds')
104
110
  DetectorStatus = Shapes::StringShape.new(name: 'DetectorStatus')
@@ -126,6 +132,7 @@ module Aws::GuardDuty
126
132
  Eq = Shapes::ListShape.new(name: 'Eq')
127
133
  Equals = Shapes::ListShape.new(name: 'Equals')
128
134
  Evidence = Shapes::StructureShape.new(name: 'Evidence')
135
+ FeatureStatus = Shapes::StringShape.new(name: 'FeatureStatus')
129
136
  Feedback = Shapes::StringShape.new(name: 'Feedback')
130
137
  FilePaths = Shapes::ListShape.new(name: 'FilePaths')
131
138
  FilterAction = Shapes::StringShape.new(name: 'FilterAction')
@@ -149,6 +156,9 @@ module Aws::GuardDuty
149
156
  FindingTypes = Shapes::ListShape.new(name: 'FindingTypes')
150
157
  Findings = Shapes::ListShape.new(name: 'Findings')
151
158
  FlowLogsConfigurationResult = Shapes::StructureShape.new(name: 'FlowLogsConfigurationResult')
159
+ FreeTrialFeatureConfigurationResult = Shapes::StructureShape.new(name: 'FreeTrialFeatureConfigurationResult')
160
+ FreeTrialFeatureConfigurationsResults = Shapes::ListShape.new(name: 'FreeTrialFeatureConfigurationsResults')
161
+ FreeTrialFeatureResult = Shapes::StringShape.new(name: 'FreeTrialFeatureResult')
152
162
  GeoLocation = Shapes::StructureShape.new(name: 'GeoLocation')
153
163
  GetAdministratorAccountRequest = Shapes::StructureShape.new(name: 'GetAdministratorAccountRequest')
154
164
  GetAdministratorAccountResponse = Shapes::StructureShape.new(name: 'GetAdministratorAccountResponse')
@@ -228,6 +238,8 @@ module Aws::GuardDuty
228
238
  LocalIpDetails = Shapes::StructureShape.new(name: 'LocalIpDetails')
229
239
  LocalPortDetails = Shapes::StructureShape.new(name: 'LocalPortDetails')
230
240
  Location = Shapes::StringShape.new(name: 'Location')
241
+ LoginAttribute = Shapes::StructureShape.new(name: 'LoginAttribute')
242
+ LoginAttributes = Shapes::ListShape.new(name: 'LoginAttributes')
231
243
  Long = Shapes::IntegerShape.new(name: 'Long')
232
244
  LongValue = Shapes::IntegerShape.new(name: 'LongValue')
233
245
  MalwareProtectionConfiguration = Shapes::StructureShape.new(name: 'MalwareProtectionConfiguration')
@@ -239,6 +251,10 @@ module Aws::GuardDuty
239
251
  Member = Shapes::StructureShape.new(name: 'Member')
240
252
  MemberDataSourceConfiguration = Shapes::StructureShape.new(name: 'MemberDataSourceConfiguration')
241
253
  MemberDataSourceConfigurations = Shapes::ListShape.new(name: 'MemberDataSourceConfigurations')
254
+ MemberFeaturesConfiguration = Shapes::StructureShape.new(name: 'MemberFeaturesConfiguration')
255
+ MemberFeaturesConfigurationResult = Shapes::StructureShape.new(name: 'MemberFeaturesConfigurationResult')
256
+ MemberFeaturesConfigurations = Shapes::ListShape.new(name: 'MemberFeaturesConfigurations')
257
+ MemberFeaturesConfigurationsResults = Shapes::ListShape.new(name: 'MemberFeaturesConfigurationsResults')
242
258
  Members = Shapes::ListShape.new(name: 'Members')
243
259
  Name = Shapes::StringShape.new(name: 'Name')
244
260
  Neq = Shapes::ListShape.new(name: 'Neq')
@@ -248,11 +264,17 @@ module Aws::GuardDuty
248
264
  NonEmptyString = Shapes::StringShape.new(name: 'NonEmptyString')
249
265
  NotEquals = Shapes::ListShape.new(name: 'NotEquals')
250
266
  OrderBy = Shapes::StringShape.new(name: 'OrderBy')
267
+ OrgFeature = Shapes::StringShape.new(name: 'OrgFeature')
268
+ OrgFeatureStatus = Shapes::StringShape.new(name: 'OrgFeatureStatus')
251
269
  Organization = Shapes::StructureShape.new(name: 'Organization')
252
270
  OrganizationDataSourceConfigurations = Shapes::StructureShape.new(name: 'OrganizationDataSourceConfigurations')
253
271
  OrganizationDataSourceConfigurationsResult = Shapes::StructureShape.new(name: 'OrganizationDataSourceConfigurationsResult')
254
272
  OrganizationEbsVolumes = Shapes::StructureShape.new(name: 'OrganizationEbsVolumes')
255
273
  OrganizationEbsVolumesResult = Shapes::StructureShape.new(name: 'OrganizationEbsVolumesResult')
274
+ OrganizationFeatureConfiguration = Shapes::StructureShape.new(name: 'OrganizationFeatureConfiguration')
275
+ OrganizationFeatureConfigurationResult = Shapes::StructureShape.new(name: 'OrganizationFeatureConfigurationResult')
276
+ OrganizationFeaturesConfigurations = Shapes::ListShape.new(name: 'OrganizationFeaturesConfigurations')
277
+ OrganizationFeaturesConfigurationsResults = Shapes::ListShape.new(name: 'OrganizationFeaturesConfigurationsResults')
256
278
  OrganizationKubernetesAuditLogsConfiguration = Shapes::StructureShape.new(name: 'OrganizationKubernetesAuditLogsConfiguration')
257
279
  OrganizationKubernetesAuditLogsConfigurationResult = Shapes::StructureShape.new(name: 'OrganizationKubernetesAuditLogsConfigurationResult')
258
280
  OrganizationKubernetesConfiguration = Shapes::StructureShape.new(name: 'OrganizationKubernetesConfiguration')
@@ -275,6 +297,9 @@ module Aws::GuardDuty
275
297
  ProductCodes = Shapes::ListShape.new(name: 'ProductCodes')
276
298
  PublicAccess = Shapes::StructureShape.new(name: 'PublicAccess')
277
299
  PublishingStatus = Shapes::StringShape.new(name: 'PublishingStatus')
300
+ RdsDbInstanceDetails = Shapes::StructureShape.new(name: 'RdsDbInstanceDetails')
301
+ RdsDbUserDetails = Shapes::StructureShape.new(name: 'RdsDbUserDetails')
302
+ RdsLoginAttemptAction = Shapes::StructureShape.new(name: 'RdsLoginAttemptAction')
278
303
  RemoteAccountDetails = Shapes::StructureShape.new(name: 'RemoteAccountDetails')
279
304
  RemoteIpDetails = Shapes::StructureShape.new(name: 'RemoteIpDetails')
280
305
  RemotePortDetails = Shapes::StructureShape.new(name: 'RemotePortDetails')
@@ -364,6 +389,10 @@ module Aws::GuardDuty
364
389
  UsageCriteria = Shapes::StructureShape.new(name: 'UsageCriteria')
365
390
  UsageDataSourceResult = Shapes::StructureShape.new(name: 'UsageDataSourceResult')
366
391
  UsageDataSourceResultList = Shapes::ListShape.new(name: 'UsageDataSourceResultList')
392
+ UsageFeature = Shapes::StringShape.new(name: 'UsageFeature')
393
+ UsageFeatureList = Shapes::ListShape.new(name: 'UsageFeatureList')
394
+ UsageFeatureResult = Shapes::StructureShape.new(name: 'UsageFeatureResult')
395
+ UsageFeatureResultList = Shapes::ListShape.new(name: 'UsageFeatureResultList')
367
396
  UsageResourceResult = Shapes::StructureShape.new(name: 'UsageResourceResult')
368
397
  UsageResourceResultList = Shapes::ListShape.new(name: 'UsageResourceResultList')
369
398
  UsageStatisticType = Shapes::StringShape.new(name: 'UsageStatisticType')
@@ -406,7 +435,8 @@ module Aws::GuardDuty
406
435
  AccountDetails.member = Shapes::ShapeRef.new(shape: AccountDetail)
407
436
 
408
437
  AccountFreeTrialInfo.add_member(:account_id, Shapes::ShapeRef.new(shape: String, location_name: "accountId"))
409
- AccountFreeTrialInfo.add_member(:data_sources, Shapes::ShapeRef.new(shape: DataSourcesFreeTrial, location_name: "dataSources"))
438
+ AccountFreeTrialInfo.add_member(:data_sources, Shapes::ShapeRef.new(shape: DataSourcesFreeTrial, deprecated: true, location_name: "dataSources", metadata: {"deprecatedMessage"=>"This parameter is deprecated, use Features instead"}))
439
+ AccountFreeTrialInfo.add_member(:features, Shapes::ShapeRef.new(shape: FreeTrialFeatureConfigurationsResults, location_name: "features"))
410
440
  AccountFreeTrialInfo.struct_class = Types::AccountFreeTrialInfo
411
441
 
412
442
  AccountFreeTrialInfos.member = Shapes::ShapeRef.new(shape: AccountFreeTrialInfo)
@@ -422,6 +452,7 @@ module Aws::GuardDuty
422
452
  Action.add_member(:network_connection_action, Shapes::ShapeRef.new(shape: NetworkConnectionAction, location_name: "networkConnectionAction"))
423
453
  Action.add_member(:port_probe_action, Shapes::ShapeRef.new(shape: PortProbeAction, location_name: "portProbeAction"))
424
454
  Action.add_member(:kubernetes_api_call_action, Shapes::ShapeRef.new(shape: KubernetesApiCallAction, location_name: "kubernetesApiCallAction"))
455
+ Action.add_member(:rds_login_attempt_action, Shapes::ShapeRef.new(shape: RdsLoginAttemptAction, location_name: "rdsLoginAttemptAction"))
425
456
  Action.struct_class = Types::Action
426
457
 
427
458
  AdminAccount.add_member(:admin_account_id, Shapes::ShapeRef.new(shape: String, location_name: "adminAccountId"))
@@ -516,8 +547,9 @@ module Aws::GuardDuty
516
547
  CreateDetectorRequest.add_member(:enable, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "enable"))
517
548
  CreateDetectorRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
518
549
  CreateDetectorRequest.add_member(:finding_publishing_frequency, Shapes::ShapeRef.new(shape: FindingPublishingFrequency, location_name: "findingPublishingFrequency"))
519
- CreateDetectorRequest.add_member(:data_sources, Shapes::ShapeRef.new(shape: DataSourceConfigurations, location_name: "dataSources"))
550
+ CreateDetectorRequest.add_member(:data_sources, Shapes::ShapeRef.new(shape: DataSourceConfigurations, deprecated: true, location_name: "dataSources", metadata: {"deprecatedMessage"=>"This parameter is deprecated, use Features instead"}))
520
551
  CreateDetectorRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
552
+ CreateDetectorRequest.add_member(:features, Shapes::ShapeRef.new(shape: DetectorFeatureConfigurations, location_name: "features"))
521
553
  CreateDetectorRequest.struct_class = Types::CreateDetectorRequest
522
554
 
523
555
  CreateDetectorResponse.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, location_name: "detectorId"))
@@ -679,11 +711,15 @@ module Aws::GuardDuty
679
711
  DescribeMalwareScansResponse.struct_class = Types::DescribeMalwareScansResponse
680
712
 
681
713
  DescribeOrganizationConfigurationRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, required: true, location: "uri", location_name: "detectorId"))
714
+ DescribeOrganizationConfigurationRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
715
+ DescribeOrganizationConfigurationRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "nextToken"))
682
716
  DescribeOrganizationConfigurationRequest.struct_class = Types::DescribeOrganizationConfigurationRequest
683
717
 
684
718
  DescribeOrganizationConfigurationResponse.add_member(:auto_enable, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "autoEnable"))
685
719
  DescribeOrganizationConfigurationResponse.add_member(:member_account_limit_reached, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "memberAccountLimitReached"))
686
- DescribeOrganizationConfigurationResponse.add_member(:data_sources, Shapes::ShapeRef.new(shape: OrganizationDataSourceConfigurationsResult, location_name: "dataSources"))
720
+ DescribeOrganizationConfigurationResponse.add_member(:data_sources, Shapes::ShapeRef.new(shape: OrganizationDataSourceConfigurationsResult, deprecated: true, location_name: "dataSources", metadata: {"deprecatedMessage"=>"This parameter is deprecated, use Features instead"}))
721
+ DescribeOrganizationConfigurationResponse.add_member(:features, Shapes::ShapeRef.new(shape: OrganizationFeaturesConfigurationsResults, location_name: "features"))
722
+ DescribeOrganizationConfigurationResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
687
723
  DescribeOrganizationConfigurationResponse.struct_class = Types::DescribeOrganizationConfigurationResponse
688
724
 
689
725
  DescribePublishingDestinationRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, required: true, location: "uri", location_name: "detectorId"))
@@ -708,6 +744,19 @@ module Aws::GuardDuty
708
744
 
709
745
  Destinations.member = Shapes::ShapeRef.new(shape: Destination)
710
746
 
747
+ DetectorFeatureConfiguration.add_member(:name, Shapes::ShapeRef.new(shape: DetectorFeature, location_name: "name"))
748
+ DetectorFeatureConfiguration.add_member(:status, Shapes::ShapeRef.new(shape: FeatureStatus, location_name: "status"))
749
+ DetectorFeatureConfiguration.struct_class = Types::DetectorFeatureConfiguration
750
+
751
+ DetectorFeatureConfigurationResult.add_member(:name, Shapes::ShapeRef.new(shape: DetectorFeatureResult, location_name: "name"))
752
+ DetectorFeatureConfigurationResult.add_member(:status, Shapes::ShapeRef.new(shape: FeatureStatus, location_name: "status"))
753
+ DetectorFeatureConfigurationResult.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "updatedAt"))
754
+ DetectorFeatureConfigurationResult.struct_class = Types::DetectorFeatureConfigurationResult
755
+
756
+ DetectorFeatureConfigurations.member = Shapes::ShapeRef.new(shape: DetectorFeatureConfiguration)
757
+
758
+ DetectorFeatureConfigurationsResults.member = Shapes::ShapeRef.new(shape: DetectorFeatureConfigurationResult)
759
+
711
760
  DetectorIds.member = Shapes::ShapeRef.new(shape: DetectorId)
712
761
 
713
762
  DisableOrganizationAdminAccountRequest.add_member(:admin_account_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "adminAccountId"))
@@ -850,6 +899,12 @@ module Aws::GuardDuty
850
899
  FlowLogsConfigurationResult.add_member(:status, Shapes::ShapeRef.new(shape: DataSourceStatus, required: true, location_name: "status"))
851
900
  FlowLogsConfigurationResult.struct_class = Types::FlowLogsConfigurationResult
852
901
 
902
+ FreeTrialFeatureConfigurationResult.add_member(:name, Shapes::ShapeRef.new(shape: FreeTrialFeatureResult, location_name: "name"))
903
+ FreeTrialFeatureConfigurationResult.add_member(:free_trial_days_remaining, Shapes::ShapeRef.new(shape: Integer, location_name: "freeTrialDaysRemaining"))
904
+ FreeTrialFeatureConfigurationResult.struct_class = Types::FreeTrialFeatureConfigurationResult
905
+
906
+ FreeTrialFeatureConfigurationsResults.member = Shapes::ShapeRef.new(shape: FreeTrialFeatureConfigurationResult)
907
+
853
908
  GeoLocation.add_member(:lat, Shapes::ShapeRef.new(shape: Double, location_name: "lat"))
854
909
  GeoLocation.add_member(:lon, Shapes::ShapeRef.new(shape: Double, location_name: "lon"))
855
910
  GeoLocation.struct_class = Types::GeoLocation
@@ -868,8 +923,9 @@ module Aws::GuardDuty
868
923
  GetDetectorResponse.add_member(:service_role, Shapes::ShapeRef.new(shape: String, required: true, location_name: "serviceRole"))
869
924
  GetDetectorResponse.add_member(:status, Shapes::ShapeRef.new(shape: DetectorStatus, required: true, location_name: "status"))
870
925
  GetDetectorResponse.add_member(:updated_at, Shapes::ShapeRef.new(shape: String, location_name: "updatedAt"))
871
- GetDetectorResponse.add_member(:data_sources, Shapes::ShapeRef.new(shape: DataSourceConfigurationsResult, location_name: "dataSources"))
926
+ GetDetectorResponse.add_member(:data_sources, Shapes::ShapeRef.new(shape: DataSourceConfigurationsResult, deprecated: true, location_name: "dataSources", metadata: {"deprecatedMessage"=>"This parameter is deprecated, use Features instead"}))
872
927
  GetDetectorResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
928
+ GetDetectorResponse.add_member(:features, Shapes::ShapeRef.new(shape: DetectorFeatureConfigurationsResults, location_name: "features"))
873
929
  GetDetectorResponse.struct_class = Types::GetDetectorResponse
874
930
 
875
931
  GetFilterRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, required: true, location: "uri", location_name: "detectorId"))
@@ -1166,6 +1222,14 @@ module Aws::GuardDuty
1166
1222
  LocalPortDetails.add_member(:port_name, Shapes::ShapeRef.new(shape: String, location_name: "portName"))
1167
1223
  LocalPortDetails.struct_class = Types::LocalPortDetails
1168
1224
 
1225
+ LoginAttribute.add_member(:user, Shapes::ShapeRef.new(shape: String, location_name: "user"))
1226
+ LoginAttribute.add_member(:application, Shapes::ShapeRef.new(shape: String, location_name: "application"))
1227
+ LoginAttribute.add_member(:failed_login_attempts, Shapes::ShapeRef.new(shape: Integer, location_name: "failedLoginAttempts"))
1228
+ LoginAttribute.add_member(:successful_login_attempts, Shapes::ShapeRef.new(shape: Integer, location_name: "successfulLoginAttempts"))
1229
+ LoginAttribute.struct_class = Types::LoginAttribute
1230
+
1231
+ LoginAttributes.member = Shapes::ShapeRef.new(shape: LoginAttribute)
1232
+
1169
1233
  MalwareProtectionConfiguration.add_member(:scan_ec2_instance_with_findings, Shapes::ShapeRef.new(shape: ScanEc2InstanceWithFindings, location_name: "scanEc2InstanceWithFindings"))
1170
1234
  MalwareProtectionConfiguration.struct_class = Types::MalwareProtectionConfiguration
1171
1235
 
@@ -1195,11 +1259,25 @@ module Aws::GuardDuty
1195
1259
  Member.struct_class = Types::Member
1196
1260
 
1197
1261
  MemberDataSourceConfiguration.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "accountId"))
1198
- MemberDataSourceConfiguration.add_member(:data_sources, Shapes::ShapeRef.new(shape: DataSourceConfigurationsResult, required: true, location_name: "dataSources"))
1262
+ MemberDataSourceConfiguration.add_member(:data_sources, Shapes::ShapeRef.new(shape: DataSourceConfigurationsResult, deprecated: true, location_name: "dataSources", metadata: {"deprecatedMessage"=>"This parameter is deprecated, use Features instead"}))
1263
+ MemberDataSourceConfiguration.add_member(:features, Shapes::ShapeRef.new(shape: MemberFeaturesConfigurationsResults, location_name: "features"))
1199
1264
  MemberDataSourceConfiguration.struct_class = Types::MemberDataSourceConfiguration
1200
1265
 
1201
1266
  MemberDataSourceConfigurations.member = Shapes::ShapeRef.new(shape: MemberDataSourceConfiguration)
1202
1267
 
1268
+ MemberFeaturesConfiguration.add_member(:name, Shapes::ShapeRef.new(shape: OrgFeature, location_name: "name"))
1269
+ MemberFeaturesConfiguration.add_member(:status, Shapes::ShapeRef.new(shape: FeatureStatus, location_name: "status"))
1270
+ MemberFeaturesConfiguration.struct_class = Types::MemberFeaturesConfiguration
1271
+
1272
+ MemberFeaturesConfigurationResult.add_member(:name, Shapes::ShapeRef.new(shape: OrgFeature, location_name: "name"))
1273
+ MemberFeaturesConfigurationResult.add_member(:status, Shapes::ShapeRef.new(shape: FeatureStatus, location_name: "status"))
1274
+ MemberFeaturesConfigurationResult.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "updatedAt"))
1275
+ MemberFeaturesConfigurationResult.struct_class = Types::MemberFeaturesConfigurationResult
1276
+
1277
+ MemberFeaturesConfigurations.member = Shapes::ShapeRef.new(shape: MemberFeaturesConfiguration)
1278
+
1279
+ MemberFeaturesConfigurationsResults.member = Shapes::ShapeRef.new(shape: MemberFeaturesConfigurationResult)
1280
+
1203
1281
  Members.member = Shapes::ShapeRef.new(shape: Member)
1204
1282
 
1205
1283
  Neq.member = Shapes::ShapeRef.new(shape: String)
@@ -1251,6 +1329,18 @@ module Aws::GuardDuty
1251
1329
  OrganizationEbsVolumesResult.add_member(:auto_enable, Shapes::ShapeRef.new(shape: Boolean, location_name: "autoEnable"))
1252
1330
  OrganizationEbsVolumesResult.struct_class = Types::OrganizationEbsVolumesResult
1253
1331
 
1332
+ OrganizationFeatureConfiguration.add_member(:name, Shapes::ShapeRef.new(shape: OrgFeature, location_name: "name"))
1333
+ OrganizationFeatureConfiguration.add_member(:auto_enable, Shapes::ShapeRef.new(shape: OrgFeatureStatus, location_name: "autoEnable"))
1334
+ OrganizationFeatureConfiguration.struct_class = Types::OrganizationFeatureConfiguration
1335
+
1336
+ OrganizationFeatureConfigurationResult.add_member(:name, Shapes::ShapeRef.new(shape: OrgFeature, location_name: "name"))
1337
+ OrganizationFeatureConfigurationResult.add_member(:auto_enable, Shapes::ShapeRef.new(shape: OrgFeatureStatus, location_name: "autoEnable"))
1338
+ OrganizationFeatureConfigurationResult.struct_class = Types::OrganizationFeatureConfigurationResult
1339
+
1340
+ OrganizationFeaturesConfigurations.member = Shapes::ShapeRef.new(shape: OrganizationFeatureConfiguration)
1341
+
1342
+ OrganizationFeaturesConfigurationsResults.member = Shapes::ShapeRef.new(shape: OrganizationFeatureConfigurationResult)
1343
+
1254
1344
  OrganizationKubernetesAuditLogsConfiguration.add_member(:auto_enable, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "autoEnable"))
1255
1345
  OrganizationKubernetesAuditLogsConfiguration.struct_class = Types::OrganizationKubernetesAuditLogsConfiguration
1256
1346
 
@@ -1315,6 +1405,25 @@ module Aws::GuardDuty
1315
1405
  PublicAccess.add_member(:effective_permission, Shapes::ShapeRef.new(shape: String, location_name: "effectivePermission"))
1316
1406
  PublicAccess.struct_class = Types::PublicAccess
1317
1407
 
1408
+ RdsDbInstanceDetails.add_member(:db_instance_identifier, Shapes::ShapeRef.new(shape: String, location_name: "dbInstanceIdentifier"))
1409
+ RdsDbInstanceDetails.add_member(:engine, Shapes::ShapeRef.new(shape: String, location_name: "engine"))
1410
+ RdsDbInstanceDetails.add_member(:engine_version, Shapes::ShapeRef.new(shape: String, location_name: "engineVersion"))
1411
+ RdsDbInstanceDetails.add_member(:db_cluster_identifier, Shapes::ShapeRef.new(shape: String, location_name: "dbClusterIdentifier"))
1412
+ RdsDbInstanceDetails.add_member(:db_instance_arn, Shapes::ShapeRef.new(shape: String, location_name: "dbInstanceArn"))
1413
+ RdsDbInstanceDetails.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
1414
+ RdsDbInstanceDetails.struct_class = Types::RdsDbInstanceDetails
1415
+
1416
+ RdsDbUserDetails.add_member(:user, Shapes::ShapeRef.new(shape: String, location_name: "user"))
1417
+ RdsDbUserDetails.add_member(:application, Shapes::ShapeRef.new(shape: String, location_name: "application"))
1418
+ RdsDbUserDetails.add_member(:database, Shapes::ShapeRef.new(shape: String, location_name: "database"))
1419
+ RdsDbUserDetails.add_member(:ssl, Shapes::ShapeRef.new(shape: String, location_name: "ssl"))
1420
+ RdsDbUserDetails.add_member(:auth_method, Shapes::ShapeRef.new(shape: String, location_name: "authMethod"))
1421
+ RdsDbUserDetails.struct_class = Types::RdsDbUserDetails
1422
+
1423
+ RdsLoginAttemptAction.add_member(:remote_ip_details, Shapes::ShapeRef.new(shape: RemoteIpDetails, location_name: "remoteIpDetails"))
1424
+ RdsLoginAttemptAction.add_member(:login_attributes, Shapes::ShapeRef.new(shape: LoginAttributes, location_name: "LoginAttributes"))
1425
+ RdsLoginAttemptAction.struct_class = Types::RdsLoginAttemptAction
1426
+
1318
1427
  RemoteAccountDetails.add_member(:account_id, Shapes::ShapeRef.new(shape: String, location_name: "accountId"))
1319
1428
  RemoteAccountDetails.add_member(:affiliated, Shapes::ShapeRef.new(shape: Boolean, location_name: "affiliated"))
1320
1429
  RemoteAccountDetails.struct_class = Types::RemoteAccountDetails
@@ -1339,6 +1448,8 @@ module Aws::GuardDuty
1339
1448
  Resource.add_member(:ebs_volume_details, Shapes::ShapeRef.new(shape: EbsVolumeDetails, location_name: "ebsVolumeDetails"))
1340
1449
  Resource.add_member(:ecs_cluster_details, Shapes::ShapeRef.new(shape: EcsClusterDetails, location_name: "ecsClusterDetails"))
1341
1450
  Resource.add_member(:container_details, Shapes::ShapeRef.new(shape: Container, location_name: "containerDetails"))
1451
+ Resource.add_member(:rds_db_instance_details, Shapes::ShapeRef.new(shape: RdsDbInstanceDetails, location_name: "rdsDbInstanceDetails"))
1452
+ Resource.add_member(:rds_db_user_details, Shapes::ShapeRef.new(shape: RdsDbUserDetails, location_name: "rdsDbUserDetails"))
1342
1453
  Resource.struct_class = Types::Resource
1343
1454
 
1344
1455
  ResourceDetails.add_member(:instance_arn, Shapes::ShapeRef.new(shape: InstanceArn, location_name: "instanceArn"))
@@ -1548,7 +1659,8 @@ module Aws::GuardDuty
1548
1659
  UpdateDetectorRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, required: true, location: "uri", location_name: "detectorId"))
1549
1660
  UpdateDetectorRequest.add_member(:enable, Shapes::ShapeRef.new(shape: Boolean, location_name: "enable"))
1550
1661
  UpdateDetectorRequest.add_member(:finding_publishing_frequency, Shapes::ShapeRef.new(shape: FindingPublishingFrequency, location_name: "findingPublishingFrequency"))
1551
- UpdateDetectorRequest.add_member(:data_sources, Shapes::ShapeRef.new(shape: DataSourceConfigurations, location_name: "dataSources"))
1662
+ UpdateDetectorRequest.add_member(:data_sources, Shapes::ShapeRef.new(shape: DataSourceConfigurations, deprecated: true, location_name: "dataSources", metadata: {"deprecatedMessage"=>"This parameter is deprecated, use Features instead"}))
1663
+ UpdateDetectorRequest.add_member(:features, Shapes::ShapeRef.new(shape: DetectorFeatureConfigurations, location_name: "features"))
1552
1664
  UpdateDetectorRequest.struct_class = Types::UpdateDetectorRequest
1553
1665
 
1554
1666
  UpdateDetectorResponse.struct_class = Types::UpdateDetectorResponse
@@ -1590,7 +1702,8 @@ module Aws::GuardDuty
1590
1702
 
1591
1703
  UpdateMemberDetectorsRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, required: true, location: "uri", location_name: "detectorId"))
1592
1704
  UpdateMemberDetectorsRequest.add_member(:account_ids, Shapes::ShapeRef.new(shape: AccountIds, required: true, location_name: "accountIds"))
1593
- UpdateMemberDetectorsRequest.add_member(:data_sources, Shapes::ShapeRef.new(shape: DataSourceConfigurations, location_name: "dataSources"))
1705
+ UpdateMemberDetectorsRequest.add_member(:data_sources, Shapes::ShapeRef.new(shape: DataSourceConfigurations, deprecated: true, location_name: "dataSources", metadata: {"deprecatedMessage"=>"This parameter is deprecated, use Features instead"}))
1706
+ UpdateMemberDetectorsRequest.add_member(:features, Shapes::ShapeRef.new(shape: MemberFeaturesConfigurations, location_name: "features"))
1594
1707
  UpdateMemberDetectorsRequest.struct_class = Types::UpdateMemberDetectorsRequest
1595
1708
 
1596
1709
  UpdateMemberDetectorsResponse.add_member(:unprocessed_accounts, Shapes::ShapeRef.new(shape: UnprocessedAccounts, required: true, location_name: "unprocessedAccounts"))
@@ -1598,7 +1711,8 @@ module Aws::GuardDuty
1598
1711
 
1599
1712
  UpdateOrganizationConfigurationRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: DetectorId, required: true, location: "uri", location_name: "detectorId"))
1600
1713
  UpdateOrganizationConfigurationRequest.add_member(:auto_enable, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "autoEnable"))
1601
- UpdateOrganizationConfigurationRequest.add_member(:data_sources, Shapes::ShapeRef.new(shape: OrganizationDataSourceConfigurations, location_name: "dataSources"))
1714
+ UpdateOrganizationConfigurationRequest.add_member(:data_sources, Shapes::ShapeRef.new(shape: OrganizationDataSourceConfigurations, deprecated: true, location_name: "dataSources", metadata: {"deprecatedMessage"=>"This parameter is deprecated, use Features instead"}))
1715
+ UpdateOrganizationConfigurationRequest.add_member(:features, Shapes::ShapeRef.new(shape: OrganizationFeaturesConfigurations, location_name: "features"))
1602
1716
  UpdateOrganizationConfigurationRequest.struct_class = Types::UpdateOrganizationConfigurationRequest
1603
1717
 
1604
1718
  UpdateOrganizationConfigurationResponse.struct_class = Types::UpdateOrganizationConfigurationResponse
@@ -1626,8 +1740,9 @@ module Aws::GuardDuty
1626
1740
  UsageAccountResultList.member = Shapes::ShapeRef.new(shape: UsageAccountResult)
1627
1741
 
1628
1742
  UsageCriteria.add_member(:account_ids, Shapes::ShapeRef.new(shape: AccountIds, location_name: "accountIds"))
1629
- UsageCriteria.add_member(:data_sources, Shapes::ShapeRef.new(shape: DataSourceList, required: true, location_name: "dataSources"))
1743
+ UsageCriteria.add_member(:data_sources, Shapes::ShapeRef.new(shape: DataSourceList, deprecated: true, location_name: "dataSources", metadata: {"deprecatedMessage"=>"This parameter is deprecated, use Features instead"}))
1630
1744
  UsageCriteria.add_member(:resources, Shapes::ShapeRef.new(shape: ResourceList, location_name: "resources"))
1745
+ UsageCriteria.add_member(:features, Shapes::ShapeRef.new(shape: UsageFeatureList, location_name: "features"))
1631
1746
  UsageCriteria.struct_class = Types::UsageCriteria
1632
1747
 
1633
1748
  UsageDataSourceResult.add_member(:data_source, Shapes::ShapeRef.new(shape: DataSource, location_name: "dataSource"))
@@ -1636,6 +1751,14 @@ module Aws::GuardDuty
1636
1751
 
1637
1752
  UsageDataSourceResultList.member = Shapes::ShapeRef.new(shape: UsageDataSourceResult)
1638
1753
 
1754
+ UsageFeatureList.member = Shapes::ShapeRef.new(shape: UsageFeature)
1755
+
1756
+ UsageFeatureResult.add_member(:feature, Shapes::ShapeRef.new(shape: UsageFeature, location_name: "feature"))
1757
+ UsageFeatureResult.add_member(:total, Shapes::ShapeRef.new(shape: Total, location_name: "total"))
1758
+ UsageFeatureResult.struct_class = Types::UsageFeatureResult
1759
+
1760
+ UsageFeatureResultList.member = Shapes::ShapeRef.new(shape: UsageFeatureResult)
1761
+
1639
1762
  UsageResourceResult.add_member(:resource, Shapes::ShapeRef.new(shape: String, location_name: "resource"))
1640
1763
  UsageResourceResult.add_member(:total, Shapes::ShapeRef.new(shape: Total, location_name: "total"))
1641
1764
  UsageResourceResult.struct_class = Types::UsageResourceResult
@@ -1646,6 +1769,7 @@ module Aws::GuardDuty
1646
1769
  UsageStatistics.add_member(:sum_by_data_source, Shapes::ShapeRef.new(shape: UsageDataSourceResultList, location_name: "sumByDataSource"))
1647
1770
  UsageStatistics.add_member(:sum_by_resource, Shapes::ShapeRef.new(shape: UsageResourceResultList, location_name: "sumByResource"))
1648
1771
  UsageStatistics.add_member(:top_resources, Shapes::ShapeRef.new(shape: UsageResourceResultList, location_name: "topResources"))
1772
+ UsageStatistics.add_member(:sum_by_feature, Shapes::ShapeRef.new(shape: UsageFeatureResultList, location_name: "sumByFeature"))
1649
1773
  UsageStatistics.struct_class = Types::UsageStatistics
1650
1774
 
1651
1775
  Volume.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
@@ -1894,6 +2018,12 @@ module Aws::GuardDuty
1894
2018
  o.output = Shapes::ShapeRef.new(shape: DescribeOrganizationConfigurationResponse)
1895
2019
  o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1896
2020
  o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
2021
+ o[:pager] = Aws::Pager.new(
2022
+ limit_key: "max_results",
2023
+ tokens: {
2024
+ "next_token" => "next_token"
2025
+ }
2026
+ )
1897
2027
  end)
1898
2028
 
1899
2029
  api.add_operation(:describe_publishing_destination, Seahorse::Model::Operation.new.tap do |o|
@@ -50,9 +50,6 @@ module Aws::GuardDuty
50
50
 
51
51
  def initialize(options = {})
52
52
  self[:region] = options[:region]
53
- if self[:region].nil?
54
- raise ArgumentError, "Missing required EndpointParameter: :region"
55
- end
56
53
  self[:use_dual_stack] = options[:use_dual_stack]
57
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
55
  if self[:use_dual_stack].nil?
@@ -14,39 +14,42 @@ module Aws::GuardDuty
14
14
  use_dual_stack = parameters.use_dual_stack
15
15
  use_fips = parameters.use_fips
16
16
  endpoint = parameters.endpoint
17
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint)
19
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
- raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
- end
22
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
- raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
- end
25
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
18
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
26
20
  end
27
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
- return Aws::Endpoints::Endpoint.new(url: "https://guardduty-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
- end
31
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
32
23
  end
33
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
- if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
36
- return Aws::Endpoints::Endpoint.new(url: "https://guardduty.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://guardduty-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
37
31
  end
38
- return Aws::Endpoints::Endpoint.new(url: "https://guardduty-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
39
33
  end
40
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
41
- end
42
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
43
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
44
- return Aws::Endpoints::Endpoint.new(url: "https://guardduty.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
37
+ return Aws::Endpoints::Endpoint.new(url: "https://guardduty.#{region}.amazonaws.com", headers: {}, properties: {})
38
+ end
39
+ return Aws::Endpoints::Endpoint.new(url: "https://guardduty-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
40
+ end
41
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
42
+ end
43
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
44
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
45
+ return Aws::Endpoints::Endpoint.new(url: "https://guardduty.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
46
+ end
47
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
45
48
  end
46
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
49
+ return Aws::Endpoints::Endpoint.new(url: "https://guardduty.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
47
50
  end
48
- return Aws::Endpoints::Endpoint.new(url: "https://guardduty.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
49
51
  end
52
+ raise ArgumentError, "Invalid Configuration: Missing Region"
50
53
  raise ArgumentError, 'No endpoint could be resolved'
51
54
 
52
55
  end