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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -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 +1 -1
|
@@ -55,7 +55,7 @@ module Aws::ComputeOptimizerAutomation
|
|
|
55
55
|
autoload :EndpointProvider, 'aws-sdk-computeoptimizerautomation/endpoint_provider'
|
|
56
56
|
autoload :Endpoints, 'aws-sdk-computeoptimizerautomation/endpoints'
|
|
57
57
|
|
|
58
|
-
GEM_VERSION = '1.
|
|
58
|
+
GEM_VERSION = '1.26.0'
|
|
59
59
|
|
|
60
60
|
end
|
|
61
61
|
|
data/sig/client.rbs
CHANGED
|
@@ -116,7 +116,10 @@ module Aws
|
|
|
116
116
|
rule_type: ("OrganizationRule" | "AccountRule"),
|
|
117
117
|
?organization_configuration: {
|
|
118
118
|
rule_apply_order: ("BeforeAccountRules" | "AfterAccountRules")?,
|
|
119
|
-
account_ids: Array[::String]
|
|
119
|
+
account_ids: Array[::String]?,
|
|
120
|
+
organizational_unit_ids: Array[::String]?,
|
|
121
|
+
excluded_organizational_unit_ids: Array[::String]?,
|
|
122
|
+
excluded_account_ids: Array[::String]?
|
|
120
123
|
},
|
|
121
124
|
?priority: ::String,
|
|
122
125
|
recommended_action_types: Array[("SnapshotAndDeleteUnattachedEbsVolume" | "UpgradeEbsVolumeType")],
|
|
@@ -148,6 +151,20 @@ module Aws
|
|
|
148
151
|
) -> _DeleteAutomationRuleResponseSuccess
|
|
149
152
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteAutomationRuleResponseSuccess
|
|
150
153
|
|
|
154
|
+
interface _DeleteOrganizationEnrollmentConfigurationResponseSuccess
|
|
155
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DeleteOrganizationEnrollmentConfigurationResponse]
|
|
156
|
+
end
|
|
157
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ComputeOptimizerAutomation/Client.html#delete_organization_enrollment_configuration-instance_method
|
|
158
|
+
def delete_organization_enrollment_configuration: (
|
|
159
|
+
target: {
|
|
160
|
+
account_id: ::String?,
|
|
161
|
+
organizational_unit_id: ::String?
|
|
162
|
+
},
|
|
163
|
+
configuration_types: Array[("OrganizationRuleMode")],
|
|
164
|
+
?client_token: ::String
|
|
165
|
+
) -> _DeleteOrganizationEnrollmentConfigurationResponseSuccess
|
|
166
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteOrganizationEnrollmentConfigurationResponseSuccess
|
|
167
|
+
|
|
151
168
|
interface _DisassociateAccountsResponseSuccess
|
|
152
169
|
include ::Seahorse::Client::_ResponseSuccess[Types::DisassociateAccountsResponse]
|
|
153
170
|
def account_ids: () -> ::Array[::String]
|
|
@@ -215,6 +232,7 @@ module Aws
|
|
|
215
232
|
def status_reason: () -> ::String
|
|
216
233
|
def organization_rule_mode: () -> ("AnyAllowed" | "NoneAllowed")
|
|
217
234
|
def last_updated_timestamp: () -> ::Time
|
|
235
|
+
def organization_enrollment_configuration_status: () -> ("Active" | "Inactive")
|
|
218
236
|
end
|
|
219
237
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ComputeOptimizerAutomation/Client.html#get_enrollment_configuration-instance_method
|
|
220
238
|
def get_enrollment_configuration: (
|
|
@@ -259,6 +277,7 @@ module Aws
|
|
|
259
277
|
values: Array[::String]
|
|
260
278
|
}
|
|
261
279
|
],
|
|
280
|
+
?organizational_unit_ids: Array[::String],
|
|
262
281
|
?start_date_inclusive: ::String,
|
|
263
282
|
?end_date_exclusive: ::String,
|
|
264
283
|
?max_results: ::Integer,
|
|
@@ -279,6 +298,7 @@ module Aws
|
|
|
279
298
|
values: Array[::String]
|
|
280
299
|
}
|
|
281
300
|
],
|
|
301
|
+
?organizational_unit_ids: Array[::String],
|
|
282
302
|
?start_time_inclusive: ::Time,
|
|
283
303
|
?end_time_exclusive: ::Time,
|
|
284
304
|
?max_results: ::Integer,
|
|
@@ -295,7 +315,10 @@ module Aws
|
|
|
295
315
|
def list_automation_rule_preview: (
|
|
296
316
|
rule_type: ("OrganizationRule" | "AccountRule"),
|
|
297
317
|
?organization_scope: {
|
|
298
|
-
account_ids: Array[::String]
|
|
318
|
+
account_ids: Array[::String]?,
|
|
319
|
+
organizational_unit_ids: Array[::String]?,
|
|
320
|
+
excluded_organizational_unit_ids: Array[::String]?,
|
|
321
|
+
excluded_account_ids: Array[::String]?
|
|
299
322
|
},
|
|
300
323
|
recommended_action_types: Array[("SnapshotAndDeleteUnattachedEbsVolume" | "UpgradeEbsVolumeType")],
|
|
301
324
|
?criteria: Params::criteria,
|
|
@@ -313,7 +336,10 @@ module Aws
|
|
|
313
336
|
def list_automation_rule_preview_summaries: (
|
|
314
337
|
rule_type: ("OrganizationRule" | "AccountRule"),
|
|
315
338
|
?organization_scope: {
|
|
316
|
-
account_ids: Array[::String]
|
|
339
|
+
account_ids: Array[::String]?,
|
|
340
|
+
organizational_unit_ids: Array[::String]?,
|
|
341
|
+
excluded_organizational_unit_ids: Array[::String]?,
|
|
342
|
+
excluded_account_ids: Array[::String]?
|
|
317
343
|
},
|
|
318
344
|
recommended_action_types: Array[("SnapshotAndDeleteUnattachedEbsVolume" | "UpgradeEbsVolumeType")],
|
|
319
345
|
?criteria: Params::criteria,
|
|
@@ -340,6 +366,32 @@ module Aws
|
|
|
340
366
|
) -> _ListAutomationRulesResponseSuccess
|
|
341
367
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAutomationRulesResponseSuccess
|
|
342
368
|
|
|
369
|
+
interface _ListOrganizationEnrollmentConfigurationsResponseSuccess
|
|
370
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListOrganizationEnrollmentConfigurationsResponse]
|
|
371
|
+
def organization_enrollment_configurations: () -> ::Array[Types::OrganizationEnrollmentConfiguration]
|
|
372
|
+
def next_token: () -> ::String
|
|
373
|
+
end
|
|
374
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ComputeOptimizerAutomation/Client.html#list_organization_enrollment_configurations-instance_method
|
|
375
|
+
def list_organization_enrollment_configurations: (
|
|
376
|
+
?target_type: ("Account" | "OrganizationalUnit"),
|
|
377
|
+
?max_results: ::Integer,
|
|
378
|
+
?next_token: ::String
|
|
379
|
+
) -> _ListOrganizationEnrollmentConfigurationsResponseSuccess
|
|
380
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListOrganizationEnrollmentConfigurationsResponseSuccess
|
|
381
|
+
|
|
382
|
+
interface _ListOrganizationalUnitsResponseSuccess
|
|
383
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListOrganizationalUnitsResponse]
|
|
384
|
+
def organizational_units: () -> ::Array[Types::OrganizationalUnitInfo]
|
|
385
|
+
def next_token: () -> ::String
|
|
386
|
+
end
|
|
387
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ComputeOptimizerAutomation/Client.html#list_organizational_units-instance_method
|
|
388
|
+
def list_organizational_units: (
|
|
389
|
+
?organizational_unit_ids: Array[::String],
|
|
390
|
+
?max_results: ::Integer,
|
|
391
|
+
?next_token: ::String
|
|
392
|
+
) -> _ListOrganizationalUnitsResponseSuccess
|
|
393
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListOrganizationalUnitsResponseSuccess
|
|
394
|
+
|
|
343
395
|
interface _ListRecommendedActionSummariesResponseSuccess
|
|
344
396
|
include ::Seahorse::Client::_ResponseSuccess[Types::ListRecommendedActionSummariesResponse]
|
|
345
397
|
def recommended_action_summaries: () -> ::Array[Types::RecommendedActionSummary]
|
|
@@ -353,6 +405,7 @@ module Aws
|
|
|
353
405
|
values: Array[::String]
|
|
354
406
|
}
|
|
355
407
|
],
|
|
408
|
+
?organizational_unit_ids: Array[::String],
|
|
356
409
|
?max_results: ::Integer,
|
|
357
410
|
?next_token: ::String
|
|
358
411
|
) -> _ListRecommendedActionSummariesResponseSuccess
|
|
@@ -371,6 +424,7 @@ module Aws
|
|
|
371
424
|
values: Array[::String]
|
|
372
425
|
}
|
|
373
426
|
],
|
|
427
|
+
?organizational_unit_ids: Array[::String],
|
|
374
428
|
?max_results: ::Integer,
|
|
375
429
|
?next_token: ::String
|
|
376
430
|
) -> _ListRecommendedActionsResponseSuccess
|
|
@@ -386,6 +440,20 @@ module Aws
|
|
|
386
440
|
) -> _ListTagsForResourceResponseSuccess
|
|
387
441
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTagsForResourceResponseSuccess
|
|
388
442
|
|
|
443
|
+
interface _PutOrganizationEnrollmentConfigurationResponseSuccess
|
|
444
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::PutOrganizationEnrollmentConfigurationResponse]
|
|
445
|
+
end
|
|
446
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ComputeOptimizerAutomation/Client.html#put_organization_enrollment_configuration-instance_method
|
|
447
|
+
def put_organization_enrollment_configuration: (
|
|
448
|
+
target: {
|
|
449
|
+
account_id: ::String?,
|
|
450
|
+
organizational_unit_id: ::String?
|
|
451
|
+
},
|
|
452
|
+
?organization_rule_mode: ("AnyAllowed" | "NoneAllowed"),
|
|
453
|
+
?client_token: ::String
|
|
454
|
+
) -> _PutOrganizationEnrollmentConfigurationResponseSuccess
|
|
455
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutOrganizationEnrollmentConfigurationResponseSuccess
|
|
456
|
+
|
|
389
457
|
interface _RollbackAutomationEventResponseSuccess
|
|
390
458
|
include ::Seahorse::Client::_ResponseSuccess[Types::RollbackAutomationEventResponse]
|
|
391
459
|
def event_id: () -> ::String
|
|
@@ -465,7 +533,10 @@ module Aws
|
|
|
465
533
|
?rule_type: ("OrganizationRule" | "AccountRule"),
|
|
466
534
|
?organization_configuration: {
|
|
467
535
|
rule_apply_order: ("BeforeAccountRules" | "AfterAccountRules")?,
|
|
468
|
-
account_ids: Array[::String]
|
|
536
|
+
account_ids: Array[::String]?,
|
|
537
|
+
organizational_unit_ids: Array[::String]?,
|
|
538
|
+
excluded_organizational_unit_ids: Array[::String]?,
|
|
539
|
+
excluded_account_ids: Array[::String]?
|
|
469
540
|
},
|
|
470
541
|
?priority: ::String,
|
|
471
542
|
?recommended_action_types: Array[("SnapshotAndDeleteUnattachedEbsVolume" | "UpgradeEbsVolumeType")],
|
data/sig/errors.rbs
CHANGED
data/sig/types.rbs
CHANGED
|
@@ -17,6 +17,7 @@ module Aws::ComputeOptimizerAutomation
|
|
|
17
17
|
attr_accessor account_id: ::String
|
|
18
18
|
attr_accessor status: ("Active" | "Inactive" | "Pending" | "Failed")
|
|
19
19
|
attr_accessor organization_rule_mode: ("AnyAllowed" | "NoneAllowed")
|
|
20
|
+
attr_accessor organization_rule_mode_source: Types::OrganizationRuleModeSource
|
|
20
21
|
attr_accessor status_reason: ::String
|
|
21
22
|
attr_accessor last_updated_timestamp: ::Time
|
|
22
23
|
SENSITIVE: []
|
|
@@ -97,6 +98,11 @@ module Aws::ComputeOptimizerAutomation
|
|
|
97
98
|
SENSITIVE: []
|
|
98
99
|
end
|
|
99
100
|
|
|
101
|
+
class ConflictException
|
|
102
|
+
attr_accessor message: ::String
|
|
103
|
+
SENSITIVE: []
|
|
104
|
+
end
|
|
105
|
+
|
|
100
106
|
class CreateAutomationRuleRequest
|
|
101
107
|
attr_accessor name: ::String
|
|
102
108
|
attr_accessor description: ::String
|
|
@@ -152,6 +158,16 @@ module Aws::ComputeOptimizerAutomation
|
|
|
152
158
|
class DeleteAutomationRuleResponse < Aws::EmptyStructure
|
|
153
159
|
end
|
|
154
160
|
|
|
161
|
+
class DeleteOrganizationEnrollmentConfigurationRequest
|
|
162
|
+
attr_accessor target: Types::OrganizationTarget
|
|
163
|
+
attr_accessor configuration_types: ::Array[("OrganizationRuleMode")]
|
|
164
|
+
attr_accessor client_token: ::String
|
|
165
|
+
SENSITIVE: []
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
class DeleteOrganizationEnrollmentConfigurationResponse < Aws::EmptyStructure
|
|
169
|
+
end
|
|
170
|
+
|
|
155
171
|
class DisassociateAccountsRequest
|
|
156
172
|
attr_accessor account_ids: ::Array[::String]
|
|
157
173
|
attr_accessor client_token: ::String
|
|
@@ -259,6 +275,7 @@ module Aws::ComputeOptimizerAutomation
|
|
|
259
275
|
attr_accessor status_reason: ::String
|
|
260
276
|
attr_accessor organization_rule_mode: ("AnyAllowed" | "NoneAllowed")
|
|
261
277
|
attr_accessor last_updated_timestamp: ::Time
|
|
278
|
+
attr_accessor organization_enrollment_configuration_status: ("Active" | "Inactive")
|
|
262
279
|
SENSITIVE: []
|
|
263
280
|
end
|
|
264
281
|
|
|
@@ -315,6 +332,7 @@ module Aws::ComputeOptimizerAutomation
|
|
|
315
332
|
|
|
316
333
|
class ListAutomationEventSummariesRequest
|
|
317
334
|
attr_accessor filters: ::Array[Types::AutomationEventFilter]
|
|
335
|
+
attr_accessor organizational_unit_ids: ::Array[::String]
|
|
318
336
|
attr_accessor start_date_inclusive: ::String
|
|
319
337
|
attr_accessor end_date_exclusive: ::String
|
|
320
338
|
attr_accessor max_results: ::Integer
|
|
@@ -330,6 +348,7 @@ module Aws::ComputeOptimizerAutomation
|
|
|
330
348
|
|
|
331
349
|
class ListAutomationEventsRequest
|
|
332
350
|
attr_accessor filters: ::Array[Types::AutomationEventFilter]
|
|
351
|
+
attr_accessor organizational_unit_ids: ::Array[::String]
|
|
333
352
|
attr_accessor start_time_inclusive: ::Time
|
|
334
353
|
attr_accessor end_time_exclusive: ::Time
|
|
335
354
|
attr_accessor max_results: ::Integer
|
|
@@ -388,8 +407,35 @@ module Aws::ComputeOptimizerAutomation
|
|
|
388
407
|
SENSITIVE: []
|
|
389
408
|
end
|
|
390
409
|
|
|
410
|
+
class ListOrganizationEnrollmentConfigurationsRequest
|
|
411
|
+
attr_accessor target_type: ("Account" | "OrganizationalUnit")
|
|
412
|
+
attr_accessor max_results: ::Integer
|
|
413
|
+
attr_accessor next_token: ::String
|
|
414
|
+
SENSITIVE: []
|
|
415
|
+
end
|
|
416
|
+
|
|
417
|
+
class ListOrganizationEnrollmentConfigurationsResponse
|
|
418
|
+
attr_accessor organization_enrollment_configurations: ::Array[Types::OrganizationEnrollmentConfiguration]
|
|
419
|
+
attr_accessor next_token: ::String
|
|
420
|
+
SENSITIVE: []
|
|
421
|
+
end
|
|
422
|
+
|
|
423
|
+
class ListOrganizationalUnitsRequest
|
|
424
|
+
attr_accessor organizational_unit_ids: ::Array[::String]
|
|
425
|
+
attr_accessor max_results: ::Integer
|
|
426
|
+
attr_accessor next_token: ::String
|
|
427
|
+
SENSITIVE: []
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
class ListOrganizationalUnitsResponse
|
|
431
|
+
attr_accessor organizational_units: ::Array[Types::OrganizationalUnitInfo]
|
|
432
|
+
attr_accessor next_token: ::String
|
|
433
|
+
SENSITIVE: []
|
|
434
|
+
end
|
|
435
|
+
|
|
391
436
|
class ListRecommendedActionSummariesRequest
|
|
392
437
|
attr_accessor filters: ::Array[Types::RecommendedActionFilter]
|
|
438
|
+
attr_accessor organizational_unit_ids: ::Array[::String]
|
|
393
439
|
attr_accessor max_results: ::Integer
|
|
394
440
|
attr_accessor next_token: ::String
|
|
395
441
|
SENSITIVE: []
|
|
@@ -403,6 +449,7 @@ module Aws::ComputeOptimizerAutomation
|
|
|
403
449
|
|
|
404
450
|
class ListRecommendedActionsRequest
|
|
405
451
|
attr_accessor filters: ::Array[Types::RecommendedActionFilter]
|
|
452
|
+
attr_accessor organizational_unit_ids: ::Array[::String]
|
|
406
453
|
attr_accessor max_results: ::Integer
|
|
407
454
|
attr_accessor next_token: ::String
|
|
408
455
|
SENSITIVE: []
|
|
@@ -437,11 +484,52 @@ module Aws::ComputeOptimizerAutomation
|
|
|
437
484
|
class OrganizationConfiguration
|
|
438
485
|
attr_accessor rule_apply_order: ("BeforeAccountRules" | "AfterAccountRules")
|
|
439
486
|
attr_accessor account_ids: ::Array[::String]
|
|
487
|
+
attr_accessor organizational_unit_ids: ::Array[::String]
|
|
488
|
+
attr_accessor excluded_organizational_unit_ids: ::Array[::String]
|
|
489
|
+
attr_accessor excluded_account_ids: ::Array[::String]
|
|
490
|
+
SENSITIVE: []
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
class OrganizationEnrollmentConfiguration
|
|
494
|
+
attr_accessor target_id: ::String
|
|
495
|
+
attr_accessor target_type: ("Account" | "OrganizationalUnit")
|
|
496
|
+
attr_accessor organization_rule_mode: ("AnyAllowed" | "NoneAllowed")
|
|
497
|
+
SENSITIVE: []
|
|
498
|
+
end
|
|
499
|
+
|
|
500
|
+
class OrganizationRuleModeSource
|
|
501
|
+
attr_accessor source_type: ("Applied" | "Inherited" | "Direct" | "Default")
|
|
502
|
+
attr_accessor source_target_id: ::String
|
|
440
503
|
SENSITIVE: []
|
|
441
504
|
end
|
|
442
505
|
|
|
443
506
|
class OrganizationScope
|
|
444
507
|
attr_accessor account_ids: ::Array[::String]
|
|
508
|
+
attr_accessor organizational_unit_ids: ::Array[::String]
|
|
509
|
+
attr_accessor excluded_organizational_unit_ids: ::Array[::String]
|
|
510
|
+
attr_accessor excluded_account_ids: ::Array[::String]
|
|
511
|
+
SENSITIVE: []
|
|
512
|
+
end
|
|
513
|
+
|
|
514
|
+
class OrganizationTarget
|
|
515
|
+
attr_accessor account_id: ::String
|
|
516
|
+
attr_accessor organizational_unit_id: ::String
|
|
517
|
+
attr_accessor unknown: untyped
|
|
518
|
+
SENSITIVE: []
|
|
519
|
+
|
|
520
|
+
class AccountId < OrganizationTarget
|
|
521
|
+
end
|
|
522
|
+
class OrganizationalUnitId < OrganizationTarget
|
|
523
|
+
end
|
|
524
|
+
class Unknown < OrganizationTarget
|
|
525
|
+
end
|
|
526
|
+
end
|
|
527
|
+
|
|
528
|
+
class OrganizationalUnitInfo
|
|
529
|
+
attr_accessor organizational_unit_id: ::String
|
|
530
|
+
attr_accessor auto_enroll_member_accounts: ("All" | "None")
|
|
531
|
+
attr_accessor organization_rule_mode: ("AnyAllowed" | "NoneAllowed")
|
|
532
|
+
attr_accessor organization_rule_mode_source: Types::OrganizationRuleModeSource
|
|
445
533
|
SENSITIVE: []
|
|
446
534
|
end
|
|
447
535
|
|
|
@@ -470,6 +558,16 @@ module Aws::ComputeOptimizerAutomation
|
|
|
470
558
|
SENSITIVE: []
|
|
471
559
|
end
|
|
472
560
|
|
|
561
|
+
class PutOrganizationEnrollmentConfigurationRequest
|
|
562
|
+
attr_accessor target: Types::OrganizationTarget
|
|
563
|
+
attr_accessor organization_rule_mode: ("AnyAllowed" | "NoneAllowed")
|
|
564
|
+
attr_accessor client_token: ::String
|
|
565
|
+
SENSITIVE: []
|
|
566
|
+
end
|
|
567
|
+
|
|
568
|
+
class PutOrganizationEnrollmentConfigurationResponse < Aws::EmptyStructure
|
|
569
|
+
end
|
|
570
|
+
|
|
473
571
|
class RecommendedAction
|
|
474
572
|
attr_accessor recommended_action_id: ::String
|
|
475
573
|
attr_accessor resource_arn: ::String
|