aws-sdk-recyclebin 1.1.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-recyclebin/client.rb +81 -49
- data/lib/aws-sdk-recyclebin/types.rb +77 -60
- data/lib/aws-sdk-recyclebin.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78d8deb4e4a131dedc5ed8ca8f199074d472b9059a9a6e184479236bf3ea688e
|
4
|
+
data.tar.gz: b52bdedd09e1b65e70d8583b83f5971396de42e94491dad3278689f038be20c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a43f4c971f86f1802594e53fe4c0b6e0eff94e69b2c91afb0ddc8aaddc1a9adfc683ac03c46b8767a7999c1dcaffd682162fcdc73bdc31b6665ea807ae48997d
|
7
|
+
data.tar.gz: 95fdb847733ae4cccf1e642b0cb9c77e9b7d53e3674a94546f0808730708e4da53e56b4f14deafbaec4c667678b421dff5dbe63a1340d90ef4e3301514fa12f0
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.5.0 (2022-02-24)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.4.0 (2022-02-03)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Add EC2 Image recycle bin support.
|
13
|
+
|
14
|
+
1.3.0 (2022-02-03)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Add EC2 Image recycle bin support.
|
18
|
+
|
19
|
+
1.2.0 (2021-12-21)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
23
|
+
|
4
24
|
1.1.0 (2021-11-30)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.5.0
|
@@ -27,6 +27,9 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
|
27
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
28
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
29
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
30
|
+
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
31
|
+
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
32
|
+
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
30
33
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
31
34
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
32
35
|
|
@@ -73,6 +76,9 @@ module Aws::RecycleBin
|
|
73
76
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
74
77
|
add_plugin(Aws::Plugins::TransferEncoding)
|
75
78
|
add_plugin(Aws::Plugins::HttpChecksum)
|
79
|
+
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
80
|
+
add_plugin(Aws::Plugins::DefaultsMode)
|
81
|
+
add_plugin(Aws::Plugins::RecursionDetection)
|
76
82
|
add_plugin(Aws::Plugins::SignatureV4)
|
77
83
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
78
84
|
|
@@ -175,6 +181,10 @@ module Aws::RecycleBin
|
|
175
181
|
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
176
182
|
# a clock skew correction and retry requests with skewed client clocks.
|
177
183
|
#
|
184
|
+
# @option options [String] :defaults_mode ("legacy")
|
185
|
+
# See {Aws::DefaultsModeConfiguration} for a list of the
|
186
|
+
# accepted modes and the configuration defaults that are included.
|
187
|
+
#
|
178
188
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
179
189
|
# Set to true to disable SDK automatically adding host prefix
|
180
190
|
# to default service endpoint when available.
|
@@ -297,7 +307,7 @@ module Aws::RecycleBin
|
|
297
307
|
# seconds to wait when opening a HTTP session before raising a
|
298
308
|
# `Timeout::Error`.
|
299
309
|
#
|
300
|
-
# @option options [
|
310
|
+
# @option options [Float] :http_read_timeout (60) The default
|
301
311
|
# number of seconds to wait for response data. This value can
|
302
312
|
# safely be set per-request on the session.
|
303
313
|
#
|
@@ -313,6 +323,9 @@ module Aws::RecycleBin
|
|
313
323
|
# disables this behaviour. This value can safely be set per
|
314
324
|
# request on the session.
|
315
325
|
#
|
326
|
+
# @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
|
327
|
+
# in seconds.
|
328
|
+
#
|
316
329
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
317
330
|
# HTTP debug output will be sent to the `:logger`.
|
318
331
|
#
|
@@ -339,7 +352,8 @@ module Aws::RecycleBin
|
|
339
352
|
# @!group API Operations
|
340
353
|
|
341
354
|
# Creates a Recycle Bin retention rule. For more information, see [
|
342
|
-
# Create Recycle Bin retention rules][1] in the *Amazon
|
355
|
+
# Create Recycle Bin retention rules][1] in the *Amazon Elastic Compute
|
356
|
+
# Cloud User Guide*.
|
343
357
|
#
|
344
358
|
#
|
345
359
|
#
|
@@ -350,26 +364,35 @@ module Aws::RecycleBin
|
|
350
364
|
# to retain resources.
|
351
365
|
#
|
352
366
|
# @option params [String] :description
|
353
|
-
#
|
367
|
+
# The retention rule description.
|
354
368
|
#
|
355
369
|
# @option params [Array<Types::Tag>] :tags
|
356
370
|
# Information about the tags to assign to the retention rule.
|
357
371
|
#
|
358
372
|
# @option params [required, String] :resource_type
|
359
373
|
# The resource type to be retained by the retention rule. Currently,
|
360
|
-
# only Amazon EBS snapshots are supported.
|
374
|
+
# only Amazon EBS snapshots and EBS-backed AMIs are supported. To retain
|
375
|
+
# snapshots, specify `EBS_SNAPSHOT`. To retain EBS-backed AMIs, specify
|
376
|
+
# `EC2_IMAGE`.
|
361
377
|
#
|
362
378
|
# @option params [Array<Types::ResourceTag>] :resource_tags
|
363
|
-
#
|
364
|
-
#
|
365
|
-
# only deleted
|
366
|
-
#
|
367
|
-
#
|
368
|
-
#
|
379
|
+
# Specifies the resource tags to use to identify resources that are to
|
380
|
+
# be retained by a tag-level retention rule. For tag-level retention
|
381
|
+
# rules, only deleted resources, of the specified resource type, that
|
382
|
+
# have one or more of the specified tag key and value pairs are
|
383
|
+
# retained. If a resource is deleted, but it does not have any of the
|
384
|
+
# specified tag key and value pairs, it is immediately deleted without
|
385
|
+
# being retained by the retention rule.
|
369
386
|
#
|
370
387
|
# You can add the same tag key and value pair to a maximum or five
|
371
388
|
# retention rules.
|
372
389
|
#
|
390
|
+
# To create a Region-level retention rule, omit this parameter. A
|
391
|
+
# Region-level retention rule does not have any resource tags specified.
|
392
|
+
# It retains all deleted resources of the specified resource type in the
|
393
|
+
# Region in which the rule is created, even if the resources are not
|
394
|
+
# tagged.
|
395
|
+
#
|
373
396
|
# @return [Types::CreateRuleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
374
397
|
#
|
375
398
|
# * {Types::CreateRuleResponse#identifier #identifier} => String
|
@@ -394,7 +417,7 @@ module Aws::RecycleBin
|
|
394
417
|
# value: "TagValue", # required
|
395
418
|
# },
|
396
419
|
# ],
|
397
|
-
# resource_type: "EBS_SNAPSHOT", # required, accepts EBS_SNAPSHOT
|
420
|
+
# resource_type: "EBS_SNAPSHOT", # required, accepts EBS_SNAPSHOT, EC2_IMAGE
|
398
421
|
# resource_tags: [
|
399
422
|
# {
|
400
423
|
# resource_tag_key: "ResourceTagKey", # required
|
@@ -412,7 +435,7 @@ module Aws::RecycleBin
|
|
412
435
|
# resp.tags #=> Array
|
413
436
|
# resp.tags[0].key #=> String
|
414
437
|
# resp.tags[0].value #=> String
|
415
|
-
# resp.resource_type #=> String, one of "EBS_SNAPSHOT"
|
438
|
+
# resp.resource_type #=> String, one of "EBS_SNAPSHOT", "EC2_IMAGE"
|
416
439
|
# resp.resource_tags #=> Array
|
417
440
|
# resp.resource_tags[0].resource_tag_key #=> String
|
418
441
|
# resp.resource_tags[0].resource_tag_value #=> String
|
@@ -428,14 +451,15 @@ module Aws::RecycleBin
|
|
428
451
|
end
|
429
452
|
|
430
453
|
# Deletes a Recycle Bin retention rule. For more information, see [
|
431
|
-
# Delete Recycle Bin retention rules][1] in the *Amazon
|
454
|
+
# Delete Recycle Bin retention rules][1] in the *Amazon Elastic Compute
|
455
|
+
# Cloud User Guide*.
|
432
456
|
#
|
433
457
|
#
|
434
458
|
#
|
435
459
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin-working-with-rules.html#recycle-bin-delete-rule
|
436
460
|
#
|
437
461
|
# @option params [required, String] :identifier
|
438
|
-
# The unique ID of the retention rule
|
462
|
+
# The unique ID of the retention rule.
|
439
463
|
#
|
440
464
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
441
465
|
#
|
@@ -478,7 +502,7 @@ module Aws::RecycleBin
|
|
478
502
|
#
|
479
503
|
# resp.identifier #=> String
|
480
504
|
# resp.description #=> String
|
481
|
-
# resp.resource_type #=> String, one of "EBS_SNAPSHOT"
|
505
|
+
# resp.resource_type #=> String, one of "EBS_SNAPSHOT", "EC2_IMAGE"
|
482
506
|
# resp.retention_period.retention_period_value #=> Integer
|
483
507
|
# resp.retention_period.retention_period_unit #=> String, one of "DAYS"
|
484
508
|
# resp.resource_tags #=> Array
|
@@ -498,22 +522,23 @@ module Aws::RecycleBin
|
|
498
522
|
# Lists the Recycle Bin retention rules in the Region.
|
499
523
|
#
|
500
524
|
# @option params [Integer] :max_results
|
501
|
-
# The maximum number of results to return
|
502
|
-
#
|
503
|
-
#
|
504
|
-
# 500. If `maxResults` is given a larger value than 500, you receive an
|
505
|
-
# error.
|
525
|
+
# The maximum number of results to return with a single call. To
|
526
|
+
# retrieve the remaining results, make another call with the returned
|
527
|
+
# `NextToken` value.
|
506
528
|
#
|
507
529
|
# @option params [String] :next_token
|
508
|
-
# The token
|
530
|
+
# The token for the next page of results.
|
509
531
|
#
|
510
532
|
# @option params [required, String] :resource_type
|
511
533
|
# The resource type retained by the retention rule. Only retention rules
|
512
|
-
# that retain the specified resource type are listed.
|
534
|
+
# that retain the specified resource type are listed. Currently, only
|
535
|
+
# Amazon EBS snapshots and EBS-backed AMIs are supported. To list
|
536
|
+
# retention rules that retain snapshots, specify `EBS_SNAPSHOT`. To list
|
537
|
+
# retention rules that retain EBS-backed AMIs, specify `EC2_IMAGE`.
|
513
538
|
#
|
514
539
|
# @option params [Array<Types::ResourceTag>] :resource_tags
|
515
|
-
#
|
516
|
-
# retention rule.
|
540
|
+
# Information about the resource tags used to identify resources that
|
541
|
+
# are retained by the retention rule.
|
517
542
|
#
|
518
543
|
# @return [Types::ListRulesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
519
544
|
#
|
@@ -527,7 +552,7 @@ module Aws::RecycleBin
|
|
527
552
|
# resp = client.list_rules({
|
528
553
|
# max_results: 1,
|
529
554
|
# next_token: "NextToken",
|
530
|
-
# resource_type: "EBS_SNAPSHOT", # required, accepts EBS_SNAPSHOT
|
555
|
+
# resource_type: "EBS_SNAPSHOT", # required, accepts EBS_SNAPSHOT, EC2_IMAGE
|
531
556
|
# resource_tags: [
|
532
557
|
# {
|
533
558
|
# resource_tag_key: "ResourceTagKey", # required
|
@@ -554,11 +579,10 @@ module Aws::RecycleBin
|
|
554
579
|
req.send_request(options)
|
555
580
|
end
|
556
581
|
|
557
|
-
# Lists the tags assigned a
|
582
|
+
# Lists the tags assigned to a retention rule.
|
558
583
|
#
|
559
584
|
# @option params [required, String] :resource_arn
|
560
|
-
# The Amazon Resource Name (ARN) of the
|
561
|
-
# tags.
|
585
|
+
# The Amazon Resource Name (ARN) of the retention rule.
|
562
586
|
#
|
563
587
|
# @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
564
588
|
#
|
@@ -585,14 +609,13 @@ module Aws::RecycleBin
|
|
585
609
|
req.send_request(options)
|
586
610
|
end
|
587
611
|
|
588
|
-
# Assigns tags to the specified
|
612
|
+
# Assigns tags to the specified retention rule.
|
589
613
|
#
|
590
614
|
# @option params [required, String] :resource_arn
|
591
|
-
# The Amazon Resource Name (ARN) of the
|
592
|
-
# tags.
|
615
|
+
# The Amazon Resource Name (ARN) of the retention rule.
|
593
616
|
#
|
594
617
|
# @option params [required, Array<Types::Tag>] :tags
|
595
|
-
# Information about the tags to assign to the
|
618
|
+
# Information about the tags to assign to the retention rule.
|
596
619
|
#
|
597
620
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
598
621
|
#
|
@@ -617,14 +640,14 @@ module Aws::RecycleBin
|
|
617
640
|
req.send_request(options)
|
618
641
|
end
|
619
642
|
|
620
|
-
# Unassigns a tag from a
|
643
|
+
# Unassigns a tag from a retention rule.
|
621
644
|
#
|
622
645
|
# @option params [required, String] :resource_arn
|
623
|
-
# The Amazon Resource Name (ARN) of the
|
624
|
-
# the tags.
|
646
|
+
# The Amazon Resource Name (ARN) of the retention rule.
|
625
647
|
#
|
626
648
|
# @option params [required, Array<String>] :tag_keys
|
627
|
-
#
|
649
|
+
# The tag keys of the tags to unassign. All tags that have the specified
|
650
|
+
# tag key are unassigned.
|
628
651
|
#
|
629
652
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
630
653
|
#
|
@@ -645,15 +668,15 @@ module Aws::RecycleBin
|
|
645
668
|
end
|
646
669
|
|
647
670
|
# Updates an existing Recycle Bin retention rule. For more information,
|
648
|
-
# see [ Update Recycle Bin retention rules][1] in the *Amazon
|
649
|
-
# Guide*.
|
671
|
+
# see [ Update Recycle Bin retention rules][1] in the *Amazon Elastic
|
672
|
+
# Compute Cloud User Guide*.
|
650
673
|
#
|
651
674
|
#
|
652
675
|
#
|
653
676
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin-working-with-rules.html#recycle-bin-update-rule
|
654
677
|
#
|
655
678
|
# @option params [required, String] :identifier
|
656
|
-
# The unique ID of the retention rule
|
679
|
+
# The unique ID of the retention rule.
|
657
680
|
#
|
658
681
|
# @option params [Types::RetentionPeriod] :retention_period
|
659
682
|
# Information about the retention period for which the retention rule is
|
@@ -664,19 +687,28 @@ module Aws::RecycleBin
|
|
664
687
|
#
|
665
688
|
# @option params [String] :resource_type
|
666
689
|
# The resource type to be retained by the retention rule. Currently,
|
667
|
-
# only Amazon EBS snapshots are supported.
|
690
|
+
# only Amazon EBS snapshots and EBS-backed AMIs are supported. To retain
|
691
|
+
# snapshots, specify `EBS_SNAPSHOT`. To retain EBS-backed AMIs, specify
|
692
|
+
# `EC2_IMAGE`.
|
668
693
|
#
|
669
694
|
# @option params [Array<Types::ResourceTag>] :resource_tags
|
670
|
-
#
|
671
|
-
#
|
672
|
-
# only deleted
|
673
|
-
#
|
674
|
-
#
|
675
|
-
#
|
695
|
+
# Specifies the resource tags to use to identify resources that are to
|
696
|
+
# be retained by a tag-level retention rule. For tag-level retention
|
697
|
+
# rules, only deleted resources, of the specified resource type, that
|
698
|
+
# have one or more of the specified tag key and value pairs are
|
699
|
+
# retained. If a resource is deleted, but it does not have any of the
|
700
|
+
# specified tag key and value pairs, it is immediately deleted without
|
701
|
+
# being retained by the retention rule.
|
676
702
|
#
|
677
703
|
# You can add the same tag key and value pair to a maximum or five
|
678
704
|
# retention rules.
|
679
705
|
#
|
706
|
+
# To create a Region-level retention rule, omit this parameter. A
|
707
|
+
# Region-level retention rule does not have any resource tags specified.
|
708
|
+
# It retains all deleted resources of the specified resource type in the
|
709
|
+
# Region in which the rule is created, even if the resources are not
|
710
|
+
# tagged.
|
711
|
+
#
|
680
712
|
# @return [Types::UpdateRuleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
681
713
|
#
|
682
714
|
# * {Types::UpdateRuleResponse#identifier #identifier} => String
|
@@ -695,7 +727,7 @@ module Aws::RecycleBin
|
|
695
727
|
# retention_period_unit: "DAYS", # required, accepts DAYS
|
696
728
|
# },
|
697
729
|
# description: "Description",
|
698
|
-
# resource_type: "EBS_SNAPSHOT", # accepts EBS_SNAPSHOT
|
730
|
+
# resource_type: "EBS_SNAPSHOT", # accepts EBS_SNAPSHOT, EC2_IMAGE
|
699
731
|
# resource_tags: [
|
700
732
|
# {
|
701
733
|
# resource_tag_key: "ResourceTagKey", # required
|
@@ -710,7 +742,7 @@ module Aws::RecycleBin
|
|
710
742
|
# resp.retention_period.retention_period_value #=> Integer
|
711
743
|
# resp.retention_period.retention_period_unit #=> String, one of "DAYS"
|
712
744
|
# resp.description #=> String
|
713
|
-
# resp.resource_type #=> String, one of "EBS_SNAPSHOT"
|
745
|
+
# resp.resource_type #=> String, one of "EBS_SNAPSHOT", "EC2_IMAGE"
|
714
746
|
# resp.resource_tags #=> Array
|
715
747
|
# resp.resource_tags[0].resource_tag_key #=> String
|
716
748
|
# resp.resource_tags[0].resource_tag_value #=> String
|
@@ -738,7 +770,7 @@ module Aws::RecycleBin
|
|
738
770
|
params: params,
|
739
771
|
config: config)
|
740
772
|
context[:gem_name] = 'aws-sdk-recyclebin'
|
741
|
-
context[:gem_version] = '1.
|
773
|
+
context[:gem_version] = '1.5.0'
|
742
774
|
Seahorse::Client::Request.new(handlers, context)
|
743
775
|
end
|
744
776
|
|
@@ -25,7 +25,7 @@ module Aws::RecycleBin
|
|
25
25
|
# value: "TagValue", # required
|
26
26
|
# },
|
27
27
|
# ],
|
28
|
-
# resource_type: "EBS_SNAPSHOT", # required, accepts EBS_SNAPSHOT
|
28
|
+
# resource_type: "EBS_SNAPSHOT", # required, accepts EBS_SNAPSHOT, EC2_IMAGE
|
29
29
|
# resource_tags: [
|
30
30
|
# {
|
31
31
|
# resource_tag_key: "ResourceTagKey", # required
|
@@ -40,7 +40,7 @@ module Aws::RecycleBin
|
|
40
40
|
# @return [Types::RetentionPeriod]
|
41
41
|
#
|
42
42
|
# @!attribute [rw] description
|
43
|
-
#
|
43
|
+
# The retention rule description.
|
44
44
|
# @return [String]
|
45
45
|
#
|
46
46
|
# @!attribute [rw] tags
|
@@ -49,19 +49,28 @@ module Aws::RecycleBin
|
|
49
49
|
#
|
50
50
|
# @!attribute [rw] resource_type
|
51
51
|
# The resource type to be retained by the retention rule. Currently,
|
52
|
-
# only Amazon EBS snapshots are supported.
|
52
|
+
# only Amazon EBS snapshots and EBS-backed AMIs are supported. To
|
53
|
+
# retain snapshots, specify `EBS_SNAPSHOT`. To retain EBS-backed AMIs,
|
54
|
+
# specify `EC2_IMAGE`.
|
53
55
|
# @return [String]
|
54
56
|
#
|
55
57
|
# @!attribute [rw] resource_tags
|
56
|
-
#
|
57
|
-
#
|
58
|
-
#
|
59
|
-
# specified tag key and value pairs
|
60
|
-
#
|
61
|
-
#
|
58
|
+
# Specifies the resource tags to use to identify resources that are to
|
59
|
+
# be retained by a tag-level retention rule. For tag-level retention
|
60
|
+
# rules, only deleted resources, of the specified resource type, that
|
61
|
+
# have one or more of the specified tag key and value pairs are
|
62
|
+
# retained. If a resource is deleted, but it does not have any of the
|
63
|
+
# specified tag key and value pairs, it is immediately deleted without
|
64
|
+
# being retained by the retention rule.
|
62
65
|
#
|
63
66
|
# You can add the same tag key and value pair to a maximum or five
|
64
67
|
# retention rules.
|
68
|
+
#
|
69
|
+
# To create a Region-level retention rule, omit this parameter. A
|
70
|
+
# Region-level retention rule does not have any resource tags
|
71
|
+
# specified. It retains all deleted resources of the specified
|
72
|
+
# resource type in the Region in which the rule is created, even if
|
73
|
+
# the resources are not tagged.
|
65
74
|
# @return [Array<Types::ResourceTag>]
|
66
75
|
#
|
67
76
|
# @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/CreateRuleRequest AWS API Documentation
|
@@ -77,12 +86,12 @@ module Aws::RecycleBin
|
|
77
86
|
end
|
78
87
|
|
79
88
|
# @!attribute [rw] identifier
|
80
|
-
# The unique
|
89
|
+
# The unique ID of the retention rule.
|
81
90
|
# @return [String]
|
82
91
|
#
|
83
92
|
# @!attribute [rw] retention_period
|
84
|
-
# Information about the retention period for which
|
85
|
-
# to retain resources.
|
93
|
+
# Information about the retention period for which the retention rule
|
94
|
+
# is to retain resources.
|
86
95
|
# @return [Types::RetentionPeriod]
|
87
96
|
#
|
88
97
|
# @!attribute [rw] description
|
@@ -90,7 +99,7 @@ module Aws::RecycleBin
|
|
90
99
|
# @return [String]
|
91
100
|
#
|
92
101
|
# @!attribute [rw] tags
|
93
|
-
#
|
102
|
+
# Information about the tags assigned to the retention rule.
|
94
103
|
# @return [Array<Types::Tag>]
|
95
104
|
#
|
96
105
|
# @!attribute [rw] resource_type
|
@@ -104,7 +113,7 @@ module Aws::RecycleBin
|
|
104
113
|
#
|
105
114
|
# @!attribute [rw] status
|
106
115
|
# The state of the retention rule. Only retention rules that are in
|
107
|
-
# the `available` state retain
|
116
|
+
# the `available` state retain resources.
|
108
117
|
# @return [String]
|
109
118
|
#
|
110
119
|
# @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/CreateRuleResponse AWS API Documentation
|
@@ -129,7 +138,7 @@ module Aws::RecycleBin
|
|
129
138
|
# }
|
130
139
|
#
|
131
140
|
# @!attribute [rw] identifier
|
132
|
-
# The unique ID of the retention rule
|
141
|
+
# The unique ID of the retention rule.
|
133
142
|
# @return [String]
|
134
143
|
#
|
135
144
|
# @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/DeleteRuleRequest AWS API Documentation
|
@@ -168,27 +177,26 @@ module Aws::RecycleBin
|
|
168
177
|
# @return [String]
|
169
178
|
#
|
170
179
|
# @!attribute [rw] description
|
171
|
-
# The
|
180
|
+
# The retention rule description.
|
172
181
|
# @return [String]
|
173
182
|
#
|
174
183
|
# @!attribute [rw] resource_type
|
175
|
-
# The resource type retained by the retention rule.
|
176
|
-
# Amazon EBS snapshots are supported.
|
184
|
+
# The resource type retained by the retention rule.
|
177
185
|
# @return [String]
|
178
186
|
#
|
179
187
|
# @!attribute [rw] retention_period
|
180
|
-
# Information about the period for which the retention rule
|
181
|
-
# resources.
|
188
|
+
# Information about the retention period for which the retention rule
|
189
|
+
# is to retain resources.
|
182
190
|
# @return [Types::RetentionPeriod]
|
183
191
|
#
|
184
192
|
# @!attribute [rw] resource_tags
|
185
|
-
#
|
186
|
-
# by the retention rule.
|
193
|
+
# Information about the resource tags used to identify resources that
|
194
|
+
# are retained by the retention rule.
|
187
195
|
# @return [Array<Types::ResourceTag>]
|
188
196
|
#
|
189
197
|
# @!attribute [rw] status
|
190
198
|
# The state of the retention rule. Only retention rules that are in
|
191
|
-
# the `available` state retain
|
199
|
+
# the `available` state retain resources.
|
192
200
|
# @return [String]
|
193
201
|
#
|
194
202
|
# @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/GetRuleResponse AWS API Documentation
|
@@ -224,7 +232,7 @@ module Aws::RecycleBin
|
|
224
232
|
# {
|
225
233
|
# max_results: 1,
|
226
234
|
# next_token: "NextToken",
|
227
|
-
# resource_type: "EBS_SNAPSHOT", # required, accepts EBS_SNAPSHOT
|
235
|
+
# resource_type: "EBS_SNAPSHOT", # required, accepts EBS_SNAPSHOT, EC2_IMAGE
|
228
236
|
# resource_tags: [
|
229
237
|
# {
|
230
238
|
# resource_tag_key: "ResourceTagKey", # required
|
@@ -234,25 +242,27 @@ module Aws::RecycleBin
|
|
234
242
|
# }
|
235
243
|
#
|
236
244
|
# @!attribute [rw] max_results
|
237
|
-
# The maximum number of results to return
|
238
|
-
#
|
239
|
-
#
|
240
|
-
# 500. If `maxResults` is given a larger value than 500, you receive
|
241
|
-
# an error.
|
245
|
+
# The maximum number of results to return with a single call. To
|
246
|
+
# retrieve the remaining results, make another call with the returned
|
247
|
+
# `NextToken` value.
|
242
248
|
# @return [Integer]
|
243
249
|
#
|
244
250
|
# @!attribute [rw] next_token
|
245
|
-
# The token
|
251
|
+
# The token for the next page of results.
|
246
252
|
# @return [String]
|
247
253
|
#
|
248
254
|
# @!attribute [rw] resource_type
|
249
255
|
# The resource type retained by the retention rule. Only retention
|
250
|
-
# rules that retain the specified resource type are listed.
|
256
|
+
# rules that retain the specified resource type are listed. Currently,
|
257
|
+
# only Amazon EBS snapshots and EBS-backed AMIs are supported. To list
|
258
|
+
# retention rules that retain snapshots, specify `EBS_SNAPSHOT`. To
|
259
|
+
# list retention rules that retain EBS-backed AMIs, specify
|
260
|
+
# `EC2_IMAGE`.
|
251
261
|
# @return [String]
|
252
262
|
#
|
253
263
|
# @!attribute [rw] resource_tags
|
254
|
-
#
|
255
|
-
# retention rule.
|
264
|
+
# Information about the resource tags used to identify resources that
|
265
|
+
# are retained by the retention rule.
|
256
266
|
# @return [Array<Types::ResourceTag>]
|
257
267
|
#
|
258
268
|
# @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/ListRulesRequest AWS API Documentation
|
@@ -292,8 +302,7 @@ module Aws::RecycleBin
|
|
292
302
|
# }
|
293
303
|
#
|
294
304
|
# @!attribute [rw] resource_arn
|
295
|
-
# The Amazon Resource Name (ARN) of the
|
296
|
-
# tags.
|
305
|
+
# The Amazon Resource Name (ARN) of the retention rule.
|
297
306
|
# @return [String]
|
298
307
|
#
|
299
308
|
# @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/ListTagsForResourceRequest AWS API Documentation
|
@@ -305,7 +314,7 @@ module Aws::RecycleBin
|
|
305
314
|
end
|
306
315
|
|
307
316
|
# @!attribute [rw] tags
|
308
|
-
# Information about the tags assigned to the
|
317
|
+
# Information about the tags assigned to the retention rule.
|
309
318
|
# @return [Array<Types::Tag>]
|
310
319
|
#
|
311
320
|
# @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/ListTagsForResourceResponse AWS API Documentation
|
@@ -334,8 +343,8 @@ module Aws::RecycleBin
|
|
334
343
|
include Aws::Structure
|
335
344
|
end
|
336
345
|
|
337
|
-
# Information about
|
338
|
-
#
|
346
|
+
# Information about the resource tags used to identify resources that
|
347
|
+
# are retained by the retention rule.
|
339
348
|
#
|
340
349
|
# @note When making an API call, you may pass ResourceTag
|
341
350
|
# data as a hash:
|
@@ -362,7 +371,7 @@ module Aws::RecycleBin
|
|
362
371
|
include Aws::Structure
|
363
372
|
end
|
364
373
|
|
365
|
-
# Information about the retention period for which
|
374
|
+
# Information about the retention period for which the retention rule is
|
366
375
|
# to retain resources.
|
367
376
|
#
|
368
377
|
# @note When making an API call, you may pass RetentionPeriod
|
@@ -400,12 +409,12 @@ module Aws::RecycleBin
|
|
400
409
|
# @return [String]
|
401
410
|
#
|
402
411
|
# @!attribute [rw] description
|
403
|
-
# The
|
412
|
+
# The retention rule description.
|
404
413
|
# @return [String]
|
405
414
|
#
|
406
415
|
# @!attribute [rw] retention_period
|
407
416
|
# Information about the retention period for which the retention rule
|
408
|
-
#
|
417
|
+
# is to retain resources.
|
409
418
|
# @return [Types::RetentionPeriod]
|
410
419
|
#
|
411
420
|
# @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/RuleSummary AWS API Documentation
|
@@ -437,7 +446,7 @@ module Aws::RecycleBin
|
|
437
446
|
include Aws::Structure
|
438
447
|
end
|
439
448
|
|
440
|
-
# Information about the tags
|
449
|
+
# Information about the tags to assign to the retention rule.
|
441
450
|
#
|
442
451
|
# @note When making an API call, you may pass Tag
|
443
452
|
# data as a hash:
|
@@ -478,12 +487,11 @@ module Aws::RecycleBin
|
|
478
487
|
# }
|
479
488
|
#
|
480
489
|
# @!attribute [rw] resource_arn
|
481
|
-
# The Amazon Resource Name (ARN) of the
|
482
|
-
# the tags.
|
490
|
+
# The Amazon Resource Name (ARN) of the retention rule.
|
483
491
|
# @return [String]
|
484
492
|
#
|
485
493
|
# @!attribute [rw] tags
|
486
|
-
# Information about the tags to assign to the
|
494
|
+
# Information about the tags to assign to the retention rule.
|
487
495
|
# @return [Array<Types::Tag>]
|
488
496
|
#
|
489
497
|
# @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/TagResourceRequest AWS API Documentation
|
@@ -508,12 +516,12 @@ module Aws::RecycleBin
|
|
508
516
|
# }
|
509
517
|
#
|
510
518
|
# @!attribute [rw] resource_arn
|
511
|
-
# The Amazon Resource Name (ARN) of the
|
512
|
-
# unassign the tags.
|
519
|
+
# The Amazon Resource Name (ARN) of the retention rule.
|
513
520
|
# @return [String]
|
514
521
|
#
|
515
522
|
# @!attribute [rw] tag_keys
|
516
|
-
#
|
523
|
+
# The tag keys of the tags to unassign. All tags that have the
|
524
|
+
# specified tag key are unassigned.
|
517
525
|
# @return [Array<String>]
|
518
526
|
#
|
519
527
|
# @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/UntagResourceRequest AWS API Documentation
|
@@ -539,7 +547,7 @@ module Aws::RecycleBin
|
|
539
547
|
# retention_period_unit: "DAYS", # required, accepts DAYS
|
540
548
|
# },
|
541
549
|
# description: "Description",
|
542
|
-
# resource_type: "EBS_SNAPSHOT", # accepts EBS_SNAPSHOT
|
550
|
+
# resource_type: "EBS_SNAPSHOT", # accepts EBS_SNAPSHOT, EC2_IMAGE
|
543
551
|
# resource_tags: [
|
544
552
|
# {
|
545
553
|
# resource_tag_key: "ResourceTagKey", # required
|
@@ -549,7 +557,7 @@ module Aws::RecycleBin
|
|
549
557
|
# }
|
550
558
|
#
|
551
559
|
# @!attribute [rw] identifier
|
552
|
-
# The unique ID of the retention rule
|
560
|
+
# The unique ID of the retention rule.
|
553
561
|
# @return [String]
|
554
562
|
#
|
555
563
|
# @!attribute [rw] retention_period
|
@@ -563,19 +571,28 @@ module Aws::RecycleBin
|
|
563
571
|
#
|
564
572
|
# @!attribute [rw] resource_type
|
565
573
|
# The resource type to be retained by the retention rule. Currently,
|
566
|
-
# only Amazon EBS snapshots are supported.
|
574
|
+
# only Amazon EBS snapshots and EBS-backed AMIs are supported. To
|
575
|
+
# retain snapshots, specify `EBS_SNAPSHOT`. To retain EBS-backed AMIs,
|
576
|
+
# specify `EC2_IMAGE`.
|
567
577
|
# @return [String]
|
568
578
|
#
|
569
579
|
# @!attribute [rw] resource_tags
|
570
|
-
#
|
571
|
-
#
|
572
|
-
#
|
573
|
-
# specified tag key and value pairs
|
574
|
-
#
|
575
|
-
#
|
580
|
+
# Specifies the resource tags to use to identify resources that are to
|
581
|
+
# be retained by a tag-level retention rule. For tag-level retention
|
582
|
+
# rules, only deleted resources, of the specified resource type, that
|
583
|
+
# have one or more of the specified tag key and value pairs are
|
584
|
+
# retained. If a resource is deleted, but it does not have any of the
|
585
|
+
# specified tag key and value pairs, it is immediately deleted without
|
586
|
+
# being retained by the retention rule.
|
576
587
|
#
|
577
588
|
# You can add the same tag key and value pair to a maximum or five
|
578
589
|
# retention rules.
|
590
|
+
#
|
591
|
+
# To create a Region-level retention rule, omit this parameter. A
|
592
|
+
# Region-level retention rule does not have any resource tags
|
593
|
+
# specified. It retains all deleted resources of the specified
|
594
|
+
# resource type in the Region in which the rule is created, even if
|
595
|
+
# the resources are not tagged.
|
579
596
|
# @return [Array<Types::ResourceTag>]
|
580
597
|
#
|
581
598
|
# @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/UpdateRuleRequest AWS API Documentation
|
@@ -595,8 +612,8 @@ module Aws::RecycleBin
|
|
595
612
|
# @return [String]
|
596
613
|
#
|
597
614
|
# @!attribute [rw] retention_period
|
598
|
-
# Information about the retention period for which
|
599
|
-
# to retain resources.
|
615
|
+
# Information about the retention period for which the retention rule
|
616
|
+
# is to retain resources.
|
600
617
|
# @return [Types::RetentionPeriod]
|
601
618
|
#
|
602
619
|
# @!attribute [rw] description
|
@@ -614,7 +631,7 @@ module Aws::RecycleBin
|
|
614
631
|
#
|
615
632
|
# @!attribute [rw] status
|
616
633
|
# The state of the retention rule. Only retention rules that are in
|
617
|
-
# the `available` state retain
|
634
|
+
# the `available` state retain resources.
|
618
635
|
# @return [String]
|
619
636
|
#
|
620
637
|
# @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/UpdateRuleResponse AWS API Documentation
|
data/lib/aws-sdk-recyclebin.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-recyclebin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.127.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.127.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|