aws-sdk-sso 1.3.0 → 1.7.1

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