aws-sdk-computeoptimizerautomation 1.25.0 → 1.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -40,6 +40,11 @@ module Aws::ComputeOptimizerAutomation
40
40
  # that implement optimization actions for this account.
41
41
  # @return [String]
42
42
  #
43
+ # @!attribute [rw] organization_rule_mode_source
44
+ # Information about the source of the account's effective
45
+ # organization rule mode.
46
+ # @return [Types::OrganizationRuleModeSource]
47
+ #
43
48
  # @!attribute [rw] status_reason
44
49
  # The reason for the current Automation enrollment status.
45
50
  # @return [String]
@@ -55,6 +60,7 @@ module Aws::ComputeOptimizerAutomation
55
60
  :account_id,
56
61
  :status,
57
62
  :organization_rule_mode,
63
+ :organization_rule_mode_source,
58
64
  :status_reason,
59
65
  :last_updated_timestamp)
60
66
  SENSITIVE = []
@@ -68,7 +74,7 @@ module Aws::ComputeOptimizerAutomation
68
74
  #
69
75
  # @!attribute [rw] client_token
70
76
  # A unique identifier to ensure idempotency of the request. Valid for
71
- # 24 hours after creation.
77
+ # 30 minutes after creation.
72
78
  #
73
79
  # **A suitable default value is auto-generated.** You should normally
74
80
  # not need to pass this option.
@@ -195,7 +201,16 @@ module Aws::ComputeOptimizerAutomation
195
201
  # @return [String]
196
202
  #
197
203
  # @!attribute [rw] values
198
- # The values to use for the specified filter.
204
+ # The values to use for the specified filter. For the `ResourceType`,
205
+ # `EventType`, and `EventStatus` filters, the value that you specify
206
+ # must exactly match the corresponding field of the automation event,
207
+ # including case. For example, specify `Complete`, not `complete`.
208
+ # Wildcards aren't supported. An asterisk (`*`) or a question mark
209
+ # (`?`) in a value matches only that literal character.
210
+ #
211
+ # Valid values for the `EventStatus` filter are `Ready`, `InProgress`,
212
+ # `Complete`, `Failed`, `Cancelled`, `RollbackReady`,
213
+ # `RollbackInProgress`, `RollbackComplete`, and `RollbackFailed`.
199
214
  # @return [Array<String>]
200
215
  #
201
216
  # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-automation-2025-09-22/AutomationEventFilter AWS API Documentation
@@ -374,6 +389,20 @@ module Aws::ComputeOptimizerAutomation
374
389
  include Aws::Structure
375
390
  end
376
391
 
392
+ # The request conflicts with a concurrent change to the same resource.
393
+ # Retry the request.
394
+ #
395
+ # @!attribute [rw] message
396
+ # @return [String]
397
+ #
398
+ # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-automation-2025-09-22/ConflictException AWS API Documentation
399
+ #
400
+ class ConflictException < Struct.new(
401
+ :message)
402
+ SENSITIVE = []
403
+ include Aws::Structure
404
+ end
405
+
377
406
  # @!attribute [rw] name
378
407
  # The name of the automation rule.
379
408
  # @return [String]
@@ -586,7 +615,10 @@ module Aws::ComputeOptimizerAutomation
586
615
  #
587
616
  # @!attribute [rw] restart_needed
588
617
  # Filter criteria indicating whether the recommended action requires a
589
- # resource restart.
618
+ # resource restart. Valid values are `true` and `false`. Values are
619
+ # case-sensitive unless you use an `IgnoreCase` comparison operator.
620
+ # For example, `StringEquals` with the value `False` matches no
621
+ # recommended actions.
590
622
  # @return [Array<Types::StringCriteriaCondition>]
591
623
  #
592
624
  # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-automation-2025-09-22/Criteria AWS API Documentation
@@ -633,6 +665,37 @@ module Aws::ComputeOptimizerAutomation
633
665
  #
634
666
  class DeleteAutomationRuleResponse < Aws::EmptyStructure; end
635
667
 
668
+ # @!attribute [rw] target
669
+ # The account, organizational unit (OU), or organization root whose
670
+ # organization enrollment configuration you want to delete.
671
+ # @return [Types::OrganizationTarget]
672
+ #
673
+ # @!attribute [rw] configuration_types
674
+ # The organization enrollment configuration types to delete from the
675
+ # target.
676
+ # @return [Array<String>]
677
+ #
678
+ # @!attribute [rw] client_token
679
+ # A unique identifier to ensure idempotency of the request.
680
+ #
681
+ # **A suitable default value is auto-generated.** You should normally
682
+ # not need to pass this option.
683
+ # @return [String]
684
+ #
685
+ # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-automation-2025-09-22/DeleteOrganizationEnrollmentConfigurationRequest AWS API Documentation
686
+ #
687
+ class DeleteOrganizationEnrollmentConfigurationRequest < Struct.new(
688
+ :target,
689
+ :configuration_types,
690
+ :client_token)
691
+ SENSITIVE = []
692
+ include Aws::Structure
693
+ end
694
+
695
+ # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-automation-2025-09-22/DeleteOrganizationEnrollmentConfigurationResponse AWS API Documentation
696
+ #
697
+ class DeleteOrganizationEnrollmentConfigurationResponse < Aws::EmptyStructure; end
698
+
636
699
  # @!attribute [rw] account_ids
