aws-sdk-accessanalyzer 1.50.0 → 1.52.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.
data/sig/client.rbs CHANGED
@@ -100,7 +100,8 @@ module Aws
100
100
  policy_document: ::String,
101
101
  access: Array[
102
102
  {
103
- actions: Array[::String]
103
+ actions: Array[::String]?,
104
+ resources: Array[::String]?
104
105
  },
105
106
  ],
106
107
  policy_type: ("IDENTITY_POLICY" | "RESOURCE_POLICY")
@@ -121,6 +122,19 @@ module Aws
121
122
  ) -> _CheckNoNewAccessResponseSuccess
122
123
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CheckNoNewAccessResponseSuccess
123
124
 
125
+ interface _CheckNoPublicAccessResponseSuccess
126
+ include ::Seahorse::Client::_ResponseSuccess[Types::CheckNoPublicAccessResponse]
127
+ def result: () -> ("PASS" | "FAIL")
128
+ def message: () -> ::String
129
+ def reasons: () -> ::Array[Types::ReasonSummary]
130
+ end
131
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#check_no_public_access-instance_method
132
+ def check_no_public_access: (
133
+ policy_document: ::String,
134
+ resource_type: ("AWS::DynamoDB::Table" | "AWS::DynamoDB::Stream" | "AWS::EFS::FileSystem" | "AWS::OpenSearchService::Domain" | "AWS::Kinesis::Stream" | "AWS::Kinesis::StreamConsumer" | "AWS::KMS::Key" | "AWS::Lambda::Function" | "AWS::S3::Bucket" | "AWS::S3::AccessPoint" | "AWS::S3Express::DirectoryBucket" | "AWS::S3::Glacier" | "AWS::S3Outposts::Bucket" | "AWS::S3Outposts::AccessPoint" | "AWS::SecretsManager::Secret" | "AWS::SNS::Topic" | "AWS::SQS::Queue" | "AWS::IAM::AssumeRolePolicyDocument")
135
+ ) -> _CheckNoPublicAccessResponseSuccess
136
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CheckNoPublicAccessResponseSuccess
137
+
124
138
  interface _CreateAccessPreviewResponseSuccess
125
139
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateAccessPreviewResponse]
126
140
  def id: () -> ::String
@@ -282,6 +296,13 @@ module Aws
282
296
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
283
297
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
284
298
 
299
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#generate_finding_recommendation-instance_method
300
+ def generate_finding_recommendation: (
301
+ analyzer_arn: ::String,
302
+ id: ::String
303
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
304
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
305
+
285
306
  interface _GetAccessPreviewResponseSuccess
286
307
  include ::Seahorse::Client::_ResponseSuccess[Types::GetAccessPreviewResponse]
287
308
  def access_preview: () -> Types::AccessPreview
@@ -336,6 +357,25 @@ module Aws
336
357
  ) -> _GetFindingResponseSuccess
337
358
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetFindingResponseSuccess
338
359
 
360
+ interface _GetFindingRecommendationResponseSuccess
361
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetFindingRecommendationResponse]
362
+ def started_at: () -> ::Time
363
+ def completed_at: () -> ::Time
364
+ def next_token: () -> ::String
365
+ def resource_arn: () -> ::String
366
+ def recommended_steps: () -> ::Array[Types::RecommendedStep]
367
+ def recommendation_type: () -> ("UnusedPermissionRecommendation")
368
+ def status: () -> ("SUCCEEDED" | "FAILED" | "IN_PROGRESS")
369
+ end
370
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AccessAnalyzer/Client.html#get_finding_recommendation-instance_method
371
+ def get_finding_recommendation: (
372
+ analyzer_arn: ::String,
373
+ id: ::String,
374
+ ?max_results: ::Integer,
375
+ ?next_token: ::String
376
+ ) -> _GetFindingRecommendationResponseSuccess
377
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetFindingRecommendationResponseSuccess
378
+
339
379
  interface _GetFindingV2ResponseSuccess
340
380
  include ::Seahorse::Client::_ResponseSuccess[Types::GetFindingV2Response]
341
381
  def analyzed_at: () -> ::Time
data/sig/types.rbs CHANGED
@@ -10,6 +10,7 @@ module Aws::AccessAnalyzer
10
10
 
11
11
  class Access
12
12
  attr_accessor actions: ::Array[::String]
13
+ attr_accessor resources: ::Array[::String]
13
14
  SENSITIVE: []
14
15
  end
15
16
 
@@ -173,6 +174,19 @@ module Aws::AccessAnalyzer
173
174
  SENSITIVE: []
174
175
  end
175
176
 
