aws-sdk-recyclebin 1.17.0 → 1.18.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 698edc96ba93e1daf24869e385fc28e99044dd7f99ece4c7e4172ec91f06e350
4
- data.tar.gz: 9113e653c3c3e5296a2416471eca4b35a323b3f2fcc109726551dd4d14fb58e5
3
+ metadata.gz: 4901503b4f89759b567842583f2e09da83238386cb51a1de1ded562df7504222
4
+ data.tar.gz: 48d516022e39c5d3afbe0e7810cbc13354d0b88b378ecfa49e1b6f569788d024
5
5
  SHA512:
6
- metadata.gz: df10c0576fddc66de259637d25a9b2458a5cf3b780c2105274a65dbc885ad2bbcfd8a667b15e4ebf33e22424976f85e30ac6a4390f7de6a35e73efb9af41dc1f
7
- data.tar.gz: e071e22e82ef821e4a251a799559be00a0caa980bc03398205467f9a4380655d1de39dc10fd93e11b65875c5eb604f570715e5ff5f2f49281f489c691a73418f
6
+ metadata.gz: 7a49bc96993aca6c8ea3d1a2140eb6060fd578acdcb0b82dab3bd37a305f7bfb3b05efa0d5d09c7c99aa3e33dbc59f0e89d7a210eeffb4858da450e1c577fe30
7
+ data.tar.gz: 301588c0cd689abf7967c58904aa076a3caa2a361fa5498fcdc63b8725abebefe97162986727d668fdfb7918192284467e8189d26000a45dafe79f91f9c30699
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.18.0 (2023-12-01)
5
+ ------------------
6
+
7
+ * Feature - Added resource identifier in the output and updated error handling.
8
+
4
9
  1.17.0 (2023-11-28)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.17.0
1
+ 1.18.0
@@ -444,6 +444,7 @@ module Aws::RecycleBin
444
444
  # * {Types::CreateRuleResponse#status #status} => String
445
445
  # * {Types::CreateRuleResponse#lock_configuration #lock_configuration} => Types::LockConfiguration
446
446
  # * {Types::CreateRuleResponse#lock_state #lock_state} => String
447
+ # * {Types::CreateRuleResponse#rule_arn #rule_arn} => String
447
448
  #
448
449
  # @example Request syntax with placeholder values
449
450
  #
@@ -491,6 +492,7 @@ module Aws::RecycleBin
491
492
  # resp.lock_configuration.unlock_delay.unlock_delay_value #=> Integer
492
493
  # resp.lock_configuration.unlock_delay.unlock_delay_unit #=> String, one of "DAYS"
493
494
  # resp.lock_state #=> String, one of "locked", "pending_unlock", "unlocked"
495
+ # resp.rule_arn #=> String
494
496
  #
495
497
  # @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/CreateRule AWS API Documentation
496
498
  #
@@ -545,6 +547,7 @@ module Aws::RecycleBin
545
547
  # * {Types::GetRuleResponse#lock_configuration #lock_configuration} => Types::LockConfiguration
546
548
  # * {Types::GetRuleResponse#lock_state #lock_state} => String
547
549
  # * {Types::GetRuleResponse#lock_end_time #lock_end_time} => Time
550
+ # * {Types::GetRuleResponse#rule_arn #rule_arn} => String
548
551
  #
549
552
  # @example Request syntax with placeholder values
550
553
  #
@@ -567,6 +570,7 @@ module Aws::RecycleBin
567
570
  # resp.lock_configuration.unlock_delay.unlock_delay_unit #=> String, one of "DAYS"
568
571
  # resp.lock_state #=> String, one of "locked", "pending_unlock", "unlocked"
569
572
  # resp.lock_end_time #=> Time
573
+ # resp.rule_arn #=> String
570
574
  #
571
575
  # @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/GetRule AWS API Documentation
572
576
  #
@@ -632,6 +636,7 @@ module Aws::RecycleBin
632
636
  # resp.rules[0].retention_period.retention_period_value #=> Integer
633
637
  # resp.rules[0].retention_period.retention_period_unit #=> String, one of "DAYS"
634
638
  # resp.rules[0].lock_state #=> String, one of "locked", "pending_unlock", "unlocked"
639
+ # resp.rules[0].rule_arn #=> String
635
640
  # resp.next_token #=> String
636
641
  #
637
642
  # @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/ListRules AWS API Documentation
@@ -692,6 +697,7 @@ module Aws::RecycleBin
692
697
  # * {Types::LockRuleResponse#status #status} => String