637
700
  # The IDs of the member accounts to disassociate.
638
701
  # @return [Array<String>]
@@ -675,7 +738,9 @@ module Aws::ComputeOptimizerAutomation
675
738
  #
676
739
  # @!attribute [rw] comparison
677
740
  # The comparison operator used to evaluate the attribute against the
678
- # specified values.
741
+ # specified values. Only operators that begin with `Numeric` are
742
+ # valid. Any other operator returns an
743
+ # `InvalidParameterValueException`.
679
744
  # @return [String]
680
745
  #
681
746
  # @!attribute [rw] values
@@ -940,7 +1005,15 @@ module Aws::ComputeOptimizerAutomation
940
1005
  # @return [String]
941
1006
  #
942
1007
  # @!attribute [rw] organization_configuration
943
- # Configuration settings for organization-wide automation rules.
1008
+ # Configuration settings that define the scope of an organization-wide
1009
+ # automation rule. Each organizational unit (OU) list can contain up
1010
+ # to 150 OUs or organization roots, and each account list can contain
1011
+ # up to 50 accounts. Each included OU or organization root must have
1012
+ # an effective organization rule mode of `AnyAllowed`. Exclusions take
1013
+ # precedence over inclusions. An account that is in an included OU and
1014
+ # is also excluded is excluded. The rule doesn't apply to the
1015
+ # management account when the account is reached through an OU or the
1016
+ # organization root.
944
1017
  # @return [Types::OrganizationConfiguration]
945
1018
  #
946
1019
  # @!attribute [rw] priority
@@ -1028,13 +1101,24 @@ module Aws::ComputeOptimizerAutomation
1028
1101
  # The timestamp of the last update to the enrollment configuration.
1029
1102
  # @return [Time]
1030
1103
  #
1104
+ # @!attribute [rw] organization_enrollment_configuration_status
1105
+ # Specifies whether an organization enrollment configuration on your
1106
+ # account, or inherited from a parent OU or the organization root,
1107
+ # enables Automation for your member account. Associations made using
1108
+ # `AssociateAccounts` don't affect this status. This field is
1109
+ # returned for organization member accounts, including delegated
1110
+ # administrators. It's omitted for management accounts and accounts
1111
+ # that aren't in an organization.
1112
+ # @return [String]
1113
+ #
1031
1114
  # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-automation-2025-09-22/GetEnrollmentConfigurationResponse AWS API Documentation
1032
1115
  #
1033
1116
  class GetEnrollmentConfigurationResponse < Struct.new(
1034
1117
  :status,
1035
1118
  :status_reason,
1036
1119
  :organization_rule_mode,
1037
- :last_updated_timestamp)
1120
+ :last_updated_timestamp,
1121
+ :organization_enrollment_configuration_status)
1038
1122
  SENSITIVE = []
1039
1123
  include Aws::Structure
1040
1124
  end
@@ -1071,7 +1155,9 @@ module Aws::ComputeOptimizerAutomation
1071
1155
  #
1072
1156
  # @!attribute [rw] comparison
1073
1157
  # The comparison operator used to evaluate the attribute against the
1074
- # specified values.
1158
+ # specified values. Only operators that begin with `Numeric` are
1159
+ # valid. Any other operator returns an
1160
+ # `InvalidParameterValueException`.
1075
1161
  # @return [String]
1076
1162
  #
1077
1163
  # @!attribute [rw] values
@@ -1155,7 +1241,7 @@ module Aws::ComputeOptimizerAutomation
1155
1241
  #
1156
1242
  # @!attribute [rw] max_results
1157
1243
  # The maximum number of automation event steps to return in a single
1158
- # response. Valid range is 1-1000.
1244
+ # response. If you don't specify a value, the default is 100.
1159
1245
  # @return [Integer]
1160
1246
  #
1161
1247
  # @!attribute [rw] next_token
@@ -1195,6 +1281,14 @@ module Aws::ComputeOptimizerAutomation
1195
1281
  # The filters to apply to the list of automation event summaries.
1196
1282
  # @return [Array<Types::AutomationEventFilter>]
1197
1283
  #
1284
+ # @!attribute [rw] organizational_unit_ids
1285
+ # The organizational unit (OU) or organization root IDs to use to
1286
+ # filter the results. The response includes event summaries for
1287
+ # accounts in the specified OUs and their child OUs. Only the
1288
+ # management account or a delegated administrator can specify this
1289
+ # parameter.
1290
+ # @return [Array<String>]
1291
+ #
1198
1292
  # @!attribute [rw] start_date_inclusive
1199
1293
  # The start date for filtering automation event summaries, inclusive.
