aws-sdk-core 3.249.0 → 3.252.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.
@@ -17,23 +17,63 @@ module Aws::Signin
17
17
  AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
18
18
  AccessToken = Shapes::StructureShape.new(name: 'AccessToken')
19
19
  AuthorizationCode = Shapes::StringShape.new(name: 'AuthorizationCode')
20
+ Boolean = Shapes::BooleanShape.new(name: 'Boolean')
20
21
  ClientId = Shapes::StringShape.new(name: 'ClientId')
22
+ ClientToken = Shapes::StringShape.new(name: 'ClientToken')
21
23
  CodeVerifier = Shapes::StringShape.new(name: 'CodeVerifier')
24
+ Condition = Shapes::MapShape.new(name: 'Condition')
25
+ ConditionBlock = Shapes::MapShape.new(name: 'ConditionBlock')
26
+ ConditionType = Shapes::StringShape.new(name: 'ConditionType')
27
+ ConditionValues = Shapes::ListShape.new(name: 'ConditionValues')
28
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
29
+ ConsolePermissionMaxResults = Shapes::IntegerShape.new(name: 'ConsolePermissionMaxResults')
22
30
  CreateOAuth2TokenRequest = Shapes::StructureShape.new(name: 'CreateOAuth2TokenRequest')
23
31
  CreateOAuth2TokenRequestBody = Shapes::StructureShape.new(name: 'CreateOAuth2TokenRequestBody')
24
32
  CreateOAuth2TokenResponse = Shapes::StructureShape.new(name: 'CreateOAuth2TokenResponse')
25
33
  CreateOAuth2TokenResponseBody = Shapes::StructureShape.new(name: 'CreateOAuth2TokenResponseBody')
34
+ DeleteConsoleAuthorizationConfigurationInput = Shapes::StructureShape.new(name: 'DeleteConsoleAuthorizationConfigurationInput')
35
+ DeleteConsoleAuthorizationConfigurationOutput = Shapes::StructureShape.new(name: 'DeleteConsoleAuthorizationConfigurationOutput')
36
+ DeleteResourcePermissionStatementInput = Shapes::StructureShape.new(name: 'DeleteResourcePermissionStatementInput')
37
+ DeleteResourcePermissionStatementOutput = Shapes::StructureShape.new(name: 'DeleteResourcePermissionStatementOutput')
38
+ ExcludedPrincipal = Shapes::StringShape.new(name: 'ExcludedPrincipal')
26
39
  ExpiresIn = Shapes::IntegerShape.new(name: 'ExpiresIn')
40
+ GetConsoleAuthorizationConfigurationInput = Shapes::StructureShape.new(name: 'GetConsoleAuthorizationConfigurationInput')
41
+ GetConsoleAuthorizationConfigurationOutput = Shapes::StructureShape.new(name: 'GetConsoleAuthorizationConfigurationOutput')
42
+ GetResourcePolicyInput = Shapes::StructureShape.new(name: 'GetResourcePolicyInput')
43
+ GetResourcePolicyOutput = Shapes::StructureShape.new(name: 'GetResourcePolicyOutput')
27
44
  GrantType = Shapes::StringShape.new(name: 'GrantType')
28
45
  IdToken = Shapes::StringShape.new(name: 'IdToken')
29
46
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
47
+ ListResourcePermissionStatementsInput = Shapes::StructureShape.new(name: 'ListResourcePermissionStatementsInput')
48
+ ListResourcePermissionStatementsOutput = Shapes::StructureShape.new(name: 'ListResourcePermissionStatementsOutput')
49
+ NextToken = Shapes::StringShape.new(name: 'NextToken')
30
50
  OAuth2ErrorCode = Shapes::StringShape.new(name: 'OAuth2ErrorCode')
