Class: Aws::DLM::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::DLM::Client
- Includes:
- ClientStubs
- Defined in:
- 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](/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_lifecycle_policy(params = {}) ⇒ Types::CreateLifecyclePolicyResponse
Creates an Amazon Data Lifecycle Manager lifecycle policy.
-
#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.
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.
434 435 436 |
# File 'lib/aws-sdk-dlm/client.rb', line 434 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.
1375 1376 1377 |
# File 'lib/aws-sdk-dlm/client.rb', line 1375 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.
1378 1379 1380 |
# File 'lib/aws-sdk-dlm/client.rb', line 1378 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.
1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 |
# File 'lib/aws-sdk-dlm/client.rb', line 1348 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::DLM') ) 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-dlm' context[:gem_version] = '1.76.0' Seahorse::Client::Request.new(handlers, context) end |
#create_lifecycle_policy(params = {}) ⇒ Types::CreateLifecyclePolicyResponse
Creates an Amazon Data Lifecycle Manager lifecycle policy. Amazon Data Lifecycle Manager supports the following policy types:
-
Custom EBS snapshot policy
-
Custom EBS-backed AMI policy
-
Cross-account copy event policy
-
Default policy for EBS snapshots
-
Default policy for EBS-backed AMIs
For more information, see [ Default policies vs custom policies].
If you create a default policy, you can specify the request parameters either in the request body, or in the PolicyDetails request structure, but not both.
[1]: docs.aws.amazon.com/AWSEC2/latest/UserGuide/policy-differences.html
751 752 753 754 |
# File 'lib/aws-sdk-dlm/client.rb', line 751 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].
[1]: docs.aws.amazon.com/AWSEC2/latest/UserGuide/view-modify-delete.html#delete
781 782 783 784 |
# File 'lib/aws-sdk-dlm/client.rb', line 781 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].
[1]: docs.aws.amazon.com/dlm/latest/APIReference/API_GetLifecyclePolicy.html
858 859 860 861 |
# File 'lib/aws-sdk-dlm/client.rb', line 858 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.
988 989 990 991 |
# File 'lib/aws-sdk-dlm/client.rb', line 988 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.
1017 1018 1019 1020 |
# File 'lib/aws-sdk-dlm/client.rb', line 1017 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.
1045 1046 1047 1048 |
# File 'lib/aws-sdk-dlm/client.rb', line 1045 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.
1071 1072 1073 1074 |
# File 'lib/aws-sdk-dlm/client.rb', line 1071 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].
[1]: docs.aws.amazon.com/AWSEC2/latest/UserGuide/view-modify-delete.html#modify
1339 1340 1341 1342 |
# File 'lib/aws-sdk-dlm/client.rb', line 1339 def update_lifecycle_policy(params = {}, = {}) req = build_request(:update_lifecycle_policy, 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.
1368 1369 1370 |
# File 'lib/aws-sdk-dlm/client.rb', line 1368 def waiter_names [] end |