Interface TrustedAdvisorClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.
TrustedAdvisor Public API
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionbatchUpdateRecommendationResourceExclusion
(Consumer<BatchUpdateRecommendationResourceExclusionRequest.Builder> batchUpdateRecommendationResourceExclusionRequest) Update one or more exclusion status for a list of recommendation resourcesbatchUpdateRecommendationResourceExclusion
(BatchUpdateRecommendationResourceExclusionRequest batchUpdateRecommendationResourceExclusionRequest) Update one or more exclusion status for a list of recommendation resourcesstatic TrustedAdvisorClientBuilder
builder()
Create a builder that can be used to configure and create aTrustedAdvisorClient
.static TrustedAdvisorClient
create()
Create aTrustedAdvisorClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.getOrganizationRecommendation
(Consumer<GetOrganizationRecommendationRequest.Builder> getOrganizationRecommendationRequest) Get a specific recommendation within an AWS Organizations organization.getOrganizationRecommendation
(GetOrganizationRecommendationRequest getOrganizationRecommendationRequest) Get a specific recommendation within an AWS Organizations organization.default GetRecommendationResponse
getRecommendation
(Consumer<GetRecommendationRequest.Builder> getRecommendationRequest) Get a specific Recommendationdefault GetRecommendationResponse
getRecommendation
(GetRecommendationRequest getRecommendationRequest) Get a specific Recommendationdefault ListChecksResponse
listChecks
(Consumer<ListChecksRequest.Builder> listChecksRequest) List a filterable set of Checksdefault ListChecksResponse
listChecks
(ListChecksRequest listChecksRequest) List a filterable set of Checksdefault ListChecksIterable
listChecksPaginator
(Consumer<ListChecksRequest.Builder> listChecksRequest) This is a variant oflistChecks(software.amazon.awssdk.services.trustedadvisor.model.ListChecksRequest)
operation.default ListChecksIterable
listChecksPaginator
(ListChecksRequest listChecksRequest) This is a variant oflistChecks(software.amazon.awssdk.services.trustedadvisor.model.ListChecksRequest)
operation.listOrganizationRecommendationAccounts
(Consumer<ListOrganizationRecommendationAccountsRequest.Builder> listOrganizationRecommendationAccountsRequest) Lists the accounts that own the resources for an organization aggregate recommendation.listOrganizationRecommendationAccounts
(ListOrganizationRecommendationAccountsRequest listOrganizationRecommendationAccountsRequest) Lists the accounts that own the resources for an organization aggregate recommendation.listOrganizationRecommendationAccountsPaginator
(Consumer<ListOrganizationRecommendationAccountsRequest.Builder> listOrganizationRecommendationAccountsRequest) listOrganizationRecommendationAccountsPaginator
(ListOrganizationRecommendationAccountsRequest listOrganizationRecommendationAccountsRequest) listOrganizationRecommendationResources
(Consumer<ListOrganizationRecommendationResourcesRequest.Builder> listOrganizationRecommendationResourcesRequest) List Resources of a Recommendation within an Organization.listOrganizationRecommendationResources
(ListOrganizationRecommendationResourcesRequest listOrganizationRecommendationResourcesRequest) List Resources of a Recommendation within an Organization.listOrganizationRecommendationResourcesPaginator
(Consumer<ListOrganizationRecommendationResourcesRequest.Builder> listOrganizationRecommendationResourcesRequest) listOrganizationRecommendationResourcesPaginator
(ListOrganizationRecommendationResourcesRequest listOrganizationRecommendationResourcesRequest) listOrganizationRecommendations
(Consumer<ListOrganizationRecommendationsRequest.Builder> listOrganizationRecommendationsRequest) List a filterable set of Recommendations within an Organization.listOrganizationRecommendations
(ListOrganizationRecommendationsRequest listOrganizationRecommendationsRequest) List a filterable set of Recommendations within an Organization.listOrganizationRecommendationsPaginator
(Consumer<ListOrganizationRecommendationsRequest.Builder> listOrganizationRecommendationsRequest) This is a variant oflistOrganizationRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationsRequest)
operation.listOrganizationRecommendationsPaginator
(ListOrganizationRecommendationsRequest listOrganizationRecommendationsRequest) This is a variant oflistOrganizationRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationsRequest)
operation.listRecommendationResources
(Consumer<ListRecommendationResourcesRequest.Builder> listRecommendationResourcesRequest) List Resources of a RecommendationlistRecommendationResources
(ListRecommendationResourcesRequest listRecommendationResourcesRequest) List Resources of a RecommendationlistRecommendationResourcesPaginator
(Consumer<ListRecommendationResourcesRequest.Builder> listRecommendationResourcesRequest) This is a variant oflistRecommendationResources(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationResourcesRequest)
operation.listRecommendationResourcesPaginator
(ListRecommendationResourcesRequest listRecommendationResourcesRequest) This is a variant oflistRecommendationResources(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationResourcesRequest)
operation.default ListRecommendationsResponse
listRecommendations
(Consumer<ListRecommendationsRequest.Builder> listRecommendationsRequest) List a filterable set of Recommendationsdefault ListRecommendationsResponse
listRecommendations
(ListRecommendationsRequest listRecommendationsRequest) List a filterable set of Recommendationsdefault ListRecommendationsIterable
listRecommendationsPaginator
(Consumer<ListRecommendationsRequest.Builder> listRecommendationsRequest) This is a variant oflistRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationsRequest)
operation.default ListRecommendationsIterable
listRecommendationsPaginator
(ListRecommendationsRequest listRecommendationsRequest) This is a variant oflistRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationsRequest)
operation.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadata
updateOrganizationRecommendationLifecycle
(Consumer<UpdateOrganizationRecommendationLifecycleRequest.Builder> updateOrganizationRecommendationLifecycleRequest) Update the lifecycle of a Recommendation within an Organization.updateOrganizationRecommendationLifecycle
(UpdateOrganizationRecommendationLifecycleRequest updateOrganizationRecommendationLifecycleRequest) Update the lifecycle of a Recommendation within an Organization.updateRecommendationLifecycle
(Consumer<UpdateRecommendationLifecycleRequest.Builder> updateRecommendationLifecycleRequest) Update the lifecyle of a Recommendation.updateRecommendationLifecycle
(UpdateRecommendationLifecycleRequest updateRecommendationLifecycleRequest) Update the lifecyle of a Recommendation.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider
.- See Also:
-
-
Method Details
-
batchUpdateRecommendationResourceExclusion
default BatchUpdateRecommendationResourceExclusionResponse batchUpdateRecommendationResourceExclusion(BatchUpdateRecommendationResourceExclusionRequest batchUpdateRecommendationResourceExclusionRequest) throws AccessDeniedException, ConflictException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException Update one or more exclusion status for a list of recommendation resources
- Parameters:
batchUpdateRecommendationResourceExclusionRequest
-- Returns:
- Result of the BatchUpdateRecommendationResourceExclusion operation returned by the service.
- See Also:
-
batchUpdateRecommendationResourceExclusion
default BatchUpdateRecommendationResourceExclusionResponse batchUpdateRecommendationResourceExclusion(Consumer<BatchUpdateRecommendationResourceExclusionRequest.Builder> batchUpdateRecommendationResourceExclusionRequest) throws AccessDeniedException, ConflictException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException Update one or more exclusion status for a list of recommendation resources
This is a convenience which creates an instance of the
BatchUpdateRecommendationResourceExclusionRequest.Builder
avoiding the need to create one manually viaBatchUpdateRecommendationResourceExclusionRequest.builder()
- Parameters:
batchUpdateRecommendationResourceExclusionRequest
- AConsumer
that will call methods onBatchUpdateRecommendationResourceExclusionRequest.Builder
to create a request.- Returns:
- Result of the BatchUpdateRecommendationResourceExclusion operation returned by the service.
- See Also:
-
getOrganizationRecommendation
default GetOrganizationRecommendationResponse getOrganizationRecommendation(GetOrganizationRecommendationRequest getOrganizationRecommendationRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException Get a specific recommendation within an AWS Organizations organization. This API supports only prioritized recommendations.
- Parameters:
getOrganizationRecommendationRequest
-- Returns:
- Result of the GetOrganizationRecommendation operation returned by the service.
- See Also:
-
getOrganizationRecommendation
default GetOrganizationRecommendationResponse getOrganizationRecommendation(Consumer<GetOrganizationRecommendationRequest.Builder> getOrganizationRecommendationRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException Get a specific recommendation within an AWS Organizations organization. This API supports only prioritized recommendations.
This is a convenience which creates an instance of the
GetOrganizationRecommendationRequest.Builder
avoiding the need to create one manually viaGetOrganizationRecommendationRequest.builder()
- Parameters:
getOrganizationRecommendationRequest
- AConsumer
that will call methods onGetOrganizationRecommendationRequest.Builder
to create a request.- Returns:
- Result of the GetOrganizationRecommendation operation returned by the service.
- See Also:
-
getRecommendation
default GetRecommendationResponse getRecommendation(GetRecommendationRequest getRecommendationRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException Get a specific Recommendation
- Parameters:
getRecommendationRequest
-- Returns:
- Result of the GetRecommendation operation returned by the service.
- See Also:
-
getRecommendation
default GetRecommendationResponse getRecommendation(Consumer<GetRecommendationRequest.Builder> getRecommendationRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException Get a specific Recommendation
This is a convenience which creates an instance of the
GetRecommendationRequest.Builder
avoiding the need to create one manually viaGetRecommendationRequest.builder()
- Parameters:
getRecommendationRequest
- AConsumer
that will call methods onGetRecommendationRequest.Builder
to create a request.- Returns:
- Result of the GetRecommendation operation returned by the service.
- See Also:
-
listChecks
default ListChecksResponse listChecks(ListChecksRequest listChecksRequest) throws AccessDeniedException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException List a filterable set of Checks
- Parameters:
listChecksRequest
-- Returns:
- Result of the ListChecks operation returned by the service.
- See Also:
-
listChecks
default ListChecksResponse listChecks(Consumer<ListChecksRequest.Builder> listChecksRequest) throws AccessDeniedException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException List a filterable set of Checks
This is a convenience which creates an instance of the
ListChecksRequest.Builder
avoiding the need to create one manually viaListChecksRequest.builder()
- Parameters:
listChecksRequest
- AConsumer
that will call methods onListChecksRequest.Builder
to create a request.- Returns:
- Result of the ListChecks operation returned by the service.
- See Also:
-
listChecksPaginator
default ListChecksIterable listChecksPaginator(ListChecksRequest listChecksRequest) throws AccessDeniedException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException This is a variant of
listChecks(software.amazon.awssdk.services.trustedadvisor.model.ListChecksRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.trustedadvisor.paginators.ListChecksIterable responses = client.listChecksPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.trustedadvisor.paginators.ListChecksIterable responses = client.listChecksPaginator(request); for (software.amazon.awssdk.services.trustedadvisor.model.ListChecksResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.trustedadvisor.paginators.ListChecksIterable responses = client.listChecksPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listChecks(software.amazon.awssdk.services.trustedadvisor.model.ListChecksRequest)
operation.- Parameters:
listChecksRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listChecksPaginator
default ListChecksIterable listChecksPaginator(Consumer<ListChecksRequest.Builder> listChecksRequest) throws AccessDeniedException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException This is a variant of
listChecks(software.amazon.awssdk.services.trustedadvisor.model.ListChecksRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.trustedadvisor.paginators.ListChecksIterable responses = client.listChecksPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.trustedadvisor.paginators.ListChecksIterable responses = client.listChecksPaginator(request); for (software.amazon.awssdk.services.trustedadvisor.model.ListChecksResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.trustedadvisor.paginators.ListChecksIterable responses = client.listChecksPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listChecks(software.amazon.awssdk.services.trustedadvisor.model.ListChecksRequest)
operation.
This is a convenience which creates an instance of the
ListChecksRequest.Builder
avoiding the need to create one manually viaListChecksRequest.builder()
- Parameters:
listChecksRequest
- AConsumer
that will call methods onListChecksRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listOrganizationRecommendationAccounts
default ListOrganizationRecommendationAccountsResponse listOrganizationRecommendationAccounts(ListOrganizationRecommendationAccountsRequest listOrganizationRecommendationAccountsRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException Lists the accounts that own the resources for an organization aggregate recommendation. This API only supports prioritized recommendations.
- Parameters:
listOrganizationRecommendationAccountsRequest
-- Returns:
- Result of the ListOrganizationRecommendationAccounts operation returned by the service.
- See Also:
-
listOrganizationRecommendationAccounts
default ListOrganizationRecommendationAccountsResponse listOrganizationRecommendationAccounts(Consumer<ListOrganizationRecommendationAccountsRequest.Builder> listOrganizationRecommendationAccountsRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException Lists the accounts that own the resources for an organization aggregate recommendation. This API only supports prioritized recommendations.
This is a convenience which creates an instance of the
ListOrganizationRecommendationAccountsRequest.Builder
avoiding the need to create one manually viaListOrganizationRecommendationAccountsRequest.builder()
- Parameters:
listOrganizationRecommendationAccountsRequest
- AConsumer
that will call methods onListOrganizationRecommendationAccountsRequest.Builder
to create a request.- Returns:
- Result of the ListOrganizationRecommendationAccounts operation returned by the service.
- See Also:
-
listOrganizationRecommendationAccountsPaginator
default ListOrganizationRecommendationAccountsIterable listOrganizationRecommendationAccountsPaginator(ListOrganizationRecommendationAccountsRequest listOrganizationRecommendationAccountsRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException This is a variant of
listOrganizationRecommendationAccounts(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationAccountsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationAccountsIterable responses = client.listOrganizationRecommendationAccountsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationAccountsIterable responses = client .listOrganizationRecommendationAccountsPaginator(request); for (software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationAccountsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationAccountsIterable responses = client.listOrganizationRecommendationAccountsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listOrganizationRecommendationAccounts(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationAccountsRequest)
operation.- Parameters:
listOrganizationRecommendationAccountsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listOrganizationRecommendationAccountsPaginator
default ListOrganizationRecommendationAccountsIterable listOrganizationRecommendationAccountsPaginator(Consumer<ListOrganizationRecommendationAccountsRequest.Builder> listOrganizationRecommendationAccountsRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException This is a variant of
listOrganizationRecommendationAccounts(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationAccountsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationAccountsIterable responses = client.listOrganizationRecommendationAccountsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationAccountsIterable responses = client .listOrganizationRecommendationAccountsPaginator(request); for (software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationAccountsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationAccountsIterable responses = client.listOrganizationRecommendationAccountsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listOrganizationRecommendationAccounts(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationAccountsRequest)
operation.
This is a convenience which creates an instance of the
ListOrganizationRecommendationAccountsRequest.Builder
avoiding the need to create one manually viaListOrganizationRecommendationAccountsRequest.builder()
- Parameters:
listOrganizationRecommendationAccountsRequest
- AConsumer
that will call methods onListOrganizationRecommendationAccountsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listOrganizationRecommendationResources
default ListOrganizationRecommendationResourcesResponse listOrganizationRecommendationResources(ListOrganizationRecommendationResourcesRequest listOrganizationRecommendationResourcesRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException List Resources of a Recommendation within an Organization. This API only supports prioritized recommendations.
- Parameters:
listOrganizationRecommendationResourcesRequest
-- Returns:
- Result of the ListOrganizationRecommendationResources operation returned by the service.
- See Also:
-
listOrganizationRecommendationResources
default ListOrganizationRecommendationResourcesResponse listOrganizationRecommendationResources(Consumer<ListOrganizationRecommendationResourcesRequest.Builder> listOrganizationRecommendationResourcesRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException List Resources of a Recommendation within an Organization. This API only supports prioritized recommendations.
This is a convenience which creates an instance of the
ListOrganizationRecommendationResourcesRequest.Builder
avoiding the need to create one manually viaListOrganizationRecommendationResourcesRequest.builder()
- Parameters:
listOrganizationRecommendationResourcesRequest
- AConsumer
that will call methods onListOrganizationRecommendationResourcesRequest.Builder
to create a request.- Returns:
- Result of the ListOrganizationRecommendationResources operation returned by the service.
- See Also:
-
listOrganizationRecommendationResourcesPaginator
default ListOrganizationRecommendationResourcesIterable listOrganizationRecommendationResourcesPaginator(ListOrganizationRecommendationResourcesRequest listOrganizationRecommendationResourcesRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException This is a variant of
listOrganizationRecommendationResources(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationResourcesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationResourcesIterable responses = client.listOrganizationRecommendationResourcesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationResourcesIterable responses = client .listOrganizationRecommendationResourcesPaginator(request); for (software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationResourcesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationResourcesIterable responses = client.listOrganizationRecommendationResourcesPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listOrganizationRecommendationResources(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationResourcesRequest)
operation.- Parameters:
listOrganizationRecommendationResourcesRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listOrganizationRecommendationResourcesPaginator
default ListOrganizationRecommendationResourcesIterable listOrganizationRecommendationResourcesPaginator(Consumer<ListOrganizationRecommendationResourcesRequest.Builder> listOrganizationRecommendationResourcesRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException This is a variant of
listOrganizationRecommendationResources(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationResourcesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationResourcesIterable responses = client.listOrganizationRecommendationResourcesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationResourcesIterable responses = client .listOrganizationRecommendationResourcesPaginator(request); for (software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationResourcesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationResourcesIterable responses = client.listOrganizationRecommendationResourcesPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listOrganizationRecommendationResources(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationResourcesRequest)
operation.
This is a convenience which creates an instance of the
ListOrganizationRecommendationResourcesRequest.Builder
avoiding the need to create one manually viaListOrganizationRecommendationResourcesRequest.builder()
- Parameters:
listOrganizationRecommendationResourcesRequest
- AConsumer
that will call methods onListOrganizationRecommendationResourcesRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listOrganizationRecommendations
default ListOrganizationRecommendationsResponse listOrganizationRecommendations(ListOrganizationRecommendationsRequest listOrganizationRecommendationsRequest) throws AccessDeniedException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException List a filterable set of Recommendations within an Organization. This API only supports prioritized recommendations.
- Parameters:
listOrganizationRecommendationsRequest
-- Returns:
- Result of the ListOrganizationRecommendations operation returned by the service.
- See Also:
-
listOrganizationRecommendations
default ListOrganizationRecommendationsResponse listOrganizationRecommendations(Consumer<ListOrganizationRecommendationsRequest.Builder> listOrganizationRecommendationsRequest) throws AccessDeniedException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException List a filterable set of Recommendations within an Organization. This API only supports prioritized recommendations.
This is a convenience which creates an instance of the
ListOrganizationRecommendationsRequest.Builder
avoiding the need to create one manually viaListOrganizationRecommendationsRequest.builder()
- Parameters:
listOrganizationRecommendationsRequest
- AConsumer
that will call methods onListOrganizationRecommendationsRequest.Builder
to create a request.- Returns:
- Result of the ListOrganizationRecommendations operation returned by the service.
- See Also:
-
listOrganizationRecommendationsPaginator
default ListOrganizationRecommendationsIterable listOrganizationRecommendationsPaginator(ListOrganizationRecommendationsRequest listOrganizationRecommendationsRequest) throws AccessDeniedException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException This is a variant of
listOrganizationRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationsIterable responses = client.listOrganizationRecommendationsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationsIterable responses = client .listOrganizationRecommendationsPaginator(request); for (software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationsIterable responses = client.listOrganizationRecommendationsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listOrganizationRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationsRequest)
operation.- Parameters:
listOrganizationRecommendationsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listOrganizationRecommendationsPaginator
default ListOrganizationRecommendationsIterable listOrganizationRecommendationsPaginator(Consumer<ListOrganizationRecommendationsRequest.Builder> listOrganizationRecommendationsRequest) throws AccessDeniedException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException This is a variant of
listOrganizationRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationsIterable responses = client.listOrganizationRecommendationsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationsIterable responses = client .listOrganizationRecommendationsPaginator(request); for (software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationsIterable responses = client.listOrganizationRecommendationsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listOrganizationRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationsRequest)
operation.
This is a convenience which creates an instance of the
ListOrganizationRecommendationsRequest.Builder
avoiding the need to create one manually viaListOrganizationRecommendationsRequest.builder()
- Parameters:
listOrganizationRecommendationsRequest
- AConsumer
that will call methods onListOrganizationRecommendationsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listRecommendationResources
default ListRecommendationResourcesResponse listRecommendationResources(ListRecommendationResourcesRequest listRecommendationResourcesRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException List Resources of a Recommendation
- Parameters:
listRecommendationResourcesRequest
-- Returns:
- Result of the ListRecommendationResources operation returned by the service.
- See Also:
-
listRecommendationResources
default ListRecommendationResourcesResponse listRecommendationResources(Consumer<ListRecommendationResourcesRequest.Builder> listRecommendationResourcesRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException List Resources of a Recommendation
This is a convenience which creates an instance of the
ListRecommendationResourcesRequest.Builder
avoiding the need to create one manually viaListRecommendationResourcesRequest.builder()
- Parameters:
listRecommendationResourcesRequest
- AConsumer
that will call methods onListRecommendationResourcesRequest.Builder
to create a request.- Returns:
- Result of the ListRecommendationResources operation returned by the service.
- See Also:
-
listRecommendationResourcesPaginator
default ListRecommendationResourcesIterable listRecommendationResourcesPaginator(ListRecommendationResourcesRequest listRecommendationResourcesRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException This is a variant of
listRecommendationResources(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationResourcesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationResourcesIterable responses = client.listRecommendationResourcesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationResourcesIterable responses = client .listRecommendationResourcesPaginator(request); for (software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationResourcesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationResourcesIterable responses = client.listRecommendationResourcesPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRecommendationResources(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationResourcesRequest)
operation.- Parameters:
listRecommendationResourcesRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listRecommendationResourcesPaginator
default ListRecommendationResourcesIterable listRecommendationResourcesPaginator(Consumer<ListRecommendationResourcesRequest.Builder> listRecommendationResourcesRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException This is a variant of
listRecommendationResources(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationResourcesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationResourcesIterable responses = client.listRecommendationResourcesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationResourcesIterable responses = client .listRecommendationResourcesPaginator(request); for (software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationResourcesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationResourcesIterable responses = client.listRecommendationResourcesPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRecommendationResources(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationResourcesRequest)
operation.
This is a convenience which creates an instance of the
ListRecommendationResourcesRequest.Builder
avoiding the need to create one manually viaListRecommendationResourcesRequest.builder()
- Parameters:
listRecommendationResourcesRequest
- AConsumer
that will call methods onListRecommendationResourcesRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listRecommendations
default ListRecommendationsResponse listRecommendations(ListRecommendationsRequest listRecommendationsRequest) throws AccessDeniedException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException List a filterable set of Recommendations
- Parameters:
listRecommendationsRequest
-- Returns:
- Result of the ListRecommendations operation returned by the service.
- See Also:
-
listRecommendations
default ListRecommendationsResponse listRecommendations(Consumer<ListRecommendationsRequest.Builder> listRecommendationsRequest) throws AccessDeniedException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException List a filterable set of Recommendations
This is a convenience which creates an instance of the
ListRecommendationsRequest.Builder
avoiding the need to create one manually viaListRecommendationsRequest.builder()
- Parameters:
listRecommendationsRequest
- AConsumer
that will call methods onListRecommendationsRequest.Builder
to create a request.- Returns:
- Result of the ListRecommendations operation returned by the service.
- See Also:
-
listRecommendationsPaginator
default ListRecommendationsIterable listRecommendationsPaginator(ListRecommendationsRequest listRecommendationsRequest) throws AccessDeniedException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException This is a variant of
listRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationsIterable responses = client.listRecommendationsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationsIterable responses = client .listRecommendationsPaginator(request); for (software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationsIterable responses = client.listRecommendationsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationsRequest)
operation.- Parameters:
listRecommendationsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listRecommendationsPaginator
default ListRecommendationsIterable listRecommendationsPaginator(Consumer<ListRecommendationsRequest.Builder> listRecommendationsRequest) throws AccessDeniedException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException This is a variant of
listRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationsIterable responses = client.listRecommendationsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationsIterable responses = client .listRecommendationsPaginator(request); for (software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationsIterable responses = client.listRecommendationsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationsRequest)
operation.
This is a convenience which creates an instance of the
ListRecommendationsRequest.Builder
avoiding the need to create one manually viaListRecommendationsRequest.builder()
- Parameters:
listRecommendationsRequest
- AConsumer
that will call methods onListRecommendationsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
updateOrganizationRecommendationLifecycle
default UpdateOrganizationRecommendationLifecycleResponse updateOrganizationRecommendationLifecycle(UpdateOrganizationRecommendationLifecycleRequest updateOrganizationRecommendationLifecycleRequest) throws AccessDeniedException, ConflictException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException Update the lifecycle of a Recommendation within an Organization. This API only supports prioritized recommendations.
- Parameters:
updateOrganizationRecommendationLifecycleRequest
-- Returns:
- Result of the UpdateOrganizationRecommendationLifecycle operation returned by the service.
- See Also:
-
updateOrganizationRecommendationLifecycle
default UpdateOrganizationRecommendationLifecycleResponse updateOrganizationRecommendationLifecycle(Consumer<UpdateOrganizationRecommendationLifecycleRequest.Builder> updateOrganizationRecommendationLifecycleRequest) throws AccessDeniedException, ConflictException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException Update the lifecycle of a Recommendation within an Organization. This API only supports prioritized recommendations.
This is a convenience which creates an instance of the
UpdateOrganizationRecommendationLifecycleRequest.Builder
avoiding the need to create one manually viaUpdateOrganizationRecommendationLifecycleRequest.builder()
- Parameters:
updateOrganizationRecommendationLifecycleRequest
- AConsumer
that will call methods onUpdateOrganizationRecommendationLifecycleRequest.Builder
to create a request.- Returns:
- Result of the UpdateOrganizationRecommendationLifecycle operation returned by the service.
- See Also:
-
updateRecommendationLifecycle
default UpdateRecommendationLifecycleResponse updateRecommendationLifecycle(UpdateRecommendationLifecycleRequest updateRecommendationLifecycleRequest) throws AccessDeniedException, ConflictException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException Update the lifecyle of a Recommendation. This API only supports prioritized recommendations.
- Parameters:
updateRecommendationLifecycleRequest
-- Returns:
- Result of the UpdateRecommendationLifecycle operation returned by the service.
- See Also:
-
updateRecommendationLifecycle
default UpdateRecommendationLifecycleResponse updateRecommendationLifecycle(Consumer<UpdateRecommendationLifecycleRequest.Builder> updateRecommendationLifecycleRequest) throws AccessDeniedException, ConflictException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException Update the lifecyle of a Recommendation. This API only supports prioritized recommendations.
This is a convenience which creates an instance of the
UpdateRecommendationLifecycleRequest.Builder
avoiding the need to create one manually viaUpdateRecommendationLifecycleRequest.builder()
- Parameters:
updateRecommendationLifecycleRequest
- AConsumer
that will call methods onUpdateRecommendationLifecycleRequest.Builder
to create a request.- Returns:
- Result of the UpdateRecommendationLifecycle operation returned by the service.
- See Also:
-
create
Create aTrustedAdvisorClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aTrustedAdvisorClient
. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-