aws-sdk-core 3.251.0 → 3.253.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-signin/client.rb +407 -1
- data/lib/aws-sdk-signin/client_api.rb +325 -0
- data/lib/aws-sdk-signin/endpoint_parameters.rb +16 -0
- data/lib/aws-sdk-signin/endpoint_provider.rb +48 -0
- data/lib/aws-sdk-signin/endpoints.rb +114 -1
- data/lib/aws-sdk-signin/errors.rb +63 -0
- data/lib/aws-sdk-signin/types.rb +613 -3
- data/lib/aws-sdk-signin.rb +1 -1
- data/lib/aws-sdk-sso/client.rb +1 -1
- data/lib/aws-sdk-sso.rb +1 -1
- data/lib/aws-sdk-ssooidc/client.rb +1 -1
- data/lib/aws-sdk-ssooidc.rb +1 -1
- data/lib/aws-sdk-sts/client.rb +1 -1
- data/lib/aws-sdk-sts.rb +1 -1
- metadata +1 -1
|
@@ -16,24 +16,81 @@ module Aws::Signin
|
|
|
16
16
|
|
|
17
17
|
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
|
18
18
|
AccessToken = Shapes::StructureShape.new(name: 'AccessToken')
|
|
19
|
+
AccountId = Shapes::StringShape.new(name: 'AccountId')
|
|
19
20
|
AuthorizationCode = Shapes::StringShape.new(name: 'AuthorizationCode')
|
|
21
|
+
BearerTokenType = Shapes::StringShape.new(name: 'BearerTokenType')
|
|
22
|
+
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
|
23
|
+
ClientCredentialsGrantType = Shapes::StringShape.new(name: 'ClientCredentialsGrantType')
|
|
20
24
|
ClientId = Shapes::StringShape.new(name: 'ClientId')
|
|
25
|
+
ClientToken = Shapes::StringShape.new(name: 'ClientToken')
|
|
21
26
|
CodeVerifier = Shapes::StringShape.new(name: 'CodeVerifier')
|
|
27
|
+
Condition = Shapes::MapShape.new(name: 'Condition')
|
|
28
|
+
ConditionBlock = Shapes::MapShape.new(name: 'ConditionBlock')
|
|
29
|
+
ConditionType = Shapes::StringShape.new(name: 'ConditionType')
|
|
30
|
+
ConditionValues = Shapes::ListShape.new(name: 'ConditionValues')
|
|
31
|
+
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
|
32
|
+
ConsolePermissionMaxResults = Shapes::IntegerShape.new(name: 'ConsolePermissionMaxResults')
|
|
22
33
|
CreateOAuth2TokenRequest = Shapes::StructureShape.new(name: 'CreateOAuth2TokenRequest')
|
|
23
34
|
CreateOAuth2TokenRequestBody = Shapes::StructureShape.new(name: 'CreateOAuth2TokenRequestBody')
|
|
24
35
|
CreateOAuth2TokenResponse = Shapes::StructureShape.new(name: 'CreateOAuth2TokenResponse')
|
|
25
36
|
CreateOAuth2TokenResponseBody = Shapes::StructureShape.new(name: 'CreateOAuth2TokenResponseBody')
|
|
37
|
+
CreateOAuth2TokenWithIAMRequest = Shapes::StructureShape.new(name: 'CreateOAuth2TokenWithIAMRequest')
|
|
38
|
+
CreateOAuth2TokenWithIAMRequestResourceString = Shapes::StringShape.new(name: 'CreateOAuth2TokenWithIAMRequestResourceString')
|
|
39
|
+
CreateOAuth2TokenWithIAMResponse = Shapes::StructureShape.new(name: 'CreateOAuth2TokenWithIAMResponse')
|
|
40
|
+
DeleteConsoleAuthorizationConfigurationInput = Shapes::StructureShape.new(name: 'DeleteConsoleAuthorizationConfigurationInput')
|
|
41
|
+
DeleteConsoleAuthorizationConfigurationOutput = Shapes::StructureShape.new(name: 'DeleteConsoleAuthorizationConfigurationOutput')
|
|
42
|
+
DeleteResourcePermissionStatementInput = Shapes::StructureShape.new(name: 'DeleteResourcePermissionStatementInput')
|
|
43
|
+
DeleteResourcePermissionStatementOutput = Shapes::StructureShape.new(name: 'DeleteResourcePermissionStatementOutput')
|
|
44
|
+
ExcludedPrincipal = Shapes::StringShape.new(name: 'ExcludedPrincipal')
|
|
26
45
|
ExpiresIn = Shapes::IntegerShape.new(name: 'ExpiresIn')
|
|
46
|
+
GetConsoleAuthorizationConfigurationInput = Shapes::StructureShape.new(name: 'GetConsoleAuthorizationConfigurationInput')
|
|
47
|
+
GetConsoleAuthorizationConfigurationOutput = Shapes::StructureShape.new(name: 'GetConsoleAuthorizationConfigurationOutput')
|
|
48
|
+
GetResourcePolicyInput = Shapes::StructureShape.new(name: 'GetResourcePolicyInput')
|
|
49
|
+
GetResourcePolicyOutput = Shapes::StructureShape.new(name: 'GetResourcePolicyOutput')
|
|
27
50
|
GrantType = Shapes::StringShape.new(name: 'GrantType')
|
|
28
51
|
IdToken = Shapes::StringShape.new(name: 'IdToken')
|
|
29
52
|
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
|
53
|
+
IntrospectOAuth2TokenWithIAMRequest = Shapes::StructureShape.new(name: 'IntrospectOAuth2TokenWithIAMRequest')
|
|
54
|
+
IntrospectOAuth2TokenWithIAMResponse = Shapes::StructureShape.new(name: 'IntrospectOAuth2TokenWithIAMResponse')
|
|
55
|
+
IntrospectedTokenType = Shapes::StringShape.new(name: 'IntrospectedTokenType')
|
|
56
|
+
IntrospectionToken = Shapes::StringShape.new(name: 'IntrospectionToken')
|
|
57
|
+
ListResourcePermissionStatementsInput = Shapes::StructureShape.new(name: 'ListResourcePermissionStatementsInput')
|
|
58
|
+
ListResourcePermissionStatementsOutput = Shapes::StructureShape.new(name: 'ListResourcePermissionStatementsOutput')
|
|
59
|
+
Long = Shapes::IntegerShape.new(name: 'Long')
|
|
60
|
+
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
|
30
61
|
OAuth2ErrorCode = Shapes::StringShape.new(name: 'OAuth2ErrorCode')
|
|
62
|
+
OAuthAccessToken = Shapes::StringShape.new(name: 'OAuthAccessToken')
|
|
63
|
+
PermissionStatementSummaries = Shapes::ListShape.new(name: 'PermissionStatementSummaries')
|
|
64
|
+
PermissionStatementSummary = Shapes::StructureShape.new(name: 'PermissionStatementSummary')
|
|
65
|
+
PolicyActions = Shapes::ListShape.new(name: 'PolicyActions')
|
|
66
|
+
PolicyStatement = Shapes::StructureShape.new(name: 'PolicyStatement')
|
|
67
|
+
PolicyStatements = Shapes::ListShape.new(name: 'PolicyStatements')
|
|
68
|
+
Principal = Shapes::MapShape.new(name: 'Principal')
|
|
69
|
+
PutConsoleAuthorizationConfigurationInput = Shapes::StructureShape.new(name: 'PutConsoleAuthorizationConfigurationInput')
|
|
70
|
+
PutConsoleAuthorizationConfigurationOutput = Shapes::StructureShape.new(name: 'PutConsoleAuthorizationConfigurationOutput')
|
|
71
|
+
PutResourcePermissionStatementInput = Shapes::StructureShape.new(name: 'PutResourcePermissionStatementInput')
|
|
72
|
+
PutResourcePermissionStatementOutput = Shapes::StructureShape.new(name: 'PutResourcePermissionStatementOutput')
|
|
31
73
|
RedirectUri = Shapes::StringShape.new(name: 'RedirectUri')
|
|
32
74
|
RefreshToken = Shapes::StringShape.new(name: 'RefreshToken')
|
|
75
|
+
RequestedRegion = Shapes::StringShape.new(name: 'RequestedRegion')
|
|
76
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
|
77
|
+
RevocationToken = Shapes::StringShape.new(name: 'RevocationToken')
|
|
78
|
+
RevokeOAuth2TokenWithIAMRequest = Shapes::StructureShape.new(name: 'RevokeOAuth2TokenWithIAMRequest')
|
|
79
|
+
RevokeOAuth2TokenWithIAMResponse = Shapes::StructureShape.new(name: 'RevokeOAuth2TokenWithIAMResponse')
|
|
80
|
+
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
|
81
|
+
SigninResourceBasedPolicy = Shapes::StructureShape.new(name: 'SigninResourceBasedPolicy')
|
|
82
|
+
SourceIp = Shapes::StringShape.new(name: 'SourceIp')
|
|
83
|
+
SourceVpc = Shapes::StringShape.new(name: 'SourceVpc')
|
|
84
|
+
SourceVpce = Shapes::StringShape.new(name: 'SourceVpce')
|
|
85
|
+
StatementId = Shapes::StringShape.new(name: 'StatementId')
|
|
33
86
|
String = Shapes::StringShape.new(name: 'String')
|
|
87
|
+
TargetId = Shapes::StringShape.new(name: 'TargetId')
|
|
88
|
+
TokenExpiresIn = Shapes::IntegerShape.new(name: 'TokenExpiresIn')
|
|
34
89
|
TokenType = Shapes::StringShape.new(name: 'TokenType')
|
|
90
|
+
TokenTypeHint = Shapes::StringShape.new(name: 'TokenTypeHint')
|
|
35
91
|
TooManyRequestsError = Shapes::StructureShape.new(name: 'TooManyRequestsError')
|
|
36
92
|
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
|
93
|
+
VpcSourceIp = Shapes::StringShape.new(name: 'VpcSourceIp')
|
|
37
94
|
|
|
38
95
|
AccessDeniedException.add_member(:error, Shapes::ShapeRef.new(shape: OAuth2ErrorCode, required: true, location_name: "error"))
|
|
39
96
|
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
@@ -44,6 +101,18 @@ module Aws::Signin
|
|
|
44
101
|
AccessToken.add_member(:session_token, Shapes::ShapeRef.new(shape: String, required: true, location_name: "sessionToken"))
|
|
45
102
|
AccessToken.struct_class = Types::AccessToken
|
|
46
103
|
|
|
104
|
+
Condition.key = Shapes::ShapeRef.new(shape: String)
|
|
105
|
+
Condition.value = Shapes::ShapeRef.new(shape: ConditionValues)
|
|
106
|
+
|
|
107
|
+
ConditionBlock.key = Shapes::ShapeRef.new(shape: ConditionType)
|
|
108
|
+
ConditionBlock.value = Shapes::ShapeRef.new(shape: Condition)
|
|
109
|
+
|
|
110
|
+
ConditionValues.member = Shapes::ShapeRef.new(shape: String)
|
|
111
|
+
|
|
112
|
+
ConflictException.add_member(:error, Shapes::ShapeRef.new(shape: OAuth2ErrorCode, required: true, location_name: "error"))
|
|
113
|
+
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
114
|
+
ConflictException.struct_class = Types::ConflictException
|
|
115
|
+
|
|
47
116
|
CreateOAuth2TokenRequest.add_member(:token_input, Shapes::ShapeRef.new(shape: CreateOAuth2TokenRequestBody, required: true, location_name: "tokenInput"))
|
|
48
117
|
CreateOAuth2TokenRequest.struct_class = Types::CreateOAuth2TokenRequest
|
|
49
118
|
CreateOAuth2TokenRequest[:payload] = :token_input
|
|
@@ -69,10 +138,132 @@ module Aws::Signin
|
|
|
69
138
|
CreateOAuth2TokenResponseBody.add_member(:id_token, Shapes::ShapeRef.new(shape: IdToken, location_name: "idToken"))
|
|
70
139
|
CreateOAuth2TokenResponseBody.struct_class = Types::CreateOAuth2TokenResponseBody
|
|
71
140
|
|
|
141
|
+
CreateOAuth2TokenWithIAMRequest.add_member(:grant_type, Shapes::ShapeRef.new(shape: ClientCredentialsGrantType, required: true, location_name: "grant_type"))
|
|
142
|
+
CreateOAuth2TokenWithIAMRequest.add_member(:resource, Shapes::ShapeRef.new(shape: CreateOAuth2TokenWithIAMRequestResourceString, required: true, location_name: "resource"))
|
|
143
|
+
CreateOAuth2TokenWithIAMRequest.struct_class = Types::CreateOAuth2TokenWithIAMRequest
|
|
144
|
+
|
|
145
|
+
CreateOAuth2TokenWithIAMResponse.add_member(:access_token, Shapes::ShapeRef.new(shape: OAuthAccessToken, required: true, location_name: "access_token"))
|
|
146
|
+
CreateOAuth2TokenWithIAMResponse.add_member(:token_type, Shapes::ShapeRef.new(shape: BearerTokenType, required: true, location_name: "token_type"))
|
|
147
|
+
CreateOAuth2TokenWithIAMResponse.add_member(:expires_in, Shapes::ShapeRef.new(shape: TokenExpiresIn, required: true, location_name: "expires_in"))
|
|
148
|
+
CreateOAuth2TokenWithIAMResponse.struct_class = Types::CreateOAuth2TokenWithIAMResponse
|
|
149
|
+
|
|
150
|
+
DeleteConsoleAuthorizationConfigurationInput.add_member(:target_id, Shapes::ShapeRef.new(shape: TargetId, location_name: "targetId"))
|
|
151
|
+
DeleteConsoleAuthorizationConfigurationInput.struct_class = Types::DeleteConsoleAuthorizationConfigurationInput
|
|
152
|
+
|
|
153
|
+
DeleteConsoleAuthorizationConfigurationOutput.add_member(:target_id, Shapes::ShapeRef.new(shape: TargetId, required: true, location_name: "targetId"))
|
|
154
|
+
DeleteConsoleAuthorizationConfigurationOutput.add_member(:scope, Shapes::ShapeRef.new(shape: String, required: true, location_name: "scope"))
|
|
155
|
+
DeleteConsoleAuthorizationConfigurationOutput.add_member(:console_authorization_enabled, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "consoleAuthorizationEnabled"))
|
|
156
|
+
DeleteConsoleAuthorizationConfigurationOutput.struct_class = Types::DeleteConsoleAuthorizationConfigurationOutput
|
|
157
|
+
|
|
158
|
+
DeleteResourcePermissionStatementInput.add_member(:statement_id, Shapes::ShapeRef.new(shape: StatementId, required: true, location_name: "statementId"))
|
|
159
|
+
DeleteResourcePermissionStatementInput.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
|
|
160
|
+
DeleteResourcePermissionStatementInput.struct_class = Types::DeleteResourcePermissionStatementInput
|
|
161
|
+
|
|
162
|
+
DeleteResourcePermissionStatementOutput.struct_class = Types::DeleteResourcePermissionStatementOutput
|
|
163
|
+
|
|
164
|
+
GetConsoleAuthorizationConfigurationInput.add_member(:target_id, Shapes::ShapeRef.new(shape: TargetId, location_name: "targetId"))
|
|
165
|
+
GetConsoleAuthorizationConfigurationInput.struct_class = Types::GetConsoleAuthorizationConfigurationInput
|
|
166
|
+
|
|
167
|
+
GetConsoleAuthorizationConfigurationOutput.add_member(:target_id, Shapes::ShapeRef.new(shape: TargetId, required: true, location_name: "targetId"))
|
|
168
|
+
GetConsoleAuthorizationConfigurationOutput.add_member(:scope, Shapes::ShapeRef.new(shape: String, required: true, location_name: "scope"))
|
|
169
|
+
GetConsoleAuthorizationConfigurationOutput.add_member(:console_authorization_enabled, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "consoleAuthorizationEnabled"))
|
|
170
|
+
GetConsoleAuthorizationConfigurationOutput.struct_class = Types::GetConsoleAuthorizationConfigurationOutput
|
|
171
|
+
|
|
172
|
+
GetResourcePolicyInput.struct_class = Types::GetResourcePolicyInput
|
|
173
|
+
|
|
174
|
+
GetResourcePolicyOutput.add_member(:signin_resource_based_policy, Shapes::ShapeRef.new(shape: SigninResourceBasedPolicy, required: true, location_name: "signinResourceBasedPolicy"))
|
|
175
|
+
GetResourcePolicyOutput.struct_class = Types::GetResourcePolicyOutput
|
|
176
|
+
|
|
72
177
|
InternalServerException.add_member(:error, Shapes::ShapeRef.new(shape: OAuth2ErrorCode, required: true, location_name: "error"))
|
|
73
178
|
InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
74
179
|
InternalServerException.struct_class = Types::InternalServerException
|
|
75
180
|
|
|
181
|
+
IntrospectOAuth2TokenWithIAMRequest.add_member(:token, Shapes::ShapeRef.new(shape: IntrospectionToken, required: true, location_name: "token"))
|
|
182
|
+
IntrospectOAuth2TokenWithIAMRequest.add_member(:token_type_hint, Shapes::ShapeRef.new(shape: TokenTypeHint, location_name: "token_type_hint"))
|
|
183
|
+
IntrospectOAuth2TokenWithIAMRequest.struct_class = Types::IntrospectOAuth2TokenWithIAMRequest
|
|
184
|
+
|
|
185
|
+
IntrospectOAuth2TokenWithIAMResponse.add_member(:active, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "active"))
|
|
186
|
+
IntrospectOAuth2TokenWithIAMResponse.add_member(:client_id, Shapes::ShapeRef.new(shape: String, location_name: "client_id"))
|
|
187
|
+
IntrospectOAuth2TokenWithIAMResponse.add_member(:user_id, Shapes::ShapeRef.new(shape: String, location_name: "user_id"))
|
|
188
|
+
IntrospectOAuth2TokenWithIAMResponse.add_member(:token_type, Shapes::ShapeRef.new(shape: IntrospectedTokenType, location_name: "token_type"))
|
|
189
|
+
IntrospectOAuth2TokenWithIAMResponse.add_member(:exp, Shapes::ShapeRef.new(shape: Long, location_name: "exp"))
|
|
190
|
+
IntrospectOAuth2TokenWithIAMResponse.add_member(:iat, Shapes::ShapeRef.new(shape: Long, location_name: "iat"))
|
|
191
|
+
IntrospectOAuth2TokenWithIAMResponse.add_member(:nbf, Shapes::ShapeRef.new(shape: Long, location_name: "nbf"))
|
|
192
|
+
IntrospectOAuth2TokenWithIAMResponse.add_member(:sub, Shapes::ShapeRef.new(shape: String, location_name: "sub"))
|
|
193
|
+
IntrospectOAuth2TokenWithIAMResponse.add_member(:aud, Shapes::ShapeRef.new(shape: String, location_name: "aud"))
|
|
194
|
+
IntrospectOAuth2TokenWithIAMResponse.add_member(:iss, Shapes::ShapeRef.new(shape: String, location_name: "iss"))
|
|
195
|
+
IntrospectOAuth2TokenWithIAMResponse.add_member(:jti, Shapes::ShapeRef.new(shape: String, location_name: "jti"))
|
|
196
|
+
IntrospectOAuth2TokenWithIAMResponse.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "account_id"))
|
|
197
|
+
IntrospectOAuth2TokenWithIAMResponse.add_member(:signin_session, Shapes::ShapeRef.new(shape: String, location_name: "signin_session"))
|
|
198
|
+
IntrospectOAuth2TokenWithIAMResponse.add_member(:resource, Shapes::ShapeRef.new(shape: String, location_name: "resource"))
|
|
199
|
+
IntrospectOAuth2TokenWithIAMResponse.struct_class = Types::IntrospectOAuth2TokenWithIAMResponse
|
|
200
|
+
|
|
201
|
+
ListResourcePermissionStatementsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ConsolePermissionMaxResults, location_name: "maxResults"))
|
|
202
|
+
ListResourcePermissionStatementsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
|
203
|
+
ListResourcePermissionStatementsInput.struct_class = Types::ListResourcePermissionStatementsInput
|
|
204
|
+
|
|
205
|
+
ListResourcePermissionStatementsOutput.add_member(:permission_statements, Shapes::ShapeRef.new(shape: PermissionStatementSummaries, required: true, location_name: "permissionStatements"))
|
|
206
|
+
ListResourcePermissionStatementsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
|
207
|
+
ListResourcePermissionStatementsOutput.struct_class = Types::ListResourcePermissionStatementsOutput
|
|
208
|
+
|
|
209
|
+
PermissionStatementSummaries.member = Shapes::ShapeRef.new(shape: PermissionStatementSummary)
|
|
210
|
+
|
|
211
|
+
PermissionStatementSummary.add_member(:sid, Shapes::ShapeRef.new(shape: StatementId, required: true, location_name: "sid"))
|
|
212
|
+
PermissionStatementSummary.add_member(:condition, Shapes::ShapeRef.new(shape: ConditionBlock, location_name: "condition"))
|
|
213
|
+
PermissionStatementSummary.struct_class = Types::PermissionStatementSummary
|
|
214
|
+
|
|
215
|
+
PolicyActions.member = Shapes::ShapeRef.new(shape: String)
|
|
216
|
+
|
|
217
|
+
PolicyStatement.add_member(:effect, Shapes::ShapeRef.new(shape: String, location_name: "Effect"))
|
|
218
|
+
PolicyStatement.add_member(:principal, Shapes::ShapeRef.new(shape: Principal, location_name: "Principal"))
|
|
219
|
+
PolicyStatement.add_member(:action, Shapes::ShapeRef.new(shape: PolicyActions, location_name: "Action"))
|
|
220
|
+
PolicyStatement.add_member(:resource, Shapes::ShapeRef.new(shape: String, location_name: "Resource"))
|
|
221
|
+
PolicyStatement.add_member(:condition, Shapes::ShapeRef.new(shape: ConditionBlock, location_name: "Condition"))
|
|
222
|
+
PolicyStatement.struct_class = Types::PolicyStatement
|
|
223
|
+
|
|
224
|
+
PolicyStatements.member = Shapes::ShapeRef.new(shape: PolicyStatement)
|
|
225
|
+
|
|
226
|
+
Principal.key = Shapes::ShapeRef.new(shape: String)
|
|
227
|
+
Principal.value = Shapes::ShapeRef.new(shape: String)
|
|
228
|
+
|
|
229
|
+
PutConsoleAuthorizationConfigurationInput.add_member(:target_id, Shapes::ShapeRef.new(shape: TargetId, location_name: "targetId"))
|
|
230
|
+
PutConsoleAuthorizationConfigurationInput.struct_class = Types::PutConsoleAuthorizationConfigurationInput
|
|
231
|
+
|
|
232
|
+
PutConsoleAuthorizationConfigurationOutput.add_member(:target_id, Shapes::ShapeRef.new(shape: TargetId, required: true, location_name: "targetId"))
|
|
233
|
+
PutConsoleAuthorizationConfigurationOutput.add_member(:scope, Shapes::ShapeRef.new(shape: String, required: true, location_name: "scope"))
|
|
234
|
+
PutConsoleAuthorizationConfigurationOutput.add_member(:console_authorization_enabled, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "consoleAuthorizationEnabled"))
|
|
235
|
+
PutConsoleAuthorizationConfigurationOutput.struct_class = Types::PutConsoleAuthorizationConfigurationOutput
|
|
236
|
+
|
|
237
|
+
PutResourcePermissionStatementInput.add_member(:source_vpc, Shapes::ShapeRef.new(shape: SourceVpc, location_name: "sourceVpc"))
|
|
238
|
+
PutResourcePermissionStatementInput.add_member(:signin_source_vpce, Shapes::ShapeRef.new(shape: SourceVpce, location_name: "signinSourceVpce"))
|
|
239
|
+
PutResourcePermissionStatementInput.add_member(:console_source_vpce, Shapes::ShapeRef.new(shape: SourceVpce, location_name: "consoleSourceVpce"))
|
|
240
|
+
PutResourcePermissionStatementInput.add_member(:vpc_source_ip, Shapes::ShapeRef.new(shape: VpcSourceIp, location_name: "vpcSourceIp"))
|
|
241
|
+
PutResourcePermissionStatementInput.add_member(:source_ip, Shapes::ShapeRef.new(shape: SourceIp, location_name: "sourceIp"))
|
|
242
|
+
PutResourcePermissionStatementInput.add_member(:requested_region, Shapes::ShapeRef.new(shape: RequestedRegion, location_name: "requestedRegion"))
|
|
243
|
+
PutResourcePermissionStatementInput.add_member(:excluded_principal, Shapes::ShapeRef.new(shape: ExcludedPrincipal, location_name: "excludedPrincipal"))
|
|
244
|
+
PutResourcePermissionStatementInput.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
|
|
245
|
+
PutResourcePermissionStatementInput.struct_class = Types::PutResourcePermissionStatementInput
|
|
246
|
+
|
|
247
|
+
PutResourcePermissionStatementOutput.add_member(:statement_id, Shapes::ShapeRef.new(shape: StatementId, required: true, location_name: "statementId"))
|
|
248
|
+
PutResourcePermissionStatementOutput.struct_class = Types::PutResourcePermissionStatementOutput
|
|
249
|
+
|
|
250
|
+
ResourceNotFoundException.add_member(:error, Shapes::ShapeRef.new(shape: OAuth2ErrorCode, required: true, location_name: "error"))
|
|
251
|
+
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
252
|
+
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
|
253
|
+
|
|
254
|
+
RevokeOAuth2TokenWithIAMRequest.add_member(:token, Shapes::ShapeRef.new(shape: RevocationToken, required: true, location_name: "token"))
|
|
255
|
+
RevokeOAuth2TokenWithIAMRequest.struct_class = Types::RevokeOAuth2TokenWithIAMRequest
|
|
256
|
+
|
|
257
|
+
RevokeOAuth2TokenWithIAMResponse.struct_class = Types::RevokeOAuth2TokenWithIAMResponse
|
|
258
|
+
|
|
259
|
+
ServiceQuotaExceededException.add_member(:error, Shapes::ShapeRef.new(shape: OAuth2ErrorCode, required: true, location_name: "error"))
|
|
260
|
+
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
261
|
+
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
|
262
|
+
|
|
263
|
+
SigninResourceBasedPolicy.add_member(:version, Shapes::ShapeRef.new(shape: String, location_name: "Version"))
|
|
264
|
+
SigninResourceBasedPolicy.add_member(:statement, Shapes::ShapeRef.new(shape: PolicyStatements, location_name: "Statement"))
|
|
265
|
+
SigninResourceBasedPolicy.struct_class = Types::SigninResourceBasedPolicy
|
|
266
|
+
|
|
76
267
|
TooManyRequestsError.add_member(:error, Shapes::ShapeRef.new(shape: OAuth2ErrorCode, required: true, location_name: "error"))
|
|
77
268
|
TooManyRequestsError.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
78
269
|
TooManyRequestsError.struct_class = Types::TooManyRequestsError
|
|
@@ -113,6 +304,140 @@ module Aws::Signin
|
|
|
113
304
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
114
305
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
115
306
|
end)
|
|
307
|
+
|
|
308
|
+
api.add_operation(:create_o_auth_2_token_with_iam, Seahorse::Model::Operation.new.tap do |o|
|
|
309
|
+
o.name = "CreateOAuth2TokenWithIAM"
|
|
310
|
+
o.http_method = "POST"
|
|
311
|
+
o.http_request_uri = "/v1/token?x-amz-client-auth-method=iam"
|
|
312
|
+
o.input = Shapes::ShapeRef.new(shape: CreateOAuth2TokenWithIAMRequest)
|
|
313
|
+
o.output = Shapes::ShapeRef.new(shape: CreateOAuth2TokenWithIAMResponse)
|
|
314
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
|
|
315
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
316
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
317
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
318
|
+
end)
|
|
319
|
+
|
|
320
|
+
api.add_operation(:delete_console_authorization_configuration, Seahorse::Model::Operation.new.tap do |o|
|
|
321
|
+
o.name = "DeleteConsoleAuthorizationConfiguration"
|
|
322
|
+
o.http_method = "POST"
|
|
323
|
+
o.http_request_uri = "/delete-console-authorization-configuration"
|
|
324
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteConsoleAuthorizationConfigurationInput)
|
|
325
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteConsoleAuthorizationConfigurationOutput)
|
|
326
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
|
|
327
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
328
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
329
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
330
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
331
|
+
end)
|
|
332
|
+
|
|
333
|
+
api.add_operation(:delete_resource_permission_statement, Seahorse::Model::Operation.new.tap do |o|
|
|
334
|
+
o.name = "DeleteResourcePermissionStatement"
|
|
335
|
+
o.http_method = "POST"
|
|
336
|
+
o.http_request_uri = "/delete-resource-permission-statement"
|
|
337
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteResourcePermissionStatementInput)
|
|
338
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteResourcePermissionStatementOutput)
|
|
339
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
|
|
340
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
341
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
342
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
343
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
344
|
+
end)
|
|
345
|
+
|
|
346
|
+
api.add_operation(:get_console_authorization_configuration, Seahorse::Model::Operation.new.tap do |o|
|
|
347
|
+
o.name = "GetConsoleAuthorizationConfiguration"
|
|
348
|
+
o.http_method = "POST"
|
|
349
|
+
o.http_request_uri = "/get-console-authorization-configuration"
|
|
350
|
+
o.input = Shapes::ShapeRef.new(shape: GetConsoleAuthorizationConfigurationInput)
|
|
351
|
+
o.output = Shapes::ShapeRef.new(shape: GetConsoleAuthorizationConfigurationOutput)
|
|
352
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
|
|
353
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
354
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
355
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
356
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
357
|
+
end)
|
|
358
|
+
|
|
359
|
+
api.add_operation(:get_resource_policy, Seahorse::Model::Operation.new.tap do |o|
|
|
360
|
+
o.name = "GetResourcePolicy"
|
|
361
|
+
o.http_method = "POST"
|
|
362
|
+
o.http_request_uri = "/get-resource-policy"
|
|
363
|
+
o.input = Shapes::ShapeRef.new(shape: GetResourcePolicyInput)
|
|
364
|
+
o.output = Shapes::ShapeRef.new(shape: GetResourcePolicyOutput)
|
|
365
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
|
|
366
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
367
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
368
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
369
|
+
end)
|
|
370
|
+
|
|
371
|
+
api.add_operation(:introspect_o_auth_2_token_with_iam, Seahorse::Model::Operation.new.tap do |o|
|
|
372
|
+
o.name = "IntrospectOAuth2TokenWithIAM"
|
|
373
|
+
o.http_method = "POST"
|
|
374
|
+
o.http_request_uri = "/v1/introspect?x-amz-client-auth-method=iam"
|
|
375
|
+
o.input = Shapes::ShapeRef.new(shape: IntrospectOAuth2TokenWithIAMRequest)
|
|
376
|
+
o.output = Shapes::ShapeRef.new(shape: IntrospectOAuth2TokenWithIAMResponse)
|
|
377
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
|
|
378
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
379
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
380
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
381
|
+
end)
|
|
382
|
+
|
|
383
|
+
api.add_operation(:list_resource_permission_statements, Seahorse::Model::Operation.new.tap do |o|
|
|
384
|
+
o.name = "ListResourcePermissionStatements"
|
|
385
|
+
o.http_method = "POST"
|
|
386
|
+
o.http_request_uri = "/list-resource-permission-statements"
|
|
387
|
+
o.input = Shapes::ShapeRef.new(shape: ListResourcePermissionStatementsInput)
|
|
388
|
+
o.output = Shapes::ShapeRef.new(shape: ListResourcePermissionStatementsOutput)
|
|
389
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
|
|
390
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
391
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
392
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
393
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
394
|
+
o[:pager] = Aws::Pager.new(
|
|
395
|
+
limit_key: "max_results",
|
|
396
|
+
tokens: {
|
|
397
|
+
"next_token" => "next_token"
|
|
398
|
+
}
|
|
399
|
+
)
|
|
400
|
+
end)
|
|
401
|
+
|
|
402
|
+
api.add_operation(:put_console_authorization_configuration, Seahorse::Model::Operation.new.tap do |o|
|
|
403
|
+
o.name = "PutConsoleAuthorizationConfiguration"
|
|
404
|
+
o.http_method = "POST"
|
|
405
|
+
o.http_request_uri = "/put-console-authorization-configuration"
|
|
406
|
+
o.input = Shapes::ShapeRef.new(shape: PutConsoleAuthorizationConfigurationInput)
|
|
407
|
+
o.output = Shapes::ShapeRef.new(shape: PutConsoleAuthorizationConfigurationOutput)
|
|
408
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
|
|
409
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
|
410
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
411
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
412
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
413
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
414
|
+
end)
|
|
415
|
+
|
|
416
|
+
api.add_operation(:put_resource_permission_statement, Seahorse::Model::Operation.new.tap do |o|
|
|
417
|
+
o.name = "PutResourcePermissionStatement"
|
|
418
|
+
o.http_method = "POST"
|
|
419
|
+
o.http_request_uri = "/put-resource-permission-statement"
|
|
420
|
+
o.input = Shapes::ShapeRef.new(shape: PutResourcePermissionStatementInput)
|
|
421
|
+
o.output = Shapes::ShapeRef.new(shape: PutResourcePermissionStatementOutput)
|
|
422
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
|
|
423
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
|
424
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
|
425
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
426
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
427
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
428
|
+
end)
|
|
429
|
+
|
|
430
|
+
api.add_operation(:revoke_o_auth_2_token_with_iam, Seahorse::Model::Operation.new.tap do |o|
|
|
431
|
+
o.name = "RevokeOAuth2TokenWithIAM"
|
|
432
|
+
o.http_method = "POST"
|
|
433
|
+
o.http_request_uri = "/v1/revoke?x-amz-client-auth-method=iam"
|
|
434
|
+
o.input = Shapes::ShapeRef.new(shape: RevokeOAuth2TokenWithIAMRequest)
|
|
435
|
+
o.output = Shapes::ShapeRef.new(shape: RevokeOAuth2TokenWithIAMResponse)
|
|
436
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
|
|
437
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
438
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
439
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
440
|
+
end)
|
|
116
441
|
end
|
|
117
442
|
|
|
118
443
|
end
|
|
@@ -30,11 +30,23 @@ module Aws::Signin
|
|
|
30
30
|
#
|
|
31
31
|
# @return [string]
|
|
32
32
|
#
|
|
33
|
+
# @!attribute is_control_plane
|
|
34
|
+
# Indicates if the operation targets the control plane endpoint
|
|
35
|
+
#
|
|
36
|
+
# @return [boolean]
|
|
37
|
+
#
|
|
38
|
+
# @!attribute is_o_auth_endpoint
|
|
39
|
+
# Indicates if the operation targets the OAuth token endpoint
|
|
40
|
+
#
|
|
41
|
+
# @return [boolean]
|
|
42
|
+
#
|
|
33
43
|
EndpointParameters = Struct.new(
|
|
34
44
|
:use_dual_stack,
|
|
35
45
|
:use_fips,
|
|
36
46
|
:endpoint,
|
|
37
47
|
:region,
|
|
48
|
+
:is_control_plane,
|
|
49
|
+
:is_o_auth_endpoint,
|
|
38
50
|
) do
|
|
39
51
|
include Aws::Structure
|
|
40
52
|
|
|
@@ -45,6 +57,8 @@ module Aws::Signin
|
|
|
45
57
|
'UseFIPS' => :use_fips,
|
|
46
58
|
'Endpoint' => :endpoint,
|
|
47
59
|
'Region' => :region,
|
|
60
|
+
'IsControlPlane' => :is_control_plane,
|
|
61
|
+
'IsOAuthEndpoint' => :is_o_auth_endpoint,
|
|
48
62
|
}.freeze
|
|
49
63
|
end
|
|
50
64
|
|
|
@@ -55,6 +69,8 @@ module Aws::Signin
|
|
|
55
69
|
self[:use_fips] = false if self[:use_fips].nil?
|
|
56
70
|
self[:endpoint] = options[:endpoint]
|
|
57
71
|
self[:region] = options[:region]
|
|
72
|
+
self[:is_control_plane] = options[:is_control_plane]
|
|
73
|
+
self[:is_o_auth_endpoint] = options[:is_o_auth_endpoint]
|
|
58
74
|
end
|
|
59
75
|
|
|
60
76
|
def self.create(config, options={})
|
|
@@ -10,6 +10,54 @@
|
|
|
10
10
|
module Aws::Signin
|
|
11
11
|
class EndpointProvider
|
|
12
12
|
def resolve_endpoint(parameters)
|
|
13
|
+
if Aws::Endpoints::Matchers.set?(parameters.is_control_plane) && Aws::Endpoints::Matchers.boolean_equals?(parameters.is_control_plane, true) && Aws::Endpoints::Matchers.set?(parameters.region) && (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
|
|
14
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws")
|
|
15
|
+
return Aws::Endpoints::Endpoint.new(url: "https://signin.#{parameters.region}.api.aws", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingName" => "signin", "signingRegion" => "#{parameters.region}"}]})
|
|
16
|
+
end
|
|
17
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-cn")
|
|
18
|
+
return Aws::Endpoints::Endpoint.new(url: "https://signin.#{parameters.region}.api.amazonwebservices.com.cn", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingName" => "signin", "signingRegion" => "#{parameters.region}"}]})
|
|
19
|
+
end
|
|
20
|
+
return Aws::Endpoints::Endpoint.new(url: "https://signin.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingName" => "signin", "signingRegion" => "#{parameters.region}"}]})
|
|
21
|
+
end
|
|
22
|
+
if Aws::Endpoints::Matchers.set?(parameters.is_o_auth_endpoint) && Aws::Endpoints::Matchers.boolean_equals?(parameters.is_o_auth_endpoint, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
|
23
|
+
raise ArgumentError, "FIPS endpoints are not supported for OAuth operations. Disable FIPS or use a non-OAuth operation."
|
|
24
|
+
end
|
|
25
|
+
if Aws::Endpoints::Matchers.set?(parameters.is_o_auth_endpoint) && Aws::Endpoints::Matchers.boolean_equals?(parameters.is_o_auth_endpoint, true) && Aws::Endpoints::Matchers.set?(parameters.region) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(parameters.endpoint)) && (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region)) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws")
|
|
26
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.region}.oauth.signin.aws", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingName" => "signin", "signingRegion" => "#{parameters.region}"}]})
|
|
27
|
+
end
|
|
28
|
+
if Aws::Endpoints::Matchers.set?(parameters.region) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(parameters.endpoint)) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false) && (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region)) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws")
|
|
29
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.region}.signin.aws.amazon.com", headers: {}, properties: {})
|
|
30
|
+
end
|
|
31
|
+
if Aws::Endpoints::Matchers.set?(parameters.region) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(parameters.endpoint)) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false) && (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region)) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-cn")
|
|
32
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.region}.signin.amazonaws.cn", headers: {}, properties: {})
|
|
33
|
+
end
|
|
34
|
+
if Aws::Endpoints::Matchers.set?(parameters.region) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(parameters.endpoint)) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false) && (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region)) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov")
|
|
35
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.region}.signin.amazonaws-us-gov.com", headers: {}, properties: {})
|
|
36
|
+
end
|
|
37
|
+
if Aws::Endpoints::Matchers.set?(parameters.region) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(parameters.endpoint)) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false) && (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region)) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso")
|
|
38
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.region}.signin.c2shome.ic.gov", headers: {}, properties: {})
|
|
39
|
+
end
|
|
40
|
+
if Aws::Endpoints::Matchers.set?(parameters.region) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(parameters.endpoint)) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false) && (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region)) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso-b")
|
|
41
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.region}.signin.sc2shome.sgov.gov", headers: {}, properties: {})
|
|
42
|
+
end
|
|
43
|
+
if Aws::Endpoints::Matchers.set?(parameters.region) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(parameters.endpoint)) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false) && (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region)) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso-f")
|
|
44
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.region}.signin.csphome.hci.ic.gov", headers: {}, properties: {})
|
|
45
|
+
end
|
|
46
|
+
if Aws::Endpoints::Matchers.set?(parameters.region) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(parameters.endpoint)) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false) && (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region)) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso-e")
|
|
47
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.region}.signin.csphome.adc-e.uk", headers: {}, properties: {})
|
|
48
|
+
end
|
|
49
|
+
if Aws::Endpoints::Matchers.set?(parameters.region) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(parameters.endpoint)) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false) && (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region)) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-eusc")
|
|
50
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.region}.signin.amazonaws-eusc.eu", headers: {}, properties: {})
|
|
51
|
+
end
|
|
52
|
+
if Aws::Endpoints::Matchers.set?(parameters.region) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(parameters.endpoint)) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false) && Aws::Endpoints::Matchers.string_equals?(parameters.region, "us-gov-west-1")
|
|
53
|
+
return Aws::Endpoints::Endpoint.new(url: "https://signin-fips.amazonaws-us-gov.com", headers: {}, properties: {})
|
|
54
|
+
end
|
|
55
|
+
if Aws::Endpoints::Matchers.set?(parameters.region) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(parameters.endpoint)) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false) && (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region)) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov")
|
|
56
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.region}.signin-fips.amazonaws-us-gov.com", headers: {}, properties: {})
|
|
57
|
+
end
|
|
58
|
+
if Aws::Endpoints::Matchers.set?(parameters.region) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(parameters.endpoint)) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false) && (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
|
|
59
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.region}.signin.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
60
|
+
end
|
|
13
61
|
if Aws::Endpoints::Matchers.set?(parameters.endpoint)
|
|
14
62
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
|
15
63
|
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
|
@@ -12,9 +12,122 @@ module Aws::Signin
|
|
|
12
12
|
# @api private
|
|
13
13
|
module Endpoints
|
|
14
14
|
|
|
15
|
+
class CreateOAuth2TokenWithIAM
|
|
16
|
+
def self.build(context)
|
|
17
|
+
Aws::Signin::EndpointParameters.create(
|
|
18
|
+
context.config,
|
|
19
|
+
is_o_auth_endpoint: true,
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
class DeleteConsoleAuthorizationConfiguration
|
|
25
|
+
def self.build(context)
|
|
26
|
+
Aws::Signin::EndpointParameters.create(
|
|
27
|
+
context.config,
|
|
28
|
+
is_control_plane: true,
|
|
29
|
+
)
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
class DeleteResourcePermissionStatement
|
|
34
|
+
def self.build(context)
|
|
35
|
+
Aws::Signin::EndpointParameters.create(
|
|
36
|
+
context.config,
|
|
37
|
+
is_control_plane: true,
|
|
38
|
+
)
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
class GetConsoleAuthorizationConfiguration
|
|
43
|
+
def self.build(context)
|
|
44
|
+
Aws::Signin::EndpointParameters.create(
|
|
45
|
+
context.config,
|
|
46
|
+
is_control_plane: true,
|
|
47
|
+
)
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
class GetResourcePolicy
|
|
52
|
+
def self.build(context)
|
|
53
|
+
Aws::Signin::EndpointParameters.create(
|
|
54
|
+
context.config,
|
|
55
|
+
is_control_plane: true,
|
|
56
|
+
)
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
class IntrospectOAuth2TokenWithIAM
|
|
61
|
+
def self.build(context)
|
|
62
|
+
Aws::Signin::EndpointParameters.create(
|
|
63
|
+
context.config,
|
|
64
|
+
is_o_auth_endpoint: true,
|
|
65
|
+
)
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
class ListResourcePermissionStatements
|
|
70
|
+
def self.build(context)
|
|
71
|
+
Aws::Signin::EndpointParameters.create(
|
|
72
|
+
context.config,
|
|
73
|
+
is_control_plane: true,
|
|
74
|
+
)
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
class PutConsoleAuthorizationConfiguration
|
|
79
|
+
def self.build(context)
|
|
80
|
+
Aws::Signin::EndpointParameters.create(
|
|
81
|
+
context.config,
|
|
82
|
+
is_control_plane: true,
|
|
83
|
+
)
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
class PutResourcePermissionStatement
|
|
88
|
+
def self.build(context)
|
|
89
|
+
Aws::Signin::EndpointParameters.create(
|
|
90
|
+
context.config,
|
|
91
|
+
is_control_plane: true,
|
|
92
|
+
)
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
class RevokeOAuth2TokenWithIAM
|
|
97
|
+
def self.build(context)
|
|
98
|
+
Aws::Signin::EndpointParameters.create(
|
|
99
|
+
context.config,
|
|
100
|
+
is_o_auth_endpoint: true,
|
|
101
|
+
)
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
|
|
15
105
|
|
|
16
106
|
def self.parameters_for_operation(context)
|
|
17
|
-
|
|
107
|
+
case context.operation_name
|
|
108
|
+
when :create_o_auth_2_token_with_iam
|
|
109
|
+
CreateOAuth2TokenWithIAM.build(context)
|
|
110
|
+
when :delete_console_authorization_configuration
|
|
111
|
+
DeleteConsoleAuthorizationConfiguration.build(context)
|
|
112
|
+
when :delete_resource_permission_statement
|
|
113
|
+
DeleteResourcePermissionStatement.build(context)
|
|
114
|
+
when :get_console_authorization_configuration
|
|
115
|
+
GetConsoleAuthorizationConfiguration.build(context)
|
|
116
|
+
when :get_resource_policy
|
|
117
|
+
GetResourcePolicy.build(context)
|
|
118
|
+
when :introspect_o_auth_2_token_with_iam
|
|
119
|
+
IntrospectOAuth2TokenWithIAM.build(context)
|
|
120
|
+
when :list_resource_permission_statements
|
|
121
|
+
ListResourcePermissionStatements.build(context)
|
|
122
|
+
when :put_console_authorization_configuration
|
|
123
|
+
PutConsoleAuthorizationConfiguration.build(context)
|
|
124
|
+
when :put_resource_permission_statement
|
|
125
|
+
PutResourcePermissionStatement.build(context)
|
|
126
|
+
when :revoke_o_auth_2_token_with_iam
|
|
127
|
+
RevokeOAuth2TokenWithIAM.build(context)
|
|
128
|
+
else
|
|
129
|
+
Aws::Signin::EndpointParameters.create(context.config)
|
|
130
|
+
end
|
|
18
131
|
end
|
|
19
132
|
end
|
|
20
133
|
end
|