@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonDLMClient extends AmazonWebServiceClient implements AmazonDLM
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.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIX| Modifier and Type | Method and Description |
|---|---|
static AmazonDLMClientBuilder |
builder() |
CreateLifecyclePolicyResult |
createLifecyclePolicy(CreateLifecyclePolicyRequest request)
Creates an Amazon Data Lifecycle Manager lifecycle policy.
|
DeleteLifecyclePolicyResult |
deleteLifecyclePolicy(DeleteLifecyclePolicyRequest request)
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 request)
Gets summary information about all or the specified data lifecycle policies.
|
GetLifecyclePolicyResult |
getLifecyclePolicy(GetLifecyclePolicyRequest request)
Gets detailed information about the specified lifecycle policy.
|
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest request)
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 request)
Adds the specified tags to the specified resource.
|
UntagResourceResult |
untagResource(UntagResourceRequest request)
Removes the specified tags from the specified resource.
|
UpdateLifecyclePolicyResult |
updateLifecyclePolicy(UpdateLifecyclePolicyRequest request)
Updates the specified lifecycle policy.
|
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetpublic static AmazonDLMClientBuilder builder()
public CreateLifecyclePolicyResult createLifecyclePolicy(CreateLifecyclePolicyRequest request)
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.
createLifecyclePolicy in interface AmazonDLMcreateLifecyclePolicyRequest - 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.public DeleteLifecyclePolicyResult deleteLifecyclePolicy(DeleteLifecyclePolicyRequest request)
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.
deleteLifecyclePolicy in interface AmazonDLMdeleteLifecyclePolicyRequest - ResourceNotFoundException - A requested resource was not found.InternalServerException - The service failed in an unexpected way.LimitExceededException - The request failed because a limit was exceeded.public GetLifecyclePoliciesResult getLifecyclePolicies(GetLifecyclePoliciesRequest request)
Gets summary information about all or the specified data lifecycle policies.
To get complete information about a policy, use GetLifecyclePolicy.
getLifecyclePolicies in interface AmazonDLMgetLifecyclePoliciesRequest - 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.public GetLifecyclePolicyResult getLifecyclePolicy(GetLifecyclePolicyRequest request)
Gets detailed information about the specified lifecycle policy.
getLifecyclePolicy in interface AmazonDLMgetLifecyclePolicyRequest - ResourceNotFoundException - A requested resource was not found.InternalServerException - The service failed in an unexpected way.LimitExceededException - The request failed because a limit was exceeded.public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request)
Lists the tags for the specified resource.
listTagsForResource in interface AmazonDLMlistTagsForResourceRequest - 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.public TagResourceResult tagResource(TagResourceRequest request)
Adds the specified tags to the specified resource.
tagResource in interface AmazonDLMtagResourceRequest - 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.public UntagResourceResult untagResource(UntagResourceRequest request)
Removes the specified tags from the specified resource.
untagResource in interface AmazonDLMuntagResourceRequest - 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.public UpdateLifecyclePolicyResult updateLifecyclePolicy(UpdateLifecyclePolicyRequest request)
Updates the specified lifecycle policy.
For more information about updating a policy, see Modify lifecycle policies.
updateLifecyclePolicy in interface AmazonDLMupdateLifecyclePolicyRequest - 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.public 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 the request.
getCachedResponseMetadata in interface AmazonDLMrequest - The originally executed requestpublic void shutdown()
AmazonWebServiceClientshutdown in interface AmazonDLMshutdown in class AmazonWebServiceClient