693
698
  # * {Types::LockRuleResponse#lock_configuration #lock_configuration} => Types::LockConfiguration
694
699
  # * {Types::LockRuleResponse#lock_state #lock_state} => String
700
+ # * {Types::LockRuleResponse#rule_arn #rule_arn} => String
695
701
  #
696
702
  # @example Request syntax with placeholder values
697
703
  #
@@ -719,6 +725,7 @@ module Aws::RecycleBin
719
725
  # resp.lock_configuration.unlock_delay.unlock_delay_value #=> Integer
720
726
  # resp.lock_configuration.unlock_delay.unlock_delay_unit #=> String, one of "DAYS"
721
727
  # resp.lock_state #=> String, one of "locked", "pending_unlock", "unlocked"
728
+ # resp.rule_arn #=> String
722
729
  #
723
730
  # @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/LockRule AWS API Documentation
724
731
  #
@@ -777,6 +784,7 @@ module Aws::RecycleBin
777
784
  # * {Types::UnlockRuleResponse#lock_configuration #lock_configuration} => Types::LockConfiguration
778
785
  # * {Types::UnlockRuleResponse#lock_state #lock_state} => String
779
786
  # * {Types::UnlockRuleResponse#lock_end_time #lock_end_time} => Time
787
+ # * {Types::UnlockRuleResponse#rule_arn #rule_arn} => String
780
788
  #
781
789
  # @example Request syntax with placeholder values
782
790
  #
@@ -799,6 +807,7 @@ module Aws::RecycleBin
799
807
  # resp.lock_configuration.unlock_delay.unlock_delay_unit #=> String, one of "DAYS"
800
808
  # resp.lock_state #=> String, one of "locked", "pending_unlock", "unlocked"
801
809
  # resp.lock_end_time #=> Time
810
+ # resp.rule_arn #=> String
802
811
  #
803
812
  # @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/UnlockRule AWS API Documentation
804
813
  #
@@ -891,6 +900,7 @@ module Aws::RecycleBin
891
900
  # * {Types::UpdateRuleResponse#status #status} => String
892
901
  # * {Types::UpdateRuleResponse#lock_state #lock_state} => String
893
902
  # * {Types::UpdateRuleResponse#lock_end_time #lock_end_time} => Time
903
+ # * {Types::UpdateRuleResponse#rule_arn #rule_arn} => String
894
904
  #
895
905
  # @example Request syntax with placeholder values
896
906
  #
@@ -923,6 +933,7 @@ module Aws::RecycleBin
923
933
  # resp.status #=> String, one of "pending", "available"
924
934
  # resp.lock_state #=> String, one of "locked", "pending_unlock", "unlocked"
925
935
  # resp.lock_end_time #=> Time
936
+ # resp.rule_arn #=> String
926
937
  #
927
938
  # @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/UpdateRule AWS API Documentation
928
939
  #
@@ -946,7 +957,7 @@ module Aws::RecycleBin
946
957
  params: params,
947
958
  config: config)
948
959
  context[:gem_name] = 'aws-sdk-recyclebin'
949
- context[:gem_version] = '1.17.0'
960
+ context[:gem_version] = '1.18.0'
950
961
  Seahorse::Client::Request.new(handlers, context)
951
962
  end
952
963
 
@@ -92,6 +92,7 @@ module Aws::RecycleBin
92
92
  CreateRuleResponse.add_member(:status, Shapes::ShapeRef.new(shape: RuleStatus, location_name: "Status"))
93
93
  CreateRuleResponse.add_member(:lock_configuration, Shapes::ShapeRef.new(shape: LockConfiguration, location_name: "LockConfiguration"))
94
94
  CreateRuleResponse.add_member(:lock_state, Shapes::ShapeRef.new(shape: LockState, location_name: "LockState"))
95
+ CreateRuleResponse.add_member(:rule_arn, Shapes::ShapeRef.new(shape: RuleArn, location_name: "RuleArn"))
95
96
  CreateRuleResponse.struct_class = Types::CreateRuleResponse
96
97
 
97
98
  DeleteRuleRequest.add_member(:identifier, Shapes::ShapeRef.new(shape: RuleIdentifier, required: true, location: "uri", location_name: "identifier"))
@@ -111,6 +112,7 @@ module Aws::RecycleBin
111
112
  GetRuleResponse.add_member(:lock_configuration, Shapes::ShapeRef.new(shape: LockConfiguration, location_name: "LockConfiguration"))
112
113
  GetRuleResponse.add_member(:lock_state, Shapes::ShapeRef.new(shape: LockState, location_name: "LockState"))