51
+ PermissionStatementSummaries = Shapes::ListShape.new(name: 'PermissionStatementSummaries')
52
+ PermissionStatementSummary = Shapes::StructureShape.new(name: 'PermissionStatementSummary')
53
+ PolicyActions = Shapes::ListShape.new(name: 'PolicyActions')
54
+ PolicyStatement = Shapes::StructureShape.new(name: 'PolicyStatement')
55
+ PolicyStatements = Shapes::ListShape.new(name: 'PolicyStatements')
56
+ Principal = Shapes::MapShape.new(name: 'Principal')
57
+ PutConsoleAuthorizationConfigurationInput = Shapes::StructureShape.new(name: 'PutConsoleAuthorizationConfigurationInput')
58
+ PutConsoleAuthorizationConfigurationOutput = Shapes::StructureShape.new(name: 'PutConsoleAuthorizationConfigurationOutput')
59
+ PutResourcePermissionStatementInput = Shapes::StructureShape.new(name: 'PutResourcePermissionStatementInput')
60
+ PutResourcePermissionStatementOutput = Shapes::StructureShape.new(name: 'PutResourcePermissionStatementOutput')
31
61
  RedirectUri = Shapes::StringShape.new(name: 'RedirectUri')
32
62
  RefreshToken = Shapes::StringShape.new(name: 'RefreshToken')
63
+ RequestedRegion = Shapes::StringShape.new(name: 'RequestedRegion')
64
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
65
+ ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
66
+ SigninResourceBasedPolicy = Shapes::StructureShape.new(name: 'SigninResourceBasedPolicy')
67
+ SourceIp = Shapes::StringShape.new(name: 'SourceIp')
68
+ SourceVpc = Shapes::StringShape.new(name: 'SourceVpc')
69
+ SourceVpce = Shapes::StringShape.new(name: 'SourceVpce')
70
+ StatementId = Shapes::StringShape.new(name: 'StatementId')
33
71
  String = Shapes::StringShape.new(name: 'String')
72
+ TargetId = Shapes::StringShape.new(name: 'TargetId')
34
73
  TokenType = Shapes::StringShape.new(name: 'TokenType')
35
74
  TooManyRequestsError = Shapes::StructureShape.new(name: 'TooManyRequestsError')
36
75
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
76
+ VpcSourceIp = Shapes::StringShape.new(name: 'VpcSourceIp')
37
77
 
38
78
  AccessDeniedException.add_member(:error, Shapes::ShapeRef.new(shape: OAuth2ErrorCode, required: true, location_name: "error"))
39
79
  AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
@@ -44,6 +84,18 @@ module Aws::Signin
44
84
  AccessToken.add_member(:session_token, Shapes::ShapeRef.new(shape: String, required: true, location_name: "sessionToken"))
45
85
  AccessToken.struct_class = Types::AccessToken
46
86
 
87
+ Condition.key = Shapes::ShapeRef.new(shape: String)
88
+ Condition.value = Shapes::ShapeRef.new(shape: ConditionValues)
89
+
90
+ ConditionBlock.key = Shapes::ShapeRef.new(shape: ConditionType)
91
+ ConditionBlock.value = Shapes::ShapeRef.new(shape: Condition)
92
+
93
+ ConditionValues.member = Shapes::ShapeRef.new(shape: String)
94
+
95
+ ConflictException.add_member(:error, Shapes::ShapeRef.new(shape: OAuth2ErrorCode, required: true, location_name: "error"))
96
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
97
+ ConflictException.struct_class = Types::ConflictException
98
+
47
99
  CreateOAuth2TokenRequest.add_member(:token_input, Shapes::ShapeRef.new(shape: CreateOAuth2TokenRequestBody, required: true, location_name: "tokenInput"))
48
100
  CreateOAuth2TokenRequest.struct_class = Types::CreateOAuth2TokenRequest
49
101
  CreateOAuth2TokenRequest[:payload] = :token_input
@@ -69,10 +121,98 @@ module Aws::Signin
69
121
  CreateOAuth2TokenResponseBody.add_member(:id_token, Shapes::ShapeRef.new(shape: IdToken, location_name: "idToken"))
70
122
  CreateOAuth2TokenResponseBody.struct_class = Types::CreateOAuth2TokenResponseBody
71
123
 
