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
@@ -1,188 +0,0 @@
|
|
1
|
-
# WARNING ABOUT GENERATED CODE
|
2
|
-
#
|
3
|
-
# This file is generated. See the contributing guide for more information:
|
4
|
-
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
-
#
|
6
|
-
# WARNING ABOUT GENERATED CODE
|
7
|
-
|
8
|
-
module Aws::SSO
|
9
|
-
# @api private
|
10
|
-
module ClientApi
|
11
|
-
|
12
|
-
include Seahorse::Model
|
13
|
-
|
14
|
-
AccessKeyType = Shapes::StringShape.new(name: 'AccessKeyType')
|
15
|
-
AccessTokenType = Shapes::StringShape.new(name: 'AccessTokenType')
|
16
|
-
AccountIdType = Shapes::StringShape.new(name: 'AccountIdType')
|
17
|
-
AccountInfo = Shapes::StructureShape.new(name: 'AccountInfo')
|
18
|
-
AccountListType = Shapes::ListShape.new(name: 'AccountListType')
|
19
|
-
AccountNameType = Shapes::StringShape.new(name: 'AccountNameType')
|
20
|
-
EmailAddressType = Shapes::StringShape.new(name: 'EmailAddressType')
|
21
|
-
ErrorDescription = Shapes::StringShape.new(name: 'ErrorDescription')
|
22
|
-
ExpirationTimestampType = Shapes::IntegerShape.new(name: 'ExpirationTimestampType')
|
23
|
-
GetRoleCredentialsRequest = Shapes::StructureShape.new(name: 'GetRoleCredentialsRequest')
|
24
|
-
GetRoleCredentialsResponse = Shapes::StructureShape.new(name: 'GetRoleCredentialsResponse')
|
25
|
-
InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
|
26
|
-
ListAccountRolesRequest = Shapes::StructureShape.new(name: 'ListAccountRolesRequest')
|
27
|
-
ListAccountRolesResponse = Shapes::StructureShape.new(name: 'ListAccountRolesResponse')
|
28
|
-
ListAccountsRequest = Shapes::StructureShape.new(name: 'ListAccountsRequest')
|
29
|
-
ListAccountsResponse = Shapes::StructureShape.new(name: 'ListAccountsResponse')
|
30
|
-
LogoutRequest = Shapes::StructureShape.new(name: 'LogoutRequest')
|
31
|
-
MaxResultType = Shapes::IntegerShape.new(name: 'MaxResultType')
|
32
|
-
NextTokenType = Shapes::StringShape.new(name: 'NextTokenType')
|
33
|
-
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
34
|
-
RoleCredentials = Shapes::StructureShape.new(name: 'RoleCredentials')
|
35
|
-
RoleInfo = Shapes::StructureShape.new(name: 'RoleInfo')
|
36
|
-
RoleListType = Shapes::ListShape.new(name: 'RoleListType')
|
37
|
-
RoleNameType = Shapes::StringShape.new(name: 'RoleNameType')
|
38
|
-
SecretAccessKeyType = Shapes::StringShape.new(name: 'SecretAccessKeyType')
|
39
|
-
SessionTokenType = Shapes::StringShape.new(name: 'SessionTokenType')
|
40
|
-
TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
|
41
|
-
UnauthorizedException = Shapes::StructureShape.new(name: 'UnauthorizedException')
|
42
|
-
|
43
|
-
AccountInfo.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountIdType, location_name: "accountId"))
|
44
|
-
AccountInfo.add_member(:account_name, Shapes::ShapeRef.new(shape: AccountNameType, location_name: "accountName"))
|
45
|
-
AccountInfo.add_member(:email_address, Shapes::ShapeRef.new(shape: EmailAddressType, location_name: "emailAddress"))
|
46
|
-
AccountInfo.struct_class = Types::AccountInfo
|
47
|
-
|
48
|
-
AccountListType.member = Shapes::ShapeRef.new(shape: AccountInfo)
|
49
|
-
|
50
|
-
GetRoleCredentialsRequest.add_member(:role_name, Shapes::ShapeRef.new(shape: RoleNameType, required: true, location: "querystring", location_name: "role_name"))
|
51
|
-
GetRoleCredentialsRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountIdType, required: true, location: "querystring", location_name: "account_id"))
|
52
|
-
GetRoleCredentialsRequest.add_member(:access_token, Shapes::ShapeRef.new(shape: AccessTokenType, required: true, location: "header", location_name: "x-amz-sso_bearer_token"))
|
53
|
-
GetRoleCredentialsRequest.struct_class = Types::GetRoleCredentialsRequest
|
54
|
-
|
55
|
-
GetRoleCredentialsResponse.add_member(:role_credentials, Shapes::ShapeRef.new(shape: RoleCredentials, location_name: "roleCredentials"))
|
56
|
-
GetRoleCredentialsResponse.struct_class = Types::GetRoleCredentialsResponse
|
57
|
-
|
58
|
-
InvalidRequestException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorDescription, location_name: "message"))
|
59
|
-
InvalidRequestException.struct_class = Types::InvalidRequestException
|
60
|
-
|
61
|
-
ListAccountRolesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenType, location: "querystring", location_name: "next_token"))
|
62
|
-
ListAccountRolesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultType, location: "querystring", location_name: "max_result"))
|
63
|
-
ListAccountRolesRequest.add_member(:access_token, Shapes::ShapeRef.new(shape: AccessTokenType, required: true, location: "header", location_name: "x-amz-sso_bearer_token"))
|
64
|
-
ListAccountRolesRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountIdType, required: true, location: "querystring", location_name: "account_id"))
|
65
|
-
ListAccountRolesRequest.struct_class = Types::ListAccountRolesRequest
|
66
|
-
|
67
|
-
ListAccountRolesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenType, location_name: "nextToken"))
|
68
|
-
ListAccountRolesResponse.add_member(:role_list, Shapes::ShapeRef.new(shape: RoleListType, location_name: "roleList"))
|
69
|
-
ListAccountRolesResponse.struct_class = Types::ListAccountRolesResponse
|
70
|
-
|
71
|
-
ListAccountsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenType, location: "querystring", location_name: "next_token"))
|
72
|
-
ListAccountsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultType, location: "querystring", location_name: "max_result"))
|
73
|
-
ListAccountsRequest.add_member(:access_token, Shapes::ShapeRef.new(shape: AccessTokenType, required: true, location: "header", location_name: "x-amz-sso_bearer_token"))
|
74
|
-
ListAccountsRequest.struct_class = Types::ListAccountsRequest
|
75
|
-
|
76
|
-
ListAccountsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenType, location_name: "nextToken"))
|
77
|
-
ListAccountsResponse.add_member(:account_list, Shapes::ShapeRef.new(shape: AccountListType, location_name: "accountList"))
|
78
|
-
ListAccountsResponse.struct_class = Types::ListAccountsResponse
|
79
|
-
|
80
|
-
LogoutRequest.add_member(:access_token, Shapes::ShapeRef.new(shape: AccessTokenType, required: true, location: "header", location_name: "x-amz-sso_bearer_token"))
|
81
|
-
LogoutRequest.struct_class = Types::LogoutRequest
|
82
|
-
|
83
|
-
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorDescription, location_name: "message"))
|
84
|
-
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
85
|
-
|
86
|
-
RoleCredentials.add_member(:access_key_id, Shapes::ShapeRef.new(shape: AccessKeyType, location_name: "accessKeyId"))
|
87
|
-
RoleCredentials.add_member(:secret_access_key, Shapes::ShapeRef.new(shape: SecretAccessKeyType, location_name: "secretAccessKey"))
|
88
|
-
RoleCredentials.add_member(:session_token, Shapes::ShapeRef.new(shape: SessionTokenType, location_name: "sessionToken"))
|
89
|
-
RoleCredentials.add_member(:expiration, Shapes::ShapeRef.new(shape: ExpirationTimestampType, location_name: "expiration"))
|
90
|
-
RoleCredentials.struct_class = Types::RoleCredentials
|
91
|
-
|
92
|
-
RoleInfo.add_member(:role_name, Shapes::ShapeRef.new(shape: RoleNameType, location_name: "roleName"))
|
93
|
-
RoleInfo.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountIdType, location_name: "accountId"))
|
94
|
-
RoleInfo.struct_class = Types::RoleInfo
|
95
|
-
|
96
|
-
RoleListType.member = Shapes::ShapeRef.new(shape: RoleInfo)
|
97
|
-
|
98
|
-
TooManyRequestsException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorDescription, location_name: "message"))
|
99
|
-
TooManyRequestsException.struct_class = Types::TooManyRequestsException
|
100
|
-
|
101
|
-
UnauthorizedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorDescription, location_name: "message"))
|
102
|
-
UnauthorizedException.struct_class = Types::UnauthorizedException
|
103
|
-
|
104
|
-
|
105
|
-
# @api private
|
106
|
-
API = Seahorse::Model::Api.new.tap do |api|
|
107
|
-
|
108
|
-
api.version = "2019-06-10"
|
109
|
-
|
110
|
-
api.metadata = {
|
111
|
-
"apiVersion" => "2019-06-10",
|
112
|
-
"endpointPrefix" => "portal.sso",
|
113
|
-
"jsonVersion" => "1.1",
|
114
|
-
"protocol" => "rest-json",
|
115
|
-
"serviceAbbreviation" => "SSO",
|
116
|
-
"serviceFullName" => "AWS Single Sign-On",
|
117
|
-
"serviceId" => "SSO",
|
118
|
-
"signatureVersion" => "v4",
|
119
|
-
"signingName" => "awsssoportal",
|
120
|
-
"uid" => "sso-2019-06-10",
|
121
|
-
}
|
122
|
-
|
123
|
-
api.add_operation(:get_role_credentials, Seahorse::Model::Operation.new.tap do |o|
|
124
|
-
o.name = "GetRoleCredentials"
|
125
|
-
o.http_method = "GET"
|
126
|
-
o.http_request_uri = "/federation/credentials"
|
127
|
-
o['authtype'] = "none"
|
128
|
-
o.input = Shapes::ShapeRef.new(shape: GetRoleCredentialsRequest)
|
129
|
-
o.output = Shapes::ShapeRef.new(shape: GetRoleCredentialsResponse)
|
130
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
131
|
-
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
132
|
-
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
133
|
-
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
134
|
-
end)
|
135
|
-
|
136
|
-
api.add_operation(:list_account_roles, Seahorse::Model::Operation.new.tap do |o|
|
137
|
-
o.name = "ListAccountRoles"
|
138
|
-
o.http_method = "GET"
|
139
|
-
o.http_request_uri = "/assignment/roles"
|
140
|
-
o['authtype'] = "none"
|
141
|
-
o.input = Shapes::ShapeRef.new(shape: ListAccountRolesRequest)
|
142
|
-
o.output = Shapes::ShapeRef.new(shape: ListAccountRolesResponse)
|
143
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
144
|
-
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
145
|
-
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
146
|
-
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
147
|
-
o[:pager] = Aws::Pager.new(
|
148
|
-
limit_key: "max_results",
|
149
|
-
tokens: {
|
150
|
-
"next_token" => "next_token"
|
151
|
-
}
|
152
|
-
)
|
153
|
-
end)
|
154
|
-
|
155
|
-
api.add_operation(:list_accounts, Seahorse::Model::Operation.new.tap do |o|
|
156
|
-
o.name = "ListAccounts"
|
157
|
-
o.http_method = "GET"
|
158
|
-
o.http_request_uri = "/assignment/accounts"
|
159
|
-
o['authtype'] = "none"
|
160
|
-
o.input = Shapes::ShapeRef.new(shape: ListAccountsRequest)
|
161
|
-
o.output = Shapes::ShapeRef.new(shape: ListAccountsResponse)
|
162
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
163
|
-
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
164
|
-
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
165
|
-
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
166
|
-
o[:pager] = Aws::Pager.new(
|
167
|
-
limit_key: "max_results",
|
168
|
-
tokens: {
|
169
|
-
"next_token" => "next_token"
|
170
|
-
}
|
171
|
-
)
|
172
|
-
end)
|
173
|
-
|
174
|
-
api.add_operation(:logout, Seahorse::Model::Operation.new.tap do |o|
|
175
|
-
o.name = "Logout"
|
176
|
-
o.http_method = "POST"
|
177
|
-
o.http_request_uri = "/logout"
|
178
|
-
o['authtype'] = "none"
|
179
|
-
o.input = Shapes::ShapeRef.new(shape: LogoutRequest)
|
180
|
-
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
181
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
182
|
-
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
183
|
-
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
184
|
-
end)
|
185
|
-
end
|
186
|
-
|
187
|
-
end
|
188
|
-
end
|
File without changes
|
data/lib/aws-sdk-sso/errors.rb
DELETED
@@ -1,100 +0,0 @@
|
|
1
|
-
# WARNING ABOUT GENERATED CODE
|
2
|
-
#
|
3
|
-
# This file is generated. See the contributing guide for more information:
|
4
|
-
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
-
#
|
6
|
-
# WARNING ABOUT GENERATED CODE
|
7
|
-
|
8
|
-
module Aws::SSO
|
9
|
-
|
10
|
-
# When SSO returns an error response, the Ruby SDK constructs and raises an error.
|
11
|
-
# These errors all extend Aws::SSO::Errors::ServiceError < {Aws::Errors::ServiceError}
|
12
|
-
#
|
13
|
-
# You can rescue all SSO errors using ServiceError:
|
14
|
-
#
|
15
|
-
# begin
|
16
|
-
# # do stuff
|
17
|
-
# rescue Aws::SSO::Errors::ServiceError
|
18
|
-
# # rescues all SSO API errors
|
19
|
-
# end
|
20
|
-
#
|
21
|
-
#
|
22
|
-
# ## Request Context
|
23
|
-
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
24
|
-
# information about the request that generated the error.
|
25
|
-
# See {Seahorse::Client::RequestContext} for more information.
|
26
|
-
#
|
27
|
-
# ## Error Classes
|
28
|
-
# * {InvalidRequestException}
|
29
|
-
# * {ResourceNotFoundException}
|
30
|
-
# * {TooManyRequestsException}
|
31
|
-
# * {UnauthorizedException}
|
32
|
-
#
|
33
|
-
# Additionally, error classes are dynamically generated for service errors based on the error code
|
34
|
-
# if they are not defined above.
|
35
|
-
module Errors
|
36
|
-
|
37
|
-
extend Aws::Errors::DynamicErrors
|
38
|
-
|
39
|
-
class InvalidRequestException < ServiceError
|
40
|
-
|
41
|
-
# @param [Seahorse::Client::RequestContext] context
|
42
|
-
# @param [String] message
|
43
|
-
# @param [Aws::SSO::Types::InvalidRequestException] data
|
44
|
-
def initialize(context, message, data = Aws::EmptyStructure.new)
|
45
|
-
super(context, message, data)
|
46
|
-
end
|
47
|
-
|
48
|
-
# @return [String]
|
49
|
-
def message
|
50
|
-
@message || @data[:message]
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
class ResourceNotFoundException < ServiceError
|
55
|
-
|
56
|
-
# @param [Seahorse::Client::RequestContext] context
|
57
|
-
# @param [String] message
|
58
|
-
# @param [Aws::SSO::Types::ResourceNotFoundException] data
|
59
|
-
def initialize(context, message, data = Aws::EmptyStructure.new)
|
60
|
-
super(context, message, data)
|
61
|
-
end
|
62
|
-
|
63
|
-
# @return [String]
|
64
|
-
def message
|
65
|
-
@message || @data[:message]
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
class TooManyRequestsException < ServiceError
|
70
|
-
|
71
|
-
# @param [Seahorse::Client::RequestContext] context
|
72
|
-
# @param [String] message
|
73
|
-
# @param [Aws::SSO::Types::TooManyRequestsException] data
|
74
|
-
def initialize(context, message, data = Aws::EmptyStructure.new)
|
75
|
-
super(context, message, data)
|
76
|
-
end
|
77
|
-
|
78
|
-
# @return [String]
|
79
|
-
def message
|
80
|
-
@message || @data[:message]
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
|
-
class UnauthorizedException < ServiceError
|
85
|
-
|
86
|
-
# @param [Seahorse::Client::RequestContext] context
|
87
|
-
# @param [String] message
|
88
|
-
# @param [Aws::SSO::Types::UnauthorizedException] data
|
89
|
-
def initialize(context, message, data = Aws::EmptyStructure.new)
|
90
|
-
super(context, message, data)
|
91
|
-
end
|
92
|
-
|
93
|
-
# @return [String]
|
94
|
-
def message
|
95
|
-
@message || @data[:message]
|
96
|
-
end
|
97
|
-
end
|
98
|
-
|
99
|
-
end
|
100
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
module Aws
|
2
|
-
module SSO
|
3
|
-
module Plugins
|
4
|
-
class ContentType < Seahorse::Client::Plugin
|
5
|
-
|
6
|
-
def add_handlers(handlers, config)
|
7
|
-
handlers.add(Handler)
|
8
|
-
end
|
9
|
-
|
10
|
-
class Handler < Seahorse::Client::Handler
|
11
|
-
def call(context)
|
12
|
-
# Some SSO operations break when given an empty content-type header.
|
13
|
-
# The SDK adds this blank content-type header
|
14
|
-
# since Net::HTTP provides a default that can break services.
|
15
|
-
# We're setting one here even though it's not used or necessary.
|
16
|
-
context.http_request.headers['content-type'] = 'application/json'
|
17
|
-
@handler.call(context)
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
data/lib/aws-sdk-sso/resource.rb
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
# WARNING ABOUT GENERATED CODE
|
2
|
-
#
|
3
|
-
# This file is generated. See the contributing guide for more information:
|
4
|
-
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
-
#
|
6
|
-
# WARNING ABOUT GENERATED CODE
|
7
|
-
|
8
|
-
module Aws::SSO
|
9
|
-
|
10
|
-
class Resource
|
11
|
-
|
12
|
-
# @param options ({})
|
13
|
-
# @option options [Client] :client
|
14
|
-
def initialize(options = {})
|
15
|
-
@client = options[:client] || Client.new(options)
|
16
|
-
end
|
17
|
-
|
18
|
-
# @return [Client]
|
19
|
-
def client
|
20
|
-
@client
|
21
|
-
end
|
22
|
-
|
23
|
-
end
|
24
|
-
end
|
data/lib/aws-sdk-sso/types.rb
DELETED
@@ -1,336 +0,0 @@
|
|
1
|
-
# WARNING ABOUT GENERATED CODE
|
2
|
-
#
|
3
|
-
# This file is generated. See the contributing guide for more information:
|
4
|
-
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
-
#
|
6
|
-
# WARNING ABOUT GENERATED CODE
|
7
|
-
|
8
|
-
module Aws::SSO
|
9
|
-
module Types
|
10
|
-
|
11
|
-
# Provides information about your AWS account.
|
12
|
-
#
|
13
|
-
# @!attribute [rw] account_id
|
14
|
-
# The identifier of the AWS account that is assigned to the user.
|
15
|
-
# @return [String]
|
16
|
-
#
|
17
|
-
# @!attribute [rw] account_name
|
18
|
-
# The display name of the AWS account that is assigned to the user.
|
19
|
-
# @return [String]
|
20
|
-
#
|
21
|
-
# @!attribute [rw] email_address
|
22
|
-
# The email address of the AWS account that is assigned to the user.
|
23
|
-
# @return [String]
|
24
|
-
#
|
25
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/AccountInfo AWS API Documentation
|
26
|
-
#
|
27
|
-
class AccountInfo < Struct.new(
|
28
|
-
:account_id,
|
29
|
-
:account_name,
|
30
|
-
:email_address)
|
31
|
-
include Aws::Structure
|
32
|
-
end
|
33
|
-
|
34
|
-
# @note When making an API call, you may pass GetRoleCredentialsRequest
|
35
|
-
# data as a hash:
|
36
|
-
#
|
37
|
-
# {
|
38
|
-
# role_name: "RoleNameType", # required
|
39
|
-
# account_id: "AccountIdType", # required
|
40
|
-
# access_token: "AccessTokenType", # required
|
41
|
-
# }
|
42
|
-
#
|
43
|
-
# @!attribute [rw] role_name
|
44
|
-
# The friendly name of the role that is assigned to the user.
|
45
|
-
# @return [String]
|
46
|
-
#
|
47
|
-
# @!attribute [rw] account_id
|
48
|
-
# The identifier for the AWS account that is assigned to the user.
|
49
|
-
# @return [String]
|
50
|
-
#
|
51
|
-
# @!attribute [rw] access_token
|
52
|
-
# The token issued by the `CreateToken` API call. For more
|
53
|
-
# information, see [CreateToken][1] in the *AWS SSO OIDC API Reference
|
54
|
-
# Guide*.
|
55
|
-
#
|
56
|
-
#
|
57
|
-
#
|
58
|
-
# [1]: https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html
|
59
|
-
# @return [String]
|
60
|
-
#
|
61
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/GetRoleCredentialsRequest AWS API Documentation
|
62
|
-
#
|
63
|
-
class GetRoleCredentialsRequest < Struct.new(
|
64
|
-
:role_name,
|
65
|
-
:account_id,
|
66
|
-
:access_token)
|
67
|
-
include Aws::Structure
|
68
|
-
end
|
69
|
-
|
70
|
-
# @!attribute [rw] role_credentials
|
71
|
-
# The credentials for the role that is assigned to the user.
|
72
|
-
# @return [Types::RoleCredentials]
|
73
|
-
#
|
74
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/GetRoleCredentialsResponse AWS API Documentation
|
75
|
-
#
|
76
|
-
class GetRoleCredentialsResponse < Struct.new(
|
77
|
-
:role_credentials)
|
78
|
-
include Aws::Structure
|
79
|
-
end
|
80
|
-
|
81
|
-
# Indicates that a problem occurred with the input to the request. For
|
82
|
-
# example, a required parameter might be missing or out of range.
|
83
|
-
#
|
84
|
-
# @!attribute [rw] message
|
85
|
-
# @return [String]
|
86
|
-
#
|
87
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/InvalidRequestException AWS API Documentation
|
88
|
-
#
|
89
|
-
class InvalidRequestException < Struct.new(
|
90
|
-
:message)
|
91
|
-
include Aws::Structure
|
92
|
-
end
|
93
|
-
|
94
|
-
# @note When making an API call, you may pass ListAccountRolesRequest
|
95
|
-
# data as a hash:
|
96
|
-
#
|
97
|
-
# {
|
98
|
-
# next_token: "NextTokenType",
|
99
|
-
# max_results: 1,
|
100
|
-
# access_token: "AccessTokenType", # required
|
101
|
-
# account_id: "AccountIdType", # required
|
102
|
-
# }
|
103
|
-
#
|
104
|
-
# @!attribute [rw] next_token
|
105
|
-
# The page token from the previous response output when you request
|
106
|
-
# subsequent pages.
|
107
|
-
# @return [String]
|
108
|
-
#
|
109
|
-
# @!attribute [rw] max_results
|
110
|
-
# The number of items that clients can request per page.
|
111
|
-
# @return [Integer]
|
112
|
-
#
|
113
|
-
# @!attribute [rw] access_token
|
114
|
-
# The token issued by the `CreateToken` API call. For more
|
115
|
-
# information, see [CreateToken][1] in the *AWS SSO OIDC API Reference
|
116
|
-
# Guide*.
|
117
|
-
#
|
118
|
-
#
|
119
|
-
#
|
120
|
-
# [1]: https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html
|
121
|
-
# @return [String]
|
122
|
-
#
|
123
|
-
# @!attribute [rw] account_id
|
124
|
-
# The identifier for the AWS account that is assigned to the user.
|
125
|
-
# @return [String]
|
126
|
-
#
|
127
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/ListAccountRolesRequest AWS API Documentation
|
128
|
-
#
|
129
|
-
class ListAccountRolesRequest < Struct.new(
|
130
|
-
:next_token,
|
131
|
-
:max_results,
|
132
|
-
:access_token,
|
133
|
-
:account_id)
|
134
|
-
include Aws::Structure
|
135
|
-
end
|
136
|
-
|
137
|
-
# @!attribute [rw] next_token
|
138
|
-
# The page token client that is used to retrieve the list of accounts.
|
139
|
-
# @return [String]
|
140
|
-
#
|
141
|
-
# @!attribute [rw] role_list
|
142
|
-
# A paginated response with the list of roles and the next token if
|
143
|
-
# more results are available.
|
144
|
-
# @return [Array<Types::RoleInfo>]
|
145
|
-
#
|
146
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/ListAccountRolesResponse AWS API Documentation
|
147
|
-
#
|
148
|
-
class ListAccountRolesResponse < Struct.new(
|
149
|
-
:next_token,
|
150
|
-
:role_list)
|
151
|
-
include Aws::Structure
|
152
|
-
end
|
153
|
-
|
154
|
-
# @note When making an API call, you may pass ListAccountsRequest
|
155
|
-
# data as a hash:
|
156
|
-
#
|
157
|
-
# {
|
158
|
-
# next_token: "NextTokenType",
|
159
|
-
# max_results: 1,
|
160
|
-
# access_token: "AccessTokenType", # required
|
161
|
-
# }
|
162
|
-
#
|
163
|
-
# @!attribute [rw] next_token
|
164
|
-
# (Optional) When requesting subsequent pages, this is the page token
|
165
|
-
# from the previous response output.
|
166
|
-
# @return [String]
|
167
|
-
#
|
168
|
-
# @!attribute [rw] max_results
|
169
|
-
# This is the number of items clients can request per page.
|
170
|
-
# @return [Integer]
|
171
|
-
#
|
172
|
-
# @!attribute [rw] access_token
|
173
|
-
# The token issued by the `CreateToken` API call. For more
|
174
|
-
# information, see [CreateToken][1] in the *AWS SSO OIDC API Reference
|
175
|
-
# Guide*.
|
176
|
-
#
|
177
|
-
#
|
178
|
-
#
|
179
|
-
# [1]: https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html
|
180
|
-
# @return [String]
|
181
|
-
#
|
182
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/ListAccountsRequest AWS API Documentation
|
183
|
-
#
|
184
|
-
class ListAccountsRequest < Struct.new(
|
185
|
-
:next_token,
|
186
|
-
:max_results,
|
187
|
-
:access_token)
|
188
|
-
include Aws::Structure
|
189
|
-
end
|
190
|
-
|
191
|
-
# @!attribute [rw] next_token
|
192
|
-
# The page token client that is used to retrieve the list of accounts.
|
193
|
-
# @return [String]
|
194
|
-
#
|
195
|
-
# @!attribute [rw] account_list
|
196
|
-
# A paginated response with the list of account information and the
|
197
|
-
# next token if more results are available.
|
198
|
-
# @return [Array<Types::AccountInfo>]
|
199
|
-
#
|
200
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/ListAccountsResponse AWS API Documentation
|
201
|
-
#
|
202
|
-
class ListAccountsResponse < Struct.new(
|
203
|
-
:next_token,
|
204
|
-
:account_list)
|
205
|
-
include Aws::Structure
|
206
|
-
end
|
207
|
-
|
208
|
-
# @note When making an API call, you may pass LogoutRequest
|
209
|
-
# data as a hash:
|
210
|
-
#
|
211
|
-
# {
|
212
|
-
# access_token: "AccessTokenType", # required
|
213
|
-
# }
|
214
|
-
#
|
215
|
-
# @!attribute [rw] access_token
|
216
|
-
# The token issued by the `CreateToken` API call. For more
|
217
|
-
# information, see [CreateToken][1] in the *AWS SSO OIDC API Reference
|
218
|
-
# Guide*.
|
219
|
-
#
|
220
|
-
#
|
221
|
-
#
|
222
|
-
# [1]: https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html
|
223
|
-
# @return [String]
|
224
|
-
#
|
225
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/LogoutRequest AWS API Documentation
|
226
|
-
#
|
227
|
-
class LogoutRequest < Struct.new(
|
228
|
-
:access_token)
|
229
|
-
include Aws::Structure
|
230
|
-
end
|
231
|
-
|
232
|
-
# The specified resource doesn't exist.
|
233
|
-
#
|
234
|
-
# @!attribute [rw] message
|
235
|
-
# @return [String]
|
236
|
-
#
|
237
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/ResourceNotFoundException AWS API Documentation
|
238
|
-
#
|
239
|
-
class ResourceNotFoundException < Struct.new(
|
240
|
-
:message)
|
241
|
-
include Aws::Structure
|
242
|
-
end
|
243
|
-
|
244
|
-
# Provides information about the role credentials that are assigned to
|
245
|
-
# the user.
|
246
|
-
#
|
247
|
-
# @!attribute [rw] access_key_id
|
248
|
-
# The identifier used for the temporary security credentials. For more
|
249
|
-
# information, see [Using Temporary Security Credentials to Request
|
250
|
-
# Access to AWS Resources][1] in the *AWS IAM User Guide*.
|
251
|
-
#
|
252
|
-
#
|
253
|
-
#
|
254
|
-
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html
|
255
|
-
# @return [String]
|
256
|
-
#
|
257
|
-
# @!attribute [rw] secret_access_key
|
258
|
-
# The key that is used to sign the request. For more information, see
|
259
|
-
# [Using Temporary Security Credentials to Request Access to AWS
|
260
|
-
# Resources][1] in the *AWS IAM User Guide*.
|
261
|
-
#
|
262
|
-
#
|
263
|
-
#
|
264
|
-
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html
|
265
|
-
# @return [String]
|
266
|
-
#
|
267
|
-
# @!attribute [rw] session_token
|
268
|
-
# The token used for temporary credentials. For more information, see
|
269
|
-
# [Using Temporary Security Credentials to Request Access to AWS
|
270
|
-
# Resources][1] in the *AWS IAM User Guide*.
|
271
|
-
#
|
272
|
-
#
|
273
|
-
#
|
274
|
-
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html
|
275
|
-
# @return [String]
|
276
|
-
#
|
277
|
-
# @!attribute [rw] expiration
|
278
|
-
# The date on which temporary security credentials expire.
|
279
|
-
# @return [Integer]
|
280
|
-
#
|
281
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/RoleCredentials AWS API Documentation
|
282
|
-
#
|
283
|
-
class RoleCredentials < Struct.new(
|
284
|
-
:access_key_id,
|
285
|
-
:secret_access_key,
|
286
|
-
:session_token,
|
287
|
-
:expiration)
|
288
|
-
include Aws::Structure
|
289
|
-
end
|
290
|
-
|
291
|
-
# Provides information about the role that is assigned to the user.
|
292
|
-
#
|
293
|
-
# @!attribute [rw] role_name
|
294
|
-
# The friendly name of the role that is assigned to the user.
|
295
|
-
# @return [String]
|
296
|
-
#
|
297
|
-
# @!attribute [rw] account_id
|
298
|
-
# The identifier of the AWS account assigned to the user.
|
299
|
-
# @return [String]
|
300
|
-
#
|
301
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/RoleInfo AWS API Documentation
|
302
|
-
#
|
303
|
-
class RoleInfo < Struct.new(
|
304
|
-
:role_name,
|
305
|
-
:account_id)
|
306
|
-
include Aws::Structure
|
307
|
-
end
|
308
|
-
|
309
|
-
# Indicates that the request is being made too frequently and is more
|
310
|
-
# than what the server can handle.
|
311
|
-
#
|
312
|
-
# @!attribute [rw] message
|
313
|
-
# @return [String]
|
314
|
-
#
|
315
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/TooManyRequestsException AWS API Documentation
|
316
|
-
#
|
317
|
-
class TooManyRequestsException < Struct.new(
|
318
|
-
:message)
|
319
|
-
include Aws::Structure
|
320
|
-
end
|
321
|
-
|
322
|
-
# Indicates that the request is not authorized. This can happen due to
|
323
|
-
# an invalid access token in the request.
|
324
|
-
#
|
325
|
-
# @!attribute [rw] message
|
326
|
-
# @return [String]
|
327
|
-
#
|
328
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/UnauthorizedException AWS API Documentation
|
329
|
-
#
|
330
|
-
class UnauthorizedException < Struct.new(
|
331
|
-
:message)
|
332
|
-
include Aws::Structure
|
333
|
-
end
|
334
|
-
|
335
|
-
end
|
336
|
-
end
|