aws-sdk-accessanalyzer 1.87.0 → 1.89.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/types.rbs CHANGED
@@ -161,14 +161,6 @@ module Aws::AccessAnalyzer
161
161
  class CancelPolicyGenerationResponse < Aws::EmptyStructure
162
162
  end
163
163
 
164
- class CancelPolicyPreviewJobRequest
165
- attr_accessor job_id: ::String
166
- SENSITIVE: []
167
- end
168
-
169
- class CancelPolicyPreviewJobResponse < Aws::EmptyStructure
170
- end
171
-
172
164
  class CheckAccessNotGrantedRequest
173
165
  attr_accessor policy_document: ::String
174
166
  attr_accessor access: ::Array[Types::Access]
@@ -317,17 +309,6 @@ module Aws::AccessAnalyzer
317
309
  SENSITIVE: []
318
310
  end
319
311
 
320
- class CreatePolicyPreviewConfigurationRequest
321
- attr_accessor client_token: ::String
322
- attr_accessor scope: ("GLOBAL")
323
- SENSITIVE: []
324
- end
325
-
326
- class CreatePolicyPreviewConfigurationResponse
327
- attr_accessor status: ("ACTIVE" | "PENDING_CREATION" | "FAILED")
328
- SENSITIVE: []
329
- end
330
-
331
312
  class Criterion
332
313
  attr_accessor eq: ::Array[::String]
333
314
  attr_accessor neq: ::Array[::String]
@@ -349,14 +330,6 @@ module Aws::AccessAnalyzer
349
330
  SENSITIVE: []
350
331
  end
351
332
 
352
- class DeletePolicyPreviewConfigurationRequest
353
- attr_accessor client_token: ::String
354
- SENSITIVE: []
355
- end
356
-
357
- class DeletePolicyPreviewConfigurationResponse < Aws::EmptyStructure
358
- end
359
-
360
333
  class DynamodbStreamConfiguration
361
334
  attr_accessor stream_policy: ::String
362
335
  SENSITIVE: []
@@ -662,27 +635,6 @@ module Aws::AccessAnalyzer
662
635
  SENSITIVE: []
663
636
  end
664
637
 
665
- class GetPolicyPreviewConfigurationRequest < Aws::EmptyStructure
666
- end
667
-
668
- class GetPolicyPreviewConfigurationResponse
669
- attr_accessor policy_preview_configurations: ::Array[Types::PolicyPreviewConfiguration]
670
- SENSITIVE: []
671
- end
672
-
673
- class GetPolicyPreviewJobRequest
674
- attr_accessor job_id: ::String
675
- SENSITIVE: []
676
- end
677
-
678
- class GetPolicyPreviewJobResponse
679
- attr_accessor job_id: ::String
680
- attr_accessor job_parameters: Types::PolicyPreviewJobParameters
681
- attr_accessor job_details: Types::PolicyPreviewJobDetails
682
- attr_accessor output_s3_uri: ::String
683
- SENSITIVE: []
684
- end
685
-
686
638
  class IamRoleConfiguration
687
639
  attr_accessor trust_policy: ::String
688
640
  SENSITIVE: []
@@ -763,7 +715,7 @@ module Aws::AccessAnalyzer
763
715
  end
764
716
 
765
717
  class JobError
766
- attr_accessor code: ("AUTHORIZATION_ERROR" | "RESOURCE_NOT_FOUND_ERROR" | "SERVICE_QUOTA_EXCEEDED_ERROR" | "SERVICE_ERROR" | "CANCELED_JOB_ERROR" | "INVALID_SERVICE_LINKED_ROLE" | "INSUFFICIENT_PERMISSIONS_ERROR" | "ORGANIZATION_ACCESS_DENIED_ERROR" | "INVALID_TARGET_ERROR" | "INVALID_POLICY_PREVIEW_CONFIGURATION" | "INVALID_ORGANIZATION_CONFIGURATION" | "S3_BUCKET_NOT_FOUND_ERROR" | "S3_BUCKET_PERMISSION_ERROR")
718
+ attr_accessor code: ("AUTHORIZATION_ERROR" | "RESOURCE_NOT_FOUND_ERROR" | "SERVICE_QUOTA_EXCEEDED_ERROR" | "SERVICE_ERROR")
767
719
  attr_accessor message: ::String
768
720
  SENSITIVE: []
769
721
  end
@@ -900,19 +852,6 @@ module Aws::AccessAnalyzer
900
852
  SENSITIVE: []
901
853
  end
902
854
 
903
- class ListPolicyPreviewJobsRequest
904
- attr_accessor filters: ::Hash[("jobStatus" | "targetId"), ::String]
905
- attr_accessor max_results: ::Integer
906
- attr_accessor next_token: ::String
907
- SENSITIVE: []
908
- end
909
-
910
- class ListPolicyPreviewJobsResponse
911
- attr_accessor analysis_reports: ::Array[Types::PolicyPreviewAnalysisReport]
912
- attr_accessor next_token: ::String
913
- SENSITIVE: []
914
- end
915
-
916
855
  class ListTagsForResourceRequest
917
856
  attr_accessor resource_arn: ::String
918
857
  SENSITIVE: []
@@ -963,13 +902,6 @@ module Aws::AccessAnalyzer
963
902
  end
964
903
  end
965
904
 
966
- class PolicyConfiguration
967
- attr_accessor job_type: ("SCP")
968
- attr_accessor target_id: ::String
969
- attr_accessor policy_documents_list: ::Array[::String]
970
- SENSITIVE: []
971
- end
972
-
973
905
  class PolicyGeneration
974
906
  attr_accessor job_id: ::String
975
907
  attr_accessor principal_arn: ::String
@@ -984,40 +916,6 @@ module Aws::AccessAnalyzer
984
916
  SENSITIVE: []
985
917
  end
986
918
 
987
- class PolicyPreviewAnalysisReport
988
- attr_accessor job_id: ::String
989
- attr_accessor status: ("SUBMITTED" | "IN_PROGRESS" | "COMPLETED" | "FAILED" | "CANCELED")
990
- attr_accessor submitted_at: ::Time
991
- attr_accessor started_at: ::Time
992
- attr_accessor completed_at: ::Time
993
- attr_accessor output_s3_uri: ::String
994
- SENSITIVE: []
995
- end
996
-
997
- class PolicyPreviewConfiguration
998
- attr_accessor scope: ("GLOBAL")
999
- attr_accessor status: ("ACTIVE" | "PENDING_CREATION" | "FAILED")
1000
- attr_accessor created_at: ::Time
1001
- attr_accessor updated_at: ::Time
1002
- SENSITIVE: []
1003
- end
1004
-
1005
- class PolicyPreviewJobDetails
1006
- attr_accessor job_status: ("SUBMITTED" | "IN_PROGRESS" | "COMPLETED" | "FAILED" | "CANCELED")
1007
- attr_accessor submitted_at: ::Time
1008
- attr_accessor started_at: ::Time
1009
- attr_accessor completed_at: ::Time
1010
- attr_accessor job_error: Types::JobError
1011
- SENSITIVE: []
1012
- end
1013
-
1014
- class PolicyPreviewJobParameters
1015
- attr_accessor start_time: ::Time
1016
- attr_accessor end_time: ::Time
1017
- attr_accessor policy_configurations: ::Array[Types::PolicyConfiguration]
1018
- SENSITIVE: []
1019
- end
1020
-
1021
919
  class Position
1022
920
  attr_accessor line: ::Integer
1023
921
  attr_accessor column: ::Integer
@@ -1183,20 +1081,6 @@ module Aws::AccessAnalyzer
1183
1081
  SENSITIVE: []
1184
1082
  end
1185
1083
 
1186
- class StartPolicyPreviewJobRequest
1187
- attr_accessor policy_configurations: ::Array[Types::PolicyConfiguration]
1188
- attr_accessor start_time: ::Time
1189
- attr_accessor end_time: ::Time
1190
- attr_accessor output_s3_uri: ::String
1191
- attr_accessor client_token: ::String
1192
- SENSITIVE: []
1193
- end
1194
-
1195
- class StartPolicyPreviewJobResponse
1196
- attr_accessor job_id: ::String
1197
- SENSITIVE: []
1198
- end
1199
-
1200
1084
  class StartResourceScanRequest
