create_code_security_scan_configuration
¶
create_code_security_scan_configuration(
name: ScanConfigurationName,
level: ConfigurationLevel,
configuration: CodeSecurityScanConfiguration,
*,
config_overrides: Optional[Inspector2ClientConfig] = None,
scope_settings: Optional[ScopeSettings] = None,
tags: Optional[TagMap] = None,
) -> CreateCodeSecurityScanConfigurationResponse
Creates a scan configuration for code security scanning.
Parameters:
-
name(ScanConfigurationName) –The name of the scan configuration.
-
level(ConfigurationLevel) –The security level for the scan configuration.
-
configuration(CodeSecurityScanConfiguration) –The configuration settings for the code security scan.
-
scope_settings(Optional[ScopeSettings], default:None) –The scope settings that define which repositories will be scanned. Include this parameter to create a default scan configuration. Otherwise Amazon Inspector creates a general scan configuration.
A default scan configuration automatically applies to all existing and future projects imported into Amazon Inspector. Use the
BatchAssociateCodeSecurityScanConfigurationoperation to associate a general scan configuration with projects. -
tags(Optional[TagMap], default:None) –The tags to apply to the scan configuration.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
For
Enable, you receive this error if you attempt to use a feature in an unsupported Amazon Web Services Region. -
ConflictException–A conflict occurred. This exception occurs when the same resource is being modified by concurrent requests.
-
InternalServerException–The request has failed due to an internal failure of the Amazon Inspector service.
-
ServiceQuotaExceededException–You have exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use Service Quotas to request a service quota increase.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–The request has failed validation due to missing required fields or having invalid inputs.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_inspector2/_services/inspector2.py
1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 | |