Class: Aws::DLM::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::DLM::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-dlm/lib/aws-sdk-dlm/client.rb
Overview
An API client for DLM. To construct a client, you need to configure a :region
and :credentials
.
client = Aws::DLM::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#create_lifecycle_policy(params = {}) ⇒ Types::CreateLifecyclePolicyResponse
Creates a policy to manage the lifecycle of the specified Amazon Web Services resources.
-
#delete_lifecycle_policy(params = {}) ⇒ Struct
Deletes the specified lifecycle policy and halts the automated operations that the policy specified.
-
#get_lifecycle_policies(params = {}) ⇒ Types::GetLifecyclePoliciesResponse
Gets summary information about all or the specified data lifecycle policies.
-
#get_lifecycle_policy(params = {}) ⇒ Types::GetLifecyclePolicyResponse
Gets detailed information about the specified lifecycle policy.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists the tags for the specified resource.
-
#tag_resource(params = {}) ⇒ Struct
Adds the specified tags to the specified resource.
-
#untag_resource(params = {}) ⇒ Struct
Removes the specified tags from the specified resource.
-
#update_lifecycle_policy(params = {}) ⇒ Struct
Updates the specified lifecycle policy.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
365 366 367 |
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/client.rb', line 365 def initialize(*args) super end |
Instance Method Details
#create_lifecycle_policy(params = {}) ⇒ Types::CreateLifecyclePolicyResponse
Creates a policy to manage the lifecycle of the specified Amazon Web Services resources. You can create up to 100 lifecycle policies.
535 536 537 538 |
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/client.rb', line 535 def create_lifecycle_policy(params = {}, = {}) req = build_request(:create_lifecycle_policy, params) req.send_request() end |
#delete_lifecycle_policy(params = {}) ⇒ Struct
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.
565 566 567 568 |
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/client.rb', line 565 def delete_lifecycle_policy(params = {}, = {}) req = build_request(:delete_lifecycle_policy, params) req.send_request() end |
#get_lifecycle_policies(params = {}) ⇒ Types::GetLifecyclePoliciesResponse
Gets summary information about all or the specified data lifecycle policies.
To get complete information about a policy, use GetLifecyclePolicy.
625 626 627 628 |
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/client.rb', line 625 def get_lifecycle_policies(params = {}, = {}) req = build_request(:get_lifecycle_policies, params) req.send_request() end |
#get_lifecycle_policy(params = {}) ⇒ Types::GetLifecyclePolicyResponse
Gets detailed information about the specified lifecycle policy.
732 733 734 735 |
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/client.rb', line 732 def get_lifecycle_policy(params = {}, = {}) req = build_request(:get_lifecycle_policy, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists the tags for the specified resource.
761 762 763 764 |
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/client.rb', line 761 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Adds the specified tags to the specified resource.
789 790 791 792 |
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/client.rb', line 789 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes the specified tags from the specified resource.
815 816 817 818 |
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/client.rb', line 815 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_lifecycle_policy(params = {}) ⇒ Struct
Updates the specified lifecycle policy.
For more information about updating a policy, see Modify lifecycle policies.
982 983 984 985 |
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/client.rb', line 982 def update_lifecycle_policy(params = {}, = {}) req = build_request(:update_lifecycle_policy, params) req.send_request() end |