1201
1085
  attr_accessor analyzer_arn: ::String
1202
1086
  attr_accessor resource_arn: ::String
data/sig/waiters.rbs CHANGED
@@ -8,25 +8,6 @@
8
8
  module Aws
9
9
  module AccessAnalyzer
10
10
  module Waiters
11
-
12
- class PolicyPreviewConfigurationActive
13
- def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
14
- | (?Hash[Symbol, untyped]) -> void
15
-
16
- def wait: (
17
- ) -> Client::_GetPolicyPreviewConfigurationResponseSuccess
18
- | (?Hash[Symbol, untyped]) -> Client::_GetPolicyPreviewConfigurationResponseSuccess
19
- end
20
-
21
- class PolicyPreviewJobCompleted
22
- def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
23
- | (?Hash[Symbol, untyped]) -> void
24
-
25
- def wait: (
26
- job_id: ::String
27
- ) -> Client::_GetPolicyPreviewJobResponseSuccess
28
- | (Hash[Symbol, untyped]) -> Client::_GetPolicyPreviewJobResponseSuccess
29
- end
30
11
  end
31
12
  end
32
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-accessanalyzer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.87.0
4
+ version: 1.89.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
@@ -18,7 +18,7 @@ dependencies:
18
18
  version: '3'
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: 3.244.0
21
+ version: 3.247.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -28,7 +28,7 @@ dependencies:
28
28
  version: '3'
29
29
  - - ">="
30
30
  - !ruby/object:Gem::Version
31
- version: 3.244.0
31
+ version: 3.247.0
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: aws-sigv4
34
34
  requirement: !ruby/object:Gem::Requirement
@@ -65,7 +65,6 @@ files:
65
65
  - lib/aws-sdk-accessanalyzer/plugins/endpoints.rb
66
66
  - lib/aws-sdk-accessanalyzer/resource.rb
67
67
  - lib/aws-sdk-accessanalyzer/types.rb
68
- - lib/aws-sdk-accessanalyzer/waiters.rb
69
68
  - sig/client.rbs
70
69
  - sig/errors.rbs
71
70
  - sig/resource.rbs
