aws-sdk-inspector 1.0.0.rc6 → 1.0.0.rc7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-inspector.rb +1 -1
- data/lib/aws-sdk-inspector/client.rb +961 -1
- 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: 7c5528375e294b5b07f172a1a6843988cee57298
|
4
|
+
data.tar.gz: e6400356e417f391fe52ae76ec1a082b31d10977
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0c02b7f2cd6974d95e0d5fab4eccaefc8661b0b7d4b8a874be9785a99f0ae5dee455d1805f4f930cf988bad8b658172ce84755781846adfe37f2a6d2419ae9d
|
7
|
+
data.tar.gz: c44b4ec2794a629aeff49846588052c00536a88921bd4928bae1b83469f915fc3b3a2f8030d01f8b90762e45651e316bc56e880ebfceed07cc8d884ad1cfc95d
|
data/lib/aws-sdk-inspector.rb
CHANGED
@@ -169,6 +169,29 @@ module Aws::Inspector
|
|
169
169
|
#
|
170
170
|
# * {Types::AddAttributesToFindingsResponse#failed_items #failed_items} => Hash<String,Types::FailedItemDetails>
|
171
171
|
#
|
172
|
+
#
|
173
|
+
# @example Example: Add attributes to findings
|
174
|
+
#
|
175
|
+
# # Assigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings.
|
176
|
+
#
|
177
|
+
# resp = client.add_attributes_to_findings({
|
178
|
+
# attributes: [
|
179
|
+
# {
|
180
|
+
# key: "Example",
|
181
|
+
# value: "example",
|
182
|
+
# },
|
183
|
+
# ],
|
184
|
+
# finding_arns: [
|
185
|
+
# "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-8l1VIE0D/run/0-Z02cjjug/finding/0-T8yM9mEU",
|
186
|
+
# ],
|
187
|
+
# })
|
188
|
+
#
|
189
|
+
# resp.to_h outputs the following:
|
190
|
+
# {
|
191
|
+
# failed_items: {
|
192
|
+
# },
|
193
|
+
# }
|
194
|
+
#
|
172
195
|
# @example Request syntax with placeholder values
|
173
196
|
#
|
174
197
|
# resp = client.add_attributes_to_findings({
|
@@ -218,6 +241,21 @@ module Aws::Inspector
|
|
218
241
|
#
|
219
242
|
# * {Types::CreateAssessmentTargetResponse#assessment_target_arn #assessment_target_arn} => String
|
220
243
|
#
|
244
|
+
#
|
245
|
+
# @example Example: Create assessment target
|
246
|
+
#
|
247
|
+
# # Creates a new assessment target using the ARN of the resource group that is generated by CreateResourceGroup. You can create up to 50 assessment targets per AWS account. You can run up to 500 concurrent agents per AWS account.
|
248
|
+
#
|
249
|
+
# resp = client.create_assessment_target({
|
250
|
+
# assessment_target_name: "ExampleAssessmentTarget",
|
251
|
+
# resource_group_arn: "arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-AB6DMKnv",
|
252
|
+
# })
|
253
|
+
#
|
254
|
+
# resp.to_h outputs the following:
|
255
|
+
# {
|
256
|
+
# assessment_target_arn: "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX",
|
257
|
+
# }
|
258
|
+
#
|
221
259
|
# @example Request syntax with placeholder values
|
222
260
|
#
|
223
261
|
# resp = client.create_assessment_target({
|
@@ -267,6 +305,31 @@ module Aws::Inspector
|
|
267
305
|
#
|
268
306
|
# * {Types::CreateAssessmentTemplateResponse#assessment_template_arn #assessment_template_arn} => String
|
269
307
|
#
|
308
|
+
#
|
309
|
+
# @example Example: Create assessment template
|
310
|
+
#
|
311
|
+
# # Creates an assessment template for the assessment target that is specified by the ARN of the assessment target.
|
312
|
+
#
|
313
|
+
# resp = client.create_assessment_template({
|
314
|
+
# assessment_target_arn: "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX",
|
315
|
+
# assessment_template_name: "ExampleAssessmentTemplate",
|
316
|
+
# duration_in_seconds: 180,
|
317
|
+
# rules_package_arns: [
|
318
|
+
# "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-11B9DBXp",
|
319
|
+
# ],
|
320
|
+
# user_attributes_for_findings: [
|
321
|
+
# {
|
322
|
+
# key: "Example",
|
323
|
+
# value: "example",
|
324
|
+
# },
|
325
|
+
# ],
|
326
|
+
# })
|
327
|
+
#
|
328
|
+
# resp.to_h outputs the following:
|
329
|
+
# {
|
330
|
+
# assessment_template_arn: "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T",
|
331
|
+
# }
|
332
|
+
#
|
270
333
|
# @example Request syntax with placeholder values
|
271
334
|
#
|
272
335
|
# resp = client.create_assessment_template({
|
@@ -312,6 +375,25 @@ module Aws::Inspector
|
|
312
375
|
#
|
313
376
|
# * {Types::CreateResourceGroupResponse#resource_group_arn #resource_group_arn} => String
|
314
377
|
#
|
378
|
+
#
|
379
|
+
# @example Example: Create resource group
|
380
|
+
#
|
381
|
+
# # Creates a resource group using the specified set of tags (key and value pairs) that are used to select the EC2 instances to be included in an Amazon Inspector assessment target. The created resource group is then used to create an Amazon Inspector assessment target.
|
382
|
+
#
|
383
|
+
# resp = client.create_resource_group({
|
384
|
+
# resource_group_tags: [
|
385
|
+
# {
|
386
|
+
# key: "Name",
|
387
|
+
# value: "example",
|
388
|
+
# },
|
389
|
+
# ],
|
390
|
+
# })
|
391
|
+
#
|
392
|
+
# resp.to_h outputs the following:
|
393
|
+
# {
|
394
|
+
# resource_group_arn: "arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-AB6DMKnv",
|
395
|
+
# }
|
396
|
+
#
|
315
397
|
# @example Request syntax with placeholder values
|
316
398
|
#
|
317
399
|
# resp = client.create_resource_group({
|
@@ -344,6 +426,15 @@ module Aws::Inspector
|
|
344
426
|
#
|
345
427
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
346
428
|
#
|
429
|
+
#
|
430
|
+
# @example Example: Delete assessment run
|
431
|
+
#
|
432
|
+
# # Deletes the assessment run that is specified by the ARN of the assessment run.
|
433
|
+
#
|
434
|
+
# resp = client.delete_assessment_run({
|
435
|
+
# assessment_run_arn: "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T/run/0-11LMTAVe",
|
436
|
+
# })
|
437
|
+
#
|
347
438
|
# @example Request syntax with placeholder values
|
348
439
|
#
|
349
440
|
# resp = client.delete_assessment_run({
|
@@ -367,6 +458,15 @@ module Aws::Inspector
|
|
367
458
|
#
|
368
459
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
369
460
|
#
|
461
|
+
#
|
462
|
+
# @example Example: Delete assessment target
|
463
|
+
#
|
464
|
+
# # Deletes the assessment target that is specified by the ARN of the assessment target.
|
465
|
+
#
|
466
|
+
# resp = client.delete_assessment_target({
|
467
|
+
# assessment_target_arn: "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq",
|
468
|
+
# })
|
469
|
+
#
|
370
470
|
# @example Request syntax with placeholder values
|
371
471
|
#
|
372
472
|
# resp = client.delete_assessment_target({
|
@@ -391,6 +491,15 @@ module Aws::Inspector
|
|
391
491
|
#
|
392
492
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
393
493
|
#
|
494
|
+
#
|
495
|
+
# @example Example: Delete assessment template
|
496
|
+
#
|
497
|
+
# # Deletes the assessment template that is specified by the ARN of the assessment template.
|
498
|
+
#
|
499
|
+
# resp = client.delete_assessment_template({
|
500
|
+
# assessment_template_arn: "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T",
|
501
|
+
# })
|
502
|
+
#
|
394
503
|
# @example Request syntax with placeholder values
|
395
504
|
#
|
396
505
|
# resp = client.delete_assessment_template({
|
@@ -417,6 +526,85 @@ module Aws::Inspector
|
|
417
526
|
# * {Types::DescribeAssessmentRunsResponse#assessment_runs #assessment_runs} => Array<Types::AssessmentRun>
|
418
527
|
# * {Types::DescribeAssessmentRunsResponse#failed_items #failed_items} => Hash<String,Types::FailedItemDetails>
|
419
528
|
#
|
529
|
+
#
|
530
|
+
# @example Example: Describte assessment runs
|
531
|
+
#
|
532
|
+
# # Describes the assessment runs that are specified by the ARNs of the assessment runs.
|
533
|
+
#
|
534
|
+
# resp = client.describe_assessment_runs({
|
535
|
+
# assessment_run_arns: [
|
536
|
+
# "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE",
|
537
|
+
# ],
|
538
|
+
# })
|
539
|
+
#
|
540
|
+
# resp.to_h outputs the following:
|
541
|
+
# {
|
542
|
+
# assessment_runs: [
|
543
|
+
# {
|
544
|
+
# name: "Run 1 for ExampleAssessmentTemplate",
|
545
|
+
# arn: "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE",
|
546
|
+
# assessment_template_arn: "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw",
|
547
|
+
# completed_at: Time.parse("1458680301.4"),
|
548
|
+
# created_at: Time.parse("1458680170.035"),
|
549
|
+
# data_collected: true,
|
550
|
+
# duration_in_seconds: 3600,
|
551
|
+
# finding_counts: {
|
552
|
+
# "High" => 14,
|
553
|
+
# "Informational" => 0,
|
554
|
+
# "Low" => 0,
|
555
|
+
# "Medium" => 2,
|
556
|
+
# "Undefined" => 0,
|
557
|
+
# },
|
558
|
+
# notifications: [
|
559
|
+
# ],
|
560
|
+
# rules_package_arns: [
|
561
|
+
# "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-X1KXtawP",
|
562
|
+
# ],
|
563
|
+
# started_at: Time.parse("1458680170.161"),
|
564
|
+
# state: "COMPLETED",
|
565
|
+
# state_changed_at: Time.parse("1458680301.4"),
|
566
|
+
# state_changes: [
|
567
|
+
# {
|
568
|
+
# state: "CREATED",
|
569
|
+
# state_changed_at: Time.parse("1458680170.035"),
|
570
|
+
# },
|
571
|
+
# {
|
572
|
+
# state: "START_DATA_COLLECTION_PENDING",
|
573
|
+
# state_changed_at: Time.parse("1458680170.065"),
|
574
|
+
# },
|
575
|
+
# {
|
576
|
+
# state: "START_DATA_COLLECTION_IN_PROGRESS",
|
577
|
+
# state_changed_at: Time.parse("1458680170.096"),
|
578
|
+
# },
|
579
|
+
# {
|
580
|
+
# state: "COLLECTING_DATA",
|
581
|
+
# state_changed_at: Time.parse("1458680170.161"),
|
582
|
+
# },
|
583
|
+
# {
|
584
|
+
# state: "STOP_DATA_COLLECTION_PENDING",
|
585
|
+
# state_changed_at: Time.parse("1458680239.883"),
|
586
|
+
# },
|
587
|
+
# {
|
588
|
+
# state: "DATA_COLLECTED",
|
589
|
+
# state_changed_at: Time.parse("1458680299.847"),
|
590
|
+
# },
|
591
|
+
# {
|
592
|
+
# state: "EVALUATING_RULES",
|
593
|
+
# state_changed_at: Time.parse("1458680300.099"),
|
594
|
+
# },
|
595
|
+
# {
|
596
|
+
# state: "COMPLETED",
|
597
|
+
# state_changed_at: Time.parse("1458680301.4"),
|
598
|
+
# },
|
599
|
+
# ],
|
600
|
+
# user_attributes_for_findings: [
|
601
|
+
# ],
|
602
|
+
# },
|
603
|
+
# ],
|
604
|
+
# failed_items: {
|
605
|
+
# },
|
606
|
+
# }
|
607
|
+
#
|
420
608
|
# @example Request syntax with placeholder values
|
421
609
|
#
|
422
610
|
# resp = client.describe_assessment_runs({
|
@@ -478,6 +666,32 @@ module Aws::Inspector
|
|
478
666
|
# * {Types::DescribeAssessmentTargetsResponse#assessment_targets #assessment_targets} => Array<Types::AssessmentTarget>
|
479
667
|
# * {Types::DescribeAssessmentTargetsResponse#failed_items #failed_items} => Hash<String,Types::FailedItemDetails>
|
480
668
|
#
|
669
|
+
#
|
670
|
+
# @example Example: Describte assessment targets
|
671
|
+
#
|
672
|
+
# # Describes the assessment targets that are specified by the ARNs of the assessment targets.
|
673
|
+
#
|
674
|
+
# resp = client.describe_assessment_targets({
|
675
|
+
# assessment_target_arns: [
|
676
|
+
# "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq",
|
677
|
+
# ],
|
678
|
+
# })
|
679
|
+
#
|
680
|
+
# resp.to_h outputs the following:
|
681
|
+
# {
|
682
|
+
# assessment_targets: [
|
683
|
+
# {
|
684
|
+
# name: "ExampleAssessmentTarget",
|
685
|
+
# arn: "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq",
|
686
|
+
# created_at: Time.parse("1458074191.459"),
|
687
|
+
# resource_group_arn: "arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-PyGXopAI",
|
688
|
+
# updated_at: Time.parse("1458074191.459"),
|
689
|
+
# },
|
690
|
+
# ],
|
691
|
+
# failed_items: {
|
692
|
+
# },
|
693
|
+
# }
|
694
|
+
#
|
481
695
|
# @example Request syntax with placeholder values
|
482
696
|
#
|
483
697
|
# resp = client.describe_assessment_targets({
|
@@ -515,6 +729,37 @@ module Aws::Inspector
|
|
515
729
|
# * {Types::DescribeAssessmentTemplatesResponse#assessment_templates #assessment_templates} => Array<Types::AssessmentTemplate>
|
516
730
|
# * {Types::DescribeAssessmentTemplatesResponse#failed_items #failed_items} => Hash<String,Types::FailedItemDetails>
|
517
731
|
#
|
732
|
+
#
|
733
|
+
# @example Example: Describte assessment templates
|
734
|
+
#
|
735
|
+
# # Describes the assessment templates that are specified by the ARNs of the assessment templates.
|
736
|
+
#
|
737
|
+
# resp = client.describe_assessment_templates({
|
738
|
+
# assessment_template_arns: [
|
739
|
+
# "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw",
|
740
|
+
# ],
|
741
|
+
# })
|
742
|
+
#
|
743
|
+
# resp.to_h outputs the following:
|
744
|
+
# {
|
745
|
+
# assessment_templates: [
|
746
|
+
# {
|
747
|
+
# name: "ExampleAssessmentTemplate",
|
748
|
+
# arn: "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw",
|
749
|
+
# assessment_target_arn: "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq",
|
750
|
+
# created_at: Time.parse("1458074191.844"),
|
751
|
+
# duration_in_seconds: 3600,
|
752
|
+
# rules_package_arns: [
|
753
|
+
# "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-X1KXtawP",
|
754
|
+
# ],
|
755
|
+
# user_attributes_for_findings: [
|
756
|
+
# ],
|
757
|
+
# },
|
758
|
+
# ],
|
759
|
+
# failed_items: {
|
760
|
+
# },
|
761
|
+
# }
|
762
|
+
#
|
518
763
|
# @example Request syntax with placeholder values
|
519
764
|
#
|
520
765
|
# resp = client.describe_assessment_templates({
|
@@ -556,6 +801,21 @@ module Aws::Inspector
|
|
556
801
|
# * {Types::DescribeCrossAccountAccessRoleResponse#valid #valid} => Boolean
|
557
802
|
# * {Types::DescribeCrossAccountAccessRoleResponse#registered_at #registered_at} => Time
|
558
803
|
#
|
804
|
+
#
|
805
|
+
# @example Example: Describte cross account access role
|
806
|
+
#
|
807
|
+
# # Describes the IAM role that enables Amazon Inspector to access your AWS account.
|
808
|
+
#
|
809
|
+
# resp = client.describe_cross_account_access_role({
|
810
|
+
# })
|
811
|
+
#
|
812
|
+
# resp.to_h outputs the following:
|
813
|
+
# {
|
814
|
+
# registered_at: Time.parse("1458069182.826"),
|
815
|
+
# role_arn: "arn:aws:iam::123456789012:role/inspector",
|
816
|
+
# valid: true,
|
817
|
+
# }
|
818
|
+
#
|
559
819
|
# @example Response structure
|
560
820
|
#
|
561
821
|
# resp.role_arn #=> String
|
@@ -585,6 +845,54 @@ module Aws::Inspector
|
|
585
845
|
# * {Types::DescribeFindingsResponse#findings #findings} => Array<Types::Finding>
|
586
846
|
# * {Types::DescribeFindingsResponse#failed_items #failed_items} => Hash<String,Types::FailedItemDetails>
|
587
847
|
#
|
848
|
+
#
|
849
|
+
# @example Example: Describe findings
|
850
|
+
#
|
851
|
+
# # Describes the findings that are specified by the ARNs of the findings.
|
852
|
+
#
|
853
|
+
# resp = client.describe_findings({
|
854
|
+
# finding_arns: [
|
855
|
+
# "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE/finding/0-HwPnsDm4",
|
856
|
+
# ],
|
857
|
+
# })
|
858
|
+
#
|
859
|
+
# resp.to_h outputs the following:
|
860
|
+
# {
|
861
|
+
# failed_items: {
|
862
|
+
# },
|
863
|
+
# findings: [
|
864
|
+
# {
|
865
|
+
# arn: "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE/finding/0-HwPnsDm4",
|
866
|
+
# asset_attributes: {
|
867
|
+
# ipv4_addresses: [
|
868
|
+
# ],
|
869
|
+
# schema_version: 1,
|
870
|
+
# },
|
871
|
+
# asset_type: "ec2-instance",
|
872
|
+
# attributes: [
|
873
|
+
# ],
|
874
|
+
# confidence: 10,
|
875
|
+
# created_at: Time.parse("1458680301.37"),
|
876
|
+
# description: "Amazon Inspector did not find any potential security issues during this assessment.",
|
877
|
+
# indicator_of_compromise: false,
|
878
|
+
# numeric_severity: 0,
|
879
|
+
# recommendation: "No remediation needed.",
|
880
|
+
# schema_version: 1,
|
881
|
+
# service: "Inspector",
|
882
|
+
# service_attributes: {
|
883
|
+
# assessment_run_arn: "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE",
|
884
|
+
# rules_package_arn: "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-X1KXtawP",
|
885
|
+
# schema_version: 1,
|
886
|
+
# },
|
887
|
+
# severity: "Informational",
|
888
|
+
# title: "No potential security issues found",
|
889
|
+
# updated_at: Time.parse("1458680301.37"),
|
890
|
+
# user_attributes: [
|
891
|
+
# ],
|
892
|
+
# },
|
893
|
+
# ],
|
894
|
+
# }
|
895
|
+
#
|
588
896
|
# @example Request syntax with placeholder values
|
589
897
|
#
|
590
898
|
# resp = client.describe_findings({
|
@@ -649,6 +957,35 @@ module Aws::Inspector
|
|
649
957
|
# * {Types::DescribeResourceGroupsResponse#resource_groups #resource_groups} => Array<Types::ResourceGroup>
|
650
958
|
# * {Types::DescribeResourceGroupsResponse#failed_items #failed_items} => Hash<String,Types::FailedItemDetails>
|
651
959
|
#
|
960
|
+
#
|
961
|
+
# @example Example: Describe resource groups
|
962
|
+
#
|
963
|
+
# # Describes the resource groups that are specified by the ARNs of the resource groups.
|
964
|
+
#
|
965
|
+
# resp = client.describe_resource_groups({
|
966
|
+
# resource_group_arns: [
|
967
|
+
# "arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-PyGXopAI",
|
968
|
+
# ],
|
969
|
+
# })
|
970
|
+
#
|
971
|
+
# resp.to_h outputs the following:
|
972
|
+
# {
|
973
|
+
# failed_items: {
|
974
|
+
# },
|
975
|
+
# resource_groups: [
|
976
|
+
# {
|
977
|
+
# arn: "arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-PyGXopAI",
|
978
|
+
# created_at: Time.parse("1458074191.098"),
|
979
|
+
# tags: [
|
980
|
+
# {
|
981
|
+
# key: "Name",
|
982
|
+
# value: "example",
|
983
|
+
# },
|
984
|
+
# ],
|
985
|
+
# },
|
986
|
+
# ],
|
987
|
+
# }
|
988
|
+
#
|
652
989
|
# @example Request syntax with placeholder values
|
653
990
|
#
|
654
991
|
# resp = client.describe_resource_groups({
|
@@ -691,6 +1028,32 @@ module Aws::Inspector
|
|
691
1028
|
# * {Types::DescribeRulesPackagesResponse#rules_packages #rules_packages} => Array<Types::RulesPackage>
|
692
1029
|
# * {Types::DescribeRulesPackagesResponse#failed_items #failed_items} => Hash<String,Types::FailedItemDetails>
|
693
1030
|
#
|
1031
|
+
#
|
1032
|
+
# @example Example: Describe rules packages
|
1033
|
+
#
|
1034
|
+
# # Describes the rules packages that are specified by the ARNs of the rules packages.
|
1035
|
+
#
|
1036
|
+
# resp = client.describe_rules_packages({
|
1037
|
+
# rules_package_arns: [
|
1038
|
+
# "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-JJOtZiqQ",
|
1039
|
+
# ],
|
1040
|
+
# })
|
1041
|
+
#
|
1042
|
+
# resp.to_h outputs the following:
|
1043
|
+
# {
|
1044
|
+
# failed_items: {
|
1045
|
+
# },
|
1046
|
+
# rules_packages: [
|
1047
|
+
# {
|
1048
|
+
# version: "1.1",
|
1049
|
+
# name: "Security Best Practices",
|
1050
|
+
# arn: "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-JJOtZiqQ",
|
1051
|
+
# description: "The rules in this package help determine whether your systems are configured securely.",
|
1052
|
+
# provider: "Amazon Web Services, Inc.",
|
1053
|
+
# },
|
1054
|
+
# ],
|
1055
|
+
# }
|
1056
|
+
#
|
694
1057
|
# @example Request syntax with placeholder values
|
695
1058
|
#
|
696
1059
|
# resp = client.describe_rules_packages({
|
@@ -777,6 +1140,166 @@ module Aws::Inspector
|
|
777
1140
|
#
|
778
1141
|
# * {Types::GetTelemetryMetadataResponse#telemetry_metadata #telemetry_metadata} => Array<Types::TelemetryMetadata>
|
779
1142
|
#
|
1143
|
+
#
|
1144
|
+
# @example Example: Get telemetry metadata
|
1145
|
+
#
|
1146
|
+
# # Information about the data that is collected for the specified assessment run.
|
1147
|
+
#
|
1148
|
+
# resp = client.get_telemetry_metadata({
|
1149
|
+
# assessment_run_arn: "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE",
|
1150
|
+
# })
|
1151
|
+
#
|
1152
|
+
# resp.to_h outputs the following:
|
1153
|
+
# {
|
1154
|
+
# telemetry_metadata: [
|
1155
|
+
# {
|
1156
|
+
# count: 2,
|
1157
|
+
# data_size: 345,
|
1158
|
+
# message_type: "InspectorDuplicateProcess",
|
1159
|
+
# },
|
1160
|
+
# {
|
1161
|
+
# count: 3,
|
1162
|
+
# data_size: 255,
|
1163
|
+
# message_type: "InspectorTimeEventMsg",
|
1164
|
+
# },
|
1165
|
+
# {
|
1166
|
+
# count: 4,
|
1167
|
+
# data_size: 1082,
|
1168
|
+
# message_type: "InspectorNetworkInterface",
|
1169
|
+
# },
|
1170
|
+
# {
|
1171
|
+
# count: 2,
|
1172
|
+
# data_size: 349,
|
1173
|
+
# message_type: "InspectorDnsEntry",
|
1174
|
+
# },
|
1175
|
+
# {
|
1176
|
+
# count: 11,
|
1177
|
+
# data_size: 2514,
|
1178
|
+
# message_type: "InspectorDirectoryInfoMsg",
|
1179
|
+
# },
|
1180
|
+
# {
|
1181
|
+
# count: 1,
|
1182
|
+
# data_size: 179,
|
1183
|
+
# message_type: "InspectorTcpV6ListeningPort",
|
1184
|
+
# },
|
1185
|
+
# {
|
1186
|
+
# count: 101,
|
1187
|
+
# data_size: 10949,
|
1188
|
+
# message_type: "InspectorTerminal",
|
1189
|
+
# },
|
1190
|
+
# {
|
1191
|
+
# count: 26,
|
1192
|
+
# data_size: 5916,
|
1193
|
+
# message_type: "InspectorUser",
|
1194
|
+
# },
|
1195
|
+
# {
|
1196
|
+
# count: 282,
|
1197
|
+
# data_size: 32148,
|
1198
|
+
# message_type: "InspectorDynamicallyLoadedCodeModule",
|
1199
|
+
# },
|
1200
|
+
# {
|
1201
|
+
# count: 18,
|
1202
|
+
# data_size: 10172,
|
1203
|
+
# message_type: "InspectorCreateProcess",
|
1204
|
+
# },
|
1205
|
+
# {
|
1206
|
+
# count: 3,
|
1207
|
+
# data_size: 8001,
|
1208
|
+
# message_type: "InspectorProcessPerformance",
|
1209
|
+
# },
|
1210
|
+
# {
|
1211
|
+
# count: 1,
|
1212
|
+
# data_size: 360,
|
1213
|
+
# message_type: "InspectorOperatingSystem",
|
1214
|
+
# },
|
1215
|
+
# {
|
1216
|
+
# count: 6,
|
1217
|
+
# data_size: 546,
|
1218
|
+
# message_type: "InspectorStopProcess",
|
1219
|
+
# },
|
1220
|
+
# {
|
1221
|
+
# count: 1,
|
1222
|
+
# data_size: 1553,
|
1223
|
+
# message_type: "InspectorInstanceMetaData",
|
1224
|
+
# },
|
1225
|
+
# {
|
1226
|
+
# count: 2,
|
1227
|
+
# data_size: 434,
|
1228
|
+
# message_type: "InspectorTcpV4Connection",
|
1229
|
+
# },
|
1230
|
+
# {
|
1231
|
+
# count: 474,
|
1232
|
+
# data_size: 2960322,
|
1233
|
+
# message_type: "InspectorPackageInfo",
|
1234
|
+
# },
|
1235
|
+
# {
|
1236
|
+
# count: 3,
|
1237
|
+
# data_size: 2235,
|
1238
|
+
# message_type: "InspectorSystemPerformance",
|
1239
|
+
# },
|
1240
|
+
# {
|
1241
|
+
# count: 105,
|
1242
|
+
# data_size: 46048,
|
1243
|
+
# message_type: "InspectorCodeModule",
|
1244
|
+
# },
|
1245
|
+
# {
|
1246
|
+
# count: 1,
|
1247
|
+
# data_size: 182,
|
1248
|
+
# message_type: "InspectorUdpV6ListeningPort",
|
1249
|
+
# },
|
1250
|
+
# {
|
1251
|
+
# count: 2,
|
1252
|
+
# data_size: 371,
|
1253
|
+
# message_type: "InspectorUdpV4ListeningPort",
|
1254
|
+
# },
|
1255
|
+
# {
|
1256
|
+
# count: 18,
|
1257
|
+
# data_size: 8362,
|
1258
|
+
# message_type: "InspectorKernelModule",
|
1259
|
+
# },
|
1260
|
+
# {
|
1261
|
+
# count: 29,
|
1262
|
+
# data_size: 48788,
|
1263
|
+
# message_type: "InspectorConfigurationInfo",
|
1264
|
+
# },
|
1265
|
+
# {
|
1266
|
+
# count: 1,
|
1267
|
+
# data_size: 79,
|
1268
|
+
# message_type: "InspectorMonitoringStart",
|
1269
|
+
# },
|
1270
|
+
# {
|
1271
|
+
# count: 5,
|
1272
|
+
# data_size: 0,
|
1273
|
+
# message_type: "InspectorSplitMsgBegin",
|
1274
|
+
# },
|
1275
|
+
# {
|
1276
|
+
# count: 51,
|
1277
|
+
# data_size: 4593,
|
1278
|
+
# message_type: "InspectorGroup",
|
1279
|
+
# },
|
1280
|
+
# {
|
1281
|
+
# count: 1,
|
1282
|
+
# data_size: 184,
|
1283
|
+
# message_type: "InspectorTcpV4ListeningPort",
|
1284
|
+
# },
|
1285
|
+
# {
|
1286
|
+
# count: 1159,
|
1287
|
+
# data_size: 3146579,
|
1288
|
+
# message_type: "Total",
|
1289
|
+
# },
|
1290
|
+
# {
|
1291
|
+
# count: 5,
|
1292
|
+
# data_size: 0,
|
1293
|
+
# message_type: "InspectorSplitMsgEnd",
|
1294
|
+
# },
|
1295
|
+
# {
|
1296
|
+
# count: 1,
|
1297
|
+
# data_size: 612,
|
1298
|
+
# message_type: "InspectorLoadImageInProcess",
|
1299
|
+
# },
|
1300
|
+
# ],
|
1301
|
+
# }
|
1302
|
+
#
|
780
1303
|
# @example Request syntax with placeholder values
|
781
1304
|
#
|
782
1305
|
# resp = client.get_telemetry_metadata({
|
@@ -831,6 +1354,176 @@ module Aws::Inspector
|
|
831
1354
|
# * {Types::ListAssessmentRunAgentsResponse#assessment_run_agents #assessment_run_agents} => Array<Types::AssessmentRunAgent>
|
832
1355
|
# * {Types::ListAssessmentRunAgentsResponse#next_token #next_token} => String
|
833
1356
|
#
|
1357
|
+
#
|
1358
|
+
# @example Example: List assessment run agents
|
1359
|
+
#
|
1360
|
+
# # Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs.
|
1361
|
+
#
|
1362
|
+
# resp = client.list_assessment_run_agents({
|
1363
|
+
# assessment_run_arn: "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE",
|
1364
|
+
# max_results: 123,
|
1365
|
+
# })
|
1366
|
+
#
|
1367
|
+
# resp.to_h outputs the following:
|
1368
|
+
# {
|
1369
|
+
# assessment_run_agents: [
|
1370
|
+
# {
|
1371
|
+
# agent_health: "HEALTHY",
|
1372
|
+
# agent_health_code: "RUNNING",
|
1373
|
+
# agent_id: "i-49113b93",
|
1374
|
+
# assessment_run_arn: "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE",
|
1375
|
+
# telemetry_metadata: [
|
1376
|
+
# {
|
1377
|
+
# count: 2,
|
1378
|
+
# data_size: 345,
|
1379
|
+
# message_type: "InspectorDuplicateProcess",
|
1380
|
+
# },
|
1381
|
+
# {
|
1382
|
+
# count: 3,
|
1383
|
+
# data_size: 255,
|
1384
|
+
# message_type: "InspectorTimeEventMsg",
|
1385
|
+
# },
|
1386
|
+
# {
|
1387
|
+
# count: 4,
|
1388
|
+
# data_size: 1082,
|
1389
|
+
# message_type: "InspectorNetworkInterface",
|
1390
|
+
# },
|
1391
|
+
# {
|
1392
|
+
# count: 2,
|
1393
|
+
# data_size: 349,
|
1394
|
+
# message_type: "InspectorDnsEntry",
|
1395
|
+
# },
|
1396
|
+
# {
|
1397
|
+
# count: 11,
|
1398
|
+
# data_size: 2514,
|
1399
|
+
# message_type: "InspectorDirectoryInfoMsg",
|
1400
|
+
# },
|
1401
|
+
# {
|
1402
|
+
# count: 1,
|
1403
|
+
# data_size: 179,
|
1404
|
+
# message_type: "InspectorTcpV6ListeningPort",
|
1405
|
+
# },
|
1406
|
+
# {
|
1407
|
+
# count: 101,
|
1408
|
+
# data_size: 10949,
|
1409
|
+
# message_type: "InspectorTerminal",
|
1410
|
+
# },
|
1411
|
+
# {
|
1412
|
+
# count: 26,
|
1413
|
+
# data_size: 5916,
|
1414
|
+
# message_type: "InspectorUser",
|
1415
|
+
# },
|
1416
|
+
# {
|
1417
|
+
# count: 282,
|
1418
|
+
# data_size: 32148,
|
1419
|
+
# message_type: "InspectorDynamicallyLoadedCodeModule",
|
1420
|
+
# },
|
1421
|
+
# {
|
1422
|
+
# count: 18,
|
1423
|
+
# data_size: 10172,
|
1424
|
+
# message_type: "InspectorCreateProcess",
|
1425
|
+
# },
|
1426
|
+
# {
|
1427
|
+
# count: 3,
|
1428
|
+
# data_size: 8001,
|
1429
|
+
# message_type: "InspectorProcessPerformance",
|
1430
|
+
# },
|
1431
|
+
# {
|
1432
|
+
# count: 1,
|
1433
|
+
# data_size: 360,
|
1434
|
+
# message_type: "InspectorOperatingSystem",
|
1435
|
+
# },
|
1436
|
+
# {
|
1437
|
+
# count: 6,
|
1438
|
+
# data_size: 546,
|
1439
|
+
# message_type: "InspectorStopProcess",
|
1440
|
+
# },
|
1441
|
+
# {
|
1442
|
+
# count: 1,
|
1443
|
+
# data_size: 1553,
|
1444
|
+
# message_type: "InspectorInstanceMetaData",
|
1445
|
+
# },
|
1446
|
+
# {
|
1447
|
+
# count: 2,
|
1448
|
+
# data_size: 434,
|
1449
|
+
# message_type: "InspectorTcpV4Connection",
|
1450
|
+
# },
|
1451
|
+
# {
|
1452
|
+
# count: 474,
|
1453
|
+
# data_size: 2960322,
|
1454
|
+
# message_type: "InspectorPackageInfo",
|
1455
|
+
# },
|
1456
|
+
# {
|
1457
|
+
# count: 3,
|
1458
|
+
# data_size: 2235,
|
1459
|
+
# message_type: "InspectorSystemPerformance",
|
1460
|
+
# },
|
1461
|
+
# {
|
1462
|
+
# count: 105,
|
1463
|
+
# data_size: 46048,
|
1464
|
+
# message_type: "InspectorCodeModule",
|
1465
|
+
# },
|
1466
|
+
# {
|
1467
|
+
# count: 1,
|
1468
|
+
# data_size: 182,
|
1469
|
+
# message_type: "InspectorUdpV6ListeningPort",
|
1470
|
+
# },
|
1471
|
+
# {
|
1472
|
+
# count: 2,
|
1473
|
+
# data_size: 371,
|
1474
|
+
# message_type: "InspectorUdpV4ListeningPort",
|
1475
|
+
# },
|
1476
|
+
# {
|
1477
|
+
# count: 18,
|
1478
|
+
# data_size: 8362,
|
1479
|
+
# message_type: "InspectorKernelModule",
|
1480
|
+
# },
|
1481
|
+
# {
|
1482
|
+
# count: 29,
|
1483
|
+
# data_size: 48788,
|
1484
|
+
# message_type: "InspectorConfigurationInfo",
|
1485
|
+
# },
|
1486
|
+
# {
|
1487
|
+
# count: 1,
|
1488
|
+
# data_size: 79,
|
1489
|
+
# message_type: "InspectorMonitoringStart",
|
1490
|
+
# },
|
1491
|
+
# {
|
1492
|
+
# count: 5,
|
1493
|
+
# data_size: 0,
|
1494
|
+
# message_type: "InspectorSplitMsgBegin",
|
1495
|
+
# },
|
1496
|
+
# {
|
1497
|
+
# count: 51,
|
1498
|
+
# data_size: 4593,
|
1499
|
+
# message_type: "InspectorGroup",
|
1500
|
+
# },
|
1501
|
+
# {
|
1502
|
+
# count: 1,
|
1503
|
+
# data_size: 184,
|
1504
|
+
# message_type: "InspectorTcpV4ListeningPort",
|
1505
|
+
# },
|
1506
|
+
# {
|
1507
|
+
# count: 1159,
|
1508
|
+
# data_size: 3146579,
|
1509
|
+
# message_type: "Total",
|
1510
|
+
# },
|
1511
|
+
# {
|
1512
|
+
# count: 5,
|
1513
|
+
# data_size: 0,
|
1514
|
+
# message_type: "InspectorSplitMsgEnd",
|
1515
|
+
# },
|
1516
|
+
# {
|
1517
|
+
# count: 1,
|
1518
|
+
# data_size: 612,
|
1519
|
+
# message_type: "InspectorLoadImageInProcess",
|
1520
|
+
# },
|
1521
|
+
# ],
|
1522
|
+
# },
|
1523
|
+
# ],
|
1524
|
+
# next_token: "1",
|
1525
|
+
# }
|
1526
|
+
#
|
834
1527
|
# @example Request syntax with placeholder values
|
835
1528
|
#
|
836
1529
|
# resp = client.list_assessment_run_agents({
|
@@ -899,6 +1592,27 @@ module Aws::Inspector
|
|
899
1592
|
# * {Types::ListAssessmentRunsResponse#assessment_run_arns #assessment_run_arns} => Array<String>
|
900
1593
|
# * {Types::ListAssessmentRunsResponse#next_token #next_token} => String
|
901
1594
|
#
|
1595
|
+
#
|
1596
|
+
# @example Example: List assessment runs
|
1597
|
+
#
|
1598
|
+
# # Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.
|
1599
|
+
#
|
1600
|
+
# resp = client.list_assessment_runs({
|
1601
|
+
# assessment_template_arns: [
|
1602
|
+
# "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw",
|
1603
|
+
# ],
|
1604
|
+
# max_results: 123,
|
1605
|
+
# })
|
1606
|
+
#
|
1607
|
+
# resp.to_h outputs the following:
|
1608
|
+
# {
|
1609
|
+
# assessment_run_arns: [
|
1610
|
+
# "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE",
|
1611
|
+
# "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-v5D6fI3v",
|
1612
|
+
# ],
|
1613
|
+
# next_token: "1",
|
1614
|
+
# }
|
1615
|
+
#
|
902
1616
|
# @example Request syntax with placeholder values
|
903
1617
|
#
|
904
1618
|
# resp = client.list_assessment_runs({
|
@@ -976,6 +1690,23 @@ module Aws::Inspector
|
|
976
1690
|
# * {Types::ListAssessmentTargetsResponse#assessment_target_arns #assessment_target_arns} => Array<String>
|
977
1691
|
# * {Types::ListAssessmentTargetsResponse#next_token #next_token} => String
|
978
1692
|
#
|
1693
|
+
#
|
1694
|
+
# @example Example: List assessment targets
|
1695
|
+
#
|
1696
|
+
# # Lists the ARNs of the assessment targets within this AWS account.
|
1697
|
+
#
|
1698
|
+
# resp = client.list_assessment_targets({
|
1699
|
+
# max_results: 123,
|
1700
|
+
# })
|
1701
|
+
#
|
1702
|
+
# resp.to_h outputs the following:
|
1703
|
+
# {
|
1704
|
+
# assessment_target_arns: [
|
1705
|
+
# "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq",
|
1706
|
+
# ],
|
1707
|
+
# next_token: "1",
|
1708
|
+
# }
|
1709
|
+
#
|
979
1710
|
# @example Request syntax with placeholder values
|
980
1711
|
#
|
981
1712
|
# resp = client.list_assessment_targets({
|
@@ -1033,6 +1764,27 @@ module Aws::Inspector
|
|
1033
1764
|
# * {Types::ListAssessmentTemplatesResponse#assessment_template_arns #assessment_template_arns} => Array<String>
|
1034
1765
|
# * {Types::ListAssessmentTemplatesResponse#next_token #next_token} => String
|
1035
1766
|
#
|
1767
|
+
#
|
1768
|
+
# @example Example: List assessment templates
|
1769
|
+
#
|
1770
|
+
# # Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets.
|
1771
|
+
#
|
1772
|
+
# resp = client.list_assessment_templates({
|
1773
|
+
# assessment_target_arns: [
|
1774
|
+
# "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq",
|
1775
|
+
# ],
|
1776
|
+
# max_results: 123,
|
1777
|
+
# })
|
1778
|
+
#
|
1779
|
+
# resp.to_h outputs the following:
|
1780
|
+
# {
|
1781
|
+
# assessment_template_arns: [
|
1782
|
+
# "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw",
|
1783
|
+
# "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-Uza6ihLh",
|
1784
|
+
# ],
|
1785
|
+
# next_token: "1",
|
1786
|
+
# }
|
1787
|
+
#
|
1036
1788
|
# @example Request syntax with placeholder values
|
1037
1789
|
#
|
1038
1790
|
# resp = client.list_assessment_templates({
|
@@ -1089,6 +1841,33 @@ module Aws::Inspector
|
|
1089
1841
|
# * {Types::ListEventSubscriptionsResponse#subscriptions #subscriptions} => Array<Types::Subscription>
|
1090
1842
|
# * {Types::ListEventSubscriptionsResponse#next_token #next_token} => String
|
1091
1843
|
#
|
1844
|
+
#
|
1845
|
+
# @example Example: List event subscriptions
|
1846
|
+
#
|
1847
|
+
# # Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment template.
|
1848
|
+
#
|
1849
|
+
# resp = client.list_event_subscriptions({
|
1850
|
+
# max_results: 123,
|
1851
|
+
# resource_arn: "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-7sbz2Kz0",
|
1852
|
+
# })
|
1853
|
+
#
|
1854
|
+
# resp.to_h outputs the following:
|
1855
|
+
# {
|
1856
|
+
# next_token: "1",
|
1857
|
+
# subscriptions: [
|
1858
|
+
# {
|
1859
|
+
# event_subscriptions: [
|
1860
|
+
# {
|
1861
|
+
# event: "ASSESSMENT_RUN_COMPLETED",
|
1862
|
+
# subscribed_at: Time.parse("1459455440.867"),
|
1863
|
+
# },
|
1864
|
+
# ],
|
1865
|
+
# resource_arn: "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-7sbz2Kz0",
|
1866
|
+
# topic_arn: "arn:aws:sns:us-west-2:123456789012:exampletopic",
|
1867
|
+
# },
|
1868
|
+
# ],
|
1869
|
+
# }
|
1870
|
+
#
|
1092
1871
|
# @example Request syntax with placeholder values
|
1093
1872
|
#
|
1094
1873
|
# resp = client.list_event_subscriptions({
|
@@ -1148,6 +1927,27 @@ module Aws::Inspector
|
|
1148
1927
|
# * {Types::ListFindingsResponse#finding_arns #finding_arns} => Array<String>
|
1149
1928
|
# * {Types::ListFindingsResponse#next_token #next_token} => String
|
1150
1929
|
#
|
1930
|
+
#
|
1931
|
+
# @example Example: List findings
|
1932
|
+
#
|
1933
|
+
# # Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.
|
1934
|
+
#
|
1935
|
+
# resp = client.list_findings({
|
1936
|
+
# assessment_run_arns: [
|
1937
|
+
# "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE",
|
1938
|
+
# ],
|
1939
|
+
# max_results: 123,
|
1940
|
+
# })
|
1941
|
+
#
|
1942
|
+
# resp.to_h outputs the following:
|
1943
|
+
# {
|
1944
|
+
# finding_arns: [
|
1945
|
+
# "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE/finding/0-HwPnsDm4",
|
1946
|
+
# "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-v5D6fI3v/finding/0-tyvmqBLy",
|
1947
|
+
# ],
|
1948
|
+
# next_token: "1",
|
1949
|
+
# }
|
1950
|
+
#
|
1151
1951
|
# @example Request syntax with placeholder values
|
1152
1952
|
#
|
1153
1953
|
# resp = client.list_findings({
|
@@ -1213,6 +2013,26 @@ module Aws::Inspector
|
|
1213
2013
|
# * {Types::ListRulesPackagesResponse#rules_package_arns #rules_package_arns} => Array<String>
|
1214
2014
|
# * {Types::ListRulesPackagesResponse#next_token #next_token} => String
|
1215
2015
|
#
|
2016
|
+
#
|
2017
|
+
# @example Example: List rules packages
|
2018
|
+
#
|
2019
|
+
# # Lists all available Amazon Inspector rules packages.
|
2020
|
+
#
|
2021
|
+
# resp = client.list_rules_packages({
|
2022
|
+
# max_results: 123,
|
2023
|
+
# })
|
2024
|
+
#
|
2025
|
+
# resp.to_h outputs the following:
|
2026
|
+
# {
|
2027
|
+
# next_token: "1",
|
2028
|
+
# rules_package_arns: [
|
2029
|
+
# "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-9hgA516p",
|
2030
|
+
# "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-H5hpSawc",
|
2031
|
+
# "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-JJOtZiqQ",
|
2032
|
+
# "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-vg5GGHSD",
|
2033
|
+
# ],
|
2034
|
+
# }
|
2035
|
+
#
|
1216
2036
|
# @example Request syntax with placeholder values
|
1217
2037
|
#
|
1218
2038
|
# resp = client.list_rules_packages({
|
@@ -1245,6 +2065,25 @@ module Aws::Inspector
|
|
1245
2065
|
#
|
1246
2066
|
# * {Types::ListTagsForResourceResponse#tags #tags} => Array<Types::Tag>
|
1247
2067
|
#
|
2068
|
+
#
|
2069
|
+
# @example Example: List tags for resource
|
2070
|
+
#
|
2071
|
+
# # Lists all tags associated with an assessment template.
|
2072
|
+
#
|
2073
|
+
# resp = client.list_tags_for_resource({
|
2074
|
+
# resource_arn: "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-gcwFliYu",
|
2075
|
+
# })
|
2076
|
+
#
|
2077
|
+
# resp.to_h outputs the following:
|
2078
|
+
# {
|
2079
|
+
# tags: [
|
2080
|
+
# {
|
2081
|
+
# key: "Name",
|
2082
|
+
# value: "Example",
|
2083
|
+
# },
|
2084
|
+
# ],
|
2085
|
+
# }
|
2086
|
+
#
|
1248
2087
|
# @example Request syntax with placeholder values
|
1249
2088
|
#
|
1250
2089
|
# resp = client.list_tags_for_resource({
|
@@ -1289,6 +2128,26 @@ module Aws::Inspector
|
|
1289
2128
|
# * {Types::PreviewAgentsResponse#agent_previews #agent_previews} => Array<Types::AgentPreview>
|
1290
2129
|
# * {Types::PreviewAgentsResponse#next_token #next_token} => String
|
1291
2130
|
#
|
2131
|
+
#
|
2132
|
+
# @example Example: Preview agents
|
2133
|
+
#
|
2134
|
+
# # Previews the agents installed on the EC2 instances that are part of the specified assessment target.
|
2135
|
+
#
|
2136
|
+
# resp = client.preview_agents({
|
2137
|
+
# max_results: 123,
|
2138
|
+
# preview_agents_arn: "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq",
|
2139
|
+
# })
|
2140
|
+
#
|
2141
|
+
# resp.to_h outputs the following:
|
2142
|
+
# {
|
2143
|
+
# agent_previews: [
|
2144
|
+
# {
|
2145
|
+
# agent_id: "i-49113b93",
|
2146
|
+
# },
|
2147
|
+
# ],
|
2148
|
+
# next_token: "1",
|
2149
|
+
# }
|
2150
|
+
#
|
1292
2151
|
# @example Request syntax with placeholder values
|
1293
2152
|
#
|
1294
2153
|
# resp = client.preview_agents({
|
@@ -1324,6 +2183,15 @@ module Aws::Inspector
|
|
1324
2183
|
#
|
1325
2184
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1326
2185
|
#
|
2186
|
+
#
|
2187
|
+
# @example Example: Register cross account access role
|
2188
|
+
#
|
2189
|
+
# # Registers the IAM role that Amazon Inspector uses to list your EC2 instances at the start of the assessment run or when you call the PreviewAgents action.
|
2190
|
+
#
|
2191
|
+
# resp = client.register_cross_account_access_role({
|
2192
|
+
# role_arn: "arn:aws:iam::123456789012:role/inspector",
|
2193
|
+
# })
|
2194
|
+
#
|
1327
2195
|
# @example Request syntax with placeholder values
|
1328
2196
|
#
|
1329
2197
|
# resp = client.register_cross_account_access_role({
|
@@ -1355,6 +2223,26 @@ module Aws::Inspector
|
|
1355
2223
|
#
|
1356
2224
|
# * {Types::RemoveAttributesFromFindingsResponse#failed_items #failed_items} => Hash<String,Types::FailedItemDetails>
|
1357
2225
|
#
|
2226
|
+
#
|
2227
|
+
# @example Example: Remove attributes from findings
|
2228
|
+
#
|
2229
|
+
# # Removes entire attributes (key and value pairs) from the findings that are specified by the ARNs of the findings where an attribute with the specified key exists.
|
2230
|
+
#
|
2231
|
+
# resp = client.remove_attributes_from_findings({
|
2232
|
+
# attribute_keys: [
|
2233
|
+
# "key=Example,value=example",
|
2234
|
+
# ],
|
2235
|
+
# finding_arns: [
|
2236
|
+
# "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-8l1VIE0D/run/0-Z02cjjug/finding/0-T8yM9mEU",
|
2237
|
+
# ],
|
2238
|
+
# })
|
2239
|
+
#
|
2240
|
+
# resp.to_h outputs the following:
|
2241
|
+
# {
|
2242
|
+
# failed_items: {
|
2243
|
+
# },
|
2244
|
+
# }
|
2245
|
+
#
|
1358
2246
|
# @example Request syntax with placeholder values
|
1359
2247
|
#
|
1360
2248
|
# resp = client.remove_attributes_from_findings({
|
@@ -1389,6 +2277,21 @@ module Aws::Inspector
|
|
1389
2277
|
#
|
1390
2278
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1391
2279
|
#
|
2280
|
+
#
|
2281
|
+
# @example Example: Set tags for resource
|
2282
|
+
#
|
2283
|
+
# # Sets tags (key and value pairs) to the assessment template that is specified by the ARN of the assessment template.
|
2284
|
+
#
|
2285
|
+
# resp = client.set_tags_for_resource({
|
2286
|
+
# resource_arn: "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-7sbz2Kz0",
|
2287
|
+
# tags: [
|
2288
|
+
# {
|
2289
|
+
# key: "Example",
|
2290
|
+
# value: "example",
|
2291
|
+
# },
|
2292
|
+
# ],
|
2293
|
+
# })
|
2294
|
+
#
|
1392
2295
|
# @example Request syntax with placeholder values
|
1393
2296
|
#
|
1394
2297
|
# resp = client.set_tags_for_resource({
|
@@ -1427,6 +2330,21 @@ module Aws::Inspector
|
|
1427
2330
|
#
|
1428
2331
|
# * {Types::StartAssessmentRunResponse#assessment_run_arn #assessment_run_arn} => String
|
1429
2332
|
#
|
2333
|
+
#
|
2334
|
+
# @example Example: Start assessment run
|
2335
|
+
#
|
2336
|
+
# # Starts the assessment run specified by the ARN of the assessment template. For this API to function properly, you must not exceed the limit of running up to 500 concurrent agents per AWS account.
|
2337
|
+
#
|
2338
|
+
# resp = client.start_assessment_run({
|
2339
|
+
# assessment_run_name: "examplerun",
|
2340
|
+
# assessment_template_arn: "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T",
|
2341
|
+
# })
|
2342
|
+
#
|
2343
|
+
# resp.to_h outputs the following:
|
2344
|
+
# {
|
2345
|
+
# assessment_run_arn: "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T/run/0-jOoroxyY",
|
2346
|
+
# }
|
2347
|
+
#
|
1430
2348
|
# @example Request syntax with placeholder values
|
1431
2349
|
#
|
1432
2350
|
# resp = client.start_assessment_run({
|
@@ -1455,6 +2373,15 @@ module Aws::Inspector
|
|
1455
2373
|
#
|
1456
2374
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1457
2375
|
#
|
2376
|
+
#
|
2377
|
+
# @example Example: Stop assessment run
|
2378
|
+
#
|
2379
|
+
# # Stops the assessment run that is specified by the ARN of the assessment run.
|
2380
|
+
#
|
2381
|
+
# resp = client.stop_assessment_run({
|
2382
|
+
# assessment_run_arn: "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T/run/0-11LMTAVe",
|
2383
|
+
# })
|
2384
|
+
#
|
1458
2385
|
# @example Request syntax with placeholder values
|
1459
2386
|
#
|
1460
2387
|
# resp = client.stop_assessment_run({
|
@@ -1485,6 +2412,17 @@ module Aws::Inspector
|
|
1485
2412
|
#
|
1486
2413
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1487
2414
|
#
|
2415
|
+
#
|
2416
|
+
# @example Example: Subscribe to event
|
2417
|
+
#
|
2418
|
+
# # Enables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.
|
2419
|
+
#
|
2420
|
+
# resp = client.subscribe_to_event({
|
2421
|
+
# event: "ASSESSMENT_RUN_COMPLETED",
|
2422
|
+
# resource_arn: "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-7sbz2Kz0",
|
2423
|
+
# topic_arn: "arn:aws:sns:us-west-2:123456789012:exampletopic",
|
2424
|
+
# })
|
2425
|
+
#
|
1488
2426
|
# @example Request syntax with placeholder values
|
1489
2427
|
#
|
1490
2428
|
# resp = client.subscribe_to_event({
|
@@ -1517,6 +2455,17 @@ module Aws::Inspector
|
|
1517
2455
|
#
|
1518
2456
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1519
2457
|
#
|
2458
|
+
#
|
2459
|
+
# @example Example: Unsubscribe from event
|
2460
|
+
#
|
2461
|
+
# # Disables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.
|
2462
|
+
#
|
2463
|
+
# resp = client.unsubscribe_from_event({
|
2464
|
+
# event: "ASSESSMENT_RUN_COMPLETED",
|
2465
|
+
# resource_arn: "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-7sbz2Kz0",
|
2466
|
+
# topic_arn: "arn:aws:sns:us-west-2:123456789012:exampletopic",
|
2467
|
+
# })
|
2468
|
+
#
|
1520
2469
|
# @example Request syntax with placeholder values
|
1521
2470
|
#
|
1522
2471
|
# resp = client.unsubscribe_from_event({
|
@@ -1549,6 +2498,17 @@ module Aws::Inspector
|
|
1549
2498
|
#
|
1550
2499
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1551
2500
|
#
|
2501
|
+
#
|
2502
|
+
# @example Example: Update assessment target
|
2503
|
+
#
|
2504
|
+
# # Updates the assessment target that is specified by the ARN of the assessment target.
|
2505
|
+
#
|
2506
|
+
# resp = client.update_assessment_target({
|
2507
|
+
# assessment_target_arn: "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX",
|
2508
|
+
# assessment_target_name: "Example",
|
2509
|
+
# resource_group_arn: "arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-yNbgL5Pt",
|
2510
|
+
# })
|
2511
|
+
#
|
1552
2512
|
# @example Request syntax with placeholder values
|
1553
2513
|
#
|
1554
2514
|
# resp = client.update_assessment_target({
|
@@ -1579,7 +2539,7 @@ module Aws::Inspector
|
|
1579
2539
|
params: params,
|
1580
2540
|
config: config)
|
1581
2541
|
context[:gem_name] = 'aws-sdk-inspector'
|
1582
|
-
context[:gem_version] = '1.0.0.
|
2542
|
+
context[:gem_version] = '1.0.0.rc7'
|
1583
2543
|
Seahorse::Client::Request.new(handlers, context)
|
1584
2544
|
end
|
1585
2545
|
|
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.rc7
|
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-
|
11
|
+
date: 2017-06-29 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.rc14
|
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.rc14
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: aws-sigv4
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|