software.amazon.awssdk.services.applicationdiscovery.ApplicationDiscoveryClient Maven / Gradle / Ivy
Show all versions of applicationdiscovery Show documentation
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package software.amazon.awssdk.services.applicationdiscovery;
import java.util.function.Consumer;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.annotations.SdkPublicApi;
import software.amazon.awssdk.annotations.ThreadSafe;
import software.amazon.awssdk.awscore.AwsClient;
import software.amazon.awssdk.awscore.exception.AwsServiceException;
import software.amazon.awssdk.core.exception.SdkClientException;
import software.amazon.awssdk.regions.ServiceMetadata;
import software.amazon.awssdk.services.applicationdiscovery.model.ApplicationDiscoveryException;
import software.amazon.awssdk.services.applicationdiscovery.model.AssociateConfigurationItemsToApplicationRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.AssociateConfigurationItemsToApplicationResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.AuthorizationErrorException;
import software.amazon.awssdk.services.applicationdiscovery.model.BatchDeleteAgentsRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.BatchDeleteAgentsResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.BatchDeleteImportDataRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.BatchDeleteImportDataResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.ConflictErrorException;
import software.amazon.awssdk.services.applicationdiscovery.model.CreateApplicationRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.CreateApplicationResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.CreateTagsRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.CreateTagsResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.DeleteApplicationsRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.DeleteApplicationsResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.DeleteTagsRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.DeleteTagsResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.DescribeAgentsRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.DescribeAgentsResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.DescribeBatchDeleteConfigurationTaskRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.DescribeBatchDeleteConfigurationTaskResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.DescribeConfigurationsRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.DescribeConfigurationsResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.DescribeContinuousExportsRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.DescribeContinuousExportsResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.DescribeExportTasksRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.DescribeExportTasksResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.DescribeImportTasksRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.DescribeImportTasksResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.DescribeTagsRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.DescribeTagsResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.DisassociateConfigurationItemsFromApplicationRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.DisassociateConfigurationItemsFromApplicationResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.GetDiscoverySummaryRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.GetDiscoverySummaryResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.HomeRegionNotSetException;
import software.amazon.awssdk.services.applicationdiscovery.model.InvalidParameterException;
import software.amazon.awssdk.services.applicationdiscovery.model.InvalidParameterValueException;
import software.amazon.awssdk.services.applicationdiscovery.model.LimitExceededException;
import software.amazon.awssdk.services.applicationdiscovery.model.ListConfigurationsRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.ListConfigurationsResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.ListServerNeighborsRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.ListServerNeighborsResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.OperationNotPermittedException;
import software.amazon.awssdk.services.applicationdiscovery.model.ResourceInUseException;
import software.amazon.awssdk.services.applicationdiscovery.model.ResourceNotFoundException;
import software.amazon.awssdk.services.applicationdiscovery.model.ServerInternalErrorException;
import software.amazon.awssdk.services.applicationdiscovery.model.StartBatchDeleteConfigurationTaskRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.StartBatchDeleteConfigurationTaskResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.StartContinuousExportRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.StartContinuousExportResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.StartDataCollectionByAgentIdsRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.StartDataCollectionByAgentIdsResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.StartExportTaskRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.StartExportTaskResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.StartImportTaskRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.StartImportTaskResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.StopContinuousExportRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.StopContinuousExportResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.StopDataCollectionByAgentIdsRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.StopDataCollectionByAgentIdsResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.UpdateApplicationRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.UpdateApplicationResponse;
import software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeAgentsIterable;
import software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeContinuousExportsIterable;
import software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeExportTasksIterable;
import software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeImportTasksIterable;
import software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeTagsIterable;
import software.amazon.awssdk.services.applicationdiscovery.paginators.ListConfigurationsIterable;
/**
* Service client for accessing AWS Application Discovery Service. This can be created using the static
* {@link #builder()} method.
*
* Amazon Web Services Application Discovery Service
*
* Amazon Web Services Application Discovery Service (Application Discovery Service) helps you plan application
* migration projects. It automatically identifies servers, virtual machines (VMs), and network dependencies in your
* on-premises data centers. For more information, see the Amazon Web Services Application Discovery Service FAQ.
*
*
* Application Discovery Service offers three ways of performing discovery and collecting data about your on-premises
* servers:
*
*
* -
*
* Agentless discovery using Amazon Web Services Application Discovery Service Agentless Collector (Agentless
* Collector), which doesn't require you to install an agent on each host.
*
*
* -
*
* Agentless Collector gathers server information regardless of the operating systems, which minimizes the time required
* for initial on-premises infrastructure assessment.
*
*
* -
*
* Agentless Collector doesn't collect information about network dependencies, only agent-based discovery collects that
* information.
*
*
*
*
*
*
* -
*
* Agent-based discovery using the Amazon Web Services Application Discovery Agent (Application Discovery Agent)
* collects a richer set of data than agentless discovery, which you install on one or more hosts in your data center.
*
*
* -
*
* The agent captures infrastructure and application information, including an inventory of running processes, system
* performance information, resource utilization, and network dependencies.
*
*
* -
*
* The information collected by agents is secured at rest and in transit to the Application Discovery Service database
* in the Amazon Web Services cloud. For more information, see Amazon Web Services
* Application Discovery Agent.
*
*
*
*
*
*
* -
*
* Amazon Web Services Partner Network (APN) solutions integrate with Application Discovery Service, enabling you
* to import details of your on-premises environment directly into Amazon Web Services Migration Hub (Migration Hub)
* without using Agentless Collector or Application Discovery Agent.
*
*
* -
*
* Third-party application discovery tools can query Amazon Web Services Application Discovery Service, and they can
* write to the Application Discovery Service database using the public API.
*
*
* -
*
* In this way, you can import data into Migration Hub and view it, so that you can associate applications with servers
* and track migrations.
*
*
*
*
*
*
* Working With This Guide
*
*
* This API reference provides descriptions, syntax, and usage examples for each of the actions and data types for
* Application Discovery Service. The topic for each action shows the API request parameters and the response.
* Alternatively, you can use one of the Amazon Web Services SDKs to access an API that is tailored to the programming
* language or platform that you're using. For more information, see Amazon
* Web Services SDKs.
*
*
*
* -
*
* Remember that you must set your Migration Hub home Region before you call any of these APIs.
*
*
* -
*
* You must make API calls for write actions (create, notify, associate, disassociate, import, or put) while in your
* home Region, or a HomeRegionNotSetException
error is returned.
*
*
* -
*
* API calls for read actions (list, describe, stop, and delete) are permitted outside of your home Region.
*
*
* -
*
* Although it is unlikely, the Migration Hub home Region could change. If you call APIs outside the home Region, an
* InvalidInputException
is returned.
*
*
* -
*
* You must call GetHomeRegion
to obtain the latest Migration Hub home Region.
*
*
*
*
*
* This guide is intended for use with the Amazon Web Services Application Discovery
* Service User Guide.
*
*
*
* All data is handled according to the Amazon Web Services Privacy
* Policy. You can operate Application Discovery Service offline to inspect collected data before it is shared with
* the service.
*
*
*/
@Generated("software.amazon.awssdk:codegen")
@SdkPublicApi
@ThreadSafe
public interface ApplicationDiscoveryClient extends AwsClient {
String SERVICE_NAME = "discovery";
/**
* Value for looking up the service's metadata from the
* {@link software.amazon.awssdk.regions.ServiceMetadataProvider}.
*/
String SERVICE_METADATA_ID = "discovery";
/**
*
* Associates one or more configuration items with an application.
*
*
* @param associateConfigurationItemsToApplicationRequest
* @return Result of the AssociateConfigurationItemsToApplication operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.AssociateConfigurationItemsToApplication
*/
default AssociateConfigurationItemsToApplicationResponse associateConfigurationItemsToApplication(
AssociateConfigurationItemsToApplicationRequest associateConfigurationItemsToApplicationRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException, SdkClientException,
ApplicationDiscoveryException {
throw new UnsupportedOperationException();
}
/**
*
* Associates one or more configuration items with an application.
*
*
*
* This is a convenience which creates an instance of the
* {@link AssociateConfigurationItemsToApplicationRequest.Builder} avoiding the need to create one manually via
* {@link AssociateConfigurationItemsToApplicationRequest#builder()}
*
*
* @param associateConfigurationItemsToApplicationRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.AssociateConfigurationItemsToApplicationRequest.Builder}
* to create a request.
* @return Result of the AssociateConfigurationItemsToApplication operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.AssociateConfigurationItemsToApplication
*/
default AssociateConfigurationItemsToApplicationResponse associateConfigurationItemsToApplication(
Consumer associateConfigurationItemsToApplicationRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException, SdkClientException,
ApplicationDiscoveryException {
return associateConfigurationItemsToApplication(AssociateConfigurationItemsToApplicationRequest.builder()
.applyMutation(associateConfigurationItemsToApplicationRequest).build());
}
/**
*
* Deletes one or more agents or collectors as specified by ID. Deleting an agent or collector does not delete the
* previously discovered data. To delete the data collected, use StartBatchDeleteConfigurationTask
.
*
*
* @param batchDeleteAgentsRequest
* @return Result of the BatchDeleteAgents operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.BatchDeleteAgents
*/
default BatchDeleteAgentsResponse batchDeleteAgents(BatchDeleteAgentsRequest batchDeleteAgentsRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, AwsServiceException, SdkClientException, ApplicationDiscoveryException {
throw new UnsupportedOperationException();
}
/**
*
* Deletes one or more agents or collectors as specified by ID. Deleting an agent or collector does not delete the
* previously discovered data. To delete the data collected, use StartBatchDeleteConfigurationTask
.
*
*
*
* This is a convenience which creates an instance of the {@link BatchDeleteAgentsRequest.Builder} avoiding the need
* to create one manually via {@link BatchDeleteAgentsRequest#builder()}
*
*
* @param batchDeleteAgentsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.BatchDeleteAgentsRequest.Builder} to
* create a request.
* @return Result of the BatchDeleteAgents operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.BatchDeleteAgents
*/
default BatchDeleteAgentsResponse batchDeleteAgents(Consumer batchDeleteAgentsRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, AwsServiceException, SdkClientException, ApplicationDiscoveryException {
return batchDeleteAgents(BatchDeleteAgentsRequest.builder().applyMutation(batchDeleteAgentsRequest).build());
}
/**
*
* Deletes one or more import tasks, each identified by their import ID. Each import task has a number of records
* that can identify servers or applications.
*
*
* Amazon Web Services Application Discovery Service has built-in matching logic that will identify when discovered
* servers match existing entries that you've previously discovered, the information for the already-existing
* discovered server is updated. When you delete an import task that contains records that were used to match, the
* information in those matched records that comes from the deleted records will also be deleted.
*
*
* @param batchDeleteImportDataRequest
* @return Result of the BatchDeleteImportData operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.BatchDeleteImportData
*/
default BatchDeleteImportDataResponse batchDeleteImportData(BatchDeleteImportDataRequest batchDeleteImportDataRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException, SdkClientException,
ApplicationDiscoveryException {
throw new UnsupportedOperationException();
}
/**
*
* Deletes one or more import tasks, each identified by their import ID. Each import task has a number of records
* that can identify servers or applications.
*
*
* Amazon Web Services Application Discovery Service has built-in matching logic that will identify when discovered
* servers match existing entries that you've previously discovered, the information for the already-existing
* discovered server is updated. When you delete an import task that contains records that were used to match, the
* information in those matched records that comes from the deleted records will also be deleted.
*
*
*
* This is a convenience which creates an instance of the {@link BatchDeleteImportDataRequest.Builder} avoiding the
* need to create one manually via {@link BatchDeleteImportDataRequest#builder()}
*
*
* @param batchDeleteImportDataRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.BatchDeleteImportDataRequest.Builder} to
* create a request.
* @return Result of the BatchDeleteImportData operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.BatchDeleteImportData
*/
default BatchDeleteImportDataResponse batchDeleteImportData(
Consumer batchDeleteImportDataRequest) throws AuthorizationErrorException,
InvalidParameterException, InvalidParameterValueException, ServerInternalErrorException, HomeRegionNotSetException,
AwsServiceException, SdkClientException, ApplicationDiscoveryException {
return batchDeleteImportData(BatchDeleteImportDataRequest.builder().applyMutation(batchDeleteImportDataRequest).build());
}
/**
*
* Creates an application with the given name and description.
*
*
* @param createApplicationRequest
* @return Result of the CreateApplication operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.CreateApplication
*/
default CreateApplicationResponse createApplication(CreateApplicationRequest createApplicationRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException, SdkClientException,
ApplicationDiscoveryException {
throw new UnsupportedOperationException();
}
/**
*
* Creates an application with the given name and description.
*
*
*
* This is a convenience which creates an instance of the {@link CreateApplicationRequest.Builder} avoiding the need
* to create one manually via {@link CreateApplicationRequest#builder()}
*
*
* @param createApplicationRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.CreateApplicationRequest.Builder} to
* create a request.
* @return Result of the CreateApplication operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.CreateApplication
*/
default CreateApplicationResponse createApplication(Consumer createApplicationRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException, SdkClientException,
ApplicationDiscoveryException {
return createApplication(CreateApplicationRequest.builder().applyMutation(createApplicationRequest).build());
}
/**
*
* Creates one or more tags for configuration items. Tags are metadata that help you categorize IT assets. This API
* accepts a list of multiple configuration items.
*
*
*
* Do not store sensitive information (like personal data) in tags.
*
*
*
* @param createTagsRequest
* @return Result of the CreateTags operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws ResourceNotFoundException
* The specified configuration ID was not located. Verify the configuration ID and try again.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.CreateTags
*/
default CreateTagsResponse createTags(CreateTagsRequest createTagsRequest) throws AuthorizationErrorException,
ResourceNotFoundException, InvalidParameterException, InvalidParameterValueException, ServerInternalErrorException,
HomeRegionNotSetException, AwsServiceException, SdkClientException, ApplicationDiscoveryException {
throw new UnsupportedOperationException();
}
/**
*
* Creates one or more tags for configuration items. Tags are metadata that help you categorize IT assets. This API
* accepts a list of multiple configuration items.
*
*
*
* Do not store sensitive information (like personal data) in tags.
*
*
*
* This is a convenience which creates an instance of the {@link CreateTagsRequest.Builder} avoiding the need to
* create one manually via {@link CreateTagsRequest#builder()}
*
*
* @param createTagsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.CreateTagsRequest.Builder} to create a
* request.
* @return Result of the CreateTags operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws ResourceNotFoundException
* The specified configuration ID was not located. Verify the configuration ID and try again.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.CreateTags
*/
default CreateTagsResponse createTags(Consumer createTagsRequest)
throws AuthorizationErrorException, ResourceNotFoundException, InvalidParameterException,
InvalidParameterValueException, ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException,
SdkClientException, ApplicationDiscoveryException {
return createTags(CreateTagsRequest.builder().applyMutation(createTagsRequest).build());
}
/**
*
* Deletes a list of applications and their associations with configuration items.
*
*
* @param deleteApplicationsRequest
* @return Result of the DeleteApplications operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DeleteApplications
*/
default DeleteApplicationsResponse deleteApplications(DeleteApplicationsRequest deleteApplicationsRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException, SdkClientException,
ApplicationDiscoveryException {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a list of applications and their associations with configuration items.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteApplicationsRequest.Builder} avoiding the
* need to create one manually via {@link DeleteApplicationsRequest#builder()}
*
*
* @param deleteApplicationsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.DeleteApplicationsRequest.Builder} to
* create a request.
* @return Result of the DeleteApplications operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DeleteApplications
*/
default DeleteApplicationsResponse deleteApplications(Consumer deleteApplicationsRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException, SdkClientException,
ApplicationDiscoveryException {
return deleteApplications(DeleteApplicationsRequest.builder().applyMutation(deleteApplicationsRequest).build());
}
/**
*
* Deletes the association between configuration items and one or more tags. This API accepts a list of multiple
* configuration items.
*
*
* @param deleteTagsRequest
* @return Result of the DeleteTags operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws ResourceNotFoundException
* The specified configuration ID was not located. Verify the configuration ID and try again.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DeleteTags
*/
default DeleteTagsResponse deleteTags(DeleteTagsRequest deleteTagsRequest) throws AuthorizationErrorException,
ResourceNotFoundException, InvalidParameterException, InvalidParameterValueException, ServerInternalErrorException,
HomeRegionNotSetException, AwsServiceException, SdkClientException, ApplicationDiscoveryException {
throw new UnsupportedOperationException();
}
/**
*
* Deletes the association between configuration items and one or more tags. This API accepts a list of multiple
* configuration items.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteTagsRequest.Builder} avoiding the need to
* create one manually via {@link DeleteTagsRequest#builder()}
*
*
* @param deleteTagsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.DeleteTagsRequest.Builder} to create a
* request.
* @return Result of the DeleteTags operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws ResourceNotFoundException
* The specified configuration ID was not located. Verify the configuration ID and try again.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DeleteTags
*/
default DeleteTagsResponse deleteTags(Consumer deleteTagsRequest)
throws AuthorizationErrorException, ResourceNotFoundException, InvalidParameterException,
InvalidParameterValueException, ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException,
SdkClientException, ApplicationDiscoveryException {
return deleteTags(DeleteTagsRequest.builder().applyMutation(deleteTagsRequest).build());
}
/**
*
* Lists agents or collectors as specified by ID or other filters. All agents/collectors associated with your user
* can be listed if you call DescribeAgents
as is without passing any parameters.
*
*
* @param describeAgentsRequest
* @return Result of the DescribeAgents operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeAgents
*/
default DescribeAgentsResponse describeAgents(DescribeAgentsRequest describeAgentsRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException, SdkClientException,
ApplicationDiscoveryException {
throw new UnsupportedOperationException();
}
/**
*
* Lists agents or collectors as specified by ID or other filters. All agents/collectors associated with your user
* can be listed if you call DescribeAgents
as is without passing any parameters.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeAgentsRequest.Builder} avoiding the need to
* create one manually via {@link DescribeAgentsRequest#builder()}
*
*
* @param describeAgentsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.DescribeAgentsRequest.Builder} to create
* a request.
* @return Result of the DescribeAgents operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeAgents
*/
default DescribeAgentsResponse describeAgents(Consumer describeAgentsRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException, SdkClientException,
ApplicationDiscoveryException {
return describeAgents(DescribeAgentsRequest.builder().applyMutation(describeAgentsRequest).build());
}
/**
*
* Lists agents or collectors as specified by ID or other filters. All agents/collectors associated with your user
* can be listed if you call DescribeAgents
as is without passing any parameters.
*
*
* @return Result of the DescribeAgents operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeAgents
* @see #describeAgents(DescribeAgentsRequest)
*/
default DescribeAgentsResponse describeAgents() throws AuthorizationErrorException, InvalidParameterException,
InvalidParameterValueException, ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException,
SdkClientException, ApplicationDiscoveryException {
return describeAgents(DescribeAgentsRequest.builder().build());
}
/**
*
* This is a variant of
* {@link #describeAgents(software.amazon.awssdk.services.applicationdiscovery.model.DescribeAgentsRequest)}
* 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 Stream
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeAgentsIterable responses = client.describeAgentsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeAgentsIterable responses = client
* .describeAgentsPaginator(request);
* for (software.amazon.awssdk.services.applicationdiscovery.model.DescribeAgentsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeAgentsIterable responses = client.describeAgentsPaginator(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
* {@link #describeAgents(software.amazon.awssdk.services.applicationdiscovery.model.DescribeAgentsRequest)}
* operation.
*
*
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeAgents
* @see #describeAgentsPaginator(DescribeAgentsRequest)
*/
default DescribeAgentsIterable describeAgentsPaginator() throws AuthorizationErrorException, InvalidParameterException,
InvalidParameterValueException, ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException,
SdkClientException, ApplicationDiscoveryException {
return describeAgentsPaginator(DescribeAgentsRequest.builder().build());
}
/**
*
* This is a variant of
* {@link #describeAgents(software.amazon.awssdk.services.applicationdiscovery.model.DescribeAgentsRequest)}
* 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 Stream
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeAgentsIterable responses = client.describeAgentsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeAgentsIterable responses = client
* .describeAgentsPaginator(request);
* for (software.amazon.awssdk.services.applicationdiscovery.model.DescribeAgentsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeAgentsIterable responses = client.describeAgentsPaginator(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
* {@link #describeAgents(software.amazon.awssdk.services.applicationdiscovery.model.DescribeAgentsRequest)}
* operation.
*
*
* @param describeAgentsRequest
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeAgents
*/
default DescribeAgentsIterable describeAgentsPaginator(DescribeAgentsRequest describeAgentsRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException, SdkClientException,
ApplicationDiscoveryException {
return new DescribeAgentsIterable(this, describeAgentsRequest);
}
/**
*
* This is a variant of
* {@link #describeAgents(software.amazon.awssdk.services.applicationdiscovery.model.DescribeAgentsRequest)}
* 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 Stream
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeAgentsIterable responses = client.describeAgentsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeAgentsIterable responses = client
* .describeAgentsPaginator(request);
* for (software.amazon.awssdk.services.applicationdiscovery.model.DescribeAgentsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeAgentsIterable responses = client.describeAgentsPaginator(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
* {@link #describeAgents(software.amazon.awssdk.services.applicationdiscovery.model.DescribeAgentsRequest)}
* operation.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeAgentsRequest.Builder} avoiding the need to
* create one manually via {@link DescribeAgentsRequest#builder()}
*
*
* @param describeAgentsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.DescribeAgentsRequest.Builder} to create
* a request.
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeAgents
*/
default DescribeAgentsIterable describeAgentsPaginator(Consumer describeAgentsRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException, SdkClientException,
ApplicationDiscoveryException {
return describeAgentsPaginator(DescribeAgentsRequest.builder().applyMutation(describeAgentsRequest).build());
}
/**
*
* Takes a unique deletion task identifier as input and returns metadata about a configuration deletion task.
*
*
* @param describeBatchDeleteConfigurationTaskRequest
* @return Result of the DescribeBatchDeleteConfigurationTask operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeBatchDeleteConfigurationTask
*/
default DescribeBatchDeleteConfigurationTaskResponse describeBatchDeleteConfigurationTask(
DescribeBatchDeleteConfigurationTaskRequest describeBatchDeleteConfigurationTaskRequest)
throws AuthorizationErrorException, InvalidParameterValueException, ServerInternalErrorException,
HomeRegionNotSetException, AwsServiceException, SdkClientException, ApplicationDiscoveryException {
throw new UnsupportedOperationException();
}
/**
*
* Takes a unique deletion task identifier as input and returns metadata about a configuration deletion task.
*
*
*
* This is a convenience which creates an instance of the
* {@link DescribeBatchDeleteConfigurationTaskRequest.Builder} avoiding the need to create one manually via
* {@link DescribeBatchDeleteConfigurationTaskRequest#builder()}
*
*
* @param describeBatchDeleteConfigurationTaskRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.DescribeBatchDeleteConfigurationTaskRequest.Builder}
* to create a request.
* @return Result of the DescribeBatchDeleteConfigurationTask operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeBatchDeleteConfigurationTask
*/
default DescribeBatchDeleteConfigurationTaskResponse describeBatchDeleteConfigurationTask(
Consumer describeBatchDeleteConfigurationTaskRequest)
throws AuthorizationErrorException, InvalidParameterValueException, ServerInternalErrorException,
HomeRegionNotSetException, AwsServiceException, SdkClientException, ApplicationDiscoveryException {
return describeBatchDeleteConfigurationTask(DescribeBatchDeleteConfigurationTaskRequest.builder()
.applyMutation(describeBatchDeleteConfigurationTaskRequest).build());
}
/**
*
* Retrieves attributes for a list of configuration item IDs.
*
*
*
* All of the supplied IDs must be for the same asset type from one of the following:
*
*
* -
*
* server
*
*
* -
*
* application
*
*
* -
*
* process
*
*
* -
*
* connection
*
*
*
*
* Output fields are specific to the asset type specified. For example, the output for a server configuration
* item includes a list of attributes about the server, such as host name, operating system, number of network
* cards, etc.
*
*
* For a complete list of outputs for each asset type, see Using the DescribeConfigurations Action in the Amazon Web Services Application Discovery Service User
* Guide.
*
*
*
* @param describeConfigurationsRequest
* @return Result of the DescribeConfigurations operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeConfigurations
*/
default DescribeConfigurationsResponse describeConfigurations(DescribeConfigurationsRequest describeConfigurationsRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException, SdkClientException,
ApplicationDiscoveryException {
throw new UnsupportedOperationException();
}
/**
*
* Retrieves attributes for a list of configuration item IDs.
*
*
*
* All of the supplied IDs must be for the same asset type from one of the following:
*
*
* -
*
* server
*
*
* -
*
* application
*
*
* -
*
* process
*
*
* -
*
* connection
*
*
*
*
* Output fields are specific to the asset type specified. For example, the output for a server configuration
* item includes a list of attributes about the server, such as host name, operating system, number of network
* cards, etc.
*
*
* For a complete list of outputs for each asset type, see Using the DescribeConfigurations Action in the Amazon Web Services Application Discovery Service User
* Guide.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeConfigurationsRequest.Builder} avoiding the
* need to create one manually via {@link DescribeConfigurationsRequest#builder()}
*
*
* @param describeConfigurationsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.DescribeConfigurationsRequest.Builder}
* to create a request.
* @return Result of the DescribeConfigurations operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeConfigurations
*/
default DescribeConfigurationsResponse describeConfigurations(
Consumer describeConfigurationsRequest) throws AuthorizationErrorException,
InvalidParameterException, InvalidParameterValueException, ServerInternalErrorException, HomeRegionNotSetException,
AwsServiceException, SdkClientException, ApplicationDiscoveryException {
return describeConfigurations(DescribeConfigurationsRequest.builder().applyMutation(describeConfigurationsRequest)
.build());
}
/**
*
* Lists exports as specified by ID. All continuous exports associated with your user can be listed if you call
* DescribeContinuousExports
as is without passing any parameters.
*
*
* @param describeContinuousExportsRequest
* @return Result of the DescribeContinuousExports operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws OperationNotPermittedException
* This operation is not permitted.
* @throws ResourceNotFoundException
* The specified configuration ID was not located. Verify the configuration ID and try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeContinuousExports
*/
default DescribeContinuousExportsResponse describeContinuousExports(
DescribeContinuousExportsRequest describeContinuousExportsRequest) throws AuthorizationErrorException,
InvalidParameterException, InvalidParameterValueException, ServerInternalErrorException,
OperationNotPermittedException, ResourceNotFoundException, HomeRegionNotSetException, AwsServiceException,
SdkClientException, ApplicationDiscoveryException {
throw new UnsupportedOperationException();
}
/**
*
* Lists exports as specified by ID. All continuous exports associated with your user can be listed if you call
* DescribeContinuousExports
as is without passing any parameters.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeContinuousExportsRequest.Builder} avoiding
* the need to create one manually via {@link DescribeContinuousExportsRequest#builder()}
*
*
* @param describeContinuousExportsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.DescribeContinuousExportsRequest.Builder}
* to create a request.
* @return Result of the DescribeContinuousExports operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws OperationNotPermittedException
* This operation is not permitted.
* @throws ResourceNotFoundException
* The specified configuration ID was not located. Verify the configuration ID and try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeContinuousExports
*/
default DescribeContinuousExportsResponse describeContinuousExports(
Consumer describeContinuousExportsRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, OperationNotPermittedException, ResourceNotFoundException, HomeRegionNotSetException,
AwsServiceException, SdkClientException, ApplicationDiscoveryException {
return describeContinuousExports(DescribeContinuousExportsRequest.builder()
.applyMutation(describeContinuousExportsRequest).build());
}
/**
*
* This is a variant of
* {@link #describeContinuousExports(software.amazon.awssdk.services.applicationdiscovery.model.DescribeContinuousExportsRequest)}
* 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 Stream
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeContinuousExportsIterable responses = client.describeContinuousExportsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeContinuousExportsIterable responses = client
* .describeContinuousExportsPaginator(request);
* for (software.amazon.awssdk.services.applicationdiscovery.model.DescribeContinuousExportsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeContinuousExportsIterable responses = client.describeContinuousExportsPaginator(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
* {@link #describeContinuousExports(software.amazon.awssdk.services.applicationdiscovery.model.DescribeContinuousExportsRequest)}
* operation.
*
*
* @param describeContinuousExportsRequest
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws OperationNotPermittedException
* This operation is not permitted.
* @throws ResourceNotFoundException
* The specified configuration ID was not located. Verify the configuration ID and try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeContinuousExports
*/
default DescribeContinuousExportsIterable describeContinuousExportsPaginator(
DescribeContinuousExportsRequest describeContinuousExportsRequest) throws AuthorizationErrorException,
InvalidParameterException, InvalidParameterValueException, ServerInternalErrorException,
OperationNotPermittedException, ResourceNotFoundException, HomeRegionNotSetException, AwsServiceException,
SdkClientException, ApplicationDiscoveryException {
return new DescribeContinuousExportsIterable(this, describeContinuousExportsRequest);
}
/**
*
* This is a variant of
* {@link #describeContinuousExports(software.amazon.awssdk.services.applicationdiscovery.model.DescribeContinuousExportsRequest)}
* 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 Stream
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeContinuousExportsIterable responses = client.describeContinuousExportsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeContinuousExportsIterable responses = client
* .describeContinuousExportsPaginator(request);
* for (software.amazon.awssdk.services.applicationdiscovery.model.DescribeContinuousExportsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeContinuousExportsIterable responses = client.describeContinuousExportsPaginator(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
* {@link #describeContinuousExports(software.amazon.awssdk.services.applicationdiscovery.model.DescribeContinuousExportsRequest)}
* operation.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeContinuousExportsRequest.Builder} avoiding
* the need to create one manually via {@link DescribeContinuousExportsRequest#builder()}
*
*
* @param describeContinuousExportsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.DescribeContinuousExportsRequest.Builder}
* to create a request.
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws OperationNotPermittedException
* This operation is not permitted.
* @throws ResourceNotFoundException
* The specified configuration ID was not located. Verify the configuration ID and try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeContinuousExports
*/
default DescribeContinuousExportsIterable describeContinuousExportsPaginator(
Consumer describeContinuousExportsRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, OperationNotPermittedException, ResourceNotFoundException, HomeRegionNotSetException,
AwsServiceException, SdkClientException, ApplicationDiscoveryException {
return describeContinuousExportsPaginator(DescribeContinuousExportsRequest.builder()
.applyMutation(describeContinuousExportsRequest).build());
}
/**
*
* Retrieve status of one or more export tasks. You can retrieve the status of up to 100 export tasks.
*
*
* @param describeExportTasksRequest
* @return Result of the DescribeExportTasks operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeExportTasks
*/
default DescribeExportTasksResponse describeExportTasks(DescribeExportTasksRequest describeExportTasksRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException, SdkClientException,
ApplicationDiscoveryException {
throw new UnsupportedOperationException();
}
/**
*
* Retrieve status of one or more export tasks. You can retrieve the status of up to 100 export tasks.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeExportTasksRequest.Builder} avoiding the
* need to create one manually via {@link DescribeExportTasksRequest#builder()}
*
*
* @param describeExportTasksRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.DescribeExportTasksRequest.Builder} to
* create a request.
* @return Result of the DescribeExportTasks operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeExportTasks
*/
default DescribeExportTasksResponse describeExportTasks(
Consumer describeExportTasksRequest) throws AuthorizationErrorException,
InvalidParameterException, InvalidParameterValueException, ServerInternalErrorException, HomeRegionNotSetException,
AwsServiceException, SdkClientException, ApplicationDiscoveryException {
return describeExportTasks(DescribeExportTasksRequest.builder().applyMutation(describeExportTasksRequest).build());
}
/**
*
* Retrieve status of one or more export tasks. You can retrieve the status of up to 100 export tasks.
*
*
* @return Result of the DescribeExportTasks operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeExportTasks
* @see #describeExportTasks(DescribeExportTasksRequest)
*/
default DescribeExportTasksResponse describeExportTasks() throws AuthorizationErrorException, InvalidParameterException,
InvalidParameterValueException, ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException,
SdkClientException, ApplicationDiscoveryException {
return describeExportTasks(DescribeExportTasksRequest.builder().build());
}
/**
*
* This is a variant of
* {@link #describeExportTasks(software.amazon.awssdk.services.applicationdiscovery.model.DescribeExportTasksRequest)}
* 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 Stream
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeExportTasksIterable responses = client.describeExportTasksPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeExportTasksIterable responses = client
* .describeExportTasksPaginator(request);
* for (software.amazon.awssdk.services.applicationdiscovery.model.DescribeExportTasksResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeExportTasksIterable responses = client.describeExportTasksPaginator(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
* {@link #describeExportTasks(software.amazon.awssdk.services.applicationdiscovery.model.DescribeExportTasksRequest)}
* operation.
*
*
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeExportTasks
* @see #describeExportTasksPaginator(DescribeExportTasksRequest)
*/
default DescribeExportTasksIterable describeExportTasksPaginator() throws AuthorizationErrorException,
InvalidParameterException, InvalidParameterValueException, ServerInternalErrorException, HomeRegionNotSetException,
AwsServiceException, SdkClientException, ApplicationDiscoveryException {
return describeExportTasksPaginator(DescribeExportTasksRequest.builder().build());
}
/**
*
* This is a variant of
* {@link #describeExportTasks(software.amazon.awssdk.services.applicationdiscovery.model.DescribeExportTasksRequest)}
* 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 Stream
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeExportTasksIterable responses = client.describeExportTasksPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeExportTasksIterable responses = client
* .describeExportTasksPaginator(request);
* for (software.amazon.awssdk.services.applicationdiscovery.model.DescribeExportTasksResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeExportTasksIterable responses = client.describeExportTasksPaginator(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
* {@link #describeExportTasks(software.amazon.awssdk.services.applicationdiscovery.model.DescribeExportTasksRequest)}
* operation.
*
*
* @param describeExportTasksRequest
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeExportTasks
*/
default DescribeExportTasksIterable describeExportTasksPaginator(DescribeExportTasksRequest describeExportTasksRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException, SdkClientException,
ApplicationDiscoveryException {
return new DescribeExportTasksIterable(this, describeExportTasksRequest);
}
/**
*
* This is a variant of
* {@link #describeExportTasks(software.amazon.awssdk.services.applicationdiscovery.model.DescribeExportTasksRequest)}
* 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 Stream
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeExportTasksIterable responses = client.describeExportTasksPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeExportTasksIterable responses = client
* .describeExportTasksPaginator(request);
* for (software.amazon.awssdk.services.applicationdiscovery.model.DescribeExportTasksResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeExportTasksIterable responses = client.describeExportTasksPaginator(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
* {@link #describeExportTasks(software.amazon.awssdk.services.applicationdiscovery.model.DescribeExportTasksRequest)}
* operation.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeExportTasksRequest.Builder} avoiding the
* need to create one manually via {@link DescribeExportTasksRequest#builder()}
*
*
* @param describeExportTasksRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.DescribeExportTasksRequest.Builder} to
* create a request.
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeExportTasks
*/
default DescribeExportTasksIterable describeExportTasksPaginator(
Consumer describeExportTasksRequest) throws AuthorizationErrorException,
InvalidParameterException, InvalidParameterValueException, ServerInternalErrorException, HomeRegionNotSetException,
AwsServiceException, SdkClientException, ApplicationDiscoveryException {
return describeExportTasksPaginator(DescribeExportTasksRequest.builder().applyMutation(describeExportTasksRequest)
.build());
}
/**
*
* Returns an array of import tasks for your account, including status information, times, IDs, the Amazon S3 Object
* URL for the import file, and more.
*
*
* @param describeImportTasksRequest
* @return Result of the DescribeImportTasks operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeImportTasks
*/
default DescribeImportTasksResponse describeImportTasks(DescribeImportTasksRequest describeImportTasksRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException, SdkClientException,
ApplicationDiscoveryException {
throw new UnsupportedOperationException();
}
/**
*
* Returns an array of import tasks for your account, including status information, times, IDs, the Amazon S3 Object
* URL for the import file, and more.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeImportTasksRequest.Builder} avoiding the
* need to create one manually via {@link DescribeImportTasksRequest#builder()}
*
*
* @param describeImportTasksRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.DescribeImportTasksRequest.Builder} to
* create a request.
* @return Result of the DescribeImportTasks operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeImportTasks
*/
default DescribeImportTasksResponse describeImportTasks(
Consumer describeImportTasksRequest) throws AuthorizationErrorException,
InvalidParameterException, InvalidParameterValueException, ServerInternalErrorException, HomeRegionNotSetException,
AwsServiceException, SdkClientException, ApplicationDiscoveryException {
return describeImportTasks(DescribeImportTasksRequest.builder().applyMutation(describeImportTasksRequest).build());
}
/**
*
* Returns an array of import tasks for your account, including status information, times, IDs, the Amazon S3 Object
* URL for the import file, and more.
*
*
* @return Result of the DescribeImportTasks operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeImportTasks
* @see #describeImportTasks(DescribeImportTasksRequest)
*/
default DescribeImportTasksResponse describeImportTasks() throws AuthorizationErrorException, InvalidParameterException,
InvalidParameterValueException, ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException,
SdkClientException, ApplicationDiscoveryException {
return describeImportTasks(DescribeImportTasksRequest.builder().build());
}
/**
*
* This is a variant of
* {@link #describeImportTasks(software.amazon.awssdk.services.applicationdiscovery.model.DescribeImportTasksRequest)}
* 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 Stream
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeImportTasksIterable responses = client.describeImportTasksPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeImportTasksIterable responses = client
* .describeImportTasksPaginator(request);
* for (software.amazon.awssdk.services.applicationdiscovery.model.DescribeImportTasksResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeImportTasksIterable responses = client.describeImportTasksPaginator(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
* {@link #describeImportTasks(software.amazon.awssdk.services.applicationdiscovery.model.DescribeImportTasksRequest)}
* operation.
*
*
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeImportTasks
* @see #describeImportTasksPaginator(DescribeImportTasksRequest)
*/
default DescribeImportTasksIterable describeImportTasksPaginator() throws AuthorizationErrorException,
InvalidParameterException, InvalidParameterValueException, ServerInternalErrorException, HomeRegionNotSetException,
AwsServiceException, SdkClientException, ApplicationDiscoveryException {
return describeImportTasksPaginator(DescribeImportTasksRequest.builder().build());
}
/**
*
* This is a variant of
* {@link #describeImportTasks(software.amazon.awssdk.services.applicationdiscovery.model.DescribeImportTasksRequest)}
* 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 Stream
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeImportTasksIterable responses = client.describeImportTasksPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeImportTasksIterable responses = client
* .describeImportTasksPaginator(request);
* for (software.amazon.awssdk.services.applicationdiscovery.model.DescribeImportTasksResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeImportTasksIterable responses = client.describeImportTasksPaginator(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
* {@link #describeImportTasks(software.amazon.awssdk.services.applicationdiscovery.model.DescribeImportTasksRequest)}
* operation.
*
*
* @param describeImportTasksRequest
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeImportTasks
*/
default DescribeImportTasksIterable describeImportTasksPaginator(DescribeImportTasksRequest describeImportTasksRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException, SdkClientException,
ApplicationDiscoveryException {
return new DescribeImportTasksIterable(this, describeImportTasksRequest);
}
/**
*
* This is a variant of
* {@link #describeImportTasks(software.amazon.awssdk.services.applicationdiscovery.model.DescribeImportTasksRequest)}
* 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 Stream
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeImportTasksIterable responses = client.describeImportTasksPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeImportTasksIterable responses = client
* .describeImportTasksPaginator(request);
* for (software.amazon.awssdk.services.applicationdiscovery.model.DescribeImportTasksResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeImportTasksIterable responses = client.describeImportTasksPaginator(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
* {@link #describeImportTasks(software.amazon.awssdk.services.applicationdiscovery.model.DescribeImportTasksRequest)}
* operation.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeImportTasksRequest.Builder} avoiding the
* need to create one manually via {@link DescribeImportTasksRequest#builder()}
*
*
* @param describeImportTasksRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.DescribeImportTasksRequest.Builder} to
* create a request.
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeImportTasks
*/
default DescribeImportTasksIterable describeImportTasksPaginator(
Consumer describeImportTasksRequest) throws AuthorizationErrorException,
InvalidParameterException, InvalidParameterValueException, ServerInternalErrorException, HomeRegionNotSetException,
AwsServiceException, SdkClientException, ApplicationDiscoveryException {
return describeImportTasksPaginator(DescribeImportTasksRequest.builder().applyMutation(describeImportTasksRequest)
.build());
}
/**
*
* Retrieves a list of configuration items that have tags as specified by the key-value pairs, name and value,
* passed to the optional parameter filters
.
*
*
* There are three valid tag filter names:
*
*
* -
*
* tagKey
*
*
* -
*
* tagValue
*
*
* -
*
* configurationId
*
*
*
*
* Also, all configuration items associated with your user that have tags can be listed if you call
* DescribeTags
as is without passing any parameters.
*
*
* @param describeTagsRequest
* @return Result of the DescribeTags operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws ResourceNotFoundException
* The specified configuration ID was not located. Verify the configuration ID and try again.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeTags
*/
default DescribeTagsResponse describeTags(DescribeTagsRequest describeTagsRequest) throws AuthorizationErrorException,
ResourceNotFoundException, InvalidParameterException, InvalidParameterValueException, ServerInternalErrorException,
HomeRegionNotSetException, AwsServiceException, SdkClientException, ApplicationDiscoveryException {
throw new UnsupportedOperationException();
}
/**
*
* Retrieves a list of configuration items that have tags as specified by the key-value pairs, name and value,
* passed to the optional parameter filters
.
*
*
* There are three valid tag filter names:
*
*
* -
*
* tagKey
*
*
* -
*
* tagValue
*
*
* -
*
* configurationId
*
*
*
*
* Also, all configuration items associated with your user that have tags can be listed if you call
* DescribeTags
as is without passing any parameters.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeTagsRequest.Builder} avoiding the need to
* create one manually via {@link DescribeTagsRequest#builder()}
*
*
* @param describeTagsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.DescribeTagsRequest.Builder} to create a
* request.
* @return Result of the DescribeTags operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws ResourceNotFoundException
* The specified configuration ID was not located. Verify the configuration ID and try again.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeTags
*/
default DescribeTagsResponse describeTags(Consumer describeTagsRequest)
throws AuthorizationErrorException, ResourceNotFoundException, InvalidParameterException,
InvalidParameterValueException, ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException,
SdkClientException, ApplicationDiscoveryException {
return describeTags(DescribeTagsRequest.builder().applyMutation(describeTagsRequest).build());
}
/**
*
* Retrieves a list of configuration items that have tags as specified by the key-value pairs, name and value,
* passed to the optional parameter filters
.
*
*
* There are three valid tag filter names:
*
*
* -
*
* tagKey
*
*
* -
*
* tagValue
*
*
* -
*
* configurationId
*
*
*
*
* Also, all configuration items associated with your user that have tags can be listed if you call
* DescribeTags
as is without passing any parameters.
*
*
* @return Result of the DescribeTags operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws ResourceNotFoundException
* The specified configuration ID was not located. Verify the configuration ID and try again.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeTags
* @see #describeTags(DescribeTagsRequest)
*/
default DescribeTagsResponse describeTags() throws AuthorizationErrorException, ResourceNotFoundException,
InvalidParameterException, InvalidParameterValueException, ServerInternalErrorException, HomeRegionNotSetException,
AwsServiceException, SdkClientException, ApplicationDiscoveryException {
return describeTags(DescribeTagsRequest.builder().build());
}
/**
*
* This is a variant of
* {@link #describeTags(software.amazon.awssdk.services.applicationdiscovery.model.DescribeTagsRequest)} 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 Stream
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeTagsIterable responses = client.describeTagsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeTagsIterable responses = client
* .describeTagsPaginator(request);
* for (software.amazon.awssdk.services.applicationdiscovery.model.DescribeTagsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeTagsIterable responses = client.describeTagsPaginator(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
* {@link #describeTags(software.amazon.awssdk.services.applicationdiscovery.model.DescribeTagsRequest)}
* operation.
*
*
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws ResourceNotFoundException
* The specified configuration ID was not located. Verify the configuration ID and try again.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeTags
* @see #describeTagsPaginator(DescribeTagsRequest)
*/
default DescribeTagsIterable describeTagsPaginator() throws AuthorizationErrorException, ResourceNotFoundException,
InvalidParameterException, InvalidParameterValueException, ServerInternalErrorException, HomeRegionNotSetException,
AwsServiceException, SdkClientException, ApplicationDiscoveryException {
return describeTagsPaginator(DescribeTagsRequest.builder().build());
}
/**
*
* This is a variant of
* {@link #describeTags(software.amazon.awssdk.services.applicationdiscovery.model.DescribeTagsRequest)} 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 Stream
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeTagsIterable responses = client.describeTagsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeTagsIterable responses = client
* .describeTagsPaginator(request);
* for (software.amazon.awssdk.services.applicationdiscovery.model.DescribeTagsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeTagsIterable responses = client.describeTagsPaginator(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
* {@link #describeTags(software.amazon.awssdk.services.applicationdiscovery.model.DescribeTagsRequest)}
* operation.
*
*
* @param describeTagsRequest
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws ResourceNotFoundException
* The specified configuration ID was not located. Verify the configuration ID and try again.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeTags
*/
default DescribeTagsIterable describeTagsPaginator(DescribeTagsRequest describeTagsRequest)
throws AuthorizationErrorException, ResourceNotFoundException, InvalidParameterException,
InvalidParameterValueException, ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException,
SdkClientException, ApplicationDiscoveryException {
return new DescribeTagsIterable(this, describeTagsRequest);
}
/**
*
* This is a variant of
* {@link #describeTags(software.amazon.awssdk.services.applicationdiscovery.model.DescribeTagsRequest)} 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 Stream
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeTagsIterable responses = client.describeTagsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeTagsIterable responses = client
* .describeTagsPaginator(request);
* for (software.amazon.awssdk.services.applicationdiscovery.model.DescribeTagsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeTagsIterable responses = client.describeTagsPaginator(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
* {@link #describeTags(software.amazon.awssdk.services.applicationdiscovery.model.DescribeTagsRequest)}
* operation.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeTagsRequest.Builder} avoiding the need to
* create one manually via {@link DescribeTagsRequest#builder()}
*
*
* @param describeTagsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.DescribeTagsRequest.Builder} to create a
* request.
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws ResourceNotFoundException
* The specified configuration ID was not located. Verify the configuration ID and try again.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DescribeTags
*/
default DescribeTagsIterable describeTagsPaginator(Consumer describeTagsRequest)
throws AuthorizationErrorException, ResourceNotFoundException, InvalidParameterException,
InvalidParameterValueException, ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException,
SdkClientException, ApplicationDiscoveryException {
return describeTagsPaginator(DescribeTagsRequest.builder().applyMutation(describeTagsRequest).build());
}
/**
*
* Disassociates one or more configuration items from an application.
*
*
* @param disassociateConfigurationItemsFromApplicationRequest
* @return Result of the DisassociateConfigurationItemsFromApplication operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DisassociateConfigurationItemsFromApplication
*/
default DisassociateConfigurationItemsFromApplicationResponse disassociateConfigurationItemsFromApplication(
DisassociateConfigurationItemsFromApplicationRequest disassociateConfigurationItemsFromApplicationRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException, SdkClientException,
ApplicationDiscoveryException {
throw new UnsupportedOperationException();
}
/**
*
* Disassociates one or more configuration items from an application.
*
*
*
* This is a convenience which creates an instance of the
* {@link DisassociateConfigurationItemsFromApplicationRequest.Builder} avoiding the need to create one manually via
* {@link DisassociateConfigurationItemsFromApplicationRequest#builder()}
*
*
* @param disassociateConfigurationItemsFromApplicationRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.DisassociateConfigurationItemsFromApplicationRequest.Builder}
* to create a request.
* @return Result of the DisassociateConfigurationItemsFromApplication operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.DisassociateConfigurationItemsFromApplication
*/
default DisassociateConfigurationItemsFromApplicationResponse disassociateConfigurationItemsFromApplication(
Consumer disassociateConfigurationItemsFromApplicationRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException, SdkClientException,
ApplicationDiscoveryException {
return disassociateConfigurationItemsFromApplication(DisassociateConfigurationItemsFromApplicationRequest.builder()
.applyMutation(disassociateConfigurationItemsFromApplicationRequest).build());
}
/**
*
* Retrieves a short summary of discovered assets.
*
*
* This API operation takes no request parameters and is called as is at the command prompt as shown in the example.
*
*
* @param getDiscoverySummaryRequest
* @return Result of the GetDiscoverySummary operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.GetDiscoverySummary
*/
default GetDiscoverySummaryResponse getDiscoverySummary(GetDiscoverySummaryRequest getDiscoverySummaryRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException, SdkClientException,
ApplicationDiscoveryException {
throw new UnsupportedOperationException();
}
/**
*
* Retrieves a short summary of discovered assets.
*
*
* This API operation takes no request parameters and is called as is at the command prompt as shown in the example.
*
*
*
* This is a convenience which creates an instance of the {@link GetDiscoverySummaryRequest.Builder} avoiding the
* need to create one manually via {@link GetDiscoverySummaryRequest#builder()}
*
*
* @param getDiscoverySummaryRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.GetDiscoverySummaryRequest.Builder} to
* create a request.
* @return Result of the GetDiscoverySummary operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.GetDiscoverySummary
*/
default GetDiscoverySummaryResponse getDiscoverySummary(
Consumer getDiscoverySummaryRequest) throws AuthorizationErrorException,
InvalidParameterException, InvalidParameterValueException, ServerInternalErrorException, HomeRegionNotSetException,
AwsServiceException, SdkClientException, ApplicationDiscoveryException {
return getDiscoverySummary(GetDiscoverySummaryRequest.builder().applyMutation(getDiscoverySummaryRequest).build());
}
/**
*
* Retrieves a short summary of discovered assets.
*
*
* This API operation takes no request parameters and is called as is at the command prompt as shown in the example.
*
*
* @return Result of the GetDiscoverySummary operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.GetDiscoverySummary
* @see #getDiscoverySummary(GetDiscoverySummaryRequest)
*/
default GetDiscoverySummaryResponse getDiscoverySummary() throws AuthorizationErrorException, InvalidParameterException,
InvalidParameterValueException, ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException,
SdkClientException, ApplicationDiscoveryException {
return getDiscoverySummary(GetDiscoverySummaryRequest.builder().build());
}
/**
*
* Retrieves a list of configuration items as specified by the value passed to the required parameter
* configurationType
. Optional filtering may be applied to refine search results.
*
*
* @param listConfigurationsRequest
* @return Result of the ListConfigurations operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws ResourceNotFoundException
* The specified configuration ID was not located. Verify the configuration ID and try again.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.ListConfigurations
*/
default ListConfigurationsResponse listConfigurations(ListConfigurationsRequest listConfigurationsRequest)
throws AuthorizationErrorException, ResourceNotFoundException, InvalidParameterException,
InvalidParameterValueException, ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException,
SdkClientException, ApplicationDiscoveryException {
throw new UnsupportedOperationException();
}
/**
*
* Retrieves a list of configuration items as specified by the value passed to the required parameter
* configurationType
. Optional filtering may be applied to refine search results.
*
*
*
* This is a convenience which creates an instance of the {@link ListConfigurationsRequest.Builder} avoiding the
* need to create one manually via {@link ListConfigurationsRequest#builder()}
*
*
* @param listConfigurationsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.ListConfigurationsRequest.Builder} to
* create a request.
* @return Result of the ListConfigurations operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws ResourceNotFoundException
* The specified configuration ID was not located. Verify the configuration ID and try again.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.ListConfigurations
*/
default ListConfigurationsResponse listConfigurations(Consumer listConfigurationsRequest)
throws AuthorizationErrorException, ResourceNotFoundException, InvalidParameterException,
InvalidParameterValueException, ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException,
SdkClientException, ApplicationDiscoveryException {
return listConfigurations(ListConfigurationsRequest.builder().applyMutation(listConfigurationsRequest).build());
}
/**
*
* This is a variant of
* {@link #listConfigurations(software.amazon.awssdk.services.applicationdiscovery.model.ListConfigurationsRequest)}
* 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 Stream
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.ListConfigurationsIterable responses = client.listConfigurationsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.applicationdiscovery.paginators.ListConfigurationsIterable responses = client
* .listConfigurationsPaginator(request);
* for (software.amazon.awssdk.services.applicationdiscovery.model.ListConfigurationsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.ListConfigurationsIterable responses = client.listConfigurationsPaginator(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
* {@link #listConfigurations(software.amazon.awssdk.services.applicationdiscovery.model.ListConfigurationsRequest)}
* operation.
*
*
* @param listConfigurationsRequest
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws ResourceNotFoundException
* The specified configuration ID was not located. Verify the configuration ID and try again.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.ListConfigurations
*/
default ListConfigurationsIterable listConfigurationsPaginator(ListConfigurationsRequest listConfigurationsRequest)
throws AuthorizationErrorException, ResourceNotFoundException, InvalidParameterException,
InvalidParameterValueException, ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException,
SdkClientException, ApplicationDiscoveryException {
return new ListConfigurationsIterable(this, listConfigurationsRequest);
}
/**
*
* This is a variant of
* {@link #listConfigurations(software.amazon.awssdk.services.applicationdiscovery.model.ListConfigurationsRequest)}
* 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 Stream
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.ListConfigurationsIterable responses = client.listConfigurationsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.applicationdiscovery.paginators.ListConfigurationsIterable responses = client
* .listConfigurationsPaginator(request);
* for (software.amazon.awssdk.services.applicationdiscovery.model.ListConfigurationsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.applicationdiscovery.paginators.ListConfigurationsIterable responses = client.listConfigurationsPaginator(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
* {@link #listConfigurations(software.amazon.awssdk.services.applicationdiscovery.model.ListConfigurationsRequest)}
* operation.
*
*
*
* This is a convenience which creates an instance of the {@link ListConfigurationsRequest.Builder} avoiding the
* need to create one manually via {@link ListConfigurationsRequest#builder()}
*
*
* @param listConfigurationsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.ListConfigurationsRequest.Builder} to
* create a request.
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws ResourceNotFoundException
* The specified configuration ID was not located. Verify the configuration ID and try again.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.ListConfigurations
*/
default ListConfigurationsIterable listConfigurationsPaginator(
Consumer listConfigurationsRequest) throws AuthorizationErrorException,
ResourceNotFoundException, InvalidParameterException, InvalidParameterValueException, ServerInternalErrorException,
HomeRegionNotSetException, AwsServiceException, SdkClientException, ApplicationDiscoveryException {
return listConfigurationsPaginator(ListConfigurationsRequest.builder().applyMutation(listConfigurationsRequest).build());
}
/**
*
* Retrieves a list of servers that are one network hop away from a specified server.
*
*
* @param listServerNeighborsRequest
* @return Result of the ListServerNeighbors operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.ListServerNeighbors
*/
default ListServerNeighborsResponse listServerNeighbors(ListServerNeighborsRequest listServerNeighborsRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException, SdkClientException,
ApplicationDiscoveryException {
throw new UnsupportedOperationException();
}
/**
*
* Retrieves a list of servers that are one network hop away from a specified server.
*
*
*
* This is a convenience which creates an instance of the {@link ListServerNeighborsRequest.Builder} avoiding the
* need to create one manually via {@link ListServerNeighborsRequest#builder()}
*
*
* @param listServerNeighborsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.ListServerNeighborsRequest.Builder} to
* create a request.
* @return Result of the ListServerNeighbors operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.ListServerNeighbors
*/
default ListServerNeighborsResponse listServerNeighbors(
Consumer listServerNeighborsRequest) throws AuthorizationErrorException,
InvalidParameterException, InvalidParameterValueException, ServerInternalErrorException, HomeRegionNotSetException,
AwsServiceException, SdkClientException, ApplicationDiscoveryException {
return listServerNeighbors(ListServerNeighborsRequest.builder().applyMutation(listServerNeighborsRequest).build());
}
/**
*
* Takes a list of configurationId as input and starts an asynchronous deletion task to remove the
* configurationItems. Returns a unique deletion task identifier.
*
*
* @param startBatchDeleteConfigurationTaskRequest
* @return Result of the StartBatchDeleteConfigurationTask operation returned by the service.
* @throws LimitExceededException
* The limit of 200 configuration IDs per request has been exceeded.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws OperationNotPermittedException
* This operation is not permitted.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.StartBatchDeleteConfigurationTask
*/
default StartBatchDeleteConfigurationTaskResponse startBatchDeleteConfigurationTask(
StartBatchDeleteConfigurationTaskRequest startBatchDeleteConfigurationTaskRequest) throws LimitExceededException,
AuthorizationErrorException, ServerInternalErrorException, HomeRegionNotSetException, OperationNotPermittedException,
InvalidParameterValueException, AwsServiceException, SdkClientException, ApplicationDiscoveryException {
throw new UnsupportedOperationException();
}
/**
*
* Takes a list of configurationId as input and starts an asynchronous deletion task to remove the
* configurationItems. Returns a unique deletion task identifier.
*
*
*
* This is a convenience which creates an instance of the {@link StartBatchDeleteConfigurationTaskRequest.Builder}
* avoiding the need to create one manually via {@link StartBatchDeleteConfigurationTaskRequest#builder()}
*
*
* @param startBatchDeleteConfigurationTaskRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.StartBatchDeleteConfigurationTaskRequest.Builder}
* to create a request.
* @return Result of the StartBatchDeleteConfigurationTask operation returned by the service.
* @throws LimitExceededException
* The limit of 200 configuration IDs per request has been exceeded.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws OperationNotPermittedException
* This operation is not permitted.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.StartBatchDeleteConfigurationTask
*/
default StartBatchDeleteConfigurationTaskResponse startBatchDeleteConfigurationTask(
Consumer startBatchDeleteConfigurationTaskRequest)
throws LimitExceededException, AuthorizationErrorException, ServerInternalErrorException, HomeRegionNotSetException,
OperationNotPermittedException, InvalidParameterValueException, AwsServiceException, SdkClientException,
ApplicationDiscoveryException {
return startBatchDeleteConfigurationTask(StartBatchDeleteConfigurationTaskRequest.builder()
.applyMutation(startBatchDeleteConfigurationTaskRequest).build());
}
/**
*
* Start the continuous flow of agent's discovered data into Amazon Athena.
*
*
* @param startContinuousExportRequest
* @return Result of the StartContinuousExport operation returned by the service.
* @throws ConflictErrorException
* Conflict error.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws OperationNotPermittedException
* This operation is not permitted.
* @throws ResourceInUseException
* This issue occurs when the same clientRequestToken
is used with the
* StartImportTask
action, but with different parameters. For example, you use the same request
* token but have two different import URLs, you can encounter this issue. If the import tasks are meant to
* be different, use a different clientRequestToken
, and try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.StartContinuousExport
*/
default StartContinuousExportResponse startContinuousExport(StartContinuousExportRequest startContinuousExportRequest)
throws ConflictErrorException, AuthorizationErrorException, InvalidParameterException,
InvalidParameterValueException, ServerInternalErrorException, OperationNotPermittedException, ResourceInUseException,
HomeRegionNotSetException, AwsServiceException, SdkClientException, ApplicationDiscoveryException {
throw new UnsupportedOperationException();
}
/**
*
* Start the continuous flow of agent's discovered data into Amazon Athena.
*
*
*
* This is a convenience which creates an instance of the {@link StartContinuousExportRequest.Builder} avoiding the
* need to create one manually via {@link StartContinuousExportRequest#builder()}
*
*
* @param startContinuousExportRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.StartContinuousExportRequest.Builder} to
* create a request.
* @return Result of the StartContinuousExport operation returned by the service.
* @throws ConflictErrorException
* Conflict error.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws OperationNotPermittedException
* This operation is not permitted.
* @throws ResourceInUseException
* This issue occurs when the same clientRequestToken
is used with the
* StartImportTask
action, but with different parameters. For example, you use the same request
* token but have two different import URLs, you can encounter this issue. If the import tasks are meant to
* be different, use a different clientRequestToken
, and try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.StartContinuousExport
*/
default StartContinuousExportResponse startContinuousExport(
Consumer startContinuousExportRequest) throws ConflictErrorException,
AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException, ServerInternalErrorException,
OperationNotPermittedException, ResourceInUseException, HomeRegionNotSetException, AwsServiceException,
SdkClientException, ApplicationDiscoveryException {
return startContinuousExport(StartContinuousExportRequest.builder().applyMutation(startContinuousExportRequest).build());
}
/**
*
* Instructs the specified agents to start collecting data.
*
*
* @param startDataCollectionByAgentIdsRequest
* @return Result of the StartDataCollectionByAgentIds operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.StartDataCollectionByAgentIds
*/
default StartDataCollectionByAgentIdsResponse startDataCollectionByAgentIds(
StartDataCollectionByAgentIdsRequest startDataCollectionByAgentIdsRequest) throws AuthorizationErrorException,
InvalidParameterException, InvalidParameterValueException, ServerInternalErrorException, HomeRegionNotSetException,
AwsServiceException, SdkClientException, ApplicationDiscoveryException {
throw new UnsupportedOperationException();
}
/**
*
* Instructs the specified agents to start collecting data.
*
*
*
* This is a convenience which creates an instance of the {@link StartDataCollectionByAgentIdsRequest.Builder}
* avoiding the need to create one manually via {@link StartDataCollectionByAgentIdsRequest#builder()}
*
*
* @param startDataCollectionByAgentIdsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.StartDataCollectionByAgentIdsRequest.Builder}
* to create a request.
* @return Result of the StartDataCollectionByAgentIds operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.StartDataCollectionByAgentIds
*/
default StartDataCollectionByAgentIdsResponse startDataCollectionByAgentIds(
Consumer startDataCollectionByAgentIdsRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException, SdkClientException,
ApplicationDiscoveryException {
return startDataCollectionByAgentIds(StartDataCollectionByAgentIdsRequest.builder()
.applyMutation(startDataCollectionByAgentIdsRequest).build());
}
/**
*
* Begins the export of a discovered data report to an Amazon S3 bucket managed by Amazon Web Services.
*
*
*
* Exports might provide an estimate of fees and savings based on certain information that you provide. Fee
* estimates do not include any taxes that might apply. Your actual fees and savings depend on a variety of factors,
* including your actual usage of Amazon Web Services services, which might vary from the estimates provided in this
* report.
*
*
*
* If you do not specify preferences
or agentIds
in the filter, a summary of all servers,
* applications, tags, and performance is generated. This data is an aggregation of all server data collected
* through on-premises tooling, file import, application grouping and applying tags.
*
*
* If you specify agentIds
in a filter, the task exports up to 72 hours of detailed data collected by
* the identified Application Discovery Agent, including network, process, and performance details. A time range for
* exported agent data may be set by using startTime
and endTime
. Export of detailed agent
* data is limited to five concurrently running exports. Export of detailed agent data is limited to two exports per
* day.
*
*
* If you enable ec2RecommendationsPreferences
in preferences
, an Amazon EC2 instance
* matching the characteristics of each server in Application Discovery Service is generated. Changing the
* attributes of the ec2RecommendationsPreferences
changes the criteria of the recommendation.
*
*
* @param startExportTaskRequest
* @return Result of the StartExportTask operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws OperationNotPermittedException
* This operation is not permitted.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.StartExportTask
*/
default StartExportTaskResponse startExportTask(StartExportTaskRequest startExportTaskRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, OperationNotPermittedException, HomeRegionNotSetException, AwsServiceException,
SdkClientException, ApplicationDiscoveryException {
throw new UnsupportedOperationException();
}
/**
*
* Begins the export of a discovered data report to an Amazon S3 bucket managed by Amazon Web Services.
*
*
*
* Exports might provide an estimate of fees and savings based on certain information that you provide. Fee
* estimates do not include any taxes that might apply. Your actual fees and savings depend on a variety of factors,
* including your actual usage of Amazon Web Services services, which might vary from the estimates provided in this
* report.
*
*
*
* If you do not specify preferences
or agentIds
in the filter, a summary of all servers,
* applications, tags, and performance is generated. This data is an aggregation of all server data collected
* through on-premises tooling, file import, application grouping and applying tags.
*
*
* If you specify agentIds
in a filter, the task exports up to 72 hours of detailed data collected by
* the identified Application Discovery Agent, including network, process, and performance details. A time range for
* exported agent data may be set by using startTime
and endTime
. Export of detailed agent
* data is limited to five concurrently running exports. Export of detailed agent data is limited to two exports per
* day.
*
*
* If you enable ec2RecommendationsPreferences
in preferences
, an Amazon EC2 instance
* matching the characteristics of each server in Application Discovery Service is generated. Changing the
* attributes of the ec2RecommendationsPreferences
changes the criteria of the recommendation.
*
*
*
* This is a convenience which creates an instance of the {@link StartExportTaskRequest.Builder} avoiding the need
* to create one manually via {@link StartExportTaskRequest#builder()}
*
*
* @param startExportTaskRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.StartExportTaskRequest.Builder} to
* create a request.
* @return Result of the StartExportTask operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws OperationNotPermittedException
* This operation is not permitted.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.StartExportTask
*/
default StartExportTaskResponse startExportTask(Consumer startExportTaskRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, OperationNotPermittedException, HomeRegionNotSetException, AwsServiceException,
SdkClientException, ApplicationDiscoveryException {
return startExportTask(StartExportTaskRequest.builder().applyMutation(startExportTaskRequest).build());
}
/**
*
* Begins the export of a discovered data report to an Amazon S3 bucket managed by Amazon Web Services.
*
*
*
* Exports might provide an estimate of fees and savings based on certain information that you provide. Fee
* estimates do not include any taxes that might apply. Your actual fees and savings depend on a variety of factors,
* including your actual usage of Amazon Web Services services, which might vary from the estimates provided in this
* report.
*
*
*
* If you do not specify preferences
or agentIds
in the filter, a summary of all servers,
* applications, tags, and performance is generated. This data is an aggregation of all server data collected
* through on-premises tooling, file import, application grouping and applying tags.
*
*
* If you specify agentIds
in a filter, the task exports up to 72 hours of detailed data collected by
* the identified Application Discovery Agent, including network, process, and performance details. A time range for
* exported agent data may be set by using startTime
and endTime
. Export of detailed agent
* data is limited to five concurrently running exports. Export of detailed agent data is limited to two exports per
* day.
*
*
* If you enable ec2RecommendationsPreferences
in preferences
, an Amazon EC2 instance
* matching the characteristics of each server in Application Discovery Service is generated. Changing the
* attributes of the ec2RecommendationsPreferences
changes the criteria of the recommendation.
*
*
* @return Result of the StartExportTask operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws OperationNotPermittedException
* This operation is not permitted.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.StartExportTask
* @see #startExportTask(StartExportTaskRequest)
*/
default StartExportTaskResponse startExportTask() throws AuthorizationErrorException, InvalidParameterException,
InvalidParameterValueException, ServerInternalErrorException, OperationNotPermittedException,
HomeRegionNotSetException, AwsServiceException, SdkClientException, ApplicationDiscoveryException {
return startExportTask(StartExportTaskRequest.builder().build());
}
/**
*
* Starts an import task, which allows you to import details of your on-premises environment directly into Amazon
* Web Services Migration Hub without having to use the Amazon Web Services Application Discovery Service
* (Application Discovery Service) tools such as the Amazon Web Services Application Discovery Service Agentless
* Collector or Application Discovery Agent. This gives you the option to perform migration assessment and planning
* directly from your imported data, including the ability to group your devices as applications and track their
* migration status.
*
*
* To start an import request, do this:
*
*
* -
*
* Download the specially formatted comma separated value (CSV) import template, which you can find here: https://s3.us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv.
*
*
* -
*
* Fill out the template with your server and application data.
*
*
* -
*
* Upload your import file to an Amazon S3 bucket, and make a note of it's Object URL. Your import file must be in
* the CSV format.
*
*
* -
*
* Use the console or the StartImportTask
command with the Amazon Web Services CLI or one of the Amazon
* Web Services SDKs to import the records from your file.
*
*
*
*
* For more information, including step-by-step procedures, see Migration Hub
* Import in the Amazon Web Services Application Discovery Service User Guide.
*
*
*
* There are limits to the number of import tasks you can create (and delete) in an Amazon Web Services account. For
* more information, see Amazon Web
* Services Application Discovery Service Limits in the Amazon Web Services Application Discovery Service
* User Guide.
*
*
*
* @param startImportTaskRequest
* @return Result of the StartImportTask operation returned by the service.
* @throws ResourceInUseException
* This issue occurs when the same clientRequestToken
is used with the
* StartImportTask
action, but with different parameters. For example, you use the same request
* token but have two different import URLs, you can encounter this issue. If the import tasks are meant to
* be different, use a different clientRequestToken
, and try again.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.StartImportTask
*/
default StartImportTaskResponse startImportTask(StartImportTaskRequest startImportTaskRequest) throws ResourceInUseException,
AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException, ServerInternalErrorException,
HomeRegionNotSetException, AwsServiceException, SdkClientException, ApplicationDiscoveryException {
throw new UnsupportedOperationException();
}
/**
*
* Starts an import task, which allows you to import details of your on-premises environment directly into Amazon
* Web Services Migration Hub without having to use the Amazon Web Services Application Discovery Service
* (Application Discovery Service) tools such as the Amazon Web Services Application Discovery Service Agentless
* Collector or Application Discovery Agent. This gives you the option to perform migration assessment and planning
* directly from your imported data, including the ability to group your devices as applications and track their
* migration status.
*
*
* To start an import request, do this:
*
*
* -
*
* Download the specially formatted comma separated value (CSV) import template, which you can find here: https://s3.us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv.
*
*
* -
*
* Fill out the template with your server and application data.
*
*
* -
*
* Upload your import file to an Amazon S3 bucket, and make a note of it's Object URL. Your import file must be in
* the CSV format.
*
*
* -
*
* Use the console or the StartImportTask
command with the Amazon Web Services CLI or one of the Amazon
* Web Services SDKs to import the records from your file.
*
*
*
*
* For more information, including step-by-step procedures, see Migration Hub
* Import in the Amazon Web Services Application Discovery Service User Guide.
*
*
*
* There are limits to the number of import tasks you can create (and delete) in an Amazon Web Services account. For
* more information, see Amazon Web
* Services Application Discovery Service Limits in the Amazon Web Services Application Discovery Service
* User Guide.
*
*
*
* This is a convenience which creates an instance of the {@link StartImportTaskRequest.Builder} avoiding the need
* to create one manually via {@link StartImportTaskRequest#builder()}
*
*
* @param startImportTaskRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.StartImportTaskRequest.Builder} to
* create a request.
* @return Result of the StartImportTask operation returned by the service.
* @throws ResourceInUseException
* This issue occurs when the same clientRequestToken
is used with the
* StartImportTask
action, but with different parameters. For example, you use the same request
* token but have two different import URLs, you can encounter this issue. If the import tasks are meant to
* be different, use a different clientRequestToken
, and try again.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.StartImportTask
*/
default StartImportTaskResponse startImportTask(Consumer startImportTaskRequest)
throws ResourceInUseException, AuthorizationErrorException, InvalidParameterException,
InvalidParameterValueException, ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException,
SdkClientException, ApplicationDiscoveryException {
return startImportTask(StartImportTaskRequest.builder().applyMutation(startImportTaskRequest).build());
}
/**
*
* Stop the continuous flow of agent's discovered data into Amazon Athena.
*
*
* @param stopContinuousExportRequest
* @return Result of the StopContinuousExport operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws OperationNotPermittedException
* This operation is not permitted.
* @throws ResourceNotFoundException
* The specified configuration ID was not located. Verify the configuration ID and try again.
* @throws ResourceInUseException
* This issue occurs when the same clientRequestToken
is used with the
* StartImportTask
action, but with different parameters. For example, you use the same request
* token but have two different import URLs, you can encounter this issue. If the import tasks are meant to
* be different, use a different clientRequestToken
, and try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.StopContinuousExport
*/
default StopContinuousExportResponse stopContinuousExport(StopContinuousExportRequest stopContinuousExportRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, OperationNotPermittedException, ResourceNotFoundException, ResourceInUseException,
HomeRegionNotSetException, AwsServiceException, SdkClientException, ApplicationDiscoveryException {
throw new UnsupportedOperationException();
}
/**
*
* Stop the continuous flow of agent's discovered data into Amazon Athena.
*
*
*
* This is a convenience which creates an instance of the {@link StopContinuousExportRequest.Builder} avoiding the
* need to create one manually via {@link StopContinuousExportRequest#builder()}
*
*
* @param stopContinuousExportRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.StopContinuousExportRequest.Builder} to
* create a request.
* @return Result of the StopContinuousExport operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws OperationNotPermittedException
* This operation is not permitted.
* @throws ResourceNotFoundException
* The specified configuration ID was not located. Verify the configuration ID and try again.
* @throws ResourceInUseException
* This issue occurs when the same clientRequestToken
is used with the
* StartImportTask
action, but with different parameters. For example, you use the same request
* token but have two different import URLs, you can encounter this issue. If the import tasks are meant to
* be different, use a different clientRequestToken
, and try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.StopContinuousExport
*/
default StopContinuousExportResponse stopContinuousExport(
Consumer stopContinuousExportRequest) throws AuthorizationErrorException,
InvalidParameterException, InvalidParameterValueException, ServerInternalErrorException,
OperationNotPermittedException, ResourceNotFoundException, ResourceInUseException, HomeRegionNotSetException,
AwsServiceException, SdkClientException, ApplicationDiscoveryException {
return stopContinuousExport(StopContinuousExportRequest.builder().applyMutation(stopContinuousExportRequest).build());
}
/**
*
* Instructs the specified agents to stop collecting data.
*
*
* @param stopDataCollectionByAgentIdsRequest
* @return Result of the StopDataCollectionByAgentIds operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.StopDataCollectionByAgentIds
*/
default StopDataCollectionByAgentIdsResponse stopDataCollectionByAgentIds(
StopDataCollectionByAgentIdsRequest stopDataCollectionByAgentIdsRequest) throws AuthorizationErrorException,
InvalidParameterException, InvalidParameterValueException, ServerInternalErrorException, HomeRegionNotSetException,
AwsServiceException, SdkClientException, ApplicationDiscoveryException {
throw new UnsupportedOperationException();
}
/**
*
* Instructs the specified agents to stop collecting data.
*
*
*
* This is a convenience which creates an instance of the {@link StopDataCollectionByAgentIdsRequest.Builder}
* avoiding the need to create one manually via {@link StopDataCollectionByAgentIdsRequest#builder()}
*
*
* @param stopDataCollectionByAgentIdsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.StopDataCollectionByAgentIdsRequest.Builder}
* to create a request.
* @return Result of the StopDataCollectionByAgentIds operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.StopDataCollectionByAgentIds
*/
default StopDataCollectionByAgentIdsResponse stopDataCollectionByAgentIds(
Consumer stopDataCollectionByAgentIdsRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException, SdkClientException,
ApplicationDiscoveryException {
return stopDataCollectionByAgentIds(StopDataCollectionByAgentIdsRequest.builder()
.applyMutation(stopDataCollectionByAgentIdsRequest).build());
}
/**
*
* Updates metadata about an application.
*
*
* @param updateApplicationRequest
* @return Result of the UpdateApplication operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.UpdateApplication
*/
default UpdateApplicationResponse updateApplication(UpdateApplicationRequest updateApplicationRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException, SdkClientException,
ApplicationDiscoveryException {
throw new UnsupportedOperationException();
}
/**
*
* Updates metadata about an application.
*
*
*
* This is a convenience which creates an instance of the {@link UpdateApplicationRequest.Builder} avoiding the need
* to create one manually via {@link UpdateApplicationRequest#builder()}
*
*
* @param updateApplicationRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.applicationdiscovery.model.UpdateApplicationRequest.Builder} to
* create a request.
* @return Result of the UpdateApplication operation returned by the service.
* @throws AuthorizationErrorException
* The user does not have permission to perform the action. Check the IAM policy associated with this user.
* @throws InvalidParameterException
* One or more parameters are not valid. Verify the parameters and try again.
* @throws InvalidParameterValueException
* The value of one or more parameters are either invalid or out of range. Verify the parameter values and
* try again.
* @throws ServerInternalErrorException
* The server experienced an internal error. Try again.
* @throws HomeRegionNotSetException
* The home Region is not set. Set the home Region to continue.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws ApplicationDiscoveryException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ApplicationDiscoveryClient.UpdateApplication
*/
default UpdateApplicationResponse updateApplication(Consumer updateApplicationRequest)
throws AuthorizationErrorException, InvalidParameterException, InvalidParameterValueException,
ServerInternalErrorException, HomeRegionNotSetException, AwsServiceException, SdkClientException,
ApplicationDiscoveryException {
return updateApplication(UpdateApplicationRequest.builder().applyMutation(updateApplicationRequest).build());
}
/**
* Create a {@link ApplicationDiscoveryClient} with the region loaded from the
* {@link software.amazon.awssdk.regions.providers.DefaultAwsRegionProviderChain} and credentials loaded from the
* {@link software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider}.
*/
static ApplicationDiscoveryClient create() {
return builder().build();
}
/**
* Create a builder that can be used to configure and create a {@link ApplicationDiscoveryClient}.
*/
static ApplicationDiscoveryClientBuilder builder() {
return new DefaultApplicationDiscoveryClientBuilder();
}
static ServiceMetadata serviceMetadata() {
return ServiceMetadata.of(SERVICE_METADATA_ID);
}
@Override
default ApplicationDiscoveryServiceClientConfiguration serviceClientConfiguration() {
throw new UnsupportedOperationException();
}
}