aws-sdk-inspector 1.0.0.rc10 → 1.0.0.rc11
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.
- checksums.yaml +4 -4
- data/lib/aws-sdk-inspector.rb +1 -1
- data/lib/aws-sdk-inspector/client.rb +15 -5
- data/lib/aws-sdk-inspector/client_api.rb +50 -0
- data/lib/aws-sdk-inspector/types.rb +15 -4
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42ccccd923633d35d7858417a7ae040800a98776
|
4
|
+
data.tar.gz: cec55535d04fd5765f014b9bbaca5891eb6803e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b81773435e4ce06cd41dcbf0dc62214f6b20133211deed2f4f8fd5a1651532965d4f93aa2b5eaefa9b72f8dd9ab3ab95de44d68a8b90514611062b8e5807c301
|
7
|
+
data.tar.gz: 4bf4df5c5bfdace797168b02e8607b81de8dda8aad68e1d12e1205361d1046b00b9c8ac5c65cf90ad18fac8128692cbdd7137de9b75182538ed1bdf1d8821e01
|
data/lib/aws-sdk-inspector.rb
CHANGED
@@ -299,7 +299,9 @@ module Aws::Inspector
|
|
299
299
|
#
|
300
300
|
# @option params [Array<Types::Attribute>] :user_attributes_for_findings
|
301
301
|
# The user-defined attributes that are assigned to every finding that is
|
302
|
-
# generated by the assessment run that uses this assessment template.
|
302
|
+
# generated by the assessment run that uses this assessment template. An
|
303
|
+
# attribute is a key and value pair (an Attribute object). Within an
|
304
|
+
# assessment template, each key must be unique.
|
303
305
|
#
|
304
306
|
# @return [Types::CreateAssessmentTemplateResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
305
307
|
#
|
@@ -617,7 +619,7 @@ module Aws::Inspector
|
|
617
619
|
# resp.assessment_runs[0].arn #=> String
|
618
620
|
# resp.assessment_runs[0].name #=> String
|
619
621
|
# resp.assessment_runs[0].assessment_template_arn #=> String
|
620
|
-
# resp.assessment_runs[0].state #=> String, one of "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"
|
622
|
+
# resp.assessment_runs[0].state #=> String, one of "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"
|
621
623
|
# resp.assessment_runs[0].duration_in_seconds #=> Integer
|
622
624
|
# resp.assessment_runs[0].rules_package_arns #=> Array
|
623
625
|
# resp.assessment_runs[0].rules_package_arns[0] #=> String
|
@@ -631,7 +633,7 @@ module Aws::Inspector
|
|
631
633
|
# resp.assessment_runs[0].data_collected #=> Boolean
|
632
634
|
# resp.assessment_runs[0].state_changes #=> Array
|
633
635
|
# resp.assessment_runs[0].state_changes[0].state_changed_at #=> Time
|
634
|
-
# resp.assessment_runs[0].state_changes[0].state #=> String, one of "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"
|
636
|
+
# resp.assessment_runs[0].state_changes[0].state #=> String, one of "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"
|
635
637
|
# resp.assessment_runs[0].notifications #=> Array
|
636
638
|
# resp.assessment_runs[0].notifications[0].date #=> Time
|
637
639
|
# resp.assessment_runs[0].notifications[0].event #=> String, one of "ASSESSMENT_RUN_STARTED", "ASSESSMENT_RUN_COMPLETED", "ASSESSMENT_RUN_STATE_CHANGED", "FINDING_REPORTED", "OTHER"
|
@@ -1619,7 +1621,7 @@ module Aws::Inspector
|
|
1619
1621
|
# assessment_template_arns: ["Arn"],
|
1620
1622
|
# filter: {
|
1621
1623
|
# name_pattern: "NamePattern",
|
1622
|
-
# states: ["CREATED"], # accepts 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
|
1624
|
+
# states: ["CREATED"], # accepts 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
|
1623
1625
|
# duration_range: {
|
1624
1626
|
# min_seconds: 1,
|
1625
1627
|
# max_seconds: 1,
|
@@ -2371,6 +2373,13 @@ module Aws::Inspector
|
|
2371
2373
|
# @option params [required, String] :assessment_run_arn
|
2372
2374
|
# The ARN of the assessment run that you want to stop.
|
2373
2375
|
#
|
2376
|
+
# @option params [String] :stop_action
|
2377
|
+
# An input option that can be set to either START\_EVALUATION or
|
2378
|
+
# SKIP\_EVALUATION. START\_EVALUATION (the default value), stops the AWS
|
2379
|
+
# agent from collecting data and begins the results evaluation and the
|
2380
|
+
# findings generation process. SKIP\_EVALUATION cancels the assessment
|
2381
|
+
# run immediately, after which no findings are generated.
|
2382
|
+
#
|
2374
2383
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2375
2384
|
#
|
2376
2385
|
#
|
@@ -2386,6 +2395,7 @@ module Aws::Inspector
|
|
2386
2395
|
#
|
2387
2396
|
# resp = client.stop_assessment_run({
|
2388
2397
|
# assessment_run_arn: "Arn", # required
|
2398
|
+
# stop_action: "START_EVALUATION", # accepts START_EVALUATION, SKIP_EVALUATION
|
2389
2399
|
# })
|
2390
2400
|
#
|
2391
2401
|
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/StopAssessmentRun AWS API Documentation
|
@@ -2539,7 +2549,7 @@ module Aws::Inspector
|
|
2539
2549
|
params: params,
|
2540
2550
|
config: config)
|
2541
2551
|
context[:gem_name] = 'aws-sdk-inspector'
|
2542
|
-
context[:gem_version] = '1.0.0.
|
2552
|
+
context[:gem_version] = '1.0.0.rc11'
|
2543
2553
|
Seahorse::Client::Request.new(handlers, context)
|
2544
2554
|
end
|
2545
2555
|
|
@@ -174,6 +174,7 @@ module Aws::Inspector
|
|
174
174
|
SeverityList = Shapes::ListShape.new(name: 'SeverityList')
|
175
175
|
StartAssessmentRunRequest = Shapes::StructureShape.new(name: 'StartAssessmentRunRequest')
|
176
176
|
StartAssessmentRunResponse = Shapes::StructureShape.new(name: 'StartAssessmentRunResponse')
|
177
|
+
StopAction = Shapes::StringShape.new(name: 'StopAction')
|
177
178
|
StopAssessmentRunRequest = Shapes::StructureShape.new(name: 'StopAssessmentRunRequest')
|
178
179
|
SubscribeToEventRequest = Shapes::StructureShape.new(name: 'SubscribeToEventRequest')
|
179
180
|
Subscription = Shapes::StructureShape.new(name: 'Subscription')
|
@@ -625,6 +626,7 @@ module Aws::Inspector
|
|
625
626
|
StartAssessmentRunResponse.struct_class = Types::StartAssessmentRunResponse
|
626
627
|
|
627
628
|
StopAssessmentRunRequest.add_member(:assessment_run_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "assessmentRunArn"))
|
629
|
+
StopAssessmentRunRequest.add_member(:stop_action, Shapes::ShapeRef.new(shape: StopAction, location_name: "stopAction"))
|
628
630
|
StopAssessmentRunRequest.struct_class = Types::StopAssessmentRunRequest
|
629
631
|
|
630
632
|
SubscribeToEventRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "resourceArn"))
|
@@ -879,6 +881,12 @@ module Aws::Inspector
|
|
879
881
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
880
882
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
881
883
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
|
884
|
+
o[:pager] = Aws::Pager.new(
|
885
|
+
limit_key: "max_results",
|
886
|
+
tokens: {
|
887
|
+
"next_token" => "next_token"
|
888
|
+
}
|
889
|
+
)
|
882
890
|
end)
|
883
891
|
|
884
892
|
api.add_operation(:list_assessment_runs, Seahorse::Model::Operation.new.tap do |o|
|
@@ -891,6 +899,12 @@ module Aws::Inspector
|
|
891
899
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
892
900
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
893
901
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
|
902
|
+
o[:pager] = Aws::Pager.new(
|
903
|
+
limit_key: "max_results",
|
904
|
+
tokens: {
|
905
|
+
"next_token" => "next_token"
|
906
|
+
}
|
907
|
+
)
|
894
908
|
end)
|
895
909
|
|
896
910
|
api.add_operation(:list_assessment_targets, Seahorse::Model::Operation.new.tap do |o|
|
@@ -902,6 +916,12 @@ module Aws::Inspector
|
|
902
916
|
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
903
917
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
904
918
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
919
|
+
o[:pager] = Aws::Pager.new(
|
920
|
+
limit_key: "max_results",
|
921
|
+
tokens: {
|
922
|
+
"next_token" => "next_token"
|
923
|
+
}
|
924
|
+
)
|
905
925
|
end)
|
906
926
|
|
907
927
|
api.add_operation(:list_assessment_templates, Seahorse::Model::Operation.new.tap do |o|
|
@@ -914,6 +934,12 @@ module Aws::Inspector
|
|
914
934
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
915
935
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
916
936
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
|
937
|
+
o[:pager] = Aws::Pager.new(
|
938
|
+
limit_key: "max_results",
|
939
|
+
tokens: {
|
940
|
+
"next_token" => "next_token"
|
941
|
+
}
|
942
|
+
)
|
917
943
|
end)
|
918
944
|
|
919
945
|
api.add_operation(:list_event_subscriptions, Seahorse::Model::Operation.new.tap do |o|
|
@@ -926,6 +952,12 @@ module Aws::Inspector
|
|
926
952
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
927
953
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
928
954
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
|
955
|
+
o[:pager] = Aws::Pager.new(
|
956
|
+
limit_key: "max_results",
|
957
|
+
tokens: {
|
958
|
+
"next_token" => "next_token"
|
959
|
+
}
|
960
|
+
)
|
929
961
|
end)
|
930
962
|
|
931
963
|
api.add_operation(:list_findings, Seahorse::Model::Operation.new.tap do |o|
|
@@ -938,6 +970,12 @@ module Aws::Inspector
|
|
938
970
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
939
971
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
940
972
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
|
973
|
+
o[:pager] = Aws::Pager.new(
|
974
|
+
limit_key: "max_results",
|
975
|
+
tokens: {
|
976
|
+
"next_token" => "next_token"
|
977
|
+
}
|
978
|
+
)
|
941
979
|
end)
|
942
980
|
|
943
981
|
api.add_operation(:list_rules_packages, Seahorse::Model::Operation.new.tap do |o|
|
@@ -949,6 +987,12 @@ module Aws::Inspector
|
|
949
987
|
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
950
988
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
951
989
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
990
|
+
o[:pager] = Aws::Pager.new(
|
991
|
+
limit_key: "max_results",
|
992
|
+
tokens: {
|
993
|
+
"next_token" => "next_token"
|
994
|
+
}
|
995
|
+
)
|
952
996
|
end)
|
953
997
|
|
954
998
|
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
@@ -974,6 +1018,12 @@ module Aws::Inspector
|
|
974
1018
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
975
1019
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
|
976
1020
|
o.errors << Shapes::ShapeRef.new(shape: InvalidCrossAccountRoleException)
|
1021
|
+
o[:pager] = Aws::Pager.new(
|
1022
|
+
limit_key: "max_results",
|
1023
|
+
tokens: {
|
1024
|
+
"next_token" => "next_token"
|
1025
|
+
}
|
1026
|
+
)
|
977
1027
|
end)
|
978
1028
|
|
979
1029
|
api.add_operation(:register_cross_account_access_role, Seahorse::Model::Operation.new.tap do |o|
|
@@ -266,7 +266,7 @@ module Aws::Inspector
|
|
266
266
|
#
|
267
267
|
# {
|
268
268
|
# name_pattern: "NamePattern",
|
269
|
-
# states: ["CREATED"], # accepts 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
|
269
|
+
# states: ["CREATED"], # accepts 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
|
270
270
|
# duration_range: {
|
271
271
|
# min_seconds: 1,
|
272
272
|
# max_seconds: 1,
|
@@ -702,7 +702,8 @@ module Aws::Inspector
|
|
702
702
|
# @!attribute [rw] user_attributes_for_findings
|
703
703
|
# The user-defined attributes that are assigned to every finding that
|
704
704
|
# is generated by the assessment run that uses this assessment
|
705
|
-
# template.
|
705
|
+
# template. An attribute is a key and value pair (an Attribute
|
706
|
+
# object). Within an assessment template, each key must be unique.
|
706
707
|
# @return [Array<Types::Attribute>]
|
707
708
|
#
|
708
709
|
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/CreateAssessmentTemplateRequest AWS API Documentation
|
@@ -1515,7 +1516,7 @@ module Aws::Inspector
|
|
1515
1516
|
# assessment_template_arns: ["Arn"],
|
1516
1517
|
# filter: {
|
1517
1518
|
# name_pattern: "NamePattern",
|
1518
|
-
# states: ["CREATED"], # accepts 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
|
1519
|
+
# states: ["CREATED"], # accepts 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
|
1519
1520
|
# duration_range: {
|
1520
1521
|
# min_seconds: 1,
|
1521
1522
|
# max_seconds: 1,
|
@@ -2241,16 +2242,26 @@ module Aws::Inspector
|
|
2241
2242
|
#
|
2242
2243
|
# {
|
2243
2244
|
# assessment_run_arn: "Arn", # required
|
2245
|
+
# stop_action: "START_EVALUATION", # accepts START_EVALUATION, SKIP_EVALUATION
|
2244
2246
|
# }
|
2245
2247
|
#
|
2246
2248
|
# @!attribute [rw] assessment_run_arn
|
2247
2249
|
# The ARN of the assessment run that you want to stop.
|
2248
2250
|
# @return [String]
|
2249
2251
|
#
|
2252
|
+
# @!attribute [rw] stop_action
|
2253
|
+
# An input option that can be set to either START\_EVALUATION or
|
2254
|
+
# SKIP\_EVALUATION. START\_EVALUATION (the default value), stops the
|
2255
|
+
# AWS agent from collecting data and begins the results evaluation and
|
2256
|
+
# the findings generation process. SKIP\_EVALUATION cancels the
|
2257
|
+
# assessment run immediately, after which no findings are generated.
|
2258
|
+
# @return [String]
|
2259
|
+
#
|
2250
2260
|
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/StopAssessmentRunRequest AWS API Documentation
|
2251
2261
|
#
|
2252
2262
|
class StopAssessmentRunRequest < Struct.new(
|
2253
|
-
:assessment_run_arn
|
2263
|
+
:assessment_run_arn,
|
2264
|
+
:stop_action)
|
2254
2265
|
include Aws::Structure
|
2255
2266
|
end
|
2256
2267
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-inspector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc11
|
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: 2017-07-
|
11
|
+
date: 2017-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.0.0.
|
19
|
+
version: 3.0.0.rc19
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.0.0.
|
26
|
+
version: 3.0.0.rc19
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: aws-sigv4
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|