177
+ class CheckNoPublicAccessRequest
178
+ attr_accessor policy_document: ::String
179
+ attr_accessor resource_type: ("AWS::DynamoDB::Table" | "AWS::DynamoDB::Stream" | "AWS::EFS::FileSystem" | "AWS::OpenSearchService::Domain" | "AWS::Kinesis::Stream" | "AWS::Kinesis::StreamConsumer" | "AWS::KMS::Key" | "AWS::Lambda::Function" | "AWS::S3::Bucket" | "AWS::S3::AccessPoint" | "AWS::S3Express::DirectoryBucket" | "AWS::S3::Glacier" | "AWS::S3Outposts::Bucket" | "AWS::S3Outposts::AccessPoint" | "AWS::SecretsManager::Secret" | "AWS::SNS::Topic" | "AWS::SQS::Queue" | "AWS::IAM::AssumeRolePolicyDocument")
180
+ SENSITIVE: [:policy_document]
181
+ end
182
+
183
+ class CheckNoPublicAccessResponse
184
+ attr_accessor result: ("PASS" | "FAIL")
185
+ attr_accessor message: ::String
186
+ attr_accessor reasons: ::Array[Types::ReasonSummary]
187
+ SENSITIVE: []
188
+ end
189
+
176
190
  class CloudTrailDetails
177
191
  attr_accessor trails: ::Array[Types::Trail]
178
192
  attr_accessor access_role: ::String
@@ -422,6 +436,12 @@ module Aws::AccessAnalyzer
422
436
  SENSITIVE: []
423
437
  end
424
438
 
439
+ class GenerateFindingRecommendationRequest
440
+ attr_accessor analyzer_arn: ::String
441
+ attr_accessor id: ::String
442
+ SENSITIVE: []
443
+ end
444
+
425
445
  class GeneratedPolicy
426
446
  attr_accessor policy: ::String
427
447
  SENSITIVE: []
@@ -483,6 +503,26 @@ module Aws::AccessAnalyzer
483
503
  SENSITIVE: []
484
504
  end
485
505
 
506
+ class GetFindingRecommendationRequest
507
+ attr_accessor analyzer_arn: ::String
508
+ attr_accessor id: ::String
509
+ attr_accessor max_results: ::Integer
510
+ attr_accessor next_token: ::String
511
+ SENSITIVE: []
512
+ end
513
+
514
+ class GetFindingRecommendationResponse
515
+ attr_accessor started_at: ::Time
516
+ attr_accessor completed_at: ::Time
517
+ attr_accessor next_token: ::String
518
+ attr_accessor error: Types::RecommendationError
519
+ attr_accessor resource_arn: ::String
520
+ attr_accessor recommended_steps: ::Array[Types::RecommendedStep]
521
+ attr_accessor recommendation_type: ("UnusedPermissionRecommendation")
522
+ attr_accessor status: ("SUCCEEDED" | "FAILED" | "IN_PROGRESS")
523
+ SENSITIVE: []
524
+ end
525
+
486
526
  class GetFindingRequest
487
527
  attr_accessor analyzer_arn: ::String
488
528
  attr_accessor id: ::String
@@ -815,6 +855,23 @@ module Aws::AccessAnalyzer
815
855
  SENSITIVE: []
816
856
  end
817
857
 
858
+ class RecommendationError
859
+ attr_accessor code: ::String
860
+ attr_accessor message: ::String
861
+ SENSITIVE: []
862
+ end
863
+
864
+ class RecommendedStep
865
+ attr_accessor unused_permissions_recommended_step: Types::UnusedPermissionsRecommendedStep
866
+ attr_accessor unknown: untyped
867
+ SENSITIVE: []
868
+
869
+ class UnusedPermissionsRecommendedStep < RecommendedStep
870
+ end
871
+ class Unknown < RecommendedStep
872
+ end
873
+ end
874
+
818
875
  class ResourceNotFoundException
819
876
  attr_accessor message: ::String
820
877
  attr_accessor resource_id: ::String
@@ -996,6 +1053,14 @@ module Aws::AccessAnalyzer
996
1053
  SENSITIVE: []
997
1054
  end
998
1055
 
1056
+ class UnusedPermissionsRecommendedStep
1057
+ attr_accessor policy_updated_at: ::Time
1058
+ attr_accessor recommended_action: ("CREATE_POLICY" | "DETACH_POLICY")
1059
+ attr_accessor recommended_policy: ::String
1060
+ attr_accessor existing_policy_id: ::String
1061
+ SENSITIVE: []
1062
+ end
1063
+
999
1064
  class UpdateArchiveRuleRequest
1000
1065
  attr_accessor analyzer_name: ::String
1001
1066
  attr_accessor rule_name: ::String
@@ -1040,7 +1105,7 @@ module Aws::AccessAnalyzer
1040
1105
 
1041
1106
  class ValidationException
1042
1107
  attr_accessor message: ::String
1043
- attr_accessor reason: ("unknownOperation" | "cannotParse" | "fieldValidationFailed" | "other")
1108
+ attr_accessor reason: ("unknownOperation" | "cannotParse" | "fieldValidationFailed" | "other" | "notSupported")
1044
1109
  attr_accessor field_list: ::Array[Types::ValidationExceptionField]
1045
1110
  SENSITIVE: []
1046
1111
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-accessanalyzer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.50.0
4
+ version: 1.52.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-05 00:00:00.000000000 Z
11
+ date: 2024-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.197.0
22
+ version: 3.198.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.197.0
32
+ version: 3.198.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement