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.
444 445 446 |
# File 'lib/aws-sdk-dlm/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.
1385 1386 1387 |
# File 'lib/aws-sdk-dlm/client.rb', line 1385 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.
1388 1389 1390 |
# File 'lib/aws-sdk-dlm/client.rb', line 1388 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.
1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 |
# File 'lib/aws-sdk-dlm/client.rb', line 1358 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.82.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
761 762 763 764 |
# File 'lib/aws-sdk-dlm/client.rb', line 761 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
791 792 793 794 |
# File 'lib/aws-sdk-dlm/client.rb', line 791 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
868 869 870 871 |
# File 'lib/aws-sdk-dlm/client.rb', line 868 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.
998 999 1000 1001 |
# File 'lib/aws-sdk-dlm/client.rb', line 998 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.
1027 1028 1029 1030 |
# File 'lib/aws-sdk-dlm/client.rb', line 1027 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.
1055 1056 1057 1058 |
# File 'lib/aws-sdk-dlm/client.rb', line 1055 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.
1081 1082 1083 1084 |
# File 'lib/aws-sdk-dlm/client.rb', line 1081 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
1349 1350 1351 1352 |
# File 'lib/aws-sdk-dlm/client.rb', line 1349 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.
1378 1379 1380 |
# File 'lib/aws-sdk-dlm/client.rb', line 1378 def waiter_names [] end |