Class: Aws::RecycleBin::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::RecycleBin::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-recyclebin/client.rb
Overview
An API client for RecycleBin. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::RecycleBin::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#create_rule(params = {}) ⇒ Types::CreateRuleResponse
Creates a Recycle Bin retention rule.
-
#delete_rule(params = {}) ⇒ Struct
Deletes a Recycle Bin retention rule.
-
#get_rule(params = {}) ⇒ Types::GetRuleResponse
Gets information about a Recycle Bin retention rule.
-
#list_rules(params = {}) ⇒ Types::ListRulesResponse
Lists the Recycle Bin retention rules in the Region.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists the tags assigned to a retention rule.
-
#lock_rule(params = {}) ⇒ Types::LockRuleResponse
Locks a retention rule.
-
#tag_resource(params = {}) ⇒ Struct
Assigns tags to the specified retention rule.
-
#unlock_rule(params = {}) ⇒ Types::UnlockRuleResponse
Unlocks a retention rule.
-
#untag_resource(params = {}) ⇒ Struct
Unassigns a tag from a retention rule.
-
#update_rule(params = {}) ⇒ Types::UpdateRuleResponse
Updates an existing Recycle Bin retention rule.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
444 445 446 |
# File 'lib/aws-sdk-recyclebin/client.rb', line 444 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1037 1038 1039 |
# File 'lib/aws-sdk-recyclebin/client.rb', line 1037 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1040 1041 1042 |
# File 'lib/aws-sdk-recyclebin/client.rb', line 1040 def errors_module Errors end |
Instance Method Details
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 |
# File 'lib/aws-sdk-recyclebin/client.rb', line 1010 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::RecycleBin') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-recyclebin' context[:gem_version] = '1.32.0' Seahorse::Client::Request.new(handlers, context) end |
#create_rule(params = {}) ⇒ Types::CreateRuleResponse
Creates a Recycle Bin retention rule. For more information, see [ Create Recycle Bin retention rules] in the *Amazon Elastic Compute Cloud User Guide*.
560 561 562 563 |
# File 'lib/aws-sdk-recyclebin/client.rb', line 560 def create_rule(params = {}, = {}) req = build_request(:create_rule, params) req.send_request() end |
#delete_rule(params = {}) ⇒ Struct
Deletes a Recycle Bin retention rule. For more information, see [ Delete Recycle Bin retention rules] in the *Amazon Elastic Compute Cloud User Guide*.
588 589 590 591 |
# File 'lib/aws-sdk-recyclebin/client.rb', line 588 def delete_rule(params = {}, = {}) req = build_request(:delete_rule, params) req.send_request() end |
#get_rule(params = {}) ⇒ Types::GetRuleResponse
Gets information about a Recycle Bin retention rule.
638 639 640 641 |
# File 'lib/aws-sdk-recyclebin/client.rb', line 638 def get_rule(params = {}, = {}) req = build_request(:get_rule, params) req.send_request() end |
#list_rules(params = {}) ⇒ Types::ListRulesResponse
Lists the Recycle Bin retention rules in the Region.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
705 706 707 708 |
# File 'lib/aws-sdk-recyclebin/client.rb', line 705 def list_rules(params = {}, = {}) req = build_request(:list_rules, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists the tags assigned to a retention rule.
735 736 737 738 |
# File 'lib/aws-sdk-recyclebin/client.rb', line 735 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#lock_rule(params = {}) ⇒ Types::LockRuleResponse
Locks a retention rule. A locked retention rule can’t be modified or deleted.
793 794 795 796 |
# File 'lib/aws-sdk-recyclebin/client.rb', line 793 def lock_rule(params = {}, = {}) req = build_request(:lock_rule, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Assigns tags to the specified retention rule.
824 825 826 827 |
# File 'lib/aws-sdk-recyclebin/client.rb', line 824 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#unlock_rule(params = {}) ⇒ Types::UnlockRuleResponse
Unlocks a retention rule. After a retention rule is unlocked, it can be modified or deleted only after the unlock delay period expires.
875 876 877 878 |
# File 'lib/aws-sdk-recyclebin/client.rb', line 875 def unlock_rule(params = {}, = {}) req = build_request(:unlock_rule, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Unassigns a tag from a retention rule.
902 903 904 905 |
# File 'lib/aws-sdk-recyclebin/client.rb', line 902 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_rule(params = {}) ⇒ Types::UpdateRuleResponse
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*.
1001 1002 1003 1004 |
# File 'lib/aws-sdk-recyclebin/client.rb', line 1001 def update_rule(params = {}, = {}) req = build_request(:update_rule, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1030 1031 1032 |
# File 'lib/aws-sdk-recyclebin/client.rb', line 1030 def waiter_names [] end |