aws-sdk-computeoptimizerautomation 1.25.0 → 1.27.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
|
@@ -21,6 +21,7 @@ module Aws::ComputeOptimizerAutomation
|
|
|
21
21
|
AccountInfoList = Shapes::ListShape.new(name: 'AccountInfoList')
|
|
22
22
|
AssociateAccountsRequest = Shapes::StructureShape.new(name: 'AssociateAccountsRequest')
|
|
23
23
|
AssociateAccountsResponse = Shapes::StructureShape.new(name: 'AssociateAccountsResponse')
|
|
24
|
+
AutoEnrollMemberAccounts = Shapes::StringShape.new(name: 'AutoEnrollMemberAccounts')
|
|
24
25
|
AutomationEvent = Shapes::StructureShape.new(name: 'AutomationEvent')
|
|
25
26
|
AutomationEventFilter = Shapes::StructureShape.new(name: 'AutomationEventFilter')
|
|
26
27
|
AutomationEventFilterList = Shapes::ListShape.new(name: 'AutomationEventFilterList')
|
|
@@ -36,11 +37,14 @@ module Aws::ComputeOptimizerAutomation
|
|
|
36
37
|
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
|
37
38
|
ClientToken = Shapes::StringShape.new(name: 'ClientToken')
|
|
38
39
|
ComparisonOperator = Shapes::StringShape.new(name: 'ComparisonOperator')
|
|
40
|
+
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
|
39
41
|
CreateAutomationRuleRequest = Shapes::StructureShape.new(name: 'CreateAutomationRuleRequest')
|
|
40
42
|
CreateAutomationRuleResponse = Shapes::StructureShape.new(name: 'CreateAutomationRuleResponse')
|
|
41
43
|
Criteria = Shapes::StructureShape.new(name: 'Criteria')
|
|
42
44
|
DeleteAutomationRuleRequest = Shapes::StructureShape.new(name: 'DeleteAutomationRuleRequest')
|
|
43
45
|
DeleteAutomationRuleResponse = Shapes::StructureShape.new(name: 'DeleteAutomationRuleResponse')
|
|
46
|
+
DeleteOrganizationEnrollmentConfigurationRequest = Shapes::StructureShape.new(name: 'DeleteOrganizationEnrollmentConfigurationRequest')
|
|
47
|
+
DeleteOrganizationEnrollmentConfigurationResponse = Shapes::StructureShape.new(name: 'DeleteOrganizationEnrollmentConfigurationResponse')
|
|
44
48
|
DisassociateAccountsRequest = Shapes::StructureShape.new(name: 'DisassociateAccountsRequest')
|
|
45
49
|
DisassociateAccountsResponse = Shapes::StructureShape.new(name: 'DisassociateAccountsResponse')
|
|
46
50
|
Double = Shapes::FloatShape.new(name: 'Double')
|
|
@@ -94,6 +98,12 @@ module Aws::ComputeOptimizerAutomation
|
|
|
94
98
|
ListAutomationRulesRequest = Shapes::StructureShape.new(name: 'ListAutomationRulesRequest')
|
|
95
99
|
ListAutomationRulesRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListAutomationRulesRequestMaxResultsInteger')
|
|
96
100
|
ListAutomationRulesResponse = Shapes::StructureShape.new(name: 'ListAutomationRulesResponse')
|
|
101
|
+
ListOrganizationEnrollmentConfigurationsRequest = Shapes::StructureShape.new(name: 'ListOrganizationEnrollmentConfigurationsRequest')
|
|
102
|
+
ListOrganizationEnrollmentConfigurationsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListOrganizationEnrollmentConfigurationsRequestMaxResultsInteger')
|
|
103
|
+
ListOrganizationEnrollmentConfigurationsResponse = Shapes::StructureShape.new(name: 'ListOrganizationEnrollmentConfigurationsResponse')
|
|
104
|
+
ListOrganizationalUnitsRequest = Shapes::StructureShape.new(name: 'ListOrganizationalUnitsRequest')
|
|
105
|
+
ListOrganizationalUnitsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListOrganizationalUnitsRequestMaxResultsInteger')
|
|
106
|
+
ListOrganizationalUnitsResponse = Shapes::StructureShape.new(name: 'ListOrganizationalUnitsResponse')
|
|
97
107
|
ListRecommendedActionSummariesRequest = Shapes::StructureShape.new(name: 'ListRecommendedActionSummariesRequest')
|
|
98
108
|
ListRecommendedActionSummariesRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListRecommendedActionSummariesRequestMaxResultsInteger')
|
|
99
109
|
ListRecommendedActionSummariesResponse = Shapes::StructureShape.new(name: 'ListRecommendedActionSummariesResponse')
|
|
@@ -108,12 +118,28 @@ module Aws::ComputeOptimizerAutomation
|
|
|
108
118
|
OptInRequiredException = Shapes::StructureShape.new(name: 'OptInRequiredException')
|
|
109
119
|
OrganizationConfiguration = Shapes::StructureShape.new(name: 'OrganizationConfiguration')
|
|
110
120
|
OrganizationConfigurationAccountIds = Shapes::ListShape.new(name: 'OrganizationConfigurationAccountIds')
|
|
121
|
+
OrganizationConfigurationOrganizationalUnitIds = Shapes::ListShape.new(name: 'OrganizationConfigurationOrganizationalUnitIds')
|
|
122
|
+
OrganizationEnrollmentConfiguration = Shapes::StructureShape.new(name: 'OrganizationEnrollmentConfiguration')
|
|
123
|
+
OrganizationEnrollmentConfigurationStatus = Shapes::StringShape.new(name: 'OrganizationEnrollmentConfigurationStatus')
|
|
124
|
+
OrganizationEnrollmentConfigurationType = Shapes::StringShape.new(name: 'OrganizationEnrollmentConfigurationType')
|
|
125
|
+
OrganizationEnrollmentConfigurationTypes = Shapes::ListShape.new(name: 'OrganizationEnrollmentConfigurationTypes')
|
|
126
|
+
OrganizationEnrollmentConfigurations = Shapes::ListShape.new(name: 'OrganizationEnrollmentConfigurations')
|
|
111
127
|
OrganizationRuleMode = Shapes::StringShape.new(name: 'OrganizationRuleMode')
|
|
128
|
+
OrganizationRuleModeSource = Shapes::StructureShape.new(name: 'OrganizationRuleModeSource')
|
|
129
|
+
OrganizationRuleModeSourceType = Shapes::StringShape.new(name: 'OrganizationRuleModeSourceType')
|
|
112
130
|
OrganizationScope = Shapes::StructureShape.new(name: 'OrganizationScope')
|
|
131
|
+
OrganizationTarget = Shapes::UnionShape.new(name: 'OrganizationTarget')
|
|
132
|
+
OrganizationTargetType = Shapes::StringShape.new(name: 'OrganizationTargetType')
|
|
133
|
+
OrganizationalUnitId = Shapes::StringShape.new(name: 'OrganizationalUnitId')
|
|
134
|
+
OrganizationalUnitIds = Shapes::ListShape.new(name: 'OrganizationalUnitIds')
|
|
135
|
+
OrganizationalUnitInfo = Shapes::StructureShape.new(name: 'OrganizationalUnitInfo')
|
|
136
|
+
OrganizationalUnitInfoList = Shapes::ListShape.new(name: 'OrganizationalUnitInfoList')
|
|
113
137
|
PreviewResult = Shapes::StructureShape.new(name: 'PreviewResult')
|
|
114
138
|
PreviewResultSummaries = Shapes::ListShape.new(name: 'PreviewResultSummaries')
|
|
115
139
|
PreviewResultSummary = Shapes::StructureShape.new(name: 'PreviewResultSummary')
|
|
116
140
|
PreviewResults = Shapes::ListShape.new(name: 'PreviewResults')
|
|
141
|
+
PutOrganizationEnrollmentConfigurationRequest = Shapes::StructureShape.new(name: 'PutOrganizationEnrollmentConfigurationRequest')
|
|
142
|
+
PutOrganizationEnrollmentConfigurationResponse = Shapes::StructureShape.new(name: 'PutOrganizationEnrollmentConfigurationResponse')
|
|
117
143
|
RecommendedAction = Shapes::StructureShape.new(name: 'RecommendedAction')
|
|
118
144
|
RecommendedActionFilter = Shapes::StructureShape.new(name: 'RecommendedActionFilter')
|
|
119
145
|
RecommendedActionFilterList = Shapes::ListShape.new(name: 'RecommendedActionFilterList')
|
|
@@ -187,6 +213,7 @@ module Aws::ComputeOptimizerAutomation
|
|
|
187
213
|
AccountInfo.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "accountId"))
|
|
188
214
|
AccountInfo.add_member(:status, Shapes::ShapeRef.new(shape: EnrollmentStatus, required: true, location_name: "status"))
|
|
189
215
|
AccountInfo.add_member(:organization_rule_mode, Shapes::ShapeRef.new(shape: OrganizationRuleMode, required: true, location_name: "organizationRuleMode"))
|
|
216
|
+
AccountInfo.add_member(:organization_rule_mode_source, Shapes::ShapeRef.new(shape: OrganizationRuleModeSource, location_name: "organizationRuleModeSource"))
|
|
190
217
|
AccountInfo.add_member(:status_reason, Shapes::ShapeRef.new(shape: String, location_name: "statusReason"))
|
|
191
218
|
AccountInfo.add_member(:last_updated_timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "lastUpdatedTimestamp"))
|
|
192
219
|
AccountInfo.struct_class = Types::AccountInfo
|
|
@@ -264,6 +291,9 @@ module Aws::ComputeOptimizerAutomation
|
|
|
264
291
|
|
|
265
292
|
AutomationRules.member = Shapes::ShapeRef.new(shape: AutomationRule)
|
|
266
293
|
|
|
294
|
+
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
|
295
|
+
ConflictException.struct_class = Types::ConflictException
|
|
296
|
+
|
|
267
297
|
CreateAutomationRuleRequest.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "name"))
|
|
268
298
|
CreateAutomationRuleRequest.add_member(:description, Shapes::ShapeRef.new(shape: RuleDescription, location_name: "description"))
|
|
269
299
|
CreateAutomationRuleRequest.add_member(:rule_type, Shapes::ShapeRef.new(shape: RuleType, required: true, location_name: "ruleType"))
|
|
@@ -310,6 +340,13 @@ module Aws::ComputeOptimizerAutomation
|
|
|
310
340
|
|
|
311
341
|
DeleteAutomationRuleResponse.struct_class = Types::DeleteAutomationRuleResponse
|
|
312
342
|
|
|
343
|
+
DeleteOrganizationEnrollmentConfigurationRequest.add_member(:target, Shapes::ShapeRef.new(shape: OrganizationTarget, required: true, location_name: "target"))
|
|
344
|
+
DeleteOrganizationEnrollmentConfigurationRequest.add_member(:configuration_types, Shapes::ShapeRef.new(shape: OrganizationEnrollmentConfigurationTypes, required: true, location_name: "configurationTypes"))
|
|
345
|
+
DeleteOrganizationEnrollmentConfigurationRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
|
|
346
|
+
DeleteOrganizationEnrollmentConfigurationRequest.struct_class = Types::DeleteOrganizationEnrollmentConfigurationRequest
|
|
347
|
+
|
|
348
|
+
DeleteOrganizationEnrollmentConfigurationResponse.struct_class = Types::DeleteOrganizationEnrollmentConfigurationResponse
|
|
349
|
+
|
|
313
350
|
DisassociateAccountsRequest.add_member(:account_ids, Shapes::ShapeRef.new(shape: AccountIdList, required: true, location_name: "accountIds"))
|
|
314
351
|
DisassociateAccountsRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
|
|
315
352
|
DisassociateAccountsRequest.struct_class = Types::DisassociateAccountsRequest
|
|
@@ -399,6 +436,7 @@ module Aws::ComputeOptimizerAutomation
|
|
|
399
436
|
GetEnrollmentConfigurationResponse.add_member(:status_reason, Shapes::ShapeRef.new(shape: String, location_name: "statusReason"))
|
|
400
437
|
GetEnrollmentConfigurationResponse.add_member(:organization_rule_mode, Shapes::ShapeRef.new(shape: OrganizationRuleMode, location_name: "organizationRuleMode"))
|
|
401
438
|
GetEnrollmentConfigurationResponse.add_member(:last_updated_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastUpdatedTimestamp"))
|
|
439
|
+
GetEnrollmentConfigurationResponse.add_member(:organization_enrollment_configuration_status, Shapes::ShapeRef.new(shape: OrganizationEnrollmentConfigurationStatus, location_name: "organizationEnrollmentConfigurationStatus"))
|
|
402
440
|
GetEnrollmentConfigurationResponse.struct_class = Types::GetEnrollmentConfigurationResponse
|
|
403
441
|
|
|
404
442
|
IdempotencyTokenInUseException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
|
@@ -439,6 +477,7 @@ module Aws::ComputeOptimizerAutomation
|
|
|
439
477
|
ListAutomationEventStepsResponse.struct_class = Types::ListAutomationEventStepsResponse
|
|
440
478
|
|
|
441
479
|
ListAutomationEventSummariesRequest.add_member(:filters, Shapes::ShapeRef.new(shape: AutomationEventFilterList, location_name: "filters"))
|
|
480
|
+
ListAutomationEventSummariesRequest.add_member(:organizational_unit_ids, Shapes::ShapeRef.new(shape: OrganizationalUnitIds, location_name: "organizationalUnitIds"))
|
|
442
481
|
ListAutomationEventSummariesRequest.add_member(:start_date_inclusive, Shapes::ShapeRef.new(shape: String, location_name: "startDateInclusive"))
|
|
443
482
|
ListAutomationEventSummariesRequest.add_member(:end_date_exclusive, Shapes::ShapeRef.new(shape: String, location_name: "endDateExclusive"))
|
|
444
483
|
ListAutomationEventSummariesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListAutomationEventSummariesRequestMaxResultsInteger, location_name: "maxResults"))
|
|
@@ -450,6 +489,7 @@ module Aws::ComputeOptimizerAutomation
|
|
|
450
489
|
ListAutomationEventSummariesResponse.struct_class = Types::ListAutomationEventSummariesResponse
|
|
451
490
|
|
|
452
491
|
ListAutomationEventsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: AutomationEventFilterList, location_name: "filters"))
|
|
492
|
+
ListAutomationEventsRequest.add_member(:organizational_unit_ids, Shapes::ShapeRef.new(shape: OrganizationalUnitIds, location_name: "organizationalUnitIds"))
|
|
453
493
|
ListAutomationEventsRequest.add_member(:start_time_inclusive, Shapes::ShapeRef.new(shape: Timestamp, location_name: "startTimeInclusive"))
|
|
454
494
|
ListAutomationEventsRequest.add_member(:end_time_exclusive, Shapes::ShapeRef.new(shape: Timestamp, location_name: "endTimeExclusive"))
|
|
455
495
|
ListAutomationEventsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListAutomationEventsRequestMaxResultsInteger, location_name: "maxResults"))
|
|
@@ -493,7 +533,26 @@ module Aws::ComputeOptimizerAutomation
|
|
|
493
533
|
ListAutomationRulesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
|
494
534
|
ListAutomationRulesResponse.struct_class = Types::ListAutomationRulesResponse
|
|
495
535
|
|
|
536
|
+
ListOrganizationEnrollmentConfigurationsRequest.add_member(:target_type, Shapes::ShapeRef.new(shape: OrganizationTargetType, location_name: "targetType"))
|
|
537
|
+
ListOrganizationEnrollmentConfigurationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListOrganizationEnrollmentConfigurationsRequestMaxResultsInteger, location_name: "maxResults"))
|
|
538
|
+
ListOrganizationEnrollmentConfigurationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
|
539
|
+
ListOrganizationEnrollmentConfigurationsRequest.struct_class = Types::ListOrganizationEnrollmentConfigurationsRequest
|
|
540
|
+
|
|
541
|
+
ListOrganizationEnrollmentConfigurationsResponse.add_member(:organization_enrollment_configurations, Shapes::ShapeRef.new(shape: OrganizationEnrollmentConfigurations, required: true, location_name: "organizationEnrollmentConfigurations"))
|
|
542
|
+
ListOrganizationEnrollmentConfigurationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
|
543
|
+
ListOrganizationEnrollmentConfigurationsResponse.struct_class = Types::ListOrganizationEnrollmentConfigurationsResponse
|
|
544
|
+
|
|
545
|
+
ListOrganizationalUnitsRequest.add_member(:organizational_unit_ids, Shapes::ShapeRef.new(shape: OrganizationalUnitIds, location_name: "organizationalUnitIds"))
|
|
546
|
+
ListOrganizationalUnitsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListOrganizationalUnitsRequestMaxResultsInteger, location_name: "maxResults"))
|
|
547
|
+
ListOrganizationalUnitsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
|
548
|
+
ListOrganizationalUnitsRequest.struct_class = Types::ListOrganizationalUnitsRequest
|
|
549
|
+
|
|
550
|
+
ListOrganizationalUnitsResponse.add_member(:organizational_units, Shapes::ShapeRef.new(shape: OrganizationalUnitInfoList, required: true, location_name: "organizationalUnits"))
|
|
551
|
+
ListOrganizationalUnitsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
|
552
|
+
ListOrganizationalUnitsResponse.struct_class = Types::ListOrganizationalUnitsResponse
|
|
553
|
+
|
|
496
554
|
ListRecommendedActionSummariesRequest.add_member(:filters, Shapes::ShapeRef.new(shape: RecommendedActionFilterList, location_name: "filters"))
|
|
555
|
+
ListRecommendedActionSummariesRequest.add_member(:organizational_unit_ids, Shapes::ShapeRef.new(shape: OrganizationalUnitIds, location_name: "organizationalUnitIds"))
|
|
497
556
|
ListRecommendedActionSummariesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListRecommendedActionSummariesRequestMaxResultsInteger, location_name: "maxResults"))
|
|
498
557
|
ListRecommendedActionSummariesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
|
499
558
|
ListRecommendedActionSummariesRequest.struct_class = Types::ListRecommendedActionSummariesRequest
|
|
@@ -503,6 +562,7 @@ module Aws::ComputeOptimizerAutomation
|
|
|
503
562
|
ListRecommendedActionSummariesResponse.struct_class = Types::ListRecommendedActionSummariesResponse
|
|
504
563
|
|
|
505
564
|
ListRecommendedActionsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: RecommendedActionFilterList, location_name: "filters"))
|
|
565
|
+
ListRecommendedActionsRequest.add_member(:organizational_unit_ids, Shapes::ShapeRef.new(shape: OrganizationalUnitIds, location_name: "organizationalUnitIds"))
|
|
506
566
|
ListRecommendedActionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListRecommendedActionsRequestMaxResultsInteger, location_name: "maxResults"))
|
|
507
567
|
ListRecommendedActionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
|
508
568
|
ListRecommendedActionsRequest.struct_class = Types::ListRecommendedActionsRequest
|
|
@@ -525,13 +585,52 @@ module Aws::ComputeOptimizerAutomation
|
|
|
525
585
|
|
|
526
586
|
OrganizationConfiguration.add_member(:rule_apply_order, Shapes::ShapeRef.new(shape: RuleApplyOrder, location_name: "ruleApplyOrder"))
|
|
527
587
|
OrganizationConfiguration.add_member(:account_ids, Shapes::ShapeRef.new(shape: OrganizationConfigurationAccountIds, location_name: "accountIds"))
|
|
588
|
+
OrganizationConfiguration.add_member(:organizational_unit_ids, Shapes::ShapeRef.new(shape: OrganizationConfigurationOrganizationalUnitIds, location_name: "organizationalUnitIds"))
|
|
589
|
+
OrganizationConfiguration.add_member(:excluded_organizational_unit_ids, Shapes::ShapeRef.new(shape: OrganizationConfigurationOrganizationalUnitIds, location_name: "excludedOrganizationalUnitIds"))
|
|
590
|
+
OrganizationConfiguration.add_member(:excluded_account_ids, Shapes::ShapeRef.new(shape: OrganizationConfigurationAccountIds, location_name: "excludedAccountIds"))
|
|
528
591
|
OrganizationConfiguration.struct_class = Types::OrganizationConfiguration
|
|
529
592
|
|
|
530
593
|
OrganizationConfigurationAccountIds.member = Shapes::ShapeRef.new(shape: AccountId)
|
|
531
594
|
|
|
595
|
+
OrganizationConfigurationOrganizationalUnitIds.member = Shapes::ShapeRef.new(shape: OrganizationalUnitId)
|
|
596
|
+
|
|
597
|
+
OrganizationEnrollmentConfiguration.add_member(:target_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "targetId"))
|
|
598
|
+
OrganizationEnrollmentConfiguration.add_member(:target_type, Shapes::ShapeRef.new(shape: OrganizationTargetType, required: true, location_name: "targetType"))
|
|
599
|
+
OrganizationEnrollmentConfiguration.add_member(:organization_rule_mode, Shapes::ShapeRef.new(shape: OrganizationRuleMode, location_name: "organizationRuleMode"))
|
|
600
|
+
OrganizationEnrollmentConfiguration.struct_class = Types::OrganizationEnrollmentConfiguration
|
|
601
|
+
|
|
602
|
+
OrganizationEnrollmentConfigurationTypes.member = Shapes::ShapeRef.new(shape: OrganizationEnrollmentConfigurationType)
|
|
603
|
+
|
|
604
|
+
OrganizationEnrollmentConfigurations.member = Shapes::ShapeRef.new(shape: OrganizationEnrollmentConfiguration)
|
|
605
|
+
|
|
606
|
+
OrganizationRuleModeSource.add_member(:source_type, Shapes::ShapeRef.new(shape: OrganizationRuleModeSourceType, required: true, location_name: "sourceType"))
|
|
607
|
+
OrganizationRuleModeSource.add_member(:source_target_id, Shapes::ShapeRef.new(shape: String, location_name: "sourceTargetId"))
|
|
608
|
+
OrganizationRuleModeSource.struct_class = Types::OrganizationRuleModeSource
|
|
609
|
+
|
|
532
610
|
OrganizationScope.add_member(:account_ids, Shapes::ShapeRef.new(shape: OrganizationConfigurationAccountIds, location_name: "accountIds"))
|
|
611
|
+
OrganizationScope.add_member(:organizational_unit_ids, Shapes::ShapeRef.new(shape: OrganizationConfigurationOrganizationalUnitIds, location_name: "organizationalUnitIds"))
|
|
612
|
+
OrganizationScope.add_member(:excluded_organizational_unit_ids, Shapes::ShapeRef.new(shape: OrganizationConfigurationOrganizationalUnitIds, location_name: "excludedOrganizationalUnitIds"))
|
|
613
|
+
OrganizationScope.add_member(:excluded_account_ids, Shapes::ShapeRef.new(shape: OrganizationConfigurationAccountIds, location_name: "excludedAccountIds"))
|
|
533
614
|
OrganizationScope.struct_class = Types::OrganizationScope
|
|
534
615
|
|
|
616
|
+
OrganizationTarget.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "accountId"))
|
|
617
|
+
OrganizationTarget.add_member(:organizational_unit_id, Shapes::ShapeRef.new(shape: OrganizationalUnitId, location_name: "organizationalUnitId"))
|
|
618
|
+
OrganizationTarget.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
619
|
+
OrganizationTarget.add_member_subclass(:account_id, Types::OrganizationTarget::AccountId)
|
|
620
|
+
OrganizationTarget.add_member_subclass(:organizational_unit_id, Types::OrganizationTarget::OrganizationalUnitId)
|
|
621
|
+
OrganizationTarget.add_member_subclass(:unknown, Types::OrganizationTarget::Unknown)
|
|
622
|
+
OrganizationTarget.struct_class = Types::OrganizationTarget
|
|
623
|
+
|
|
624
|
+
OrganizationalUnitIds.member = Shapes::ShapeRef.new(shape: OrganizationalUnitId)
|
|
625
|
+
|
|
626
|
+
OrganizationalUnitInfo.add_member(:organizational_unit_id, Shapes::ShapeRef.new(shape: OrganizationalUnitId, required: true, location_name: "organizationalUnitId"))
|
|
627
|
+
OrganizationalUnitInfo.add_member(:auto_enroll_member_accounts, Shapes::ShapeRef.new(shape: AutoEnrollMemberAccounts, required: true, location_name: "autoEnrollMemberAccounts"))
|
|
628
|
+
OrganizationalUnitInfo.add_member(:organization_rule_mode, Shapes::ShapeRef.new(shape: OrganizationRuleMode, required: true, location_name: "organizationRuleMode"))
|
|
629
|
+
OrganizationalUnitInfo.add_member(:organization_rule_mode_source, Shapes::ShapeRef.new(shape: OrganizationRuleModeSource, required: true, location_name: "organizationRuleModeSource"))
|
|
630
|
+
OrganizationalUnitInfo.struct_class = Types::OrganizationalUnitInfo
|
|
631
|
+
|
|
632
|
+
OrganizationalUnitInfoList.member = Shapes::ShapeRef.new(shape: OrganizationalUnitInfo)
|
|
633
|
+
|
|
535
634
|
PreviewResult.add_member(:recommended_action_id, Shapes::ShapeRef.new(shape: RecommendedActionId, location_name: "recommendedActionId"))
|
|
536
635
|
PreviewResult.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "resourceArn"))
|
|
537
636
|
PreviewResult.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, location_name: "resourceId"))
|
|
@@ -557,6 +656,13 @@ module Aws::ComputeOptimizerAutomation
|
|
|
557
656
|
|
|
558
657
|
PreviewResults.member = Shapes::ShapeRef.new(shape: PreviewResult)
|
|
559
658
|
|
|
659
|
+
PutOrganizationEnrollmentConfigurationRequest.add_member(:target, Shapes::ShapeRef.new(shape: OrganizationTarget, required: true, location_name: "target"))
|
|
660
|
+
PutOrganizationEnrollmentConfigurationRequest.add_member(:organization_rule_mode, Shapes::ShapeRef.new(shape: OrganizationRuleMode, location_name: "organizationRuleMode"))
|
|
661
|
+
PutOrganizationEnrollmentConfigurationRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
|
|
662
|
+
PutOrganizationEnrollmentConfigurationRequest.struct_class = Types::PutOrganizationEnrollmentConfigurationRequest
|
|
663
|
+
|
|
664
|
+
PutOrganizationEnrollmentConfigurationResponse.struct_class = Types::PutOrganizationEnrollmentConfigurationResponse
|
|
665
|
+
|
|
560
666
|
RecommendedAction.add_member(:recommended_action_id, Shapes::ShapeRef.new(shape: RecommendedActionId, location_name: "recommendedActionId"))
|
|
561
667
|
RecommendedAction.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "resourceArn"))
|
|
562
668
|
RecommendedAction.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, location_name: "resourceId"))
|
|
@@ -807,6 +913,24 @@ module Aws::ComputeOptimizerAutomation
|
|
|
807
913
|
o.errors << Shapes::ShapeRef.new(shape: IdempotencyTokenInUseException)
|
|
808
914
|
end)
|
|
809
915
|
|
|
916
|
+
api.add_operation(:delete_organization_enrollment_configuration, Seahorse::Model::Operation.new.tap do |o|
|
|
917
|
+
o.name = "DeleteOrganizationEnrollmentConfiguration"
|
|
918
|
+
o.http_method = "POST"
|
|
919
|
+
o.http_request_uri = "/"
|
|
920
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteOrganizationEnrollmentConfigurationRequest)
|
|
921
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteOrganizationEnrollmentConfigurationResponse)
|
|
922
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
|
923
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
|
924
|
+
o.errors << Shapes::ShapeRef.new(shape: OptInRequiredException)
|
|
925
|
+
o.errors << Shapes::ShapeRef.new(shape: IdempotentParameterMismatchException)
|
|
926
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
927
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
928
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
|
929
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
930
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
|
931
|
+
o.errors << Shapes::ShapeRef.new(shape: IdempotencyTokenInUseException)
|
|
932
|
+
end)
|
|
933
|
+
|
|
810
934
|
api.add_operation(:disassociate_accounts, Seahorse::Model::Operation.new.tap do |o|
|
|
811
935
|
o.name = "DisassociateAccounts"
|
|
812
936
|
o.http_method = "POST"
|
|
@@ -1022,6 +1146,48 @@ module Aws::ComputeOptimizerAutomation
|
|
|
1022
1146
|
)
|
|
1023
1147
|
end)
|
|
1024
1148
|
|
|
1149
|
+
api.add_operation(:list_organization_enrollment_configurations, Seahorse::Model::Operation.new.tap do |o|
|
|
1150
|
+
o.name = "ListOrganizationEnrollmentConfigurations"
|
|
1151
|
+
o.http_method = "POST"
|
|
1152
|
+
o.http_request_uri = "/"
|
|
1153
|
+
o.input = Shapes::ShapeRef.new(shape: ListOrganizationEnrollmentConfigurationsRequest)
|
|
1154
|
+
o.output = Shapes::ShapeRef.new(shape: ListOrganizationEnrollmentConfigurationsResponse)
|
|
1155
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
|
1156
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
|
1157
|
+
o.errors << Shapes::ShapeRef.new(shape: OptInRequiredException)
|
|
1158
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
1159
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
1160
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
1161
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
|
1162
|
+
o[:pager] = Aws::Pager.new(
|
|
1163
|
+
limit_key: "max_results",
|
|
1164
|
+
tokens: {
|
|
1165
|
+
"next_token" => "next_token"
|
|
1166
|
+
}
|
|
1167
|
+
)
|
|
1168
|
+
end)
|
|
1169
|
+
|
|
1170
|
+
api.add_operation(:list_organizational_units, Seahorse::Model::Operation.new.tap do |o|
|
|
1171
|
+
o.name = "ListOrganizationalUnits"
|
|
1172
|
+
o.http_method = "POST"
|
|
1173
|
+
o.http_request_uri = "/"
|
|
1174
|
+
o.input = Shapes::ShapeRef.new(shape: ListOrganizationalUnitsRequest)
|
|
1175
|
+
o.output = Shapes::ShapeRef.new(shape: ListOrganizationalUnitsResponse)
|
|
1176
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
|
1177
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
|
1178
|
+
o.errors << Shapes::ShapeRef.new(shape: OptInRequiredException)
|
|
1179
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
1180
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
1181
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
1182
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
|
1183
|
+
o[:pager] = Aws::Pager.new(
|
|
1184
|
+
limit_key: "max_results",
|
|
1185
|
+
tokens: {
|
|
1186
|
+
"next_token" => "next_token"
|
|
1187
|
+
}
|
|
1188
|
+
)
|
|
1189
|
+
end)
|
|
1190
|
+
|
|
1025
1191
|
api.add_operation(:list_recommended_action_summaries, Seahorse::Model::Operation.new.tap do |o|
|
|
1026
1192
|
o.name = "ListRecommendedActionSummaries"
|
|
1027
1193
|
o.http_method = "POST"
|
|
@@ -1080,6 +1246,24 @@ module Aws::ComputeOptimizerAutomation
|
|
|
1080
1246
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
|
1081
1247
|
end)
|
|
1082
1248
|
|
|
1249
|
+
api.add_operation(:put_organization_enrollment_configuration, Seahorse::Model::Operation.new.tap do |o|
|
|
1250
|
+
o.name = "PutOrganizationEnrollmentConfiguration"
|
|
1251
|
+
o.http_method = "POST"
|
|
1252
|
+
o.http_request_uri = "/"
|
|
1253
|
+
o.input = Shapes::ShapeRef.new(shape: PutOrganizationEnrollmentConfigurationRequest)
|
|
1254
|
+
o.output = Shapes::ShapeRef.new(shape: PutOrganizationEnrollmentConfigurationResponse)
|
|
1255
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
|
1256
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
|
1257
|
+
o.errors << Shapes::ShapeRef.new(shape: OptInRequiredException)
|
|
1258
|
+
o.errors << Shapes::ShapeRef.new(shape: IdempotentParameterMismatchException)
|
|
1259
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
1260
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
1261
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
|
1262
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
1263
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
|
1264
|
+
o.errors << Shapes::ShapeRef.new(shape: IdempotencyTokenInUseException)
|
|
1265
|
+
end)
|
|
1266
|
+
|
|
1083
1267
|
api.add_operation(:rollback_automation_event, Seahorse::Model::Operation.new.tap do |o|
|
|
1084
1268
|
o.name = "RollbackAutomationEvent"
|
|
1085
1269
|
o.http_method = "POST"
|
|
@@ -28,6 +28,7 @@ module Aws::ComputeOptimizerAutomation
|
|
|
28
28
|
#
|
|
29
29
|
# ## Error Classes
|
|
30
30
|
# * {AccessDeniedException}
|
|
31
|
+
# * {ConflictException}
|
|
31
32
|
# * {ForbiddenException}
|
|
32
33
|
# * {IdempotencyTokenInUseException}
|
|
33
34
|
# * {IdempotentParameterMismatchException}
|
|
@@ -61,6 +62,21 @@ module Aws::ComputeOptimizerAutomation
|
|
|
61
62
|
end
|
|
62
63
|
end
|
|
63
64
|
|
|
65
|
+
class ConflictException < ServiceError
|
|
66
|
+
|
|
67
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
68
|
+
# @param [String] message
|
|
69
|
+
# @param [Aws::ComputeOptimizerAutomation::Types::ConflictException] data
|
|
70
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
71
|
+
super(context, message, data)
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# @return [String]
|
|
75
|
+
def message
|
|
76
|
+
@message || @data[:message]
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
|
|
64
80
|
class ForbiddenException < ServiceError
|
|
65
81
|
|
|
66
82
|
# @param [Seahorse::Client::RequestContext] context
|