124
+ DeleteConsoleAuthorizationConfigurationInput.add_member(:target_id, Shapes::ShapeRef.new(shape: TargetId, location_name: "targetId"))
125
+ DeleteConsoleAuthorizationConfigurationInput.struct_class = Types::DeleteConsoleAuthorizationConfigurationInput
126
+
127
+ DeleteConsoleAuthorizationConfigurationOutput.add_member(:target_id, Shapes::ShapeRef.new(shape: TargetId, required: true, location_name: "targetId"))
128
+ DeleteConsoleAuthorizationConfigurationOutput.add_member(:scope, Shapes::ShapeRef.new(shape: String, required: true, location_name: "scope"))
129
+ DeleteConsoleAuthorizationConfigurationOutput.add_member(:console_authorization_enabled, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "consoleAuthorizationEnabled"))
130
+ DeleteConsoleAuthorizationConfigurationOutput.struct_class = Types::DeleteConsoleAuthorizationConfigurationOutput
131
+
132
+ DeleteResourcePermissionStatementInput.add_member(:statement_id, Shapes::ShapeRef.new(shape: StatementId, required: true, location_name: "statementId"))
133
+ DeleteResourcePermissionStatementInput.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
134
+ DeleteResourcePermissionStatementInput.struct_class = Types::DeleteResourcePermissionStatementInput
135
+
136
+ DeleteResourcePermissionStatementOutput.struct_class = Types::DeleteResourcePermissionStatementOutput
137
+
138
+ GetConsoleAuthorizationConfigurationInput.add_member(:target_id, Shapes::ShapeRef.new(shape: TargetId, location_name: "targetId"))
139
+ GetConsoleAuthorizationConfigurationInput.struct_class = Types::GetConsoleAuthorizationConfigurationInput
140
+
141
+ GetConsoleAuthorizationConfigurationOutput.add_member(:target_id, Shapes::ShapeRef.new(shape: TargetId, required: true, location_name: "targetId"))
142
+ GetConsoleAuthorizationConfigurationOutput.add_member(:scope, Shapes::ShapeRef.new(shape: String, required: true, location_name: "scope"))
143
+ GetConsoleAuthorizationConfigurationOutput.add_member(:console_authorization_enabled, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "consoleAuthorizationEnabled"))
144
+ GetConsoleAuthorizationConfigurationOutput.struct_class = Types::GetConsoleAuthorizationConfigurationOutput
145
+
146
+ GetResourcePolicyInput.struct_class = Types::GetResourcePolicyInput
147
+
148
+ GetResourcePolicyOutput.add_member(:signin_resource_based_policy, Shapes::ShapeRef.new(shape: SigninResourceBasedPolicy, required: true, location_name: "signinResourceBasedPolicy"))
149
+ GetResourcePolicyOutput.struct_class = Types::GetResourcePolicyOutput
150
+
72
151
  InternalServerException.add_member(:error, Shapes::ShapeRef.new(shape: OAuth2ErrorCode, required: true, location_name: "error"))
73
152
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
74
153
  InternalServerException.struct_class = Types::InternalServerException
75
154
 
