Skip to content

Commit af17296

Browse files
author
AWS
committed
Inspector2 Update: Update Inspector2 to include new Agentless API parameters.
1 parent c53d656 commit af17296

File tree

2 files changed

+81
-3
lines changed

2 files changed

+81
-3
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Inspector2",
4+
"contributor": "",
5+
"description": "Update Inspector2 to include new Agentless API parameters."
6+
}

services/inspector2/src/main/resources/codegen-resources/service-2.json

Lines changed: 75 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"endpointPrefix":"inspector2",
66
"jsonVersion":"1.1",
77
"protocol":"rest-json",
8+
"protocols":["rest-json"],
89
"serviceAbbreviation":"Inspector2",
910
"serviceFullName":"Inspector2",
1011
"serviceId":"Inspector2",
@@ -3029,6 +3030,10 @@
30293030
"shape":"CoverageStringFilterList",
30303031
"documentation":"<p>An array of Amazon Web Services resource types to return coverage statistics for. The values can be <code>AWS_EC2_INSTANCE</code>, <code>AWS_LAMBDA_FUNCTION</code>, <code>AWS_ECR_CONTAINER_IMAGE</code>, <code>AWS_ECR_REPOSITORY</code> or <code>AWS_ACCOUNT</code>.</p>"
30313032
},
3033+
"scanMode":{
3034+
"shape":"CoverageStringFilterList",
3035+
"documentation":"<p>The filter to search for Amazon EC2 instance coverage by scan mode. Valid values are <code>EC2_SSM_AGENT_BASED</code> and <code>EC2_HYBRID</code>.</p>"
3036+
},
30323037
"scanStatusCode":{
30333038
"shape":"CoverageStringFilterList",
30343039
"documentation":"<p>The scan status code to filter on. Valid values are: <code>ValidationException</code>, <code>InternalServerException</code>, <code>ResourceNotFoundException</code>, <code>BadRequestException</code>, and <code>ThrottlingException</code>.</p>"
@@ -3150,6 +3155,10 @@
31503155
"shape":"CoverageResourceType",
31513156
"documentation":"<p>The type of the covered resource.</p>"
31523157
},
3158+
"scanMode":{
3159+
"shape":"ScanMode",
3160+
"documentation":"<p>The scan method that is applied to the instance.</p>"
3161+
},
31533162
"scanStatus":{
31543163
"shape":"ScanStatus",
31553164
"documentation":"<p>The status of the scan covering the resource.</p>"
@@ -3731,6 +3740,27 @@
37313740
"type":"double",
37323741
"box":true
37333742
},
3743+
"Ec2Configuration":{
3744+
"type":"structure",
3745+
"required":["scanMode"],
3746+
"members":{
3747+
"scanMode":{
3748+
"shape":"Ec2ScanMode",
3749+
"documentation":"<p>The scan method that is applied to the instance.</p>"
3750+
}
3751+
},
3752+
"documentation":"<p>Enables agent-based scanning, which scans instances that are not managed by SSM.</p>"
3753+
},
3754+
"Ec2ConfigurationState":{
3755+
"type":"structure",
3756+
"members":{
3757+
"scanModeState":{
3758+
"shape":"Ec2ScanModeState",
3759+
"documentation":"<p>An object that contains details about the state of the Amazon EC2 scan mode.</p>"
3760+
}
3761+
},
3762+
"documentation":"<p>Details about the state of the EC2 scan configuration for your environment.</p>"
3763+
},
37343764
"Ec2DeepInspectionStatus":{
37353765
"type":"string",
37363766
"enum":[
@@ -3841,6 +3871,34 @@
38413871
"MACOS"
38423872
]
38433873
},
3874+
"Ec2ScanMode":{
3875+
"type":"string",
3876+
"enum":[
3877+
"EC2_SSM_AGENT_BASED",
3878+
"EC2_HYBRID"
3879+
]
3880+
},
3881+
"Ec2ScanModeState":{
3882+
"type":"structure",
3883+
"members":{
3884+
"scanMode":{
3885+
"shape":"Ec2ScanMode",
3886+
"documentation":"<p>The scan method that is applied to the instance.</p>"
3887+
},
3888+
"scanModeStatus":{
3889+
"shape":"Ec2ScanModeStatus",
3890+
"documentation":"<p>The status of the Amazon EC2 scan mode setting.</p>"
3891+
}
3892+
},
3893+
"documentation":"<p>The state of your Amazon EC2 scan mode configuration.</p>"
3894+
},
3895+
"Ec2ScanModeStatus":{
3896+
"type":"string",
3897+
"enum":[
3898+
"SUCCESS",
3899+
"PENDING"
3900+
]
3901+
},
38443902
"EcrConfiguration":{
38453903
"type":"structure",
38463904
"required":["rescanDuration"],
@@ -4533,7 +4591,7 @@
45334591
},
45344592
"lastObservedAt":{
45354593
"shape":"DateTimeTimestamp",
4536-
"documentation":"<p>The date and time that the finding was last observed.</p>"
4594+
"documentation":"<p> The date and time the finding was last observed. This timestamp for this field remains unchanged until a finding is updated. </p>"
45374595
},
45384596
"networkReachabilityDetails":{
45394597
"shape":"NetworkReachabilityDetails",
@@ -4883,7 +4941,7 @@
48834941
},
48844942
"url":{
48854943
"shape":"String",
4886-
"documentation":"<p> The URL where the CIS scan report PDF can be downloaded. </p>"
4944+
"documentation":"<p> The URL where a PDF of the CIS scan report can be downloaded. </p>"
48874945
}
48884946
}
48894947
},
@@ -4956,6 +5014,10 @@
49565014
"GetConfigurationResponse":{
49575015
"type":"structure",
49585016
"members":{
5017+
"ec2Configuration":{
5018+
"shape":"Ec2ConfigurationState",
5019+
"documentation":"<p>Specifies how the Amazon EC2 automated scan mode is currently configured for your environment.</p>"
5020+
},
49595021
"ecrConfiguration":{
49605022
"shape":"EcrConfigurationState",
49615023
"documentation":"<p>Specifies how the ECR automated re-scan duration is currently configured for your environment.</p>"
@@ -7098,6 +7160,13 @@
70987160
"SPDX_2_3"
70997161
]
71007162
},
7163+
"ScanMode":{
7164+
"type":"string",
7165+
"enum":[
7166+
"EC2_SSM_AGENT_BASED",
7167+
"EC2_AGENTLESS"
7168+
]
7169+
},
71017170
"ScanStatus":{
71027171
"type":"structure",
71037172
"required":[
@@ -8026,8 +8095,11 @@
80268095
},
80278096
"UpdateConfigurationRequest":{
80288097
"type":"structure",
8029-
"required":["ecrConfiguration"],
80308098
"members":{
8099+
"ec2Configuration":{
8100+
"shape":"Ec2Configuration",
8101+
"documentation":"<p>Specifies how the Amazon EC2 automated scan will be updated for your environment.</p>"
8102+
},
80318103
"ecrConfiguration":{
80328104
"shape":"EcrConfiguration",
80338105
"documentation":"<p>Specifies how the ECR automated re-scan will be updated for your environment.</p>"

0 commit comments

Comments
 (0)