@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AmazonRecycleBin
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAmazonRecycleBin
instead.
This is the Recycle Bin API Reference. This documentation provides descriptions and syntax for each of the actions and data types in Recycle Bin.
Recycle Bin is a snapshot recovery feature that enables you to restore accidentally deleted snapshots. When using Recycle Bin, if your snapshots are deleted, they are retained in the Recycle Bin for a time period that you specify.
You can restore a snapshot from the Recycle Bin at any time before its retention period expires. After you restore a snapshot from the Recycle Bin, the snapshot is removed from the Recycle Bin, and you can then use it in the same way you use any other snapshot in your account. If the retention period expires and the snapshot is not restored, the snapshot is permanently deleted from the Recycle Bin and is no longer available for recovery. For more information about Recycle Bin, see Recycle Bin 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 |
---|---|
CreateRuleResult |
createRule(CreateRuleRequest createRuleRequest)
Creates a Recycle Bin retention rule.
|
DeleteRuleResult |
deleteRule(DeleteRuleRequest deleteRuleRequest)
Deletes a Recycle Bin retention rule.
|
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.
|
GetRuleResult |
getRule(GetRuleRequest getRuleRequest)
Gets information about a Recycle Bin retention rule.
|
ListRulesResult |
listRules(ListRulesRequest listRulesRequest)
Lists the Recycle Bin retention rules in the Region.
|
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Lists the tags assigned a specific resource.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
TagResourceResult |
tagResource(TagResourceRequest tagResourceRequest)
Assigns tags to the specified resource.
|
UntagResourceResult |
untagResource(UntagResourceRequest untagResourceRequest)
Unassigns a tag from a resource.
|
UpdateRuleResult |
updateRule(UpdateRuleRequest updateRuleRequest)
Updates an existing Recycle Bin retention rule.
|
static final String ENDPOINT_PREFIX
CreateRuleResult createRule(CreateRuleRequest createRuleRequest)
Creates a Recycle Bin retention rule. For more information, see Create Recycle Bin retention rules in the Amazon EC2 User Guide.
createRuleRequest
- ValidationException
- One or more of the parameters in the request is not valid.ServiceQuotaExceededException
- The request would cause a service quota for the number of tags per resource to be exceeded.InternalServerException
- The service could not respond to the request due to an internal problem.DeleteRuleResult deleteRule(DeleteRuleRequest deleteRuleRequest)
Deletes a Recycle Bin retention rule. For more information, see Delete Recycle Bin retention rules in the Amazon EC2 User Guide.
deleteRuleRequest
- InternalServerException
- The service could not respond to the request due to an internal problem.ResourceNotFoundException
- The specified resource was not found.ValidationException
- One or more of the parameters in the request is not valid.GetRuleResult getRule(GetRuleRequest getRuleRequest)
Gets information about a Recycle Bin retention rule.
getRuleRequest
- ValidationException
- One or more of the parameters in the request is not valid.InternalServerException
- The service could not respond to the request due to an internal problem.ResourceNotFoundException
- The specified resource was not found.ListRulesResult listRules(ListRulesRequest listRulesRequest)
Lists the Recycle Bin retention rules in the Region.
listRulesRequest
- ValidationException
- One or more of the parameters in the request is not valid.InternalServerException
- The service could not respond to the request due to an internal problem.ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Lists the tags assigned a specific resource.
listTagsForResourceRequest
- ValidationException
- One or more of the parameters in the request is not valid.InternalServerException
- The service could not respond to the request due to an internal problem.ResourceNotFoundException
- The specified resource was not found.TagResourceResult tagResource(TagResourceRequest tagResourceRequest)
Assigns tags to the specified resource.
tagResourceRequest
- ValidationException
- One or more of the parameters in the request is not valid.InternalServerException
- The service could not respond to the request due to an internal problem.ResourceNotFoundException
- The specified resource was not found.ServiceQuotaExceededException
- The request would cause a service quota for the number of tags per resource to be exceeded.UntagResourceResult untagResource(UntagResourceRequest untagResourceRequest)
Unassigns a tag from a resource.
untagResourceRequest
- ValidationException
- One or more of the parameters in the request is not valid.InternalServerException
- The service could not respond to the request due to an internal problem.ResourceNotFoundException
- The specified resource was not found.UpdateRuleResult updateRule(UpdateRuleRequest updateRuleRequest)
Updates an existing Recycle Bin retention rule. For more information, see Update Recycle Bin retention rules in the Amazon EC2 User Guide.
updateRuleRequest
- ValidationException
- One or more of the parameters in the request is not valid.InternalServerException
- The service could not respond to the request due to an internal problem.ResourceNotFoundException
- The specified resource was not found.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.