155
+ ListResourcePermissionStatementsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ConsolePermissionMaxResults, location_name: "maxResults"))
156
+ ListResourcePermissionStatementsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
157
+ ListResourcePermissionStatementsInput.struct_class = Types::ListResourcePermissionStatementsInput
158
+
159
+ ListResourcePermissionStatementsOutput.add_member(:permission_statements, Shapes::ShapeRef.new(shape: PermissionStatementSummaries, required: true, location_name: "permissionStatements"))
160
+ ListResourcePermissionStatementsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
161
+ ListResourcePermissionStatementsOutput.struct_class = Types::ListResourcePermissionStatementsOutput
162
+
163
+ PermissionStatementSummaries.member = Shapes::ShapeRef.new(shape: PermissionStatementSummary)
164
+
165
+ PermissionStatementSummary.add_member(:sid, Shapes::ShapeRef.new(shape: StatementId, required: true, location_name: "sid"))
166
+ PermissionStatementSummary.add_member(:condition, Shapes::ShapeRef.new(shape: ConditionBlock, location_name: "condition"))
167
+ PermissionStatementSummary.struct_class = Types::PermissionStatementSummary
168
+
169
+ PolicyActions.member = Shapes::ShapeRef.new(shape: String)
170
+
171
+ PolicyStatement.add_member(:effect, Shapes::ShapeRef.new(shape: String, location_name: "Effect"))
172
+ PolicyStatement.add_member(:principal, Shapes::ShapeRef.new(shape: Principal, location_name: "Principal"))
173
+ PolicyStatement.add_member(:action, Shapes::ShapeRef.new(shape: PolicyActions, location_name: "Action"))
174
+ PolicyStatement.add_member(:resource, Shapes::ShapeRef.new(shape: String, location_name: "Resource"))
175
+ PolicyStatement.add_member(:condition, Shapes::ShapeRef.new(shape: ConditionBlock, location_name: "Condition"))
176
+ PolicyStatement.struct_class = Types::PolicyStatement
177
+
178
+ PolicyStatements.member = Shapes::ShapeRef.new(shape: PolicyStatement)
179
+
180
+ Principal.key = Shapes::ShapeRef.new(shape: String)
181
+ Principal.value = Shapes::ShapeRef.new(shape: String)
182
+
183
+ PutConsoleAuthorizationConfigurationInput.add_member(:target_id, Shapes::ShapeRef.new(shape: TargetId, location_name: "targetId"))
184
+ PutConsoleAuthorizationConfigurationInput.struct_class = Types::PutConsoleAuthorizationConfigurationInput
185
+
186
+ PutConsoleAuthorizationConfigurationOutput.add_member(:target_id, Shapes::ShapeRef.new(shape: TargetId, required: true, location_name: "targetId"))
187
+ PutConsoleAuthorizationConfigurationOutput.add_member(:scope, Shapes::ShapeRef.new(shape: String, required: true, location_name: "scope"))
188
+ PutConsoleAuthorizationConfigurationOutput.add_member(:console_authorization_enabled, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "consoleAuthorizationEnabled"))
189
+ PutConsoleAuthorizationConfigurationOutput.struct_class = Types::PutConsoleAuthorizationConfigurationOutput
190
+
191
+ PutResourcePermissionStatementInput.add_member(:source_vpc, Shapes::ShapeRef.new(shape: SourceVpc, location_name: "sourceVpc"))
192
+ PutResourcePermissionStatementInput.add_member(:signin_source_vpce, Shapes::ShapeRef.new(shape: SourceVpce, location_name: "signinSourceVpce"))
193
+ PutResourcePermissionStatementInput.add_member(:console_source_vpce, Shapes::ShapeRef.new(shape: SourceVpce, location_name: "consoleSourceVpce"))
194
+ PutResourcePermissionStatementInput.add_member(:vpc_source_ip, Shapes::ShapeRef.new(shape: VpcSourceIp, location_name: "vpcSourceIp"))
195
+ PutResourcePermissionStatementInput.add_member(:source_ip, Shapes::ShapeRef.new(shape: SourceIp, location_name: "sourceIp"))
196
+ PutResourcePermissionStatementInput.add_member(:requested_region, Shapes::ShapeRef.new(shape: RequestedRegion, location_name: "requestedRegion"))
197
+ PutResourcePermissionStatementInput.add_member(:excluded_principal, Shapes::ShapeRef.new(shape: ExcludedPrincipal, location_name: "excludedPrincipal"))
198
+ PutResourcePermissionStatementInput.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
199
+ PutResourcePermissionStatementInput.struct_class = Types::PutResourcePermissionStatementInput
200
+
201
+ PutResourcePermissionStatementOutput.add_member(:statement_id, Shapes::ShapeRef.new(shape: StatementId, required: true, location_name: "statementId"))
202
+ PutResourcePermissionStatementOutput.struct_class = Types::PutResourcePermissionStatementOutput
203
+
204
+ ResourceNotFoundException.add_member(:error, Shapes::ShapeRef.new(shape: OAuth2ErrorCode, required: true, location_name: "error"))
205
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
206
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
207
+
208
+ ServiceQuotaExceededException.add_member(:error, Shapes::ShapeRef.new(shape: OAuth2ErrorCode, required: true, location_name: "error"))
209
+ ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
210
+ ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
211
+
212
+ SigninResourceBasedPolicy.add_member(:version, Shapes::ShapeRef.new(shape: String, location_name: "Version"))
213
+ SigninResourceBasedPolicy.add_member(:statement, Shapes::ShapeRef.new(shape: PolicyStatements, location_name: "Statement"))
214
+ SigninResourceBasedPolicy.struct_class = Types::SigninResourceBasedPolicy
215
+
76
216
  TooManyRequestsError.add_member(:error, Shapes::ShapeRef.new(shape: OAuth2ErrorCode, required: true, location_name: "error"))