1200
1294
  # Events created on or after this date will be included.
@@ -1207,7 +1301,7 @@ module Aws::ComputeOptimizerAutomation
1207
1301
  #
1208
1302
  # @!attribute [rw] max_results
1209
1303
  # The maximum number of automation event summaries to return in a
1210
- # single response. Valid range is 1-1000.
1304
+ # single response. If you don't specify a value, the default is 100.
1211
1305
  # @return [Integer]
1212
1306
  #
1213
1307
  # @!attribute [rw] next_token
@@ -1219,6 +1313,7 @@ module Aws::ComputeOptimizerAutomation
1219
1313
  #
1220
1314
  class ListAutomationEventSummariesRequest < Struct.new(
1221
1315
  :filters,
1316
+ :organizational_unit_ids,
1222
1317
  :start_date_inclusive,
1223
1318
  :end_date_exclusive,
1224
1319
  :max_results,
@@ -1250,6 +1345,13 @@ module Aws::ComputeOptimizerAutomation
1250
1345
  # The filters to apply to the list of automation events.
1251
1346
  # @return [Array<Types::AutomationEventFilter>]
1252
1347
  #
1348
+ # @!attribute [rw] organizational_unit_ids
1349
+ # The organizational unit (OU) or organization root IDs to use to
1350
+ # filter the results. The response includes events for accounts in the
1351
+ # specified OUs and their child OUs. Only the management account or a
1352
+ # delegated administrator can specify this parameter.
1353
+ # @return [Array<String>]
1354
+ #
1253
1355
  # @!attribute [rw] start_time_inclusive
1254
1356
  # The start of the time range to query for events.
1255
1357
  # @return [Time]
@@ -1259,7 +1361,8 @@ module Aws::ComputeOptimizerAutomation
1259
1361
  # @return [Time]
1260
1362
  #
1261
1363
  # @!attribute [rw] max_results
1262
- # The maximum number of results to return in a single call.
1364
+ # The maximum number of automation events to return in a single
1365
+ # response. If you don't specify a value, the default is 100.
1263
1366
  # @return [Integer]
1264
1367
  #
1265
1368
  # @!attribute [rw] next_token
@@ -1270,6 +1373,7 @@ module Aws::ComputeOptimizerAutomation
1270
1373
  #
1271
1374
  class ListAutomationEventsRequest < Struct.new(
1272
1375
  :filters,
1376
+ :organizational_unit_ids,
1273
1377
  :start_time_inclusive,
1274
1378
  :end_time_exclusive,
1275
1379
  :max_results,
@@ -1305,7 +1409,9 @@ module Aws::ComputeOptimizerAutomation
1305
1409
  # @return [String]
1306
1410
  #
1307
1411
  # @!attribute [rw] organization_scope
1308
- # The organizational scope for the rule preview.
1412
+ # The organizational scope for the rule preview. This parameter is
1413
+ # required when `ruleType` is `OrganizationRule`. Don't specify it
1414
+ # when `ruleType` is `AccountRule`.
1309
1415
  # @return [Types::OrganizationScope]
1310
1416
  #
1311
1417
  # @!attribute [rw] recommended_action_types
@@ -1321,7 +1427,7 @@ module Aws::ComputeOptimizerAutomation
1321
1427
  #
1322
1428
  # @!attribute [rw] max_results
1323
1429
  # The maximum number of automation rule preview results to return in a
1324
- # single response. Valid range is 1-1000.
1430
+ # single response. If you don't specify a value, the default is 100.
1325
1431
  # @return [Integer]
1326
1432
  #
1327
1433
  # @!attribute [rw] next_token
@@ -1366,7 +1472,9 @@ module Aws::ComputeOptimizerAutomation
1366
1472
  # @return [String]
1367
1473
  #
1368
1474
  # @!attribute [rw] organization_scope
1369
- # The organizational scope for the rule preview.
1475
+ # The organizational scope for the rule preview. This parameter is
1476
+ # required when `ruleType` is `OrganizationRule`. Don't specify it
1477
+ # when `ruleType` is `AccountRule`.
1370
1478
  # @return [Types::OrganizationScope]
1371
1479
  #
1372
1480
  # @!attribute [rw] recommended_action_types
@@ -1383,7 +1491,8 @@ module Aws::ComputeOptimizerAutomation
1383
1491
  #
1384
1492
  # @!attribute [rw] max_results
1385
1493
  # The maximum number of automation rule preview summaries to return in
1386
- # a single response. Valid range is 1-1000.
1494
+ # a single response. If you don't specify a value, the default is
1495
+ # 100.
1387
1496
  # @return [Integer]
1388
1497
  #
1389
1498
  # @!attribute [rw] next_token
@@ -1429,7 +1538,7 @@ module Aws::ComputeOptimizerAutomation
1429
1538
  #
1430
1539
  # @!attribute [rw] max_results
1431
1540
  # The maximum number of automation rules to return in a single
1432
- # response. Valid range is 1-1000.
1541
+ # response. If you don't specify a value, the default is 100.
1433
1542
  # @return [Integer]
1434
1543
  #
1435
1544
  # @!attribute [rw] next_token
@@ -1465,15 +1574,112 @@ module Aws::ComputeOptimizerAutomation
1465
1574
  include Aws::Structure
1466
1575
  end
1467
1576
 
1577
+ # @!attribute [rw] target_type
1578
+ # The target type to use to filter the results. If you specify
1579
+ # `OrganizationalUnit`, the results also include configurations stored
1580
+ # on the organization root. If you don't specify a target type, the
1581
+ # operation returns configurations for every target type.
1582
+ # @return [String]
1583
+ #
1584
+ # @!attribute [rw] max_results
1585
+ # The maximum number of organization enrollment configurations to
1586
+ # return in a single response. If you don't specify a value, the
1587
+ # default is 1,000.
1588
+ # @return [Integer]
1589
+ #
1590
+ # @!attribute [rw] next_token
1591
+ # The token to use to retrieve the next page of results.
1592
+ # @return [String]
1593
+ #
1594
+ # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-automation-2025-09-22/ListOrganizationEnrollmentConfigurationsRequest AWS API Documentation
1595
+ #
1596
+ class ListOrganizationEnrollmentConfigurationsRequest < Struct.new(
1597
+ :target_type,
1598
+ :max_results,
1599
+ :next_token)
1600
+ SENSITIVE = []
1601
+ include Aws::Structure
1602
+ end
1603
+
1604
+ # @!attribute [rw] organization_enrollment_configurations
1605
+ # The organization enrollment configurations stored on each target in
1606
+ # this page of results.
1607
+ # @return [Array<Types::OrganizationEnrollmentConfiguration>]
1608
+ #
1609
+ # @!attribute [rw] next_token
1610
+ # The token to use to retrieve the next page of results.
1611
+ # @return [String]
1612
+ #
1613
+ # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-automation-2025-09-22/ListOrganizationEnrollmentConfigurationsResponse AWS API Documentation
1614
+ #
1615
+ class ListOrganizationEnrollmentConfigurationsResponse < Struct.new(
1616
+ :organization_enrollment_configurations,
1617
+ :next_token)
1618
+ SENSITIVE = []
1619
+ include Aws::Structure
1620
+ end
1621
+
1622
+ # @!attribute [rw] organizational_unit_ids
1623
+ # The organizational unit (OU) or organization root IDs to return. If
1624
+ # you don't specify this parameter, the operation returns the
1625
+ # organization root and every OU.
1626
+ # @return [Array<String>]
1627
+ #
1628
+ # @!attribute [rw] max_results
1629
+ # The maximum number of organizational units to return in a single
1630
+ # response. If you don't specify a value, the default is 1,000.
1631
+ # @return [Integer]
1632
+ #
1633
+ # @!attribute [rw] next_token
1634
+ # The token to use to retrieve the next page of results.
1635
+ # @return [String]
1636
+ #
1637
+ # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-automation-2025-09-22/ListOrganizationalUnitsRequest AWS API Documentation
1638
+ #
1639
+ class ListOrganizationalUnitsRequest < Struct.new(
1640
+ :organizational_unit_ids,
1641
+ :max_results,
1642
+ :next_token)
1643
+ SENSITIVE = []
1644
+ include Aws::Structure
1645
+ end
1646
+
1647
+ # @!attribute [rw] organizational_units
1648
+ # The organizational units and organization root returned in this page
1649
+ # of results, including the organization rule mode that applies to
1650
+ # each.
1651
+ # @return [Array<Types::OrganizationalUnitInfo>]
1652
+ #
1653
+ # @!attribute [rw] next_token
1654
+ # The token to use to retrieve the next page of results.
1655
+ # @return [String]
1656
+ #
1657
+ # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-automation-2025-09-22/ListOrganizationalUnitsResponse AWS API Documentation
1658
+ #
1659
+ class ListOrganizationalUnitsResponse < Struct.new(
1660
+ :organizational_units,
1661
+ :next_token)
1662
+ SENSITIVE = []
1663
+ include Aws::Structure
1664
+ end
1665
+
1468
1666
  # @!attribute [rw] filters
1469
1667
  # A list of filters to apply when retrieving recommended action
1470
1668
  # summaries. Filters can be based on resource type, action type,
1471
1669
  # account ID, and other criteria.
1472
1670
  # @return [Array<Types::RecommendedActionFilter>]
1473
1671
  #
1672
+ # @!attribute [rw] organizational_unit_ids
1673
+ # The organizational unit (OU) or organization root IDs to use to
1674
+ # filter the results. The response includes recommended action
1675
+ # summaries for accounts in the specified OUs and their child OUs.
1676
+ # Only the management account or a delegated administrator can specify
1677
+ # this parameter.
1678
+ # @return [Array<String>]
1679
+ #
1474
1680
  # @!attribute [rw] max_results
1475
1681
  # The maximum number of recommended action summaries to return in a
1476
- # single response. Valid range is 1-1000.
1682
+ # single response. If you don't specify a value, the default is 100.
1477
1683
  # @return [Integer]
1478
1684
  #
1479
1685
  # @!attribute [rw] next_token
@@ -1485,6 +1691,7 @@ module Aws::ComputeOptimizerAutomation
1485
1691
  #
1486
1692
  class ListRecommendedActionSummariesRequest < Struct.new(
1487
1693
  :filters,
1694
+ :organizational_unit_ids,
1488
1695
  :max_results,
1489
1696
  :next_token)
1490
1697
  SENSITIVE = []
@@ -1514,9 +1721,17 @@ module Aws::ComputeOptimizerAutomation
1514
1721
  # The filters to apply to the list of recommended actions.
1515
1722
  # @return [Array<Types::RecommendedActionFilter>]
1516
1723
  #
1724
+ # @!attribute [rw] organizational_unit_ids
1725
+ # The organizational unit (OU) or organization root IDs to use to
1726
+ # filter the results. The response includes recommended actions for
1727
+ # accounts in the specified OUs and their child OUs. Only the
1728
+ # management account or a delegated administrator can specify this
1729
+ # parameter.
1730
+ # @return [Array<String>]
1731
+ #
1517
1732
  # @!attribute [rw] max_results
1518
1733
  # The maximum number of recommended actions to return in a single
1519
- # response. Valid range is 1-1000.
1734
+ # response. If you don't specify a value, the default is 100.
1520
1735
  # @return [Integer]
1521
1736
  #
1522
1737
  # @!attribute [rw] next_token
@@ -1528,6 +1743,7 @@ module Aws::ComputeOptimizerAutomation
1528
1743
  #
1529
1744
  class ListRecommendedActionsRequest < Struct.new(
1530
1745
  :filters,
1746
+ :organizational_unit_ids,
1531
1747
  :max_results,
1532
1748
  :next_token)
1533
1749
  SENSITIVE = []
@@ -1576,7 +1792,8 @@ module Aws::ComputeOptimizerAutomation
1576
1792
  include Aws::Structure
1577
1793
  end
1578
1794
 
1579
- # The operation can only be performed by a management account.
1795
+ # The operation can only be performed by an organization's management
1796
+ # account or a delegated administrator.
1580
1797
  #
1581
1798
  # @!attribute [rw] message
1582
1799
  # @return [String]
@@ -1603,7 +1820,15 @@ module Aws::ComputeOptimizerAutomation
1603
1820
  include Aws::Structure
1604
1821
  end
1605
1822
 
1606
- # Configuration settings for organization-wide automation rules.
1823
+ # Configuration settings that define the scope of an organization-wide
1824
+ # automation rule. Each organizational unit (OU) list can contain up to
1825
+ # 150 OUs or organization roots, and each account list can contain up to
1826
+ # 50 accounts. Each included OU or organization root must have an
1827
+ # effective organization rule mode of `AnyAllowed`. Exclusions take
1828
+ # precedence over inclusions. An account that is in an included OU and
1829
+ # is also excluded is excluded. The rule doesn't apply to the
1830
+ # management account when the account is reached through an OU or the
1831
+ # organization root.
1607
1832
  #
1608
1833
  # @!attribute [rw] rule_apply_order
1609
1834
  # Specifies when organization rules should be applied relative to
@@ -1611,15 +1836,99 @@ module Aws::ComputeOptimizerAutomation
1611
1836
  # @return [String]
1612
1837
  #
1613
1838
  # @!attribute [rw] account_ids
1614
- # List of specific Amazon Web Services account IDs where the
1615
- # organization rule should be applied.
1839
+ # The specific Amazon Web Services account IDs where the organization
1840
+ # rule should be applied. You can specify up to 50 account IDs.
1841
+ # @return [Array<String>]
1842
+ #
1843
+ # @!attribute [rw] organizational_unit_ids
1844
+ # The organizational unit (OU) or organization root IDs to include in
1845
+ # the organization rule scope. The rule applies to accounts in the
1846
+ # specified OUs and their child OUs. You can specify up to 150 IDs.
1847
+ # @return [Array<String>]
1848
+ #
1849
+ # @!attribute [rw] excluded_organizational_unit_ids
1850
+ # The organizational unit (OU) or organization root IDs to exclude
1851
+ # from the organization rule scope. The rule doesn't apply to
1852
+ # accounts in the specified OUs or their child OUs. You can specify up
1853
+ # to 150 IDs.
1854
+ # @return [Array<String>]
1855
+ #
1856
+ # @!attribute [rw] excluded_account_ids
1857
+ # The Amazon Web Services account IDs to exclude from the organization
1858
+ # rule scope. You can specify up to 50 account IDs. An excluded
1859
+ # account remains excluded even if it is in an included OU.
1616
1860
  # @return [Array<String>]
1617
1861
  #
1618
1862
  # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-automation-2025-09-22/OrganizationConfiguration AWS API Documentation
1619
1863
  #
1620
1864
  class OrganizationConfiguration < Struct.new(
1621
1865
  :rule_apply_order,
1622
- :account_ids)
1866
+ :account_ids,
1867
+ :organizational_unit_ids,
1868
+ :excluded_organizational_unit_ids,
1869
+ :excluded_account_ids)
1870
+ SENSITIVE = []
1871
+ include Aws::Structure
1872
+ end
1873
+
1874
+ # An organization enrollment configuration sets the organization rule
1875
+ # mode on an account, organizational unit (OU), or the organization root
1876
+ # and enables Automation for affected member accounts that have opted in
1877
+ # to Compute Optimizer.
1878
+ #
1879
+ # @!attribute [rw] target_id
1880
+ # The ID of the account, organizational unit (OU), or organization
1881
+ # root on which the configuration is stored.
1882
+ # @return [String]
1883
+ #
1884
+ # @!attribute [rw] target_type
1885
+ # The type of target on which the configuration is stored.
1886
+ # @return [String]
1887
+ #
1888
+ # @!attribute [rw] organization_rule_mode
1889
+ # The organization rule mode set on the target by the organization
1890
+ # enrollment configuration.
1891
+ # @return [String]
1892
+ #
1893
+ # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-automation-2025-09-22/OrganizationEnrollmentConfiguration AWS API Documentation
1894
+ #
1895
+ class OrganizationEnrollmentConfiguration < Struct.new(
1896
+ :target_id,
1897
+ :target_type,
1898
+ :organization_rule_mode)
1899
+ SENSITIVE = []
1900
+ include Aws::Structure
1901
+ end
1902
+
1903
+ # Information about the source of an effective organization rule mode.
1904
+ #
1905
+ # @!attribute [rw] source_type
1906
+ # How the effective organization rule mode is supplied.
1907
+ #
1908
+ # * `Applied` - An organization enrollment configuration is on this
1909
+ # organizational unit or account.
1910
+ #
1911
+ # * `Inherited` - The organization enrollment configuration is on the
1912
+ # parent organizational unit or root.
1913
+ #
1914
+ # * `Direct` - The organization rule mode is set on the account
1915
+ # itself, with no organization enrollment configuration applied.
1916
+ #
1917
+ # * `Default` - No organization enrollment configuration applies, so
1918
+ # the organization rule mode is None allowed.
1919
+ # @return [String]
1920
+ #
1921
+ # @!attribute [rw] source_target_id
1922
+ # The ID of the account, organizational unit (OU), or organization
1923
+ # root that has the organization enrollment configuration. This field
1924
+ # is omitted when `sourceType` is `Direct` or `Default`.
1925
+ # @return [String]
1926
+ #
1927
+ # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-automation-2025-09-22/OrganizationRuleModeSource AWS API Documentation
1928
+ #
1929
+ class OrganizationRuleModeSource < Struct.new(
1930
+ :source_type,
1931
+ :source_target_id)
1623
1932
  SENSITIVE = []
1624
1933
  include Aws::Structure
1625
1934
  end
@@ -1632,10 +1941,106 @@ module Aws::ComputeOptimizerAutomation
1632
1941
  # organization scope.
1633
1942
  # @return [Array<String>]
1634
1943
  #
1944
+ # @!attribute [rw] organizational_unit_ids
1945
+ # The organizational unit (OU) or organization root IDs to include in
1946
+ # the preview scope. The preview includes accounts in the specified
1947
+ # OUs and their child OUs.
1948
+ # @return [Array<String>]
1949
+ #
1950
+ # @!attribute [rw] excluded_organizational_unit_ids
1951
+ # The organizational unit (OU) or organization root IDs to exclude
1952
+ # from the preview scope. The preview doesn't include accounts in the
1953
+ # specified OUs or their child OUs.
1954
+ # @return [Array<String>]
1955
+ #
1956
+ # @!attribute [rw] excluded_account_ids
1957
+ # The Amazon Web Services account IDs to exclude from the preview
1958
+ # scope.
1959
+ # @return [Array<String>]
1960
+ #
1635
1961
  # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-automation-2025-09-22/OrganizationScope AWS API Documentation
1636
1962
  #
1637
1963
  class OrganizationScope < Struct.new(
1638
- :account_ids)
1964
+ :account_ids,
1965
+ :organizational_unit_ids,
1966
+ :excluded_organizational_unit_ids,
1967
+ :excluded_account_ids)
1968
+ SENSITIVE = []
1969
+ include Aws::Structure
1970
+ end
1971
+
1972
+ # An account, organizational unit (OU), or organization root to which an
1973
+ # organization enrollment configuration applies. The management account
1974
+ # can't be specified as an account target.
1975
+ #
1976
+ # @note OrganizationTarget is a union - when making an API calls you must set exactly one of the members.
1977
+ #
1978
+ # @!attribute [rw] account_id
1979
+ # The ID of the member account to target. You can't specify the
1980
+ # management account.
1981
+ # @return [String]
1982
+ #
1983
+ # @!attribute [rw] organizational_unit_id
1984
+ # The ID of the organizational unit (OU) or organization root to
1985
+ # target.
1986
+ # @return [String]
1987
+ #
1988
+ # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-automation-2025-09-22/OrganizationTarget AWS API Documentation
1989
+ #
1990
+ class OrganizationTarget < Struct.new(
1991
+ :account_id,
1992
+ :organizational_unit_id,
1993
+ :unknown)
1994
+ SENSITIVE = []
1995
+ include Aws::Structure
1996
+ include Aws::Structure::Union
1997
+
1998
+ class AccountId < OrganizationTarget; end
1999
+ class OrganizationalUnitId < OrganizationTarget; end
2000
+ class Unknown < OrganizationTarget; end
2001
+ end
2002
+
2003
+ # Information about an organizational unit (OU) or the organization
2004
+ # root, including whether an applicable organization enrollment
2005
+ # configuration enables Automation for member accounts and the effective
2006
+ # organization rule mode.
2007
+ #
2008
+ # @!attribute [rw] organizational_unit_id
2009
+ # The ID of the organizational unit (OU) or organization root.
2010
+ # @return [String]
2011
+ #
2012
+ # @!attribute [rw] auto_enroll_member_accounts
2013
+ # Whether an applicable organization enrollment configuration enables
2014
+ # Automation for eligible member accounts beneath the organizational
2015
+ # unit (OU) or organization root.
2016
+ #
2017
+ # * `All` - An organization enrollment configuration applies and
2018
+ # enables Automation for affected member accounts, including
2019
+ # accounts that join later. This value applies to configurations
2020
+ # with either `AnyAllowed` or `NoneAllowed`.
2021
+ #
2022
+ # * `None` - No organization enrollment configuration applies, so
2023
+ # Automation isn't enabled by an organization enrollment
2024
+ # configuration.
2025
+ # @return [String]
2026
+ #
2027
+ # @!attribute [rw] organization_rule_mode
2028
+ # The effective organization rule mode for the organizational unit or
2029
+ # organization root.
2030
+ # @return [String]
2031
+ #
2032
+ # @!attribute [rw] organization_rule_mode_source
2033
+ # Information about the source of the effective organization rule
2034
+ # mode.
2035
+ # @return [Types::OrganizationRuleModeSource]
2036
+ #
2037
+ # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-automation-2025-09-22/OrganizationalUnitInfo AWS API Documentation
2038
+ #
2039
+ class OrganizationalUnitInfo < Struct.new(
2040
+ :organizational_unit_id,
2041
+ :auto_enroll_member_accounts,
2042
+ :organization_rule_mode,
2043
+ :organization_rule_mode_source)
1639
2044
  SENSITIVE = []
