aws-sdk-recyclebin 1.32.0 → 1.34.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-recyclebin/client.rb +104 -23
- data/lib/aws-sdk-recyclebin/client_api.rb +11 -0
- data/lib/aws-sdk-recyclebin/endpoint_parameters.rb +9 -6
- data/lib/aws-sdk-recyclebin/endpoints.rb +2 -108
- data/lib/aws-sdk-recyclebin/plugins/endpoints.rb +1 -26
- data/lib/aws-sdk-recyclebin/types.rb +118 -42
- data/lib/aws-sdk-recyclebin.rb +1 -1
- data/sig/client.rbs +25 -2
- data/sig/types.rbs +8 -0
- 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: d2ae4dcd75686c8bc375170b03bb36fdc6e8f721af18965d414509f331c0444d
|
4
|
+
data.tar.gz: f2b5aef9af99f2e11557b1d6a1252b36a5f2fa48705c5df8b52c074814b4e7da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d587619af88314377b21cebf442c14a26b76606ee64b132b2cee9df75564cd6d8a1ff9bd82c5bf492a8a4dde9ffe434be812938f570d20f03d48636876a3982
|
7
|
+
data.tar.gz: eaab76eae022026f701965cddb61e71f8a3c8d0a56e52fd10cda16a0804bdfa44f0dc380e891345ccf47bae2694c554a6b1dfe95a55bdd291141598c40e47e7c
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.34.0 (2024-11-20)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds support for exclusion tags for Recycle Bin, which allows you to identify resources that are to be excluded, or ignored, by a Region-level retention rule.
|
8
|
+
|
9
|
+
1.33.0 (2024-10-18)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.32.0 (2024-09-24)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.34.0
|
@@ -447,13 +447,30 @@ module Aws::RecycleBin
|
|
447
447
|
|
448
448
|
# @!group API Operations
|
449
449
|
|
450
|
-
# Creates a Recycle Bin retention rule.
|
451
|
-
#
|
452
|
-
#
|
450
|
+
# Creates a Recycle Bin retention rule. You can create two types of
|
451
|
+
# retention rules:
|
452
|
+
#
|
453
|
+
# * **Tag-level retention rules** - These retention rules use resource
|
454
|
+
# tags to identify the resources to protect. For each retention rule,
|
455
|
+
# you specify one or more tag key and value pairs. Resources (of the
|
456
|
+
# specified type) that have at least one of these tag key and value
|
457
|
+
# pairs are automatically retained in the Recycle Bin upon deletion.
|
458
|
+
# Use this type of retention rule to protect specific resources in
|
459
|
+
# your account based on their tags.
|
460
|
+
#
|
461
|
+
# * **Region-level retention rules** - These retention rules, by
|
462
|
+
# default, apply to all of the resources (of the specified type) in
|
463
|
+
# the Region, even if the resources are not tagged. However, you can
|
464
|
+
# specify exclusion tags to exclude resources that have specific tags.
|
465
|
+
# Use this type of retention rule to protect all resources of a
|
466
|
+
# specific type in a Region.
|
467
|
+
#
|
468
|
+
# For more information, see [ Create Recycle Bin retention rules][1] in
|
469
|
+
# the *Amazon EBS User Guide*.
|
453
470
|
#
|
454
471
|
#
|
455
472
|
#
|
456
|
-
# [1]: https://docs.aws.amazon.com/
|
473
|
+
# [1]: https://docs.aws.amazon.com/ebs/latest/userguide/recycle-bin.html
|
457
474
|
#
|
458
475
|
# @option params [required, Types::RetentionPeriod] :retention_period
|
459
476
|
# Information about the retention period for which the retention rule is
|
@@ -472,13 +489,13 @@ module Aws::RecycleBin
|
|
472
489
|
# `EC2_IMAGE`.
|
473
490
|
#
|
474
491
|
# @option params [Array<Types::ResourceTag>] :resource_tags
|
475
|
-
# Specifies the resource tags to use
|
476
|
-
# be retained by a tag-level retention
|
477
|
-
# rules, only deleted resources, of the
|
478
|
-
# have one or more of the specified tag
|
479
|
-
# retained. If a resource is deleted, but it
|
480
|
-
# specified tag key and value pairs, it is
|
481
|
-
# being retained by the retention rule.
|
492
|
+
# \[Tag-level retention rules only\] Specifies the resource tags to use
|
493
|
+
# to identify resources that are to be retained by a tag-level retention
|
494
|
+
# rule. For tag-level retention rules, only deleted resources, of the
|
495
|
+
# specified resource type, that have one or more of the specified tag
|
496
|
+
# key and value pairs are retained. If a resource is deleted, but it
|
497
|
+
# does not have any of the specified tag key and value pairs, it is
|
498
|
+
# immediately deleted without being retained by the retention rule.
|
482
499
|
#
|
483
500
|
# You can add the same tag key and value pair to a maximum or five
|
484
501
|
# retention rules.
|
@@ -492,6 +509,14 @@ module Aws::RecycleBin
|
|
492
509
|
# @option params [Types::LockConfiguration] :lock_configuration
|
493
510
|
# Information about the retention rule lock configuration.
|
494
511
|
#
|
512
|
+
# @option params [Array<Types::ResourceTag>] :exclude_resource_tags
|
513
|
+
# \[Region-level retention rules only\] Specifies the exclusion tags to
|
514
|
+
# use to identify resources that are to be excluded, or ignored, by a
|
515
|
+
# Region-level retention rule. Resources that have any of these tags are
|
516
|
+
# not retained by the retention rule upon deletion.
|
517
|
+
#
|
518
|
+
# You can't specify exclusion tags for tag-level retention rules.
|
519
|
+
#
|
495
520
|
# @return [Types::CreateRuleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
496
521
|
#
|
497
522
|
# * {Types::CreateRuleResponse#identifier #identifier} => String
|
@@ -504,6 +529,7 @@ module Aws::RecycleBin
|
|
504
529
|
# * {Types::CreateRuleResponse#lock_configuration #lock_configuration} => Types::LockConfiguration
|
505
530
|
# * {Types::CreateRuleResponse#lock_state #lock_state} => String
|
506
531
|
# * {Types::CreateRuleResponse#rule_arn #rule_arn} => String
|
532
|
+
# * {Types::CreateRuleResponse#exclude_resource_tags #exclude_resource_tags} => Array<Types::ResourceTag>
|
507
533
|
#
|
508
534
|
# @example Request syntax with placeholder values
|
509
535
|
#
|
@@ -532,6 +558,12 @@ module Aws::RecycleBin
|
|
532
558
|
# unlock_delay_unit: "DAYS", # required, accepts DAYS
|
533
559
|
# },
|
534
560
|
# },
|
561
|
+
# exclude_resource_tags: [
|
562
|
+
# {
|
563
|
+
# resource_tag_key: "ResourceTagKey", # required
|
564
|
+
# resource_tag_value: "ResourceTagValue",
|
565
|
+
# },
|
566
|
+
# ],
|
535
567
|
# })
|
536
568
|
#
|
537
569
|
# @example Response structure
|
@@ -552,6 +584,9 @@ module Aws::RecycleBin
|
|
552
584
|
# resp.lock_configuration.unlock_delay.unlock_delay_unit #=> String, one of "DAYS"
|
553
585
|
# resp.lock_state #=> String, one of "locked", "pending_unlock", "unlocked"
|
554
586
|
# resp.rule_arn #=> String
|
587
|
+
# resp.exclude_resource_tags #=> Array
|
588
|
+
# resp.exclude_resource_tags[0].resource_tag_key #=> String
|
589
|
+
# resp.exclude_resource_tags[0].resource_tag_value #=> String
|
555
590
|
#
|
556
591
|
# @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/CreateRule AWS API Documentation
|
557
592
|
#
|
@@ -607,6 +642,7 @@ module Aws::RecycleBin
|
|
607
642
|
# * {Types::GetRuleResponse#lock_state #lock_state} => String
|
608
643
|
# * {Types::GetRuleResponse#lock_end_time #lock_end_time} => Time
|
609
644
|
# * {Types::GetRuleResponse#rule_arn #rule_arn} => String
|
645
|
+
# * {Types::GetRuleResponse#exclude_resource_tags #exclude_resource_tags} => Array<Types::ResourceTag>
|
610
646
|
#
|
611
647
|
# @example Request syntax with placeholder values
|
612
648
|
#
|
@@ -630,6 +666,9 @@ module Aws::RecycleBin
|
|
630
666
|
# resp.lock_state #=> String, one of "locked", "pending_unlock", "unlocked"
|
631
667
|
# resp.lock_end_time #=> Time
|
632
668
|
# resp.rule_arn #=> String
|
669
|
+
# resp.exclude_resource_tags #=> Array
|
670
|
+
# resp.exclude_resource_tags[0].resource_tag_key #=> String
|
671
|
+
# resp.exclude_resource_tags[0].resource_tag_value #=> String
|
633
672
|
#
|
634
673
|
# @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/GetRule AWS API Documentation
|
635
674
|
#
|
@@ -658,13 +697,18 @@ module Aws::RecycleBin
|
|
658
697
|
# retention rules that retain EBS-backed AMIs, specify `EC2_IMAGE`.
|
659
698
|
#
|
660
699
|
# @option params [Array<Types::ResourceTag>] :resource_tags
|
661
|
-
# Information about the resource tags
|
662
|
-
# are retained by the retention rule.
|
700
|
+
# \[Tag-level retention rules only\] Information about the resource tags
|
701
|
+
# used to identify resources that are retained by the retention rule.
|
663
702
|
#
|
664
703
|
# @option params [String] :lock_state
|
665
704
|
# The lock state of the retention rules to list. Only retention rules
|
666
705
|
# with the specified lock state are returned.
|
667
706
|
#
|
707
|
+
# @option params [Array<Types::ResourceTag>] :exclude_resource_tags
|
708
|
+
# \[Region-level retention rules only\] Information about the exclusion
|
709
|
+
# tags used to identify resources that are to be excluded, or ignored,
|
710
|
+
# by the retention rule.
|
711
|
+
#
|
668
712
|
# @return [Types::ListRulesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
669
713
|
#
|
670
714
|
# * {Types::ListRulesResponse#rules #rules} => Array<Types::RuleSummary>
|
@@ -685,6 +729,12 @@ module Aws::RecycleBin
|
|
685
729
|
# },
|
686
730
|
# ],
|
687
731
|
# lock_state: "locked", # accepts locked, pending_unlock, unlocked
|
732
|
+
# exclude_resource_tags: [
|
733
|
+
# {
|
734
|
+
# resource_tag_key: "ResourceTagKey", # required
|
735
|
+
# resource_tag_value: "ResourceTagValue",
|
736
|
+
# },
|
737
|
+
# ],
|
688
738
|
# })
|
689
739
|
#
|
690
740
|
# @example Response structure
|
@@ -737,8 +787,13 @@ module Aws::RecycleBin
|
|
737
787
|
req.send_request(options)
|
738
788
|
end
|
739
789
|
|
740
|
-
# Locks a retention rule. A locked retention rule can't be
|
741
|
-
# deleted.
|
790
|
+
# Locks a Region-level retention rule. A locked retention rule can't be
|
791
|
+
# modified or deleted.
|
792
|
+
#
|
793
|
+
# <note markdown="1"> You can't lock tag-level retention rules, or Region-level retention
|
794
|
+
# rules that have exclusion tags.
|
795
|
+
#
|
796
|
+
# </note>
|
742
797
|
#
|
743
798
|
# @option params [required, String] :identifier
|
744
799
|
# The unique ID of the retention rule.
|
@@ -757,6 +812,7 @@ module Aws::RecycleBin
|
|
757
812
|
# * {Types::LockRuleResponse#lock_configuration #lock_configuration} => Types::LockConfiguration
|
758
813
|
# * {Types::LockRuleResponse#lock_state #lock_state} => String
|
759
814
|
# * {Types::LockRuleResponse#rule_arn #rule_arn} => String
|
815
|
+
# * {Types::LockRuleResponse#exclude_resource_tags #exclude_resource_tags} => Array<Types::ResourceTag>
|
760
816
|
#
|
761
817
|
# @example Request syntax with placeholder values
|
762
818
|
#
|
@@ -785,6 +841,9 @@ module Aws::RecycleBin
|
|
785
841
|
# resp.lock_configuration.unlock_delay.unlock_delay_unit #=> String, one of "DAYS"
|
786
842
|
# resp.lock_state #=> String, one of "locked", "pending_unlock", "unlocked"
|
787
843
|
# resp.rule_arn #=> String
|
844
|
+
# resp.exclude_resource_tags #=> Array
|
845
|
+
# resp.exclude_resource_tags[0].resource_tag_key #=> String
|
846
|
+
# resp.exclude_resource_tags[0].resource_tag_value #=> String
|
788
847
|
#
|
789
848
|
# @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/LockRule AWS API Documentation
|
790
849
|
#
|
@@ -844,6 +903,7 @@ module Aws::RecycleBin
|
|
844
903
|
# * {Types::UnlockRuleResponse#lock_state #lock_state} => String
|
845
904
|
# * {Types::UnlockRuleResponse#lock_end_time #lock_end_time} => Time
|
846
905
|
# * {Types::UnlockRuleResponse#rule_arn #rule_arn} => String
|
906
|
+
# * {Types::UnlockRuleResponse#exclude_resource_tags #exclude_resource_tags} => Array<Types::ResourceTag>
|
847
907
|
#
|
848
908
|
# @example Request syntax with placeholder values
|
849
909
|
#
|
@@ -867,6 +927,9 @@ module Aws::RecycleBin
|
|
867
927
|
# resp.lock_state #=> String, one of "locked", "pending_unlock", "unlocked"
|
868
928
|
# resp.lock_end_time #=> Time
|
869
929
|
# resp.rule_arn #=> String
|
930
|
+
# resp.exclude_resource_tags #=> Array
|
931
|
+
# resp.exclude_resource_tags[0].resource_tag_key #=> String
|
932
|
+
# resp.exclude_resource_tags[0].resource_tag_value #=> String
|
870
933
|
#
|
871
934
|
# @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/UnlockRule AWS API Documentation
|
872
935
|
#
|
@@ -932,13 +995,13 @@ module Aws::RecycleBin
|
|
932
995
|
# </note>
|
933
996
|
#
|
934
997
|
# @option params [Array<Types::ResourceTag>] :resource_tags
|
935
|
-
# Specifies the resource tags to use
|
936
|
-
# be retained by a tag-level retention
|
937
|
-
# rules, only deleted resources, of the
|
938
|
-
# have one or more of the specified tag
|
939
|
-
# retained. If a resource is deleted, but it
|
940
|
-
# specified tag key and value pairs, it is
|
941
|
-
# being retained by the retention rule.
|
998
|
+
# \[Tag-level retention rules only\] Specifies the resource tags to use
|
999
|
+
# to identify resources that are to be retained by a tag-level retention
|
1000
|
+
# rule. For tag-level retention rules, only deleted resources, of the
|
1001
|
+
# specified resource type, that have one or more of the specified tag
|
1002
|
+
# key and value pairs are retained. If a resource is deleted, but it
|
1003
|
+
# does not have any of the specified tag key and value pairs, it is
|
1004
|
+
# immediately deleted without being retained by the retention rule.
|
942
1005
|
#
|
943
1006
|
# You can add the same tag key and value pair to a maximum or five
|
944
1007
|
# retention rules.
|
@@ -949,6 +1012,14 @@ module Aws::RecycleBin
|
|
949
1012
|
# Region in which the rule is created, even if the resources are not
|
950
1013
|
# tagged.
|
951
1014
|
#
|
1015
|
+
# @option params [Array<Types::ResourceTag>] :exclude_resource_tags
|
1016
|
+
# \[Region-level retention rules only\] Specifies the exclusion tags to
|
1017
|
+
# use to identify resources that are to be excluded, or ignored, by a
|
1018
|
+
# Region-level retention rule. Resources that have any of these tags are
|
1019
|
+
# not retained by the retention rule upon deletion.
|
1020
|
+
#
|
1021
|
+
# You can't specify exclusion tags for tag-level retention rules.
|
1022
|
+
#
|
952
1023
|
# @return [Types::UpdateRuleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
953
1024
|
#
|
954
1025
|
# * {Types::UpdateRuleResponse#identifier #identifier} => String
|
@@ -960,6 +1031,7 @@ module Aws::RecycleBin
|
|
960
1031
|
# * {Types::UpdateRuleResponse#lock_state #lock_state} => String
|
961
1032
|
# * {Types::UpdateRuleResponse#lock_end_time #lock_end_time} => Time
|
962
1033
|
# * {Types::UpdateRuleResponse#rule_arn #rule_arn} => String
|
1034
|
+
# * {Types::UpdateRuleResponse#exclude_resource_tags #exclude_resource_tags} => Array<Types::ResourceTag>
|
963
1035
|
#
|
964
1036
|
# @example Request syntax with placeholder values
|
965
1037
|
#
|
@@ -977,6 +1049,12 @@ module Aws::RecycleBin
|
|
977
1049
|
# resource_tag_value: "ResourceTagValue",
|
978
1050
|
# },
|
979
1051
|
# ],
|
1052
|
+
# exclude_resource_tags: [
|
1053
|
+
# {
|
1054
|
+
# resource_tag_key: "ResourceTagKey", # required
|
1055
|
+
# resource_tag_value: "ResourceTagValue",
|
1056
|
+
# },
|
1057
|
+
# ],
|
980
1058
|
# })
|
981
1059
|
#
|
982
1060
|
# @example Response structure
|
@@ -993,6 +1071,9 @@ module Aws::RecycleBin
|
|
993
1071
|
# resp.lock_state #=> String, one of "locked", "pending_unlock", "unlocked"
|
994
1072
|
# resp.lock_end_time #=> Time
|
995
1073
|
# resp.rule_arn #=> String
|
1074
|
+
# resp.exclude_resource_tags #=> Array
|
1075
|
+
# resp.exclude_resource_tags[0].resource_tag_key #=> String
|
1076
|
+
# resp.exclude_resource_tags[0].resource_tag_value #=> String
|
996
1077
|
#
|
997
1078
|
# @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/UpdateRule AWS API Documentation
|
998
1079
|
#
|
@@ -1021,7 +1102,7 @@ module Aws::RecycleBin
|
|
1021
1102
|
tracer: tracer
|
1022
1103
|
)
|
1023
1104
|
context[:gem_name] = 'aws-sdk-recyclebin'
|
1024
|
-
context[:gem_version] = '1.
|
1105
|
+
context[:gem_version] = '1.34.0'
|
1025
1106
|
Seahorse::Client::Request.new(handlers, context)
|
1026
1107
|
end
|
1027
1108
|
|
@@ -22,6 +22,7 @@ module Aws::RecycleBin
|
|
22
22
|
DeleteRuleResponse = Shapes::StructureShape.new(name: 'DeleteRuleResponse')
|
23
23
|
Description = Shapes::StringShape.new(name: 'Description')
|
24
24
|
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
25
|
+
ExcludeResourceTags = Shapes::ListShape.new(name: 'ExcludeResourceTags')
|
25
26
|
GetRuleRequest = Shapes::StructureShape.new(name: 'GetRuleRequest')
|
26
27
|
GetRuleResponse = Shapes::StructureShape.new(name: 'GetRuleResponse')
|
27
28
|
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
@@ -82,6 +83,7 @@ module Aws::RecycleBin
|
|
82
83
|
CreateRuleRequest.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "ResourceType"))
|
83
84
|
CreateRuleRequest.add_member(:resource_tags, Shapes::ShapeRef.new(shape: ResourceTags, location_name: "ResourceTags"))
|
84
85
|
CreateRuleRequest.add_member(:lock_configuration, Shapes::ShapeRef.new(shape: LockConfiguration, location_name: "LockConfiguration"))
|
86
|
+
CreateRuleRequest.add_member(:exclude_resource_tags, Shapes::ShapeRef.new(shape: ExcludeResourceTags, location_name: "ExcludeResourceTags"))
|
85
87
|
CreateRuleRequest.struct_class = Types::CreateRuleRequest
|
86
88
|
|
87
89
|
CreateRuleResponse.add_member(:identifier, Shapes::ShapeRef.new(shape: RuleIdentifier, location_name: "Identifier"))
|
@@ -94,6 +96,7 @@ module Aws::RecycleBin
|
|
94
96
|
CreateRuleResponse.add_member(:lock_configuration, Shapes::ShapeRef.new(shape: LockConfiguration, location_name: "LockConfiguration"))
|
95
97
|
CreateRuleResponse.add_member(:lock_state, Shapes::ShapeRef.new(shape: LockState, location_name: "LockState"))
|
96
98
|
CreateRuleResponse.add_member(:rule_arn, Shapes::ShapeRef.new(shape: RuleArn, location_name: "RuleArn"))
|
99
|
+
CreateRuleResponse.add_member(:exclude_resource_tags, Shapes::ShapeRef.new(shape: ExcludeResourceTags, location_name: "ExcludeResourceTags"))
|
97
100
|
CreateRuleResponse.struct_class = Types::CreateRuleResponse
|
98
101
|
|
99
102
|
DeleteRuleRequest.add_member(:identifier, Shapes::ShapeRef.new(shape: RuleIdentifier, required: true, location: "uri", location_name: "identifier"))
|
@@ -101,6 +104,8 @@ module Aws::RecycleBin
|
|
101
104
|
|
102
105
|
DeleteRuleResponse.struct_class = Types::DeleteRuleResponse
|
103
106
|
|
107
|
+
ExcludeResourceTags.member = Shapes::ShapeRef.new(shape: ResourceTag)
|
108
|
+
|
104
109
|
GetRuleRequest.add_member(:identifier, Shapes::ShapeRef.new(shape: RuleIdentifier, required: true, location: "uri", location_name: "identifier"))
|
105
110
|
GetRuleRequest.struct_class = Types::GetRuleRequest
|
106
111
|
|
@@ -114,6 +119,7 @@ module Aws::RecycleBin
|
|
114
119
|
GetRuleResponse.add_member(:lock_state, Shapes::ShapeRef.new(shape: LockState, location_name: "LockState"))
|
115
120
|
GetRuleResponse.add_member(:lock_end_time, Shapes::ShapeRef.new(shape: TimeStamp, location_name: "LockEndTime"))
|
116
121
|
GetRuleResponse.add_member(:rule_arn, Shapes::ShapeRef.new(shape: RuleArn, location_name: "RuleArn"))
|
122
|
+
GetRuleResponse.add_member(:exclude_resource_tags, Shapes::ShapeRef.new(shape: ExcludeResourceTags, location_name: "ExcludeResourceTags"))
|
117
123
|
GetRuleResponse.struct_class = Types::GetRuleResponse
|
118
124
|
|
119
125
|
InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
@@ -124,6 +130,7 @@ module Aws::RecycleBin
|
|
124
130
|
ListRulesRequest.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "ResourceType"))
|
125
131
|
ListRulesRequest.add_member(:resource_tags, Shapes::ShapeRef.new(shape: ResourceTags, location_name: "ResourceTags"))
|
126
132
|
ListRulesRequest.add_member(:lock_state, Shapes::ShapeRef.new(shape: LockState, location_name: "LockState"))
|
133
|
+
ListRulesRequest.add_member(:exclude_resource_tags, Shapes::ShapeRef.new(shape: ExcludeResourceTags, location_name: "ExcludeResourceTags"))
|
127
134
|
ListRulesRequest.struct_class = Types::ListRulesRequest
|
128
135
|
|
129
136
|
ListRulesResponse.add_member(:rules, Shapes::ShapeRef.new(shape: RuleSummaryList, location_name: "Rules"))
|
@@ -152,6 +159,7 @@ module Aws::RecycleBin
|
|
152
159
|
LockRuleResponse.add_member(:lock_configuration, Shapes::ShapeRef.new(shape: LockConfiguration, location_name: "LockConfiguration"))
|
153
160
|
LockRuleResponse.add_member(:lock_state, Shapes::ShapeRef.new(shape: LockState, location_name: "LockState"))
|
154
161
|
LockRuleResponse.add_member(:rule_arn, Shapes::ShapeRef.new(shape: RuleArn, location_name: "RuleArn"))
|
162
|
+
LockRuleResponse.add_member(:exclude_resource_tags, Shapes::ShapeRef.new(shape: ExcludeResourceTags, location_name: "ExcludeResourceTags"))
|
155
163
|
LockRuleResponse.struct_class = Types::LockRuleResponse
|
156
164
|
|
157
165
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
@@ -212,6 +220,7 @@ module Aws::RecycleBin
|
|
212
220
|
UnlockRuleResponse.add_member(:lock_state, Shapes::ShapeRef.new(shape: LockState, location_name: "LockState"))
|
213
221
|
UnlockRuleResponse.add_member(:lock_end_time, Shapes::ShapeRef.new(shape: TimeStamp, location_name: "LockEndTime"))
|
214
222
|
UnlockRuleResponse.add_member(:rule_arn, Shapes::ShapeRef.new(shape: RuleArn, location_name: "RuleArn"))
|
223
|
+
UnlockRuleResponse.add_member(:exclude_resource_tags, Shapes::ShapeRef.new(shape: ExcludeResourceTags, location_name: "ExcludeResourceTags"))
|
215
224
|
UnlockRuleResponse.struct_class = Types::UnlockRuleResponse
|
216
225
|
|
217
226
|
UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: RuleArn, required: true, location: "uri", location_name: "resourceArn"))
|
@@ -225,6 +234,7 @@ module Aws::RecycleBin
|
|
225
234
|
UpdateRuleRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
226
235
|
UpdateRuleRequest.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "ResourceType"))
|
227
236
|
UpdateRuleRequest.add_member(:resource_tags, Shapes::ShapeRef.new(shape: ResourceTags, location_name: "ResourceTags"))
|
237
|
+
UpdateRuleRequest.add_member(:exclude_resource_tags, Shapes::ShapeRef.new(shape: ExcludeResourceTags, location_name: "ExcludeResourceTags"))
|
228
238
|
UpdateRuleRequest.struct_class = Types::UpdateRuleRequest
|
229
239
|
|
230
240
|
UpdateRuleResponse.add_member(:identifier, Shapes::ShapeRef.new(shape: RuleIdentifier, location_name: "Identifier"))
|
@@ -236,6 +246,7 @@ module Aws::RecycleBin
|
|
236
246
|
UpdateRuleResponse.add_member(:lock_state, Shapes::ShapeRef.new(shape: LockState, location_name: "LockState"))
|
237
247
|
UpdateRuleResponse.add_member(:lock_end_time, Shapes::ShapeRef.new(shape: TimeStamp, location_name: "LockEndTime"))
|
238
248
|
UpdateRuleResponse.add_member(:rule_arn, Shapes::ShapeRef.new(shape: RuleArn, location_name: "RuleArn"))
|
249
|
+
UpdateRuleResponse.add_member(:exclude_resource_tags, Shapes::ShapeRef.new(shape: ExcludeResourceTags, location_name: "ExcludeResourceTags"))
|
239
250
|
UpdateRuleResponse.struct_class = Types::UpdateRuleResponse
|
240
251
|
|
241
252
|
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
@@ -52,15 +52,18 @@ module Aws::RecycleBin
|
|
52
52
|
self[:region] = options[:region]
|
53
53
|
self[:use_dual_stack] = options[:use_dual_stack]
|
54
54
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
|
-
if self[:use_dual_stack].nil?
|
56
|
-
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
57
|
-
end
|
58
55
|
self[:use_fips] = options[:use_fips]
|
59
56
|
self[:use_fips] = false if self[:use_fips].nil?
|
60
|
-
if self[:use_fips].nil?
|
61
|
-
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
62
|
-
end
|
63
57
|
self[:endpoint] = options[:endpoint]
|
64
58
|
end
|
59
|
+
|
60
|
+
def self.create(config, options={})
|
61
|
+
new({
|
62
|
+
region: config.region,
|
63
|
+
use_dual_stack: config.use_dualstack_endpoint,
|
64
|
+
use_fips: config.use_fips_endpoint,
|
65
|
+
endpoint: (config.endpoint.to_s unless config.regional_endpoint),
|
66
|
+
}.merge(options))
|
67
|
+
end
|
65
68
|
end
|
66
69
|
end
|
@@ -12,115 +12,9 @@ module Aws::RecycleBin
|
|
12
12
|
# @api private
|
13
13
|
module Endpoints
|
14
14
|
|
15
|
-
class CreateRule
|
16
|
-
def self.build(context)
|
17
|
-
Aws::RecycleBin::EndpointParameters.new(
|
18
|
-
region: context.config.region,
|
19
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
20
|
-
use_fips: context.config.use_fips_endpoint,
|
21
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
22
|
-
)
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
class DeleteRule
|
27
|
-
def self.build(context)
|
28
|
-
Aws::RecycleBin::EndpointParameters.new(
|
29
|
-
region: context.config.region,
|
30
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
31
|
-
use_fips: context.config.use_fips_endpoint,
|
32
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
33
|
-
)
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
class GetRule
|
38
|
-
def self.build(context)
|
39
|
-
Aws::RecycleBin::EndpointParameters.new(
|
40
|
-
region: context.config.region,
|
41
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
42
|
-
use_fips: context.config.use_fips_endpoint,
|
43
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
44
|
-
)
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
class ListRules
|
49
|
-
def self.build(context)
|
50
|
-
Aws::RecycleBin::EndpointParameters.new(
|
51
|
-
region: context.config.region,
|
52
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
53
|
-
use_fips: context.config.use_fips_endpoint,
|
54
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
55
|
-
)
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
class ListTagsForResource
|
60
|
-
def self.build(context)
|
61
|
-
Aws::RecycleBin::EndpointParameters.new(
|
62
|
-
region: context.config.region,
|
63
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
64
|
-
use_fips: context.config.use_fips_endpoint,
|
65
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
66
|
-
)
|
67
|
-
end
|
68
|
-
end
|
69
15
|
|
70
|
-
|
71
|
-
|
72
|
-
Aws::RecycleBin::EndpointParameters.new(
|
73
|
-
region: context.config.region,
|
74
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
75
|
-
use_fips: context.config.use_fips_endpoint,
|
76
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
77
|
-
)
|
78
|
-
end
|
16
|
+
def self.parameters_for_operation(context)
|
17
|
+
Aws::RecycleBin::EndpointParameters.create(context.config)
|
79
18
|
end
|
80
|
-
|
81
|
-
class TagResource
|
82
|
-
def self.build(context)
|
83
|
-
Aws::RecycleBin::EndpointParameters.new(
|
84
|
-
region: context.config.region,
|
85
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
86
|
-
use_fips: context.config.use_fips_endpoint,
|
87
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
88
|
-
)
|
89
|
-
end
|
90
|
-
end
|
91
|
-
|
92
|
-
class UnlockRule
|
93
|
-
def self.build(context)
|
94
|
-
Aws::RecycleBin::EndpointParameters.new(
|
95
|
-
region: context.config.region,
|
96
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
97
|
-
use_fips: context.config.use_fips_endpoint,
|
98
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
99
|
-
)
|
100
|
-
end
|
101
|
-
end
|
102
|
-
|
103
|
-
class UntagResource
|
104
|
-
def self.build(context)
|
105
|
-
Aws::RecycleBin::EndpointParameters.new(
|
106
|
-
region: context.config.region,
|
107
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
108
|
-
use_fips: context.config.use_fips_endpoint,
|
109
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
110
|
-
)
|
111
|
-
end
|
112
|
-
end
|
113
|
-
|
114
|
-
class UpdateRule
|
115
|
-
def self.build(context)
|
116
|
-
Aws::RecycleBin::EndpointParameters.new(
|
117
|
-
region: context.config.region,
|
118
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
119
|
-
use_fips: context.config.use_fips_endpoint,
|
120
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
121
|
-
)
|
122
|
-
end
|
123
|
-
end
|
124
|
-
|
125
19
|
end
|
126
20
|
end
|
@@ -27,7 +27,7 @@ The endpoint provider used to resolve endpoints. Any object that responds to
|
|
27
27
|
class Handler < Seahorse::Client::Handler
|
28
28
|
def call(context)
|
29
29
|
unless context[:discovered_endpoint]
|
30
|
-
params = parameters_for_operation(context)
|
30
|
+
params = Aws::RecycleBin::Endpoints.parameters_for_operation(context)
|
31
31
|
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
32
|
|
33
33
|
context.http_request.endpoint = endpoint.url
|
@@ -67,31 +67,6 @@ The endpoint provider used to resolve endpoints. Any object that responds to
|
|
67
67
|
context.http_request.headers[key] = value
|
68
68
|
end
|
69
69
|
end
|
70
|
-
|
71
|
-
def parameters_for_operation(context)
|
72
|
-
case context.operation_name
|
73
|
-
when :create_rule
|
74
|
-
Aws::RecycleBin::Endpoints::CreateRule.build(context)
|
75
|
-
when :delete_rule
|
76
|
-
Aws::RecycleBin::Endpoints::DeleteRule.build(context)
|
77
|
-
when :get_rule
|
78
|
-
Aws::RecycleBin::Endpoints::GetRule.build(context)
|
79
|
-
when :list_rules
|
80
|
-
Aws::RecycleBin::Endpoints::ListRules.build(context)
|
81
|
-
when :list_tags_for_resource
|
82
|
-
Aws::RecycleBin::Endpoints::ListTagsForResource.build(context)
|
83
|
-
when :lock_rule
|
84
|
-
Aws::RecycleBin::Endpoints::LockRule.build(context)
|
85
|
-
when :tag_resource
|
86
|
-
Aws::RecycleBin::Endpoints::TagResource.build(context)
|
87
|
-
when :unlock_rule
|
88
|
-
Aws::RecycleBin::Endpoints::UnlockRule.build(context)
|
89
|
-
when :untag_resource
|
90
|
-
Aws::RecycleBin::Endpoints::UntagResource.build(context)
|
91
|
-
when :update_rule
|
92
|
-
Aws::RecycleBin::Endpoints::UpdateRule.build(context)
|
93
|
-
end
|
94
|
-
end
|
95
70
|
end
|
96
71
|
|
97
72
|
def add_handlers(handlers, _config)
|
@@ -49,13 +49,14 @@ module Aws::RecycleBin
|
|
49
49
|
# @return [String]
|
50
50
|
#
|
51
51
|
# @!attribute [rw] resource_tags
|
52
|
-
# Specifies the resource tags to
|
53
|
-
# be retained by a tag-level
|
54
|
-
#
|
55
|
-
#
|
56
|
-
#
|
57
|
-
#
|
58
|
-
# being retained by the
|
52
|
+
# \[Tag-level retention rules only\] Specifies the resource tags to
|
53
|
+
# use to identify resources that are to be retained by a tag-level
|
54
|
+
# retention rule. For tag-level retention rules, only deleted
|
55
|
+
# resources, of the specified resource type, that have one or more of
|
56
|
+
# the specified tag key and value pairs are retained. If a resource is
|
57
|
+
# deleted, but it does not have any of the specified tag key and value
|
58
|
+
# pairs, it is immediately deleted without being retained by the
|
59
|
+
# retention rule.
|
59
60
|
#
|
60
61
|
# You can add the same tag key and value pair to a maximum or five
|
61
62
|
# retention rules.
|
@@ -71,6 +72,15 @@ module Aws::RecycleBin
|
|
71
72
|
# Information about the retention rule lock configuration.
|
72
73
|
# @return [Types::LockConfiguration]
|
73
74
|
#
|
75
|
+
# @!attribute [rw] exclude_resource_tags
|
76
|
+
# \[Region-level retention rules only\] Specifies the exclusion tags
|
77
|
+
# to use to identify resources that are to be excluded, or ignored, by
|
78
|
+
# a Region-level retention rule. Resources that have any of these tags
|
79
|
+
# are not retained by the retention rule upon deletion.
|
80
|
+
#
|
81
|
+
# You can't specify exclusion tags for tag-level retention rules.
|
82
|
+
# @return [Array<Types::ResourceTag>]
|
83
|
+
#
|
74
84
|
# @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/CreateRuleRequest AWS API Documentation
|
75
85
|
#
|
76
86
|
class CreateRuleRequest < Struct.new(
|
@@ -79,7 +89,8 @@ module Aws::RecycleBin
|
|
79
89
|
:tags,
|
80
90
|
:resource_type,
|
81
91
|
:resource_tags,
|
82
|
-
:lock_configuration
|
92
|
+
:lock_configuration,
|
93
|
+
:exclude_resource_tags)
|
83
94
|
SENSITIVE = []
|
84
95
|
include Aws::Structure
|
85
96
|
end
|
@@ -106,8 +117,9 @@ module Aws::RecycleBin
|
|
106
117
|
# @return [String]
|
107
118
|
#
|
108
119
|
# @!attribute [rw] resource_tags
|
109
|
-
# Information about the resource
|
110
|
-
# are retained by the retention
|
120
|
+
# \[Tag-level retention rules only\] Information about the resource
|
121
|
+
# tags used to identify resources that are retained by the retention
|
122
|
+
# rule.
|
111
123
|
# @return [Array<Types::ResourceTag>]
|
112
124
|
#
|
113
125
|
# @!attribute [rw] status
|
@@ -120,7 +132,8 @@ module Aws::RecycleBin
|
|
120
132
|
# @return [Types::LockConfiguration]
|
121
133
|
#
|
122
134
|
# @!attribute [rw] lock_state
|
123
|
-
# The lock state for the
|
135
|
+
# \[Region-level retention rules only\] The lock state for the
|
136
|
+
# retention rule.
|
124
137
|
#
|
125
138
|
# * `locked` - The retention rule is locked and can't be modified or
|
126
139
|
# deleted.
|
@@ -143,6 +156,12 @@ module Aws::RecycleBin
|
|
143
156
|
# The Amazon Resource Name (ARN) of the retention rule.
|
144
157
|
# @return [String]
|
145
158
|
#
|
159
|
+
# @!attribute [rw] exclude_resource_tags
|
160
|
+
# \[Region-level retention rules only\] Information about the
|
161
|
+
# exclusion tags used to identify resources that are to be excluded,
|
162
|
+
# or ignored, by the retention rule.
|
163
|
+
# @return [Array<Types::ResourceTag>]
|
164
|
+
#
|
146
165
|
# @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/CreateRuleResponse AWS API Documentation
|
147
166
|
#
|
148
167
|
class CreateRuleResponse < Struct.new(
|
@@ -155,7 +174,8 @@ module Aws::RecycleBin
|
|
155
174
|
:status,
|
156
175
|
:lock_configuration,
|
157
176
|
:lock_state,
|
158
|
-
:rule_arn
|
177
|
+
:rule_arn,
|
178
|
+
:exclude_resource_tags)
|
159
179
|
SENSITIVE = []
|
160
180
|
include Aws::Structure
|
161
181
|
end
|
@@ -206,8 +226,9 @@ module Aws::RecycleBin
|
|
206
226
|
# @return [Types::RetentionPeriod]
|
207
227
|
#
|
208
228
|
# @!attribute [rw] resource_tags
|
209
|
-
# Information about the resource
|
210
|
-
# are retained by the retention
|
229
|
+
# \[Tag-level retention rules only\] Information about the resource
|
230
|
+
# tags used to identify resources that are retained by the retention
|
231
|
+
# rule.
|
211
232
|
# @return [Array<Types::ResourceTag>]
|
212
233
|
#
|
213
234
|
# @!attribute [rw] status
|
@@ -220,7 +241,8 @@ module Aws::RecycleBin
|
|
220
241
|
# @return [Types::LockConfiguration]
|
221
242
|
#
|
222
243
|
# @!attribute [rw] lock_state
|
223
|
-
# The lock state for the
|
244
|
+
# \[Region-level retention rules only\] The lock state for the
|
245
|
+
# retention rule.
|
224
246
|
#
|
225
247
|
# * `locked` - The retention rule is locked and can't be modified or
|
226
248
|
# deleted.
|
@@ -249,6 +271,12 @@ module Aws::RecycleBin
|
|
249
271
|
# The Amazon Resource Name (ARN) of the retention rule.
|
250
272
|
# @return [String]
|
251
273
|
#
|
274
|
+
# @!attribute [rw] exclude_resource_tags
|
275
|
+
# \[Region-level retention rules only\] Information about the
|
276
|
+
# exclusion tags used to identify resources that are to be excluded,
|
277
|
+
# or ignored, by the retention rule.
|
278
|
+
# @return [Array<Types::ResourceTag>]
|
279
|
+
#
|
252
280
|
# @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/GetRuleResponse AWS API Documentation
|
253
281
|
#
|
254
282
|
class GetRuleResponse < Struct.new(
|
@@ -261,7 +289,8 @@ module Aws::RecycleBin
|
|
261
289
|
:lock_configuration,
|
262
290
|
:lock_state,
|
263
291
|
:lock_end_time,
|
264
|
-
:rule_arn
|
292
|
+
:rule_arn,
|
293
|
+
:exclude_resource_tags)
|
265
294
|
SENSITIVE = []
|
266
295
|
include Aws::Structure
|
267
296
|
end
|
@@ -300,8 +329,9 @@ module Aws::RecycleBin
|
|
300
329
|
# @return [String]
|
301
330
|
#
|
302
331
|
# @!attribute [rw] resource_tags
|
303
|
-
# Information about the resource
|
304
|
-
# are retained by the retention
|
332
|
+
# \[Tag-level retention rules only\] Information about the resource
|
333
|
+
# tags used to identify resources that are retained by the retention
|
334
|
+
# rule.
|
305
335
|
# @return [Array<Types::ResourceTag>]
|
306
336
|
#
|
307
337
|
# @!attribute [rw] lock_state
|
@@ -309,6 +339,12 @@ module Aws::RecycleBin
|
|
309
339
|
# with the specified lock state are returned.
|
310
340
|
# @return [String]
|
311
341
|
#
|
342
|
+
# @!attribute [rw] exclude_resource_tags
|
343
|
+
# \[Region-level retention rules only\] Information about the
|
344
|
+
# exclusion tags used to identify resources that are to be excluded,
|
345
|
+
# or ignored, by the retention rule.
|
346
|
+
# @return [Array<Types::ResourceTag>]
|
347
|
+
#
|
312
348
|
# @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/ListRulesRequest AWS API Documentation
|
313
349
|
#
|
314
350
|
class ListRulesRequest < Struct.new(
|
@@ -316,7 +352,8 @@ module Aws::RecycleBin
|
|
316
352
|
:next_token,
|
317
353
|
:resource_type,
|
318
354
|
:resource_tags,
|
319
|
-
:lock_state
|
355
|
+
:lock_state,
|
356
|
+
:exclude_resource_tags)
|
320
357
|
SENSITIVE = []
|
321
358
|
include Aws::Structure
|
322
359
|
end
|
@@ -412,8 +449,9 @@ module Aws::RecycleBin
|
|
412
449
|
# @return [Types::RetentionPeriod]
|
413
450
|
#
|
414
451
|
# @!attribute [rw] resource_tags
|
415
|
-
# Information about the resource
|
416
|
-
# are retained by the retention
|
452
|
+
# \[Tag-level retention rules only\] Information about the resource
|
453
|
+
# tags used to identify resources that are retained by the retention
|
454
|
+
# rule.
|
417
455
|
# @return [Array<Types::ResourceTag>]
|
418
456
|
#
|
419
457
|
# @!attribute [rw] status
|
@@ -426,7 +464,8 @@ module Aws::RecycleBin
|
|
426
464
|
# @return [Types::LockConfiguration]
|
427
465
|
#
|
428
466
|
# @!attribute [rw] lock_state
|
429
|
-
# The lock state for the
|
467
|
+
# \[Region-level retention rules only\] The lock state for the
|
468
|
+
# retention rule.
|
430
469
|
#
|
431
470
|
# * `locked` - The retention rule is locked and can't be modified or
|
432
471
|
# deleted.
|
@@ -449,6 +488,12 @@ module Aws::RecycleBin
|
|
449
488
|
# The Amazon Resource Name (ARN) of the retention rule.
|
450
489
|
# @return [String]
|
451
490
|
#
|
491
|
+
# @!attribute [rw] exclude_resource_tags
|
492
|
+
# \[Region-level retention rules only\] Information about the
|
493
|
+
# exclusion tags used to identify resources that are to be excluded,
|
494
|
+
# or ignored, by the retention rule.
|
495
|
+
# @return [Array<Types::ResourceTag>]
|
496
|
+
#
|
452
497
|
# @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/LockRuleResponse AWS API Documentation
|
453
498
|
#
|
454
499
|
class LockRuleResponse < Struct.new(
|
@@ -460,7 +505,8 @@ module Aws::RecycleBin
|
|
460
505
|
:status,
|
461
506
|
:lock_configuration,
|
462
507
|
:lock_state,
|
463
|
-
:rule_arn
|
508
|
+
:rule_arn,
|
509
|
+
:exclude_resource_tags)
|
464
510
|
SENSITIVE = []
|
465
511
|
include Aws::Structure
|
466
512
|
end
|
@@ -483,8 +529,8 @@ module Aws::RecycleBin
|
|
483
529
|
include Aws::Structure
|
484
530
|
end
|
485
531
|
|
486
|
-
# Information about the resource tags
|
487
|
-
# are retained by the retention rule.
|
532
|
+
# \[Tag-level retention rules only\] Information about the resource tags
|
533
|
+
# used to identify resources that are retained by the retention rule.
|
488
534
|
#
|
489
535
|
# @!attribute [rw] resource_tag_key
|
490
536
|
# The tag key.
|
@@ -542,7 +588,8 @@ module Aws::RecycleBin
|
|
542
588
|
# @return [Types::RetentionPeriod]
|
543
589
|
#
|
544
590
|
# @!attribute [rw] lock_state
|
545
|
-
# The lock state for the
|
591
|
+
# \[Region-level retention rules only\] The lock state for the
|
592
|
+
# retention rule.
|
546
593
|
#
|
547
594
|
# * `locked` - The retention rule is locked and can't be modified or
|
548
595
|
# deleted.
|
@@ -691,8 +738,9 @@ module Aws::RecycleBin
|
|
691
738
|
# @return [Types::RetentionPeriod]
|
692
739
|
#
|
693
740
|
# @!attribute [rw] resource_tags
|
694
|
-
# Information about the resource
|
695
|
-
# are retained by the retention
|
741
|
+
# \[Tag-level retention rules only\] Information about the resource
|
742
|
+
# tags used to identify resources that are retained by the retention
|
743
|
+
# rule.
|
696
744
|
# @return [Array<Types::ResourceTag>]
|
697
745
|
#
|
698
746
|
# @!attribute [rw] status
|
@@ -705,7 +753,8 @@ module Aws::RecycleBin
|
|
705
753
|
# @return [Types::LockConfiguration]
|
706
754
|
#
|
707
755
|
# @!attribute [rw] lock_state
|
708
|
-
# The lock state for the
|
756
|
+
# \[Region-level retention rules only\] The lock state for the
|
757
|
+
# retention rule.
|
709
758
|
#
|
710
759
|
# * `locked` - The retention rule is locked and can't be modified or
|
711
760
|
# deleted.
|
@@ -734,6 +783,12 @@ module Aws::RecycleBin
|
|
734
783
|
# The Amazon Resource Name (ARN) of the retention rule.
|
735
784
|
# @return [String]
|
736
785
|
#
|
786
|
+
# @!attribute [rw] exclude_resource_tags
|
787
|
+
# \[Region-level retention rules only\] Information about the
|
788
|
+
# exclusion tags used to identify resources that are to be excluded,
|
789
|
+
# or ignored, by the retention rule.
|
790
|
+
# @return [Array<Types::ResourceTag>]
|
791
|
+
#
|
737
792
|
# @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/UnlockRuleResponse AWS API Documentation
|
738
793
|
#
|
739
794
|
class UnlockRuleResponse < Struct.new(
|
@@ -746,7 +801,8 @@ module Aws::RecycleBin
|
|
746
801
|
:lock_configuration,
|
747
802
|
:lock_state,
|
748
803
|
:lock_end_time,
|
749
|
-
:rule_arn
|
804
|
+
:rule_arn,
|
805
|
+
:exclude_resource_tags)
|
750
806
|
SENSITIVE = []
|
751
807
|
include Aws::Structure
|
752
808
|
end
|
@@ -794,13 +850,14 @@ module Aws::RecycleBin
|
|
794
850
|
# @return [String]
|
795
851
|
#
|
796
852
|
# @!attribute [rw] resource_tags
|
797
|
-
# Specifies the resource tags to
|
798
|
-
# be retained by a tag-level
|
799
|
-
#
|
800
|
-
#
|
801
|
-
#
|
802
|
-
#
|
803
|
-
# being retained by the
|
853
|
+
# \[Tag-level retention rules only\] Specifies the resource tags to
|
854
|
+
# use to identify resources that are to be retained by a tag-level
|
855
|
+
# retention rule. For tag-level retention rules, only deleted
|
856
|
+
# resources, of the specified resource type, that have one or more of
|
857
|
+
# the specified tag key and value pairs are retained. If a resource is
|
858
|
+
# deleted, but it does not have any of the specified tag key and value
|
859
|
+
# pairs, it is immediately deleted without being retained by the
|
860
|
+
# retention rule.
|
804
861
|
#
|
805
862
|
# You can add the same tag key and value pair to a maximum or five
|
806
863
|
# retention rules.
|
@@ -812,6 +869,15 @@ module Aws::RecycleBin
|
|
812
869
|
# the resources are not tagged.
|
813
870
|
# @return [Array<Types::ResourceTag>]
|
814
871
|
#
|
872
|
+
# @!attribute [rw] exclude_resource_tags
|
873
|
+
# \[Region-level retention rules only\] Specifies the exclusion tags
|
874
|
+
# to use to identify resources that are to be excluded, or ignored, by
|
875
|
+
# a Region-level retention rule. Resources that have any of these tags
|
876
|
+
# are not retained by the retention rule upon deletion.
|
877
|
+
#
|
878
|
+
# You can't specify exclusion tags for tag-level retention rules.
|
879
|
+
# @return [Array<Types::ResourceTag>]
|
880
|
+
#
|
815
881
|
# @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/UpdateRuleRequest AWS API Documentation
|
816
882
|
#
|
817
883
|
class UpdateRuleRequest < Struct.new(
|
@@ -819,7 +885,8 @@ module Aws::RecycleBin
|
|
819
885
|
:retention_period,
|
820
886
|
:description,
|
821
887
|
:resource_type,
|
822
|
-
:resource_tags
|
888
|
+
:resource_tags,
|
889
|
+
:exclude_resource_tags)
|
823
890
|
SENSITIVE = []
|
824
891
|
include Aws::Structure
|
825
892
|
end
|
@@ -842,8 +909,9 @@ module Aws::RecycleBin
|
|
842
909
|
# @return [String]
|
843
910
|
#
|
844
911
|
# @!attribute [rw] resource_tags
|
845
|
-
# Information about the resource
|
846
|
-
# are retained by the retention
|
912
|
+
# \[Tag-level retention rules only\] Information about the resource
|
913
|
+
# tags used to identify resources that are retained by the retention
|
914
|
+
# rule.
|
847
915
|
# @return [Array<Types::ResourceTag>]
|
848
916
|
#
|
849
917
|
# @!attribute [rw] status
|
@@ -852,7 +920,8 @@ module Aws::RecycleBin
|
|
852
920
|
# @return [String]
|
853
921
|
#
|
854
922
|
# @!attribute [rw] lock_state
|
855
|
-
# The lock state for the
|
923
|
+
# \[Region-level retention rules only\] The lock state for the
|
924
|
+
# retention rule.
|
856
925
|
#
|
857
926
|
# * `locked` - The retention rule is locked and can't be modified or
|
858
927
|
# deleted.
|
@@ -881,6 +950,12 @@ module Aws::RecycleBin
|
|
881
950
|
# The Amazon Resource Name (ARN) of the retention rule.
|
882
951
|
# @return [String]
|
883
952
|
#
|
953
|
+
# @!attribute [rw] exclude_resource_tags
|
954
|
+
# \[Region-level retention rules only\] Information about the
|
955
|
+
# exclusion tags used to identify resources that are to be excluded,
|
956
|
+
# or ignored, by the retention rule.
|
957
|
+
# @return [Array<Types::ResourceTag>]
|
958
|
+
#
|
884
959
|
# @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/UpdateRuleResponse AWS API Documentation
|
885
960
|
#
|
886
961
|
class UpdateRuleResponse < Struct.new(
|
@@ -892,7 +967,8 @@ module Aws::RecycleBin
|
|
892
967
|
:status,
|
893
968
|
:lock_state,
|
894
969
|
:lock_end_time,
|
895
|
-
:rule_arn
|
970
|
+
:rule_arn,
|
971
|
+
:exclude_resource_tags)
|
896
972
|
SENSITIVE = []
|
897
973
|
include Aws::Structure
|
898
974
|
end
|
data/lib/aws-sdk-recyclebin.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -87,6 +87,7 @@ module Aws
|
|
87
87
|
def lock_configuration: () -> Types::LockConfiguration
|
88
88
|
def lock_state: () -> ("locked" | "pending_unlock" | "unlocked")
|
89
89
|
def rule_arn: () -> ::String
|
90
|
+
def exclude_resource_tags: () -> ::Array[Types::ResourceTag]
|
90
91
|
end
|
91
92
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/RecycleBin/Client.html#create_rule-instance_method
|
92
93
|
def create_rule: (
|
@@ -113,7 +114,13 @@ module Aws
|
|
113
114
|
unlock_delay_value: ::Integer,
|
114
115
|
unlock_delay_unit: ("DAYS")
|
115
116
|
}
|
116
|
-
}
|
117
|
+
},
|
118
|
+
?exclude_resource_tags: Array[
|
119
|
+
{
|
120
|
+
resource_tag_key: ::String,
|
121
|
+
resource_tag_value: ::String?
|
122
|
+
},
|
123
|
+
]
|
117
124
|
) -> _CreateRuleResponseSuccess
|
118
125
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateRuleResponseSuccess
|
119
126
|
|
@@ -138,6 +145,7 @@ module Aws
|
|
138
145
|
def lock_state: () -> ("locked" | "pending_unlock" | "unlocked")
|
139
146
|
def lock_end_time: () -> ::Time
|
140
147
|
def rule_arn: () -> ::String
|
148
|
+
def exclude_resource_tags: () -> ::Array[Types::ResourceTag]
|
141
149
|
end
|
142
150
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/RecycleBin/Client.html#get_rule-instance_method
|
143
151
|
def get_rule: (
|
@@ -161,7 +169,13 @@ module Aws
|
|
161
169
|
resource_tag_value: ::String?
|
162
170
|
},
|
163
171
|
],
|
164
|
-
?lock_state: ("locked" | "pending_unlock" | "unlocked")
|
172
|
+
?lock_state: ("locked" | "pending_unlock" | "unlocked"),
|
173
|
+
?exclude_resource_tags: Array[
|
174
|
+
{
|
175
|
+
resource_tag_key: ::String,
|
176
|
+
resource_tag_value: ::String?
|
177
|
+
},
|
178
|
+
]
|
165
179
|
) -> _ListRulesResponseSuccess
|
166
180
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListRulesResponseSuccess
|
167
181
|
|
@@ -186,6 +200,7 @@ module Aws
|
|
186
200
|
def lock_configuration: () -> Types::LockConfiguration
|
187
201
|
def lock_state: () -> ("locked" | "pending_unlock" | "unlocked")
|
188
202
|
def rule_arn: () -> ::String
|
203
|
+
def exclude_resource_tags: () -> ::Array[Types::ResourceTag]
|
189
204
|
end
|
190
205
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/RecycleBin/Client.html#lock_rule-instance_method
|
191
206
|
def lock_rule: (
|
@@ -226,6 +241,7 @@ module Aws
|
|
226
241
|
def lock_state: () -> ("locked" | "pending_unlock" | "unlocked")
|
227
242
|
def lock_end_time: () -> ::Time
|
228
243
|
def rule_arn: () -> ::String
|
244
|
+
def exclude_resource_tags: () -> ::Array[Types::ResourceTag]
|
229
245
|
end
|
230
246
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/RecycleBin/Client.html#unlock_rule-instance_method
|
231
247
|
def unlock_rule: (
|
@@ -254,6 +270,7 @@ module Aws
|
|
254
270
|
def lock_state: () -> ("locked" | "pending_unlock" | "unlocked")
|
255
271
|
def lock_end_time: () -> ::Time
|
256
272
|
def rule_arn: () -> ::String
|
273
|
+
def exclude_resource_tags: () -> ::Array[Types::ResourceTag]
|
257
274
|
end
|
258
275
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/RecycleBin/Client.html#update_rule-instance_method
|
259
276
|
def update_rule: (
|
@@ -269,6 +286,12 @@ module Aws
|
|
269
286
|
resource_tag_key: ::String,
|
270
287
|
resource_tag_value: ::String?
|
271
288
|
},
|
289
|
+
],
|
290
|
+
?exclude_resource_tags: Array[
|
291
|
+
{
|
292
|
+
resource_tag_key: ::String,
|
293
|
+
resource_tag_value: ::String?
|
294
|
+
},
|
272
295
|
]
|
273
296
|
) -> _UpdateRuleResponseSuccess
|
274
297
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateRuleResponseSuccess
|
data/sig/types.rbs
CHANGED
@@ -21,6 +21,7 @@ module Aws::RecycleBin
|
|
21
21
|
attr_accessor resource_type: ("EBS_SNAPSHOT" | "EC2_IMAGE")
|
22
22
|
attr_accessor resource_tags: ::Array[Types::ResourceTag]
|
23
23
|
attr_accessor lock_configuration: Types::LockConfiguration
|
24
|
+
attr_accessor exclude_resource_tags: ::Array[Types::ResourceTag]
|
24
25
|
SENSITIVE: []
|
25
26
|
end
|
26
27
|
|
@@ -35,6 +36,7 @@ module Aws::RecycleBin
|
|
35
36
|
attr_accessor lock_configuration: Types::LockConfiguration
|
36
37
|
attr_accessor lock_state: ("locked" | "pending_unlock" | "unlocked")
|
37
38
|
attr_accessor rule_arn: ::String
|
39
|
+
attr_accessor exclude_resource_tags: ::Array[Types::ResourceTag]
|
38
40
|
SENSITIVE: []
|
39
41
|
end
|
40
42
|
|
@@ -62,6 +64,7 @@ module Aws::RecycleBin
|
|
62
64
|
attr_accessor lock_state: ("locked" | "pending_unlock" | "unlocked")
|
63
65
|
attr_accessor lock_end_time: ::Time
|
64
66
|
attr_accessor rule_arn: ::String
|
67
|
+
attr_accessor exclude_resource_tags: ::Array[Types::ResourceTag]
|
65
68
|
SENSITIVE: []
|
66
69
|
end
|
67
70
|
|
@@ -76,6 +79,7 @@ module Aws::RecycleBin
|
|
76
79
|
attr_accessor resource_type: ("EBS_SNAPSHOT" | "EC2_IMAGE")
|
77
80
|
attr_accessor resource_tags: ::Array[Types::ResourceTag]
|
78
81
|
attr_accessor lock_state: ("locked" | "pending_unlock" | "unlocked")
|
82
|
+
attr_accessor exclude_resource_tags: ::Array[Types::ResourceTag]
|
79
83
|
SENSITIVE: []
|
80
84
|
end
|
81
85
|
|
@@ -116,6 +120,7 @@ module Aws::RecycleBin
|
|
116
120
|
attr_accessor lock_configuration: Types::LockConfiguration
|
117
121
|
attr_accessor lock_state: ("locked" | "pending_unlock" | "unlocked")
|
118
122
|
attr_accessor rule_arn: ::String
|
123
|
+
attr_accessor exclude_resource_tags: ::Array[Types::ResourceTag]
|
119
124
|
SENSITIVE: []
|
120
125
|
end
|
121
126
|
|
@@ -189,6 +194,7 @@ module Aws::RecycleBin
|
|
189
194
|
attr_accessor lock_state: ("locked" | "pending_unlock" | "unlocked")
|
190
195
|
attr_accessor lock_end_time: ::Time
|
191
196
|
attr_accessor rule_arn: ::String
|
197
|
+
attr_accessor exclude_resource_tags: ::Array[Types::ResourceTag]
|
192
198
|
SENSITIVE: []
|
193
199
|
end
|
194
200
|
|
@@ -207,6 +213,7 @@ module Aws::RecycleBin
|
|
207
213
|
attr_accessor description: ::String
|
208
214
|
attr_accessor resource_type: ("EBS_SNAPSHOT" | "EC2_IMAGE")
|
209
215
|
attr_accessor resource_tags: ::Array[Types::ResourceTag]
|
216
|
+
attr_accessor exclude_resource_tags: ::Array[Types::ResourceTag]
|
210
217
|
SENSITIVE: []
|
211
218
|
end
|
212
219
|
|
@@ -220,6 +227,7 @@ module Aws::RecycleBin
|
|
220
227
|
attr_accessor lock_state: ("locked" | "pending_unlock" | "unlocked")
|
221
228
|
attr_accessor lock_end_time: ::Time
|
222
229
|
attr_accessor rule_arn: ::String
|
230
|
+
attr_accessor exclude_resource_tags: ::Array[Types::ResourceTag]
|
223
231
|
SENSITIVE: []
|
224
232
|
end
|
225
233
|
|
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.34.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: 2024-
|
11
|
+
date: 2024-11-20 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.210.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.210.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|