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