/* * 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.dlm; import javax.annotation.Generated; import com.amazonaws.services.dlm.model.*; /** * Interface for accessing Amazon DLM 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.dlm.AbstractAmazonDLMAsync} instead. *
*
*
* With Amazon Data Lifecycle Manager, you can manage the lifecycle of your Amazon Web Services resources. You create * lifecycle policies, which are used to automate operations on the specified resources. *
** Amazon Data Lifecycle Manager supports Amazon EBS volumes and snapshots. For information about using Amazon Data * Lifecycle Manager with Amazon EBS, see Amazon Data Lifecycle Manager * in the Amazon EC2 User Guide. *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public interface AmazonDLMAsync extends AmazonDLM { /** ** Creates a policy to manage the lifecycle of the specified Amazon Web Services resources. You can create up to 100 * lifecycle policies. *
* * @param createLifecyclePolicyRequest * @return A Java Future containing the result of the CreateLifecyclePolicy operation returned by the service. * @sample AmazonDLMAsync.CreateLifecyclePolicy * @see AWS API * Documentation */ java.util.concurrent.Future* Creates a policy to manage the lifecycle of the specified Amazon Web Services resources. You can create up to 100 * lifecycle policies. *
* * @param createLifecyclePolicyRequest * @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 CreateLifecyclePolicy operation returned by the service. * @sample AmazonDLMAsyncHandler.CreateLifecyclePolicy * @see AWS API * Documentation */ java.util.concurrent.Future* Deletes the specified lifecycle policy and halts the automated operations that the policy specified. *
** For more information about deleting a policy, see Delete lifecycle * policies. *
* * @param deleteLifecyclePolicyRequest * @return A Java Future containing the result of the DeleteLifecyclePolicy operation returned by the service. * @sample AmazonDLMAsync.DeleteLifecyclePolicy * @see AWS API * Documentation */ java.util.concurrent.Future* Deletes the specified lifecycle policy and halts the automated operations that the policy specified. *
** For more information about deleting a policy, see Delete lifecycle * policies. *
* * @param deleteLifecyclePolicyRequest * @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 DeleteLifecyclePolicy operation returned by the service. * @sample AmazonDLMAsyncHandler.DeleteLifecyclePolicy * @see AWS API * Documentation */ java.util.concurrent.Future* Gets summary information about all or the specified data lifecycle policies. *
** To get complete information about a policy, use GetLifecyclePolicy. *
* * @param getLifecyclePoliciesRequest * @return A Java Future containing the result of the GetLifecyclePolicies operation returned by the service. * @sample AmazonDLMAsync.GetLifecyclePolicies * @see AWS API * Documentation */ java.util.concurrent.Future* Gets summary information about all or the specified data lifecycle policies. *
** To get complete information about a policy, use GetLifecyclePolicy. *
* * @param getLifecyclePoliciesRequest * @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 GetLifecyclePolicies operation returned by the service. * @sample AmazonDLMAsyncHandler.GetLifecyclePolicies * @see AWS API * Documentation */ java.util.concurrent.Future* Gets detailed information about the specified lifecycle policy. *
* * @param getLifecyclePolicyRequest * @return A Java Future containing the result of the GetLifecyclePolicy operation returned by the service. * @sample AmazonDLMAsync.GetLifecyclePolicy * @see AWS API * Documentation */ java.util.concurrent.Future* Gets detailed information about the specified lifecycle policy. *
* * @param getLifecyclePolicyRequest * @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 GetLifecyclePolicy operation returned by the service. * @sample AmazonDLMAsyncHandler.GetLifecyclePolicy * @see AWS API * Documentation */ java.util.concurrent.Future* 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 AmazonDLMAsync.ListTagsForResource * @see AWS API * Documentation */ java.util.concurrent.Future* 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 AmazonDLMAsyncHandler.ListTagsForResource * @see AWS API * Documentation */ java.util.concurrent.Future* Adds 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 AmazonDLMAsync.TagResource * @see AWS API * Documentation */ java.util.concurrent.Future* Adds 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 AmazonDLMAsyncHandler.TagResource * @see AWS API * Documentation */ java.util.concurrent.Future* 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 AmazonDLMAsync.UntagResource * @see AWS API * Documentation */ java.util.concurrent.Future* 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 AmazonDLMAsyncHandler.UntagResource * @see AWS API * Documentation */ java.util.concurrent.Future* Updates the specified lifecycle policy. *
** For more information about updating a policy, see Modify lifecycle * policies. *
* * @param updateLifecyclePolicyRequest * @return A Java Future containing the result of the UpdateLifecyclePolicy operation returned by the service. * @sample AmazonDLMAsync.UpdateLifecyclePolicy * @see AWS API * Documentation */ java.util.concurrent.Future* Updates the specified lifecycle policy. *
** For more information about updating a policy, see Modify lifecycle * policies. *
* * @param updateLifecyclePolicyRequest * @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 UpdateLifecyclePolicy operation returned by the service. * @sample AmazonDLMAsyncHandler.UpdateLifecyclePolicy * @see AWS API * Documentation */ java.util.concurrent.Future