aws-sdk-ssooidc 1.0.0

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.
@@ -0,0 +1,214 @@
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::SSOOIDC
9
+ # @api private
10
+ module ClientApi
11
+
12
+ include Seahorse::Model
13
+
14
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
15
+ AccessToken = Shapes::StringShape.new(name: 'AccessToken')
16
+ AuthCode = Shapes::StringShape.new(name: 'AuthCode')
17
+ AuthorizationPendingException = Shapes::StructureShape.new(name: 'AuthorizationPendingException')
18
+ ClientId = Shapes::StringShape.new(name: 'ClientId')
19
+ ClientName = Shapes::StringShape.new(name: 'ClientName')
20
+ ClientSecret = Shapes::StringShape.new(name: 'ClientSecret')
21
+ ClientType = Shapes::StringShape.new(name: 'ClientType')
22
+ CreateTokenRequest = Shapes::StructureShape.new(name: 'CreateTokenRequest')
23
+ CreateTokenResponse = Shapes::StructureShape.new(name: 'CreateTokenResponse')
24
+ DeviceCode = Shapes::StringShape.new(name: 'DeviceCode')
25
+ Error = Shapes::StringShape.new(name: 'Error')
26
+ ErrorDescription = Shapes::StringShape.new(name: 'ErrorDescription')
27
+ ExpirationInSeconds = Shapes::IntegerShape.new(name: 'ExpirationInSeconds')
28
+ ExpiredTokenException = Shapes::StructureShape.new(name: 'ExpiredTokenException')
29
+ GrantType = Shapes::StringShape.new(name: 'GrantType')
30
+ IdToken = Shapes::StringShape.new(name: 'IdToken')
31
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
32
+ IntervalInSeconds = Shapes::IntegerShape.new(name: 'IntervalInSeconds')
33
+ InvalidClientException = Shapes::StructureShape.new(name: 'InvalidClientException')
34
+ InvalidClientMetadataException = Shapes::StructureShape.new(name: 'InvalidClientMetadataException')
35
+ InvalidGrantException = Shapes::StructureShape.new(name: 'InvalidGrantException')
36
+ InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
37
+ InvalidScopeException = Shapes::StructureShape.new(name: 'InvalidScopeException')
38
+ LongTimeStampType = Shapes::IntegerShape.new(name: 'LongTimeStampType')
39
+ RefreshToken = Shapes::StringShape.new(name: 'RefreshToken')
40
+ RegisterClientRequest = Shapes::StructureShape.new(name: 'RegisterClientRequest')
41
+ RegisterClientResponse = Shapes::StructureShape.new(name: 'RegisterClientResponse')
42
+ Scope = Shapes::StringShape.new(name: 'Scope')
43
+ Scopes = Shapes::ListShape.new(name: 'Scopes')
44
+ SlowDownException = Shapes::StructureShape.new(name: 'SlowDownException')
45
+ StartDeviceAuthorizationRequest = Shapes::StructureShape.new(name: 'StartDeviceAuthorizationRequest')
46
+ StartDeviceAuthorizationResponse = Shapes::StructureShape.new(name: 'StartDeviceAuthorizationResponse')
47
+ TokenType = Shapes::StringShape.new(name: 'TokenType')
48
+ URI = Shapes::StringShape.new(name: 'URI')
49
+ UnauthorizedClientException = Shapes::StructureShape.new(name: 'UnauthorizedClientException')
50
+ UnsupportedGrantTypeException = Shapes::StructureShape.new(name: 'UnsupportedGrantTypeException')
51
+ UserCode = Shapes::StringShape.new(name: 'UserCode')
52
+
53
+ AccessDeniedException.add_member(:error, Shapes::ShapeRef.new(shape: Error, location_name: "error"))
54
+ AccessDeniedException.add_member(:error_description, Shapes::ShapeRef.new(shape: ErrorDescription, location_name: "error_description"))
55
+ AccessDeniedException.struct_class = Types::AccessDeniedException
56
+
57
+ AuthorizationPendingException.add_member(:error, Shapes::ShapeRef.new(shape: Error, location_name: "error"))
58
+ AuthorizationPendingException.add_member(:error_description, Shapes::ShapeRef.new(shape: ErrorDescription, location_name: "error_description"))
59
+ AuthorizationPendingException.struct_class = Types::AuthorizationPendingException
60
+
61
+ CreateTokenRequest.add_member(:client_id, Shapes::ShapeRef.new(shape: ClientId, required: true, location_name: "clientId"))
62
+ CreateTokenRequest.add_member(:client_secret, Shapes::ShapeRef.new(shape: ClientSecret, required: true, location_name: "clientSecret"))
63
+ CreateTokenRequest.add_member(:grant_type, Shapes::ShapeRef.new(shape: GrantType, required: true, location_name: "grantType"))
64
+ CreateTokenRequest.add_member(:device_code, Shapes::ShapeRef.new(shape: DeviceCode, required: true, location_name: "deviceCode"))
65
+ CreateTokenRequest.add_member(:code, Shapes::ShapeRef.new(shape: AuthCode, location_name: "code"))
66
+ CreateTokenRequest.add_member(:refresh_token, Shapes::ShapeRef.new(shape: RefreshToken, location_name: "refreshToken"))
67
+ CreateTokenRequest.add_member(:scope, Shapes::ShapeRef.new(shape: Scopes, location_name: "scope"))
68
+ CreateTokenRequest.add_member(:redirect_uri, Shapes::ShapeRef.new(shape: URI, location_name: "redirectUri"))
69
+ CreateTokenRequest.struct_class = Types::CreateTokenRequest
70
+
71
+ CreateTokenResponse.add_member(:access_token, Shapes::ShapeRef.new(shape: AccessToken, location_name: "accessToken"))
72
+ CreateTokenResponse.add_member(:token_type, Shapes::ShapeRef.new(shape: TokenType, location_name: "tokenType"))
73
+ CreateTokenResponse.add_member(:expires_in, Shapes::ShapeRef.new(shape: ExpirationInSeconds, location_name: "expiresIn"))
74
+ CreateTokenResponse.add_member(:refresh_token, Shapes::ShapeRef.new(shape: RefreshToken, location_name: "refreshToken"))
75
+ CreateTokenResponse.add_member(:id_token, Shapes::ShapeRef.new(shape: IdToken, location_name: "idToken"))
76
+ CreateTokenResponse.struct_class = Types::CreateTokenResponse
77
+
78
+ ExpiredTokenException.add_member(:error, Shapes::ShapeRef.new(shape: Error, location_name: "error"))
79
+ ExpiredTokenException.add_member(:error_description, Shapes::ShapeRef.new(shape: ErrorDescription, location_name: "error_description"))
80
+ ExpiredTokenException.struct_class = Types::ExpiredTokenException
81
+
82
+ InternalServerException.add_member(:error, Shapes::ShapeRef.new(shape: Error, location_name: "error"))
83
+ InternalServerException.add_member(:error_description, Shapes::ShapeRef.new(shape: ErrorDescription, location_name: "error_description"))
84
+ InternalServerException.struct_class = Types::InternalServerException
85
+
86
+ InvalidClientException.add_member(:error, Shapes::ShapeRef.new(shape: Error, location_name: "error"))
87
+ InvalidClientException.add_member(:error_description, Shapes::ShapeRef.new(shape: ErrorDescription, location_name: "error_description"))
88
+ InvalidClientException.struct_class = Types::InvalidClientException
89
+
90
+ InvalidClientMetadataException.add_member(:error, Shapes::ShapeRef.new(shape: Error, location_name: "error"))
91
+ InvalidClientMetadataException.add_member(:error_description, Shapes::ShapeRef.new(shape: ErrorDescription, location_name: "error_description"))
92
+ InvalidClientMetadataException.struct_class = Types::InvalidClientMetadataException
93
+
94
+ InvalidGrantException.add_member(:error, Shapes::ShapeRef.new(shape: Error, location_name: "error"))
95
+ InvalidGrantException.add_member(:error_description, Shapes::ShapeRef.new(shape: ErrorDescription, location_name: "error_description"))
96
+ InvalidGrantException.struct_class = Types::InvalidGrantException
97
+
98
+ InvalidRequestException.add_member(:error, Shapes::ShapeRef.new(shape: Error, location_name: "error"))
99
+ InvalidRequestException.add_member(:error_description, Shapes::ShapeRef.new(shape: ErrorDescription, location_name: "error_description"))
100
+ InvalidRequestException.struct_class = Types::InvalidRequestException
101
+
102
+ InvalidScopeException.add_member(:error, Shapes::ShapeRef.new(shape: Error, location_name: "error"))
103
+ InvalidScopeException.add_member(:error_description, Shapes::ShapeRef.new(shape: ErrorDescription, location_name: "error_description"))
104
+ InvalidScopeException.struct_class = Types::InvalidScopeException
105
+
106
+ RegisterClientRequest.add_member(:client_name, Shapes::ShapeRef.new(shape: ClientName, required: true, location_name: "clientName"))
107
+ RegisterClientRequest.add_member(:client_type, Shapes::ShapeRef.new(shape: ClientType, required: true, location_name: "clientType"))
108
+ RegisterClientRequest.add_member(:scopes, Shapes::ShapeRef.new(shape: Scopes, location_name: "scopes"))
109
+ RegisterClientRequest.struct_class = Types::RegisterClientRequest
110
+
111
+ RegisterClientResponse.add_member(:client_id, Shapes::ShapeRef.new(shape: ClientId, location_name: "clientId"))
112
+ RegisterClientResponse.add_member(:client_secret, Shapes::ShapeRef.new(shape: ClientSecret, location_name: "clientSecret"))
113
+ RegisterClientResponse.add_member(:client_id_issued_at, Shapes::ShapeRef.new(shape: LongTimeStampType, location_name: "clientIdIssuedAt"))
114
+ RegisterClientResponse.add_member(:client_secret_expires_at, Shapes::ShapeRef.new(shape: LongTimeStampType, location_name: "clientSecretExpiresAt"))
115
+ RegisterClientResponse.add_member(:authorization_endpoint, Shapes::ShapeRef.new(shape: URI, location_name: "authorizationEndpoint"))
116
+ RegisterClientResponse.add_member(:token_endpoint, Shapes::ShapeRef.new(shape: URI, location_name: "tokenEndpoint"))
117
+ RegisterClientResponse.struct_class = Types::RegisterClientResponse
118
+
119
+ Scopes.member = Shapes::ShapeRef.new(shape: Scope)
120
+
121
+ SlowDownException.add_member(:error, Shapes::ShapeRef.new(shape: Error, location_name: "error"))
122
+ SlowDownException.add_member(:error_description, Shapes::ShapeRef.new(shape: ErrorDescription, location_name: "error_description"))
123
+ SlowDownException.struct_class = Types::SlowDownException
124
+
125
+ StartDeviceAuthorizationRequest.add_member(:client_id, Shapes::ShapeRef.new(shape: ClientId, required: true, location_name: "clientId"))
126
+ StartDeviceAuthorizationRequest.add_member(:client_secret, Shapes::ShapeRef.new(shape: ClientSecret, required: true, location_name: "clientSecret"))
127
+ StartDeviceAuthorizationRequest.add_member(:start_url, Shapes::ShapeRef.new(shape: URI, required: true, location_name: "startUrl"))
128
+ StartDeviceAuthorizationRequest.struct_class = Types::StartDeviceAuthorizationRequest
129
+
130
+ StartDeviceAuthorizationResponse.add_member(:device_code, Shapes::ShapeRef.new(shape: DeviceCode, location_name: "deviceCode"))
131
+ StartDeviceAuthorizationResponse.add_member(:user_code, Shapes::ShapeRef.new(shape: UserCode, location_name: "userCode"))
132
+ StartDeviceAuthorizationResponse.add_member(:verification_uri, Shapes::ShapeRef.new(shape: URI, location_name: "verificationUri"))
133
+ StartDeviceAuthorizationResponse.add_member(:verification_uri_complete, Shapes::ShapeRef.new(shape: URI, location_name: "verificationUriComplete"))
134
+ StartDeviceAuthorizationResponse.add_member(:expires_in, Shapes::ShapeRef.new(shape: ExpirationInSeconds, location_name: "expiresIn"))
135
+ StartDeviceAuthorizationResponse.add_member(:interval, Shapes::ShapeRef.new(shape: IntervalInSeconds, location_name: "interval"))
136
+ StartDeviceAuthorizationResponse.struct_class = Types::StartDeviceAuthorizationResponse
137
+
138
+ UnauthorizedClientException.add_member(:error, Shapes::ShapeRef.new(shape: Error, location_name: "error"))
139
+ UnauthorizedClientException.add_member(:error_description, Shapes::ShapeRef.new(shape: ErrorDescription, location_name: "error_description"))
140
+ UnauthorizedClientException.struct_class = Types::UnauthorizedClientException
141
+
142
+ UnsupportedGrantTypeException.add_member(:error, Shapes::ShapeRef.new(shape: Error, location_name: "error"))
143
+ UnsupportedGrantTypeException.add_member(:error_description, Shapes::ShapeRef.new(shape: ErrorDescription, location_name: "error_description"))
144
+ UnsupportedGrantTypeException.struct_class = Types::UnsupportedGrantTypeException
145
+
146
+
147
+ # @api private
148
+ API = Seahorse::Model::Api.new.tap do |api|
149
+
150
+ api.version = "2019-06-10"
151
+
152
+ api.metadata = {
153
+ "apiVersion" => "2019-06-10",
154
+ "endpointPrefix" => "oidc",
155
+ "jsonVersion" => "1.1",
156
+ "protocol" => "rest-json",
157
+ "serviceAbbreviation" => "SSO OIDC",
158
+ "serviceFullName" => "AWS SSO OIDC",
159
+ "serviceId" => "SSO OIDC",
160
+ "signatureVersion" => "v4",
161
+ "signingName" => "awsssooidc",
162
+ "uid" => "sso-oidc-2019-06-10",
163
+ }
164
+
165
+ api.add_operation(:create_token, Seahorse::Model::Operation.new.tap do |o|
166
+ o.name = "CreateToken"
167
+ o.http_method = "POST"
168
+ o.http_request_uri = "/token"
169
+ o['authtype'] = "none"
170
+ o.input = Shapes::ShapeRef.new(shape: CreateTokenRequest)
171
+ o.output = Shapes::ShapeRef.new(shape: CreateTokenResponse)
172
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
173
+ o.errors << Shapes::ShapeRef.new(shape: InvalidClientException)
174
+ o.errors << Shapes::ShapeRef.new(shape: InvalidGrantException)
175
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedClientException)
176
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedGrantTypeException)
177
+ o.errors << Shapes::ShapeRef.new(shape: InvalidScopeException)
178
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationPendingException)
179
+ o.errors << Shapes::ShapeRef.new(shape: SlowDownException)
180
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
181
+ o.errors << Shapes::ShapeRef.new(shape: ExpiredTokenException)
182
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
183
+ end)
184
+
185
+ api.add_operation(:register_client, Seahorse::Model::Operation.new.tap do |o|
186
+ o.name = "RegisterClient"
187
+ o.http_method = "POST"
188
+ o.http_request_uri = "/client/register"
189
+ o['authtype'] = "none"
190
+ o.input = Shapes::ShapeRef.new(shape: RegisterClientRequest)
191
+ o.output = Shapes::ShapeRef.new(shape: RegisterClientResponse)
192
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
193
+ o.errors << Shapes::ShapeRef.new(shape: InvalidScopeException)
194
+ o.errors << Shapes::ShapeRef.new(shape: InvalidClientMetadataException)
195
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
196
+ end)
197
+
198
+ api.add_operation(:start_device_authorization, Seahorse::Model::Operation.new.tap do |o|
199
+ o.name = "StartDeviceAuthorization"
200
+ o.http_method = "POST"
201
+ o.http_request_uri = "/device_authorization"
202
+ o['authtype'] = "none"
203
+ o.input = Shapes::ShapeRef.new(shape: StartDeviceAuthorizationRequest)
204
+ o.output = Shapes::ShapeRef.new(shape: StartDeviceAuthorizationResponse)
205
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
206
+ o.errors << Shapes::ShapeRef.new(shape: InvalidClientException)
207
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedClientException)
208
+ o.errors << Shapes::ShapeRef.new(shape: SlowDownException)
209
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
210
+ end)
211
+ end
212
+
213
+ end
214
+ end
File without changes
@@ -0,0 +1,266 @@
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::SSOOIDC
9
+ module Errors
10
+
11
+ extend Aws::Errors::DynamicErrors
12
+
13
+ class AccessDeniedException < ServiceError
14
+
15
+ # @param [Seahorse::Client::RequestContext] context
16
+ # @param [String] message
17
+ # @param [Aws::SSOOIDC::Types::AccessDeniedException] data
18
+ def initialize(context, message, data = Aws::EmptyStructure.new)
19
+ super(context, message, data)
20
+ end
21
+
22
+ # @return [String]
23
+ def error
24
+ @data[:error]
25
+ end
26
+
27
+ # @return [String]
28
+ def error_description
29
+ @data[:error_description]
30
+ end
31
+
32
+ end
33
+
34
+ class AuthorizationPendingException < ServiceError
35
+
36
+ # @param [Seahorse::Client::RequestContext] context
37
+ # @param [String] message
38
+ # @param [Aws::SSOOIDC::Types::AuthorizationPendingException] data
39
+ def initialize(context, message, data = Aws::EmptyStructure.new)
40
+ super(context, message, data)
41
+ end
42
+
43
+ # @return [String]
44
+ def error
45
+ @data[:error]
46
+ end
47
+
48
+ # @return [String]
49
+ def error_description
50
+ @data[:error_description]
51
+ end
52
+
53
+ end
54
+
55
+ class ExpiredTokenException < ServiceError
56
+
57
+ # @param [Seahorse::Client::RequestContext] context
58
+ # @param [String] message
59
+ # @param [Aws::SSOOIDC::Types::ExpiredTokenException] data
60
+ def initialize(context, message, data = Aws::EmptyStructure.new)
61
+ super(context, message, data)
62
+ end
63
+
64
+ # @return [String]
65
+ def error
66
+ @data[:error]
67
+ end
68
+
69
+ # @return [String]
70
+ def error_description
71
+ @data[:error_description]
72
+ end
73
+
74
+ end
75
+
76
+ class InternalServerException < ServiceError
77
+
78
+ # @param [Seahorse::Client::RequestContext] context
79
+ # @param [String] message
80
+ # @param [Aws::SSOOIDC::Types::InternalServerException] data
81
+ def initialize(context, message, data = Aws::EmptyStructure.new)
82
+ super(context, message, data)
83
+ end
84
+
85
+ # @return [String]
86
+ def error
87
+ @data[:error]
88
+ end
89
+
90
+ # @return [String]
91
+ def error_description
92
+ @data[:error_description]
93
+ end
94
+
95
+ end
96
+
97
+ class InvalidClientException < ServiceError
98
+
99
+ # @param [Seahorse::Client::RequestContext] context
100
+ # @param [String] message
101
+ # @param [Aws::SSOOIDC::Types::InvalidClientException] data
102
+ def initialize(context, message, data = Aws::EmptyStructure.new)
103
+ super(context, message, data)
104
+ end
105
+
106
+ # @return [String]
107
+ def error
108
+ @data[:error]
109
+ end
110
+
111
+ # @return [String]
112
+ def error_description
113
+ @data[:error_description]
114
+ end
115
+
116
+ end
117
+
118
+ class InvalidClientMetadataException < ServiceError
119
+
120
+ # @param [Seahorse::Client::RequestContext] context
121
+ # @param [String] message
122
+ # @param [Aws::SSOOIDC::Types::InvalidClientMetadataException] data
123
+ def initialize(context, message, data = Aws::EmptyStructure.new)
124
+ super(context, message, data)
125
+ end
126
+
127
+ # @return [String]
128
+ def error
129
+ @data[:error]
130
+ end
131
+
132
+ # @return [String]
133
+ def error_description
134
+ @data[:error_description]
135
+ end
136
+
137
+ end
138
+
139
+ class InvalidGrantException < ServiceError
140
+
141
+ # @param [Seahorse::Client::RequestContext] context
142
+ # @param [String] message
143
+ # @param [Aws::SSOOIDC::Types::InvalidGrantException] data
144
+ def initialize(context, message, data = Aws::EmptyStructure.new)
145
+ super(context, message, data)
146
+ end
147
+
148
+ # @return [String]
149
+ def error
150
+ @data[:error]
151
+ end
152
+
153
+ # @return [String]
154
+ def error_description
155
+ @data[:error_description]
156
+ end
157
+
158
+ end
159
+
160
+ class InvalidRequestException < ServiceError
161
+
162
+ # @param [Seahorse::Client::RequestContext] context
163
+ # @param [String] message
164
+ # @param [Aws::SSOOIDC::Types::InvalidRequestException] data
165
+ def initialize(context, message, data = Aws::EmptyStructure.new)
166
+ super(context, message, data)
167
+ end
168
+
169
+ # @return [String]
170
+ def error
171
+ @data[:error]
172
+ end
173
+
174
+ # @return [String]
175
+ def error_description
176
+ @data[:error_description]
177
+ end
178
+
179
+ end
180
+
181
+ class InvalidScopeException < ServiceError
182
+
183
+ # @param [Seahorse::Client::RequestContext] context
184
+ # @param [String] message
185
+ # @param [Aws::SSOOIDC::Types::InvalidScopeException] data
186
+ def initialize(context, message, data = Aws::EmptyStructure.new)
187
+ super(context, message, data)
188
+ end
189
+
190
+ # @return [String]
191
+ def error
192
+ @data[:error]
193
+ end
194
+
195
+ # @return [String]
196
+ def error_description
197
+ @data[:error_description]
198
+ end
199
+
200
+ end
201
+
202
+ class SlowDownException < ServiceError
203
+
204
+ # @param [Seahorse::Client::RequestContext] context
205
+ # @param [String] message
206
+ # @param [Aws::SSOOIDC::Types::SlowDownException] data
207
+ def initialize(context, message, data = Aws::EmptyStructure.new)
208
+ super(context, message, data)
209
+ end
210
+
211
+ # @return [String]
212
+ def error
213
+ @data[:error]
214
+ end
215
+
216
+ # @return [String]
217
+ def error_description
218
+ @data[:error_description]
219
+ end
220
+
221
+ end
222
+
223
+ class UnauthorizedClientException < ServiceError
224
+
225
+ # @param [Seahorse::Client::RequestContext] context
226
+ # @param [String] message
227
+ # @param [Aws::SSOOIDC::Types::UnauthorizedClientException] data
228
+ def initialize(context, message, data = Aws::EmptyStructure.new)
229
+ super(context, message, data)
230
+ end
231
+
232
+ # @return [String]
233
+ def error
234
+ @data[:error]
235
+ end
236
+
237
+ # @return [String]
238
+ def error_description
239
+ @data[:error_description]
240
+ end
241
+
242
+ end
243
+
244
+ class UnsupportedGrantTypeException < ServiceError
245
+
246
+ # @param [Seahorse::Client::RequestContext] context
247
+ # @param [String] message
248
+ # @param [Aws::SSOOIDC::Types::UnsupportedGrantTypeException] data
249
+ def initialize(context, message, data = Aws::EmptyStructure.new)
250
+ super(context, message, data)
251
+ end
252
+
253
+ # @return [String]
254
+ def error
255
+ @data[:error]
256
+ end
257
+
258
+ # @return [String]
259
+ def error_description
260
+ @data[:error_description]
261
+ end
262
+
263
+ end
264
+
265
+ end
266
+ end