aws-sdk-inspector 1.54.0 → 1.56.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-inspector/client.rb +70 -46
- data/lib/aws-sdk-inspector/plugins/endpoints.rb +1 -0
- data/lib/aws-sdk-inspector.rb +1 -1
- data/sig/client.rbs +551 -0
- data/sig/errors.rbs +68 -0
- data/sig/resource.rbs +80 -0
- data/sig/types.rbs +763 -0
- data/sig/waiters.rbs +13 -0
- metadata +13 -8
data/sig/client.rbs
ADDED
@@ -0,0 +1,551 @@
|
|
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 Inspector
|
10
|
+
class Client < ::Seahorse::Client::Base
|
11
|
+
include ::Aws::ClientStubs
|
12
|
+
|
13
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/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
|
+
?simple_json: bool,
|
52
|
+
?stub_responses: untyped,
|
53
|
+
?token_provider: untyped,
|
54
|
+
?use_dualstack_endpoint: bool,
|
55
|
+
?use_fips_endpoint: bool,
|
56
|
+
?validate_params: bool,
|
57
|
+
?endpoint_provider: untyped,
|
58
|
+
?http_proxy: String,
|
59
|
+
?http_open_timeout: (Float | Integer),
|
60
|
+
?http_read_timeout: (Float | Integer),
|
61
|
+
?http_idle_timeout: (Float | Integer),
|
62
|
+
?http_continue_timeout: (Float | Integer),
|
63
|
+
?ssl_timeout: (Float | Integer | nil),
|
64
|
+
?http_wire_trace: bool,
|
65
|
+
?ssl_verify_peer: bool,
|
66
|
+
?ssl_ca_bundle: String,
|
67
|
+
?ssl_ca_directory: String,
|
68
|
+
?ssl_ca_store: String,
|
69
|
+
?on_chunk_received: Proc,
|
70
|
+
?on_chunk_sent: Proc,
|
71
|
+
?raise_response_errors: bool
|
72
|
+
) -> instance
|
73
|
+
| (?Hash[Symbol, untyped]) -> instance
|
74
|
+
|
75
|
+
|
76
|
+
interface _AddAttributesToFindingsResponseSuccess
|
77
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::AddAttributesToFindingsResponse]
|
78
|
+
def failed_items: () -> ::Hash[::String, Types::FailedItemDetails]
|
79
|
+
end
|
80
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#add_attributes_to_findings-instance_method
|
81
|
+
def add_attributes_to_findings: (
|
82
|
+
finding_arns: Array[::String],
|
83
|
+
attributes: Array[
|
84
|
+
{
|
85
|
+
key: ::String,
|
86
|
+
value: ::String?
|
87
|
+
},
|
88
|
+
]
|
89
|
+
) -> _AddAttributesToFindingsResponseSuccess
|
90
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _AddAttributesToFindingsResponseSuccess
|
91
|
+
|
92
|
+
interface _CreateAssessmentTargetResponseSuccess
|
93
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CreateAssessmentTargetResponse]
|
94
|
+
def assessment_target_arn: () -> ::String
|
95
|
+
end
|
96
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#create_assessment_target-instance_method
|
97
|
+
def create_assessment_target: (
|
98
|
+
assessment_target_name: ::String,
|
99
|
+
?resource_group_arn: ::String
|
100
|
+
) -> _CreateAssessmentTargetResponseSuccess
|
101
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateAssessmentTargetResponseSuccess
|
102
|
+
|
103
|
+
interface _CreateAssessmentTemplateResponseSuccess
|
104
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CreateAssessmentTemplateResponse]
|
105
|
+
def assessment_template_arn: () -> ::String
|
106
|
+
end
|
107
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#create_assessment_template-instance_method
|
108
|
+
def create_assessment_template: (
|
109
|
+
assessment_target_arn: ::String,
|
110
|
+
assessment_template_name: ::String,
|
111
|
+
duration_in_seconds: ::Integer,
|
112
|
+
rules_package_arns: Array[::String],
|
113
|
+
?user_attributes_for_findings: Array[
|
114
|
+
{
|
115
|
+
key: ::String,
|
116
|
+
value: ::String?
|
117
|
+
},
|
118
|
+
]
|
119
|
+
) -> _CreateAssessmentTemplateResponseSuccess
|
120
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateAssessmentTemplateResponseSuccess
|
121
|
+
|
122
|
+
interface _CreateExclusionsPreviewResponseSuccess
|
123
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CreateExclusionsPreviewResponse]
|
124
|
+
def preview_token: () -> ::String
|
125
|
+
end
|
126
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#create_exclusions_preview-instance_method
|
127
|
+
def create_exclusions_preview: (
|
128
|
+
assessment_template_arn: ::String
|
129
|
+
) -> _CreateExclusionsPreviewResponseSuccess
|
130
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateExclusionsPreviewResponseSuccess
|
131
|
+
|
132
|
+
interface _CreateResourceGroupResponseSuccess
|
133
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CreateResourceGroupResponse]
|
134
|
+
def resource_group_arn: () -> ::String
|
135
|
+
end
|
136
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#create_resource_group-instance_method
|
137
|
+
def create_resource_group: (
|
138
|
+
resource_group_tags: Array[
|
139
|
+
{
|
140
|
+
key: ::String,
|
141
|
+
value: ::String?
|
142
|
+
},
|
143
|
+
]
|
144
|
+
) -> _CreateResourceGroupResponseSuccess
|
145
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateResourceGroupResponseSuccess
|
146
|
+
|
147
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#delete_assessment_run-instance_method
|
148
|
+
def delete_assessment_run: (
|
149
|
+
assessment_run_arn: ::String
|
150
|
+
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
151
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
152
|
+
|
153
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#delete_assessment_target-instance_method
|
154
|
+
def delete_assessment_target: (
|
155
|
+
assessment_target_arn: ::String
|
156
|
+
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
157
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
158
|
+
|
159
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#delete_assessment_template-instance_method
|
160
|
+
def delete_assessment_template: (
|
161
|
+
assessment_template_arn: ::String
|
162
|
+
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
163
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
164
|
+
|
165
|
+
interface _DescribeAssessmentRunsResponseSuccess
|
166
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DescribeAssessmentRunsResponse]
|
167
|
+
def assessment_runs: () -> ::Array[Types::AssessmentRun]
|
168
|
+
def failed_items: () -> ::Hash[::String, Types::FailedItemDetails]
|
169
|
+
end
|
170
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#describe_assessment_runs-instance_method
|
171
|
+
def describe_assessment_runs: (
|
172
|
+
assessment_run_arns: Array[::String]
|
173
|
+
) -> _DescribeAssessmentRunsResponseSuccess
|
174
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeAssessmentRunsResponseSuccess
|
175
|
+
|
176
|
+
interface _DescribeAssessmentTargetsResponseSuccess
|
177
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DescribeAssessmentTargetsResponse]
|
178
|
+
def assessment_targets: () -> ::Array[Types::AssessmentTarget]
|
179
|
+
def failed_items: () -> ::Hash[::String, Types::FailedItemDetails]
|
180
|
+
end
|
181
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#describe_assessment_targets-instance_method
|
182
|
+
def describe_assessment_targets: (
|
183
|
+
assessment_target_arns: Array[::String]
|
184
|
+
) -> _DescribeAssessmentTargetsResponseSuccess
|
185
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeAssessmentTargetsResponseSuccess
|
186
|
+
|
187
|
+
interface _DescribeAssessmentTemplatesResponseSuccess
|
188
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DescribeAssessmentTemplatesResponse]
|
189
|
+
def assessment_templates: () -> ::Array[Types::AssessmentTemplate]
|
190
|
+
def failed_items: () -> ::Hash[::String, Types::FailedItemDetails]
|
191
|
+
end
|
192
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#describe_assessment_templates-instance_method
|
193
|
+
def describe_assessment_templates: (
|
194
|
+
assessment_template_arns: Array[::String]
|
195
|
+
) -> _DescribeAssessmentTemplatesResponseSuccess
|
196
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeAssessmentTemplatesResponseSuccess
|
197
|
+
|
198
|
+
interface _DescribeCrossAccountAccessRoleResponseSuccess
|
199
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DescribeCrossAccountAccessRoleResponse]
|
200
|
+
def role_arn: () -> ::String
|
201
|
+
def valid: () -> bool
|
202
|
+
def registered_at: () -> ::Time
|
203
|
+
end
|
204
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#describe_cross_account_access_role-instance_method
|
205
|
+
def describe_cross_account_access_role: () -> _DescribeCrossAccountAccessRoleResponseSuccess
|
206
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeCrossAccountAccessRoleResponseSuccess
|
207
|
+
|
208
|
+
interface _DescribeExclusionsResponseSuccess
|
209
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DescribeExclusionsResponse]
|
210
|
+
def exclusions: () -> ::Hash[::String, Types::Exclusion]
|
211
|
+
def failed_items: () -> ::Hash[::String, Types::FailedItemDetails]
|
212
|
+
end
|
213
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#describe_exclusions-instance_method
|
214
|
+
def describe_exclusions: (
|
215
|
+
exclusion_arns: Array[::String],
|
216
|
+
?locale: ("EN_US")
|
217
|
+
) -> _DescribeExclusionsResponseSuccess
|
218
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeExclusionsResponseSuccess
|
219
|
+
|
220
|
+
interface _DescribeFindingsResponseSuccess
|
221
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DescribeFindingsResponse]
|
222
|
+
def findings: () -> ::Array[Types::Finding]
|
223
|
+
def failed_items: () -> ::Hash[::String, Types::FailedItemDetails]
|
224
|
+
end
|
225
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#describe_findings-instance_method
|
226
|
+
def describe_findings: (
|
227
|
+
finding_arns: Array[::String],
|
228
|
+
?locale: ("EN_US")
|
229
|
+
) -> _DescribeFindingsResponseSuccess
|
230
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeFindingsResponseSuccess
|
231
|
+
|
232
|
+
interface _DescribeResourceGroupsResponseSuccess
|
233
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DescribeResourceGroupsResponse]
|
234
|
+
def resource_groups: () -> ::Array[Types::ResourceGroup]
|
235
|
+
def failed_items: () -> ::Hash[::String, Types::FailedItemDetails]
|
236
|
+
end
|
237
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#describe_resource_groups-instance_method
|
238
|
+
def describe_resource_groups: (
|
239
|
+
resource_group_arns: Array[::String]
|
240
|
+
) -> _DescribeResourceGroupsResponseSuccess
|
241
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeResourceGroupsResponseSuccess
|
242
|
+
|
243
|
+
interface _DescribeRulesPackagesResponseSuccess
|
244
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DescribeRulesPackagesResponse]
|
245
|
+
def rules_packages: () -> ::Array[Types::RulesPackage]
|
246
|
+
def failed_items: () -> ::Hash[::String, Types::FailedItemDetails]
|
247
|
+
end
|
248
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#describe_rules_packages-instance_method
|
249
|
+
def describe_rules_packages: (
|
250
|
+
rules_package_arns: Array[::String],
|
251
|
+
?locale: ("EN_US")
|
252
|
+
) -> _DescribeRulesPackagesResponseSuccess
|
253
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeRulesPackagesResponseSuccess
|
254
|
+
|
255
|
+
interface _GetAssessmentReportResponseSuccess
|
256
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetAssessmentReportResponse]
|
257
|
+
def status: () -> ("WORK_IN_PROGRESS" | "FAILED" | "COMPLETED")
|
258
|
+
def url: () -> ::String
|
259
|
+
end
|
260
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#get_assessment_report-instance_method
|
261
|
+
def get_assessment_report: (
|
262
|
+
assessment_run_arn: ::String,
|
263
|
+
report_file_format: ("HTML" | "PDF"),
|
264
|
+
report_type: ("FINDING" | "FULL")
|
265
|
+
) -> _GetAssessmentReportResponseSuccess
|
266
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetAssessmentReportResponseSuccess
|
267
|
+
|
268
|
+
interface _GetExclusionsPreviewResponseSuccess
|
269
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetExclusionsPreviewResponse]
|
270
|
+
def preview_status: () -> ("WORK_IN_PROGRESS" | "COMPLETED")
|
271
|
+
def exclusion_previews: () -> ::Array[Types::ExclusionPreview]
|
272
|
+
def next_token: () -> ::String
|
273
|
+
end
|
274
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#get_exclusions_preview-instance_method
|
275
|
+
def get_exclusions_preview: (
|
276
|
+
assessment_template_arn: ::String,
|
277
|
+
preview_token: ::String,
|
278
|
+
?next_token: ::String,
|
279
|
+
?max_results: ::Integer,
|
280
|
+
?locale: ("EN_US")
|
281
|
+
) -> _GetExclusionsPreviewResponseSuccess
|
282
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetExclusionsPreviewResponseSuccess
|
283
|
+
|
284
|
+
interface _GetTelemetryMetadataResponseSuccess
|
285
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetTelemetryMetadataResponse]
|
286
|
+
def telemetry_metadata: () -> ::Array[Types::TelemetryMetadata]
|
287
|
+
end
|
288
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#get_telemetry_metadata-instance_method
|
289
|
+
def get_telemetry_metadata: (
|
290
|
+
assessment_run_arn: ::String
|
291
|
+
) -> _GetTelemetryMetadataResponseSuccess
|
292
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetTelemetryMetadataResponseSuccess
|
293
|
+
|
294
|
+
interface _ListAssessmentRunAgentsResponseSuccess
|
295
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListAssessmentRunAgentsResponse]
|
296
|
+
def assessment_run_agents: () -> ::Array[Types::AssessmentRunAgent]
|
297
|
+
def next_token: () -> ::String
|
298
|
+
end
|
299
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#list_assessment_run_agents-instance_method
|
300
|
+
def list_assessment_run_agents: (
|
301
|
+
assessment_run_arn: ::String,
|
302
|
+
?filter: {
|
303
|
+
agent_healths: Array[("HEALTHY" | "UNHEALTHY" | "UNKNOWN")],
|
304
|
+
agent_health_codes: Array[("IDLE" | "RUNNING" | "SHUTDOWN" | "UNHEALTHY" | "THROTTLED" | "UNKNOWN")]
|
305
|
+
},
|
306
|
+
?next_token: ::String,
|
307
|
+
?max_results: ::Integer
|
308
|
+
) -> _ListAssessmentRunAgentsResponseSuccess
|
309
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAssessmentRunAgentsResponseSuccess
|
310
|
+
|
311
|
+
interface _ListAssessmentRunsResponseSuccess
|
312
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListAssessmentRunsResponse]
|
313
|
+
def assessment_run_arns: () -> ::Array[::String]
|
314
|
+
def next_token: () -> ::String
|
315
|
+
end
|
316
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#list_assessment_runs-instance_method
|
317
|
+
def list_assessment_runs: (
|
318
|
+
?assessment_template_arns: Array[::String],
|
319
|
+
?filter: {
|
320
|
+
name_pattern: ::String?,
|
321
|
+
states: Array[("CREATED" | "START_DATA_COLLECTION_PENDING" | "START_DATA_COLLECTION_IN_PROGRESS" | "COLLECTING_DATA" | "STOP_DATA_COLLECTION_PENDING" | "DATA_COLLECTED" | "START_EVALUATING_RULES_PENDING" | "EVALUATING_RULES" | "FAILED" | "ERROR" | "COMPLETED" | "COMPLETED_WITH_ERRORS" | "CANCELED")]?,
|
322
|
+
duration_range: {
|
323
|
+
min_seconds: ::Integer?,
|
324
|
+
max_seconds: ::Integer?
|
325
|
+
}?,
|
326
|
+
rules_package_arns: Array[::String]?,
|
327
|
+
start_time_range: {
|
328
|
+
begin_date: ::Time?,
|
329
|
+
end_date: ::Time?
|
330
|
+
}?,
|
331
|
+
completion_time_range: {
|
332
|
+
begin_date: ::Time?,
|
333
|
+
end_date: ::Time?
|
334
|
+
}?,
|
335
|
+
state_change_time_range: {
|
336
|
+
begin_date: ::Time?,
|
337
|
+
end_date: ::Time?
|
338
|
+
}?
|
339
|
+
},
|
340
|
+
?next_token: ::String,
|
341
|
+
?max_results: ::Integer
|
342
|
+
) -> _ListAssessmentRunsResponseSuccess
|
343
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAssessmentRunsResponseSuccess
|
344
|
+
|
345
|
+
interface _ListAssessmentTargetsResponseSuccess
|
346
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListAssessmentTargetsResponse]
|
347
|
+
def assessment_target_arns: () -> ::Array[::String]
|
348
|
+
def next_token: () -> ::String
|
349
|
+
end
|
350
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#list_assessment_targets-instance_method
|
351
|
+
def list_assessment_targets: (
|
352
|
+
?filter: {
|
353
|
+
assessment_target_name_pattern: ::String?
|
354
|
+
},
|
355
|
+
?next_token: ::String,
|
356
|
+
?max_results: ::Integer
|
357
|
+
) -> _ListAssessmentTargetsResponseSuccess
|
358
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAssessmentTargetsResponseSuccess
|
359
|
+
|
360
|
+
interface _ListAssessmentTemplatesResponseSuccess
|
361
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListAssessmentTemplatesResponse]
|
362
|
+
def assessment_template_arns: () -> ::Array[::String]
|
363
|
+
def next_token: () -> ::String
|
364
|
+
end
|
365
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#list_assessment_templates-instance_method
|
366
|
+
def list_assessment_templates: (
|
367
|
+
?assessment_target_arns: Array[::String],
|
368
|
+
?filter: {
|
369
|
+
name_pattern: ::String?,
|
370
|
+
duration_range: {
|
371
|
+
min_seconds: ::Integer?,
|
372
|
+
max_seconds: ::Integer?
|
373
|
+
}?,
|
374
|
+
rules_package_arns: Array[::String]?
|
375
|
+
},
|
376
|
+
?next_token: ::String,
|
377
|
+
?max_results: ::Integer
|
378
|
+
) -> _ListAssessmentTemplatesResponseSuccess
|
379
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAssessmentTemplatesResponseSuccess
|
380
|
+
|
381
|
+
interface _ListEventSubscriptionsResponseSuccess
|
382
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListEventSubscriptionsResponse]
|
383
|
+
def subscriptions: () -> ::Array[Types::Subscription]
|
384
|
+
def next_token: () -> ::String
|
385
|
+
end
|
386
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#list_event_subscriptions-instance_method
|
387
|
+
def list_event_subscriptions: (
|
388
|
+
?resource_arn: ::String,
|
389
|
+
?next_token: ::String,
|
390
|
+
?max_results: ::Integer
|
391
|
+
) -> _ListEventSubscriptionsResponseSuccess
|
392
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListEventSubscriptionsResponseSuccess
|
393
|
+
|
394
|
+
interface _ListExclusionsResponseSuccess
|
395
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListExclusionsResponse]
|
396
|
+
def exclusion_arns: () -> ::Array[::String]
|
397
|
+
def next_token: () -> ::String
|
398
|
+
end
|
399
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#list_exclusions-instance_method
|
400
|
+
def list_exclusions: (
|
401
|
+
assessment_run_arn: ::String,
|
402
|
+
?next_token: ::String,
|
403
|
+
?max_results: ::Integer
|
404
|
+
) -> _ListExclusionsResponseSuccess
|
405
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListExclusionsResponseSuccess
|
406
|
+
|
407
|
+
interface _ListFindingsResponseSuccess
|
408
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListFindingsResponse]
|
409
|
+
def finding_arns: () -> ::Array[::String]
|
410
|
+
def next_token: () -> ::String
|
411
|
+
end
|
412
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#list_findings-instance_method
|
413
|
+
def list_findings: (
|
414
|
+
?assessment_run_arns: Array[::String],
|
415
|
+
?filter: {
|
416
|
+
agent_ids: Array[::String]?,
|
417
|
+
auto_scaling_groups: Array[::String]?,
|
418
|
+
rule_names: Array[::String]?,
|
419
|
+
severities: Array[("Low" | "Medium" | "High" | "Informational" | "Undefined")]?,
|
420
|
+
rules_package_arns: Array[::String]?,
|
421
|
+
attributes: Array[
|
422
|
+
{
|
423
|
+
key: ::String,
|
424
|
+
value: ::String?
|
425
|
+
},
|
426
|
+
]?,
|
427
|
+
user_attributes: Array[
|
428
|
+
{
|
429
|
+
key: ::String,
|
430
|
+
value: ::String?
|
431
|
+
},
|
432
|
+
]?,
|
433
|
+
creation_time_range: {
|
434
|
+
begin_date: ::Time?,
|
435
|
+
end_date: ::Time?
|
436
|
+
}?
|
437
|
+
},
|
438
|
+
?next_token: ::String,
|
439
|
+
?max_results: ::Integer
|
440
|
+
) -> _ListFindingsResponseSuccess
|
441
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListFindingsResponseSuccess
|
442
|
+
|
443
|
+
interface _ListRulesPackagesResponseSuccess
|
444
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListRulesPackagesResponse]
|
445
|
+
def rules_package_arns: () -> ::Array[::String]
|
446
|
+
def next_token: () -> ::String
|
447
|
+
end
|
448
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#list_rules_packages-instance_method
|
449
|
+
def list_rules_packages: (
|
450
|
+
?next_token: ::String,
|
451
|
+
?max_results: ::Integer
|
452
|
+
) -> _ListRulesPackagesResponseSuccess
|
453
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListRulesPackagesResponseSuccess
|
454
|
+
|
455
|
+
interface _ListTagsForResourceResponseSuccess
|
456
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListTagsForResourceResponse]
|
457
|
+
def tags: () -> ::Array[Types::Tag]
|
458
|
+
end
|
459
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#list_tags_for_resource-instance_method
|
460
|
+
def list_tags_for_resource: (
|
461
|
+
resource_arn: ::String
|
462
|
+
) -> _ListTagsForResourceResponseSuccess
|
463
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTagsForResourceResponseSuccess
|
464
|
+
|
465
|
+
interface _PreviewAgentsResponseSuccess
|
466
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::PreviewAgentsResponse]
|
467
|
+
def agent_previews: () -> ::Array[Types::AgentPreview]
|
468
|
+
def next_token: () -> ::String
|
469
|
+
end
|
470
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#preview_agents-instance_method
|
471
|
+
def preview_agents: (
|
472
|
+
preview_agents_arn: ::String,
|
473
|
+
?next_token: ::String,
|
474
|
+
?max_results: ::Integer
|
475
|
+
) -> _PreviewAgentsResponseSuccess
|
476
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PreviewAgentsResponseSuccess
|
477
|
+
|
478
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#register_cross_account_access_role-instance_method
|
479
|
+
def register_cross_account_access_role: (
|
480
|
+
role_arn: ::String
|
481
|
+
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
482
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
483
|
+
|
484
|
+
interface _RemoveAttributesFromFindingsResponseSuccess
|
485
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::RemoveAttributesFromFindingsResponse]
|
486
|
+
def failed_items: () -> ::Hash[::String, Types::FailedItemDetails]
|
487
|
+
end
|
488
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#remove_attributes_from_findings-instance_method
|
489
|
+
def remove_attributes_from_findings: (
|
490
|
+
finding_arns: Array[::String],
|
491
|
+
attribute_keys: Array[::String]
|
492
|
+
) -> _RemoveAttributesFromFindingsResponseSuccess
|
493
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RemoveAttributesFromFindingsResponseSuccess
|
494
|
+
|
495
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#set_tags_for_resource-instance_method
|
496
|
+
def set_tags_for_resource: (
|
497
|
+
resource_arn: ::String,
|
498
|
+
?tags: Array[
|
499
|
+
{
|
500
|
+
key: ::String,
|
501
|
+
value: ::String?
|
502
|
+
},
|
503
|
+
]
|
504
|
+
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
505
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
506
|
+
|
507
|
+
interface _StartAssessmentRunResponseSuccess
|
508
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::StartAssessmentRunResponse]
|
509
|
+
def assessment_run_arn: () -> ::String
|
510
|
+
end
|
511
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#start_assessment_run-instance_method
|
512
|
+
def start_assessment_run: (
|
513
|
+
assessment_template_arn: ::String,
|
514
|
+
?assessment_run_name: ::String
|
515
|
+
) -> _StartAssessmentRunResponseSuccess
|
516
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartAssessmentRunResponseSuccess
|
517
|
+
|
518
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#stop_assessment_run-instance_method
|
519
|
+
def stop_assessment_run: (
|
520
|
+
assessment_run_arn: ::String,
|
521
|
+
?stop_action: ("START_EVALUATION" | "SKIP_EVALUATION")
|
522
|
+
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
523
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
524
|
+
|
525
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#subscribe_to_event-instance_method
|
526
|
+
def subscribe_to_event: (
|
527
|
+
resource_arn: ::String,
|
528
|
+
event: ("ASSESSMENT_RUN_STARTED" | "ASSESSMENT_RUN_COMPLETED" | "ASSESSMENT_RUN_STATE_CHANGED" | "FINDING_REPORTED" | "OTHER"),
|
529
|
+
topic_arn: ::String
|
530
|
+
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
531
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
532
|
+
|
533
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#unsubscribe_from_event-instance_method
|
534
|
+
def unsubscribe_from_event: (
|
535
|
+
resource_arn: ::String,
|
536
|
+
event: ("ASSESSMENT_RUN_STARTED" | "ASSESSMENT_RUN_COMPLETED" | "ASSESSMENT_RUN_STATE_CHANGED" | "FINDING_REPORTED" | "OTHER"),
|
537
|
+
topic_arn: ::String
|
538
|
+
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
539
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
540
|
+
|
541
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Inspector/Client.html#update_assessment_target-instance_method
|
542
|
+
def update_assessment_target: (
|
543
|
+
assessment_target_arn: ::String,
|
544
|
+
assessment_target_name: ::String,
|
545
|
+
?resource_group_arn: ::String
|
546
|
+
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
547
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
548
|
+
end
|
549
|
+
end
|
550
|
+
end
|
551
|
+
|
data/sig/errors.rbs
ADDED
@@ -0,0 +1,68 @@
|
|
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 Inspector
|
10
|
+
module Errors
|
11
|
+
class ServiceError < ::Aws::Errors::ServiceError
|
12
|
+
end
|
13
|
+
|
14
|
+
class AccessDeniedException < ::Aws::Errors::ServiceError
|
15
|
+
def message: () -> ::String
|
16
|
+
def error_code: () -> ::String
|
17
|
+
def can_retry: () -> ::String
|
18
|
+
end
|
19
|
+
class AgentsAlreadyRunningAssessmentException < ::Aws::Errors::ServiceError
|
20
|
+
def message: () -> ::String
|
21
|
+
def agents: () -> ::String
|
22
|
+
def agents_truncated: () -> ::String
|
23
|
+
def can_retry: () -> ::String
|
24
|
+
end
|
25
|
+
class AssessmentRunInProgressException < ::Aws::Errors::ServiceError
|
26
|
+
def message: () -> ::String
|
27
|
+
def assessment_run_arns: () -> ::String
|
28
|
+
def assessment_run_arns_truncated: () -> ::String
|
29
|
+
def can_retry: () -> ::String
|
30
|
+
end
|
31
|
+
class InternalException < ::Aws::Errors::ServiceError
|
32
|
+
def message: () -> ::String
|
33
|
+
def can_retry: () -> ::String
|
34
|
+
end
|
35
|
+
class InvalidCrossAccountRoleException < ::Aws::Errors::ServiceError
|
36
|
+
def message: () -> ::String
|
37
|
+
def error_code: () -> ::String
|
38
|
+
def can_retry: () -> ::String
|
39
|
+
end
|
40
|
+
class InvalidInputException < ::Aws::Errors::ServiceError
|
41
|
+
def message: () -> ::String
|
42
|
+
def error_code: () -> ::String
|
43
|
+
def can_retry: () -> ::String
|
44
|
+
end
|
45
|
+
class LimitExceededException < ::Aws::Errors::ServiceError
|
46
|
+
def message: () -> ::String
|
47
|
+
def error_code: () -> ::String
|
48
|
+
def can_retry: () -> ::String
|
49
|
+
end
|
50
|
+
class NoSuchEntityException < ::Aws::Errors::ServiceError
|
51
|
+
def message: () -> ::String
|
52
|
+
def error_code: () -> ::String
|
53
|
+
def can_retry: () -> ::String
|
54
|
+
end
|
55
|
+
class PreviewGenerationInProgressException < ::Aws::Errors::ServiceError
|
56
|
+
def message: () -> ::String
|
57
|
+
end
|
58
|
+
class ServiceTemporarilyUnavailableException < ::Aws::Errors::ServiceError
|
59
|
+
def message: () -> ::String
|
60
|
+
def can_retry: () -> ::String
|
61
|
+
end
|
62
|
+
class UnsupportedFeatureException < ::Aws::Errors::ServiceError
|
63
|
+
def message: () -> ::String
|
64
|
+
def can_retry: () -> ::String
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|