1640
2045
  include Aws::Structure
1641
2046
  end
@@ -1749,6 +2154,41 @@ module Aws::ComputeOptimizerAutomation
1749
2154
  include Aws::Structure
1750
2155
  end
1751
2156
 
2157
+ # @!attribute [rw] target
2158
+ # The account, organizational unit (OU), or organization root on which
2159
+ # to create or update the organization enrollment configuration. You
2160
+ # can't specify the management account.
2161
+ # @return [Types::OrganizationTarget]
2162
+ #
2163
+ # @!attribute [rw] organization_rule_mode
2164
+ # The organization rule mode to set on the target. An organization
2165
+ # enrollment configuration with either `AnyAllowed` or `NoneAllowed`
2166
+ # enables Automation for affected member accounts. `AnyAllowed`
2167
+ # permits organization rules to apply to those accounts, while
2168
+ # `NoneAllowed` doesn't.
2169
+ # @return [String]
2170
+ #
2171
+ # @!attribute [rw] client_token
2172
+ # A unique identifier to ensure idempotency of the request.
2173
+ #
2174
+ # **A suitable default value is auto-generated.** You should normally
2175
+ # not need to pass this option.
2176
+ # @return [String]
2177
+ #
2178
+ # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-automation-2025-09-22/PutOrganizationEnrollmentConfigurationRequest AWS API Documentation
2179
+ #
2180
+ class PutOrganizationEnrollmentConfigurationRequest < Struct.new(
2181
+ :target,
2182
+ :organization_rule_mode,
2183
+ :client_token)
2184
+ SENSITIVE = []
2185
+ include Aws::Structure
2186
+ end
2187
+
2188
+ # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-automation-2025-09-22/PutOrganizationEnrollmentConfigurationResponse AWS API Documentation
2189
+ #
2190
+ class PutOrganizationEnrollmentConfigurationResponse < Aws::EmptyStructure; end
2191
+
1752
2192
  # Contains information about a recommended action that can be applied to
