@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AmazonDLM
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAmazonDLM
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.
Modifier and Type | Field and Description |
---|---|
static String |
ENDPOINT_PREFIX
The region metadata service name for computing region endpoints.
|
Modifier and Type | Method and Description |
---|---|
CreateLifecyclePolicyResult |
createLifecyclePolicy(CreateLifecyclePolicyRequest createLifecyclePolicyRequest)
Creates an Amazon Data Lifecycle Manager lifecycle policy.
|
DeleteLifecyclePolicyResult |
deleteLifecyclePolicy(DeleteLifecyclePolicyRequest deleteLifecyclePolicyRequest)
Deletes the specified lifecycle policy and halts the automated operations that the policy specified.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful request, typically used for debugging issues
where a service isn't acting as expected.
|
GetLifecyclePoliciesResult |
getLifecyclePolicies(GetLifecyclePoliciesRequest getLifecyclePoliciesRequest)
Gets summary information about all or the specified data lifecycle policies.
|
GetLifecyclePolicyResult |
getLifecyclePolicy(GetLifecyclePolicyRequest getLifecyclePolicyRequest)
Gets detailed information about the specified lifecycle policy.
|
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Lists the tags for the specified resource.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
TagResourceResult |
tagResource(TagResourceRequest tagResourceRequest)
Adds the specified tags to the specified resource.
|
UntagResourceResult |
untagResource(UntagResourceRequest untagResourceRequest)
Removes the specified tags from the specified resource.
|
UpdateLifecyclePolicyResult |
updateLifecyclePolicy(UpdateLifecyclePolicyRequest updateLifecyclePolicyRequest)
Updates the specified lifecycle policy.
|
static final String ENDPOINT_PREFIX
CreateLifecyclePolicyResult createLifecyclePolicy(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.
createLifecyclePolicyRequest
- InvalidRequestException
- Bad request. The request is missing required parameters or has invalid parameters.LimitExceededException
- The request failed because a limit was exceeded.InternalServerException
- The service failed in an unexpected way.DeleteLifecyclePolicyResult deleteLifecyclePolicy(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.
deleteLifecyclePolicyRequest
- ResourceNotFoundException
- A requested resource was not found.InternalServerException
- The service failed in an unexpected way.LimitExceededException
- The request failed because a limit was exceeded.GetLifecyclePoliciesResult getLifecyclePolicies(GetLifecyclePoliciesRequest getLifecyclePoliciesRequest)
Gets summary information about all or the specified data lifecycle policies.
To get complete information about a policy, use GetLifecyclePolicy.
getLifecyclePoliciesRequest
- ResourceNotFoundException
- A requested resource was not found.InvalidRequestException
- Bad request. The request is missing required parameters or has invalid parameters.InternalServerException
- The service failed in an unexpected way.LimitExceededException
- The request failed because a limit was exceeded.GetLifecyclePolicyResult getLifecyclePolicy(GetLifecyclePolicyRequest getLifecyclePolicyRequest)
Gets detailed information about the specified lifecycle policy.
getLifecyclePolicyRequest
- ResourceNotFoundException
- A requested resource was not found.InternalServerException
- The service failed in an unexpected way.LimitExceededException
- The request failed because a limit was exceeded.ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Lists the tags for the specified resource.
listTagsForResourceRequest
- InternalServerException
- The service failed in an unexpected way.InvalidRequestException
- Bad request. The request is missing required parameters or has invalid parameters.ResourceNotFoundException
- A requested resource was not found.TagResourceResult tagResource(TagResourceRequest tagResourceRequest)
Adds the specified tags to the specified resource.
tagResourceRequest
- InternalServerException
- The service failed in an unexpected way.InvalidRequestException
- Bad request. The request is missing required parameters or has invalid parameters.ResourceNotFoundException
- A requested resource was not found.UntagResourceResult untagResource(UntagResourceRequest untagResourceRequest)
Removes the specified tags from the specified resource.
untagResourceRequest
- InternalServerException
- The service failed in an unexpected way.InvalidRequestException
- Bad request. The request is missing required parameters or has invalid parameters.ResourceNotFoundException
- A requested resource was not found.UpdateLifecyclePolicyResult updateLifecyclePolicy(UpdateLifecyclePolicyRequest updateLifecyclePolicyRequest)
Updates the specified lifecycle policy.
For more information about updating a policy, see Modify lifecycle policies.
updateLifecyclePolicyRequest
- ResourceNotFoundException
- A requested resource was not found.InvalidRequestException
- Bad request. The request is missing required parameters or has invalid parameters.InternalServerException
- The service failed in an unexpected way.LimitExceededException
- The request failed because a limit was exceeded.void shutdown()
ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
request
- The originally executed request.