aws-sdk-sso 1.2.0 → 1.7.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
- SHA1:
3
- metadata.gz: 9cfc932ae4c2ea188cfa84656b3387de83240471
4
- data.tar.gz: 7650ad546e77d25c002d0f73d2f360998b53c0d5
2
+ SHA256:
3
+ metadata.gz: e31d84fa31bd1700010d1532ebae5125fc291a331b8357562fdae610b5d70695
4
+ data.tar.gz: 9dd79a552c3f64a64e5567acf13063a6a3b3dc2e80ef3bd83895cd7102015b5f
5
5
  SHA512:
6
- metadata.gz: c7a7c1d0528f7cc3bfa87c2bd934c5fdf54ec18acd3b56b90bf7fc5b4ff61533d8c427a855c1ea4759f0750bf7b0d641711861c912e1203e1d66a0fe4c6f1ada
7
- data.tar.gz: 7c0a10087fa0acff24c578a2e3fe7e8fe7710912981dea4d90ed89201837aa50e6dad7fafb88a55b595c7b40a3e4ee1b918579c9ca2714a2d8ebcf808aca9ebb
6
+ metadata.gz: 1d3b35d19953ca40a45de83d75e9128542ae0b698c9cfea2a7a610f048d7a0c5061e669c19961141eae2e211535963c5852d7f68231f6a1289bbd3e31be980ec
7
+ data.tar.gz: d46f987899fad7db776b29cbb40f3beb242036599d1f5fbe343dc3ba411bade898506d5a914b5f1b4522436b424a7e01ee9037247bc16f204de6f3d55ba283d5
@@ -1,50 +1,5 @@
1
- # WARNING ABOUT GENERATED CODE
2
- #
3
- # This file is generated. See the contributing guide for more information:
4
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
- #
6
- # WARNING ABOUT GENERATED CODE
1
+ # frozen_string_literal: true
7
2
 
3
+ # This gem is a STUB - SSO has been moved into aws-sdk-core as of version 3.105
8
4
  require 'aws-sdk-core'
9
5
  require 'aws-sigv4'
10
-
11
- require_relative 'aws-sdk-sso/types'
12
- require_relative 'aws-sdk-sso/client_api'
13
- require_relative 'aws-sdk-sso/client'
14
- require_relative 'aws-sdk-sso/errors'
15
- require_relative 'aws-sdk-sso/resource'
16
- require_relative 'aws-sdk-sso/customizations'
17
-
18
- # This module provides support for AWS Single Sign-On. This module is available in the
19
- # `aws-sdk-sso` gem.
20
- #
21
- # # Client
22
- #
23
- # The {Client} class provides one method for each API operation. Operation
24
- # methods each accept a hash of request parameters and return a response
25
- # structure.
26
- #
27
- # sso = Aws::SSO::Client.new
28
- # resp = sso.get_role_credentials(params)
29
- #
30
- # See {Client} for more information.
31
- #
32
- # # Errors
33
- #
34
- # Errors returned from AWS Single Sign-On are defined in the
35
- # {Errors} module and all extend {Errors::ServiceError}.
36
- #
37
- # begin
38
- # # do stuff
39
- # rescue Aws::SSO::Errors::ServiceError
40
- # # rescues all AWS Single Sign-On API errors
41
- # end
42
- #
43
- # See {Errors} for more information.
44
- #
45
- # @service
46
- module Aws::SSO
47
-
48
- GEM_VERSION = '1.2.0'
49
-
50
- end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-sso
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.7.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: 2020-03-09 00:00:00.000000000 Z
11
+ date: 2020-08-25 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.71.0
22
+ version: 3.105.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.71.0
32
+ version: 3.105.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -53,13 +53,6 @@ extensions: []
53
53
  extra_rdoc_files: []
54
54
  files:
55
55
  - lib/aws-sdk-sso.rb
56
- - lib/aws-sdk-sso/client.rb
57
- - lib/aws-sdk-sso/client_api.rb
58
- - lib/aws-sdk-sso/customizations.rb
59
- - lib/aws-sdk-sso/errors.rb
60
- - lib/aws-sdk-sso/plugins/content_type.rb
61
- - lib/aws-sdk-sso/resource.rb
62
- - lib/aws-sdk-sso/types.rb
63
56
  homepage: https://github.com/aws/aws-sdk-ruby
64
57
  licenses:
65
58
  - Apache-2.0
@@ -82,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
75
  version: '0'
83
76
  requirements: []
84
77
  rubyforge_project:
85
- rubygems_version: 2.5.2.3
78
+ rubygems_version: 2.7.6.2
86
79
  signing_key:
87
80
  specification_version: 4
88
81
  summary: AWS SDK for Ruby - SSO
