@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 resource recovery feature that enables you to restore accidentally deleted snapshots and EBS-backed AMIs. When using Recycle Bin, if your resources are deleted, they are retained in the Recycle Bin for a time period that you specify.
You can restore a resource from the Recycle Bin at any time before its retention period expires. After you restore a resource from the Recycle Bin, the resource is removed from the Recycle Bin, and you can then use it in the same way you use any other resource of that type in your account. If the retention period expires and the resource is not restored, the resource 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 Elastic Compute Cloud 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 to a retention rule.
|
LockRuleResult |
lockRule(LockRuleRequest lockRuleRequest)
Locks a retention rule.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
TagResourceResult |
tagResource(TagResourceRequest tagResourceRequest)
Assigns tags to the specified retention rule.
|
UnlockRuleResult |
unlockRule(UnlockRuleRequest unlockRuleRequest)
Unlocks a retention rule.
|
UntagResourceResult |
untagResource(UntagResourceRequest untagResourceRequest)
Unassigns a tag from a retention rule.
|
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 Elastic Compute Cloud 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 Elastic Compute Cloud 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.ConflictException
- The specified retention rule lock request can't be completed.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 to a retention rule.
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.LockRuleResult lockRule(LockRuleRequest lockRuleRequest)
Locks a retention rule. A locked retention rule can't be modified or deleted.
lockRuleRequest
- 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.ConflictException
- The specified retention rule lock request can't be completed.TagResourceResult tagResource(TagResourceRequest tagResourceRequest)
Assigns tags to the specified retention rule.
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.UnlockRuleResult unlockRule(UnlockRuleRequest unlockRuleRequest)
Unlocks a retention rule. After a retention rule is unlocked, it can be modified or deleted only after the unlock delay period expires.
unlockRuleRequest
- 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.ConflictException
- The specified retention rule lock request can't be completed.UntagResourceResult untagResource(UntagResourceRequest untagResourceRequest)
Unassigns a tag from a retention rule.
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. You can update a retention rule's description, resource tags, and retention period at any time after creation. You can't update a retention rule's resource type after creation. For more information, see Update Recycle Bin retention rules in the Amazon Elastic Compute Cloud 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.ConflictException
- The specified retention rule lock request can't be completed.ServiceQuotaExceededException
- The request would cause a service quota for the number of tags per resource to be 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.