aws-sdk-recyclebin 1.6.0 → 1.8.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.
@@ -81,6 +81,20 @@ module Aws::RecycleBin
81
81
  end
82
82
  end
83
83
 
84
+ class LockRule
85
+ def self.build(context)
86
+ unless context.config.regional_endpoint
87
+ endpoint = context.config.endpoint.to_s
88
+ end
89
+ Aws::RecycleBin::EndpointParameters.new(
90
+ region: context.config.region,
91
+ use_dual_stack: context.config.use_dualstack_endpoint,
92
+ use_fips: context.config.use_fips_endpoint,
93
+ endpoint: endpoint,
94
+ )
95
+ end
96
+ end
97
+
84
98
  class TagResource
85
99
  def self.build(context)
86
100
  unless context.config.regional_endpoint
@@ -95,6 +109,20 @@ module Aws::RecycleBin
95
109
  end
96
110
  end
97
111
 
112
+ class UnlockRule
113
+ def self.build(context)
114
+ unless context.config.regional_endpoint
115
+ endpoint = context.config.endpoint.to_s
116
+ end
117
+ Aws::RecycleBin::EndpointParameters.new(
118
+ region: context.config.region,
119
+ use_dual_stack: context.config.use_dualstack_endpoint,
120
+ use_fips: context.config.use_fips_endpoint,
121
+ endpoint: endpoint,
122
+ )
123
+ end
124
+ end
125
+
98
126
  class UntagResource
99
127
  def self.build(context)
100
128
  unless context.config.regional_endpoint
@@ -27,6 +27,7 @@ module Aws::RecycleBin
27
27
  # See {Seahorse::Client::RequestContext} for more information.
28
28
  #
29
29
  # ## Error Classes
30
+ # * {ConflictException}
30
31
  # * {InternalServerException}
31
32
  # * {ResourceNotFoundException}
32
33
  # * {ServiceQuotaExceededException}
@@ -38,6 +39,26 @@ module Aws::RecycleBin
38
39
 
39
40
  extend Aws::Errors::DynamicErrors
40
41
 
42
+ class ConflictException < ServiceError
43
+
44
+ # @param [Seahorse::Client::RequestContext] context
45
+ # @param [String] message
46
+ # @param [Aws::RecycleBin::Types::ConflictException] data
47
+ def initialize(context, message, data = Aws::EmptyStructure.new)
48
+ super(context, message, data)
49
+ end
50
+
51
+ # @return [String]
52
+ def message
53
+ @message || @data[:message]
54
+ end
55
+
56
+ # @return [String]
57
+ def reason
58
+ @data[:reason]
59
+ end
60
+ end
61
+
41
62
  class InternalServerException < ServiceError
42
63
 
43
64
  # @param [Seahorse::Client::RequestContext] context
@@ -66,8 +66,12 @@ module Aws::RecycleBin
66
66
  Aws::RecycleBin::Endpoints::ListRules.build(context)
67
67
  when :list_tags_for_resource
68
68
  Aws::RecycleBin::Endpoints::ListTagsForResource.build(context)
69
+ when :lock_rule
70
+ Aws::RecycleBin::Endpoints::LockRule.build(context)
69
71
  when :tag_resource
70
72
  Aws::RecycleBin::Endpoints::TagResource.build(context)
73
+ when :unlock_rule
74
+ Aws::RecycleBin::Endpoints::UnlockRule.build(context)
71
75
  when :untag_resource
72
76
  Aws::RecycleBin::Endpoints::UntagResource.build(context)
73
77
  when :update_rule