/* * Copyright 2018-2023 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 com.amazonaws.services.fis; import javax.annotation.Generated; import com.amazonaws.services.fis.model.*; /** * Interface for accessing FIS asynchronously. Each asynchronous method will return a Java Future object representing * the asynchronous operation; overloads which accept an {@code AsyncHandler} can be used to receive notification when * an asynchronous operation completes. *

* Note: Do not directly implement this interface, new methods are added to it regularly. Extend from * {@link com.amazonaws.services.fis.AbstractAWSFISAsync} instead. *

*

*

* Fault Injection Simulator is a managed service that enables you to perform fault injection experiments on your Amazon * Web Services workloads. For more information, see the Fault Injection Simulator User Guide. *

*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public interface AWSFISAsync extends AWSFIS { /** *

* Creates an experiment template. *

*

* An experiment template includes the following components: *

* *

* For more information, see Experiment templates in the * Fault Injection Simulator User Guide. *

* * @param createExperimentTemplateRequest * @return A Java Future containing the result of the CreateExperimentTemplate operation returned by the service. * @sample AWSFISAsync.CreateExperimentTemplate * @see AWS * API Documentation */ java.util.concurrent.Future createExperimentTemplateAsync(CreateExperimentTemplateRequest createExperimentTemplateRequest); /** *

* Creates an experiment template. *

*

* An experiment template includes the following components: *

* *

* For more information, see Experiment templates in the * Fault Injection Simulator User Guide. *

* * @param createExperimentTemplateRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the CreateExperimentTemplate operation returned by the service. * @sample AWSFISAsyncHandler.CreateExperimentTemplate * @see AWS * API Documentation */ java.util.concurrent.Future createExperimentTemplateAsync(CreateExperimentTemplateRequest createExperimentTemplateRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Deletes the specified experiment template. *

* * @param deleteExperimentTemplateRequest * @return A Java Future containing the result of the DeleteExperimentTemplate operation returned by the service. * @sample AWSFISAsync.DeleteExperimentTemplate * @see AWS * API Documentation */ java.util.concurrent.Future deleteExperimentTemplateAsync(DeleteExperimentTemplateRequest deleteExperimentTemplateRequest); /** *

* Deletes the specified experiment template. *

* * @param deleteExperimentTemplateRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the DeleteExperimentTemplate operation returned by the service. * @sample AWSFISAsyncHandler.DeleteExperimentTemplate * @see AWS * API Documentation */ java.util.concurrent.Future deleteExperimentTemplateAsync(DeleteExperimentTemplateRequest deleteExperimentTemplateRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Gets information about the specified FIS action. *

* * @param getActionRequest * @return A Java Future containing the result of the GetAction operation returned by the service. * @sample AWSFISAsync.GetAction * @see AWS API * Documentation */ java.util.concurrent.Future getActionAsync(GetActionRequest getActionRequest); /** *

* Gets information about the specified FIS action. *

* * @param getActionRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the GetAction operation returned by the service. * @sample AWSFISAsyncHandler.GetAction * @see AWS API * Documentation */ java.util.concurrent.Future getActionAsync(GetActionRequest getActionRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Gets information about the specified experiment. *

* * @param getExperimentRequest * @return A Java Future containing the result of the GetExperiment operation returned by the service. * @sample AWSFISAsync.GetExperiment * @see AWS API * Documentation */ java.util.concurrent.Future getExperimentAsync(GetExperimentRequest getExperimentRequest); /** *

* Gets information about the specified experiment. *

* * @param getExperimentRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the GetExperiment operation returned by the service. * @sample AWSFISAsyncHandler.GetExperiment * @see AWS API * Documentation */ java.util.concurrent.Future getExperimentAsync(GetExperimentRequest getExperimentRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Gets information about the specified experiment template. *

* * @param getExperimentTemplateRequest * @return A Java Future containing the result of the GetExperimentTemplate operation returned by the service. * @sample AWSFISAsync.GetExperimentTemplate * @see AWS API * Documentation */ java.util.concurrent.Future getExperimentTemplateAsync(GetExperimentTemplateRequest getExperimentTemplateRequest); /** *

* Gets information about the specified experiment template. *

* * @param getExperimentTemplateRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the GetExperimentTemplate operation returned by the service. * @sample AWSFISAsyncHandler.GetExperimentTemplate * @see AWS API * Documentation */ java.util.concurrent.Future getExperimentTemplateAsync(GetExperimentTemplateRequest getExperimentTemplateRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Gets information about the specified resource type. *

* * @param getTargetResourceTypeRequest * @return A Java Future containing the result of the GetTargetResourceType operation returned by the service. * @sample AWSFISAsync.GetTargetResourceType * @see AWS API * Documentation */ java.util.concurrent.Future getTargetResourceTypeAsync(GetTargetResourceTypeRequest getTargetResourceTypeRequest); /** *

* Gets information about the specified resource type. *

* * @param getTargetResourceTypeRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the GetTargetResourceType operation returned by the service. * @sample AWSFISAsyncHandler.GetTargetResourceType * @see AWS API * Documentation */ java.util.concurrent.Future getTargetResourceTypeAsync(GetTargetResourceTypeRequest getTargetResourceTypeRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Lists the available FIS actions. *

* * @param listActionsRequest * @return A Java Future containing the result of the ListActions operation returned by the service. * @sample AWSFISAsync.ListActions * @see AWS API * Documentation */ java.util.concurrent.Future listActionsAsync(ListActionsRequest listActionsRequest); /** *

* Lists the available FIS actions. *

* * @param listActionsRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the ListActions operation returned by the service. * @sample AWSFISAsyncHandler.ListActions * @see AWS API * Documentation */ java.util.concurrent.Future listActionsAsync(ListActionsRequest listActionsRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Lists your experiment templates. *

* * @param listExperimentTemplatesRequest * @return A Java Future containing the result of the ListExperimentTemplates operation returned by the service. * @sample AWSFISAsync.ListExperimentTemplates * @see AWS * API Documentation */ java.util.concurrent.Future listExperimentTemplatesAsync(ListExperimentTemplatesRequest listExperimentTemplatesRequest); /** *

* Lists your experiment templates. *

* * @param listExperimentTemplatesRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the ListExperimentTemplates operation returned by the service. * @sample AWSFISAsyncHandler.ListExperimentTemplates * @see AWS * API Documentation */ java.util.concurrent.Future listExperimentTemplatesAsync(ListExperimentTemplatesRequest listExperimentTemplatesRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Lists your experiments. *

* * @param listExperimentsRequest * @return A Java Future containing the result of the ListExperiments operation returned by the service. * @sample AWSFISAsync.ListExperiments * @see AWS API * Documentation */ java.util.concurrent.Future listExperimentsAsync(ListExperimentsRequest listExperimentsRequest); /** *

* Lists your experiments. *

* * @param listExperimentsRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the ListExperiments operation returned by the service. * @sample AWSFISAsyncHandler.ListExperiments * @see AWS API * Documentation */ java.util.concurrent.Future listExperimentsAsync(ListExperimentsRequest listExperimentsRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Lists the tags for the specified resource. *

* * @param listTagsForResourceRequest * @return A Java Future containing the result of the ListTagsForResource operation returned by the service. * @sample AWSFISAsync.ListTagsForResource * @see AWS API * Documentation */ java.util.concurrent.Future listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest); /** *

* Lists the tags for the specified resource. *

* * @param listTagsForResourceRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the ListTagsForResource operation returned by the service. * @sample AWSFISAsyncHandler.ListTagsForResource * @see AWS API * Documentation */ java.util.concurrent.Future listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Lists the target resource types. *

* * @param listTargetResourceTypesRequest * @return A Java Future containing the result of the ListTargetResourceTypes operation returned by the service. * @sample AWSFISAsync.ListTargetResourceTypes * @see AWS * API Documentation */ java.util.concurrent.Future listTargetResourceTypesAsync(ListTargetResourceTypesRequest listTargetResourceTypesRequest); /** *

* Lists the target resource types. *

* * @param listTargetResourceTypesRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the ListTargetResourceTypes operation returned by the service. * @sample AWSFISAsyncHandler.ListTargetResourceTypes * @see AWS * API Documentation */ java.util.concurrent.Future listTargetResourceTypesAsync(ListTargetResourceTypesRequest listTargetResourceTypesRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Starts running an experiment from the specified experiment template. *

* * @param startExperimentRequest * @return A Java Future containing the result of the StartExperiment operation returned by the service. * @sample AWSFISAsync.StartExperiment * @see AWS API * Documentation */ java.util.concurrent.Future startExperimentAsync(StartExperimentRequest startExperimentRequest); /** *

* Starts running an experiment from the specified experiment template. *

* * @param startExperimentRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the StartExperiment operation returned by the service. * @sample AWSFISAsyncHandler.StartExperiment * @see AWS API * Documentation */ java.util.concurrent.Future startExperimentAsync(StartExperimentRequest startExperimentRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Stops the specified experiment. *

* * @param stopExperimentRequest * @return A Java Future containing the result of the StopExperiment operation returned by the service. * @sample AWSFISAsync.StopExperiment * @see AWS API * Documentation */ java.util.concurrent.Future stopExperimentAsync(StopExperimentRequest stopExperimentRequest); /** *

* Stops the specified experiment. *

* * @param stopExperimentRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the StopExperiment operation returned by the service. * @sample AWSFISAsyncHandler.StopExperiment * @see AWS API * Documentation */ java.util.concurrent.Future stopExperimentAsync(StopExperimentRequest stopExperimentRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Applies the specified tags to the specified resource. *

* * @param tagResourceRequest * @return A Java Future containing the result of the TagResource operation returned by the service. * @sample AWSFISAsync.TagResource * @see AWS API * Documentation */ java.util.concurrent.Future tagResourceAsync(TagResourceRequest tagResourceRequest); /** *

* Applies the specified tags to the specified resource. *

* * @param tagResourceRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the TagResource operation returned by the service. * @sample AWSFISAsyncHandler.TagResource * @see AWS API * Documentation */ java.util.concurrent.Future tagResourceAsync(TagResourceRequest tagResourceRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Removes the specified tags from the specified resource. *

* * @param untagResourceRequest * @return A Java Future containing the result of the UntagResource operation returned by the service. * @sample AWSFISAsync.UntagResource * @see AWS API * Documentation */ java.util.concurrent.Future untagResourceAsync(UntagResourceRequest untagResourceRequest); /** *

* Removes the specified tags from the specified resource. *

* * @param untagResourceRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the UntagResource operation returned by the service. * @sample AWSFISAsyncHandler.UntagResource * @see AWS API * Documentation */ java.util.concurrent.Future untagResourceAsync(UntagResourceRequest untagResourceRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Updates the specified experiment template. *

* * @param updateExperimentTemplateRequest * @return A Java Future containing the result of the UpdateExperimentTemplate operation returned by the service. * @sample AWSFISAsync.UpdateExperimentTemplate * @see AWS * API Documentation */ java.util.concurrent.Future updateExperimentTemplateAsync(UpdateExperimentTemplateRequest updateExperimentTemplateRequest); /** *

* Updates the specified experiment template. *

* * @param updateExperimentTemplateRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the UpdateExperimentTemplate operation returned by the service. * @sample AWSFISAsyncHandler.UpdateExperimentTemplate * @see AWS * API Documentation */ java.util.concurrent.Future updateExperimentTemplateAsync(UpdateExperimentTemplateRequest updateExperimentTemplateRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); }