113
114
  GetRuleResponse.add_member(:lock_end_time, Shapes::ShapeRef.new(shape: TimeStamp, location_name: "LockEndTime"))
115
+ GetRuleResponse.add_member(:rule_arn, Shapes::ShapeRef.new(shape: RuleArn, location_name: "RuleArn"))
114
116
  GetRuleResponse.struct_class = Types::GetRuleResponse
115
117
 
116
118
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
@@ -148,6 +150,7 @@ module Aws::RecycleBin
148
150
  LockRuleResponse.add_member(:status, Shapes::ShapeRef.new(shape: RuleStatus, location_name: "Status"))
149
151
  LockRuleResponse.add_member(:lock_configuration, Shapes::ShapeRef.new(shape: LockConfiguration, location_name: "LockConfiguration"))
150
152
  LockRuleResponse.add_member(:lock_state, Shapes::ShapeRef.new(shape: LockState, location_name: "LockState"))
153
+ LockRuleResponse.add_member(:rule_arn, Shapes::ShapeRef.new(shape: RuleArn, location_name: "RuleArn"))
151
154
  LockRuleResponse.struct_class = Types::LockRuleResponse
152
155
 
153
156
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
@@ -168,6 +171,7 @@ module Aws::RecycleBin
168
171
  RuleSummary.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
169
172
  RuleSummary.add_member(:retention_period, Shapes::ShapeRef.new(shape: RetentionPeriod, location_name: "RetentionPeriod"))
170
173
  RuleSummary.add_member(:lock_state, Shapes::ShapeRef.new(shape: LockState, location_name: "LockState"))
174
+ RuleSummary.add_member(:rule_arn, Shapes::ShapeRef.new(shape: RuleArn, location_name: "RuleArn"))
171
175
  RuleSummary.struct_class = Types::RuleSummary
172
176
 
173
177
  RuleSummaryList.member = Shapes::ShapeRef.new(shape: RuleSummary)
@@ -206,6 +210,7 @@ module Aws::RecycleBin
206
210
  UnlockRuleResponse.add_member(:lock_configuration, Shapes::ShapeRef.new(shape: LockConfiguration, location_name: "LockConfiguration"))
207
211
  UnlockRuleResponse.add_member(:lock_state, Shapes::ShapeRef.new(shape: LockState, location_name: "LockState"))
208
212
  UnlockRuleResponse.add_member(:lock_end_time, Shapes::ShapeRef.new(shape: TimeStamp, location_name: "LockEndTime"))
213
+ UnlockRuleResponse.add_member(:rule_arn, Shapes::ShapeRef.new(shape: RuleArn, location_name: "RuleArn"))
209
214
  UnlockRuleResponse.struct_class = Types::UnlockRuleResponse
210
215
 
211
216
  UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: RuleArn, required: true, location: "uri", location_name: "resourceArn"))
@@ -229,6 +234,7 @@ module Aws::RecycleBin
229
234
  UpdateRuleResponse.add_member(:status, Shapes::ShapeRef.new(shape: RuleStatus, location_name: "Status"))
230
235
  UpdateRuleResponse.add_member(:lock_state, Shapes::ShapeRef.new(shape: LockState, location_name: "LockState"))
231
236
  UpdateRuleResponse.add_member(:lock_end_time, Shapes::ShapeRef.new(shape: TimeStamp, location_name: "LockEndTime"))
237
+ UpdateRuleResponse.add_member(:rule_arn, Shapes::ShapeRef.new(shape: RuleArn, location_name: "RuleArn"))
232
238
  UpdateRuleResponse.struct_class = Types::UpdateRuleResponse
233
239
 
234
240
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
@@ -371,6 +377,7 @@ module Aws::RecycleBin
371
377
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
372
378
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
373
379
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
380
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
374
381
  end)
375
382
  end
376
383
 
@@ -32,7 +32,7 @@ module Aws::RecycleBin
32
32
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
33
  end
34
34
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
36
36
  return Aws::Endpoints::Endpoint.new(url: "https://rbin-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
37
  end
38
38
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
@@ -139,6 +139,10 @@ module Aws::RecycleBin
139
139
  # to `null`.
140
140
  # @return [String]
141
141
  #
142
+ # @!attribute [rw] rule_arn
143
+ # The Amazon Resource Name (ARN) of the retention rule.
144
+ # @return [String]
145
+ #
142
146
  # @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/CreateRuleResponse AWS API Documentation
143
147
  #
144
148
  class CreateRuleResponse < Struct.new(
@@ -150,7 +154,8 @@ module Aws::RecycleBin
150
154
  :resource_tags,
151
155
  :status,
152
156
  :lock_configuration,
153
- :lock_state)
157
+ :lock_state,
158
+ :rule_arn)
154
159
  SENSITIVE = []