@@ -1,171 +0,0 @@
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::AccessAnalyzer
13
- # Waiters are utility methods that poll for a particular state to occur
14
- # on a client. Waiters can fail after a number of attempts at a polling
15
- # interval defined for the service client.
16
- #
17
- # For a list of operations that can be waited for and the
18
- # client methods called for each operation, see the table below or the
19
- # {Client#wait_until} field documentation for the {Client}.
20
- #
21
- # # Invoking a Waiter
22
- # To invoke a waiter, call #wait_until on a {Client}. The first parameter
23
- # is the waiter name, which is specific to the service client and indicates
24
- # which operation is being waited for. The second parameter is a hash of
25
- # parameters that are passed to the client method called by the waiter,
26
- # which varies according to the waiter name.
27
- #
28
- # # Wait Failures
29
- # To catch errors in a waiter, use WaiterFailed,
30
- # as shown in the following example.
31
- #
32
- # rescue rescue Aws::Waiters::Errors::WaiterFailed => error
33
- # puts "failed waiting for instance running: #{error.message}
34
- # end
35
- #
36
- # # Configuring a Waiter
37
- # Each waiter has a default polling interval and a maximum number of
38
- # attempts it will make before returning control to your program.
39
- # To set these values, use the `max_attempts` and `delay` parameters
40
- # in your `#wait_until` call.
41
- # The following example waits for up to 25 seconds, polling every five seconds.
42
- #
43
- # client.wait_until(...) do |w|
44
- # w.max_attempts = 5
45
- # w.delay = 5
46
- # end
47
- #
48
- # To disable wait failures, set the value of either of these parameters
49
- # to `nil`.
50
- #
51
- # # Extending a Waiter
52
- # To modify the behavior of waiters, you can register callbacks that are
53
- # triggered before each polling attempt and before waiting.
54
- #
55
- # The following example implements an exponential backoff in a waiter
56
- # by doubling the amount of time to wait on every attempt.
57
- #
58
- # client.wait_until(...) do |w|
59
- # w.interval = 0 # disable normal sleep
60
- # w.before_wait do |n, resp|
61
- # sleep(n ** 2)
62
- # end
63
- # end
64
- #
65
- # # Available Waiters
66
- #
67
- # The following table lists the valid waiter names, the operations they call,
68
- # and the default `:delay` and `:max_attempts` values.
69
- #
70
- # | waiter_name | params | :delay | :max_attempts |
71
- # | ----------------------------------- | ----------------------------------------- | -------- | ------------- |
72
- # | policy_preview_configuration_active | {Client#get_policy_preview_configuration} | 5 | 24 |
73
- # | policy_preview_job_completed | {Client#get_policy_preview_job} | 30 | 5 |
74
- #
75
- module Waiters
76
-
77
- class PolicyPreviewConfigurationActive
78
-
79
- # @param [Hash] options
80
- # @option options [required, Client] :client
81
- # @option options [Integer] :max_attempts (24)
82
- # @option options [Integer] :delay (5)
83
- # @option options [Proc] :before_attempt
84
- # @option options [Proc] :before_wait
85
- def initialize(options)
86
- @client = options.fetch(:client)
87
- @waiter = Aws::Waiters::Waiter.new({
88
- max_attempts: 24,
89
- delay: 5,
90
- poller: Aws::Waiters::Poller.new(
91
- operation_name: :get_policy_preview_configuration,
92
- acceptors: [
93
- {
94
- "matcher" => "pathAll",
95
- "argument" => "policy_preview_configurations[].status",
96
- "state" => "success",
97
- "expected" => "ACTIVE"
98
- },
99
- {
100
- "matcher" => "pathAny",
101
- "argument" => "policy_preview_configurations[].status",
102
- "state" => "failure",
103
- "expected" => "FAILED"
104
- }
105
- ]
106
- )
107
- }.merge(options))
108
- end
109
-
110
- # @option (see Client#get_policy_preview_configuration)
111
- # @return (see Client#get_policy_preview_configuration)
112
- def wait(params = {})
113
- @waiter.wait(client: @client, params: params)
114
- end
115
-
116
- # @api private
117
- attr_reader :waiter
118
-
119
- end
120
-
121
- class PolicyPreviewJobCompleted
122
-
123
- # @param [Hash] options
124
- # @option options [required, Client] :client
125
- # @option options [Integer] :max_attempts (5)
126
- # @option options [Integer] :delay (30)
127
- # @option options [Proc] :before_attempt
128
- # @option options [Proc] :before_wait
129
- def initialize(options)
130
- @client = options.fetch(:client)
131
- @waiter = Aws::Waiters::Waiter.new({
132
- max_attempts: 5,
133
- delay: 30,
134
- poller: Aws::Waiters::Poller.new(
135
- operation_name: :get_policy_preview_job,
136
- acceptors: [
137
- {
138
- "matcher" => "path",
139
- "argument" => "job_details.job_status",
140
- "state" => "success",
141
- "expected" => "COMPLETED"
142
- },
143
- {
144
- "matcher" => "path",
145
- "argument" => "job_details.job_status",
146
- "state" => "failure",
147
- "expected" => "FAILED"
148
- },
149
- {
150
- "matcher" => "path",
151
- "argument" => "job_details.job_status",
152
- "state" => "failure",
153
- "expected" => "CANCELED"
154
- }
155
- ]
156
- )
157
- }.merge(options))
158
- end
159
-
160
- # @option (see Client#get_policy_preview_job)
161
- # @return (see Client#get_policy_preview_job)
162
- def wait(params = {})
163
- @waiter.wait(client: @client, params: params)
164
- end
165
-
166
- # @api private
167
- attr_reader :waiter
168
-
169
- end
170
- end
171
- end