aws-sdk-directoryservicedata 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::DirectoryServiceData
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
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
+ self[:use_fips] = options[:use_fips]
59
+ 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
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,54 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::DirectoryServiceData
11
+ class EndpointProvider
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
18
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
20
+ end
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://ds-data-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
36
+ return Aws::Endpoints::Endpoint.new(url: "https://ds-data-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://ds-data.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
45
+ end
46
+ return Aws::Endpoints::Endpoint.new(url: "https://ds-data.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
47
+ end
48
+ end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
50
+ raise ArgumentError, 'No endpoint could be resolved'
51
+
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,203 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::DirectoryServiceData
12
+ # @api private
13
+ module Endpoints
14
+
15
+ class AddGroupMember
16
+ def self.build(context)
17
+ Aws::DirectoryServiceData::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 CreateGroup
27
+ def self.build(context)
28
+ Aws::DirectoryServiceData::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 CreateUser
38
+ def self.build(context)
39
+ Aws::DirectoryServiceData::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 DeleteGroup
49
+ def self.build(context)
50
+ Aws::DirectoryServiceData::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 DeleteUser
60
+ def self.build(context)
61
+ Aws::DirectoryServiceData::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
+
70
+ class DescribeGroup
71
+ def self.build(context)
72
+ Aws::DirectoryServiceData::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
79
+ end
80
+
81
+ class DescribeUser
82
+ def self.build(context)
83
+ Aws::DirectoryServiceData::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 DisableUser
93
+ def self.build(context)
94
+ Aws::DirectoryServiceData::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 ListGroupMembers
104
+ def self.build(context)
105
+ Aws::DirectoryServiceData::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 ListGroups
115
+ def self.build(context)
116
+ Aws::DirectoryServiceData::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
+ class ListGroupsForMember
126
+ def self.build(context)
127
+ Aws::DirectoryServiceData::EndpointParameters.new(
128
+ region: context.config.region,
129
+ use_dual_stack: context.config.use_dualstack_endpoint,
130
+ use_fips: context.config.use_fips_endpoint,
131
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
132
+ )
133
+ end
134
+ end
135
+
136
+ class ListUsers
137
+ def self.build(context)
138
+ Aws::DirectoryServiceData::EndpointParameters.new(
139
+ region: context.config.region,
140
+ use_dual_stack: context.config.use_dualstack_endpoint,
141
+ use_fips: context.config.use_fips_endpoint,
142
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
143
+ )
144
+ end
145
+ end
146
+
147
+ class RemoveGroupMember
148
+ def self.build(context)
149
+ Aws::DirectoryServiceData::EndpointParameters.new(
150
+ region: context.config.region,
151
+ use_dual_stack: context.config.use_dualstack_endpoint,
152
+ use_fips: context.config.use_fips_endpoint,
153
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
154
+ )
155
+ end
156
+ end
157
+
158
+ class SearchGroups
159
+ def self.build(context)
160
+ Aws::DirectoryServiceData::EndpointParameters.new(
161
+ region: context.config.region,
162
+ use_dual_stack: context.config.use_dualstack_endpoint,
163
+ use_fips: context.config.use_fips_endpoint,
164
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
165
+ )
166
+ end
167
+ end
168
+
169
+ class SearchUsers
170
+ def self.build(context)
171
+ Aws::DirectoryServiceData::EndpointParameters.new(
172
+ region: context.config.region,
173
+ use_dual_stack: context.config.use_dualstack_endpoint,
174
+ use_fips: context.config.use_fips_endpoint,
175
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
176
+ )
177
+ end
178
+ end
179
+
180
+ class UpdateGroup
181
+ def self.build(context)
182
+ Aws::DirectoryServiceData::EndpointParameters.new(
183
+ region: context.config.region,
184
+ use_dual_stack: context.config.use_dualstack_endpoint,
185
+ use_fips: context.config.use_fips_endpoint,
186
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
187
+ )
188
+ end
189
+ end
190
+
191
+ class UpdateUser
192
+ def self.build(context)
193
+ Aws::DirectoryServiceData::EndpointParameters.new(
194
+ region: context.config.region,
195
+ use_dual_stack: context.config.use_dualstack_endpoint,
196
+ use_fips: context.config.use_fips_endpoint,
197
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
198
+ )
199
+ end
200
+ end
201
+
202
+ end
203
+ end
@@ -0,0 +1,186 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::DirectoryServiceData
11
+
12
+ # When DirectoryServiceData returns an error response, the Ruby SDK constructs and raises an error.
13
+ # These errors all extend Aws::DirectoryServiceData::Errors::ServiceError < {Aws::Errors::ServiceError}
14
+ #
15
+ # You can rescue all DirectoryServiceData errors using ServiceError:
16
+ #
17
+ # begin
18
+ # # do stuff
19
+ # rescue Aws::DirectoryServiceData::Errors::ServiceError
20
+ # # rescues all DirectoryServiceData API errors
21
+ # end
22
+ #
23
+ #
24
+ # ## Request Context
25
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
26
+ # information about the request that generated the error.
27
+ # See {Seahorse::Client::RequestContext} for more information.
28
+ #
29
+ # ## Error Classes
30
+ # * {AccessDeniedException}
31
+ # * {ConflictException}
32
+ # * {DirectoryUnavailableException}
33
+ # * {InternalServerException}
34
+ # * {ResourceNotFoundException}
35
+ # * {ThrottlingException}
36
+ # * {ValidationException}
37
+ #
38
+ # Additionally, error classes are dynamically generated for service errors based on the error code
39
+ # if they are not defined above.
40
+ module Errors
41
+
42
+ extend Aws::Errors::DynamicErrors
43
+
44
+ class AccessDeniedException < ServiceError
45
+
46
+ # @param [Seahorse::Client::RequestContext] context
47
+ # @param [String] message
48
+ # @param [Aws::DirectoryServiceData::Types::AccessDeniedException] data
49
+ def initialize(context, message, data = Aws::EmptyStructure.new)
50
+ super(context, message, data)
51
+ end
52
+
53
+ # @return [String]
54
+ def message
55
+ @message || @data[:message]
56
+ end
57
+
58
+ # @return [String]
59
+ def reason
60
+ @data[:reason]
61
+ end
62
+ end
63
+
64
+ class ConflictException < ServiceError
65
+
66
+ # @param [Seahorse::Client::RequestContext] context
67
+ # @param [String] message
68
+ # @param [Aws::DirectoryServiceData::Types::ConflictException] data
69
+ def initialize(context, message, data = Aws::EmptyStructure.new)
70
+ super(context, message, data)
71
+ end
72
+
73
+ # @return [String]
74
+ def message
75
+ @message || @data[:message]
76
+ end
77
+ end
78
+
79
+ class DirectoryUnavailableException < ServiceError
80
+
81
+ # @param [Seahorse::Client::RequestContext] context
82
+ # @param [String] message
83
+ # @param [Aws::DirectoryServiceData::Types::DirectoryUnavailableException] data
84
+ def initialize(context, message, data = Aws::EmptyStructure.new)
85
+ super(context, message, data)
86
+ end
87
+
88
+ # @return [String]
89
+ def message
90
+ @message || @data[:message]
91
+ end
92
+
93
+ # @return [String]
94
+ def reason
95
+ @data[:reason]
96
+ end
97
+
98
+ def retryable?
99
+ true
100
+ end
101
+ end
102
+
103
+ class InternalServerException < ServiceError
104
+
105
+ # @param [Seahorse::Client::RequestContext] context
106
+ # @param [String] message
107
+ # @param [Aws::DirectoryServiceData::Types::InternalServerException] data
108
+ def initialize(context, message, data = Aws::EmptyStructure.new)
109
+ super(context, message, data)
110
+ end
111
+
112
+ # @return [String]
113
+ def message
114
+ @message || @data[:message]
115
+ end
116
+
117
+ def retryable?
118
+ true
119
+ end
120
+ end
121
+
122
+ class ResourceNotFoundException < ServiceError
123
+
124
+ # @param [Seahorse::Client::RequestContext] context
125
+ # @param [String] message
126
+ # @param [Aws::DirectoryServiceData::Types::ResourceNotFoundException] data
127
+ def initialize(context, message, data = Aws::EmptyStructure.new)
128
+ super(context, message, data)
129
+ end
130
+
131
+ # @return [String]
132
+ def message
133
+ @message || @data[:message]
134
+ end
135
+ end
136
+
137
+ class ThrottlingException < ServiceError
138
+
139
+ # @param [Seahorse::Client::RequestContext] context
140
+ # @param [String] message
141
+ # @param [Aws::DirectoryServiceData::Types::ThrottlingException] data
142
+ def initialize(context, message, data = Aws::EmptyStructure.new)
143
+ super(context, message, data)
144
+ end
145
+
146
+ # @return [String]
147
+ def message
148
+ @message || @data[:message]
149
+ end
150
+
151
+ # @return [String]
152
+ def retry_after_seconds
153
+ @data[:retry_after_seconds]
154
+ end
155
+
156
+ def retryable?
157
+ true
158
+ end
159
+
160
+ def throttling?
161
+ true
162
+ end
163
+ end
164
+
165
+ class ValidationException < ServiceError
166
+
167
+ # @param [Seahorse::Client::RequestContext] context
168
+ # @param [String] message
169
+ # @param [Aws::DirectoryServiceData::Types::ValidationException] data
170
+ def initialize(context, message, data = Aws::EmptyStructure.new)
171
+ super(context, message, data)
172
+ end
173
+
174
+ # @return [String]
175
+ def message
176
+ @message || @data[:message]
177
+ end
178
+
179
+ # @return [String]
180
+ def reason
181
+ @data[:reason]
182
+ end
183
+ end
184
+
185
+ end
186
+ end
@@ -0,0 +1,113 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::DirectoryServiceData
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::DirectoryServiceData::EndpointProvider',
17
+ rbs_type: 'untyped',
18
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
19
+ 'object that responds to `#resolve_endpoint(parameters)` '\
20
+ 'where `parameters` is a Struct similar to '\
21
+ '`Aws::DirectoryServiceData::EndpointParameters`'
22
+ ) do |cfg|
23
+ Aws::DirectoryServiceData::EndpointProvider.new
24
+ end
25
+
26
+ # @api private
27
+ class Handler < Seahorse::Client::Handler
28
+ def call(context)
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+
36
+ context[:endpoint_params] = params
37
+ context[:endpoint_properties] = endpoint.properties
38
+ end
39
+
40
+ context[:auth_scheme] =
41
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
42
+
43
+ with_metrics(context) { @handler.call(context) }
44
+ end
45
+
46
+ private
47
+
48
+ def with_metrics(context, &block)
49
+ metrics = []
50
+ metrics << 'ENDPOINT_OVERRIDE' unless context.config.regional_endpoint
51
+ if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
52
+ metrics << 'SIGV4A_SIGNING'
53
+ end
54
+ Aws::Plugins::UserAgent.metric(*metrics, &block)
55
+ end
56
+
57
+ def apply_endpoint_headers(context, headers)
58
+ headers.each do |key, values|
59
+ value = values
60
+ .compact
61
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
62
+ .join(',')
63
+
64
+ context.http_request.headers[key] = value
65
+ end
66
+ end
67
+
68
+ def parameters_for_operation(context)
69
+ case context.operation_name
70
+ when :add_group_member
71
+ Aws::DirectoryServiceData::Endpoints::AddGroupMember.build(context)
72
+ when :create_group
73
+ Aws::DirectoryServiceData::Endpoints::CreateGroup.build(context)
74
+ when :create_user
75
+ Aws::DirectoryServiceData::Endpoints::CreateUser.build(context)
76
+ when :delete_group
77
+ Aws::DirectoryServiceData::Endpoints::DeleteGroup.build(context)
78
+ when :delete_user
79
+ Aws::DirectoryServiceData::Endpoints::DeleteUser.build(context)
80
+ when :describe_group
81
+ Aws::DirectoryServiceData::Endpoints::DescribeGroup.build(context)
82
+ when :describe_user
83
+ Aws::DirectoryServiceData::Endpoints::DescribeUser.build(context)
84
+ when :disable_user
85
+ Aws::DirectoryServiceData::Endpoints::DisableUser.build(context)
86
+ when :list_group_members
87
+ Aws::DirectoryServiceData::Endpoints::ListGroupMembers.build(context)
88
+ when :list_groups
89
+ Aws::DirectoryServiceData::Endpoints::ListGroups.build(context)
90
+ when :list_groups_for_member
91
+ Aws::DirectoryServiceData::Endpoints::ListGroupsForMember.build(context)
92
+ when :list_users
93
+ Aws::DirectoryServiceData::Endpoints::ListUsers.build(context)
94
+ when :remove_group_member
95
+ Aws::DirectoryServiceData::Endpoints::RemoveGroupMember.build(context)
96
+ when :search_groups
97
+ Aws::DirectoryServiceData::Endpoints::SearchGroups.build(context)
98
+ when :search_users
99
+ Aws::DirectoryServiceData::Endpoints::SearchUsers.build(context)
100
+ when :update_group
101
+ Aws::DirectoryServiceData::Endpoints::UpdateGroup.build(context)
102
+ when :update_user
103
+ Aws::DirectoryServiceData::Endpoints::UpdateUser.build(context)
104
+ end
105
+ end
106
+ end
107
+
108
+ def add_handlers(handlers, _config)
109
+ handlers.add(Handler, step: :build, priority: 75)
110
+ end
111
+ end
112
+ end
113
+ end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::DirectoryServiceData
11
+
12
+ class Resource
13
+
14
+ # @param options ({})
15
+ # @option options [Client] :client
16
+ def initialize(options = {})
17
+ @client = options[:client] || Client.new(options)
18
+ end
19
+
20
+ # @return [Client]
21
+ def client
22
+ @client
23
+ end
24
+
25
+ end
26
+ end