com.amazonaws.services.dlm.AmazonDLMAsync Maven / Gradle / Ivy
/*
* Copyright 2019-2024 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.
*
*
* Amazon Data Lifecycle Manager
*
* 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 an Amazon Data Lifecycle Manager lifecycle policy. Amazon Data Lifecycle Manager supports the following
* policy types:
*
*
* -
*
* Custom EBS snapshot policy
*
*
* -
*
* Custom EBS-backed AMI policy
*
*
* -
*
* Cross-account copy event policy
*
*
* -
*
* Default policy for EBS snapshots
*
*
* -
*
* Default policy for EBS-backed AMIs
*
*
*
*
* For more information, see
* Default policies vs custom policies.
*
*
*
* If you create a default policy, you can specify the request parameters either in the request body, or in the
* PolicyDetails request structure, but not both.
*
*
*
* @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 createLifecyclePolicyAsync(CreateLifecyclePolicyRequest createLifecyclePolicyRequest);
/**
*
* Creates an Amazon Data Lifecycle Manager lifecycle policy. Amazon Data Lifecycle Manager supports the following
* policy types:
*
*
* -
*
* Custom EBS snapshot policy
*
*
* -
*
* Custom EBS-backed AMI policy
*
*
* -
*
* Cross-account copy event policy
*
*
* -
*
* Default policy for EBS snapshots
*
*
* -
*
* Default policy for EBS-backed AMIs
*
*
*
*
* For more information, see
* Default policies vs custom policies.
*
*
*
* If you create a default policy, you can specify the request parameters either in the request body, or in the
* PolicyDetails request structure, but not both.
*
*
*
* @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 createLifecyclePolicyAsync(CreateLifecyclePolicyRequest createLifecyclePolicyRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* 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 deleteLifecyclePolicyAsync(DeleteLifecyclePolicyRequest deleteLifecyclePolicyRequest);
/**
*
* 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 deleteLifecyclePolicyAsync(DeleteLifecyclePolicyRequest deleteLifecyclePolicyRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* 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 getLifecyclePoliciesAsync(GetLifecyclePoliciesRequest getLifecyclePoliciesRequest);
/**
*
* 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 getLifecyclePoliciesAsync(GetLifecyclePoliciesRequest getLifecyclePoliciesRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* 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 getLifecyclePolicyAsync(GetLifecyclePolicyRequest getLifecyclePolicyRequest);
/**
*
* 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 getLifecyclePolicyAsync(GetLifecyclePolicyRequest getLifecyclePolicyRequest,
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 AmazonDLMAsync.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 AmazonDLMAsyncHandler.ListTagsForResource
* @see AWS API
* Documentation
*/
java.util.concurrent.Future listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* 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 tagResourceAsync(TagResourceRequest tagResourceRequest);
/**
*
* 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 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 AmazonDLMAsync.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 AmazonDLMAsyncHandler.UntagResource
* @see AWS API
* Documentation
*/
java.util.concurrent.Future untagResourceAsync(UntagResourceRequest untagResourceRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* 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 updateLifecyclePolicyAsync(UpdateLifecyclePolicyRequest updateLifecyclePolicyRequest);
/**
*
* 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 updateLifecyclePolicyAsync(UpdateLifecyclePolicyRequest updateLifecyclePolicyRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
}