155
160
  include Aws::Structure
156
161
  end
@@ -240,6 +245,10 @@ module Aws::RecycleBin
240
245
  # still within the unlock delay period.
241
246
  # @return [Time]
242
247
  #
248
+ # @!attribute [rw] rule_arn
249
+ # The Amazon Resource Name (ARN) of the retention rule.
250
+ # @return [String]
251
+ #
243
252
  # @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/GetRuleResponse AWS API Documentation
244
253
  #
245
254
  class GetRuleResponse < Struct.new(
@@ -251,7 +260,8 @@ module Aws::RecycleBin
251
260
  :status,
252
261
  :lock_configuration,
253
262
  :lock_state,
254
- :lock_end_time)
263
+ :lock_end_time,
264
+ :rule_arn)
255
265
  SENSITIVE = []
256
266
  include Aws::Structure
257
267
  end
@@ -435,6 +445,10 @@ module Aws::RecycleBin
435
445
  # to `null`.
436
446
  # @return [String]
437
447
  #
448
+ # @!attribute [rw] rule_arn
449
+ # The Amazon Resource Name (ARN) of the retention rule.
450
+ # @return [String]
451
+ #
438
452
  # @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/LockRuleResponse AWS API Documentation
439
453
  #
440
454
  class LockRuleResponse < Struct.new(
@@ -445,7 +459,8 @@ module Aws::RecycleBin
445
459
  :resource_tags,
446
460
  :status,
447
461
  :lock_configuration,
448
- :lock_state)
462
+ :lock_state,
463
+ :rule_arn)
449
464
  SENSITIVE = []
450
465
  include Aws::Structure
451
466
  end
@@ -546,13 +561,18 @@ module Aws::RecycleBin
546
561
  # to `null`.
547
562
  # @return [String]
548
563
  #
564
+ # @!attribute [rw] rule_arn
565
+ # The Amazon Resource Name (ARN) of the retention rule.
566
+ # @return [String]
567
+ #
549
568
  # @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/RuleSummary AWS API Documentation
550
569
  #
551
570
  class RuleSummary < Struct.new(
552
571
  :identifier,
553
572
  :description,
554
573
  :retention_period,
555
- :lock_state)
574
+ :lock_state,
575
+ :rule_arn)
556
576
  SENSITIVE = []
557
577
  include Aws::Structure
558
578
  end
@@ -710,6 +730,10 @@ module Aws::RecycleBin
710
730
  # still within the unlock delay period.
711
731
  # @return [Time]
712
732
  #
733
+ # @!attribute [rw] rule_arn
734
+ # The Amazon Resource Name (ARN) of the retention rule.
735
+ # @return [String]
736
+ #
713
737
  # @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/UnlockRuleResponse AWS API Documentation
714
738
  #
715
739
  class UnlockRuleResponse < Struct.new(
@@ -721,7 +745,8 @@ module Aws::RecycleBin
721
745
  :status,
722
746
  :lock_configuration,
723
747
  :lock_state,
724
- :lock_end_time)
748
+ :lock_end_time,
749
+ :rule_arn)
725
750
  SENSITIVE = []
726
751
  include Aws::Structure
727
752
  end
@@ -852,6 +877,10 @@ module Aws::RecycleBin
852
877
  # still within the unlock delay period.
853
878
  # @return [Time]
854
879
  #
880
+ # @!attribute [rw] rule_arn
881
+ # The Amazon Resource Name (ARN) of the retention rule.
882
+ # @return [String]
883
+ #
855
884
  # @see http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/UpdateRuleResponse AWS API Documentation
856
885
  #
857
886
  class UpdateRuleResponse < Struct.new(
@@ -862,7 +891,8 @@ module Aws::RecycleBin
862
891
  :resource_tags,
863
892
  :status,
864
893
  :lock_state,
865
- :lock_end_time)
894
+ :lock_end_time,
895
+ :rule_arn)
866
896
  SENSITIVE = []
867
897
  include Aws::Structure
868
898
  end
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-recyclebin/customizations'
52
52
  # @!group service
53
53
  module Aws::RecycleBin
54
54
 
55
- GEM_VERSION = '1.17.0'
55
+ GEM_VERSION = '1.18.0'
56
56
 
57
57
  end
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.17.0
4
+ version: 1.18.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: 2023-11-28 00:00:00.000000000 Z
11
+ date: 2023-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core