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 AWS 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.
324 325 326 |
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/client.rb', line 324 def initialize(*args) super end |
Instance Method Details
#create_lifecycle_policy(params = {}) ⇒ Types::CreateLifecyclePolicyResponse
Creates a policy to manage the lifecycle of the specified AWS resources. You can create up to 100 lifecycle policies.
467 468 469 470 |
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/client.rb', line 467 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.
490 491 492 493 |
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/client.rb', line 490 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.
550 551 552 553 |
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/client.rb', line 550 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.
642 643 644 645 |
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/client.rb', line 642 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.
671 672 673 674 |
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/client.rb', line 671 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.
699 700 701 702 |
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/client.rb', line 699 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.
725 726 727 728 |
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/client.rb', line 725 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_lifecycle_policy(params = {}) ⇒ Struct
Updates the specified lifecycle policy.
858 859 860 861 |
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/client.rb', line 858 def update_lifecycle_policy(params = {}, = {}) req = build_request(:update_lifecycle_policy, params) req.send_request() end |