77
217
  TooManyRequestsError.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
78
218
  TooManyRequestsError.struct_class = Types::TooManyRequestsError
@@ -113,6 +253,104 @@ module Aws::Signin
113
253
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
114
254
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
115
255
  end)
256
+
257
+ api.add_operation(:delete_console_authorization_configuration, Seahorse::Model::Operation.new.tap do |o|
258
+ o.name = "DeleteConsoleAuthorizationConfiguration"
259
+ o.http_method = "POST"
260
+ o.http_request_uri = "/delete-console-authorization-configuration"
261
+ o.input = Shapes::ShapeRef.new(shape: DeleteConsoleAuthorizationConfigurationInput)
262
+ o.output = Shapes::ShapeRef.new(shape: DeleteConsoleAuthorizationConfigurationOutput)
263
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
264
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
265
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
266
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
267
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
268
+ end)
269
+
270
+ api.add_operation(:delete_resource_permission_statement, Seahorse::Model::Operation.new.tap do |o|
271
+ o.name = "DeleteResourcePermissionStatement"
272
+ o.http_method = "POST"
273
+ o.http_request_uri = "/delete-resource-permission-statement"
274
+ o.input = Shapes::ShapeRef.new(shape: DeleteResourcePermissionStatementInput)
275
+ o.output = Shapes::ShapeRef.new(shape: DeleteResourcePermissionStatementOutput)
276
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
277
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
278
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
279
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
280
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
281
+ end)
282
+
283
+ api.add_operation(:get_console_authorization_configuration, Seahorse::Model::Operation.new.tap do |o|
284
+ o.name = "GetConsoleAuthorizationConfiguration"
285
+ o.http_method = "POST"
286
+ o.http_request_uri = "/get-console-authorization-configuration"
287
+ o.input = Shapes::ShapeRef.new(shape: GetConsoleAuthorizationConfigurationInput)
288
+ o.output = Shapes::ShapeRef.new(shape: GetConsoleAuthorizationConfigurationOutput)
289
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
290
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
291
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
292
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
293
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
294
+ end)
295
+
296
+ api.add_operation(:get_resource_policy, Seahorse::Model::Operation.new.tap do |o|
297
+ o.name = "GetResourcePolicy"
298
+ o.http_method = "POST"
299
+ o.http_request_uri = "/get-resource-policy"
300
+ o.input = Shapes::ShapeRef.new(shape: GetResourcePolicyInput)
301
+ o.output = Shapes::ShapeRef.new(shape: GetResourcePolicyOutput)
302
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
303
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
304
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
305
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
306
+ end)
307
+
308
+ api.add_operation(:list_resource_permission_statements, Seahorse::Model::Operation.new.tap do |o|
309
+ o.name = "ListResourcePermissionStatements"
310
+ o.http_method = "POST"
311
+ o.http_request_uri = "/list-resource-permission-statements"
312
+ o.input = Shapes::ShapeRef.new(shape: ListResourcePermissionStatementsInput)
313
+ o.output = Shapes::ShapeRef.new(shape: ListResourcePermissionStatementsOutput)
314
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
315
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
316
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
317
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
318
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
319
+ o[:pager] = Aws::Pager.new(
320
+ limit_key: "max_results",
321
+ tokens: {
322
+ "next_token" => "next_token"
323
+ }
324
+ )
325
+ end)
326
+
327
+ api.add_operation(:put_console_authorization_configuration, Seahorse::Model::Operation.new.tap do |o|
328
+ o.name = "PutConsoleAuthorizationConfiguration"
329
+ o.http_method = "POST"
330
+ o.http_request_uri = "/put-console-authorization-configuration"
331
+ o.input = Shapes::ShapeRef.new(shape: PutConsoleAuthorizationConfigurationInput)
332
+ o.output = Shapes::ShapeRef.new(shape: PutConsoleAuthorizationConfigurationOutput)
333
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
334
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
335
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
336
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
337
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
338
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
339
+ end)
340
+
341
+ api.add_operation(:put_resource_permission_statement, Seahorse::Model::Operation.new.tap do |o|
342
+ o.name = "PutResourcePermissionStatement"
343
+ o.http_method = "POST"
344
+ o.http_request_uri = "/put-resource-permission-statement"
345
+ o.input = Shapes::ShapeRef.new(shape: PutResourcePermissionStatementInput)
346
+ o.output = Shapes::ShapeRef.new(shape: PutResourcePermissionStatementOutput)
347
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
348
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
349
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
350
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
351
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
352
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
353
+ end)
116
354
  end
