Class: Aws::TrustedAdvisor::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::TrustedAdvisor::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-trustedadvisor/client.rb
Overview
An API client for TrustedAdvisor. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::TrustedAdvisor::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#batch_update_recommendation_resource_exclusion(params = {}) ⇒ Types::BatchUpdateRecommendationResourceExclusionResponse
Update one or more exclusion status for a list of recommendation resources.
-
#get_organization_recommendation(params = {}) ⇒ Types::GetOrganizationRecommendationResponse
Get a specific recommendation within an AWS Organizations organization.
-
#get_recommendation(params = {}) ⇒ Types::GetRecommendationResponse
Get a specific Recommendation.
-
#list_checks(params = {}) ⇒ Types::ListChecksResponse
List a filterable set of Checks.
-
#list_organization_recommendation_accounts(params = {}) ⇒ Types::ListOrganizationRecommendationAccountsResponse
Lists the accounts that own the resources for an organization aggregate recommendation.
-
#list_organization_recommendation_resources(params = {}) ⇒ Types::ListOrganizationRecommendationResourcesResponse
List Resources of a Recommendation within an Organization.
-
#list_organization_recommendations(params = {}) ⇒ Types::ListOrganizationRecommendationsResponse
List a filterable set of Recommendations within an Organization.
-
#list_recommendation_resources(params = {}) ⇒ Types::ListRecommendationResourcesResponse
List Resources of a Recommendation.
-
#list_recommendations(params = {}) ⇒ Types::ListRecommendationsResponse
List a filterable set of Recommendations.
-
#update_organization_recommendation_lifecycle(params = {}) ⇒ Struct
Update the lifecycle of a Recommendation within an Organization.
-
#update_recommendation_lifecycle(params = {}) ⇒ Struct
Update the lifecyle of a Recommendation.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
444 445 446 |
# File 'lib/aws-sdk-trustedadvisor/client.rb', line 444 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1132 1133 1134 |
# File 'lib/aws-sdk-trustedadvisor/client.rb', line 1132 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1135 1136 1137 |
# File 'lib/aws-sdk-trustedadvisor/client.rb', line 1135 def errors_module Errors end |
Instance Method Details
#batch_update_recommendation_resource_exclusion(params = {}) ⇒ Types::BatchUpdateRecommendationResourceExclusionResponse
Update one or more exclusion status for a list of recommendation resources
482 483 484 485 |
# File 'lib/aws-sdk-trustedadvisor/client.rb', line 482 def batch_update_recommendation_resource_exclusion(params = {}, = {}) req = build_request(:batch_update_recommendation_resource_exclusion, params) req.send_request() end |
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 |
# File 'lib/aws-sdk-trustedadvisor/client.rb', line 1105 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::TrustedAdvisor') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-trustedadvisor' context[:gem_version] = '1.17.0' Seahorse::Client::Request.new(handlers, context) end |
#get_organization_recommendation(params = {}) ⇒ Types::GetOrganizationRecommendationResponse
Get a specific recommendation within an AWS Organizations organization. This API supports only prioritized recommendations.
536 537 538 539 |
# File 'lib/aws-sdk-trustedadvisor/client.rb', line 536 def get_organization_recommendation(params = {}, = {}) req = build_request(:get_organization_recommendation, params) req.send_request() end |
#get_recommendation(params = {}) ⇒ Types::GetRecommendationResponse
Get a specific Recommendation
589 590 591 592 |
# File 'lib/aws-sdk-trustedadvisor/client.rb', line 589 def get_recommendation(params = {}, = {}) req = build_request(:get_recommendation, params) req.send_request() end |
#list_checks(params = {}) ⇒ Types::ListChecksResponse
List a filterable set of Checks
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
655 656 657 658 |
# File 'lib/aws-sdk-trustedadvisor/client.rb', line 655 def list_checks(params = {}, = {}) req = build_request(:list_checks, params) req.send_request() end |
#list_organization_recommendation_accounts(params = {}) ⇒ Types::ListOrganizationRecommendationAccountsResponse
Lists the accounts that own the resources for an organization aggregate recommendation. This API only supports prioritized recommendations.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
711 712 713 714 |
# File 'lib/aws-sdk-trustedadvisor/client.rb', line 711 def list_organization_recommendation_accounts(params = {}, = {}) req = build_request(:list_organization_recommendation_accounts, params) req.send_request() end |
#list_organization_recommendation_resources(params = {}) ⇒ Types::ListOrganizationRecommendationResourcesResponse
List Resources of a Recommendation within an Organization. This API only supports prioritized recommendations.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
781 782 783 784 |
# File 'lib/aws-sdk-trustedadvisor/client.rb', line 781 def list_organization_recommendation_resources(params = {}, = {}) req = build_request(:list_organization_recommendation_resources, params) req.send_request() end |
#list_organization_recommendations(params = {}) ⇒ Types::ListOrganizationRecommendationsResponse
List a filterable set of Recommendations within an Organization. This API only supports prioritized recommendations.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
871 872 873 874 |
# File 'lib/aws-sdk-trustedadvisor/client.rb', line 871 def list_organization_recommendations(params = {}, = {}) req = build_request(:list_organization_recommendations, params) req.send_request() end |
#list_recommendation_resources(params = {}) ⇒ Types::ListRecommendationResourcesResponse
List Resources of a Recommendation
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
935 936 937 938 |
# File 'lib/aws-sdk-trustedadvisor/client.rb', line 935 def list_recommendation_resources(params = {}, = {}) req = build_request(:list_recommendation_resources, params) req.send_request() end |
#list_recommendations(params = {}) ⇒ Types::ListRecommendationsResponse
List a filterable set of Recommendations
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1024 1025 1026 1027 |
# File 'lib/aws-sdk-trustedadvisor/client.rb', line 1024 def list_recommendations(params = {}, = {}) req = build_request(:list_recommendations, params) req.send_request() end |
#update_organization_recommendation_lifecycle(params = {}) ⇒ Struct
Update the lifecycle of a Recommendation within an Organization. This API only supports prioritized recommendations.
1060 1061 1062 1063 |
# File 'lib/aws-sdk-trustedadvisor/client.rb', line 1060 def update_organization_recommendation_lifecycle(params = {}, = {}) req = build_request(:update_organization_recommendation_lifecycle, params) req.send_request() end |
#update_recommendation_lifecycle(params = {}) ⇒ Struct
Update the lifecyle of a Recommendation. This API only supports prioritized recommendations.
1096 1097 1098 1099 |
# File 'lib/aws-sdk-trustedadvisor/client.rb', line 1096 def update_recommendation_lifecycle(params = {}, = {}) req = build_request(:update_recommendation_lifecycle, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1125 1126 1127 |
# File 'lib/aws-sdk-trustedadvisor/client.rb', line 1125 def waiter_names [] end |