aws-sdk-accessanalyzer 1.44.0 → 1.45.0

Sign up to get free protection for your applications and to get access to all the features.
data/sig/client.rbs ADDED
@@ -0,0 +1,606 @@
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 AccessAnalyzer
10
+ class Client < ::Seahorse::Client::Base
11
+ include ::Aws::ClientStubs
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#initialize-instance_method
14
+ def self.new: (
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?active_endpoint_cache: bool,
19
+ ?adaptive_retry_wait_to_fill: bool,
20
+ ?client_side_monitoring: bool,
21
+ ?client_side_monitoring_client_id: String,
22
+ ?client_side_monitoring_host: String,
23
+ ?client_side_monitoring_port: Integer,
24
+ ?client_side_monitoring_publisher: untyped,
25
+ ?convert_params: bool,
26
+ ?correct_clock_skew: bool,
27
+ ?defaults_mode: String,
28
+ ?disable_host_prefix_injection: bool,
29
+ ?disable_request_compression: bool,
30
+ ?endpoint: String,
31
+ ?endpoint_cache_max_entries: Integer,
32
+ ?endpoint_cache_max_threads: Integer,
33
+ ?endpoint_cache_poll_interval: Integer,
34
+ ?endpoint_discovery: bool,
35
+ ?ignore_configured_endpoint_urls: bool,
36
+ ?log_formatter: untyped,
37
+ ?log_level: Symbol,
38
+ ?logger: untyped,
39
+ ?max_attempts: Integer,
40
+ ?profile: String,
41
+ ?request_min_compression_size_bytes: Integer,
42
+ ?retry_backoff: Proc,
43
+ ?retry_base_delay: Float,
44
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
45
+ ?retry_limit: Integer,
46
+ ?retry_max_delay: Integer,
47
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
48
+ ?sdk_ua_app_id: String,
49
+ ?secret_access_key: String,
50
+ ?session_token: String,
51
+ ?stub_responses: untyped,
52
+ ?token_provider: untyped,
53
+ ?use_dualstack_endpoint: bool,
54
+ ?use_fips_endpoint: bool,
55
+ ?validate_params: bool,
56
+ ?endpoint_provider: untyped,
57
+ ?http_proxy: String,
58
+ ?http_open_timeout: (Float | Integer),
59
+ ?http_read_timeout: (Float | Integer),
60
+ ?http_idle_timeout: (Float | Integer),
61
+ ?http_continue_timeout: (Float | Integer),
62
+ ?ssl_timeout: (Float | Integer | nil),
63
+ ?http_wire_trace: bool,
64
+ ?ssl_verify_peer: bool,
65
+ ?ssl_ca_bundle: String,
66
+ ?ssl_ca_directory: String,
67
+ ?ssl_ca_store: String,
68
+ ?on_chunk_received: Proc,
69
+ ?on_chunk_sent: Proc,
70
+ ?raise_response_errors: bool
71
+ ) -> instance
72
+ | (?Hash[Symbol, untyped]) -> instance
73
+
74
+
75
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#apply_archive_rule-instance_method
76
+ def apply_archive_rule: (
77
+ analyzer_arn: ::String,
78
+ rule_name: ::String,
79
+ ?client_token: ::String
80
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
81
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
82
+
83
+ interface _CancelPolicyGenerationResponseSuccess
84
+ include ::Seahorse::Client::_ResponseSuccess[Types::CancelPolicyGenerationResponse]
85
+ end
86
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#cancel_policy_generation-instance_method
87
+ def cancel_policy_generation: (
88
+ job_id: ::String
89
+ ) -> _CancelPolicyGenerationResponseSuccess
90
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CancelPolicyGenerationResponseSuccess
91
+
92
+ interface _CheckAccessNotGrantedResponseSuccess
93
+ include ::Seahorse::Client::_ResponseSuccess[Types::CheckAccessNotGrantedResponse]
94
+ def result: () -> ("PASS" | "FAIL")
95
+ def message: () -> ::String
96
+ def reasons: () -> ::Array[Types::ReasonSummary]
97
+ end
98
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#check_access_not_granted-instance_method
99
+ def check_access_not_granted: (
100
+ policy_document: ::String,
101
+ access: Array[
102
+ {
103
+ actions: Array[::String]
104
+ },
105
+ ],
106
+ policy_type: ("IDENTITY_POLICY" | "RESOURCE_POLICY")
107
+ ) -> _CheckAccessNotGrantedResponseSuccess
108
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CheckAccessNotGrantedResponseSuccess
109
+
110
+ interface _CheckNoNewAccessResponseSuccess
111
+ include ::Seahorse::Client::_ResponseSuccess[Types::CheckNoNewAccessResponse]
112
+ def result: () -> ("PASS" | "FAIL")
113
+ def message: () -> ::String
114
+ def reasons: () -> ::Array[Types::ReasonSummary]
115
+ end
116
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#check_no_new_access-instance_method
117
+ def check_no_new_access: (
118
+ new_policy_document: ::String,
119
+ existing_policy_document: ::String,
120
+ policy_type: ("IDENTITY_POLICY" | "RESOURCE_POLICY")
121
+ ) -> _CheckNoNewAccessResponseSuccess
122
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CheckNoNewAccessResponseSuccess
123
+
124
+ interface _CreateAccessPreviewResponseSuccess
125
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateAccessPreviewResponse]
126
+ def id: () -> ::String
127
+ end
128
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#create_access_preview-instance_method
129
+ def create_access_preview: (
130
+ analyzer_arn: ::String,
131
+ configurations: Hash[::String, {
132
+ ebs_snapshot: {
133
+ user_ids: Array[::String]?,
134
+ groups: Array[::String]?,
135
+ kms_key_id: ::String?
136
+ }?,
137
+ ecr_repository: {
138
+ repository_policy: ::String?
139
+ }?,
140
+ iam_role: {
141
+ trust_policy: ::String?
142
+ }?,
143
+ efs_file_system: {
144
+ file_system_policy: ::String?
145
+ }?,
146
+ kms_key: {
147
+ key_policies: Hash[::String, ::String]?,
148
+ grants: Array[
149
+ {
150
+ operations: Array[("CreateGrant" | "Decrypt" | "DescribeKey" | "Encrypt" | "GenerateDataKey" | "GenerateDataKeyPair" | "GenerateDataKeyPairWithoutPlaintext" | "GenerateDataKeyWithoutPlaintext" | "GetPublicKey" | "ReEncryptFrom" | "ReEncryptTo" | "RetireGrant" | "Sign" | "Verify")],
151
+ grantee_principal: ::String,
152
+ retiring_principal: ::String?,
153
+ constraints: {
154
+ encryption_context_equals: Hash[::String, ::String]?,
155
+ encryption_context_subset: Hash[::String, ::String]?
156
+ }?,
157
+ issuing_account: ::String
158
+ },
159
+ ]?
160
+ }?,
161
+ rds_db_cluster_snapshot: {
162
+ attributes: Hash[::String, {
163
+ account_ids: Array[::String]?
164
+ }]?,
165
+ kms_key_id: ::String?
166
+ }?,
167
+ rds_db_snapshot: {
168
+ attributes: Hash[::String, {
169
+ account_ids: Array[::String]?
170
+ }]?,
171
+ kms_key_id: ::String?
172
+ }?,
173
+ secrets_manager_secret: {
174
+ kms_key_id: ::String?,
175
+ secret_policy: ::String?
176
+ }?,
177
+ s3_bucket: {
178
+ bucket_policy: ::String?,
179
+ bucket_acl_grants: Array[
180
+ {
181
+ permission: ("READ" | "WRITE" | "READ_ACP" | "WRITE_ACP" | "FULL_CONTROL"),
182
+ grantee: {
183
+ id: ::String?,
184
+ uri: ::String?
185
+ }
186
+ },
187
+ ]?,
188
+ bucket_public_access_block: {
189
+ ignore_public_acls: bool,
190
+ restrict_public_buckets: bool
191
+ }?,
192
+ access_points: Hash[::String, {
193
+ access_point_policy: ::String?,
194
+ public_access_block: {
195
+ ignore_public_acls: bool,
196
+ restrict_public_buckets: bool
197
+ }?,
198
+ network_origin: {
199
+ vpc_configuration: {
200
+ vpc_id: ::String
201
+ }?,
202
+ internet_configuration: {
203
+ }?
204
+ }?
205
+ }]?
206
+ }?,
207
+ sns_topic: {
208
+ topic_policy: ::String?
209
+ }?,
210
+ sqs_queue: {
211
+ queue_policy: ::String?
212
+ }?,
213
+ s3_express_directory_bucket: {
214
+ bucket_policy: ::String?
215
+ }?
216
+ }],
217
+ ?client_token: ::String
218
+ ) -> _CreateAccessPreviewResponseSuccess
219
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateAccessPreviewResponseSuccess
220
+
221
+ interface _CreateAnalyzerResponseSuccess
222
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateAnalyzerResponse]
223
+ def arn: () -> ::String
224
+ end
225
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#create_analyzer-instance_method
226
+ def create_analyzer: (
227
+ analyzer_name: ::String,
228
+ type: ("ACCOUNT" | "ORGANIZATION" | "ACCOUNT_UNUSED_ACCESS" | "ORGANIZATION_UNUSED_ACCESS"),
229
+ ?archive_rules: Array[
230
+ {
231
+ rule_name: ::String,
232
+ filter: Hash[::String, {
233
+ eq: Array[::String]?,
234
+ neq: Array[::String]?,
235
+ contains: Array[::String]?,
236
+ exists: bool?
237
+ }]
238
+ },
239
+ ],
240
+ ?tags: Hash[::String, ::String],
241
+ ?client_token: ::String,
242
+ ?configuration: {
243
+ unused_access: {
244
+ unused_access_age: ::Integer?
245
+ }?
246
+ }
247
+ ) -> _CreateAnalyzerResponseSuccess
248
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateAnalyzerResponseSuccess
249
+
250
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#create_archive_rule-instance_method
251
+ def create_archive_rule: (
252
+ analyzer_name: ::String,
253
+ rule_name: ::String,
254
+ filter: Hash[::String, {
255
+ eq: Array[::String]?,
256
+ neq: Array[::String]?,
257
+ contains: Array[::String]?,
258
+ exists: bool?
259
+ }],
260
+ ?client_token: ::String
261
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
262
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
263
+
264
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#delete_analyzer-instance_method
265
+ def delete_analyzer: (
266
+ analyzer_name: ::String,
267
+ ?client_token: ::String
268
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
269
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
270
+
271
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#delete_archive_rule-instance_method
272
+ def delete_archive_rule: (
273
+ analyzer_name: ::String,
274
+ rule_name: ::String,
275
+ ?client_token: ::String
276
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
277
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
278
+
279
+ interface _GetAccessPreviewResponseSuccess
280
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetAccessPreviewResponse]
281
+ def access_preview: () -> Types::AccessPreview
282
+ end
283
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#get_access_preview-instance_method
284
+ def get_access_preview: (
285
+ access_preview_id: ::String,
286
+ analyzer_arn: ::String
287
+ ) -> _GetAccessPreviewResponseSuccess
288
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetAccessPreviewResponseSuccess
289
+
290
+ interface _GetAnalyzedResourceResponseSuccess
291
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetAnalyzedResourceResponse]
292
+ def resource: () -> Types::AnalyzedResource
293
+ end
294
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#get_analyzed_resource-instance_method
295
+ def get_analyzed_resource: (
296
+ analyzer_arn: ::String,
297
+ resource_arn: ::String
298
+ ) -> _GetAnalyzedResourceResponseSuccess
299
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetAnalyzedResourceResponseSuccess
300
+
301
+ interface _GetAnalyzerResponseSuccess
302
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetAnalyzerResponse]
303
+ def analyzer: () -> Types::AnalyzerSummary
304
+ end
305
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#get_analyzer-instance_method
306
+ def get_analyzer: (
307
+ analyzer_name: ::String
308
+ ) -> _GetAnalyzerResponseSuccess
309
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetAnalyzerResponseSuccess
310
+
311
+ interface _GetArchiveRuleResponseSuccess
312
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetArchiveRuleResponse]
313
+ def archive_rule: () -> Types::ArchiveRuleSummary
314
+ end
315
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#get_archive_rule-instance_method
316
+ def get_archive_rule: (
317
+ analyzer_name: ::String,
318
+ rule_name: ::String
319
+ ) -> _GetArchiveRuleResponseSuccess
320
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetArchiveRuleResponseSuccess
321
+
322
+ interface _GetFindingResponseSuccess
323
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetFindingResponse]
324
+ def finding: () -> Types::Finding
325
+ end
326
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#get_finding-instance_method
327
+ def get_finding: (
328
+ analyzer_arn: ::String,
329
+ id: ::String
330
+ ) -> _GetFindingResponseSuccess
331
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetFindingResponseSuccess
332
+
333
+ interface _GetFindingV2ResponseSuccess
334
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetFindingV2Response]
335
+ def analyzed_at: () -> ::Time
336
+ def created_at: () -> ::Time
337
+ def id: () -> ::String
338
+ def next_token: () -> ::String
339
+ def resource: () -> ::String
340
+ def resource_type: () -> ("AWS::S3::Bucket" | "AWS::IAM::Role" | "AWS::SQS::Queue" | "AWS::Lambda::Function" | "AWS::Lambda::LayerVersion" | "AWS::KMS::Key" | "AWS::SecretsManager::Secret" | "AWS::EFS::FileSystem" | "AWS::EC2::Snapshot" | "AWS::ECR::Repository" | "AWS::RDS::DBSnapshot" | "AWS::RDS::DBClusterSnapshot" | "AWS::SNS::Topic" | "AWS::S3Express::DirectoryBucket")
341
+ def resource_owner_account: () -> ::String
342
+ def status: () -> ("ACTIVE" | "ARCHIVED" | "RESOLVED")
343
+ def updated_at: () -> ::Time
344
+ def finding_details: () -> ::Array[Types::FindingDetails]
345
+ def finding_type: () -> ("ExternalAccess" | "UnusedIAMRole" | "UnusedIAMUserAccessKey" | "UnusedIAMUserPassword" | "UnusedPermission")
346
+ end
347
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#get_finding_v2-instance_method
348
+ def get_finding_v2: (
349
+ analyzer_arn: ::String,
350
+ id: ::String,
351
+ ?max_results: ::Integer,
352
+ ?next_token: ::String
353
+ ) -> _GetFindingV2ResponseSuccess
354
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetFindingV2ResponseSuccess
355
+
356
+ interface _GetGeneratedPolicyResponseSuccess
357
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetGeneratedPolicyResponse]
358
+ def job_details: () -> Types::JobDetails
359
+ def generated_policy_result: () -> Types::GeneratedPolicyResult
360
+ end
361
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#get_generated_policy-instance_method
362
+ def get_generated_policy: (
363
+ job_id: ::String,
364
+ ?include_resource_placeholders: bool,
365
+ ?include_service_level_template: bool
366
+ ) -> _GetGeneratedPolicyResponseSuccess
367
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetGeneratedPolicyResponseSuccess
368
+
369
+ interface _ListAccessPreviewFindingsResponseSuccess
370
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListAccessPreviewFindingsResponse]
371
+ def findings: () -> ::Array[Types::AccessPreviewFinding]
372
+ def next_token: () -> ::String
373
+ end
374
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#list_access_preview_findings-instance_method
375
+ def list_access_preview_findings: (
376
+ access_preview_id: ::String,
377
+ analyzer_arn: ::String,
378
+ ?filter: Hash[::String, {
379
+ eq: Array[::String]?,
380
+ neq: Array[::String]?,
381
+ contains: Array[::String]?,
382
+ exists: bool?
383
+ }],
384
+ ?next_token: ::String,
385
+ ?max_results: ::Integer
386
+ ) -> _ListAccessPreviewFindingsResponseSuccess
387
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAccessPreviewFindingsResponseSuccess
388
+
389
+ interface _ListAccessPreviewsResponseSuccess
390
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListAccessPreviewsResponse]
391
+ def access_previews: () -> ::Array[Types::AccessPreviewSummary]
392
+ def next_token: () -> ::String
393
+ end
394
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#list_access_previews-instance_method
395
+ def list_access_previews: (
396
+ analyzer_arn: ::String,
397
+ ?next_token: ::String,
398
+ ?max_results: ::Integer
399
+ ) -> _ListAccessPreviewsResponseSuccess
400
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAccessPreviewsResponseSuccess
401
+
402
+ interface _ListAnalyzedResourcesResponseSuccess
403
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListAnalyzedResourcesResponse]
404
+ def analyzed_resources: () -> ::Array[Types::AnalyzedResourceSummary]
405
+ def next_token: () -> ::String
406
+ end
407
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#list_analyzed_resources-instance_method
408
+ def list_analyzed_resources: (
409
+ analyzer_arn: ::String,
410
+ ?resource_type: ("AWS::S3::Bucket" | "AWS::IAM::Role" | "AWS::SQS::Queue" | "AWS::Lambda::Function" | "AWS::Lambda::LayerVersion" | "AWS::KMS::Key" | "AWS::SecretsManager::Secret" | "AWS::EFS::FileSystem" | "AWS::EC2::Snapshot" | "AWS::ECR::Repository" | "AWS::RDS::DBSnapshot" | "AWS::RDS::DBClusterSnapshot" | "AWS::SNS::Topic" | "AWS::S3Express::DirectoryBucket"),
411
+ ?next_token: ::String,
412
+ ?max_results: ::Integer
413
+ ) -> _ListAnalyzedResourcesResponseSuccess
414
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAnalyzedResourcesResponseSuccess
415
+
416
+ interface _ListAnalyzersResponseSuccess
417
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListAnalyzersResponse]
418
+ def analyzers: () -> ::Array[Types::AnalyzerSummary]
419
+ def next_token: () -> ::String
420
+ end
421
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#list_analyzers-instance_method
422
+ def list_analyzers: (
423
+ ?next_token: ::String,
424
+ ?max_results: ::Integer,
425
+ ?type: ("ACCOUNT" | "ORGANIZATION" | "ACCOUNT_UNUSED_ACCESS" | "ORGANIZATION_UNUSED_ACCESS")
426
+ ) -> _ListAnalyzersResponseSuccess
427
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAnalyzersResponseSuccess
428
+
429
+ interface _ListArchiveRulesResponseSuccess
430
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListArchiveRulesResponse]
431
+ def archive_rules: () -> ::Array[Types::ArchiveRuleSummary]
432
+ def next_token: () -> ::String
433
+ end
434
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#list_archive_rules-instance_method
435
+ def list_archive_rules: (
436
+ analyzer_name: ::String,
437
+ ?next_token: ::String,
438
+ ?max_results: ::Integer
439
+ ) -> _ListArchiveRulesResponseSuccess
440
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListArchiveRulesResponseSuccess
441
+
442
+ interface _ListFindingsResponseSuccess
443
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListFindingsResponse]
444
+ def findings: () -> ::Array[Types::FindingSummary]
445
+ def next_token: () -> ::String
446
+ end
447
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#list_findings-instance_method
448
+ def list_findings: (
449
+ analyzer_arn: ::String,
450
+ ?filter: Hash[::String, {
451
+ eq: Array[::String]?,
452
+ neq: Array[::String]?,
453
+ contains: Array[::String]?,
454
+ exists: bool?
455
+ }],
456
+ ?sort: {
457
+ attribute_name: ::String?,
458
+ order_by: ("ASC" | "DESC")?
459
+ },
460
+ ?next_token: ::String,
461
+ ?max_results: ::Integer
462
+ ) -> _ListFindingsResponseSuccess
463
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListFindingsResponseSuccess
464
+
465
+ interface _ListFindingsV2ResponseSuccess
466
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListFindingsV2Response]
467
+ def findings: () -> ::Array[Types::FindingSummaryV2]
468
+ def next_token: () -> ::String
469
+ end
470
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#list_findings_v2-instance_method
471
+ def list_findings_v2: (
472
+ analyzer_arn: ::String,
473
+ ?filter: Hash[::String, {
474
+ eq: Array[::String]?,
475
+ neq: Array[::String]?,
476
+ contains: Array[::String]?,
477
+ exists: bool?
478
+ }],
479
+ ?max_results: ::Integer,
480
+ ?next_token: ::String,
481
+ ?sort: {
482
+ attribute_name: ::String?,
483
+ order_by: ("ASC" | "DESC")?
484
+ }
485
+ ) -> _ListFindingsV2ResponseSuccess
486
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListFindingsV2ResponseSuccess
487
+
488
+ interface _ListPolicyGenerationsResponseSuccess
489
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListPolicyGenerationsResponse]
490
+ def policy_generations: () -> ::Array[Types::PolicyGeneration]
491
+ def next_token: () -> ::String
492
+ end
493
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#list_policy_generations-instance_method
494
+ def list_policy_generations: (
495
+ ?principal_arn: ::String,
496
+ ?max_results: ::Integer,
497
+ ?next_token: ::String
498
+ ) -> _ListPolicyGenerationsResponseSuccess
499
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListPolicyGenerationsResponseSuccess
500
+
501
+ interface _ListTagsForResourceResponseSuccess
502
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListTagsForResourceResponse]
503
+ def tags: () -> ::Hash[::String, ::String]
504
+ end
505
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#list_tags_for_resource-instance_method
506
+ def list_tags_for_resource: (
507
+ resource_arn: ::String
508
+ ) -> _ListTagsForResourceResponseSuccess
509
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTagsForResourceResponseSuccess
510
+
511
+ interface _StartPolicyGenerationResponseSuccess
512
+ include ::Seahorse::Client::_ResponseSuccess[Types::StartPolicyGenerationResponse]
513
+ def job_id: () -> ::String
514
+ end
515
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#start_policy_generation-instance_method
516
+ def start_policy_generation: (
517
+ policy_generation_details: {
518
+ principal_arn: ::String
519
+ },
520
+ ?cloud_trail_details: {
521
+ trails: Array[
522
+ {
523
+ cloud_trail_arn: ::String,
524
+ regions: Array[::String]?,
525
+ all_regions: bool?
526
+ },
527
+ ],
528
+ access_role: ::String,
529
+ start_time: ::Time,
530
+ end_time: ::Time?
531
+ },
532
+ ?client_token: ::String
533
+ ) -> _StartPolicyGenerationResponseSuccess
534
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartPolicyGenerationResponseSuccess
535
+
536
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#start_resource_scan-instance_method
537
+ def start_resource_scan: (
538
+ analyzer_arn: ::String,
539
+ resource_arn: ::String,
540
+ ?resource_owner_account: ::String
541
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
542
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
543
+
544
+ interface _TagResourceResponseSuccess
545
+ include ::Seahorse::Client::_ResponseSuccess[Types::TagResourceResponse]
546
+ end
547
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#tag_resource-instance_method
548
+ def tag_resource: (
549
+ resource_arn: ::String,
550
+ tags: Hash[::String, ::String]
551
+ ) -> _TagResourceResponseSuccess
552
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TagResourceResponseSuccess
553
+
554
+ interface _UntagResourceResponseSuccess
555
+ include ::Seahorse::Client::_ResponseSuccess[Types::UntagResourceResponse]
556
+ end
557
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#untag_resource-instance_method
558
+ def untag_resource: (
559
+ resource_arn: ::String,
560
+ tag_keys: Array[::String]
561
+ ) -> _UntagResourceResponseSuccess
562
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UntagResourceResponseSuccess
563
+
564
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#update_archive_rule-instance_method
565
+ def update_archive_rule: (
566
+ analyzer_name: ::String,
567
+ rule_name: ::String,
568
+ filter: Hash[::String, {
569
+ eq: Array[::String]?,
570
+ neq: Array[::String]?,
571
+ contains: Array[::String]?,
572
+ exists: bool?
573
+ }],
574
+ ?client_token: ::String
575
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
576
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
577
+
578
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#update_findings-instance_method
579
+ def update_findings: (
580
+ analyzer_arn: ::String,
581
+ status: ("ACTIVE" | "ARCHIVED"),
582
+ ?ids: Array[::String],
583
+ ?resource_arn: ::String,
584
+ ?client_token: ::String
585
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
586
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
587
+
588
+ interface _ValidatePolicyResponseSuccess
589
+ include ::Seahorse::Client::_ResponseSuccess[Types::ValidatePolicyResponse]
590
+ def findings: () -> ::Array[Types::ValidatePolicyFinding]
591
+ def next_token: () -> ::String
592
+ end
593
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#validate_policy-instance_method
594
+ def validate_policy: (
595
+ ?locale: ("DE" | "EN" | "ES" | "FR" | "IT" | "JA" | "KO" | "PT_BR" | "ZH_CN" | "ZH_TW"),
596
+ ?max_results: ::Integer,
597
+ ?next_token: ::String,
598
+ policy_document: ::String,
599
+ policy_type: ("IDENTITY_POLICY" | "RESOURCE_POLICY" | "SERVICE_CONTROL_POLICY"),
600
+ ?validate_policy_resource_type: ("AWS::S3::Bucket" | "AWS::S3::AccessPoint" | "AWS::S3::MultiRegionAccessPoint" | "AWS::S3ObjectLambda::AccessPoint" | "AWS::IAM::AssumeRolePolicyDocument")
601
+ ) -> _ValidatePolicyResponseSuccess
602
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ValidatePolicyResponseSuccess
603
+ end
604
+ end
605
+ end
606
+
data/sig/errors.rbs ADDED
@@ -0,0 +1,53 @@
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 AccessAnalyzer
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
+ def resource_id: () -> ::String
20
+ def resource_type: () -> ::String
21
+ end
22
+ class InternalServerException < ::Aws::Errors::ServiceError
23
+ def message: () -> ::String
24
+ def retry_after_seconds: () -> ::String
25
+ end
26
+ class InvalidParameterException < ::Aws::Errors::ServiceError
27
+ def message: () -> ::String
28
+ end
29
+ class ResourceNotFoundException < ::Aws::Errors::ServiceError
30
+ def message: () -> ::String
31
+ def resource_id: () -> ::String
32
+ def resource_type: () -> ::String
33
+ end
34
+ class ServiceQuotaExceededException < ::Aws::Errors::ServiceError
35
+ def message: () -> ::String
36
+ def resource_id: () -> ::String
37
+ def resource_type: () -> ::String
38
+ end
39
+ class ThrottlingException < ::Aws::Errors::ServiceError
40
+ def message: () -> ::String
41
+ def retry_after_seconds: () -> ::String
42
+ end
43
+ class UnprocessableEntityException < ::Aws::Errors::ServiceError
44
+ def message: () -> ::String
45
+ end
46
+ class ValidationException < ::Aws::Errors::ServiceError
47
+ def message: () -> ::String
48
+ def reason: () -> ::String
49
+ def field_list: () -> ::String
50
+ end
51
+ end
52
+ end
53
+ end