aws-sdk-core 3.113.0 → 3.165.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +459 -0
- data/VERSION +1 -1
- data/lib/aws-defaults/default_configuration.rb +153 -0
- data/lib/aws-defaults/defaults_mode_config_resolver.rb +107 -0
- data/lib/aws-defaults.rb +3 -0
- data/lib/aws-sdk-core/arn.rb +13 -0
- data/lib/aws-sdk-core/assume_role_credentials.rb +21 -7
- data/lib/aws-sdk-core/assume_role_web_identity_credentials.rb +14 -10
- data/lib/aws-sdk-core/binary/encode_handler.rb +12 -1
- data/lib/aws-sdk-core/client_stubs.rb +5 -1
- data/lib/aws-sdk-core/credential_provider_chain.rb +2 -1
- data/lib/aws-sdk-core/ec2_metadata.rb +27 -7
- data/lib/aws-sdk-core/ecs_credentials.rb +10 -0
- data/lib/aws-sdk-core/endpoints/condition.rb +36 -0
- data/lib/aws-sdk-core/endpoints/endpoint.rb +17 -0
- data/lib/aws-sdk-core/endpoints/endpoint_rule.rb +71 -0
- data/lib/aws-sdk-core/endpoints/error_rule.rb +37 -0
- data/lib/aws-sdk-core/endpoints/function.rb +75 -0
- data/lib/aws-sdk-core/endpoints/matchers.rb +127 -0
- data/lib/aws-sdk-core/endpoints/reference.rb +26 -0
- data/lib/aws-sdk-core/endpoints/rule.rb +20 -0
- data/lib/aws-sdk-core/endpoints/rule_set.rb +47 -0
- data/lib/aws-sdk-core/endpoints/rules_provider.rb +32 -0
- data/lib/aws-sdk-core/endpoints/templater.rb +52 -0
- data/lib/aws-sdk-core/endpoints/tree_rule.rb +40 -0
- data/lib/aws-sdk-core/endpoints/url.rb +59 -0
- data/lib/aws-sdk-core/endpoints.rb +74 -0
- data/lib/aws-sdk-core/errors.rb +18 -1
- data/lib/aws-sdk-core/instance_profile_credentials.rb +124 -18
- data/lib/aws-sdk-core/json/error_handler.rb +10 -1
- data/lib/aws-sdk-core/json/json_engine.rb +10 -8
- data/lib/aws-sdk-core/json/oj_engine.rb +33 -6
- data/lib/aws-sdk-core/json/parser.rb +8 -0
- data/lib/aws-sdk-core/json.rb +8 -26
- data/lib/aws-sdk-core/log/param_filter.rb +9 -1
- data/lib/aws-sdk-core/pageable_response.rb +79 -26
- data/lib/aws-sdk-core/pager.rb +3 -0
- data/lib/aws-sdk-core/param_validator.rb +29 -0
- data/lib/aws-sdk-core/plugins/bearer_authorization.rb +67 -0
- data/lib/aws-sdk-core/plugins/checksum_algorithm.rb +340 -0
- data/lib/aws-sdk-core/plugins/credentials_configuration.rb +27 -1
- data/lib/aws-sdk-core/plugins/defaults_mode.rb +40 -0
- data/lib/aws-sdk-core/plugins/endpoint_discovery.rb +6 -2
- data/lib/aws-sdk-core/plugins/http_checksum.rb +8 -1
- data/lib/aws-sdk-core/plugins/jsonvalue_converter.rb +34 -6
- data/lib/aws-sdk-core/plugins/protocols/api_gateway.rb +17 -0
- data/lib/aws-sdk-core/plugins/protocols/rest_json.rb +16 -1
- data/lib/aws-sdk-core/plugins/recursion_detection.rb +38 -0
- data/lib/aws-sdk-core/plugins/regional_endpoint.rb +52 -1
- data/lib/aws-sdk-core/plugins/response_paging.rb +1 -1
- data/lib/aws-sdk-core/plugins/retries/error_inspector.rb +5 -3
- data/lib/aws-sdk-core/plugins/retry_errors.rb +21 -5
- data/lib/aws-sdk-core/plugins/sign.rb +190 -0
- data/lib/aws-sdk-core/plugins/signature_v2.rb +1 -0
- data/lib/aws-sdk-core/plugins/signature_v4.rb +28 -31
- data/lib/aws-sdk-core/plugins/stub_responses.rb +5 -1
- data/lib/aws-sdk-core/process_credentials.rb +9 -11
- data/lib/aws-sdk-core/refreshing_credentials.rb +42 -11
- data/lib/aws-sdk-core/refreshing_token.rb +71 -0
- data/lib/aws-sdk-core/rest/handler.rb +1 -1
- data/lib/aws-sdk-core/rest/request/body.rb +19 -1
- data/lib/aws-sdk-core/rest/request/headers.rb +14 -6
- data/lib/aws-sdk-core/rest/response/headers.rb +3 -1
- data/lib/aws-sdk-core/shared_config.rb +70 -8
- data/lib/aws-sdk-core/shared_credentials.rb +7 -1
- data/lib/aws-sdk-core/sso_credentials.rb +22 -17
- data/lib/aws-sdk-core/sso_token_provider.rb +134 -0
- data/lib/aws-sdk-core/static_token_provider.rb +14 -0
- data/lib/aws-sdk-core/structure.rb +16 -5
- data/lib/aws-sdk-core/stubbing/protocols/json.rb +1 -1
- data/lib/aws-sdk-core/token.rb +31 -0
- data/lib/aws-sdk-core/token_provider.rb +15 -0
- data/lib/aws-sdk-core/token_provider_chain.rb +51 -0
- data/lib/aws-sdk-core/xml/builder.rb +1 -1
- data/lib/aws-sdk-core/xml/doc_builder.rb +6 -1
- data/lib/aws-sdk-core/xml/error_handler.rb +7 -0
- data/lib/aws-sdk-core/xml/parser/engines/ox.rb +1 -1
- data/lib/aws-sdk-core/xml/parser/engines/rexml.rb +0 -8
- data/lib/aws-sdk-core/xml/parser/frame.rb +23 -0
- data/lib/aws-sdk-core.rb +19 -0
- data/lib/aws-sdk-sso/client.rb +77 -15
- data/lib/aws-sdk-sso/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-sso/endpoint_provider.rb +112 -0
- data/lib/aws-sdk-sso/endpoints.rb +71 -0
- data/lib/aws-sdk-sso/plugins/endpoints.rb +76 -0
- data/lib/aws-sdk-sso/types.rb +8 -8
- data/lib/aws-sdk-sso.rb +5 -1
- data/lib/aws-sdk-ssooidc/client.rb +606 -0
- data/lib/aws-sdk-ssooidc/client_api.rb +216 -0
- data/lib/aws-sdk-ssooidc/customizations.rb +1 -0
- data/lib/aws-sdk-ssooidc/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-ssooidc/endpoint_provider.rb +111 -0
- data/lib/aws-sdk-ssooidc/endpoints.rb +57 -0
- data/lib/aws-sdk-ssooidc/errors.rb +290 -0
- data/lib/aws-sdk-ssooidc/plugins/endpoints.rb +74 -0
- data/lib/aws-sdk-ssooidc/resource.rb +26 -0
- data/lib/aws-sdk-ssooidc/types.rb +534 -0
- data/lib/aws-sdk-ssooidc.rb +59 -0
- data/lib/aws-sdk-sts/client.rb +545 -433
- data/lib/aws-sdk-sts/client_api.rb +5 -0
- data/lib/aws-sdk-sts/endpoint_parameters.rb +78 -0
- data/lib/aws-sdk-sts/endpoint_provider.rb +229 -0
- data/lib/aws-sdk-sts/endpoints.rb +135 -0
- data/lib/aws-sdk-sts/plugins/endpoints.rb +84 -0
- data/lib/aws-sdk-sts/plugins/sts_regional_endpoints.rb +5 -1
- data/lib/aws-sdk-sts/presigner.rb +13 -9
- data/lib/aws-sdk-sts/types.rb +329 -190
- data/lib/aws-sdk-sts.rb +5 -1
- data/lib/seahorse/client/async_base.rb +0 -1
- data/lib/seahorse/client/configuration.rb +6 -2
- data/lib/seahorse/client/h2/connection.rb +14 -11
- data/lib/seahorse/client/h2/handler.rb +4 -5
- data/lib/seahorse/client/net_http/connection_pool.rb +7 -0
- data/lib/seahorse/client/net_http/handler.rb +15 -7
- data/lib/seahorse/client/net_http/patches.rb +13 -84
- data/lib/seahorse/client/plugins/content_length.rb +11 -5
- data/lib/seahorse/client/plugins/net_http.rb +33 -2
- data/lib/seahorse/client/plugins/request_callback.rb +9 -9
- data/lib/seahorse/model/operation.rb +3 -0
- data/lib/seahorse/model/shapes.rb +25 -0
- data/lib/seahorse/util.rb +4 -0
- metadata +63 -12
- data/lib/aws-sdk-sso/plugins/content_type.rb +0 -25
@@ -0,0 +1,290 @@
|
|
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::SSOOIDC
|
11
|
+
|
12
|
+
# When SSOOIDC returns an error response, the Ruby SDK constructs and raises an error.
|
13
|
+
# These errors all extend Aws::SSOOIDC::Errors::ServiceError < {Aws::Errors::ServiceError}
|
14
|
+
#
|
15
|
+
# You can rescue all SSOOIDC errors using ServiceError:
|
16
|
+
#
|
17
|
+
# begin
|
18
|
+
# # do stuff
|
19
|
+
# rescue Aws::SSOOIDC::Errors::ServiceError
|
20
|
+
# # rescues all SSOOIDC 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
|
+
# * {AuthorizationPendingException}
|
32
|
+
# * {ExpiredTokenException}
|
33
|
+
# * {InternalServerException}
|
34
|
+
# * {InvalidClientException}
|
35
|
+
# * {InvalidClientMetadataException}
|
36
|
+
# * {InvalidGrantException}
|
37
|
+
# * {InvalidRequestException}
|
38
|
+
# * {InvalidScopeException}
|
39
|
+
# * {SlowDownException}
|
40
|
+
# * {UnauthorizedClientException}
|
41
|
+
# * {UnsupportedGrantTypeException}
|
42
|
+
#
|
43
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
44
|
+
# if they are not defined above.
|
45
|
+
module Errors
|
46
|
+
|
47
|
+
extend Aws::Errors::DynamicErrors
|
48
|
+
|
49
|
+
class AccessDeniedException < ServiceError
|
50
|
+
|
51
|
+
# @param [Seahorse::Client::RequestContext] context
|
52
|
+
# @param [String] message
|
53
|
+
# @param [Aws::SSOOIDC::Types::AccessDeniedException] data
|
54
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
55
|
+
super(context, message, data)
|
56
|
+
end
|
57
|
+
|
58
|
+
# @return [String]
|
59
|
+
def error
|
60
|
+
@data[:error]
|
61
|
+
end
|
62
|
+
|
63
|
+
# @return [String]
|
64
|
+
def error_description
|
65
|
+
@data[:error_description]
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
class AuthorizationPendingException < ServiceError
|
70
|
+
|
71
|
+
# @param [Seahorse::Client::RequestContext] context
|
72
|
+
# @param [String] message
|
73
|
+
# @param [Aws::SSOOIDC::Types::AuthorizationPendingException] data
|
74
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
75
|
+
super(context, message, data)
|
76
|
+
end
|
77
|
+
|
78
|
+
# @return [String]
|
79
|
+
def error
|
80
|
+
@data[:error]
|
81
|
+
end
|
82
|
+
|
83
|
+
# @return [String]
|
84
|
+
def error_description
|
85
|
+
@data[:error_description]
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
class ExpiredTokenException < ServiceError
|
90
|
+
|
91
|
+
# @param [Seahorse::Client::RequestContext] context
|
92
|
+
# @param [String] message
|
93
|
+
# @param [Aws::SSOOIDC::Types::ExpiredTokenException] data
|
94
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
95
|
+
super(context, message, data)
|
96
|
+
end
|
97
|
+
|
98
|
+
# @return [String]
|
99
|
+
def error
|
100
|
+
@data[:error]
|
101
|
+
end
|
102
|
+
|
103
|
+
# @return [String]
|
104
|
+
def error_description
|
105
|
+
@data[:error_description]
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
class InternalServerException < ServiceError
|
110
|
+
|
111
|
+
# @param [Seahorse::Client::RequestContext] context
|
112
|
+
# @param [String] message
|
113
|
+
# @param [Aws::SSOOIDC::Types::InternalServerException] data
|
114
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
115
|
+
super(context, message, data)
|
116
|
+
end
|
117
|
+
|
118
|
+
# @return [String]
|
119
|
+
def error
|
120
|
+
@data[:error]
|
121
|
+
end
|
122
|
+
|
123
|
+
# @return [String]
|
124
|
+
def error_description
|
125
|
+
@data[:error_description]
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
class InvalidClientException < ServiceError
|
130
|
+
|
131
|
+
# @param [Seahorse::Client::RequestContext] context
|
132
|
+
# @param [String] message
|
133
|
+
# @param [Aws::SSOOIDC::Types::InvalidClientException] data
|
134
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
135
|
+
super(context, message, data)
|
136
|
+
end
|
137
|
+
|
138
|
+
# @return [String]
|
139
|
+
def error
|
140
|
+
@data[:error]
|
141
|
+
end
|
142
|
+
|
143
|
+
# @return [String]
|
144
|
+
def error_description
|
145
|
+
@data[:error_description]
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
class InvalidClientMetadataException < ServiceError
|
150
|
+
|
151
|
+
# @param [Seahorse::Client::RequestContext] context
|
152
|
+
# @param [String] message
|
153
|
+
# @param [Aws::SSOOIDC::Types::InvalidClientMetadataException] data
|
154
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
155
|
+
super(context, message, data)
|
156
|
+
end
|
157
|
+
|
158
|
+
# @return [String]
|
159
|
+
def error
|
160
|
+
@data[:error]
|
161
|
+
end
|
162
|
+
|
163
|
+
# @return [String]
|
164
|
+
def error_description
|
165
|
+
@data[:error_description]
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
169
|
+
class InvalidGrantException < ServiceError
|
170
|
+
|
171
|
+
# @param [Seahorse::Client::RequestContext] context
|
172
|
+
# @param [String] message
|
173
|
+
# @param [Aws::SSOOIDC::Types::InvalidGrantException] data
|
174
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
175
|
+
super(context, message, data)
|
176
|
+
end
|
177
|
+
|
178
|
+
# @return [String]
|
179
|
+
def error
|
180
|
+
@data[:error]
|
181
|
+
end
|
182
|
+
|
183
|
+
# @return [String]
|
184
|
+
def error_description
|
185
|
+
@data[:error_description]
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
189
|
+
class InvalidRequestException < ServiceError
|
190
|
+
|
191
|
+
# @param [Seahorse::Client::RequestContext] context
|
192
|
+
# @param [String] message
|
193
|
+
# @param [Aws::SSOOIDC::Types::InvalidRequestException] data
|
194
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
195
|
+
super(context, message, data)
|
196
|
+
end
|
197
|
+
|
198
|
+
# @return [String]
|
199
|
+
def error
|
200
|
+
@data[:error]
|
201
|
+
end
|
202
|
+
|
203
|
+
# @return [String]
|
204
|
+
def error_description
|
205
|
+
@data[:error_description]
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
class InvalidScopeException < ServiceError
|
210
|
+
|
211
|
+
# @param [Seahorse::Client::RequestContext] context
|
212
|
+
# @param [String] message
|
213
|
+
# @param [Aws::SSOOIDC::Types::InvalidScopeException] data
|
214
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
215
|
+
super(context, message, data)
|
216
|
+
end
|
217
|
+
|
218
|
+
# @return [String]
|
219
|
+
def error
|
220
|
+
@data[:error]
|
221
|
+
end
|
222
|
+
|
223
|
+
# @return [String]
|
224
|
+
def error_description
|
225
|
+
@data[:error_description]
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
229
|
+
class SlowDownException < ServiceError
|
230
|
+
|
231
|
+
# @param [Seahorse::Client::RequestContext] context
|
232
|
+
# @param [String] message
|
233
|
+
# @param [Aws::SSOOIDC::Types::SlowDownException] data
|
234
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
235
|
+
super(context, message, data)
|
236
|
+
end
|
237
|
+
|
238
|
+
# @return [String]
|
239
|
+
def error
|
240
|
+
@data[:error]
|
241
|
+
end
|
242
|
+
|
243
|
+
# @return [String]
|
244
|
+
def error_description
|
245
|
+
@data[:error_description]
|
246
|
+
end
|
247
|
+
end
|
248
|
+
|
249
|
+
class UnauthorizedClientException < ServiceError
|
250
|
+
|
251
|
+
# @param [Seahorse::Client::RequestContext] context
|
252
|
+
# @param [String] message
|
253
|
+
# @param [Aws::SSOOIDC::Types::UnauthorizedClientException] data
|
254
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
255
|
+
super(context, message, data)
|
256
|
+
end
|
257
|
+
|
258
|
+
# @return [String]
|
259
|
+
def error
|
260
|
+
@data[:error]
|
261
|
+
end
|
262
|
+
|
263
|
+
# @return [String]
|
264
|
+
def error_description
|
265
|
+
@data[:error_description]
|
266
|
+
end
|
267
|
+
end
|
268
|
+
|
269
|
+
class UnsupportedGrantTypeException < ServiceError
|
270
|
+
|
271
|
+
# @param [Seahorse::Client::RequestContext] context
|
272
|
+
# @param [String] message
|
273
|
+
# @param [Aws::SSOOIDC::Types::UnsupportedGrantTypeException] data
|
274
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
275
|
+
super(context, message, data)
|
276
|
+
end
|
277
|
+
|
278
|
+
# @return [String]
|
279
|
+
def error
|
280
|
+
@data[:error]
|
281
|
+
end
|
282
|
+
|
283
|
+
# @return [String]
|
284
|
+
def error_description
|
285
|
+
@data[:error_description]
|
286
|
+
end
|
287
|
+
end
|
288
|
+
|
289
|
+
end
|
290
|
+
end
|
@@ -0,0 +1,74 @@
|
|
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::SSOOIDC
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::SSOOIDC::EndpointProvider',
|
17
|
+
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
|
+
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
|
+
'where `parameters` is a Struct similar to '\
|
20
|
+
'`Aws::SSOOIDC::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::SSOOIDC::EndpointProvider.new
|
23
|
+
end
|
24
|
+
|
25
|
+
# @api private
|
26
|
+
class Handler < Seahorse::Client::Handler
|
27
|
+
def call(context)
|
28
|
+
# If endpoint was discovered, do not resolve or apply the endpoint.
|
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
|
+
end
|
36
|
+
|
37
|
+
context[:endpoint_params] = params
|
38
|
+
context[:auth_scheme] =
|
39
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
|
+
|
41
|
+
@handler.call(context)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def apply_endpoint_headers(context, headers)
|
47
|
+
headers.each do |key, values|
|
48
|
+
value = values
|
49
|
+
.compact
|
50
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
51
|
+
.join(',')
|
52
|
+
|
53
|
+
context.http_request.headers[key] = value
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def parameters_for_operation(context)
|
58
|
+
case context.operation_name
|
59
|
+
when :create_token
|
60
|
+
Aws::SSOOIDC::Endpoints::CreateToken.build(context)
|
61
|
+
when :register_client
|
62
|
+
Aws::SSOOIDC::Endpoints::RegisterClient.build(context)
|
63
|
+
when :start_device_authorization
|
64
|
+
Aws::SSOOIDC::Endpoints::StartDeviceAuthorization.build(context)
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
def add_handlers(handlers, _config)
|
70
|
+
handlers.add(Handler, step: :build, priority: 75)
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
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::SSOOIDC
|
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
|