1753
2193
  # optimize an Amazon Web Services resource.
1754
2194
  #
@@ -1840,15 +2280,54 @@ module Aws::ComputeOptimizerAutomation
1840
2280
  end
1841
2281
 
1842
2282
  # A filter used to narrow down recommended action results based on
1843
- # specific criteria.
2283
+ # specific criteria. If a filter has more than one value, a recommended
2284
+ # action matches the filter when it matches any of the values. If you
2285
+ # specify more than one filter, a recommended action must match all of
2286
+ # the filters.
1844
2287
  #
1845
2288
  # @!attribute [rw] name
1846
2289
  # The name of the filter field to apply.
1847
2290
  # @return [String]
1848
2291
  #
1849
2292
  # @!attribute [rw] values
1850
- # List of filter values to match against the specified filter name.
1851
- # Used to narrow down recommended actions based on specific criteria.
2293
+ # The list of values to filter by for the specified filter name.
2294
+ # Wildcards aren't supported. An asterisk (`*`) or a question mark
2295
+ # (`?`) in a value matches only that literal character. How a value is
2296
+ # matched depends on the filter name:
2297
+ #
2298
+ # ResourceType, RecommendedActionType, ResourceId, and AccountId
2299
+ #
2300
+ # : The value that you specify must exactly match the corresponding
2301
+ # field of the recommended action, including case. For example,
2302
+ # specify `EbsVolume`, not `ebsvolume`.
2303
+ #
2304
+ # CurrentResourceDetailsEbsVolumeType
2305
+ #
2306
+ # : Matches when the value appears anywhere in the current resource
2307
+ # details of the recommended action, which include the volume type,
2308
+ # size, IOPS, and throughput. Matching is case sensitive, and a
2309
+ # partial value also matches. For example, `gp` matches both `gp2`
2310
+ # and `gp3` volumes, and `100` matches any volume whose size, IOPS,
2311
+ # or throughput contains 100. To filter by volume type, specify the
2312
+ # complete volume type, such as `gp3` or `io2`.
2313
+ #
2314
+ # ResourceTagsKey and ResourceTagsValue
2315
+ #
2316
+ # : Matches when the value appears anywhere in the tags of the
2317
+ # resource. Both filter names search every tag key and tag value.
2318
+ # Matching is case sensitive, and a partial value also matches. For
2319
+ # example, a `ResourceTagsKey` value of `test` matches a resource
2320
+ # that has a tag value of `test`.
2321
+ #
2322
+ # LookBackPeriodInDays
2323
+ #
2324
+ # : Matches when the lookback period of the recommended action equals
2325
+ # the value. Specify a number of days, such as `14`.
2326
+ #
2327
+ # RestartNeeded
2328
+ #
2329
+ # : Matches recommended actions based on whether implementing them
2330
+ # requires a resource restart. Specify `true` or `false`.
1852
2331
  # @return [Array<String>]
