aws-sdk-computeoptimizerautomation 1.24.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-computeoptimizerautomation/client.rb +334 -29
- data/lib/aws-sdk-computeoptimizerautomation/client_api.rb +184 -0
- data/lib/aws-sdk-computeoptimizerautomation/errors.rb +16 -0
- data/lib/aws-sdk-computeoptimizerautomation/types.rb +516 -32
- data/lib/aws-sdk-computeoptimizerautomation.rb +1 -1
- data/sig/client.rbs +75 -4
- data/sig/errors.rbs +3 -0
- data/sig/types.rbs +98 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1b59212073a556831b87f9446f6d74dcdd62f1ecc72c10ba534ae636527e6a46
|
|
4
|
+
data.tar.gz: f2e376356e8b9ed947201712aa55c76299d09f9819b33ec927aab13dab301eec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 35e8c1a58b4c75ed50b720474d0a80b12834b08eade308190fde24066b198d26339515e441054d622365f7b544b737e6d6ce7ec99dc2b579734cab4bd59d1406
|
|
7
|
+
data.tar.gz: a82dc8eed0c918172efcf9ad97f1e1caac4a87324260a67fb248d0cf65c72152cf77d6d6e2524265c6b0f6069956cf50a9db69605302ebb9d5c08d2e1f6d4634
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.26.0 (2026-11-20)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Adds organization enrollment configurations, which enable Automation and set the organization rule mode for the organization root, organizational units (OUs), and accounts. Organization rules can include and exclude OUs, and recommended actions and automation events can be filtered by OU.
|
|
8
|
+
|
|
9
|
+
1.25.0 (2026-11-18)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
13
|
+
|
|
4
14
|
1.24.0 (2026-11-16)
|
|
5
15
|
------------------
|
|
6
16
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.26.0
|
|
@@ -500,6 +500,9 @@ module Aws::ComputeOptimizerAutomation
|
|
|
500
500
|
# account has not previously enabled the Automation feature, the
|
|
501
501
|
# association process automatically enables it.
|
|
502
502
|
#
|
|
503
|
+
# Requests that include an account to which an organization enrollment
|
|
504
|
+
# configuration applies are rejected.
|
|
505
|
+
#
|
|
503
506
|
# <note markdown="1"> Only the management account or a delegated administrator can perform
|
|
504
507
|
# this action.
|
|
505
508
|
#
|
|
@@ -510,8 +513,8 @@ module Aws::ComputeOptimizerAutomation
|
|
|
510
513
|
# account IDs.
|
|
511
514
|
#
|
|
512
515
|
# @option params [String] :client_token
|
|
513
|
-
# A unique identifier to ensure idempotency of the request. Valid for
|
|
514
|
-
#
|
|
516
|
+
# A unique identifier to ensure idempotency of the request. Valid for 30
|
|
517
|
+
# minutes after creation.
|
|
515
518
|
#
|
|
516
519
|
# **A suitable default value is auto-generated.** You should normally
|
|
517
520
|
# not need to pass this option.**
|
|
@@ -623,6 +626,9 @@ module Aws::ComputeOptimizerAutomation
|
|
|
623
626
|
# organization_configuration: {
|
|
624
627
|
# rule_apply_order: "BeforeAccountRules", # accepts BeforeAccountRules, AfterAccountRules
|
|
625
628
|
# account_ids: ["AccountId"],
|
|
629
|
+
# organizational_unit_ids: ["OrganizationalUnitId"],
|
|
630
|
+
# excluded_organizational_unit_ids: ["OrganizationalUnitId"],
|
|
631
|
+
# excluded_account_ids: ["AccountId"],
|
|
626
632
|
# },
|
|
627
633
|
# priority: "String",
|
|
628
634
|
# recommended_action_types: ["SnapshotAndDeleteUnattachedEbsVolume"], # required, accepts SnapshotAndDeleteUnattachedEbsVolume, UpgradeEbsVolumeType
|
|
@@ -703,6 +709,12 @@ module Aws::ComputeOptimizerAutomation
|
|
|
703
709
|
# resp.organization_configuration.rule_apply_order #=> String, one of "BeforeAccountRules", "AfterAccountRules"
|
|
704
710
|
# resp.organization_configuration.account_ids #=> Array
|
|
705
711
|
# resp.organization_configuration.account_ids[0] #=> String
|
|
712
|
+
# resp.organization_configuration.organizational_unit_ids #=> Array
|
|
713
|
+
# resp.organization_configuration.organizational_unit_ids[0] #=> String
|
|
714
|
+
# resp.organization_configuration.excluded_organizational_unit_ids #=> Array
|
|
715
|
+
# resp.organization_configuration.excluded_organizational_unit_ids[0] #=> String
|
|
716
|
+
# resp.organization_configuration.excluded_account_ids #=> Array
|
|
717
|
+
# resp.organization_configuration.excluded_account_ids[0] #=> String
|
|
706
718
|
# resp.priority #=> String
|
|
707
719
|
# resp.recommended_action_types #=> Array
|
|
708
720
|
# resp.recommended_action_types[0] #=> String, one of "SnapshotAndDeleteUnattachedEbsVolume", "UpgradeEbsVolumeType"
|
|
@@ -790,11 +802,62 @@ module Aws::ComputeOptimizerAutomation
|
|
|
790
802
|
req.send_request(options)
|
|
791
803
|
end
|
|
792
804
|
|
|
805
|
+
# Deletes the specified configuration types from an organization
|
|
806
|
+
# enrollment configuration. After deletion, Automation stays enabled for
|
|
807
|
+
# affected accounts and earlier account associations aren't restored.
|
|
808
|
+
# Affected accounts inherit the organization rule mode from the closest
|
|
809
|
+
# parent that has an organization enrollment configuration, or get None
|
|
810
|
+
# allowed if no parent has one.
|
|
811
|
+
#
|
|
812
|
+
# <note markdown="1"> Only the management account or a delegated administrator can perform
|
|
813
|
+
# this action.
|
|
814
|
+
#
|
|
815
|
+
# </note>
|
|
816
|
+
#
|
|
817
|
+
# @option params [required, Types::OrganizationTarget] :target
|
|
818
|
+
# The account, organizational unit (OU), or organization root whose
|
|
819
|
+
# organization enrollment configuration you want to delete.
|
|
820
|
+
#
|
|
821
|
+
# @option params [required, Array<String>] :configuration_types
|
|
822
|
+
# The organization enrollment configuration types to delete from the
|
|
823
|
+
# target.
|
|
824
|
+
#
|
|
825
|
+
# @option params [String] :client_token
|
|
826
|
+
# A unique identifier to ensure idempotency of the request.
|
|
827
|
+
#
|
|
828
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
829
|
+
# not need to pass this option.**
|
|
830
|
+
#
|
|
831
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
832
|
+
#
|
|
833
|
+
# @example Request syntax with placeholder values
|
|
834
|
+
#
|
|
835
|
+
# resp = client.delete_organization_enrollment_configuration({
|
|
836
|
+
# target: { # required
|
|
837
|
+
# account_id: "AccountId",
|
|
838
|
+
# organizational_unit_id: "OrganizationalUnitId",
|
|
839
|
+
# },
|
|
840
|
+
# configuration_types: ["OrganizationRuleMode"], # required, accepts OrganizationRuleMode
|
|
841
|
+
# client_token: "ClientToken",
|
|
842
|
+
# })
|
|
843
|
+
#
|
|
844
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-automation-2025-09-22/DeleteOrganizationEnrollmentConfiguration AWS API Documentation
|
|
845
|
+
#
|
|
846
|
+
# @overload delete_organization_enrollment_configuration(params = {})
|
|
847
|
+
# @param [Hash] params ({})
|
|
848
|
+
def delete_organization_enrollment_configuration(params = {}, options = {})
|
|
849
|
+
req = build_request(:delete_organization_enrollment_configuration, params)
|
|
850
|
+
req.send_request(options)
|
|
851
|
+
end
|
|
852
|
+
|
|
793
853
|
# Disassociates member accounts from your organization's management
|
|
794
854
|
# account, removing centralized automation capabilities. Once
|
|
795
855
|
# disassociated, organization rules no longer apply to the member
|
|
796
856
|
# account, and the management account (or delegated administrator)
|
|
797
|
-
#
|
|
857
|
+
# can't create automation rules for that account.
|
|
858
|
+
#
|
|
859
|
+
# Requests that include an account to which an organization enrollment
|
|
860
|
+
# configuration applies are rejected.
|
|
798
861
|
#
|
|
799
862
|
# <note markdown="1"> Only the management account or a delegated administrator can perform
|
|
800
863
|
# this action.
|
|
@@ -939,6 +1002,12 @@ module Aws::ComputeOptimizerAutomation
|
|
|
939
1002
|
# resp.organization_configuration.rule_apply_order #=> String, one of "BeforeAccountRules", "AfterAccountRules"
|
|
940
1003
|
# resp.organization_configuration.account_ids #=> Array
|
|
941
1004
|
# resp.organization_configuration.account_ids[0] #=> String
|
|
1005
|
+
# resp.organization_configuration.organizational_unit_ids #=> Array
|
|
1006
|
+
# resp.organization_configuration.organizational_unit_ids[0] #=> String
|
|
1007
|
+
# resp.organization_configuration.excluded_organizational_unit_ids #=> Array
|
|
1008
|
+
# resp.organization_configuration.excluded_organizational_unit_ids[0] #=> String
|
|
1009
|
+
# resp.organization_configuration.excluded_account_ids #=> Array
|
|
1010
|
+
# resp.organization_configuration.excluded_account_ids[0] #=> String
|
|
942
1011
|
# resp.priority #=> String
|
|
943
1012
|
# resp.recommended_action_types #=> Array
|
|
944
1013
|
# resp.recommended_action_types[0] #=> String, one of "SnapshotAndDeleteUnattachedEbsVolume", "UpgradeEbsVolumeType"
|
|
@@ -1003,6 +1072,7 @@ module Aws::ComputeOptimizerAutomation
|
|
|
1003
1072
|
# * {Types::GetEnrollmentConfigurationResponse#status_reason #status_reason} => String
|
|
1004
1073
|
# * {Types::GetEnrollmentConfigurationResponse#organization_rule_mode #organization_rule_mode} => String
|
|
1005
1074
|
# * {Types::GetEnrollmentConfigurationResponse#last_updated_timestamp #last_updated_timestamp} => Time
|
|
1075
|
+
# * {Types::GetEnrollmentConfigurationResponse#organization_enrollment_configuration_status #organization_enrollment_configuration_status} => String
|
|
1006
1076
|
#
|
|
1007
1077
|
# @example Response structure
|
|
1008
1078
|
#
|
|
@@ -1010,6 +1080,7 @@ module Aws::ComputeOptimizerAutomation
|
|
|
1010
1080
|
# resp.status_reason #=> String
|
|
1011
1081
|
# resp.organization_rule_mode #=> String, one of "AnyAllowed", "NoneAllowed"
|
|
1012
1082
|
# resp.last_updated_timestamp #=> Time
|
|
1083
|
+
# resp.organization_enrollment_configuration_status #=> String, one of "Active", "Inactive"
|
|
1013
1084
|
#
|
|
1014
1085
|
# @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-automation-2025-09-22/GetEnrollmentConfiguration AWS API Documentation
|
|
1015
1086
|
#
|
|
@@ -1054,6 +1125,8 @@ module Aws::ComputeOptimizerAutomation
|
|
|
1054
1125
|
# resp.accounts[0].account_id #=> String
|
|
1055
1126
|
# resp.accounts[0].status #=> String, one of "Active", "Inactive", "Pending", "Failed"
|
|
1056
1127
|
# resp.accounts[0].organization_rule_mode #=> String, one of "AnyAllowed", "NoneAllowed"
|
|
1128
|
+
# resp.accounts[0].organization_rule_mode_source.source_type #=> String, one of "Applied", "Inherited", "Direct", "Default"
|
|
1129
|
+
# resp.accounts[0].organization_rule_mode_source.source_target_id #=> String
|
|
1057
1130
|
# resp.accounts[0].status_reason #=> String
|
|
1058
1131
|
# resp.accounts[0].last_updated_timestamp #=> Time
|
|
1059
1132
|
# resp.next_token #=> String
|
|
@@ -1075,7 +1148,7 @@ module Aws::ComputeOptimizerAutomation
|
|
|
1075
1148
|
#
|
|
1076
1149
|
# @option params [Integer] :max_results
|
|
1077
1150
|
# The maximum number of automation event steps to return in a single
|
|
1078
|
-
# response.
|
|
1151
|
+
# response. If you don't specify a value, the default is 100.
|
|
1079
1152
|
#
|
|
1080
1153
|
# @option params [String] :next_token
|
|
1081
1154
|
# A token used for pagination to retrieve the next set of results when
|
|
@@ -1128,6 +1201,12 @@ module Aws::ComputeOptimizerAutomation
|
|
|
1128
1201
|
# @option params [Array<Types::AutomationEventFilter>] :filters
|
|
1129
1202
|
# The filters to apply to the list of automation event summaries.
|
|
1130
1203
|
#
|
|
1204
|
+
# @option params [Array<String>] :organizational_unit_ids
|
|
1205
|
+
# The organizational unit (OU) or organization root IDs to use to filter
|
|
1206
|
+
# the results. The response includes event summaries for accounts in the
|
|
1207
|
+
# specified OUs and their child OUs. Only the management account or a
|
|
1208
|
+
# delegated administrator can specify this parameter.
|
|
1209
|
+
#
|
|
1131
1210
|
# @option params [String] :start_date_inclusive
|
|
1132
1211
|
# The start date for filtering automation event summaries, inclusive.
|
|
1133
1212
|
# Events created on or after this date will be included.
|
|
@@ -1138,7 +1217,7 @@ module Aws::ComputeOptimizerAutomation
|
|
|
1138
1217
|
#
|
|
1139
1218
|
# @option params [Integer] :max_results
|
|
1140
1219
|
# The maximum number of automation event summaries to return in a single
|
|
1141
|
-
# response.
|
|
1220
|
+
# response. If you don't specify a value, the default is 100.
|
|
1142
1221
|
#
|
|
1143
1222
|
# @option params [String] :next_token
|
|
1144
1223
|
# A token used for pagination to retrieve the next set of results when
|
|
@@ -1160,6 +1239,7 @@ module Aws::ComputeOptimizerAutomation
|
|
|
1160
1239
|
# values: ["FilterValue"], # required
|
|
1161
1240
|
# },
|
|
1162
1241
|
# ],
|
|
1242
|
+
# organizational_unit_ids: ["OrganizationalUnitId"],
|
|
1163
1243
|
# start_date_inclusive: "String",
|
|
1164
1244
|
# end_date_exclusive: "String",
|
|
1165
1245
|
# max_results: 1,
|
|
@@ -1197,6 +1277,12 @@ module Aws::ComputeOptimizerAutomation
|
|
|
1197
1277
|
# @option params [Array<Types::AutomationEventFilter>] :filters
|
|
1198
1278
|
# The filters to apply to the list of automation events.
|
|
1199
1279
|
#
|
|
1280
|
+
# @option params [Array<String>] :organizational_unit_ids
|
|
1281
|
+
# The organizational unit (OU) or organization root IDs to use to filter
|
|
1282
|
+
# the results. The response includes events for accounts in the
|
|
1283
|
+
# specified OUs and their child OUs. Only the management account or a
|
|
1284
|
+
# delegated administrator can specify this parameter.
|
|
1285
|
+
#
|
|
1200
1286
|
# @option params [Time,DateTime,Date,Integer,String] :start_time_inclusive
|
|
1201
1287
|
# The start of the time range to query for events.
|
|
1202
1288
|
#
|
|
@@ -1204,7 +1290,8 @@ module Aws::ComputeOptimizerAutomation
|
|
|
1204
1290
|
# The end of the time range to query for events.
|
|
1205
1291
|
#
|
|
1206
1292
|
# @option params [Integer] :max_results
|
|
1207
|
-
# The maximum number of
|
|
1293
|
+
# The maximum number of automation events to return in a single
|
|
1294
|
+
# response. If you don't specify a value, the default is 100.
|
|
1208
1295
|
#
|
|
1209
1296
|
# @option params [String] :next_token
|
|
1210
1297
|
# The token for the next page of results.
|
|
@@ -1225,6 +1312,7 @@ module Aws::ComputeOptimizerAutomation
|
|
|
1225
1312
|
# values: ["FilterValue"], # required
|
|
1226
1313
|
# },
|
|
1227
1314
|
# ],
|
|
1315
|
+
# organizational_unit_ids: ["OrganizationalUnitId"],
|
|
1228
1316
|
# start_time_inclusive: Time.now,
|
|
1229
1317
|
# end_time_exclusive: Time.now,
|
|
1230
1318
|
# max_results: 1,
|
|
@@ -1275,7 +1363,9 @@ module Aws::ComputeOptimizerAutomation
|
|
|
1275
1363
|
# </note>
|
|
1276
1364
|
#
|
|
1277
1365
|
# @option params [Types::OrganizationScope] :organization_scope
|
|
1278
|
-
# The organizational scope for the rule preview.
|
|
1366
|
+
# The organizational scope for the rule preview. This parameter is
|
|
1367
|
+
# required when `ruleType` is `OrganizationRule`. Don't specify it when
|
|
1368
|
+
# `ruleType` is `AccountRule`.
|
|
1279
1369
|
#
|
|
1280
1370
|
# @option params [required, Array<String>] :recommended_action_types
|
|
1281
1371
|
# The types of recommended actions to include in the preview.
|
|
@@ -1288,7 +1378,7 @@ module Aws::ComputeOptimizerAutomation
|
|
|
1288
1378
|
#
|
|
1289
1379
|
# @option params [Integer] :max_results
|
|
1290
1380
|
# The maximum number of automation rule preview results to return in a
|
|
1291
|
-
# single response.
|
|
1381
|
+
# single response. If you don't specify a value, the default is 100.
|
|
1292
1382
|
#
|
|
1293
1383
|
# @option params [String] :next_token
|
|
1294
1384
|
# A token used for pagination to retrieve the next set of results when
|
|
@@ -1307,6 +1397,9 @@ module Aws::ComputeOptimizerAutomation
|
|
|
1307
1397
|
# rule_type: "OrganizationRule", # required, accepts OrganizationRule, AccountRule
|
|
1308
1398
|
# organization_scope: {
|
|
1309
1399
|
# account_ids: ["AccountId"],
|
|
1400
|
+
# organizational_unit_ids: ["OrganizationalUnitId"],
|
|
1401
|
+
# excluded_organizational_unit_ids: ["OrganizationalUnitId"],
|
|
1402
|
+
# excluded_account_ids: ["AccountId"],
|
|
1310
1403
|
# },
|
|
1311
1404
|
# recommended_action_types: ["SnapshotAndDeleteUnattachedEbsVolume"], # required, accepts SnapshotAndDeleteUnattachedEbsVolume, UpgradeEbsVolumeType
|
|
1312
1405
|
# criteria: {
|
|
@@ -1411,7 +1504,9 @@ module Aws::ComputeOptimizerAutomation
|
|
|
1411
1504
|
# The type of rule.
|
|
1412
1505
|
#
|
|
1413
1506
|
# @option params [Types::OrganizationScope] :organization_scope
|
|
1414
|
-
# The organizational scope for the rule preview.
|
|
1507
|
+
# The organizational scope for the rule preview. This parameter is
|
|
1508
|
+
# required when `ruleType` is `OrganizationRule`. Don't specify it when
|
|
1509
|
+
# `ruleType` is `AccountRule`.
|
|
1415
1510
|
#
|
|
1416
1511
|
# @option params [required, Array<String>] :recommended_action_types
|
|
1417
1512
|
# The types of recommended actions to include in the preview.
|
|
@@ -1425,7 +1520,7 @@ module Aws::ComputeOptimizerAutomation
|
|
|
1425
1520
|
#
|
|
1426
1521
|
# @option params [Integer] :max_results
|
|
1427
1522
|
# The maximum number of automation rule preview summaries to return in a
|
|
1428
|
-
# single response.
|
|
1523
|
+
# single response. If you don't specify a value, the default is 100.
|
|
1429
1524
|
#
|
|
1430
1525
|
# @option params [String] :next_token
|
|
1431
1526
|
# A token used for pagination to retrieve the next set of results when
|
|
@@ -1444,6 +1539,9 @@ module Aws::ComputeOptimizerAutomation
|
|
|
1444
1539
|
# rule_type: "OrganizationRule", # required, accepts OrganizationRule, AccountRule
|
|
1445
1540
|
# organization_scope: {
|
|
1446
1541
|
# account_ids: ["AccountId"],
|
|
1542
|
+
# organizational_unit_ids: ["OrganizationalUnitId"],
|
|
1543
|
+
# excluded_organizational_unit_ids: ["OrganizationalUnitId"],
|
|
1544
|
+
# excluded_account_ids: ["AccountId"],
|
|
1447
1545
|
# },
|
|
1448
1546
|
# recommended_action_types: ["SnapshotAndDeleteUnattachedEbsVolume"], # required, accepts SnapshotAndDeleteUnattachedEbsVolume, UpgradeEbsVolumeType
|
|
1449
1547
|
# criteria: {
|
|
@@ -1528,7 +1626,7 @@ module Aws::ComputeOptimizerAutomation
|
|
|
1528
1626
|
#
|
|
1529
1627
|
# @option params [Integer] :max_results
|
|
1530
1628
|
# The maximum number of automation rules to return in a single response.
|
|
1531
|
-
#
|
|
1629
|
+
# If you don't specify a value, the default is 100.
|
|
1532
1630
|
#
|
|
1533
1631
|
# @option params [String] :next_token
|
|
1534
1632
|
# A token used for pagination to retrieve the next set of results when
|
|
@@ -1567,6 +1665,12 @@ module Aws::ComputeOptimizerAutomation
|
|
|
1567
1665
|
# resp.automation_rules[0].organization_configuration.rule_apply_order #=> String, one of "BeforeAccountRules", "AfterAccountRules"
|
|
1568
1666
|
# resp.automation_rules[0].organization_configuration.account_ids #=> Array
|
|
1569
1667
|
# resp.automation_rules[0].organization_configuration.account_ids[0] #=> String
|
|
1668
|
+
# resp.automation_rules[0].organization_configuration.organizational_unit_ids #=> Array
|
|
1669
|
+
# resp.automation_rules[0].organization_configuration.organizational_unit_ids[0] #=> String
|
|
1670
|
+
# resp.automation_rules[0].organization_configuration.excluded_organizational_unit_ids #=> Array
|
|
1671
|
+
# resp.automation_rules[0].organization_configuration.excluded_organizational_unit_ids[0] #=> String
|
|
1672
|
+
# resp.automation_rules[0].organization_configuration.excluded_account_ids #=> Array
|
|
1673
|
+
# resp.automation_rules[0].organization_configuration.excluded_account_ids[0] #=> String
|
|
1570
1674
|
# resp.automation_rules[0].priority #=> String
|
|
1571
1675
|
# resp.automation_rules[0].recommended_action_types #=> Array
|
|
1572
1676
|
# resp.automation_rules[0].recommended_action_types[0] #=> String, one of "SnapshotAndDeleteUnattachedEbsVolume", "UpgradeEbsVolumeType"
|
|
@@ -1587,11 +1691,124 @@ module Aws::ComputeOptimizerAutomation
|
|
|
1587
1691
|
req.send_request(options)
|
|
1588
1692
|
end
|
|
1589
1693
|
|
|
1694
|
+
# Lists the organization enrollment configurations that are stored
|
|
1695
|
+
# directly on accounts, organizational units (OUs), and the organization
|
|
1696
|
+
# root.
|
|
1697
|
+
#
|
|
1698
|
+
# <note markdown="1"> Only the management account or a delegated administrator can perform
|
|
1699
|
+
# this action.
|
|
1700
|
+
#
|
|
1701
|
+
# </note>
|
|
1702
|
+
#
|
|
1703
|
+
# @option params [String] :target_type
|
|
1704
|
+
# The target type to use to filter the results. If you specify
|
|
1705
|
+
# `OrganizationalUnit`, the results also include configurations stored
|
|
1706
|
+
# on the organization root. If you don't specify a target type, the
|
|
1707
|
+
# operation returns configurations for every target type.
|
|
1708
|
+
#
|
|
1709
|
+
# @option params [Integer] :max_results
|
|
1710
|
+
# The maximum number of organization enrollment configurations to return
|
|
1711
|
+
# in a single response. If you don't specify a value, the default is
|
|
1712
|
+
# 1,000.
|
|
1713
|
+
#
|
|
1714
|
+
# @option params [String] :next_token
|
|
1715
|
+
# The token to use to retrieve the next page of results.
|
|
1716
|
+
#
|
|
1717
|
+
# @return [Types::ListOrganizationEnrollmentConfigurationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1718
|
+
#
|
|
1719
|
+
# * {Types::ListOrganizationEnrollmentConfigurationsResponse#organization_enrollment_configurations #organization_enrollment_configurations} => Array<Types::OrganizationEnrollmentConfiguration>
|
|
1720
|
+
# * {Types::ListOrganizationEnrollmentConfigurationsResponse#next_token #next_token} => String
|
|
1721
|
+
#
|
|
1722
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
1723
|
+
#
|
|
1724
|
+
# @example Request syntax with placeholder values
|
|
1725
|
+
#
|
|
1726
|
+
# resp = client.list_organization_enrollment_configurations({
|
|
1727
|
+
# target_type: "Account", # accepts Account, OrganizationalUnit
|
|
1728
|
+
# max_results: 1,
|
|
1729
|
+
# next_token: "NextToken",
|
|
1730
|
+
# })
|
|
1731
|
+
#
|
|
1732
|
+
# @example Response structure
|
|
1733
|
+
#
|
|
1734
|
+
# resp.organization_enrollment_configurations #=> Array
|
|
1735
|
+
# resp.organization_enrollment_configurations[0].target_id #=> String
|
|
1736
|
+
# resp.organization_enrollment_configurations[0].target_type #=> String, one of "Account", "OrganizationalUnit"
|
|
1737
|
+
# resp.organization_enrollment_configurations[0].organization_rule_mode #=> String, one of "AnyAllowed", "NoneAllowed"
|
|
1738
|
+
# resp.next_token #=> String
|
|
1739
|
+
#
|
|
1740
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-automation-2025-09-22/ListOrganizationEnrollmentConfigurations AWS API Documentation
|
|
1741
|
+
#
|
|
1742
|
+
# @overload list_organization_enrollment_configurations(params = {})
|
|
1743
|
+
# @param [Hash] params ({})
|
|
1744
|
+
def list_organization_enrollment_configurations(params = {}, options = {})
|
|
1745
|
+
req = build_request(:list_organization_enrollment_configurations, params)
|
|
1746
|
+
req.send_request(options)
|
|
1747
|
+
end
|
|
1748
|
+
|
|
1749
|
+
# Lists the organization root and organizational units (OUs), including
|
|
1750
|
+
# whether an applicable organization enrollment configuration enables
|
|
1751
|
+
# Automation for member accounts and the effective organization rule
|
|
1752
|
+
# mode for each root or OU.
|
|
1753
|
+
#
|
|
1754
|
+
# <note markdown="1"> Only the management account or a delegated administrator can perform
|
|
1755
|
+
# this action.
|
|
1756
|
+
#
|
|
1757
|
+
# </note>
|
|
1758
|
+
#
|
|
1759
|
+
# @option params [Array<String>] :organizational_unit_ids
|
|
1760
|
+
# The organizational unit (OU) or organization root IDs to return. If
|
|
1761
|
+
# you don't specify this parameter, the operation returns the
|
|
1762
|
+
# organization root and every OU.
|
|
1763
|
+
#
|
|
1764
|
+
# @option params [Integer] :max_results
|
|
1765
|
+
# The maximum number of organizational units to return in a single
|
|
1766
|
+
# response. If you don't specify a value, the default is 1,000.
|
|
1767
|
+
#
|
|
1768
|
+
# @option params [String] :next_token
|
|
1769
|
+
# The token to use to retrieve the next page of results.
|
|
1770
|
+
#
|
|
1771
|
+
# @return [Types::ListOrganizationalUnitsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1772
|
+
#
|
|
1773
|
+
# * {Types::ListOrganizationalUnitsResponse#organizational_units #organizational_units} => Array<Types::OrganizationalUnitInfo>
|
|
1774
|
+
# * {Types::ListOrganizationalUnitsResponse#next_token #next_token} => String
|
|
1775
|
+
#
|
|
1776
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
1777
|
+
#
|
|
1778
|
+
# @example Request syntax with placeholder values
|
|
1779
|
+
#
|
|
1780
|
+
# resp = client.list_organizational_units({
|
|
1781
|
+
# organizational_unit_ids: ["OrganizationalUnitId"],
|
|
1782
|
+
# max_results: 1,
|
|
1783
|
+
# next_token: "NextToken",
|
|
1784
|
+
# })
|
|
1785
|
+
#
|
|
1786
|
+
# @example Response structure
|
|
1787
|
+
#
|
|
1788
|
+
# resp.organizational_units #=> Array
|
|
1789
|
+
# resp.organizational_units[0].organizational_unit_id #=> String
|
|
1790
|
+
# resp.organizational_units[0].auto_enroll_member_accounts #=> String, one of "All", "None"
|
|
1791
|
+
# resp.organizational_units[0].organization_rule_mode #=> String, one of "AnyAllowed", "NoneAllowed"
|
|
1792
|
+
# resp.organizational_units[0].organization_rule_mode_source.source_type #=> String, one of "Applied", "Inherited", "Direct", "Default"
|
|
1793
|
+
# resp.organizational_units[0].organization_rule_mode_source.source_target_id #=> String
|
|
1794
|
+
# resp.next_token #=> String
|
|
1795
|
+
#
|
|
1796
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-automation-2025-09-22/ListOrganizationalUnits AWS API Documentation
|
|
1797
|
+
#
|
|
1798
|
+
# @overload list_organizational_units(params = {})
|
|
1799
|
+
# @param [Hash] params ({})
|
|
1800
|
+
def list_organizational_units(params = {}, options = {})
|
|
1801
|
+
req = build_request(:list_organizational_units, params)
|
|
1802
|
+
req.send_request(options)
|
|
1803
|
+
end
|
|
1804
|
+
|
|
1590
1805
|
# Provides a summary of recommended actions based on specified filters.
|
|
1591
1806
|
#
|
|
1592
1807
|
# <note markdown="1"> Management accounts and delegated administrators can retrieve
|
|
1593
|
-
# recommended
|
|
1594
|
-
#
|
|
1808
|
+
# recommended action summaries for member accounts that are associated
|
|
1809
|
+
# using `AssociateAccounts` or have an applicable organization
|
|
1810
|
+
# enrollment configuration with `organizationRuleMode` set to
|
|
1811
|
+
# `AnyAllowed`.
|
|
1595
1812
|
#
|
|
1596
1813
|
# </note>
|
|
1597
1814
|
#
|
|
@@ -1600,9 +1817,15 @@ module Aws::ComputeOptimizerAutomation
|
|
|
1600
1817
|
# summaries. Filters can be based on resource type, action type, account
|
|
1601
1818
|
# ID, and other criteria.
|
|
1602
1819
|
#
|
|
1820
|
+
# @option params [Array<String>] :organizational_unit_ids
|
|
1821
|
+
# The organizational unit (OU) or organization root IDs to use to filter
|
|
1822
|
+
# the results. The response includes recommended action summaries for
|
|
1823
|
+
# accounts in the specified OUs and their child OUs. Only the management
|
|
1824
|
+
# account or a delegated administrator can specify this parameter.
|
|
1825
|
+
#
|
|
1603
1826
|
# @option params [Integer] :max_results
|
|
1604
1827
|
# The maximum number of recommended action summaries to return in a
|
|
1605
|
-
# single response.
|
|
1828
|
+
# single response. If you don't specify a value, the default is 100.
|
|
1606
1829
|
#
|
|
1607
1830
|
# @option params [String] :next_token
|
|
1608
1831
|
# A token used for pagination to retrieve the next set of results when
|
|
@@ -1624,6 +1847,7 @@ module Aws::ComputeOptimizerAutomation
|
|
|
1624
1847
|
# values: ["FilterValue"], # required
|
|
1625
1848
|
# },
|
|
1626
1849
|
# ],
|
|
1850
|
+
# organizational_unit_ids: ["OrganizationalUnitId"],
|
|
1627
1851
|
# max_results: 1,
|
|
1628
1852
|
# next_token: "NextToken",
|
|
1629
1853
|
# })
|
|
@@ -1648,20 +1872,27 @@ module Aws::ComputeOptimizerAutomation
|
|
|
1648
1872
|
req.send_request(options)
|
|
1649
1873
|
end
|
|
1650
1874
|
|
|
1651
|
-
# Lists the recommended actions
|
|
1875
|
+
# Lists the recommended actions that match the specified filters.
|
|
1652
1876
|
#
|
|
1653
1877
|
# <note markdown="1"> Management accounts and delegated administrators can retrieve
|
|
1654
|
-
# recommended actions
|
|
1655
|
-
#
|
|
1878
|
+
# recommended actions for member accounts that are associated using
|
|
1879
|
+
# `AssociateAccounts` or have an applicable organization enrollment
|
|
1880
|
+
# configuration with `organizationRuleMode` set to `AnyAllowed`.
|
|
1656
1881
|
#
|
|
1657
1882
|
# </note>
|
|
1658
1883
|
#
|
|
1659
1884
|
# @option params [Array<Types::RecommendedActionFilter>] :filters
|
|
1660
1885
|
# The filters to apply to the list of recommended actions.
|
|
1661
1886
|
#
|
|
1887
|
+
# @option params [Array<String>] :organizational_unit_ids
|
|
1888
|
+
# The organizational unit (OU) or organization root IDs to use to filter
|
|
1889
|
+
# the results. The response includes recommended actions for accounts in
|
|
1890
|
+
# the specified OUs and their child OUs. Only the management account or
|
|
1891
|
+
# a delegated administrator can specify this parameter.
|
|
1892
|
+
#
|
|
1662
1893
|
# @option params [Integer] :max_results
|
|
1663
1894
|
# The maximum number of recommended actions to return in a single
|
|
1664
|
-
# response.
|
|
1895
|
+
# response. If you don't specify a value, the default is 100.
|
|
1665
1896
|
#
|
|
1666
1897
|
# @option params [String] :next_token
|
|
1667
1898
|
# A token used for pagination to retrieve the next set of results when
|
|
@@ -1683,6 +1914,7 @@ module Aws::ComputeOptimizerAutomation
|
|
|
1683
1914
|
# values: ["FilterValue"], # required
|
|
1684
1915
|
# },
|
|
1685
1916
|
# ],
|
|
1917
|
+
# organizational_unit_ids: ["OrganizationalUnitId"],
|
|
1686
1918
|
# max_results: 1,
|
|
1687
1919
|
# next_token: "NextToken",
|
|
1688
1920
|
# })
|
|
@@ -1757,11 +1989,71 @@ module Aws::ComputeOptimizerAutomation
|
|
|
1757
1989
|
req.send_request(options)
|
|
1758
1990
|
end
|
|
1759
1991
|
|
|
1992
|
+
# Creates or updates an organization enrollment configuration. The
|
|
1993
|
+
# organization enrollment configuration sets the organization rule mode
|
|
1994
|
+
# on the specified account, organizational unit (OU), or organization
|
|
1995
|
+
# root and enables Automation for affected member accounts that have
|
|
1996
|
+
# opted in to Compute Optimizer, including accounts that join later.
|
|
1997
|
+
# Changes on an OU or the organization root can take up to 5 minutes.
|
|
1998
|
+
# Organization enrollment configurations take precedence over settings
|
|
1999
|
+
# made by `AssociateAccounts` and `DisassociateAccounts`. You must
|
|
2000
|
+
# specify at least one configuration in the request.
|
|
2001
|
+
#
|
|
2002
|
+
# <note markdown="1"> Only the management account or a delegated administrator can perform
|
|
2003
|
+
# this action.
|
|
2004
|
+
#
|
|
2005
|
+
# Organization enrollment configurations can't be created for the
|
|
2006
|
+
# management account.
|
|
2007
|
+
#
|
|
2008
|
+
# </note>
|
|
2009
|
+
#
|
|
2010
|
+
# @option params [required, Types::OrganizationTarget] :target
|
|
2011
|
+
# The account, organizational unit (OU), or organization root on which
|
|
2012
|
+
# to create or update the organization enrollment configuration. You
|
|
2013
|
+
# can't specify the management account.
|
|
2014
|
+
#
|
|
2015
|
+
# @option params [String] :organization_rule_mode
|
|
2016
|
+
# The organization rule mode to set on the target. An organization
|
|
2017
|
+
# enrollment configuration with either `AnyAllowed` or `NoneAllowed`
|
|
2018
|
+
# enables Automation for affected member accounts. `AnyAllowed` permits
|
|
2019
|
+
# organization rules to apply to those accounts, while `NoneAllowed`
|
|
2020
|
+
# doesn't.
|
|
2021
|
+
#
|
|
2022
|
+
# @option params [String] :client_token
|
|
2023
|
+
# A unique identifier to ensure idempotency of the request.
|
|
2024
|
+
#
|
|
2025
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
2026
|
+
# not need to pass this option.**
|
|
2027
|
+
#
|
|
2028
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
2029
|
+
#
|
|
2030
|
+
# @example Request syntax with placeholder values
|
|
2031
|
+
#
|
|
2032
|
+
# resp = client.put_organization_enrollment_configuration({
|
|
2033
|
+
# target: { # required
|
|
2034
|
+
# account_id: "AccountId",
|
|
2035
|
+
# organizational_unit_id: "OrganizationalUnitId",
|
|
2036
|
+
# },
|
|
2037
|
+
# organization_rule_mode: "AnyAllowed", # accepts AnyAllowed, NoneAllowed
|
|
2038
|
+
# client_token: "ClientToken",
|
|
2039
|
+
# })
|
|
2040
|
+
#
|
|
2041
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-automation-2025-09-22/PutOrganizationEnrollmentConfiguration AWS API Documentation
|
|
2042
|
+
#
|
|
2043
|
+
# @overload put_organization_enrollment_configuration(params = {})
|
|
2044
|
+
# @param [Hash] params ({})
|
|
2045
|
+
def put_organization_enrollment_configuration(params = {}, options = {})
|
|
2046
|
+
req = build_request(:put_organization_enrollment_configuration, params)
|
|
2047
|
+
req.send_request(options)
|
|
2048
|
+
end
|
|
2049
|
+
|
|
1760
2050
|
# Initiates a rollback for a completed automation event.
|
|
1761
2051
|
#
|
|
1762
|
-
# <note markdown="1"> Management accounts and delegated administrators can
|
|
1763
|
-
# rollback for events belonging to
|
|
1764
|
-
#
|
|
2052
|
+
# <note markdown="1"> Management accounts and delegated administrators can initiate a
|
|
2053
|
+
# rollback for events belonging to member accounts that are associated
|
|
2054
|
+
# using `AssociateAccounts` or have an applicable organization
|
|
2055
|
+
# enrollment configuration with `organizationRuleMode` set to
|
|
2056
|
+
# `AnyAllowed`.
|
|
1765
2057
|
#
|
|
1766
2058
|
# </note>
|
|
1767
2059
|
#
|
|
@@ -1805,9 +2097,10 @@ module Aws::ComputeOptimizerAutomation
|
|
|
1805
2097
|
# Initiates a one-time, on-demand automation for the specified
|
|
1806
2098
|
# recommended action.
|
|
1807
2099
|
#
|
|
1808
|
-
# <note markdown="1"> Management accounts and delegated administrators can
|
|
1809
|
-
# recommended actions for
|
|
1810
|
-
#
|
|
2100
|
+
# <note markdown="1"> Management accounts and delegated administrators can initiate
|
|
2101
|
+
# recommended actions for member accounts that are associated using
|
|
2102
|
+
# `AssociateAccounts` or have an applicable organization enrollment
|
|
2103
|
+
# configuration with `organizationRuleMode` set to `AnyAllowed`.
|
|
1811
2104
|
#
|
|
1812
2105
|
# </note>
|
|
1813
2106
|
#
|
|
@@ -2017,6 +2310,9 @@ module Aws::ComputeOptimizerAutomation
|
|
|
2017
2310
|
# organization_configuration: {
|
|
2018
2311
|
# rule_apply_order: "BeforeAccountRules", # accepts BeforeAccountRules, AfterAccountRules
|
|
2019
2312
|
# account_ids: ["AccountId"],
|
|
2313
|
+
# organizational_unit_ids: ["OrganizationalUnitId"],
|
|
2314
|
+
# excluded_organizational_unit_ids: ["OrganizationalUnitId"],
|
|
2315
|
+
# excluded_account_ids: ["AccountId"],
|
|
2020
2316
|
# },
|
|
2021
2317
|
# priority: "String",
|
|
2022
2318
|
# recommended_action_types: ["SnapshotAndDeleteUnattachedEbsVolume"], # accepts SnapshotAndDeleteUnattachedEbsVolume, UpgradeEbsVolumeType
|
|
@@ -2090,6 +2386,12 @@ module Aws::ComputeOptimizerAutomation
|
|
|
2090
2386
|
# resp.organization_configuration.rule_apply_order #=> String, one of "BeforeAccountRules", "AfterAccountRules"
|
|
2091
2387
|
# resp.organization_configuration.account_ids #=> Array
|
|
2092
2388
|
# resp.organization_configuration.account_ids[0] #=> String
|
|
2389
|
+
# resp.organization_configuration.organizational_unit_ids #=> Array
|
|
2390
|
+
# resp.organization_configuration.organizational_unit_ids[0] #=> String
|
|
2391
|
+
# resp.organization_configuration.excluded_organizational_unit_ids #=> Array
|
|
2392
|
+
# resp.organization_configuration.excluded_organizational_unit_ids[0] #=> String
|
|
2393
|
+
# resp.organization_configuration.excluded_account_ids #=> Array
|
|
2394
|
+
# resp.organization_configuration.excluded_account_ids[0] #=> String
|
|
2093
2395
|
# resp.priority #=> String
|
|
2094
2396
|
# resp.recommended_action_types #=> Array
|
|
2095
2397
|
# resp.recommended_action_types[0] #=> String, one of "SnapshotAndDeleteUnattachedEbsVolume", "UpgradeEbsVolumeType"
|
|
@@ -2156,13 +2458,16 @@ module Aws::ComputeOptimizerAutomation
|
|
|
2156
2458
|
# run. You must wait at least 24 hours after opting out to opt in
|
|
2157
2459
|
# again.
|
|
2158
2460
|
#
|
|
2159
|
-
# <note markdown="1"> The `Pending` and `Failed` options
|
|
2461
|
+
# <note markdown="1"> The `Pending` and `Failed` options can't be used to update the
|
|
2160
2462
|
# enrollment status of an account. They are returned in the response of
|
|
2161
2463
|
# a request to update the enrollment status of an account.
|
|
2162
2464
|
#
|
|
2163
|
-
# If you are a member account,
|
|
2164
|
-
#
|
|
2165
|
-
#
|
|
2465
|
+
# If you are a member account, you can't disable Automation while an
|
|
2466
|
+
# organization enrollment configuration applies. If no organization
|
|
2467
|
+
# enrollment configuration applies, you also can't disable Automation
|
|
2468
|
+
# while your organization rule mode is `AnyAllowed`. Ask your
|
|
2469
|
+
# administrator to delete the organization enrollment configuration or
|
|
2470
|
+
# disassociate your account, as applicable.
|
|
2166
2471
|
#
|
|
2167
2472
|
# </note>
|
|
2168
2473
|
#
|
|
@@ -2220,7 +2525,7 @@ module Aws::ComputeOptimizerAutomation
|
|
|
2220
2525
|
tracer: tracer
|
|
2221
2526
|
)
|
|
2222
2527
|
context[:gem_name] = 'aws-sdk-computeoptimizerautomation'
|
|
2223
|
-
context[:gem_version] = '1.
|
|
2528
|
+
context[:gem_version] = '1.26.0'
|
|
2224
2529
|
Seahorse::Client::Request.new(handlers, context)
|
|
2225
2530
|
end
|
|
2226
2531
|
|