@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonRecycleBinClient extends AmazonWebServiceClient implements AmazonRecycleBin
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.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIX| Modifier and Type | Method and Description |
|---|---|
static AmazonRecycleBinClientBuilder |
builder() |
CreateRuleResult |
createRule(CreateRuleRequest request)
Creates a Recycle Bin retention rule.
|
DeleteRuleResult |
deleteRule(DeleteRuleRequest request)
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 request)
Gets information about a Recycle Bin retention rule.
|
ListRulesResult |
listRules(ListRulesRequest request)
Lists the Recycle Bin retention rules in the Region.
|
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest request)
Lists the tags assigned to a retention rule.
|
LockRuleResult |
lockRule(LockRuleRequest request)
Locks a retention rule.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held
open.
|
TagResourceResult |
tagResource(TagResourceRequest request)
Assigns tags to the specified retention rule.
|
UnlockRuleResult |
unlockRule(UnlockRuleRequest request)
Unlocks a retention rule.
|
UntagResourceResult |
untagResource(UntagResourceRequest request)
Unassigns a tag from a retention rule.
|
UpdateRuleResult |
updateRule(UpdateRuleRequest request)
Updates an existing Recycle Bin retention rule.
|
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 AmazonRecycleBinClientBuilder builder()
public CreateRuleResult createRule(CreateRuleRequest request)
Creates a Recycle Bin retention rule. For more information, see Create Recycle Bin retention rules in the Amazon Elastic Compute Cloud User Guide.
createRule in interface AmazonRecycleBincreateRuleRequest - 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.public DeleteRuleResult deleteRule(DeleteRuleRequest request)
Deletes a Recycle Bin retention rule. For more information, see Delete Recycle Bin retention rules in the Amazon Elastic Compute Cloud User Guide.
deleteRule in interface AmazonRecycleBindeleteRuleRequest - 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.public GetRuleResult getRule(GetRuleRequest request)
Gets information about a Recycle Bin retention rule.
getRule in interface AmazonRecycleBingetRuleRequest - 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.public ListRulesResult listRules(ListRulesRequest request)
Lists the Recycle Bin retention rules in the Region.
listRules in interface AmazonRecycleBinlistRulesRequest - 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.public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request)
Lists the tags assigned to a retention rule.
listTagsForResource in interface AmazonRecycleBinlistTagsForResourceRequest - 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.public LockRuleResult lockRule(LockRuleRequest request)
Locks a retention rule. A locked retention rule can't be modified or deleted.
lockRule in interface AmazonRecycleBinlockRuleRequest - 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.public TagResourceResult tagResource(TagResourceRequest request)
Assigns tags to the specified retention rule.
tagResource in interface AmazonRecycleBintagResourceRequest - 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.public UnlockRuleResult unlockRule(UnlockRuleRequest request)
Unlocks a retention rule. After a retention rule is unlocked, it can be modified or deleted only after the unlock delay period expires.
unlockRule in interface AmazonRecycleBinunlockRuleRequest - 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.public UntagResourceResult untagResource(UntagResourceRequest request)
Unassigns a tag from a retention rule.
untagResource in interface AmazonRecycleBinuntagResourceRequest - 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.public UpdateRuleResult updateRule(UpdateRuleRequest request)
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.
updateRule in interface AmazonRecycleBinupdateRuleRequest - 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.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 AmazonRecycleBinrequest - The originally executed requestpublic void shutdown()
AmazonWebServiceClientshutdown in interface AmazonRecycleBinshutdown in class AmazonWebServiceClient