@@ -1,522 +0,0 @@
1
- # WARNING ABOUT GENERATED CODE
2
- #
3
- # This file is generated. See the contributing guide for more information:
4
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
- #
6
- # WARNING ABOUT GENERATED CODE
7
-
8
- require 'seahorse/client/plugins/content_length.rb'
9
- require 'aws-sdk-core/plugins/credentials_configuration.rb'
10
- require 'aws-sdk-core/plugins/logging.rb'
11
- require 'aws-sdk-core/plugins/param_converter.rb'
12
- require 'aws-sdk-core/plugins/param_validator.rb'
13
- require 'aws-sdk-core/plugins/user_agent.rb'
14
- require 'aws-sdk-core/plugins/helpful_socket_errors.rb'
15
- require 'aws-sdk-core/plugins/retry_errors.rb'
16
- require 'aws-sdk-core/plugins/global_configuration.rb'
17
- require 'aws-sdk-core/plugins/regional_endpoint.rb'
18
- require 'aws-sdk-core/plugins/endpoint_discovery.rb'
19
- require 'aws-sdk-core/plugins/endpoint_pattern.rb'
20
- require 'aws-sdk-core/plugins/response_paging.rb'
21
- require 'aws-sdk-core/plugins/stub_responses.rb'
22
- require 'aws-sdk-core/plugins/idempotency_token.rb'
23
- require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
- require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
- require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
- require 'aws-sdk-core/plugins/transfer_encoding.rb'
27
- require 'aws-sdk-core/plugins/signature_v4.rb'
28
- require 'aws-sdk-core/plugins/protocols/rest_json.rb'
29
- require 'aws-sdk-sso/plugins/content_type.rb'
30
-
31
- Aws::Plugins::GlobalConfiguration.add_identifier(:sso)
32
-
33
- module Aws::SSO
34
- # An API client for SSO. To construct a client, you need to configure a `:region` and `:credentials`.
35
- #
36
- # client = Aws::SSO::Client.new(
37
- # region: region_name,
38
- # credentials: credentials,
39
- # # ...
40
- # )
41
- #
42
- # For details on configuring region and credentials see
43
- # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
44
- #
45
- # See {#initialize} for a full list of supported configuration options.
46
- class Client < Seahorse::Client::Base
47
-
48
- include Aws::ClientStubs
49
-
50
- @identifier = :sso
51
-
52
- set_api(ClientApi::API)
53
-
54
- add_plugin(Seahorse::Client::Plugins::ContentLength)
55
- add_plugin(Aws::Plugins::CredentialsConfiguration)
56
- add_plugin(Aws::Plugins::Logging)
57
- add_plugin(Aws::Plugins::ParamConverter)
58
- add_plugin(Aws::Plugins::ParamValidator)
59
- add_plugin(Aws::Plugins::UserAgent)
60
- add_plugin(Aws::Plugins::HelpfulSocketErrors)
61
- add_plugin(Aws::Plugins::RetryErrors)
62
- add_plugin(Aws::Plugins::GlobalConfiguration)
63
- add_plugin(Aws::Plugins::RegionalEndpoint)
64
- add_plugin(Aws::Plugins::EndpointDiscovery)
65
- add_plugin(Aws::Plugins::EndpointPattern)
66
- add_plugin(Aws::Plugins::ResponsePaging)
67
- add_plugin(Aws::Plugins::StubResponses)
68
- add_plugin(Aws::Plugins::IdempotencyToken)
69
- add_plugin(Aws::Plugins::JsonvalueConverter)
70
- add_plugin(Aws::Plugins::ClientMetricsPlugin)
71
- add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
72
- add_plugin(Aws::Plugins::TransferEncoding)
73
- add_plugin(Aws::Plugins::SignatureV4)
74
- add_plugin(Aws::Plugins::Protocols::RestJson)
75
- add_plugin(Aws::SSO::Plugins::ContentType)
76
-
77
- # @overload initialize(options)
78
- # @param [Hash] options
79
- # @option options [required, Aws::CredentialProvider] :credentials
80
- # Your AWS credentials. This can be an instance of any one of the
81
- # following classes:
82
- #
83
- # * `Aws::Credentials` - Used for configuring static, non-refreshing
84
- # credentials.
85
- #
86
- # * `Aws::InstanceProfileCredentials` - Used for loading credentials
87
- # from an EC2 IMDS on an EC2 instance.
88
- #
89
- # * `Aws::SharedCredentials` - Used for loading credentials from a
90
- # shared file, such as `~/.aws/config`.
91
- #
92
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
93
- #
94
- # When `:credentials` are not configured directly, the following
95
- # locations will be searched for credentials:
96
- #
97
- # * `Aws.config[:credentials]`
98
- # * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
99
- # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
100
- # * `~/.aws/credentials`
101
- # * `~/.aws/config`
102
- # * EC2 IMDS instance profile - When used by default, the timeouts are
103
- # very aggressive. Construct and pass an instance of
104
- # `Aws::InstanceProfileCredentails` to enable retries and extended
105
- # timeouts.
106
- #
107
- # @option options [required, String] :region
108
- # The AWS region to connect to. The configured `:region` is
109
- # used to determine the service `:endpoint`. When not passed,
110
- # a default `:region` is search for in the following locations:
111
- #
112
- # * `Aws.config[:region]`
113
- # * `ENV['AWS_REGION']`
114
- # * `ENV['AMAZON_REGION']`
115
- # * `ENV['AWS_DEFAULT_REGION']`
116
- # * `~/.aws/credentials`
117
- # * `~/.aws/config`
118
- #
119
- # @option options [String] :access_key_id
120
- #
121
- # @option options [Boolean] :active_endpoint_cache (false)
122
- # When set to `true`, a thread polling for endpoints will be running in
123
- # the background every 60 secs (default). Defaults to `false`.
124
- #
125
- # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
126
- # Used only in `adaptive` retry mode. When true, the request will sleep
127
- # until there is sufficent client side capacity to retry the request.
128
- # When false, the request will raise a `RetryCapacityNotAvailableError` and will
129
- # not retry instead of sleeping.
130
- #
131
- # @option options [Boolean] :client_side_monitoring (false)
132
- # When `true`, client-side metrics will be collected for all API requests from
133
- # this client.
134
- #
135
- # @option options [String] :client_side_monitoring_client_id ("")
136
- # Allows you to provide an identifier for this client which will be attached to
137
- # all generated client side metrics. Defaults to an empty string.
138
- #
139
- # @option options [String] :client_side_monitoring_host ("127.0.0.1")
140
- # Allows you to specify the DNS hostname or IPv4 or IPv6 address that the client
141
- # side monitoring agent is running on, where client metrics will be published via UDP.
142
- #
143
- # @option options [Integer] :client_side_monitoring_port (31000)
144
- # Required for publishing client metrics. The port that the client side monitoring
145
- # agent is running on, where client metrics will be published via UDP.
146
- #
147
- # @option options [Aws::ClientSideMonitoring::Publisher] :client_side_monitoring_publisher (Aws::ClientSideMonitoring::Publisher)
148
- # Allows you to provide a custom client-side monitoring publisher class. By default,
149
- # will use the Client Side Monitoring Agent Publisher.
150
- #
151
- # @option options [Boolean] :convert_params (true)
152
- # When `true`, an attempt is made to coerce request parameters into
153
- # the required types.
154
- #
155
- # @option options [Boolean] :correct_clock_skew (true)
156
- # Used only in `standard` and adaptive retry modes. Specifies whether to apply
157
- # a clock skew correction and retry requests with skewed client clocks.
158
- #
159
- # @option options [Boolean] :disable_host_prefix_injection (false)
160
- # Set to true to disable SDK automatically adding host prefix
161
- # to default service endpoint when available.
162
- #
163
- # @option options [String] :endpoint
164
- # The client endpoint is normally constructed from the `:region`
165
- # option. You should only configure an `:endpoint` when connecting
166
- # to test endpoints. This should be avalid HTTP(S) URI.
167
- #
168
- # @option options [Integer] :endpoint_cache_max_entries (1000)
169
- # Used for the maximum size limit of the LRU cache storing endpoints data
170
- # for endpoint discovery enabled operations. Defaults to 1000.
171
- #
172
- # @option options [Integer] :endpoint_cache_max_threads (10)
173
- # Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.
174
- #
175
- # @option options [Integer] :endpoint_cache_poll_interval (60)
176
- # When :endpoint_discovery and :active_endpoint_cache is enabled,
177
- # Use this option to config the time interval in seconds for making
178
- # requests fetching endpoints information. Defaults to 60 sec.
179
- #
180
- # @option options [Boolean] :endpoint_discovery (false)
181
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
182
- #
183
- # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
184
- # The log formatter.
185
- #
186
- # @option options [Symbol] :log_level (:info)
187
- # The log level to send messages to the `:logger` at.
188
- #
189
- # @option options [Logger] :logger
190
- # The Logger instance to send log messages to. If this option
191
- # is not set, logging will be disabled.
192
- #
193
- # @option options [Integer] :max_attempts (3)
194
- # An integer representing the maximum number attempts that will be made for
195
- # a single request, including the initial attempt. For example,
196
- # setting this value to 5 will result in a request being retried up to
197
- # 4 times. Used in `standard` and `adaptive` retry modes.
198
- #
199
- # @option options [String] :profile ("default")
200
- # Used when loading credentials from the shared credentials file
201
- # at HOME/.aws/credentials. When not specified, 'default' is used.
202
- #
203
- # @option options [Proc] :retry_backoff
204
- # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
205
- # This option is only used in the `legacy` retry mode.
206
- #
207
- # @option options [Float] :retry_base_delay (0.3)
208
- # The base delay in seconds used by the default backoff function. This option
209
- # is only used in the `legacy` retry mode.
210
- #
211
- # @option options [Symbol] :retry_jitter (:none)
212
- # A delay randomiser function used by the default backoff function.
213
- # Some predefined functions can be referenced by name - :none, :equal, :full,
214
- # otherwise a Proc that takes and returns a number. This option is only used
215
- # in the `legacy` retry mode.
216
- #
217
- # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
218
- #
219
- # @option options [Integer] :retry_limit (3)
220
- # The maximum number of times to retry failed requests. Only
221
- # ~ 500 level server errors and certain ~ 400 level client errors
222
- # are retried. Generally, these are throttling errors, data
223
- # checksum errors, networking errors, timeout errors, auth errors,
224
- # endpoint discovery, and errors from expired credentials.
225
- # This option is only used in the `legacy` retry mode.
226
- #
227
- # @option options [Integer] :retry_max_delay (0)
228
- # The maximum number of seconds to delay between retries (0 for no limit)
229
- # used by the default backoff function. This option is only used in the
230
- # `legacy` retry mode.
231
- #
232
- # @option options [String] :retry_mode ("legacy")
233
- # Specifies which retry algorithm to use. Values are:
234
- # * `legacy` - The pre-existing retry behavior. This is default value if
235
- # no retry mode is provided.
236
- # * `standard` - A standardized set of retry rules across the AWS SDKs.
237
- # This includes support for retry quotas, which limit the number of
238
- # unsuccessful retries a client can make.
239
- # * `adaptive` - An experimental retry mode that includes all the
240
- # functionality of `standard` mode along with automatic client side
241
- # throttling. This is a provisional mode that may change behavior
242
- # in the future.
243
- #
244
- # @option options [String] :secret_access_key
245
- #
246
- # @option options [String] :session_token
247
- #
248
- # @option options [Boolean] :stub_responses (false)
249
- # Causes the client to return stubbed responses. By default
250
- # fake responses are generated and returned. You can specify
251
- # the response data to return or errors to raise by calling
252
- # {ClientStubs#stub_responses}. See {ClientStubs} for more information.
253
- #
254
- # ** Please note ** When response stubbing is enabled, no HTTP
255
- # requests are made, and retries are disabled.
256
- #
257
- # @option options [Boolean] :validate_params (true)
258
- # When `true`, request parameters are validated before
259
- # sending the request.
260
- #
261
- # @option options [URI::HTTP,String] :http_proxy A proxy to send
262
- # requests through. Formatted like 'http://proxy.com:123'.
263
- #
264
- # @option options [Float] :http_open_timeout (15) The number of
265
- # seconds to wait when opening a HTTP session before raising a
266
- # `Timeout::Error`.
267
- #
268
- # @option options [Integer] :http_read_timeout (60) The default
269
- # number of seconds to wait for response data. This value can
270
- # safely be set
271
- # per-request on the session yielded by {#session_for}.
272
- #
273
- # @option options [Float] :http_idle_timeout (5) The number of
274
- # seconds a connection is allowed to sit idle before it is
275
- # considered stale. Stale connections are closed and removed
276
- # from the pool before making a request.
277
- #
278
- # @option options [Float] :http_continue_timeout (1) The number of
279
- # seconds to wait for a 100-continue response before sending the
280
- # request body. This option has no effect unless the request has
281
- # "Expect" header set to "100-continue". Defaults to `nil` which
282
- # disables this behaviour. This value can safely be set per
283
- # request on the session yielded by {#session_for}.
284
- #
285
- # @option options [Boolean] :http_wire_trace (false) When `true`,
286
- # HTTP debug output will be sent to the `:logger`.
287
- #
288
- # @option options [Boolean] :ssl_verify_peer (true) When `true`,
289
- # SSL peer certificates are verified when establishing a
290
- # connection.
291
- #
292
- # @option options [String] :ssl_ca_bundle Full path to the SSL
293
- # certificate authority bundle file that should be used when
294
- # verifying peer certificates. If you do not pass
295
- # `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
296
- # will be used if available.
297
- #
298
- # @option options [String] :ssl_ca_directory Full path of the
299
- # directory that contains the unbundled SSL certificate
300
- # authority files for verifying peer certificates. If you do
301
- # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
302
- # system default will be used if available.
303
- #
304
- def initialize(*args)
305
- super
306
- end
307
-
308
- # @!group API Operations
309
-
310
- # Returns the STS short-term credentials for a given role name that is
311
- # assigned to the user.
312
- #
313
- # @option params [required, String] :role_name
314
- # The friendly name of the role that is assigned to the user.
315
- #
316
- # @option params [required, String] :account_id
317
- # The identifier for the AWS account that is assigned to the user.
318
- #
319
- # @option params [required, String] :access_token
320
- # The token issued by the `CreateToken` API call. For more information,
321
- # see [CreateToken][1] in the *AWS SSO OIDC API Reference Guide*.
322
- #
323
- #
324
- #
325
- # [1]: https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html
326
- #
327
- # @return [Types::GetRoleCredentialsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
328
- #
329
- # * {Types::GetRoleCredentialsResponse#role_credentials #role_credentials} => Types::RoleCredentials
330
- #
331
- # @example Request syntax with placeholder values
332
- #
333
- # resp = client.get_role_credentials({
334
- # role_name: "RoleNameType", # required
335
- # account_id: "AccountIdType", # required
336
- # access_token: "AccessTokenType", # required
337
- # })
338
- #
339
- # @example Response structure
340
- #
341
- # resp.role_credentials.access_key_id #=> String
342
- # resp.role_credentials.secret_access_key #=> String
343
- # resp.role_credentials.session_token #=> String
344
- # resp.role_credentials.expiration #=> Integer
345
- #
346
- # @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/GetRoleCredentials AWS API Documentation
347
- #
348
- # @overload get_role_credentials(params = {})
349
- # @param [Hash] params ({})
350
- def get_role_credentials(params = {}, options = {})
351
- req = build_request(:get_role_credentials, params)
352
- req.send_request(options)
353
- end
354
-
355
- # Lists all roles that are assigned to the user for a given AWS account.
356
- #
357
- # @option params [String] :next_token
358
- # The page token from the previous response output when you request
359
- # subsequent pages.
360
- #
361
- # @option params [Integer] :max_results
362
- # The number of items that clients can request per page.
363
- #
364
- # @option params [required, String] :access_token
365
- # The token issued by the `CreateToken` API call. For more information,
366
- # see [CreateToken][1] in the *AWS SSO OIDC API Reference Guide*.
367
- #
368
- #
369
- #
370
- # [1]: https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html
371
- #
372
- # @option params [required, String] :account_id
373
- # The identifier for the AWS account that is assigned to the user.
374
- #
375
- # @return [Types::ListAccountRolesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
376
- #
377
- # * {Types::ListAccountRolesResponse#next_token #next_token} => String
378
- # * {Types::ListAccountRolesResponse#role_list #role_list} => Array&lt;Types::RoleInfo&gt;
379
- #
380
- # @example Request syntax with placeholder values
381
- #
382
- # resp = client.list_account_roles({
383
- # next_token: "NextTokenType",
384
- # max_results: 1,
385
- # access_token: "AccessTokenType", # required
386
- # account_id: "AccountIdType", # required
387
- # })
388
- #
389
- # @example Response structure
390
- #
391
- # resp.next_token #=> String
392
- # resp.role_list #=> Array
393
- # resp.role_list[0].role_name #=> String
394
- # resp.role_list[0].account_id #=> String
395
- #
396
- # @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/ListAccountRoles AWS API Documentation
397
- #
398
- # @overload list_account_roles(params = {})
399
- # @param [Hash] params ({})
400
- def list_account_roles(params = {}, options = {})
401
- req = build_request(:list_account_roles, params)
402
- req.send_request(options)
403
- end
404
-
405
- # Lists all AWS accounts assigned to the user. These AWS accounts are
406
- # assigned by the administrator of the account. For more information,
407
- # see [Assign User Access][1] in the *AWS SSO User Guide*. This
408
- # operation returns a paginated response.
409
- #
410
- #
411
- #
412
- # [1]: https://docs.aws.amazon.com/singlesignon/latest/userguide/useraccess.html#assignusers
413
- #
414
- # @option params [String] :next_token
415
- # (Optional) When requesting subsequent pages, this is the page token
416
- # from the previous response output.
417
- #
418
- # @option params [Integer] :max_results
419
- # This is the number of items clients can request per page.
420
- #
421
- # @option params [required, String] :access_token
422
- # The token issued by the `CreateToken` API call. For more information,
423
- # see [CreateToken][1] in the *AWS SSO OIDC API Reference Guide*.
424
- #
425
- #
426
- #
427
- # [1]: https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html
428
- #
429
- # @return [Types::ListAccountsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
430
- #
431
- # * {Types::ListAccountsResponse#next_token #next_token} => String
432
- # * {Types::ListAccountsResponse#account_list #account_list} => Array&lt;Types::AccountInfo&gt;
433
- #
434
- # @example Request syntax with placeholder values
435
- #
436
- # resp = client.list_accounts({
437
- # next_token: "NextTokenType",
438
- # max_results: 1,
439
- # access_token: "AccessTokenType", # required
440
- # })
441
- #
442
- # @example Response structure
443
- #
444
- # resp.next_token #=> String
445
- # resp.account_list #=> Array
446
- # resp.account_list[0].account_id #=> String
447
- # resp.account_list[0].account_name #=> String
448
- # resp.account_list[0].email_address #=> String
449
- #
450
- # @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/ListAccounts AWS API Documentation
451
- #
452
- # @overload list_accounts(params = {})
453
- # @param [Hash] params ({})
454
- def list_accounts(params = {}, options = {})
455
- req = build_request(:list_accounts, params)
456
- req.send_request(options)
457
- end
458
-
459
- # Removes the client- and server-side session that is associated with
460
- # the user.
461
- #
462
- # @option params [required, String] :access_token
463
- # The token issued by the `CreateToken` API call. For more information,
464
- # see [CreateToken][1] in the *AWS SSO OIDC API Reference Guide*.
465
- #
466
- #
467
- #
468
- # [1]: https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html
469
- #
470
- # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
471
- #
472
- # @example Request syntax with placeholder values
473
- #
474
- # resp = client.logout({
475
- # access_token: "AccessTokenType", # required
476
- # })
477
- #
478
- # @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/Logout AWS API Documentation
479
- #
480
- # @overload logout(params = {})
481
- # @param [Hash] params ({})
482
- def logout(params = {}, options = {})
483
- req = build_request(:logout, params)
484
- req.send_request(options)
485
- end
486
-
487
- # @!endgroup
488
-
489
- # @param params ({})
490
- # @api private
491
- def build_request(operation_name, params = {})
492
- handlers = @handlers.for(operation_name)
493
- context = Seahorse::Client::RequestContext.new(
494
- operation_name: operation_name,
495
- operation: config.api.operation(operation_name),
496
- client: self,
497
- params: params,
498
- config: config)
499
- context[:gem_name] = 'aws-sdk-sso'
500
- context[:gem_version] = '1.2.0'
501
- Seahorse::Client::Request.new(handlers, context)
502
- end
503
-
504
- # @api private
505
- # @deprecated
506
- def waiter_names
507
- []
508
- end
509
-
510
- class << self
511
-
512
- # @api private
513
- attr_reader :identifier
514
-
515
- # @api private
516
- def errors_module
517
- Errors
518
- end
519
-
520
- end
521
- end
522
- end
@@ -1,188 +0,0 @@
1
- # WARNING ABOUT GENERATED CODE
2
- #
3
- # This file is generated. See the contributing guide for more information:
4
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
- #
6
- # WARNING ABOUT GENERATED CODE
7
-
8
- module Aws::SSO
9
- # @api private
10
- module ClientApi
11
-
12
- include Seahorse::Model
13
-
14
- AccessKeyType = Shapes::StringShape.new(name: 'AccessKeyType')
15
- AccessTokenType = Shapes::StringShape.new(name: 'AccessTokenType')
16
- AccountIdType = Shapes::StringShape.new(name: 'AccountIdType')
17
- AccountInfo = Shapes::StructureShape.new(name: 'AccountInfo')
18
- AccountListType = Shapes::ListShape.new(name: 'AccountListType')
19
- AccountNameType = Shapes::StringShape.new(name: 'AccountNameType')
20
- EmailAddressType = Shapes::StringShape.new(name: 'EmailAddressType')
21
- ErrorDescription = Shapes::StringShape.new(name: 'ErrorDescription')
22
- ExpirationTimestampType = Shapes::IntegerShape.new(name: 'ExpirationTimestampType')
23
- GetRoleCredentialsRequest = Shapes::StructureShape.new(name: 'GetRoleCredentialsRequest')
24
- GetRoleCredentialsResponse = Shapes::StructureShape.new(name: 'GetRoleCredentialsResponse')
25
- InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
26
- ListAccountRolesRequest = Shapes::StructureShape.new(name: 'ListAccountRolesRequest')
27
- ListAccountRolesResponse = Shapes::StructureShape.new(name: 'ListAccountRolesResponse')
28
- ListAccountsRequest = Shapes::StructureShape.new(name: 'ListAccountsRequest')
29
- ListAccountsResponse = Shapes::StructureShape.new(name: 'ListAccountsResponse')
30
- LogoutRequest = Shapes::StructureShape.new(name: 'LogoutRequest')
31
- MaxResultType = Shapes::IntegerShape.new(name: 'MaxResultType')
32
- NextTokenType = Shapes::StringShape.new(name: 'NextTokenType')
33
- ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
34
- RoleCredentials = Shapes::StructureShape.new(name: 'RoleCredentials')
35
- RoleInfo = Shapes::StructureShape.new(name: 'RoleInfo')
36
- RoleListType = Shapes::ListShape.new(name: 'RoleListType')
37
- RoleNameType = Shapes::StringShape.new(name: 'RoleNameType')
38
- SecretAccessKeyType = Shapes::StringShape.new(name: 'SecretAccessKeyType')
39
- SessionTokenType = Shapes::StringShape.new(name: 'SessionTokenType')
40
- TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
41
- UnauthorizedException = Shapes::StructureShape.new(name: 'UnauthorizedException')
42
-
43
- AccountInfo.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountIdType, location_name: "accountId"))
44
- AccountInfo.add_member(:account_name, Shapes::ShapeRef.new(shape: AccountNameType, location_name: "accountName"))
45
- AccountInfo.add_member(:email_address, Shapes::ShapeRef.new(shape: EmailAddressType, location_name: "emailAddress"))
46
- AccountInfo.struct_class = Types::AccountInfo
47
-
48
- AccountListType.member = Shapes::ShapeRef.new(shape: AccountInfo)
49
-
50
- GetRoleCredentialsRequest.add_member(:role_name, Shapes::ShapeRef.new(shape: RoleNameType, required: true, location: "querystring", location_name: "role_name"))
51
- GetRoleCredentialsRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountIdType, required: true, location: "querystring", location_name: "account_id"))
52
- GetRoleCredentialsRequest.add_member(:access_token, Shapes::ShapeRef.new(shape: AccessTokenType, required: true, location: "header", location_name: "x-amz-sso_bearer_token"))
53
- GetRoleCredentialsRequest.struct_class = Types::GetRoleCredentialsRequest
54
-
55
- GetRoleCredentialsResponse.add_member(:role_credentials, Shapes::ShapeRef.new(shape: RoleCredentials, location_name: "roleCredentials"))
56
- GetRoleCredentialsResponse.struct_class = Types::GetRoleCredentialsResponse
57
-
58
- InvalidRequestException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorDescription, location_name: "message"))
59
- InvalidRequestException.struct_class = Types::InvalidRequestException
60
-
61
- ListAccountRolesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenType, location: "querystring", location_name: "next_token"))
62
- ListAccountRolesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultType, location: "querystring", location_name: "max_result"))
63
- ListAccountRolesRequest.add_member(:access_token, Shapes::ShapeRef.new(shape: AccessTokenType, required: true, location: "header", location_name: "x-amz-sso_bearer_token"))
64
- ListAccountRolesRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountIdType, required: true, location: "querystring", location_name: "account_id"))
65
- ListAccountRolesRequest.struct_class = Types::ListAccountRolesRequest
66
-
67
- ListAccountRolesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenType, location_name: "nextToken"))
68
- ListAccountRolesResponse.add_member(:role_list, Shapes::ShapeRef.new(shape: RoleListType, location_name: "roleList"))
69
- ListAccountRolesResponse.struct_class = Types::ListAccountRolesResponse
70
-
71
- ListAccountsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenType, location: "querystring", location_name: "next_token"))
72
- ListAccountsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultType, location: "querystring", location_name: "max_result"))
73
- ListAccountsRequest.add_member(:access_token, Shapes::ShapeRef.new(shape: AccessTokenType, required: true, location: "header", location_name: "x-amz-sso_bearer_token"))
74
- ListAccountsRequest.struct_class = Types::ListAccountsRequest
75
-
76
- ListAccountsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenType, location_name: "nextToken"))
77
- ListAccountsResponse.add_member(:account_list, Shapes::ShapeRef.new(shape: AccountListType, location_name: "accountList"))
78
- ListAccountsResponse.struct_class = Types::ListAccountsResponse
79
-
80
- LogoutRequest.add_member(:access_token, Shapes::ShapeRef.new(shape: AccessTokenType, required: true, location: "header", location_name: "x-amz-sso_bearer_token"))
81
- LogoutRequest.struct_class = Types::LogoutRequest
82
-
83
- ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorDescription, location_name: "message"))
84
- ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
85
-
86
- RoleCredentials.add_member(:access_key_id, Shapes::ShapeRef.new(shape: AccessKeyType, location_name: "accessKeyId"))
87
- RoleCredentials.add_member(:secret_access_key, Shapes::ShapeRef.new(shape: SecretAccessKeyType, location_name: "secretAccessKey"))
88
- RoleCredentials.add_member(:session_token, Shapes::ShapeRef.new(shape: SessionTokenType, location_name: "sessionToken"))
89
- RoleCredentials.add_member(:expiration, Shapes::ShapeRef.new(shape: ExpirationTimestampType, location_name: "expiration"))
90
- RoleCredentials.struct_class = Types::RoleCredentials
91
-
92
- RoleInfo.add_member(:role_name, Shapes::ShapeRef.new(shape: RoleNameType, location_name: "roleName"))
93
- RoleInfo.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountIdType, location_name: "accountId"))
94
- RoleInfo.struct_class = Types::RoleInfo
95
-
96
- RoleListType.member = Shapes::ShapeRef.new(shape: RoleInfo)
97
-
98
- TooManyRequestsException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorDescription, location_name: "message"))
99
- TooManyRequestsException.struct_class = Types::TooManyRequestsException
100
-
101
- UnauthorizedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorDescription, location_name: "message"))
102
- UnauthorizedException.struct_class = Types::UnauthorizedException
103
-
104
-
105
- # @api private
106
- API = Seahorse::Model::Api.new.tap do |api|
107
-
108
- api.version = "2019-06-10"
109
-
110
- api.metadata = {
111
- "apiVersion" => "2019-06-10",
112
- "endpointPrefix" => "portal.sso",
113
- "jsonVersion" => "1.1",
114
- "protocol" => "rest-json",
115
- "serviceAbbreviation" => "SSO",
116
- "serviceFullName" => "AWS Single Sign-On",
117
- "serviceId" => "SSO",
118
- "signatureVersion" => "v4",
119
- "signingName" => "awsssoportal",
120
- "uid" => "sso-2019-06-10",
121
- }
122
-
123
- api.add_operation(:get_role_credentials, Seahorse::Model::Operation.new.tap do |o|
124
- o.name = "GetRoleCredentials"
125
- o.http_method = "GET"
126
- o.http_request_uri = "/federation/credentials"
127
- o['authtype'] = "none"
128
- o.input = Shapes::ShapeRef.new(shape: GetRoleCredentialsRequest)
129
- o.output = Shapes::ShapeRef.new(shape: GetRoleCredentialsResponse)
130
- o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
131
- o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
132
- o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
133
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
134
- end)
135
-
136
- api.add_operation(:list_account_roles, Seahorse::Model::Operation.new.tap do |o|
137
- o.name = "ListAccountRoles"
138
- o.http_method = "GET"
139
- o.http_request_uri = "/assignment/roles"
140
- o['authtype'] = "none"
141
- o.input = Shapes::ShapeRef.new(shape: ListAccountRolesRequest)
142
- o.output = Shapes::ShapeRef.new(shape: ListAccountRolesResponse)
143
- o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
144
- o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
145
- o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
146
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
147
- o[:pager] = Aws::Pager.new(
148
- limit_key: "max_results",
149
- tokens: {
150
- "next_token" => "next_token"
151
- }
152
- )
153
- end)
154
-
155
- api.add_operation(:list_accounts, Seahorse::Model::Operation.new.tap do |o|
156
- o.name = "ListAccounts"
157
- o.http_method = "GET"
158
- o.http_request_uri = "/assignment/accounts"
159
- o['authtype'] = "none"
160
- o.input = Shapes::ShapeRef.new(shape: ListAccountsRequest)
161
- o.output = Shapes::ShapeRef.new(shape: ListAccountsResponse)
162
- o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
163
- o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
164
- o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
165
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
166
- o[:pager] = Aws::Pager.new(
167
- limit_key: "max_results",
168
- tokens: {
169
- "next_token" => "next_token"
170
- }
171
- )
172
- end)
173
-
174
- api.add_operation(:logout, Seahorse::Model::Operation.new.tap do |o|
175
- o.name = "Logout"
176
- o.http_method = "POST"
177
- o.http_request_uri = "/logout"
178
- o['authtype'] = "none"
179
- o.input = Shapes::ShapeRef.new(shape: LogoutRequest)
180
- o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
181
- o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
182
- o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
183
- o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
184
- end)
185
- end
186
-
187
- end
188
- end
File without changes
@@ -1,100 +0,0 @@
1
- # WARNING ABOUT GENERATED CODE
2
- #
3
- # This file is generated. See the contributing guide for more information:
4
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
- #
6
- # WARNING ABOUT GENERATED CODE
7
-
8
- module Aws::SSO
9
-
10
- # When SSO returns an error response, the Ruby SDK constructs and raises an error.
11
- # These errors all extend Aws::SSO::Errors::ServiceError < {Aws::Errors::ServiceError}
12
- #
13
- # You can rescue all SSO errors using ServiceError:
14
- #
15
- # begin
16
- # # do stuff
17
- # rescue Aws::SSO::Errors::ServiceError
18
- # # rescues all SSO API errors
19
- # end
20
- #
21
- #
22
- # ## Request Context
23
- # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
24
- # information about the request that generated the error.
25
- # See {Seahorse::Client::RequestContext} for more information.
26
- #
27
- # ## Error Classes
28
- # * {InvalidRequestException}
29
- # * {ResourceNotFoundException}
30
- # * {TooManyRequestsException}
31
- # * {UnauthorizedException}
32
- #
33
- # Additionally, error classes are dynamically generated for service errors based on the error code
34
- # if they are not defined above.
35
- module Errors
36
-
37
- extend Aws::Errors::DynamicErrors
38
-
39
- class InvalidRequestException < ServiceError
40
-
41
- # @param [Seahorse::Client::RequestContext] context
42
- # @param [String] message
43
- # @param [Aws::SSO::Types::InvalidRequestException] data
44
- def initialize(context, message, data = Aws::EmptyStructure.new)
45
- super(context, message, data)
46
- end
47
-
48
- # @return [String]
49
- def message
50
- @message || @data[:message]
51
- end
52
- end
53
-
54
- class ResourceNotFoundException < ServiceError
55
-
56
- # @param [Seahorse::Client::RequestContext] context
57
- # @param [String] message
58
- # @param [Aws::SSO::Types::ResourceNotFoundException] data
59
- def initialize(context, message, data = Aws::EmptyStructure.new)
60
- super(context, message, data)
61
- end
62
-
63
- # @return [String]
64
- def message
65
- @message || @data[:message]
66
- end
67
- end
68
-
69
- class TooManyRequestsException < ServiceError
70
-
71
- # @param [Seahorse::Client::RequestContext] context
72
- # @param [String] message
73
- # @param [Aws::SSO::Types::TooManyRequestsException] data
74
- def initialize(context, message, data = Aws::EmptyStructure.new)
75
- super(context, message, data)
76
- end
77
-
78
- # @return [String]
79
- def message
80
- @message || @data[:message]
81
- end
82
- end
83
-
84
- class UnauthorizedException < ServiceError
85
-
86
- # @param [Seahorse::Client::RequestContext] context
87
- # @param [String] message
88
- # @param [Aws::SSO::Types::UnauthorizedException] data
89
- def initialize(context, message, data = Aws::EmptyStructure.new)
90
- super(context, message, data)
91
- end
92
-
93
- # @return [String]
94
- def message
95
- @message || @data[:message]
96
- end
97
- end
98
-
99
- end
100
- end
@@ -1,23 +0,0 @@
1
- module Aws
2
- module SSO
3
- module Plugins
4
- class ContentType < Seahorse::Client::Plugin
5
-
6
- def add_handlers(handlers, config)
7
- handlers.add(Handler)
8
- end
9
-
10
- class Handler < Seahorse::Client::Handler
11
- def call(context)
12
- # Some SSO operations break when given an empty content-type header.
13
- # The SDK adds this blank content-type header
14
- # since Net::HTTP provides a default that can break services.
15
- # We're setting one here even though it's not used or necessary.
16
- context.http_request.headers['content-type'] = 'application/json'
17
- @handler.call(context)
18
- end
19
- end
20
- end
21
- end
22
- end
23
- end
@@ -1,30 +0,0 @@
1
- # WARNING ABOUT GENERATED CODE
2
- #
3
- # This file is generated. See the contributing guide for more information:
4
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
- #
6
- # WARNING ABOUT GENERATED CODE
7
-
8
- module Aws::SSO
9
- # This class provides a resource oriented interface for SSO.
10
- # To create a resource object:
11
- # resource = Aws::SSO::Resource.new(region: 'us-west-2')
12
- # You can supply a client object with custom configuration that will be used for all resource operations.
13
- # If you do not pass +:client+, a default client will be constructed.
14
- # client = Aws::SSO::Client.new(region: 'us-west-2')
15
- # resource = Aws::SSO::Resource.new(client: client)
16
- class Resource
17
-
18
- # @param options ({})
19
- # @option options [Client] :client
20
- def initialize(options = {})
21
- @client = options[:client] || Client.new(options)
22
- end
23
-
24
- # @return [Client]
25
- def client
26
- @client
27
- end
28
-
29
- end
30
- end
@@ -1,336 +0,0 @@
1
- # WARNING ABOUT GENERATED CODE
2
- #
3
- # This file is generated. See the contributing guide for more information:
4
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
- #
6
- # WARNING ABOUT GENERATED CODE
7
-
8
- module Aws::SSO
9
- module Types
10
-
11
- # Provides information about your AWS account.
12
- #
13
- # @!attribute [rw] account_id
14
- # The identifier of the AWS account that is assigned to the user.
15
- # @return [String]
16
- #
17
- # @!attribute [rw] account_name
18
- # The display name of the AWS account that is assigned to the user.
19
- # @return [String]
20
- #
21
- # @!attribute [rw] email_address
22
- # The email address of the AWS account that is assigned to the user.
23
- # @return [String]
24
- #
25
- # @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/AccountInfo AWS API Documentation
26
- #
27
- class AccountInfo < Struct.new(
28
- :account_id,
29
- :account_name,
30
- :email_address)
31
- include Aws::Structure
32
- end
33
-
34
- # @note When making an API call, you may pass GetRoleCredentialsRequest
35
- # data as a hash:
36
- #
37
- # {
38
- # role_name: "RoleNameType", # required
39
- # account_id: "AccountIdType", # required
40
- # access_token: "AccessTokenType", # required
41
- # }
42
- #
43
- # @!attribute [rw] role_name
44
- # The friendly name of the role that is assigned to the user.
45
- # @return [String]
46
- #
47
- # @!attribute [rw] account_id
48
- # The identifier for the AWS account that is assigned to the user.
49
- # @return [String]
50
- #
51
- # @!attribute [rw] access_token
52
- # The token issued by the `CreateToken` API call. For more
53
- # information, see [CreateToken][1] in the *AWS SSO OIDC API Reference
54
- # Guide*.
55
- #
56
- #
57
- #
58
- # [1]: https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html
59
- # @return [String]
60
- #
61
- # @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/GetRoleCredentialsRequest AWS API Documentation
62
- #
63
- class GetRoleCredentialsRequest < Struct.new(
64
- :role_name,
65
- :account_id,
66
- :access_token)
67
- include Aws::Structure
68
- end
69
-
70
- # @!attribute [rw] role_credentials
71
- # The credentials for the role that is assigned to the user.
72
- # @return [Types::RoleCredentials]
73
- #
74
- # @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/GetRoleCredentialsResponse AWS API Documentation
75
- #
76
- class GetRoleCredentialsResponse < Struct.new(
77
- :role_credentials)
78
- include Aws::Structure
79
- end
80
-
81
- # Indicates that a problem occurred with the input to the request. For
82
- # example, a required parameter might be missing or out of range.
83
- #
84
- # @!attribute [rw] message
85
- # @return [String]
86
- #
87
- # @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/InvalidRequestException AWS API Documentation
88
- #
89
- class InvalidRequestException < Struct.new(
90
- :message)
91
- include Aws::Structure
92
- end
93
-
94
- # @note When making an API call, you may pass ListAccountRolesRequest
95
- # data as a hash:
96
- #
97
- # {
98
- # next_token: "NextTokenType",
99
- # max_results: 1,
100
- # access_token: "AccessTokenType", # required
101
- # account_id: "AccountIdType", # required
102
- # }
103
- #
104
- # @!attribute [rw] next_token
105
- # The page token from the previous response output when you request
106
- # subsequent pages.
107
- # @return [String]
108
- #
109
- # @!attribute [rw] max_results
110
- # The number of items that clients can request per page.
111
- # @return [Integer]
112
- #
113
- # @!attribute [rw] access_token
114
- # The token issued by the `CreateToken` API call. For more
115
- # information, see [CreateToken][1] in the *AWS SSO OIDC API Reference
116
- # Guide*.
117
- #
118
- #
119
- #
120
- # [1]: https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html
121
- # @return [String]
122
- #
123
- # @!attribute [rw] account_id
124
- # The identifier for the AWS account that is assigned to the user.
125
- # @return [String]
126
- #
127
- # @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/ListAccountRolesRequest AWS API Documentation
128
- #
129
- class ListAccountRolesRequest < Struct.new(
130
- :next_token,
131
- :max_results,
132
- :access_token,
133
- :account_id)
134
- include Aws::Structure
135
- end
136
-
137
- # @!attribute [rw] next_token
138
- # The page token client that is used to retrieve the list of accounts.
139
- # @return [String]
140
- #
141
- # @!attribute [rw] role_list
142
- # A paginated response with the list of roles and the next token if
143
- # more results are available.
144
- # @return [Array<Types::RoleInfo>]
145
- #
146
- # @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/ListAccountRolesResponse AWS API Documentation
147
- #
148
- class ListAccountRolesResponse < Struct.new(
149
- :next_token,
150
- :role_list)
151
- include Aws::Structure
152
- end
153
-
154
- # @note When making an API call, you may pass ListAccountsRequest
155
- # data as a hash:
156
- #
157
- # {
158
- # next_token: "NextTokenType",
159
- # max_results: 1,
160
- # access_token: "AccessTokenType", # required
161
- # }
162
- #
163
- # @!attribute [rw] next_token
164
- # (Optional) When requesting subsequent pages, this is the page token
165
- # from the previous response output.
166
- # @return [String]
167
- #
168
- # @!attribute [rw] max_results
169
- # This is the number of items clients can request per page.
170
- # @return [Integer]
171
- #
172
- # @!attribute [rw] access_token
173
- # The token issued by the `CreateToken` API call. For more
174
- # information, see [CreateToken][1] in the *AWS SSO OIDC API Reference
175
- # Guide*.
176
- #
177
- #
178
- #
179
- # [1]: https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html
180
- # @return [String]
181
- #
182
- # @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/ListAccountsRequest AWS API Documentation
183
- #
184
- class ListAccountsRequest < Struct.new(
185
- :next_token,
186
- :max_results,
187
- :access_token)
188
- include Aws::Structure
189
- end
190
-
191
- # @!attribute [rw] next_token
192
- # The page token client that is used to retrieve the list of accounts.
193
- # @return [String]
194
- #
195
- # @!attribute [rw] account_list
196
- # A paginated response with the list of account information and the
197
- # next token if more results are available.
198
- # @return [Array<Types::AccountInfo>]
199
- #
200
- # @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/ListAccountsResponse AWS API Documentation
201
- #
202
- class ListAccountsResponse < Struct.new(
203
- :next_token,
204
- :account_list)
205
- include Aws::Structure
206
- end
207
-
208
- # @note When making an API call, you may pass LogoutRequest
209
- # data as a hash:
210
- #
211
- # {
212
- # access_token: "AccessTokenType", # required
213
- # }
214
- #
215
- # @!attribute [rw] access_token
216
- # The token issued by the `CreateToken` API call. For more
217
- # information, see [CreateToken][1] in the *AWS SSO OIDC API Reference
218
- # Guide*.
219
- #
220
- #
221
- #
222
- # [1]: https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html
223
- # @return [String]
224
- #
225
- # @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/LogoutRequest AWS API Documentation
226
- #
227
- class LogoutRequest < Struct.new(
228
- :access_token)
229
- include Aws::Structure
230
- end
231
-
232
- # The specified resource doesn't exist.
233
- #
234
- # @!attribute [rw] message
235
- # @return [String]
236
- #
237
- # @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/ResourceNotFoundException AWS API Documentation
238
- #
239
- class ResourceNotFoundException < Struct.new(
240
- :message)
241
- include Aws::Structure
242
- end
243
-
244
- # Provides information about the role credentials that are assigned to
245
- # the user.
246
- #
247
- # @!attribute [rw] access_key_id
248
- # The identifier used for the temporary security credentials. For more
249
- # information, see [Using Temporary Security Credentials to Request
250
- # Access to AWS Resources][1] in the *AWS IAM User Guide*.
251
- #
252
- #
253
- #
254
- # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html
255
- # @return [String]
256
- #
257
- # @!attribute [rw] secret_access_key
258
- # The key that is used to sign the request. For more information, see
259
- # [Using Temporary Security Credentials to Request Access to AWS
260
- # Resources][1] in the *AWS IAM User Guide*.
261
- #
262
- #
263
- #
264
- # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html
265
- # @return [String]
266
- #
267
- # @!attribute [rw] session_token
268
- # The token used for temporary credentials. For more information, see
269
- # [Using Temporary Security Credentials to Request Access to AWS
270
- # Resources][1] in the *AWS IAM User Guide*.
271
- #
272
- #
273
- #
274
- # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html
275
- # @return [String]
276
- #
277
- # @!attribute [rw] expiration
278
- # The date on which temporary security credentials expire.
279
- # @return [Integer]
280
- #
281
- # @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/RoleCredentials AWS API Documentation
282
- #
283
- class RoleCredentials < Struct.new(
284
- :access_key_id,
285
- :secret_access_key,
286
- :session_token,
287
- :expiration)
288
- include Aws::Structure
289
- end
290
-
291
- # Provides information about the role that is assigned to the user.
292
- #
293
- # @!attribute [rw] role_name
294
- # The friendly name of the role that is assigned to the user.
295
- # @return [String]
296
- #
297
- # @!attribute [rw] account_id
298
- # The identifier of the AWS account assigned to the user.
299
- # @return [String]
300
- #
301
- # @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/RoleInfo AWS API Documentation
302
- #
303
- class RoleInfo < Struct.new(
304
- :role_name,
305
- :account_id)
306
- include Aws::Structure
307
- end
308
-
309
- # Indicates that the request is being made too frequently and is more
310
- # than what the server can handle.
311
- #
312
- # @!attribute [rw] message
313
- # @return [String]
314
- #
315
- # @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/TooManyRequestsException AWS API Documentation
316
- #
317
- class TooManyRequestsException < Struct.new(
318
- :message)
319
- include Aws::Structure
320
- end
321
-
322
- # Indicates that the request is not authorized. This can happen due to
323
- # an invalid access token in the request.
324
- #
325
- # @!attribute [rw] message
326
- # @return [String]
327
- #
328
- # @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/UnauthorizedException AWS API Documentation
329
- #
330
- class UnauthorizedException < Struct.new(
331
- :message)
332
- include Aws::Structure
333
- end
334
-
335
- end
336
- end