aws-sdk-iamtoolbox 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,302 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::IAMToolbox
11
+ module Types
12
+
13
+ # The caller does not have sufficient access to perform this action.
14
+ #
15
+ # @!attribute [rw] message
16
+ # @return [String]
17
+ #
18
+ # @see http://docs.aws.amazon.com/goto/WebAPI/iam-toolbox-2018-05-10/AccessDeniedException AWS API Documentation
19
+ #
20
+ class AccessDeniedException < Struct.new(
21
+ :message)
22
+ SENSITIVE = []
23
+ include Aws::Structure
24
+ end
25
+
26
+ # An entity that a policy is attached to, identified by its ARN.
27
+ #
28
+ # @!attribute [rw] arn
29
+ # The ARN of the entity that the policy is attached to. The ARN format
30
+ # depends on the policy type:
31
+ #
32
+ # * For identity, session, and permissions boundary policies, this is
33
+ # the principal ARN (for example, an IAM role or user ARN).
34
+ #
35
+ # * For resource-based policies, this is the resource ARN.
36
+ #
37
+ # * For organization control policies (SCPs and RCPs), this is the AWS
38
+ # Organizations ARN of the account, organizational unit, or root.
39
+ # @return [String]
40
+ #
41
+ # @see http://docs.aws.amazon.com/goto/WebAPI/iam-toolbox-2018-05-10/AttachedTo AWS API Documentation
42
+ #
43
+ class AttachedTo < Struct.new(
44
+ :arn)
45
+ SENSITIVE = []
46
+ include Aws::Structure
47
+ end
48
+
49
+ # Represents an individual evaluation for a single action and resource
50
+ # pair. This includes the context, the resulting effect, and any
51
+ # policies that matched.
52
+ #
53
+ # @!attribute [rw] action
54
+ # The action evaluated for this request (for example, `iam:PassRole`).
55
+ # @return [String]
56
+ #
57
+ # @!attribute [rw] resource
58
+ # The resource that the action targeted. This is typically a resource
59
+ # ARN, but can be a wildcard ARN that matches multiple resources, or
60
+ # empty for actions that are not resource-specific.
61
+ # @return [String]
62
+ #
63
+ # @!attribute [rw] context
64
+ # The context keys and values specific to this evaluation. These are
65
+ # applied on top of the request context.
66
+ # @return [Hash<String,Hash,Array,String,Numeric,Boolean>]
67
+ #
68
+ # @!attribute [rw] evaluated_effect
69
+ # The result of the evaluation. Valid values:
70
+ #
71
+ # * `ALLOW` - The action was allowed.
72
+ #
73
+ # * `EXPLICIT_DENY` - The action was explicitly denied by a policy.
74
+ #
75
+ # * `IMPLICIT_DENY` - The action was denied because no policy allowed
76
+ # it.
77
+ # @return [String]
78
+ #
79
+ # @!attribute [rw] matched_policies
80
+ # The policies that matched during evaluation of this action and
81
+ # resource. An implicit denial produces no matched policies.
82
+ # @return [Array<Types::MatchedPolicy>]
83
+ #
84
+ # @see http://docs.aws.amazon.com/goto/WebAPI/iam-toolbox-2018-05-10/Evaluation AWS API Documentation
85
+ #
86
+ class Evaluation < Struct.new(
87
+ :action,
88
+ :resource,
89
+ :context,
90
+ :evaluated_effect,
91
+ :matched_policies)
92
+ SENSITIVE = []
93
+ include Aws::Structure
94
+ end
95
+
96
+ # @!attribute [rw] authorization_id
97
+ # The authorization ID received in the access denied error message.
98
+ # This ID identifies the specific request to retrieve details for.
99
+ # @return [String]
100
+ #
101
+ # @!attribute [rw] next_token
102
+ # The pagination token from a previous call, used to retrieve the next
103
+ # page of evaluations. Omit this value on the first call.
104
+ # @return [String]
105
+ #
106
+ # @see http://docs.aws.amazon.com/goto/WebAPI/iam-toolbox-2018-05-10/GetRequestAuthorizationDetailsInput AWS API Documentation
107
+ #
108
+ class GetRequestAuthorizationDetailsInput < Struct.new(
109
+ :authorization_id,
110
+ :next_token)
111
+ SENSITIVE = []
112
+ include Aws::Structure
113
+ end
114
+
115
+ # @!attribute [rw] request_context
116
+ # The request context is the set of context keys and values that apply
117
+ # to the entire request and are shared by all evaluations.
118
+ # @return [Hash<String,Hash,Array,String,Numeric,Boolean>]
119
+ #
120
+ # @!attribute [rw] evaluations
121
+ # The list of evaluations for this request. Each evaluation shows how
122
+ # a single action and resource pair was evaluated. This includes the
123
+ # context, the effect, and any policies that matched.
124
+ # @return [Array<Types::Evaluation>]
125
+ #
126
+ # @!attribute [rw] policies
127
+ # The list of policies that were evaluated.
128
+ # @return [Array<Types::PolicyInfo>]
129
+ #
130
+ # @!attribute [rw] next_token
131
+ # The pagination token for retrieving the next page of evaluations.
132
+ # This value is absent when there are no more results.
133
+ # @return [String]
134
+ #
135
+ # @see http://docs.aws.amazon.com/goto/WebAPI/iam-toolbox-2018-05-10/GetRequestAuthorizationDetailsOutput AWS API Documentation
136
+ #
137
+ class GetRequestAuthorizationDetailsOutput < Struct.new(
138
+ :request_context,
139
+ :evaluations,
140
+ :policies,
141
+ :next_token)
142
+ SENSITIVE = []
143
+ include Aws::Structure
144
+ end
145
+
146
+ # An unexpected error occurred while processing the request. Try again.
147
+ #
148
+ # @!attribute [rw] message
149
+ # @return [String]
150
+ #
151
+ # @see http://docs.aws.amazon.com/goto/WebAPI/iam-toolbox-2018-05-10/InternalServerException AWS API Documentation
152
+ #
153
+ class InternalServerException < Struct.new(
154
+ :message)
155
+ SENSITIVE = []
156
+ include Aws::Structure
157
+ end
158
+
159
+ # A policy that matched during evaluation, referenced by URI. The URI
160
+ # corresponds to a policy in the top-level policies list.
161
+ #
162
+ # @!attribute [rw] uri
163
+ # The URI of the policy. This cross-references an entry in the
164
+ # top-level policies list. The value depends on the policy type:
165
+ #
166
+ # * For managed policies, this is the policy ARN.
167
+ #
168
+ # * For inline policies, this is an opaque identifier.
169
+ # @return [String]
170
+ #
171
+ # @!attribute [rw] matched_statements
172
+ # The statements within the policy that matched during the evaluation.
173
+ # @return [Array<Types::MatchedStatement>]
174
+ #
175
+ # @see http://docs.aws.amazon.com/goto/WebAPI/iam-toolbox-2018-05-10/MatchedPolicy AWS API Documentation
176
+ #
177
+ class MatchedPolicy < Struct.new(
178
+ :uri,
179
+ :matched_statements)
180
+ SENSITIVE = []
181
+ include Aws::Structure
182
+ end
183
+
184
+ # A statement that matched during evaluation.
185
+ #
186
+ # @!attribute [rw] sid
187
+ # The statement ID (Sid). If the statement has no Sid, one is
188
+ # generated for reference.
189
+ # @return [String]
190
+ #
191
+ # @!attribute [rw] evaluated_effect
192
+ # The evaluated effect of this statement. Valid values:
193
+ #
194
+ # * `ALLOW` - The statement allows the action.
195
+ #
196
+ # * `DENY` - The statement denies the action.
197
+ # @return [String]
198
+ #
199
+ # @see http://docs.aws.amazon.com/goto/WebAPI/iam-toolbox-2018-05-10/MatchedStatement AWS API Documentation
200
+ #
201
+ class MatchedStatement < Struct.new(
202
+ :sid,
203
+ :evaluated_effect)
204
+ SENSITIVE = []
205
+ include Aws::Structure
206
+ end
207
+
208
+ # Contains details about a policy evaluated during authorization.
209
+ # Details include the policy type, whether it is inline or managed, a
210
+ # URI that identifies it, and the entities it is attached to.
211
+ #
212
+ # @!attribute [rw] type
213
+ # The type of policy. Valid values:
214
+ #
215
+ # * `IDENTITY_BASED_POLICY` - An identity-based policy attached to an
216
+ # IAM user, group, or role.
217
+ #
218
+ # * `PERMISSIONS_BOUNDARY` - A permissions boundary for an IAM entity.
219
+ #
220
+ # * `RESOURCE_BASED_POLICY` - A resource-based policy attached to a
221
+ # resource.
222
+ #
223
+ # * `RESOURCE_CONTROL_POLICY` - A resource control policy (RCP) in AWS
224
+ # Organizations.
225
+ #
226
+ # * `SERVICE_CONTROL_POLICY` - A service control policy (SCP) in AWS
227
+ # Organizations.
228
+ #
229
+ # * `SESSION_POLICY` - A session policy passed during role assumption
230
+ # or federation.
231
+ #
232
+ # * `VPC_ENDPOINT_POLICY` - A VPC endpoint policy.
233
+ # @return [String]
234
+ #
235
+ # @!attribute [rw] inline
236
+ # Specifies whether this is an inline policy (`true`) or a managed
237
+ # policy (`false`).
238
+ # @return [Boolean]
239
+ #
240
+ # @!attribute [rw] uri
241
+ # A URI that identifies the policy. Use this URI to cross-reference
242
+ # the policy with the matching policies in each evaluation. The value
243
+ # depends on the policy type:
244
+ #
245
+ # * For managed policies, this is the policy ARN.
246
+ #
247
+ # * For inline policies, which have no ARN, this is an opaque
248
+ # identifier.
249
+ # @return [String]
250
+ #
251
+ # @!attribute [rw] attached_to
252
+ # The entities that the policy is attached to. For identity, session,
253
+ # and resource-based policies, this is typically a single entity. For
254
+ # organization control policies (SCPs and RCPs), it can be multiple
255
+ # entities at different levels of the organization hierarchy.
256
+ # @return [Array<Types::AttachedTo>]
257
+ #
258
+ # @see http://docs.aws.amazon.com/goto/WebAPI/iam-toolbox-2018-05-10/PolicyInfo AWS API Documentation
259
+ #
260
+ class PolicyInfo < Struct.new(
261
+ :type,
262
+ :inline,
263
+ :uri,
264
+ :attached_to)
265
+ SENSITIVE = []
266
+ include Aws::Structure
267
+ end
268
+
269
+ # The requested authorization details do not exist in this region or
270
+ # have expired. Verify that the authorization ID from the access denied
271
+ # error message is correct and the call is made in the region where the
272
+ # denial occurred. Ensure that the calling principal belongs to the same
273
+ # account or organization as the original denied request.
274
+ #
275
+ # @!attribute [rw] message
276
+ # @return [String]
277
+ #
278
+ # @see http://docs.aws.amazon.com/goto/WebAPI/iam-toolbox-2018-05-10/ResourceNotFoundException AWS API Documentation
279
+ #
280
+ class ResourceNotFoundException < Struct.new(
281
+ :message)
282
+ SENSITIVE = []
283
+ include Aws::Structure
284
+ end
285
+
286
+ # The request is malformed or is missing one or more required
287
+ # parameters. Check the request parameters and try again.
288
+ #
289
+ # @!attribute [rw] message
290
+ # @return [String]
291
+ #
292
+ # @see http://docs.aws.amazon.com/goto/WebAPI/iam-toolbox-2018-05-10/ValidationException AWS API Documentation
293
+ #
294
+ class ValidationException < Struct.new(
295
+ :message)
296
+ SENSITIVE = []
297
+ include Aws::Structure
298
+ end
299
+
300
+ end
301
+ end
302
+
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ require 'aws-sdk-core/waiters'
11
+
12
+ module Aws::IAMToolbox
13
+ module Waiters
14
+ end
15
+ end
@@ -0,0 +1,62 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ require 'aws-sdk-core'
12
+ require 'aws-sigv4'
13
+
14
+ Aws::Plugins::GlobalConfiguration.add_identifier(:iamtoolbox)
15
+
16
+ # This module provides support for IAM Toolbox (Preview). This module is available in the
17
+ # `aws-sdk-iamtoolbox` gem.
18
+ #
19
+ # # Client
20
+ #
21
+ # The {Client} class provides one method for each API operation. Operation
22
+ # methods each accept a hash of request parameters and return a response
23
+ # structure.
24
+ #
25
+ # iam_toolbox = Aws::IAMToolbox::Client.new
26
+ # resp = iam_toolbox.get_request_authorization_details(params)
27
+ #
28
+ # See {Client} for more information.
29
+ #
30
+ # # Errors
31
+ #
32
+ # Errors returned from IAM Toolbox (Preview) are defined in the
33
+ # {Errors} module and all extend {Errors::ServiceError}.
34
+ #
35
+ # begin
36
+ # # do stuff
37
+ # rescue Aws::IAMToolbox::Errors::ServiceError
38
+ # # rescues all IAM Toolbox (Preview) API errors
39
+ # end
40
+ #
41
+ # See {Errors} for more information.
42
+ #
43
+ # @!group service
44
+ module Aws::IAMToolbox
45
+ autoload :Types, 'aws-sdk-iamtoolbox/types'
46
+ autoload :ClientApi, 'aws-sdk-iamtoolbox/client_api'
47
+ module Plugins
48
+ autoload :Endpoints, 'aws-sdk-iamtoolbox/plugins/endpoints.rb'
49
+ end
50
+ autoload :Client, 'aws-sdk-iamtoolbox/client'
51
+ autoload :Errors, 'aws-sdk-iamtoolbox/errors'
52
+ autoload :Waiters, 'aws-sdk-iamtoolbox/waiters'
53
+ autoload :Resource, 'aws-sdk-iamtoolbox/resource'
54
+ autoload :EndpointParameters, 'aws-sdk-iamtoolbox/endpoint_parameters'
55
+ autoload :EndpointProvider, 'aws-sdk-iamtoolbox/endpoint_provider'
56
+ autoload :Endpoints, 'aws-sdk-iamtoolbox/endpoints'
57
+
58
+ GEM_VERSION = '1.0.0'
59
+
60
+ end
61
+
62
+ require_relative 'aws-sdk-iamtoolbox/customizations'
data/sig/client.rbs ADDED
@@ -0,0 +1,97 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module IAMToolbox
10
+ class Client < ::Seahorse::Client::Base
11
+ include ::Aws::ClientStubs
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAMToolbox/Client.html#initialize-instance_method
14
+ def self.new: (
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?account_id: String,
19
+ ?active_endpoint_cache: bool,
20
+ ?adaptive_retry_wait_to_fill: bool,
21
+ ?auth_scheme_preference: Array[String],
22
+ ?client_side_monitoring: bool,
23
+ ?client_side_monitoring_client_id: String,
24
+ ?client_side_monitoring_host: String,
25
+ ?client_side_monitoring_port: Integer,
26
+ ?client_side_monitoring_publisher: untyped,
27
+ ?convert_params: bool,
28
+ ?correct_clock_skew: bool,
29
+ ?defaults_mode: String,
30
+ ?disable_host_prefix_injection: bool,
31
+ ?disable_request_compression: bool,
32
+ ?endpoint: String,
33
+ ?endpoint_cache_max_entries: Integer,
34
+ ?endpoint_cache_max_threads: Integer,
35
+ ?endpoint_cache_poll_interval: Integer,
36
+ ?endpoint_discovery: bool,
37
+ ?ignore_configured_endpoint_urls: bool,
38
+ ?log_formatter: untyped,
39
+ ?log_level: Symbol,
40
+ ?logger: untyped,
41
+ ?max_attempts: Integer,
42
+ ?profile: String,
43
+ ?request_checksum_calculation: String,
44
+ ?request_min_compression_size_bytes: Integer,
45
+ ?response_checksum_validation: String,
46
+ ?retry_backoff: Proc,
47
+ ?retry_base_delay: Float,
48
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
49
+ ?retry_limit: Integer,
50
+ ?retry_max_delay: Integer,
51
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
52
+ ?sdk_ua_app_id: String,
53
+ ?secret_access_key: String,
54
+ ?session_token: String,
55
+ ?sigv4a_signing_region_set: Array[String],
56
+ ?stub_responses: untyped,
57
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
58
+ ?token_provider: untyped,
59
+ ?use_dualstack_endpoint: bool,
60
+ ?use_fips_endpoint: bool,
61
+ ?validate_params: bool,
62
+ ?endpoint_provider: untyped,
63
+ ?http_proxy: String,
64
+ ?http_open_timeout: (Float | Integer),
65
+ ?http_read_timeout: (Float | Integer),
66
+ ?http_idle_timeout: (Float | Integer),
67
+ ?http_continue_timeout: (Float | Integer),
68
+ ?ssl_timeout: (Float | Integer | nil),
69
+ ?http_wire_trace: bool,
70
+ ?ssl_verify_peer: bool,
71
+ ?ssl_ca_bundle: String,
72
+ ?ssl_ca_directory: String,
73
+ ?ssl_ca_store: String,
74
+ ?on_chunk_received: Proc,
75
+ ?on_chunk_sent: Proc,
76
+ ?raise_response_errors: bool
77
+ ) -> instance
78
+ | (?Hash[Symbol, untyped]) -> instance
79
+
80
+
81
+ interface _GetRequestAuthorizationDetailsResponseSuccess
82
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetRequestAuthorizationDetailsOutput]
83
+ def request_context: () -> ::Hash[::String, untyped]
84
+ def evaluations: () -> ::Array[Types::Evaluation]
85
+ def policies: () -> ::Array[Types::PolicyInfo]
86
+ def next_token: () -> ::String
87
+ end
88
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAMToolbox/Client.html#get_request_authorization_details-instance_method
89
+ def get_request_authorization_details: (
90
+ authorization_id: ::String,
91
+ ?next_token: ::String
92
+ ) -> _GetRequestAuthorizationDetailsResponseSuccess
93
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetRequestAuthorizationDetailsResponseSuccess
94
+ end
95
+ end
96
+ end
97
+
data/sig/errors.rbs ADDED
@@ -0,0 +1,28 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module IAMToolbox
10
+ module Errors
11
+ class ServiceError < ::Aws::Errors::ServiceError
12
+ end
13
+
14
+ class AccessDeniedException < ::Aws::Errors::ServiceError
15
+ def message: () -> ::String
16
+ end
17
+ class InternalServerException < ::Aws::Errors::ServiceError
18
+ def message: () -> ::String
19
+ end
20
+ class ResourceNotFoundException < ::Aws::Errors::ServiceError
21
+ def message: () -> ::String
22
+ end
23
+ class ValidationException < ::Aws::Errors::ServiceError
24
+ def message: () -> ::String
25
+ end
26
+ end
27
+ end
28
+ end
data/sig/resource.rbs ADDED
@@ -0,0 +1,85 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module IAMToolbox
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAMToolbox/Resource.html
11
+ class Resource
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAMToolbox/Resource.html#initialize-instance_method
13
+ def initialize: (
14
+ ?client: Client,
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?account_id: String,
19
+ ?active_endpoint_cache: bool,
20
+ ?adaptive_retry_wait_to_fill: bool,
21
+ ?auth_scheme_preference: Array[String],
22
+ ?client_side_monitoring: bool,
23
+ ?client_side_monitoring_client_id: String,
24
+ ?client_side_monitoring_host: String,
25
+ ?client_side_monitoring_port: Integer,
26
+ ?client_side_monitoring_publisher: untyped,
27
+ ?convert_params: bool,
28
+ ?correct_clock_skew: bool,
29
+ ?defaults_mode: String,
30
+ ?disable_host_prefix_injection: bool,
31
+ ?disable_request_compression: bool,
32
+ ?endpoint: String,
33
+ ?endpoint_cache_max_entries: Integer,
34
+ ?endpoint_cache_max_threads: Integer,
35
+ ?endpoint_cache_poll_interval: Integer,
36
+ ?endpoint_discovery: bool,
37
+ ?ignore_configured_endpoint_urls: bool,
38
+ ?log_formatter: untyped,
39
+ ?log_level: Symbol,
40
+ ?logger: untyped,
41
+ ?max_attempts: Integer,
42
+ ?profile: String,
43
+ ?request_checksum_calculation: String,
44
+ ?request_min_compression_size_bytes: Integer,
45
+ ?response_checksum_validation: String,
46
+ ?retry_backoff: Proc,
47
+ ?retry_base_delay: Float,
48
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
49
+ ?retry_limit: Integer,
50
+ ?retry_max_delay: Integer,
51
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
52
+ ?sdk_ua_app_id: String,
53
+ ?secret_access_key: String,
54
+ ?session_token: String,
55
+ ?sigv4a_signing_region_set: Array[String],
56
+ ?stub_responses: untyped,
57
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
58
+ ?token_provider: untyped,
59
+ ?use_dualstack_endpoint: bool,
60
+ ?use_fips_endpoint: bool,
61
+ ?validate_params: bool,
62
+ ?endpoint_provider: untyped,
63
+ ?http_proxy: String,
64
+ ?http_open_timeout: (Float | Integer),
65
+ ?http_read_timeout: (Float | Integer),
66
+ ?http_idle_timeout: (Float | Integer),
67
+ ?http_continue_timeout: (Float | Integer),
68
+ ?ssl_timeout: (Float | Integer | nil),
69
+ ?http_wire_trace: bool,
70
+ ?ssl_verify_peer: bool,
71
+ ?ssl_ca_bundle: String,
72
+ ?ssl_ca_directory: String,
73
+ ?ssl_ca_store: String,
74
+ ?on_chunk_received: Proc,
75
+ ?on_chunk_sent: Proc,
76
+ ?raise_response_errors: bool
77
+ ) -> void
78
+ | (?Hash[Symbol, untyped]) -> void
79
+
80
+ def client: () -> Client
81
+
82
+
83
+ end
84
+ end
85
+ end
data/sig/types.rbs ADDED
@@ -0,0 +1,79 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::IAMToolbox
9
+ module Types
10
+
11
+ class AccessDeniedException
12
+ attr_accessor message: ::String
13
+ SENSITIVE: []
14
+ end
15
+
16
+ class AttachedTo
17
+ attr_accessor arn: ::String
18
+ SENSITIVE: []
19
+ end
20
+
21
+ class Evaluation
22
+ attr_accessor action: ::String
23
+ attr_accessor resource: ::String
24
+ attr_accessor context: ::Hash[::String, untyped]
25
+ attr_accessor evaluated_effect: ("ALLOW" | "EXPLICIT_DENY" | "IMPLICIT_DENY")
26
+ attr_accessor matched_policies: ::Array[Types::MatchedPolicy]
27
+ SENSITIVE: []
28
+ end
29
+
30
+ class GetRequestAuthorizationDetailsInput
31
+ attr_accessor authorization_id: ::String
32
+ attr_accessor next_token: ::String
33
+ SENSITIVE: []
34
+ end
35
+
36
+ class GetRequestAuthorizationDetailsOutput
37
+ attr_accessor request_context: ::Hash[::String, untyped]
38
+ attr_accessor evaluations: ::Array[Types::Evaluation]
39
+ attr_accessor policies: ::Array[Types::PolicyInfo]
40
+ attr_accessor next_token: ::String
41
+ SENSITIVE: []
42
+ end
43
+
44
+ class InternalServerException
45
+ attr_accessor message: ::String
46
+ SENSITIVE: []
47
+ end
48
+
49
+ class MatchedPolicy
50
+ attr_accessor uri: ::String
51
+ attr_accessor matched_statements: ::Array[Types::MatchedStatement]
52
+ SENSITIVE: []
53
+ end
54
+
55
+ class MatchedStatement
56
+ attr_accessor sid: ::String
57
+ attr_accessor evaluated_effect: ("ALLOW" | "DENY")
58
+ SENSITIVE: []
59
+ end
60
+
61
+ class PolicyInfo
62
+ attr_accessor type: ("IDENTITY_BASED_POLICY" | "RESOURCE_BASED_POLICY" | "PERMISSIONS_BOUNDARY" | "SESSION_POLICY" | "SERVICE_CONTROL_POLICY" | "RESOURCE_CONTROL_POLICY" | "VPC_ENDPOINT_POLICY")
63
+ attr_accessor inline: bool
64
+ attr_accessor uri: ::String
65
+ attr_accessor attached_to: ::Array[Types::AttachedTo]
66
+ SENSITIVE: []
67
+ end
68
+
69
+ class ResourceNotFoundException
70
+ attr_accessor message: ::String
71
+ SENSITIVE: []
72
+ end
73
+
74
+ class ValidationException
75
+ attr_accessor message: ::String
76
+ SENSITIVE: []
77
+ end
78
+ end
79
+ end
data/sig/waiters.rbs ADDED
@@ -0,0 +1,13 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module IAMToolbox
10
+ module Waiters
11
+ end
12
+ end
13
+ end