aws-sdk-core 3.251.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-signin/client.rb +262 -1
- data/lib/aws-sdk-signin/client_api.rb +238 -0
- data/lib/aws-sdk-signin/endpoint_parameters.rb +8 -0
- data/lib/aws-sdk-signin/endpoint_provider.rb +42 -0
- data/lib/aws-sdk-signin/endpoints.rb +81 -1
- data/lib/aws-sdk-signin/errors.rb +63 -0
- data/lib/aws-sdk-signin/types.rb +416 -0
- 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
|
@@ -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
|
-
|
|
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
|
data/lib/aws-sdk-signin/types.rb
CHANGED
|
@@ -71,6 +71,30 @@ module Aws::Signin
|
|
|
71
71
|
include Aws::Structure
|
|
72
72
|
end
|
|
73
73
|
|
|
74
|
+
# Error thrown when request conflicts with current state
|
|
75
|
+
#
|
|
76
|
+
# HTTP Status Code: 409 Conflict
|
|
77
|
+
#
|
|
78
|
+
# Used when the request conflicts with the current state of the resource
|
|
79
|
+
#
|
|
80
|
+
# @!attribute [rw] error
|
|
81
|
+
# OAuth 2.0 error code indicating conflict Will be CONFLICT
|
|
82
|
+
# @return [String]
|
|
83
|
+
#
|
|
84
|
+
# @!attribute [rw] message
|
|
85
|
+
# Detailed message explaining the conflict Provides specific
|
|
86
|
+
# information about what caused the conflict
|
|
87
|
+
# @return [String]
|
|
88
|
+
#
|
|
89
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/ConflictException AWS API Documentation
|
|
90
|
+
#
|
|
91
|
+
class ConflictException < Struct.new(
|
|
92
|
+
:error,
|
|
93
|
+
:message)
|
|
94
|
+
SENSITIVE = []
|
|
95
|
+
include Aws::Structure
|
|
96
|
+
end
|
|
97
|
+
|
|
74
98
|
# Input structure for CreateOAuth2Token operation
|
|
75
99
|
#
|
|
76
100
|
# Contains flattened token operation inputs for both authorization code
|
|
@@ -208,6 +232,132 @@ module Aws::Signin
|
|
|
208
232
|
include Aws::Structure
|
|
209
233
|
end
|
|
210
234
|
|
|
235
|
+
# Input for DeleteConsoleAuthorizationConfiguration operation
|
|
236
|
+
#
|
|
237
|
+
# @!attribute [rw] target_id
|
|
238
|
+
# Target account identifier
|
|
239
|
+
# @return [String]
|
|
240
|
+
#
|
|
241
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/DeleteConsoleAuthorizationConfigurationInput AWS API Documentation
|
|
242
|
+
#
|
|
243
|
+
class DeleteConsoleAuthorizationConfigurationInput < Struct.new(
|
|
244
|
+
:target_id)
|
|
245
|
+
SENSITIVE = []
|
|
246
|
+
include Aws::Structure
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
# Output for DeleteConsoleAuthorizationConfiguration operation
|
|
250
|
+
#
|
|
251
|
+
# @!attribute [rw] target_id
|
|
252
|
+
# Target account identifier
|
|
253
|
+
# @return [String]
|
|
254
|
+
#
|
|
255
|
+
# @!attribute [rw] scope
|
|
256
|
+
# Authorization scope
|
|
257
|
+
# @return [String]
|
|
258
|
+
#
|
|
259
|
+
# @!attribute [rw] console_authorization_enabled
|
|
260
|
+
# Whether console authorization is enabled
|
|
261
|
+
# @return [Boolean]
|
|
262
|
+
#
|
|
263
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/DeleteConsoleAuthorizationConfigurationOutput AWS API Documentation
|
|
264
|
+
#
|
|
265
|
+
class DeleteConsoleAuthorizationConfigurationOutput < Struct.new(
|
|
266
|
+
:target_id,
|
|
267
|
+
:scope,
|
|
268
|
+
:console_authorization_enabled)
|
|
269
|
+
SENSITIVE = []
|
|
270
|
+
include Aws::Structure
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
# Input for DeleteResourcePermissionStatement operation
|
|
274
|
+
#
|
|
275
|
+
# @!attribute [rw] statement_id
|
|
276
|
+
# Unique identifier of the permission statement to delete
|
|
277
|
+
# @return [String]
|
|
278
|
+
#
|
|
279
|
+
# @!attribute [rw] client_token
|
|
280
|
+
# Idempotency token for the request
|
|
281
|
+
#
|
|
282
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
283
|
+
# not need to pass this option.
|
|
284
|
+
# @return [String]
|
|
285
|
+
#
|
|
286
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/DeleteResourcePermissionStatementInput AWS API Documentation
|
|
287
|
+
#
|
|
288
|
+
class DeleteResourcePermissionStatementInput < Struct.new(
|
|
289
|
+
:statement_id,
|
|
290
|
+
:client_token)
|
|
291
|
+
SENSITIVE = []
|
|
292
|
+
include Aws::Structure
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
# Output for DeleteResourcePermissionStatement operation
|
|
296
|
+
#
|
|
297
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/DeleteResourcePermissionStatementOutput AWS API Documentation
|
|
298
|
+
#
|
|
299
|
+
class DeleteResourcePermissionStatementOutput < Aws::EmptyStructure; end
|
|
300
|
+
|
|
301
|
+
# Input for GetConsoleAuthorizationConfiguration operation
|
|
302
|
+
#
|
|
303
|
+
# @!attribute [rw] target_id
|
|
304
|
+
# Target account identifier
|
|
305
|
+
# @return [String]
|
|
306
|
+
#
|
|
307
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/GetConsoleAuthorizationConfigurationInput AWS API Documentation
|
|
308
|
+
#
|
|
309
|
+
class GetConsoleAuthorizationConfigurationInput < Struct.new(
|
|
310
|
+
:target_id)
|
|
311
|
+
SENSITIVE = []
|
|
312
|
+
include Aws::Structure
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
# Output for GetConsoleAuthorizationConfiguration operation
|
|
316
|
+
#
|
|
317
|
+
# @!attribute [rw] target_id
|
|
318
|
+
# Target account identifier
|
|
319
|
+
# @return [String]
|
|
320
|
+
#
|
|
321
|
+
# @!attribute [rw] scope
|
|
322
|
+
# Authorization scope
|
|
323
|
+
# @return [String]
|
|
324
|
+
#
|
|
325
|
+
# @!attribute [rw] console_authorization_enabled
|
|
326
|
+
# Whether console authorization is enabled
|
|
327
|
+
# @return [Boolean]
|
|
328
|
+
#
|
|
329
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/GetConsoleAuthorizationConfigurationOutput AWS API Documentation
|
|
330
|
+
#
|
|
331
|
+
class GetConsoleAuthorizationConfigurationOutput < Struct.new(
|
|
332
|
+
:target_id,
|
|
333
|
+
:scope,
|
|
334
|
+
:console_authorization_enabled)
|
|
335
|
+
SENSITIVE = []
|
|
336
|
+
include Aws::Structure
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
# Input for GetResourcePolicy operation
|
|
340
|
+
#
|
|
341
|
+
# @api private
|
|
342
|
+
#
|
|
343
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/GetResourcePolicyInput AWS API Documentation
|
|
344
|
+
#
|
|
345
|
+
class GetResourcePolicyInput < Aws::EmptyStructure; end
|
|
346
|
+
|
|
347
|
+
# Output for GetResourcePolicy operation
|
|
348
|
+
#
|
|
349
|
+
# @!attribute [rw] signin_resource_based_policy
|
|
350
|
+
# The account's SignIn resource-based policy
|
|
351
|
+
# @return [Types::SigninResourceBasedPolicy]
|
|
352
|
+
#
|
|
353
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/GetResourcePolicyOutput AWS API Documentation
|
|
354
|
+
#
|
|
355
|
+
class GetResourcePolicyOutput < Struct.new(
|
|
356
|
+
:signin_resource_based_policy)
|
|
357
|
+
SENSITIVE = []
|
|
358
|
+
include Aws::Structure
|
|
359
|
+
end
|
|
360
|
+
|
|
211
361
|
# Error thrown when an internal server error occurs
|
|
212
362
|
#
|
|
213
363
|
# HTTP Status Code: 500 Internal Server Error
|
|
@@ -234,6 +384,272 @@ module Aws::Signin
|
|
|
234
384
|
include Aws::Structure
|
|
235
385
|
end
|
|
236
386
|
|
|
387
|
+
# Input for ListResourcePermissionStatements operation
|
|
388
|
+
#
|
|
389
|
+
# @!attribute [rw] max_results
|
|
390
|
+
# Maximum number of results to return
|
|
391
|
+
# @return [Integer]
|
|
392
|
+
#
|
|
393
|
+
# @!attribute [rw] next_token
|
|
394
|
+
# Token for pagination
|
|
395
|
+
# @return [String]
|
|
396
|
+
#
|
|
397
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/ListResourcePermissionStatementsInput AWS API Documentation
|
|
398
|
+
#
|
|
399
|
+
class ListResourcePermissionStatementsInput < Struct.new(
|
|
400
|
+
:max_results,
|
|
401
|
+
:next_token)
|
|
402
|
+
SENSITIVE = []
|
|
403
|
+
include Aws::Structure
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
# Output for ListResourcePermissionStatements operation
|
|
407
|
+
#
|
|
408
|
+
# @!attribute [rw] permission_statements
|
|
409
|
+
# List of permission statement summaries
|
|
410
|
+
# @return [Array<Types::PermissionStatementSummary>]
|
|
411
|
+
#
|
|
412
|
+
# @!attribute [rw] next_token
|
|
413
|
+
# Token for next page of results
|
|
414
|
+
# @return [String]
|
|
415
|
+
#
|
|
416
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/ListResourcePermissionStatementsOutput AWS API Documentation
|
|
417
|
+
#
|
|
418
|
+
class ListResourcePermissionStatementsOutput < Struct.new(
|
|
419
|
+
:permission_statements,
|
|
420
|
+
:next_token)
|
|
421
|
+
SENSITIVE = []
|
|
422
|
+
include Aws::Structure
|
|
423
|
+
end
|
|
424
|
+
|
|
425
|
+
# Summary of a permission statement
|
|
426
|
+
#
|
|
427
|
+
# @!attribute [rw] sid
|
|
428
|
+
# Unique identifier for the permission statement
|
|
429
|
+
# @return [String]
|
|
430
|
+
#
|
|
431
|
+
# @!attribute [rw] condition
|
|
432
|
+
# Condition block for the permission statement
|
|
433
|
+
# @return [Hash<String,Hash<String,Array<String>>>]
|
|
434
|
+
#
|
|
435
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/PermissionStatementSummary AWS API Documentation
|
|
436
|
+
#
|
|
437
|
+
class PermissionStatementSummary < Struct.new(
|
|
438
|
+
:sid,
|
|
439
|
+
:condition)
|
|
440
|
+
SENSITIVE = []
|
|
441
|
+
include Aws::Structure
|
|
442
|
+
end
|
|
443
|
+
|
|
444
|
+
# Individual policy statement within a resource-based policy
|
|
445
|
+
#
|
|
446
|
+
# @!attribute [rw] effect
|
|
447
|
+
# Effect of the policy statement (Allow/Deny)
|
|
448
|
+
# @return [String]
|
|
449
|
+
#
|
|
450
|
+
# @!attribute [rw] principal
|
|
451
|
+
# Principal the statement applies to
|
|
452
|
+
# @return [Hash<String,String>]
|
|
453
|
+
#
|
|
454
|
+
# @!attribute [rw] action
|
|
455
|
+
# Actions the statement controls
|
|
456
|
+
# @return [Array<String>]
|
|
457
|
+
#
|
|
458
|
+
# @!attribute [rw] resource
|
|
459
|
+
# Resource the statement applies to
|
|
460
|
+
# @return [String]
|
|
461
|
+
#
|
|
462
|
+
# @!attribute [rw] condition
|
|
463
|
+
# Condition block for the statement
|
|
464
|
+
# @return [Hash<String,Hash<String,Array<String>>>]
|
|
465
|
+
#
|
|
466
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/PolicyStatement AWS API Documentation
|
|
467
|
+
#
|
|
468
|
+
class PolicyStatement < Struct.new(
|
|
469
|
+
:effect,
|
|
470
|
+
:principal,
|
|
471
|
+
:action,
|
|
472
|
+
:resource,
|
|
473
|
+
:condition)
|
|
474
|
+
SENSITIVE = []
|
|
475
|
+
include Aws::Structure
|
|
476
|
+
end
|
|
477
|
+
|
|
478
|
+
# Input for PutConsoleAuthorizationConfiguration operation
|
|
479
|
+
#
|
|
480
|
+
# @!attribute [rw] target_id
|
|
481
|
+
# Target account identifier
|
|
482
|
+
# @return [String]
|
|
483
|
+
#
|
|
484
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/PutConsoleAuthorizationConfigurationInput AWS API Documentation
|
|
485
|
+
#
|
|
486
|
+
class PutConsoleAuthorizationConfigurationInput < Struct.new(
|
|
487
|
+
:target_id)
|
|
488
|
+
SENSITIVE = []
|
|
489
|
+
include Aws::Structure
|
|
490
|
+
end
|
|
491
|
+
|
|
492
|
+
# Output for PutConsoleAuthorizationConfiguration operation
|
|
493
|
+
#
|
|
494
|
+
# @!attribute [rw] target_id
|
|
495
|
+
# Target account identifier
|
|
496
|
+
# @return [String]
|
|
497
|
+
#
|
|
498
|
+
# @!attribute [rw] scope
|
|
499
|
+
# Authorization scope
|
|
500
|
+
# @return [String]
|
|
501
|
+
#
|
|
502
|
+
# @!attribute [rw] console_authorization_enabled
|
|
503
|
+
# Whether console authorization is enabled
|
|
504
|
+
# @return [Boolean]
|
|
505
|
+
#
|
|
506
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/PutConsoleAuthorizationConfigurationOutput AWS API Documentation
|
|
507
|
+
#
|
|
508
|
+
class PutConsoleAuthorizationConfigurationOutput < Struct.new(
|
|
509
|
+
:target_id,
|
|
510
|
+
:scope,
|
|
511
|
+
:console_authorization_enabled)
|
|
512
|
+
SENSITIVE = []
|
|
513
|
+
include Aws::Structure
|
|
514
|
+
end
|
|
515
|
+
|
|
516
|
+
# Input for PutResourcePermissionStatement operation
|
|
517
|
+
#
|
|
518
|
+
# @!attribute [rw] source_vpc
|
|
519
|
+
# VPC identifier to restrict console access
|
|
520
|
+
# @return [String]
|
|
521
|
+
#
|
|
522
|
+
# @!attribute [rw] signin_source_vpce
|
|
523
|
+
# SignIn VPC endpoint identifier
|
|
524
|
+
# @return [String]
|
|
525
|
+
#
|
|
526
|
+
# @!attribute [rw] console_source_vpce
|
|
527
|
+
# Console VPC endpoint identifier
|
|
528
|
+
# @return [String]
|
|
529
|
+
#
|
|
530
|
+
# @!attribute [rw] vpc_source_ip
|
|
531
|
+
# Source IP address within VPC
|
|
532
|
+
# @return [String]
|
|
533
|
+
#
|
|
534
|
+
# @!attribute [rw] source_ip
|
|
535
|
+
# Source IP address
|
|
536
|
+
# @return [String]
|
|
537
|
+
#
|
|
538
|
+
# @!attribute [rw] requested_region
|
|
539
|
+
# AWS region where the VPC and VPC endpoint reside Required when
|
|
540
|
+
# sourceVpc or signinSourceVpce/consoleSourceVpce is provided
|
|
541
|
+
# @return [String]
|
|
542
|
+
#
|
|
543
|
+
# @!attribute [rw] excluded_principal
|
|
544
|
+
# Principal to exclude from the permission statement
|
|
545
|
+
# @return [String]
|
|
546
|
+
#
|
|
547
|
+
# @!attribute [rw] client_token
|
|
548
|
+
# Idempotency token for the request
|
|
549
|
+
#
|
|
550
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
551
|
+
# not need to pass this option.
|
|
552
|
+
# @return [String]
|
|
553
|
+
#
|
|
554
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/PutResourcePermissionStatementInput AWS API Documentation
|
|
555
|
+
#
|
|
556
|
+
class PutResourcePermissionStatementInput < Struct.new(
|
|
557
|
+
:source_vpc,
|
|
558
|
+
:signin_source_vpce,
|
|
559
|
+
:console_source_vpce,
|
|
560
|
+
:vpc_source_ip,
|
|
561
|
+
:source_ip,
|
|
562
|
+
:requested_region,
|
|
563
|
+
:excluded_principal,
|
|
564
|
+
:client_token)
|
|
565
|
+
SENSITIVE = []
|
|
566
|
+
include Aws::Structure
|
|
567
|
+
end
|
|
568
|
+
|
|
569
|
+
# Output for PutResourcePermissionStatement operation
|
|
570
|
+
#
|
|
571
|
+
# @!attribute [rw] statement_id
|
|
572
|
+
# Unique identifier for the created permission statement
|
|
573
|
+
# @return [String]
|
|
574
|
+
#
|
|
575
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/PutResourcePermissionStatementOutput AWS API Documentation
|
|
576
|
+
#
|
|
577
|
+
class PutResourcePermissionStatementOutput < Struct.new(
|
|
578
|
+
:statement_id)
|
|
579
|
+
SENSITIVE = []
|
|
580
|
+
include Aws::Structure
|
|
581
|
+
end
|
|
582
|
+
|
|
583
|
+
# Error thrown when requested resource is not found
|
|
584
|
+
#
|
|
585
|
+
# HTTP Status Code: 404 Not Found
|
|
586
|
+
#
|
|
587
|
+
# Used when the specified resource does not exist
|
|
588
|
+
#
|
|
589
|
+
# @!attribute [rw] error
|
|
590
|
+
# OAuth 2.0 error code indicating resource not found Will be
|
|
591
|
+
# RESOURCE\_NOT\_FOUND
|
|
592
|
+
# @return [String]
|
|
593
|
+
#
|
|
594
|
+
# @!attribute [rw] message
|
|
595
|
+
# Detailed message explaining which resource was not found Provides
|
|
596
|
+
# specific information about the missing resource
|
|
597
|
+
# @return [String]
|
|
598
|
+
#
|
|
599
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/ResourceNotFoundException AWS API Documentation
|
|
600
|
+
#
|
|
601
|
+
class ResourceNotFoundException < Struct.new(
|
|
602
|
+
:error,
|
|
603
|
+
:message)
|
|
604
|
+
SENSITIVE = []
|
|
605
|
+
include Aws::Structure
|
|
606
|
+
end
|
|
607
|
+
|
|
608
|
+
# Error thrown when service quota is exceeded
|
|
609
|
+
#
|
|
610
|
+
# HTTP Status Code: 402 Payment Required (used as quota exceeded
|
|
611
|
+
# indicator)
|
|
612
|
+
#
|
|
613
|
+
# Used when the request would cause a service quota to be exceeded
|
|
614
|
+
#
|
|
615
|
+
# @!attribute [rw] error
|
|
616
|
+
# OAuth 2.0 error code indicating service quota exceeded Will be
|
|
617
|
+
# SERVICE\_QUOTA\_EXCEEDED
|
|
618
|
+
# @return [String]
|
|
619
|
+
#
|
|
620
|
+
# @!attribute [rw] message
|
|
621
|
+
# Detailed message explaining which quota was exceeded Provides
|
|
622
|
+
# specific information about the limit and current usage
|
|
623
|
+
# @return [String]
|
|
624
|
+
#
|
|
625
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/ServiceQuotaExceededException AWS API Documentation
|
|
626
|
+
#
|
|
627
|
+
class ServiceQuotaExceededException < Struct.new(
|
|
628
|
+
:error,
|
|
629
|
+
:message)
|
|
630
|
+
SENSITIVE = []
|
|
631
|
+
include Aws::Structure
|
|
632
|
+
end
|
|
633
|
+
|
|
634
|
+
# SignIn resource-based policy document
|
|
635
|
+
#
|
|
636
|
+
# @!attribute [rw] version
|
|
637
|
+
# Policy version
|
|
638
|
+
# @return [String]
|
|
639
|
+
#
|
|
640
|
+
# @!attribute [rw] statement
|
|
641
|
+
# Policy statements
|
|
642
|
+
# @return [Array<Types::PolicyStatement>]
|
|
643
|
+
#
|
|
644
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/SigninResourceBasedPolicy AWS API Documentation
|
|
645
|
+
#
|
|
646
|
+
class SigninResourceBasedPolicy < Struct.new(
|
|
647
|
+
:version,
|
|
648
|
+
:statement)
|
|
649
|
+
SENSITIVE = []
|
|
650
|
+
include Aws::Structure
|
|
651
|
+
end
|
|
652
|
+
|
|
237
653
|
# Error thrown when rate limit is exceeded
|
|
238
654
|
#
|
|
239
655
|
# HTTP Status Code: 429 Too Many Requests
|
data/lib/aws-sdk-signin.rb
CHANGED
data/lib/aws-sdk-sso/client.rb
CHANGED