aws-sdk-inspector 1.5.0 → 1.6.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.
- checksums.yaml +4 -4
- data/lib/aws-sdk-inspector.rb +1 -1
- data/lib/aws-sdk-inspector/client.rb +14 -8
- data/lib/aws-sdk-inspector/client_api.rb +18 -0
- data/lib/aws-sdk-inspector/types.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e17407ffa588ebeac54e0447874d936a87a0df33
|
4
|
+
data.tar.gz: ef52d3da8d66abfacee48fa262f38b5fae4cd3bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2185ff683cc34e73d6bba6702ca1772c6b57e2788bb00b5126456108e263cb7ef2201b931aaf7fbc23e883b3805fba158a8372a657f385298c6e0ee20516e478
|
7
|
+
data.tar.gz: d7555a7c5f3230acc366bfa6bc7b7f32d0d056ced7f0291c540a2c0f55942b18191d054d0bf1c7c933bd21eb552819850cc9b714d41a242d52c5d6f506cf06dc
|
data/lib/aws-sdk-inspector.rb
CHANGED
@@ -231,8 +231,10 @@ module Aws::Inspector
|
|
231
231
|
end
|
232
232
|
|
233
233
|
# Creates a new assessment target using the ARN of the resource group
|
234
|
-
# that is generated by CreateResourceGroup. If
|
235
|
-
#
|
234
|
+
# that is generated by CreateResourceGroup. If resourceGroupArn is not
|
235
|
+
# specified, all EC2 instances in the current AWS account and region are
|
236
|
+
# included in the assessment target. If the [service-linked role][1]
|
237
|
+
# isn’t already registered, this action also creates and registers a
|
236
238
|
# service-linked role to grant Amazon Inspector access to AWS Services
|
237
239
|
# needed to perform security assessments. You can create up to 50
|
238
240
|
# assessment targets per AWS account. You can run up to 500 concurrent
|
@@ -250,6 +252,8 @@ module Aws::Inspector
|
|
250
252
|
#
|
251
253
|
# @option params [String] :resource_group_arn
|
252
254
|
# The ARN that specifies the resource group that is used to create the
|
255
|
+
# assessment target. If resourceGroupArn is not specified, all EC2
|
256
|
+
# instances in the current AWS account and region are included in the
|
253
257
|
# assessment target.
|
254
258
|
#
|
255
259
|
# @return [Types::CreateAssessmentTargetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -294,9 +298,9 @@ module Aws::Inspector
|
|
294
298
|
|
295
299
|
# Creates an assessment template for the assessment target that is
|
296
300
|
# specified by the ARN of the assessment target. If the [service-linked
|
297
|
-
# role][1] isn’t already registered, also creates and
|
298
|
-
# service-linked role to grant Amazon Inspector access to
|
299
|
-
# needed to perform security assessments.
|
301
|
+
# role][1] isn’t already registered, this action also creates and
|
302
|
+
# registers a service-linked role to grant Amazon Inspector access to
|
303
|
+
# AWS Services needed to perform security assessments.
|
300
304
|
#
|
301
305
|
#
|
302
306
|
#
|
@@ -313,8 +317,7 @@ module Aws::Inspector
|
|
313
317
|
# correspond to a particular assessment target must be unique.
|
314
318
|
#
|
315
319
|
# @option params [required, Integer] :duration_in_seconds
|
316
|
-
# The duration of the assessment run in seconds.
|
317
|
-
# 3600 seconds (one hour).
|
320
|
+
# The duration of the assessment run in seconds.
|
318
321
|
#
|
319
322
|
# @option params [required, Array<String>] :rules_package_arns
|
320
323
|
# The ARNs that specify the rules packages that you want to attach to
|
@@ -2728,6 +2731,9 @@ module Aws::Inspector
|
|
2728
2731
|
# Updates the assessment target that is specified by the ARN of the
|
2729
2732
|
# assessment target.
|
2730
2733
|
#
|
2734
|
+
# If resourceGroupArn is not specified, all EC2 instances in the current
|
2735
|
+
# AWS account and region are included in the assessment target.
|
2736
|
+
#
|
2731
2737
|
# @option params [required, String] :assessment_target_arn
|
2732
2738
|
# The ARN of the assessment target that you want to update.
|
2733
2739
|
#
|
@@ -2781,7 +2787,7 @@ module Aws::Inspector
|
|
2781
2787
|
params: params,
|
2782
2788
|
config: config)
|
2783
2789
|
context[:gem_name] = 'aws-sdk-inspector'
|
2784
|
-
context[:gem_version] = '1.
|
2790
|
+
context[:gem_version] = '1.6.0'
|
2785
2791
|
Seahorse::Client::Request.new(handlers, context)
|
2786
2792
|
end
|
2787
2793
|
|
@@ -192,6 +192,7 @@ module Aws::Inspector
|
|
192
192
|
ScopeType = Shapes::StringShape.new(name: 'ScopeType')
|
193
193
|
ScopeValue = Shapes::StringShape.new(name: 'ScopeValue')
|
194
194
|
ServiceName = Shapes::StringShape.new(name: 'ServiceName')
|
195
|
+
ServiceTemporarilyUnavailableException = Shapes::StructureShape.new(name: 'ServiceTemporarilyUnavailableException')
|
195
196
|
SetTagsForResourceRequest = Shapes::StructureShape.new(name: 'SetTagsForResourceRequest')
|
196
197
|
Severity = Shapes::StringShape.new(name: 'Severity')
|
197
198
|
SeverityList = Shapes::ListShape.new(name: 'SeverityList')
|
@@ -792,6 +793,7 @@ module Aws::Inspector
|
|
792
793
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
793
794
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
794
795
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
|
796
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceTemporarilyUnavailableException)
|
795
797
|
end)
|
796
798
|
|
797
799
|
api.add_operation(:create_assessment_target, Seahorse::Model::Operation.new.tap do |o|
|
@@ -806,6 +808,7 @@ module Aws::Inspector
|
|
806
808
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
807
809
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
|
808
810
|
o.errors << Shapes::ShapeRef.new(shape: InvalidCrossAccountRoleException)
|
811
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceTemporarilyUnavailableException)
|
809
812
|
end)
|
810
813
|
|
811
814
|
api.add_operation(:create_assessment_template, Seahorse::Model::Operation.new.tap do |o|
|
@@ -819,6 +822,7 @@ module Aws::Inspector
|
|
819
822
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
820
823
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
821
824
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
|
825
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceTemporarilyUnavailableException)
|
822
826
|
end)
|
823
827
|
|
824
828
|
api.add_operation(:create_exclusions_preview, Seahorse::Model::Operation.new.tap do |o|
|
@@ -832,6 +836,7 @@ module Aws::Inspector
|
|
832
836
|
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
833
837
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
834
838
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
|
839
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceTemporarilyUnavailableException)
|
835
840
|
end)
|
836
841
|
|
837
842
|
api.add_operation(:create_resource_group, Seahorse::Model::Operation.new.tap do |o|
|
@@ -844,6 +849,7 @@ module Aws::Inspector
|
|
844
849
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
845
850
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
846
851
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
852
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceTemporarilyUnavailableException)
|
847
853
|
end)
|
848
854
|
|
849
855
|
api.add_operation(:delete_assessment_run, Seahorse::Model::Operation.new.tap do |o|
|
@@ -857,6 +863,7 @@ module Aws::Inspector
|
|
857
863
|
o.errors << Shapes::ShapeRef.new(shape: AssessmentRunInProgressException)
|
858
864
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
859
865
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
|
866
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceTemporarilyUnavailableException)
|
860
867
|
end)
|
861
868
|
|
862
869
|
api.add_operation(:delete_assessment_target, Seahorse::Model::Operation.new.tap do |o|
|
@@ -870,6 +877,7 @@ module Aws::Inspector
|
|
870
877
|
o.errors << Shapes::ShapeRef.new(shape: AssessmentRunInProgressException)
|
871
878
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
872
879
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
|
880
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceTemporarilyUnavailableException)
|
873
881
|
end)
|
874
882
|
|
875
883
|
api.add_operation(:delete_assessment_template, Seahorse::Model::Operation.new.tap do |o|
|
@@ -883,6 +891,7 @@ module Aws::Inspector
|
|
883
891
|
o.errors << Shapes::ShapeRef.new(shape: AssessmentRunInProgressException)
|
884
892
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
885
893
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
|
894
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceTemporarilyUnavailableException)
|
886
895
|
end)
|
887
896
|
|
888
897
|
api.add_operation(:describe_assessment_runs, Seahorse::Model::Operation.new.tap do |o|
|
@@ -976,6 +985,7 @@ module Aws::Inspector
|
|
976
985
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
|
977
986
|
o.errors << Shapes::ShapeRef.new(shape: AssessmentRunInProgressException)
|
978
987
|
o.errors << Shapes::ShapeRef.new(shape: UnsupportedFeatureException)
|
988
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceTemporarilyUnavailableException)
|
979
989
|
end)
|
980
990
|
|
981
991
|
api.add_operation(:get_exclusions_preview, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1191,6 +1201,7 @@ module Aws::Inspector
|
|
1191
1201
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
1192
1202
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1193
1203
|
o.errors << Shapes::ShapeRef.new(shape: InvalidCrossAccountRoleException)
|
1204
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceTemporarilyUnavailableException)
|
1194
1205
|
end)
|
1195
1206
|
|
1196
1207
|
api.add_operation(:remove_attributes_from_findings, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1203,6 +1214,7 @@ module Aws::Inspector
|
|
1203
1214
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
1204
1215
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1205
1216
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
|
1217
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceTemporarilyUnavailableException)
|
1206
1218
|
end)
|
1207
1219
|
|
1208
1220
|
api.add_operation(:set_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1215,6 +1227,7 @@ module Aws::Inspector
|
|
1215
1227
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
1216
1228
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1217
1229
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
|
1230
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceTemporarilyUnavailableException)
|
1218
1231
|
end)
|
1219
1232
|
|
1220
1233
|
api.add_operation(:start_assessment_run, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1230,6 +1243,7 @@ module Aws::Inspector
|
|
1230
1243
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
|
1231
1244
|
o.errors << Shapes::ShapeRef.new(shape: InvalidCrossAccountRoleException)
|
1232
1245
|
o.errors << Shapes::ShapeRef.new(shape: AgentsAlreadyRunningAssessmentException)
|
1246
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceTemporarilyUnavailableException)
|
1233
1247
|
end)
|
1234
1248
|
|
1235
1249
|
api.add_operation(:stop_assessment_run, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1242,6 +1256,7 @@ module Aws::Inspector
|
|
1242
1256
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
1243
1257
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1244
1258
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
|
1259
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceTemporarilyUnavailableException)
|
1245
1260
|
end)
|
1246
1261
|
|
1247
1262
|
api.add_operation(:subscribe_to_event, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1255,6 +1270,7 @@ module Aws::Inspector
|
|
1255
1270
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
1256
1271
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1257
1272
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
|
1273
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceTemporarilyUnavailableException)
|
1258
1274
|
end)
|
1259
1275
|
|
1260
1276
|
api.add_operation(:unsubscribe_from_event, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1267,6 +1283,7 @@ module Aws::Inspector
|
|
1267
1283
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
1268
1284
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1269
1285
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
|
1286
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceTemporarilyUnavailableException)
|
1270
1287
|
end)
|
1271
1288
|
|
1272
1289
|
api.add_operation(:update_assessment_target, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1279,6 +1296,7 @@ module Aws::Inspector
|
|
1279
1296
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
1280
1297
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1281
1298
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
|
1299
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceTemporarilyUnavailableException)
|
1282
1300
|
end)
|
1283
1301
|
end
|
1284
1302
|
|
@@ -686,6 +686,8 @@ module Aws::Inspector
|
|
686
686
|
#
|
687
687
|
# @!attribute [rw] resource_group_arn
|
688
688
|
# The ARN that specifies the resource group that is used to create the
|
689
|
+
# assessment target. If resourceGroupArn is not specified, all EC2
|
690
|
+
# instances in the current AWS account and region are included in the
|
689
691
|
# assessment target.
|
690
692
|
# @return [String]
|
691
693
|
#
|
@@ -737,8 +739,7 @@ module Aws::Inspector
|
|
737
739
|
# @return [String]
|
738
740
|
#
|
739
741
|
# @!attribute [rw] duration_in_seconds
|
740
|
-
# The duration of the assessment run in seconds.
|
741
|
-
# 3600 seconds (one hour).
|
742
|
+
# The duration of the assessment run in seconds.
|
742
743
|
# @return [Integer]
|
743
744
|
#
|
744
745
|
# @!attribute [rw] rules_package_arns
|
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.
|
4
|
+
version: 1.6.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: 2018-
|
11
|
+
date: 2018-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|