117
355
 
118
356
  end
@@ -30,11 +30,17 @@ 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
+ #
33
38
  EndpointParameters = Struct.new(
34
39
  :use_dual_stack,
35
40
  :use_fips,
36
41
  :endpoint,
37
42
  :region,
43
+ :is_control_plane,
38
44
  ) do
39
45
  include Aws::Structure
40
46
 
@@ -45,6 +51,7 @@ module Aws::Signin
45
51
  'UseFIPS' => :use_fips,
46
52
  'Endpoint' => :endpoint,
47
53
  'Region' => :region,
54
+ 'IsControlPlane' => :is_control_plane,
48
55
  }.freeze
49
56
  end
50
57
 
@@ -55,6 +62,7 @@ module Aws::Signin
55
62
  self[:use_fips] = false if self[:use_fips].nil?
56
63
  self[:endpoint] = options[:endpoint]
57
64
  self[:region] = options[:region]
65
+ self[:is_control_plane] = options[:is_control_plane]
58
66
  end
59
67
 
60
68
  def self.create(config, options={})
@@ -10,6 +10,48 @@
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.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")
23
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.region}.signin.aws.amazon.com", headers: {}, properties: {})
24
+ end
25
+ 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")
26
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.region}.signin.amazonaws.cn", headers: {}, properties: {})
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-us-gov")
29
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.region}.signin.amazonaws-us-gov.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-iso")
32
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.region}.signin.c2shome.ic.gov", 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-iso-b")
35
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.region}.signin.sc2shome.sgov.gov", 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-f")
38
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.region}.signin.csphome.hci.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-e")
41
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.region}.signin.csphome.adc-e.uk", 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-eusc")
44
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.region}.signin.amazonaws-eusc.eu", 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, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false) && Aws::Endpoints::Matchers.string_equals?(parameters.region, "us-gov-west-1")
47
+ return Aws::Endpoints::Endpoint.new(url: "https://signin-fips.amazonaws-us-gov.com", 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, 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")
50
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.region}.signin-fips.amazonaws-us-gov.com", 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, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false) && (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
53
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.region}.signin.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
54
+ end
13
55
  if Aws::Endpoints::Matchers.set?(parameters.endpoint)
14
56
  if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
15
57
  raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
@@ -12,9 +12,89 @@ module Aws::Signin
12
12
  # @api private
13
13
  module Endpoints
14
14
 
15
+ class DeleteConsoleAuthorizationConfiguration
16
+ def self.build(context)
17
+ Aws::Signin::EndpointParameters.create(
18
+ context.config,
19
+ is_control_plane: true,
20
+ )
21
+ end
22
+ end
23
+
24
+ class DeleteResourcePermissionStatement
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 GetConsoleAuthorizationConfiguration
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 GetResourcePolicy
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 ListResourcePermissionStatements
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 PutConsoleAuthorizationConfiguration
61
+ def self.build(context)
62
+ Aws::Signin::EndpointParameters.create(
63
+ context.config,
64
+ is_control_plane: true,
65
+ )
66
+ end
67
+ end
68
+
69
+ class PutResourcePermissionStatement
70
+ def self.build(context)
71
+ Aws::Signin::EndpointParameters.create(
72
+ context.config,
73
+ is_control_plane: true,
74
+ )
75
+ end
76
+ end
77
+
15
78
 
