Class: Aws::ComputeOptimizerAutomation::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::ComputeOptimizerAutomation::Client
- Includes:
- Aws::ClientStubs
- Defined in:
- gems/aws-sdk-computeoptimizerautomation/lib/aws-sdk-computeoptimizerautomation/client.rb
Overview
An API client for ComputeOptimizerAutomation. To construct a client, you need to configure a :region and :credentials.
client = Aws::ComputeOptimizerAutomation::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#associate_accounts(params = {}) ⇒ Types::AssociateAccountsResponse
Associates one or more member accounts with your organization's management account, enabling centralized implementation of optimization actions across those accounts.
-
#create_automation_rule(params = {}) ⇒ Types::CreateAutomationRuleResponse
Creates a new automation rule to apply recommended actions to resources based on specified criteria.
-
#delete_automation_rule(params = {}) ⇒ Struct
Deletes an existing automation rule.
-
#delete_organization_enrollment_configuration(params = {}) ⇒ Struct
Deletes the specified configuration types from an organization enrollment configuration.
-
#disassociate_accounts(params = {}) ⇒ Types::DisassociateAccountsResponse
Disassociates member accounts from your organization's management account, removing centralized automation capabilities.
-
#get_automation_event(params = {}) ⇒ Types::GetAutomationEventResponse
Retrieves details about a specific automation event.
-
#get_automation_rule(params = {}) ⇒ Types::GetAutomationRuleResponse
Retrieves details about a specific automation rule.
-
#get_enrollment_configuration(params = {}) ⇒ Types::GetEnrollmentConfigurationResponse
Retrieves the current enrollment configuration for Compute Optimizer Automation.
-
#list_accounts(params = {}) ⇒ Types::ListAccountsResponse
Lists the accounts in your organization that are enrolled in Compute Optimizer and whether they have enabled Automation.
-
#list_automation_event_steps(params = {}) ⇒ Types::ListAutomationEventStepsResponse
Lists the steps for a specific automation event.
-
#list_automation_event_summaries(params = {}) ⇒ Types::ListAutomationEventSummariesResponse
Provides a summary of automation events based on specified filters.
-
#list_automation_events(params = {}) ⇒ Types::ListAutomationEventsResponse
Lists automation events based on specified filters.
-
#list_automation_rule_preview(params = {}) ⇒ Types::ListAutomationRulePreviewResponse
Returns a preview of the recommended actions that match your Automation rule's configuration and criteria.
-
#list_automation_rule_preview_summaries(params = {}) ⇒ Types::ListAutomationRulePreviewSummariesResponse
Returns a summary of the recommended actions that match your rule preview configuration and criteria.
-
#list_automation_rules(params = {}) ⇒ Types::ListAutomationRulesResponse
Lists the automation rules that match specified filters.
-
#list_organization_enrollment_configurations(params = {}) ⇒ Types::ListOrganizationEnrollmentConfigurationsResponse
Lists the organization enrollment configurations that are stored directly on accounts, organizational units (OUs), and the organization root.
-
#list_organizational_units(params = {}) ⇒ Types::ListOrganizationalUnitsResponse
Lists the organization root and organizational units (OUs), including whether an applicable organization enrollment configuration enables Automation for member accounts and the effective organization rule mode for each root or OU.
-
#list_recommended_action_summaries(params = {}) ⇒ Types::ListRecommendedActionSummariesResponse
Provides a summary of recommended actions based on specified filters.
-
#list_recommended_actions(params = {}) ⇒ Types::ListRecommendedActionsResponse
Lists the recommended actions that match the specified filters.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists the tags for a specified resource.
-
#put_organization_enrollment_configuration(params = {}) ⇒ Struct
Creates or updates an organization enrollment configuration.
-
#rollback_automation_event(params = {}) ⇒ Types::RollbackAutomationEventResponse
Initiates a rollback for a completed automation event.
-
#start_automation_event(params = {}) ⇒ Types::StartAutomationEventResponse
Initiates a one-time, on-demand automation for the specified recommended action.
-
#tag_resource(params = {}) ⇒ Struct
Adds tags to the specified resource.
-
#untag_resource(params = {}) ⇒ Struct
Removes tags from the specified resource.
-
#update_automation_rule(params = {}) ⇒ Types::UpdateAutomationRuleResponse
Updates an existing automation rule.
-
#update_enrollment_configuration(params = {}) ⇒ Types::UpdateEnrollmentConfigurationResponse
Updates your account’s Compute Optimizer Automation enrollment configuration.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from Aws::ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
486 487 488 |
# File 'gems/aws-sdk-computeoptimizerautomation/lib/aws-sdk-computeoptimizerautomation/client.rb', line 486 def initialize(*args) super end |
Instance Method Details
#associate_accounts(params = {}) ⇒ Types::AssociateAccountsResponse
Associates one or more member accounts with your organization's management account, enabling centralized implementation of optimization actions across those accounts. Once associated, the management account (or a delegated administrator) can apply recommended actions to the member account. When you associate a member account, its organization rule mode is automatically set to "Any allowed," which permits the management account to create Automation rules that automatically apply actions to that account. If the member account has not previously enabled the Automation feature, the association process automatically enables it.
Requests that include an account to which an organization enrollment configuration applies are rejected.
545 546 547 548 |
# File 'gems/aws-sdk-computeoptimizerautomation/lib/aws-sdk-computeoptimizerautomation/client.rb', line 545 def associate_accounts(params = {}, = {}) req = build_request(:associate_accounts, params) req.send_request() end |
#create_automation_rule(params = {}) ⇒ Types::CreateAutomationRuleResponse
Creates a new automation rule to apply recommended actions to resources based on specified criteria.
767 768 769 770 |
# File 'gems/aws-sdk-computeoptimizerautomation/lib/aws-sdk-computeoptimizerautomation/client.rb', line 767 def create_automation_rule(params = {}, = {}) req = build_request(:create_automation_rule, params) req.send_request() end |
#delete_automation_rule(params = {}) ⇒ Struct
Deletes an existing automation rule.
800 801 802 803 |
# File 'gems/aws-sdk-computeoptimizerautomation/lib/aws-sdk-computeoptimizerautomation/client.rb', line 800 def delete_automation_rule(params = {}, = {}) req = build_request(:delete_automation_rule, params) req.send_request() end |
#delete_organization_enrollment_configuration(params = {}) ⇒ Struct
Deletes the specified configuration types from an organization enrollment configuration. After deletion, Automation stays enabled for affected accounts and earlier account associations aren't restored. Affected accounts inherit the organization rule mode from the closest parent that has an organization enrollment configuration, or get None allowed if no parent has one.
848 849 850 851 |
# File 'gems/aws-sdk-computeoptimizerautomation/lib/aws-sdk-computeoptimizerautomation/client.rb', line 848 def delete_organization_enrollment_configuration(params = {}, = {}) req = build_request(:delete_organization_enrollment_configuration, params) req.send_request() end |
#disassociate_accounts(params = {}) ⇒ Types::DisassociateAccountsResponse
Disassociates member accounts from your organization's management account, removing centralized automation capabilities. Once disassociated, organization rules no longer apply to the member account, and the management account (or delegated administrator) can't create automation rules for that account.
Requests that include an account to which an organization enrollment configuration applies are rejected.
899 900 901 902 |
# File 'gems/aws-sdk-computeoptimizerautomation/lib/aws-sdk-computeoptimizerautomation/client.rb', line 899 def disassociate_accounts(params = {}, = {}) req = build_request(:disassociate_accounts, params) req.send_request() end |
#get_automation_event(params = {}) ⇒ Types::GetAutomationEventResponse
Retrieves details about a specific automation event.
958 959 960 961 |
# File 'gems/aws-sdk-computeoptimizerautomation/lib/aws-sdk-computeoptimizerautomation/client.rb', line 958 def get_automation_event(params = {}, = {}) req = build_request(:get_automation_event, params) req.send_request() end |
#get_automation_rule(params = {}) ⇒ Types::GetAutomationRuleResponse
Retrieves details about a specific automation rule.
1061 1062 1063 1064 |
# File 'gems/aws-sdk-computeoptimizerautomation/lib/aws-sdk-computeoptimizerautomation/client.rb', line 1061 def get_automation_rule(params = {}, = {}) req = build_request(:get_automation_rule, params) req.send_request() end |
#get_enrollment_configuration(params = {}) ⇒ Types::GetEnrollmentConfigurationResponse
Retrieves the current enrollment configuration for Compute Optimizer Automation.
1089 1090 1091 1092 |
# File 'gems/aws-sdk-computeoptimizerautomation/lib/aws-sdk-computeoptimizerautomation/client.rb', line 1089 def get_enrollment_configuration(params = {}, = {}) req = build_request(:get_enrollment_configuration, params) req.send_request() end |
#list_accounts(params = {}) ⇒ Types::ListAccountsResponse
Lists the accounts in your organization that are enrolled in Compute Optimizer and whether they have enabled Automation.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1138 1139 1140 1141 |
# File 'gems/aws-sdk-computeoptimizerautomation/lib/aws-sdk-computeoptimizerautomation/client.rb', line 1138 def list_accounts(params = {}, = {}) req = build_request(:list_accounts, params) req.send_request() end |
#list_automation_event_steps(params = {}) ⇒ Types::ListAutomationEventStepsResponse
Lists the steps for a specific automation event. You can only list steps for events created within the past year.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1192 1193 1194 1195 |
# File 'gems/aws-sdk-computeoptimizerautomation/lib/aws-sdk-computeoptimizerautomation/client.rb', line 1192 def list_automation_event_steps(params = {}, = {}) req = build_request(:list_automation_event_steps, params) req.send_request() end |
#list_automation_event_summaries(params = {}) ⇒ Types::ListAutomationEventSummariesResponse
Provides a summary of automation events based on specified filters. Only events created within the past year will be included in the summary.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1269 1270 1271 1272 |
# File 'gems/aws-sdk-computeoptimizerautomation/lib/aws-sdk-computeoptimizerautomation/client.rb', line 1269 def list_automation_event_summaries(params = {}, = {}) req = build_request(:list_automation_event_summaries, params) req.send_request() end |
#list_automation_events(params = {}) ⇒ Types::ListAutomationEventsResponse
Lists automation events based on specified filters. You can retrieve events that were created within the past year.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1349 1350 1351 1352 |
# File 'gems/aws-sdk-computeoptimizerautomation/lib/aws-sdk-computeoptimizerautomation/client.rb', line 1349 def list_automation_events(params = {}, = {}) req = build_request(:list_automation_events, params) req.send_request() end |
#list_automation_rule_preview(params = {}) ⇒ Types::ListAutomationRulePreviewResponse
Returns a preview of the recommended actions that match your Automation rule's configuration and criteria.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1495 1496 1497 1498 |
# File 'gems/aws-sdk-computeoptimizerautomation/lib/aws-sdk-computeoptimizerautomation/client.rb', line 1495 def list_automation_rule_preview(params = {}, = {}) req = build_request(:list_automation_rule_preview, params) req.send_request() end |
#list_automation_rule_preview_summaries(params = {}) ⇒ Types::ListAutomationRulePreviewSummariesResponse
Returns a summary of the recommended actions that match your rule preview configuration and criteria.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1617 1618 1619 1620 |
# File 'gems/aws-sdk-computeoptimizerautomation/lib/aws-sdk-computeoptimizerautomation/client.rb', line 1617 def list_automation_rule_preview_summaries(params = {}, = {}) req = build_request(:list_automation_rule_preview_summaries, params) req.send_request() end |
#list_automation_rules(params = {}) ⇒ Types::ListAutomationRulesResponse
Lists the automation rules that match specified filters.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1689 1690 1691 1692 |
# File 'gems/aws-sdk-computeoptimizerautomation/lib/aws-sdk-computeoptimizerautomation/client.rb', line 1689 def list_automation_rules(params = {}, = {}) req = build_request(:list_automation_rules, params) req.send_request() end |
#list_organization_enrollment_configurations(params = {}) ⇒ Types::ListOrganizationEnrollmentConfigurationsResponse
Lists the organization enrollment configurations that are stored directly on accounts, organizational units (OUs), and the organization root.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1744 1745 1746 1747 |
# File 'gems/aws-sdk-computeoptimizerautomation/lib/aws-sdk-computeoptimizerautomation/client.rb', line 1744 def list_organization_enrollment_configurations(params = {}, = {}) req = build_request(:list_organization_enrollment_configurations, params) req.send_request() end |
#list_organizational_units(params = {}) ⇒ Types::ListOrganizationalUnitsResponse
Lists the organization root and organizational units (OUs), including whether an applicable organization enrollment configuration enables Automation for member accounts and the effective organization rule mode for each root or OU.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1800 1801 1802 1803 |
# File 'gems/aws-sdk-computeoptimizerautomation/lib/aws-sdk-computeoptimizerautomation/client.rb', line 1800 def list_organizational_units(params = {}, = {}) req = build_request(:list_organizational_units, params) req.send_request() end |
#list_recommended_action_summaries(params = {}) ⇒ Types::ListRecommendedActionSummariesResponse
Provides a summary of recommended actions based on specified filters.
AssociateAccounts or have an applicable organization
enrollment configuration with organizationRuleMode set to
AnyAllowed.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1870 1871 1872 1873 |
# File 'gems/aws-sdk-computeoptimizerautomation/lib/aws-sdk-computeoptimizerautomation/client.rb', line 1870 def list_recommended_action_summaries(params = {}, = {}) req = build_request(:list_recommended_action_summaries, params) req.send_request() end |
#list_recommended_actions(params = {}) ⇒ Types::ListRecommendedActionsResponse
Lists the recommended actions that match the specified filters.
AssociateAccounts or have an applicable organization enrollment
configuration with organizationRuleMode set to AnyAllowed.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1957 1958 1959 1960 |
# File 'gems/aws-sdk-computeoptimizerautomation/lib/aws-sdk-computeoptimizerautomation/client.rb', line 1957 def list_recommended_actions(params = {}, = {}) req = build_request(:list_recommended_actions, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists the tags for a specified resource.
1987 1988 1989 1990 |
# File 'gems/aws-sdk-computeoptimizerautomation/lib/aws-sdk-computeoptimizerautomation/client.rb', line 1987 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#put_organization_enrollment_configuration(params = {}) ⇒ Struct
Creates or updates an organization enrollment configuration. The
organization enrollment configuration sets the organization rule mode
on the specified account, organizational unit (OU), or organization
root and enables Automation for affected member accounts that have
opted in to Compute Optimizer, including accounts that join later.
Changes on an OU or the organization root can take up to 5 minutes.
Organization enrollment configurations take precedence over settings
made by AssociateAccounts and DisassociateAccounts. You must
specify at least one configuration in the request.
Organization enrollment configurations can't be created for the management account.
2045 2046 2047 2048 |
# File 'gems/aws-sdk-computeoptimizerautomation/lib/aws-sdk-computeoptimizerautomation/client.rb', line 2045 def put_organization_enrollment_configuration(params = {}, = {}) req = build_request(:put_organization_enrollment_configuration, params) req.send_request() end |
#rollback_automation_event(params = {}) ⇒ Types::RollbackAutomationEventResponse
Initiates a rollback for a completed automation event.
AssociateAccounts or have an applicable organization
enrollment configuration with organizationRuleMode set to
AnyAllowed.
2092 2093 2094 2095 |
# File 'gems/aws-sdk-computeoptimizerautomation/lib/aws-sdk-computeoptimizerautomation/client.rb', line 2092 def rollback_automation_event(params = {}, = {}) req = build_request(:rollback_automation_event, params) req.send_request() end |
#start_automation_event(params = {}) ⇒ Types::StartAutomationEventResponse
Initiates a one-time, on-demand automation for the specified recommended action.
AssociateAccounts or have an applicable organization enrollment
configuration with organizationRuleMode set to AnyAllowed.
2141 2142 2143 2144 |
# File 'gems/aws-sdk-computeoptimizerautomation/lib/aws-sdk-computeoptimizerautomation/client.rb', line 2141 def start_automation_event(params = {}, = {}) req = build_request(:start_automation_event, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Adds tags to the specified resource.
2186 2187 2188 2189 |
# File 'gems/aws-sdk-computeoptimizerautomation/lib/aws-sdk-computeoptimizerautomation/client.rb', line 2186 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes tags from the specified resource.
2226 2227 2228 2229 |
# File 'gems/aws-sdk-computeoptimizerautomation/lib/aws-sdk-computeoptimizerautomation/client.rb', line 2226 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_automation_rule(params = {}) ⇒ Types::UpdateAutomationRuleResponse
Updates an existing automation rule.
2442 2443 2444 2445 |
# File 'gems/aws-sdk-computeoptimizerautomation/lib/aws-sdk-computeoptimizerautomation/client.rb', line 2442 def update_automation_rule(params = {}, = {}) req = build_request(:update_automation_rule, params) req.send_request() end |
#update_enrollment_configuration(params = {}) ⇒ Types::UpdateEnrollmentConfigurationResponse
Updates your account’s Compute Optimizer Automation enrollment configuration.
2505 2506 2507 2508 |
# File 'gems/aws-sdk-computeoptimizerautomation/lib/aws-sdk-computeoptimizerautomation/client.rb', line 2505 def update_enrollment_configuration(params = {}, = {}) req = build_request(:update_enrollment_configuration, params) req.send_request() end |