aws-sdk-mpa 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,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::MPA
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(:mpa)
15
+
16
+ # This module provides support for AWS Multi-party Approval. This module is available in the
17
+ # `aws-sdk-mpa` 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
+ # mpa = Aws::MPA::Client.new
26
+ # resp = mpa.cancel_session(params)
27
+ #
28
+ # See {Client} for more information.
29
+ #
30
+ # # Errors
31
+ #
32
+ # Errors returned from AWS Multi-party Approval are defined in the
33
+ # {Errors} module and all extend {Errors::ServiceError}.
34
+ #
35
+ # begin
36
+ # # do stuff
37
+ # rescue Aws::MPA::Errors::ServiceError
38
+ # # rescues all AWS Multi-party Approval API errors
39
+ # end
40
+ #
41
+ # See {Errors} for more information.
42
+ #
43
+ # @!group service
44
+ module Aws::MPA
45
+ autoload :Types, 'aws-sdk-mpa/types'
46
+ autoload :ClientApi, 'aws-sdk-mpa/client_api'
47
+ module Plugins
48
+ autoload :Endpoints, 'aws-sdk-mpa/plugins/endpoints.rb'
49
+ end
50
+ autoload :Client, 'aws-sdk-mpa/client'
51
+ autoload :Errors, 'aws-sdk-mpa/errors'
52
+ autoload :Waiters, 'aws-sdk-mpa/waiters'
53
+ autoload :Resource, 'aws-sdk-mpa/resource'
54
+ autoload :EndpointParameters, 'aws-sdk-mpa/endpoint_parameters'
55
+ autoload :EndpointProvider, 'aws-sdk-mpa/endpoint_provider'
56
+ autoload :Endpoints, 'aws-sdk-mpa/endpoints'
57
+
58
+ GEM_VERSION = '1.0.0'
59
+
60
+ end
61
+
62
+ require_relative 'aws-sdk-mpa/customizations'
data/sig/client.rbs ADDED
@@ -0,0 +1,402 @@
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 MPA
10
+ class Client < ::Seahorse::Client::Base
11
+ include ::Aws::ClientStubs
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MPA/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
+ ?client_side_monitoring: bool,
22
+ ?client_side_monitoring_client_id: String,
23
+ ?client_side_monitoring_host: String,
24
+ ?client_side_monitoring_port: Integer,
25
+ ?client_side_monitoring_publisher: untyped,
26
+ ?convert_params: bool,
27
+ ?correct_clock_skew: bool,
28
+ ?defaults_mode: String,
29
+ ?disable_host_prefix_injection: bool,
30
+ ?disable_request_compression: bool,
31
+ ?endpoint: String,
32
+ ?endpoint_cache_max_entries: Integer,
33
+ ?endpoint_cache_max_threads: Integer,
34
+ ?endpoint_cache_poll_interval: Integer,
35
+ ?endpoint_discovery: bool,
36
+ ?ignore_configured_endpoint_urls: bool,
37
+ ?log_formatter: untyped,
38
+ ?log_level: Symbol,
39
+ ?logger: untyped,
40
+ ?max_attempts: Integer,
41
+ ?profile: String,
42
+ ?request_checksum_calculation: String,
43
+ ?request_min_compression_size_bytes: Integer,
44
+ ?response_checksum_validation: String,
45
+ ?retry_backoff: Proc,
46
+ ?retry_base_delay: Float,
47
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
48
+ ?retry_limit: Integer,
49
+ ?retry_max_delay: Integer,
50
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
51
+ ?sdk_ua_app_id: String,
52
+ ?secret_access_key: String,
53
+ ?session_token: String,
54
+ ?sigv4a_signing_region_set: Array[String],
55
+ ?stub_responses: untyped,
56
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
57
+ ?token_provider: untyped,
58
+ ?use_dualstack_endpoint: bool,
59
+ ?use_fips_endpoint: bool,
60
+ ?validate_params: bool,
61
+ ?endpoint_provider: untyped,
62
+ ?http_proxy: String,
63
+ ?http_open_timeout: (Float | Integer),
64
+ ?http_read_timeout: (Float | Integer),
65
+ ?http_idle_timeout: (Float | Integer),
66
+ ?http_continue_timeout: (Float | Integer),
67
+ ?ssl_timeout: (Float | Integer | nil),
68
+ ?http_wire_trace: bool,
69
+ ?ssl_verify_peer: bool,
70
+ ?ssl_ca_bundle: String,
71
+ ?ssl_ca_directory: String,
72
+ ?ssl_ca_store: String,
73
+ ?on_chunk_received: Proc,
74
+ ?on_chunk_sent: Proc,
75
+ ?raise_response_errors: bool
76
+ ) -> instance
77
+ | (?Hash[Symbol, untyped]) -> instance
78
+
79
+
80
+ interface _CancelSessionResponseSuccess
81
+ include ::Seahorse::Client::_ResponseSuccess[Types::CancelSessionResponse]
82
+ end
83
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MPA/Client.html#cancel_session-instance_method
84
+ def cancel_session: (
85
+ session_arn: ::String
86
+ ) -> _CancelSessionResponseSuccess
87
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CancelSessionResponseSuccess
88
+
89
+ interface _CreateApprovalTeamResponseSuccess
90
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateApprovalTeamResponse]
91
+ def creation_time: () -> ::Time
92
+ def arn: () -> ::String
93
+ def name: () -> ::String
94
+ def version_id: () -> ::String
95
+ end
96
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MPA/Client.html#create_approval_team-instance_method
97
+ def create_approval_team: (
98
+ ?client_token: ::String,
99
+ approval_strategy: {
100
+ mof_n: {
101
+ min_approvals_required: ::Integer
102
+ }?
103
+ },
104
+ approvers: Array[
105
+ {
106
+ primary_identity_id: ::String,
107
+ primary_identity_source_arn: ::String
108
+ },
109
+ ],
110
+ description: ::String,
111
+ policies: Array[
112
+ {
113
+ policy_arn: ::String
114
+ },
115
+ ],
116
+ name: ::String,
117
+ ?tags: Hash[::String, ::String]
118
+ ) -> _CreateApprovalTeamResponseSuccess
119
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateApprovalTeamResponseSuccess
120
+
121
+ interface _CreateIdentitySourceResponseSuccess
122
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateIdentitySourceResponse]
123
+ def identity_source_type: () -> ("IAM_IDENTITY_CENTER")
124
+ def identity_source_arn: () -> ::String
125
+ def creation_time: () -> ::Time
126
+ end
127
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MPA/Client.html#create_identity_source-instance_method
128
+ def create_identity_source: (
129
+ identity_source_parameters: {
130
+ iam_identity_center: {
131
+ instance_arn: ::String,
132
+ region: ::String
133
+ }?
134
+ },
135
+ ?client_token: ::String,
136
+ ?tags: Hash[::String, ::String]
137
+ ) -> _CreateIdentitySourceResponseSuccess
138
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateIdentitySourceResponseSuccess
139
+
140
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MPA/Client.html#delete_identity_source-instance_method
141
+ def delete_identity_source: (
142
+ identity_source_arn: ::String
143
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
144
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
145
+
146
+ interface _DeleteInactiveApprovalTeamVersionResponseSuccess
147
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteInactiveApprovalTeamVersionResponse]
148
+ end
149
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MPA/Client.html#delete_inactive_approval_team_version-instance_method
150
+ def delete_inactive_approval_team_version: (
151
+ arn: ::String,
152
+ version_id: ::String
153
+ ) -> _DeleteInactiveApprovalTeamVersionResponseSuccess
154
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteInactiveApprovalTeamVersionResponseSuccess
155
+
156
+ interface _GetApprovalTeamResponseSuccess
157
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetApprovalTeamResponse]
158
+ def creation_time: () -> ::Time
159
+ def approval_strategy: () -> Types::ApprovalStrategyResponse
160
+ def number_of_approvers: () -> ::Integer
161
+ def approvers: () -> ::Array[Types::GetApprovalTeamResponseApprover]
162
+ def arn: () -> ::String
163
+ def description: () -> ::String
164
+ def name: () -> ::String
165
+ def status: () -> ("ACTIVE" | "INACTIVE" | "DELETING" | "PENDING")
166
+ def status_code: () -> ("VALIDATING" | "PENDING_ACTIVATION" | "FAILED_VALIDATION" | "FAILED_ACTIVATION" | "UPDATE_PENDING_APPROVAL" | "UPDATE_PENDING_ACTIVATION" | "UPDATE_FAILED_APPROVAL" | "UPDATE_FAILED_ACTIVATION" | "UPDATE_FAILED_VALIDATION" | "DELETE_PENDING_APPROVAL" | "DELETE_FAILED_APPROVAL" | "DELETE_FAILED_VALIDATION")
167
+ def status_message: () -> ::String
168
+ def update_session_arn: () -> ::String
169
+ def version_id: () -> ::String
170
+ def policies: () -> ::Array[Types::PolicyReference]
171
+ def last_update_time: () -> ::Time
172
+ def pending_update: () -> Types::PendingUpdate
173
+ end
174
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MPA/Client.html#get_approval_team-instance_method
175
+ def get_approval_team: (
176
+ arn: ::String
177
+ ) -> _GetApprovalTeamResponseSuccess
178
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetApprovalTeamResponseSuccess
179
+
180
+ interface _GetIdentitySourceResponseSuccess
181
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetIdentitySourceResponse]
182
+ def identity_source_type: () -> ("IAM_IDENTITY_CENTER")
183
+ def identity_source_parameters: () -> Types::IdentitySourceParametersForGet
184
+ def identity_source_arn: () -> ::String
185
+ def creation_time: () -> ::Time
186
+ def status: () -> ("CREATING" | "ACTIVE" | "DELETING" | "ERROR")
187
+ def status_code: () -> ("ACCESS_DENIED" | "DELETION_FAILED" | "IDC_INSTANCE_NOT_FOUND" | "IDC_INSTANCE_NOT_VALID")
188
+ def status_message: () -> ::String
189
+ end
190
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MPA/Client.html#get_identity_source-instance_method
191
+ def get_identity_source: (
192
+ identity_source_arn: ::String
193
+ ) -> _GetIdentitySourceResponseSuccess
194
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetIdentitySourceResponseSuccess
195
+
196
+ interface _GetPolicyVersionResponseSuccess
197
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetPolicyVersionResponse]
198
+ def policy_version: () -> Types::PolicyVersion
199
+ end
200
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MPA/Client.html#get_policy_version-instance_method
201
+ def get_policy_version: (
202
+ policy_version_arn: ::String
203
+ ) -> _GetPolicyVersionResponseSuccess
204
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetPolicyVersionResponseSuccess
205
+
206
+ interface _GetResourcePolicyResponseSuccess
207
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetResourcePolicyResponse]
208
+ def resource_arn: () -> ::String
209
+ def policy_type: () -> ("AWS_MANAGED" | "AWS_RAM")
210
+ def policy_version_arn: () -> ::String
211
+ def policy_name: () -> ::String
212
+ def policy_document: () -> ::String
213
+ end
214
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MPA/Client.html#get_resource_policy-instance_method
215
+ def get_resource_policy: (
216
+ resource_arn: ::String,
217
+ policy_name: ::String,
218
+ policy_type: ("AWS_MANAGED" | "AWS_RAM")
219
+ ) -> _GetResourcePolicyResponseSuccess
220
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetResourcePolicyResponseSuccess
221
+
222
+ interface _GetSessionResponseSuccess
223
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetSessionResponse]
224
+ def session_arn: () -> ::String
225
+ def approval_team_arn: () -> ::String
226
+ def approval_team_name: () -> ::String
227
+ def protected_resource_arn: () -> ::String
228
+ def approval_strategy: () -> Types::ApprovalStrategyResponse
229
+ def number_of_approvers: () -> ::Integer
230
+ def initiation_time: () -> ::Time
231
+ def expiration_time: () -> ::Time
232
+ def completion_time: () -> ::Time
233
+ def description: () -> ::String
234
+ def metadata: () -> ::Hash[::String, ::String]
235
+ def status: () -> ("PENDING" | "CANCELLED" | "APPROVED" | "FAILED" | "CREATING")
236
+ def status_code: () -> ("REJECTED" | "EXPIRED" | "CONFIGURATION_CHANGED")
237
+ def status_message: () -> ::String
238
+ def execution_status: () -> ("EXECUTED" | "FAILED" | "PENDING")
239
+ def action_name: () -> ::String
240
+ def requester_service_principal: () -> ::String
241
+ def requester_principal_arn: () -> ::String
242
+ def requester_account_id: () -> ::String
243
+ def requester_region: () -> ::String
244
+ def requester_comment: () -> ::String
245
+ def action_completion_strategy: () -> ("AUTO_COMPLETION_UPON_APPROVAL")
246
+ def approver_responses: () -> ::Array[Types::GetSessionResponseApproverResponse]
247
+ end
248
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MPA/Client.html#get_session-instance_method
249
+ def get_session: (
250
+ session_arn: ::String
251
+ ) -> _GetSessionResponseSuccess
252
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetSessionResponseSuccess
253
+
254
+ interface _ListApprovalTeamsResponseSuccess
255
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListApprovalTeamsResponse]
256
+ def next_token: () -> ::String
257
+ def approval_teams: () -> ::Array[Types::ListApprovalTeamsResponseApprovalTeam]
258
+ end
259
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MPA/Client.html#list_approval_teams-instance_method
260
+ def list_approval_teams: (
261
+ ?max_results: ::Integer,
262
+ ?next_token: ::String
263
+ ) -> _ListApprovalTeamsResponseSuccess
264
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListApprovalTeamsResponseSuccess
265
+
266
+ interface _ListIdentitySourcesResponseSuccess
267
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListIdentitySourcesResponse]
268
+ def next_token: () -> ::String
269
+ def identity_sources: () -> ::Array[Types::IdentitySourceForList]
270
+ end
271
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MPA/Client.html#list_identity_sources-instance_method
272
+ def list_identity_sources: (
273
+ ?max_results: ::Integer,
274
+ ?next_token: ::String
275
+ ) -> _ListIdentitySourcesResponseSuccess
276
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListIdentitySourcesResponseSuccess
277
+
278
+ interface _ListPoliciesResponseSuccess
279
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListPoliciesResponse]
280
+ def next_token: () -> ::String
281
+ def policies: () -> ::Array[Types::Policy]
282
+ end
283
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MPA/Client.html#list_policies-instance_method
284
+ def list_policies: (
285
+ ?max_results: ::Integer,
286
+ ?next_token: ::String
287
+ ) -> _ListPoliciesResponseSuccess
288
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListPoliciesResponseSuccess
289
+
290
+ interface _ListPolicyVersionsResponseSuccess
291
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListPolicyVersionsResponse]
292
+ def next_token: () -> ::String
293
+ def policy_versions: () -> ::Array[Types::PolicyVersionSummary]
294
+ end
295
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MPA/Client.html#list_policy_versions-instance_method
296
+ def list_policy_versions: (
297
+ ?max_results: ::Integer,
298
+ ?next_token: ::String,
299
+ policy_arn: ::String
300
+ ) -> _ListPolicyVersionsResponseSuccess
301
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListPolicyVersionsResponseSuccess
302
+
303
+ interface _ListResourcePoliciesResponseSuccess
304
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListResourcePoliciesResponse]
305
+ def next_token: () -> ::String
306
+ def resource_policies: () -> ::Array[Types::ListResourcePoliciesResponseResourcePolicy]
307
+ end
308
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MPA/Client.html#list_resource_policies-instance_method
309
+ def list_resource_policies: (
310
+ resource_arn: ::String,
311
+ ?max_results: ::Integer,
312
+ ?next_token: ::String
313
+ ) -> _ListResourcePoliciesResponseSuccess
314
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListResourcePoliciesResponseSuccess
315
+
316
+ interface _ListSessionsResponseSuccess
317
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListSessionsResponse]
318
+ def next_token: () -> ::String
319
+ def sessions: () -> ::Array[Types::ListSessionsResponseSession]
320
+ end
321
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MPA/Client.html#list_sessions-instance_method
322
+ def list_sessions: (
323
+ approval_team_arn: ::String,
324
+ ?max_results: ::Integer,
325
+ ?next_token: ::String,
326
+ ?filters: Array[
327
+ {
328
+ field_name: ("ActionName" | "ApprovalTeamName" | "VotingTime" | "Vote" | "SessionStatus" | "InitiationTime")?,
329
+ operator: ("EQ" | "NE" | "GT" | "LT" | "GTE" | "LTE" | "CONTAINS" | "NOT_CONTAINS" | "BETWEEN")?,
330
+ value: ::String?
331
+ },
332
+ ]
333
+ ) -> _ListSessionsResponseSuccess
334
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListSessionsResponseSuccess
335
+
336
+ interface _ListTagsForResourceResponseSuccess
337
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListTagsForResourceResponse]
338
+ def tags: () -> ::Hash[::String, ::String]
339
+ end
340
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MPA/Client.html#list_tags_for_resource-instance_method
341
+ def list_tags_for_resource: (
342
+ resource_arn: ::String
343
+ ) -> _ListTagsForResourceResponseSuccess
344
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTagsForResourceResponseSuccess
345
+
346
+ interface _StartActiveApprovalTeamDeletionResponseSuccess
347
+ include ::Seahorse::Client::_ResponseSuccess[Types::StartActiveApprovalTeamDeletionResponse]
348
+ def deletion_completion_time: () -> ::Time
349
+ def deletion_start_time: () -> ::Time
350
+ end
351
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MPA/Client.html#start_active_approval_team_deletion-instance_method
352
+ def start_active_approval_team_deletion: (
353
+ ?pending_window_days: ::Integer,
354
+ arn: ::String
355
+ ) -> _StartActiveApprovalTeamDeletionResponseSuccess
356
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartActiveApprovalTeamDeletionResponseSuccess
357
+
358
+ interface _TagResourceResponseSuccess
359
+ include ::Seahorse::Client::_ResponseSuccess[Types::TagResourceResponse]
360
+ end
361
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MPA/Client.html#tag_resource-instance_method
362
+ def tag_resource: (
363
+ resource_arn: ::String,
364
+ tags: Hash[::String, ::String]
365
+ ) -> _TagResourceResponseSuccess
366
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TagResourceResponseSuccess
367
+
368
+ interface _UntagResourceResponseSuccess
369
+ include ::Seahorse::Client::_ResponseSuccess[Types::UntagResourceResponse]
370
+ end
371
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MPA/Client.html#untag_resource-instance_method
372
+ def untag_resource: (
373
+ resource_arn: ::String,
374
+ tag_keys: Array[::String]
375
+ ) -> _UntagResourceResponseSuccess
376
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UntagResourceResponseSuccess
377
+
378
+ interface _UpdateApprovalTeamResponseSuccess
379
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateApprovalTeamResponse]
380
+ def version_id: () -> ::String
381
+ end
382
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MPA/Client.html#update_approval_team-instance_method
383
+ def update_approval_team: (
384
+ ?approval_strategy: {
385
+ mof_n: {
386
+ min_approvals_required: ::Integer
387
+ }?
388
+ },
389
+ ?approvers: Array[
390
+ {
391
+ primary_identity_id: ::String,
392
+ primary_identity_source_arn: ::String
393
+ },
394
+ ],
395
+ ?description: ::String,
396
+ arn: ::String
397
+ ) -> _UpdateApprovalTeamResponseSuccess
398
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateApprovalTeamResponseSuccess
399
+ end
400
+ end
401
+ end
402
+
data/sig/errors.rbs ADDED
@@ -0,0 +1,44 @@
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 MPA
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 ConflictException < ::Aws::Errors::ServiceError
18
+ def message: () -> ::String
19
+ end
20
+ class InternalServerException < ::Aws::Errors::ServiceError
21
+ def message: () -> ::String
22
+ end
23
+ class InvalidParameterException < ::Aws::Errors::ServiceError
24
+ def message: () -> ::String
25
+ end
26
+ class ResourceNotFoundException < ::Aws::Errors::ServiceError
27
+ def message: () -> ::String
28
+ end
29
+ class ServiceQuotaExceededException < ::Aws::Errors::ServiceError
30
+ def message: () -> ::String
31
+ end
32
+ class ThrottlingException < ::Aws::Errors::ServiceError
33
+ def message: () -> ::String
34
+ end
35
+ class TooManyTagsException < ::Aws::Errors::ServiceError
36
+ def message: () -> ::String
37
+ def resource_name: () -> ::String
38
+ end
39
+ class ValidationException < ::Aws::Errors::ServiceError
40
+ def message: () -> ::String
41
+ end
42
+ end
43
+ end
44
+ end
data/sig/resource.rbs ADDED
@@ -0,0 +1,84 @@
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 MPA
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MPA/Resource.html
11
+ class Resource
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MPA/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
+ ?client_side_monitoring: bool,
22
+ ?client_side_monitoring_client_id: String,
23
+ ?client_side_monitoring_host: String,
24
+ ?client_side_monitoring_port: Integer,
25
+ ?client_side_monitoring_publisher: untyped,
26
+ ?convert_params: bool,
27
+ ?correct_clock_skew: bool,
28
+ ?defaults_mode: String,
29
+ ?disable_host_prefix_injection: bool,
30
+ ?disable_request_compression: bool,
31
+ ?endpoint: String,
32
+ ?endpoint_cache_max_entries: Integer,
33
+ ?endpoint_cache_max_threads: Integer,
34
+ ?endpoint_cache_poll_interval: Integer,
35
+ ?endpoint_discovery: bool,
36
+ ?ignore_configured_endpoint_urls: bool,
37
+ ?log_formatter: untyped,
38
+ ?log_level: Symbol,
39
+ ?logger: untyped,
40
+ ?max_attempts: Integer,
41
+ ?profile: String,
42
+ ?request_checksum_calculation: String,
43
+ ?request_min_compression_size_bytes: Integer,
44
+ ?response_checksum_validation: String,
45
+ ?retry_backoff: Proc,
46
+ ?retry_base_delay: Float,
47
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
48
+ ?retry_limit: Integer,
49
+ ?retry_max_delay: Integer,
50
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
51
+ ?sdk_ua_app_id: String,
52
+ ?secret_access_key: String,
53
+ ?session_token: String,
54
+ ?sigv4a_signing_region_set: Array[String],
55
+ ?stub_responses: untyped,
56
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
57
+ ?token_provider: untyped,
58
+ ?use_dualstack_endpoint: bool,
59
+ ?use_fips_endpoint: bool,
60
+ ?validate_params: bool,
61
+ ?endpoint_provider: untyped,
62
+ ?http_proxy: String,
63
+ ?http_open_timeout: (Float | Integer),
64
+ ?http_read_timeout: (Float | Integer),
65
+ ?http_idle_timeout: (Float | Integer),
66
+ ?http_continue_timeout: (Float | Integer),
67
+ ?ssl_timeout: (Float | Integer | nil),
68
+ ?http_wire_trace: bool,
69
+ ?ssl_verify_peer: bool,
70
+ ?ssl_ca_bundle: String,
71
+ ?ssl_ca_directory: String,
72
+ ?ssl_ca_store: String,
73
+ ?on_chunk_received: Proc,
74
+ ?on_chunk_sent: Proc,
75
+ ?raise_response_errors: bool
76
+ ) -> void
77
+ | (?Hash[Symbol, untyped]) -> void
78
+
79
+ def client: () -> Client
80
+
81
+
82
+ end
83
+ end
84
+ end