16
79
  def self.parameters_for_operation(context)
17
- Aws::Signin::EndpointParameters.create(context.config)
80
+ case context.operation_name
81
+ when :delete_console_authorization_configuration
82
+ DeleteConsoleAuthorizationConfiguration.build(context)
83
+ when :delete_resource_permission_statement
84
+ DeleteResourcePermissionStatement.build(context)
85
+ when :get_console_authorization_configuration
86
+ GetConsoleAuthorizationConfiguration.build(context)
87
+ when :get_resource_policy
88
+ GetResourcePolicy.build(context)
89
+ when :list_resource_permission_statements
90
+ ListResourcePermissionStatements.build(context)
91
+ when :put_console_authorization_configuration
92
+ PutConsoleAuthorizationConfiguration.build(context)
93
+ when :put_resource_permission_statement
94
+ PutResourcePermissionStatement.build(context)
95
+ else
96
+ Aws::Signin::EndpointParameters.create(context.config)
97
+ end
18
98
  end
19
99
  end
20
100
  end
@@ -28,7 +28,10 @@ module Aws::Signin
28
28
  #
29
29
  # ## Error Classes
30
30
  # * {AccessDeniedException}
31
+ # * {ConflictException}
31
32
  # * {InternalServerException}
33
+ # * {ResourceNotFoundException}
34
+ # * {ServiceQuotaExceededException}
32
35
  # * {TooManyRequestsError}
33
36
  # * {ValidationException}
34
37
  #
@@ -58,6 +61,26 @@ module Aws::Signin
58
61
  end
59
62
  end
60
63
 
64
+ class ConflictException < ServiceError
65
+
66
+ # @param [Seahorse::Client::RequestContext] context
67
+ # @param [String] message
68
+ # @param [Aws::Signin::Types::ConflictException] data
69
+ def initialize(context, message, data = Aws::EmptyStructure.new)
70
+ super(context, message, data)
71
+ end
72
+
73
+ # @return [String]
74
+ def error
75
+ @data[:error]
76
+ end
77
+
78
+ # @return [String]
79
+ def message
80
+ @message || @data[:message]
81
+ end
82
+ end
83
+
61
84
  class InternalServerException < ServiceError
62
85
 
63
86
  # @param [Seahorse::Client::RequestContext] context
@@ -78,6 +101,46 @@ module Aws::Signin
78
101
  end
79
102
  end
80
103
 
104
+ class ResourceNotFoundException < ServiceError
105
+
106
+ # @param [Seahorse::Client::RequestContext] context
107
+ # @param [String] message
108
+ # @param [Aws::Signin::Types::ResourceNotFoundException] data
109
+ def initialize(context, message, data = Aws::EmptyStructure.new)
110
+ super(context, message, data)
111
+ end
112
+
113
+ # @return [String]
114
+ def error
115
+ @data[:error]
116
+ end
117
+
118
+ # @return [String]
119
+ def message
120
+ @message || @data[:message]
121
+ end
122
+ end
123
+
124
+ class ServiceQuotaExceededException < ServiceError
125
+
126
+ # @param [Seahorse::Client::RequestContext] context
127
+ # @param [String] message
128
+ # @param [Aws::Signin::Types::ServiceQuotaExceededException] data
129
+ def initialize(context, message, data = Aws::EmptyStructure.new)
130
+ super(context, message, data)
131
+ end
132
+
133
+ # @return [String]
134
+ def error
135
+ @data[:error]
136
+ end
137
+
138
+ # @return [String]
139
+ def message
140
+ @message || @data[:message]
141
+ end
142
+ end
143
+
81
144
  class TooManyRequestsError < ServiceError
82
145
 
83
146
  # @param [Seahorse::Client::RequestContext] context