aws-sdk-sso 1.5.1 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +63 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-sso.rb +2 -47
- metadata +14 -19
- data/lib/aws-sdk-sso/client.rb +0 -531
- data/lib/aws-sdk-sso/client_api.rb +0 -188
- data/lib/aws-sdk-sso/customizations.rb +0 -0
- data/lib/aws-sdk-sso/errors.rb +0 -100
- data/lib/aws-sdk-sso/plugins/content_type.rb +0 -23
- data/lib/aws-sdk-sso/resource.rb +0 -24
- data/lib/aws-sdk-sso/types.rb +0 -336
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13086ca9ce4559f0f5652492cfc369df740dc27b6ed52c32906796080bc28104
|
4
|
+
data.tar.gz: 9dfa39c631d8881a64b1d3fda2e7fa309c0b62c47d228310979bdb242c032ae1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4727b6de275c6f0411ba91dea10dde1244a32fa0e008fa4d6c6cdd4985c38fbd6bccb4b5ac83f696f419d427ee34a3798c1bebbddd9468587aba63cb19ccfca6
|
7
|
+
data.tar.gz: 59063e64fefe67efcd61bd2901e0d65d344d89064da4bc323b3498fc497f5e214eda6d97c7baa22fcb7fcc96a702d7c2a4c2fcb21149f6d36428d97f01cb5d05
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
Unreleased Changes
|
2
|
+
------------------
|
3
|
+
|
4
|
+
1.8.0 (2021-09-01)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - AWS SDK for Ruby no longer supports Ruby runtime versions 1.9, 2.0, 2.1, and 2.2.
|
8
|
+
|
9
|
+
1.7.1 (2021-03-04)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Issue - Include LICENSE, CHANGELOG, and VERSION files with this gem.
|
13
|
+
|
14
|
+
1.7.0 (2020-09-01)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - SSO has been moved into `aws-sdk-core` version 3.105 to support usage of SSOCredentials.
|
18
|
+
|
19
|
+
1.6.0 (2020-06-23)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
23
|
+
|
24
|
+
1.5.1 (2020-06-11)
|
25
|
+
------------------
|
26
|
+
|
27
|
+
* Issue - Republish previous version with correct dependency on `aws-sdk-core`.
|
28
|
+
|
29
|
+
1.5.0 (2020-06-10)
|
30
|
+
------------------
|
31
|
+
|
32
|
+
* Issue - This version has been yanked. (#2327).
|
33
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
34
|
+
|
35
|
+
1.4.0 (2020-05-28)
|
36
|
+
------------------
|
37
|
+
|
38
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
39
|
+
|
40
|
+
1.3.0 (2020-05-07)
|
41
|
+
------------------
|
42
|
+
|
43
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
44
|
+
|
45
|
+
1.2.0 (2020-03-09)
|
46
|
+
------------------
|
47
|
+
|
48
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
49
|
+
|
50
|
+
1.1.1 (2020-01-14)
|
51
|
+
------------------
|
52
|
+
|
53
|
+
* Issue - Add non-empty `Content-Type` header to all SSO operations, not just `GetRoleCredentials`.
|
54
|
+
|
55
|
+
1.1.0 (2020-01-10)
|
56
|
+
------------------
|
57
|
+
|
58
|
+
* Feature - Fix `GetRoleCredentials` calls by providing a non-empty `Content-Type` header.
|
59
|
+
|
60
|
+
1.0.0 (2019-11-07)
|
61
|
+
------------------
|
62
|
+
|
63
|
+
* Feature - Initial release of `aws-sdk-sso`.
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,202 @@
|
|
1
|
+
|
2
|
+
Apache License
|
3
|
+
Version 2.0, January 2004
|
4
|
+
http://www.apache.org/licenses/
|
5
|
+
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
7
|
+
|
8
|
+
1. Definitions.
|
9
|
+
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
12
|
+
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
14
|
+
the copyright owner that is granting the License.
|
15
|
+
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
17
|
+
other entities that control, are controlled by, or are under common
|
18
|
+
control with that entity. For the purposes of this definition,
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
20
|
+
direction or management of such entity, whether by contract or
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
23
|
+
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
25
|
+
exercising permissions granted by this License.
|
26
|
+
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
28
|
+
including but not limited to software source code, documentation
|
29
|
+
source, and configuration files.
|
30
|
+
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
32
|
+
transformation or translation of a Source form, including but
|
33
|
+
not limited to compiled object code, generated documentation,
|
34
|
+
and conversions to other media types.
|
35
|
+
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
37
|
+
Object form, made available under the License, as indicated by a
|
38
|
+
copyright notice that is included in or attached to the work
|
39
|
+
(an example is provided in the Appendix below).
|
40
|
+
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
47
|
+
the Work and Derivative Works thereof.
|
48
|
+
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
50
|
+
the original version of the Work and any modifications or additions
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
62
|
+
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
65
|
+
subsequently incorporated within the Work.
|
66
|
+
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
73
|
+
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
79
|
+
where such license applies only to those patent claims licensable
|
80
|
+
by such Contributor that are necessarily infringed by their
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
83
|
+
institute patent litigation against any entity (including a
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
86
|
+
or contributory patent infringement, then any patent licenses
|
87
|
+
granted to You under this License for that Work shall terminate
|
88
|
+
as of the date such litigation is filed.
|
89
|
+
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
92
|
+
modifications, and in Source or Object form, provided that You
|
93
|
+
meet the following conditions:
|
94
|
+
|
95
|
+
(a) You must give any other recipients of the Work or
|
96
|
+
Derivative Works a copy of this License; and
|
97
|
+
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
99
|
+
stating that You changed the files; and
|
100
|
+
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
103
|
+
attribution notices from the Source form of the Work,
|
104
|
+
excluding those notices that do not pertain to any part of
|
105
|
+
the Derivative Works; and
|
106
|
+
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
109
|
+
include a readable copy of the attribution notices contained
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
112
|
+
of the following places: within a NOTICE text file distributed
|
113
|
+
as part of the Derivative Works; within the Source form or
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
115
|
+
within a display generated by the Derivative Works, if and
|
116
|
+
wherever such third-party notices normally appear. The contents
|
117
|
+
of the NOTICE file are for informational purposes only and
|
118
|
+
do not modify the License. You may add Your own attribution
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
121
|
+
that such additional attribution notices cannot be construed
|
122
|
+
as modifying the License.
|
123
|
+
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
125
|
+
may provide additional or different license terms and conditions
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
129
|
+
the conditions stated in this License.
|
130
|
+
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
134
|
+
this License, without any additional terms or conditions.
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
136
|
+
the terms of any separate license agreement you may have executed
|
137
|
+
with Licensor regarding such Contributions.
|
138
|
+
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
141
|
+
except as required for reasonable and customary use in describing the
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
143
|
+
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
153
|
+
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
159
|
+
incidental, or consequential damages of any character arising as a
|
160
|
+
result of this License or out of the use or inability to use the
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
163
|
+
other commercial damages or losses), even if such Contributor
|
164
|
+
has been advised of the possibility of such damages.
|
165
|
+
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
169
|
+
or other liability obligations and/or rights consistent with this
|
170
|
+
License. However, in accepting such obligations, You may act only
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
175
|
+
of your accepting any such warranty or additional liability.
|
176
|
+
|
177
|
+
END OF TERMS AND CONDITIONS
|
178
|
+
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
180
|
+
|
181
|
+
To apply the Apache License to your work, attach the following
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
183
|
+
replaced with your own identifying information. (Don't include
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
185
|
+
comment syntax for the file format. We also recommend that a
|
186
|
+
file or class name and description of purpose be included on the
|
187
|
+
same "printed page" as the copyright notice for easier
|
188
|
+
identification within third-party archives.
|
189
|
+
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
191
|
+
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
193
|
+
you may not use this file except in compliance with the License.
|
194
|
+
You may obtain a copy of the License at
|
195
|
+
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
197
|
+
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
201
|
+
See the License for the specific language governing permissions and
|
202
|
+
limitations under the License.
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.8.0
|
data/lib/aws-sdk-sso.rb
CHANGED
@@ -1,50 +1,5 @@
|
|
1
|
-
#
|
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.5.1'
|
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.
|
4
|
+
version: 1.8.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:
|
11
|
+
date: 2021-09-01 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
|
@@ -44,28 +44,24 @@ dependencies:
|
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '1.1'
|
47
|
-
description: Official AWS Ruby gem for AWS Single Sign-On (SSO).
|
48
|
-
of
|
47
|
+
description: Official AWS Ruby gem for AWS Single Sign-On (SSO). SSO is included as
|
48
|
+
part of aws-sdk-core - this gem is an alias for loading aws-sdk-core.
|
49
49
|
email:
|
50
|
-
-
|
50
|
+
- aws-dr-rubygems@amazon.com
|
51
51
|
executables: []
|
52
52
|
extensions: []
|
53
53
|
extra_rdoc_files: []
|
54
54
|
files:
|
55
|
+
- CHANGELOG.md
|
56
|
+
- LICENSE.txt
|
57
|
+
- VERSION
|
55
58
|
- 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
59
|
homepage: https://github.com/aws/aws-sdk-ruby
|
64
60
|
licenses:
|
65
61
|
- Apache-2.0
|
66
62
|
metadata:
|
67
|
-
source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/
|
68
|
-
changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/
|
63
|
+
source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-sso
|
64
|
+
changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-sso/CHANGELOG.md
|
69
65
|
post_install_message:
|
70
66
|
rdoc_options: []
|
71
67
|
require_paths:
|
@@ -74,15 +70,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
74
70
|
requirements:
|
75
71
|
- - ">="
|
76
72
|
- !ruby/object:Gem::Version
|
77
|
-
version: '
|
73
|
+
version: '2.3'
|
78
74
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
75
|
requirements:
|
80
76
|
- - ">="
|
81
77
|
- !ruby/object:Gem::Version
|
82
78
|
version: '0'
|
83
79
|
requirements: []
|
84
|
-
|
85
|
-
rubygems_version: 2.7.6.2
|
80
|
+
rubygems_version: 3.1.6
|
86
81
|
signing_key:
|
87
82
|
specification_version: 4
|
88
83
|
summary: AWS SDK for Ruby - SSO
|
data/lib/aws-sdk-sso/client.rb
DELETED
@@ -1,531 +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/http_checksum.rb'
|
28
|
-
require 'aws-sdk-core/plugins/signature_v4.rb'
|
29
|
-
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
30
|
-
require 'aws-sdk-sso/plugins/content_type.rb'
|
31
|
-
|
32
|
-
Aws::Plugins::GlobalConfiguration.add_identifier(:sso)
|
33
|
-
|
34
|
-
module Aws::SSO
|
35
|
-
# An API client for SSO. To construct a client, you need to configure a `:region` and `:credentials`.
|
36
|
-
#
|
37
|
-
# client = Aws::SSO::Client.new(
|
38
|
-
# region: region_name,
|
39
|
-
# credentials: credentials,
|
40
|
-
# # ...
|
41
|
-
# )
|
42
|
-
#
|
43
|
-
# For details on configuring region and credentials see
|
44
|
-
# the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
|
45
|
-
#
|
46
|
-
# See {#initialize} for a full list of supported configuration options.
|
47
|
-
class Client < Seahorse::Client::Base
|
48
|
-
|
49
|
-
include Aws::ClientStubs
|
50
|
-
|
51
|
-
@identifier = :sso
|
52
|
-
|
53
|
-
set_api(ClientApi::API)
|
54
|
-
|
55
|
-
add_plugin(Seahorse::Client::Plugins::ContentLength)
|
56
|
-
add_plugin(Aws::Plugins::CredentialsConfiguration)
|
57
|
-
add_plugin(Aws::Plugins::Logging)
|
58
|
-
add_plugin(Aws::Plugins::ParamConverter)
|
59
|
-
add_plugin(Aws::Plugins::ParamValidator)
|
60
|
-
add_plugin(Aws::Plugins::UserAgent)
|
61
|
-
add_plugin(Aws::Plugins::HelpfulSocketErrors)
|
62
|
-
add_plugin(Aws::Plugins::RetryErrors)
|
63
|
-
add_plugin(Aws::Plugins::GlobalConfiguration)
|
64
|
-
add_plugin(Aws::Plugins::RegionalEndpoint)
|
65
|
-
add_plugin(Aws::Plugins::EndpointDiscovery)
|
66
|
-
add_plugin(Aws::Plugins::EndpointPattern)
|
67
|
-
add_plugin(Aws::Plugins::ResponsePaging)
|
68
|
-
add_plugin(Aws::Plugins::StubResponses)
|
69
|
-
add_plugin(Aws::Plugins::IdempotencyToken)
|
70
|
-
add_plugin(Aws::Plugins::JsonvalueConverter)
|
71
|
-
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
72
|
-
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
73
|
-
add_plugin(Aws::Plugins::TransferEncoding)
|
74
|
-
add_plugin(Aws::Plugins::HttpChecksum)
|
75
|
-
add_plugin(Aws::Plugins::SignatureV4)
|
76
|
-
add_plugin(Aws::Plugins::Protocols::RestJson)
|
77
|
-
add_plugin(Aws::SSO::Plugins::ContentType)
|
78
|
-
|
79
|
-
# @overload initialize(options)
|
80
|
-
# @param [Hash] options
|
81
|
-
# @option options [required, Aws::CredentialProvider] :credentials
|
82
|
-
# Your AWS credentials. This can be an instance of any one of the
|
83
|
-
# following classes:
|
84
|
-
#
|
85
|
-
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
86
|
-
# credentials.
|
87
|
-
#
|
88
|
-
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
89
|
-
# from an EC2 IMDS on an EC2 instance.
|
90
|
-
#
|
91
|
-
# * `Aws::SharedCredentials` - Used for loading credentials from a
|
92
|
-
# shared file, such as `~/.aws/config`.
|
93
|
-
#
|
94
|
-
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
95
|
-
#
|
96
|
-
# When `:credentials` are not configured directly, the following
|
97
|
-
# locations will be searched for credentials:
|
98
|
-
#
|
99
|
-
# * `Aws.config[:credentials]`
|
100
|
-
# * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
|
101
|
-
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
102
|
-
# * `~/.aws/credentials`
|
103
|
-
# * `~/.aws/config`
|
104
|
-
# * EC2 IMDS instance profile - When used by default, the timeouts are
|
105
|
-
# very aggressive. Construct and pass an instance of
|
106
|
-
# `Aws::InstanceProfileCredentails` to enable retries and extended
|
107
|
-
# timeouts.
|
108
|
-
#
|
109
|
-
# @option options [required, String] :region
|
110
|
-
# The AWS region to connect to. The configured `:region` is
|
111
|
-
# used to determine the service `:endpoint`. When not passed,
|
112
|
-
# a default `:region` is searched for in the following locations:
|
113
|
-
#
|
114
|
-
# * `Aws.config[:region]`
|
115
|
-
# * `ENV['AWS_REGION']`
|
116
|
-
# * `ENV['AMAZON_REGION']`
|
117
|
-
# * `ENV['AWS_DEFAULT_REGION']`
|
118
|
-
# * `~/.aws/credentials`
|
119
|
-
# * `~/.aws/config`
|
120
|
-
#
|
121
|
-
# @option options [String] :access_key_id
|
122
|
-
#
|
123
|
-
# @option options [Boolean] :active_endpoint_cache (false)
|
124
|
-
# When set to `true`, a thread polling for endpoints will be running in
|
125
|
-
# the background every 60 secs (default). Defaults to `false`.
|
126
|
-
#
|
127
|
-
# @option options [Boolean] :adaptive_retry_wait_to_fill (true)
|
128
|
-
# Used only in `adaptive` retry mode. When true, the request will sleep
|
129
|
-
# until there is sufficent client side capacity to retry the request.
|
130
|
-
# When false, the request will raise a `RetryCapacityNotAvailableError` and will
|
131
|
-
# not retry instead of sleeping.
|
132
|
-
#
|
133
|
-
# @option options [Boolean] :client_side_monitoring (false)
|
134
|
-
# When `true`, client-side metrics will be collected for all API requests from
|
135
|
-
# this client.
|
136
|
-
#
|
137
|
-
# @option options [String] :client_side_monitoring_client_id ("")
|
138
|
-
# Allows you to provide an identifier for this client which will be attached to
|
139
|
-
# all generated client side metrics. Defaults to an empty string.
|
140
|
-
#
|
141
|
-
# @option options [String] :client_side_monitoring_host ("127.0.0.1")
|
142
|
-
# Allows you to specify the DNS hostname or IPv4 or IPv6 address that the client
|
143
|
-
# side monitoring agent is running on, where client metrics will be published via UDP.
|
144
|
-
#
|
145
|
-
# @option options [Integer] :client_side_monitoring_port (31000)
|
146
|
-
# Required for publishing client metrics. The port that the client side monitoring
|
147
|
-
# agent is running on, where client metrics will be published via UDP.
|
148
|
-
#
|
149
|
-
# @option options [Aws::ClientSideMonitoring::Publisher] :client_side_monitoring_publisher (Aws::ClientSideMonitoring::Publisher)
|
150
|
-
# Allows you to provide a custom client-side monitoring publisher class. By default,
|
151
|
-
# will use the Client Side Monitoring Agent Publisher.
|
152
|
-
#
|
153
|
-
# @option options [Boolean] :convert_params (true)
|
154
|
-
# When `true`, an attempt is made to coerce request parameters into
|
155
|
-
# the required types.
|
156
|
-
#
|
157
|
-
# @option options [Boolean] :correct_clock_skew (true)
|
158
|
-
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
159
|
-
# a clock skew correction and retry requests with skewed client clocks.
|
160
|
-
#
|
161
|
-
# @option options [Boolean] :disable_host_prefix_injection (false)
|
162
|
-
# Set to true to disable SDK automatically adding host prefix
|
163
|
-
# to default service endpoint when available.
|
164
|
-
#
|
165
|
-
# @option options [String] :endpoint
|
166
|
-
# The client endpoint is normally constructed from the `:region`
|
167
|
-
# option. You should only configure an `:endpoint` when connecting
|
168
|
-
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
169
|
-
#
|
170
|
-
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
171
|
-
# Used for the maximum size limit of the LRU cache storing endpoints data
|
172
|
-
# for endpoint discovery enabled operations. Defaults to 1000.
|
173
|
-
#
|
174
|
-
# @option options [Integer] :endpoint_cache_max_threads (10)
|
175
|
-
# Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.
|
176
|
-
#
|
177
|
-
# @option options [Integer] :endpoint_cache_poll_interval (60)
|
178
|
-
# When :endpoint_discovery and :active_endpoint_cache is enabled,
|
179
|
-
# Use this option to config the time interval in seconds for making
|
180
|
-
# requests fetching endpoints information. Defaults to 60 sec.
|
181
|
-
#
|
182
|
-
# @option options [Boolean] :endpoint_discovery (false)
|
183
|
-
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
184
|
-
#
|
185
|
-
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
186
|
-
# The log formatter.
|
187
|
-
#
|
188
|
-
# @option options [Symbol] :log_level (:info)
|
189
|
-
# The log level to send messages to the `:logger` at.
|
190
|
-
#
|
191
|
-
# @option options [Logger] :logger
|
192
|
-
# The Logger instance to send log messages to. If this option
|
193
|
-
# is not set, logging will be disabled.
|
194
|
-
#
|
195
|
-
# @option options [Integer] :max_attempts (3)
|
196
|
-
# An integer representing the maximum number attempts that will be made for
|
197
|
-
# a single request, including the initial attempt. For example,
|
198
|
-
# setting this value to 5 will result in a request being retried up to
|
199
|
-
# 4 times. Used in `standard` and `adaptive` retry modes.
|
200
|
-
#
|
201
|
-
# @option options [String] :profile ("default")
|
202
|
-
# Used when loading credentials from the shared credentials file
|
203
|
-
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
204
|
-
#
|
205
|
-
# @option options [Proc] :retry_backoff
|
206
|
-
# A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
|
207
|
-
# This option is only used in the `legacy` retry mode.
|
208
|
-
#
|
209
|
-
# @option options [Float] :retry_base_delay (0.3)
|
210
|
-
# The base delay in seconds used by the default backoff function. This option
|
211
|
-
# is only used in the `legacy` retry mode.
|
212
|
-
#
|
213
|
-
# @option options [Symbol] :retry_jitter (:none)
|
214
|
-
# A delay randomiser function used by the default backoff function.
|
215
|
-
# Some predefined functions can be referenced by name - :none, :equal, :full,
|
216
|
-
# otherwise a Proc that takes and returns a number. This option is only used
|
217
|
-
# in the `legacy` retry mode.
|
218
|
-
#
|
219
|
-
# @see https://www.awsarchitectureblog.com/2015/03/backoff.html
|
220
|
-
#
|
221
|
-
# @option options [Integer] :retry_limit (3)
|
222
|
-
# The maximum number of times to retry failed requests. Only
|
223
|
-
# ~ 500 level server errors and certain ~ 400 level client errors
|
224
|
-
# are retried. Generally, these are throttling errors, data
|
225
|
-
# checksum errors, networking errors, timeout errors, auth errors,
|
226
|
-
# endpoint discovery, and errors from expired credentials.
|
227
|
-
# This option is only used in the `legacy` retry mode.
|
228
|
-
#
|
229
|
-
# @option options [Integer] :retry_max_delay (0)
|
230
|
-
# The maximum number of seconds to delay between retries (0 for no limit)
|
231
|
-
# used by the default backoff function. This option is only used in the
|
232
|
-
# `legacy` retry mode.
|
233
|
-
#
|
234
|
-
# @option options [String] :retry_mode ("legacy")
|
235
|
-
# Specifies which retry algorithm to use. Values are:
|
236
|
-
#
|
237
|
-
# * `legacy` - The pre-existing retry behavior. This is default value if
|
238
|
-
# no retry mode is provided.
|
239
|
-
#
|
240
|
-
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
241
|
-
# This includes support for retry quotas, which limit the number of
|
242
|
-
# unsuccessful retries a client can make.
|
243
|
-
#
|
244
|
-
# * `adaptive` - An experimental retry mode that includes all the
|
245
|
-
# functionality of `standard` mode along with automatic client side
|
246
|
-
# throttling. This is a provisional mode that may change behavior
|
247
|
-
# in the future.
|
248
|
-
#
|
249
|
-
#
|
250
|
-
# @option options [String] :secret_access_key
|
251
|
-
#
|
252
|
-
# @option options [String] :session_token
|
253
|
-
#
|
254
|
-
# @option options [Boolean] :stub_responses (false)
|
255
|
-
# Causes the client to return stubbed responses. By default
|
256
|
-
# fake responses are generated and returned. You can specify
|
257
|
-
# the response data to return or errors to raise by calling
|
258
|
-
# {ClientStubs#stub_responses}. See {ClientStubs} for more information.
|
259
|
-
#
|
260
|
-
# ** Please note ** When response stubbing is enabled, no HTTP
|
261
|
-
# requests are made, and retries are disabled.
|
262
|
-
#
|
263
|
-
# @option options [Boolean] :validate_params (true)
|
264
|
-
# When `true`, request parameters are validated before
|
265
|
-
# sending the request.
|
266
|
-
#
|
267
|
-
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
268
|
-
# requests through. Formatted like 'http://proxy.com:123'.
|
269
|
-
#
|
270
|
-
# @option options [Float] :http_open_timeout (15) The number of
|
271
|
-
# seconds to wait when opening a HTTP session before raising a
|
272
|
-
# `Timeout::Error`.
|
273
|
-
#
|
274
|
-
# @option options [Integer] :http_read_timeout (60) The default
|
275
|
-
# number of seconds to wait for response data. This value can
|
276
|
-
# safely be set per-request on the session.
|
277
|
-
#
|
278
|
-
# @option options [Float] :http_idle_timeout (5) The number of
|
279
|
-
# seconds a connection is allowed to sit idle before it is
|
280
|
-
# considered stale. Stale connections are closed and removed
|
281
|
-
# from the pool before making a request.
|
282
|
-
#
|
283
|
-
# @option options [Float] :http_continue_timeout (1) The number of
|
284
|
-
# seconds to wait for a 100-continue response before sending the
|
285
|
-
# request body. This option has no effect unless the request has
|
286
|
-
# "Expect" header set to "100-continue". Defaults to `nil` which
|
287
|
-
# disables this behaviour. This value can safely be set per
|
288
|
-
# request on the session.
|
289
|
-
#
|
290
|
-
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
291
|
-
# HTTP debug output will be sent to the `:logger`.
|
292
|
-
#
|
293
|
-
# @option options [Boolean] :ssl_verify_peer (true) When `true`,
|
294
|
-
# SSL peer certificates are verified when establishing a
|
295
|
-
# connection.
|
296
|
-
#
|
297
|
-
# @option options [String] :ssl_ca_bundle Full path to the SSL
|
298
|
-
# certificate authority bundle file that should be used when
|
299
|
-
# verifying peer certificates. If you do not pass
|
300
|
-
# `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
|
301
|
-
# will be used if available.
|
302
|
-
#
|
303
|
-
# @option options [String] :ssl_ca_directory Full path of the
|
304
|
-
# directory that contains the unbundled SSL certificate
|
305
|
-
# authority files for verifying peer certificates. If you do
|
306
|
-
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
|
307
|
-
# system default will be used if available.
|
308
|
-
#
|
309
|
-
def initialize(*args)
|
310
|
-
super
|
311
|
-
end
|
312
|
-
|
313
|
-
# @!group API Operations
|
314
|
-
|
315
|
-
# Returns the STS short-term credentials for a given role name that is
|
316
|
-
# assigned to the user.
|
317
|
-
#
|
318
|
-
# @option params [required, String] :role_name
|
319
|
-
# The friendly name of the role that is assigned to the user.
|
320
|
-
#
|
321
|
-
# @option params [required, String] :account_id
|
322
|
-
# The identifier for the AWS account that is assigned to the user.
|
323
|
-
#
|
324
|
-
# @option params [required, String] :access_token
|
325
|
-
# The token issued by the `CreateToken` API call. For more information,
|
326
|
-
# see [CreateToken][1] in the *AWS SSO OIDC API Reference Guide*.
|
327
|
-
#
|
328
|
-
#
|
329
|
-
#
|
330
|
-
# [1]: https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html
|
331
|
-
#
|
332
|
-
# @return [Types::GetRoleCredentialsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
333
|
-
#
|
334
|
-
# * {Types::GetRoleCredentialsResponse#role_credentials #role_credentials} => Types::RoleCredentials
|
335
|
-
#
|
336
|
-
# @example Request syntax with placeholder values
|
337
|
-
#
|
338
|
-
# resp = client.get_role_credentials({
|
339
|
-
# role_name: "RoleNameType", # required
|
340
|
-
# account_id: "AccountIdType", # required
|
341
|
-
# access_token: "AccessTokenType", # required
|
342
|
-
# })
|
343
|
-
#
|
344
|
-
# @example Response structure
|
345
|
-
#
|
346
|
-
# resp.role_credentials.access_key_id #=> String
|
347
|
-
# resp.role_credentials.secret_access_key #=> String
|
348
|
-
# resp.role_credentials.session_token #=> String
|
349
|
-
# resp.role_credentials.expiration #=> Integer
|
350
|
-
#
|
351
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/GetRoleCredentials AWS API Documentation
|
352
|
-
#
|
353
|
-
# @overload get_role_credentials(params = {})
|
354
|
-
# @param [Hash] params ({})
|
355
|
-
def get_role_credentials(params = {}, options = {})
|
356
|
-
req = build_request(:get_role_credentials, params)
|
357
|
-
req.send_request(options)
|
358
|
-
end
|
359
|
-
|
360
|
-
# Lists all roles that are assigned to the user for a given AWS account.
|
361
|
-
#
|
362
|
-
# @option params [String] :next_token
|
363
|
-
# The page token from the previous response output when you request
|
364
|
-
# subsequent pages.
|
365
|
-
#
|
366
|
-
# @option params [Integer] :max_results
|
367
|
-
# The number of items that clients can request per page.
|
368
|
-
#
|
369
|
-
# @option params [required, String] :access_token
|
370
|
-
# The token issued by the `CreateToken` API call. For more information,
|
371
|
-
# see [CreateToken][1] in the *AWS SSO OIDC API Reference Guide*.
|
372
|
-
#
|
373
|
-
#
|
374
|
-
#
|
375
|
-
# [1]: https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html
|
376
|
-
#
|
377
|
-
# @option params [required, String] :account_id
|
378
|
-
# The identifier for the AWS account that is assigned to the user.
|
379
|
-
#
|
380
|
-
# @return [Types::ListAccountRolesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
381
|
-
#
|
382
|
-
# * {Types::ListAccountRolesResponse#next_token #next_token} => String
|
383
|
-
# * {Types::ListAccountRolesResponse#role_list #role_list} => Array<Types::RoleInfo>
|
384
|
-
#
|
385
|
-
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
386
|
-
#
|
387
|
-
# @example Request syntax with placeholder values
|
388
|
-
#
|
389
|
-
# resp = client.list_account_roles({
|
390
|
-
# next_token: "NextTokenType",
|
391
|
-
# max_results: 1,
|
392
|
-
# access_token: "AccessTokenType", # required
|
393
|
-
# account_id: "AccountIdType", # required
|
394
|
-
# })
|
395
|
-
#
|
396
|
-
# @example Response structure
|
397
|
-
#
|
398
|
-
# resp.next_token #=> String
|
399
|
-
# resp.role_list #=> Array
|
400
|
-
# resp.role_list[0].role_name #=> String
|
401
|
-
# resp.role_list[0].account_id #=> String
|
402
|
-
#
|
403
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/ListAccountRoles AWS API Documentation
|
404
|
-
#
|
405
|
-
# @overload list_account_roles(params = {})
|
406
|
-
# @param [Hash] params ({})
|
407
|
-
def list_account_roles(params = {}, options = {})
|
408
|
-
req = build_request(:list_account_roles, params)
|
409
|
-
req.send_request(options)
|
410
|
-
end
|
411
|
-
|
412
|
-
# Lists all AWS accounts assigned to the user. These AWS accounts are
|
413
|
-
# assigned by the administrator of the account. For more information,
|
414
|
-
# see [Assign User Access][1] in the *AWS SSO User Guide*. This
|
415
|
-
# operation returns a paginated response.
|
416
|
-
#
|
417
|
-
#
|
418
|
-
#
|
419
|
-
# [1]: https://docs.aws.amazon.com/singlesignon/latest/userguide/useraccess.html#assignusers
|
420
|
-
#
|
421
|
-
# @option params [String] :next_token
|
422
|
-
# (Optional) When requesting subsequent pages, this is the page token
|
423
|
-
# from the previous response output.
|
424
|
-
#
|
425
|
-
# @option params [Integer] :max_results
|
426
|
-
# This is the number of items clients can request per page.
|
427
|
-
#
|
428
|
-
# @option params [required, String] :access_token
|
429
|
-
# The token issued by the `CreateToken` API call. For more information,
|
430
|
-
# see [CreateToken][1] in the *AWS SSO OIDC API Reference Guide*.
|
431
|
-
#
|
432
|
-
#
|
433
|
-
#
|
434
|
-
# [1]: https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html
|
435
|
-
#
|
436
|
-
# @return [Types::ListAccountsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
437
|
-
#
|
438
|
-
# * {Types::ListAccountsResponse#next_token #next_token} => String
|
439
|
-
# * {Types::ListAccountsResponse#account_list #account_list} => Array<Types::AccountInfo>
|
440
|
-
#
|
441
|
-
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
442
|
-
#
|
443
|
-
# @example Request syntax with placeholder values
|
444
|
-
#
|
445
|
-
# resp = client.list_accounts({
|
446
|
-
# next_token: "NextTokenType",
|
447
|
-
# max_results: 1,
|
448
|
-
# access_token: "AccessTokenType", # required
|
449
|
-
# })
|
450
|
-
#
|
451
|
-
# @example Response structure
|
452
|
-
#
|
453
|
-
# resp.next_token #=> String
|
454
|
-
# resp.account_list #=> Array
|
455
|
-
# resp.account_list[0].account_id #=> String
|
456
|
-
# resp.account_list[0].account_name #=> String
|
457
|
-
# resp.account_list[0].email_address #=> String
|
458
|
-
#
|
459
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/ListAccounts AWS API Documentation
|
460
|
-
#
|
461
|
-
# @overload list_accounts(params = {})
|
462
|
-
# @param [Hash] params ({})
|
463
|
-
def list_accounts(params = {}, options = {})
|
464
|
-
req = build_request(:list_accounts, params)
|
465
|
-
req.send_request(options)
|
466
|
-
end
|
467
|
-
|
468
|
-
# Removes the client- and server-side session that is associated with
|
469
|
-
# the user.
|
470
|
-
#
|
471
|
-
# @option params [required, String] :access_token
|
472
|
-
# The token issued by the `CreateToken` API call. For more information,
|
473
|
-
# see [CreateToken][1] in the *AWS SSO OIDC API Reference Guide*.
|
474
|
-
#
|
475
|
-
#
|
476
|
-
#
|
477
|
-
# [1]: https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html
|
478
|
-
#
|
479
|
-
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
480
|
-
#
|
481
|
-
# @example Request syntax with placeholder values
|
482
|
-
#
|
483
|
-
# resp = client.logout({
|
484
|
-
# access_token: "AccessTokenType", # required
|
485
|
-
# })
|
486
|
-
#
|
487
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/Logout AWS API Documentation
|
488
|
-
#
|
489
|
-
# @overload logout(params = {})
|
490
|
-
# @param [Hash] params ({})
|
491
|
-
def logout(params = {}, options = {})
|
492
|
-
req = build_request(:logout, params)
|
493
|
-
req.send_request(options)
|
494
|
-
end
|
495
|
-
|
496
|
-
# @!endgroup
|
497
|
-
|
498
|
-
# @param params ({})
|
499
|
-
# @api private
|
500
|
-
def build_request(operation_name, params = {})
|
501
|
-
handlers = @handlers.for(operation_name)
|
502
|
-
context = Seahorse::Client::RequestContext.new(
|
503
|
-
operation_name: operation_name,
|
504
|
-
operation: config.api.operation(operation_name),
|
505
|
-
client: self,
|
506
|
-
params: params,
|
507
|
-
config: config)
|
508
|
-
context[:gem_name] = 'aws-sdk-sso'
|
509
|
-
context[:gem_version] = '1.5.1'
|
510
|
-
Seahorse::Client::Request.new(handlers, context)
|
511
|
-
end
|
512
|
-
|
513
|
-
# @api private
|
514
|
-
# @deprecated
|
515
|
-
def waiter_names
|
516
|
-
[]
|
517
|
-
end
|
518
|
-
|
519
|
-
class << self
|
520
|
-
|
521
|
-
# @api private
|
522
|
-
attr_reader :identifier
|
523
|
-
|
524
|
-
# @api private
|
525
|
-
def errors_module
|
526
|
-
Errors
|
527
|
-
end
|
528
|
-
|
529
|
-
end
|
530
|
-
end
|
531
|
-
end
|