1853
2332
  #
1854
2333
  # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-automation-2025-09-22/RecommendedActionFilter AWS API Documentation
@@ -1943,7 +2422,8 @@ module Aws::ComputeOptimizerAutomation
1943
2422
  #
1944
2423
  # @!attribute [rw] comparison
1945
2424
  # The comparison operator used to evaluate the attribute against the
1946
- # specified values.
2425
+ # specified values. Only operators that begin with `String` are valid.
2426
+ # Any other operator returns an `InvalidParameterValueException`.
1947
2427
  # @return [String]
1948
2428
  #
1949
2429
  # @!attribute [rw] key
@@ -2135,7 +2615,8 @@ module Aws::ComputeOptimizerAutomation
2135
2615
  #
2136
2616
  # @!attribute [rw] comparison
2137
2617
  # The comparison operator used to evaluate the attribute against the
2138
- # specified values.
2618
+ # specified values. Only operators that begin with `String` are valid.
2619
+ # Any other operator returns an `InvalidParameterValueException`.
2139
2620
  # @return [String]
2140
2621
  #
2141
2622
  # @!attribute [rw] values
@@ -2498,13 +2979,16 @@ module Aws::ComputeOptimizerAutomation
2498
2979
  # run. You must wait at least 24 hours after opting out to opt in
2499
2980
  # again.
2500
2981
  #
2501
- # <note markdown="1"> The `Pending` and `Failed` options cannot be used to update the
2982
+ # <note markdown="1"> The `Pending` and `Failed` options can't be used to update the
2502
2983
  # enrollment status of an account. They are returned in the response
2503
2984
  # of a request to update the enrollment status of an account.
2504
2985
  #
2505
- # If you are a member account, your account must be disassociated from
2506
- # your organization’s management account before you can disable
2507
- # Automation. Contact your administrator to make this change.
2986
+ # If you are a member account, you can't disable Automation while an
2987
+ # organization enrollment configuration applies. If no organization
2988
+ # enrollment configuration applies, you also can't disable Automation
2989
+ # while your organization rule mode is `AnyAllowed`. Ask your
2990
+ # administrator to delete the organization enrollment configuration or
2991
+ # disassociate your account, as applicable.
2508
2992
  #
2509
2993
  # </note>
2510
2994
  # @return [String]