start_assessment_run
¶
start_assessment_run(
assessment_template_arn: Arn,
*,
config_overrides: Optional[InspectorClientConfig] = None,
assessment_run_name: Optional[AssessmentRunName] = None,
) -> StartAssessmentRunResponse
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.
Parameters:
-
assessment_template_arn(Arn) –The ARN of the assessment template of the assessment run that you want to start.
-
assessment_run_name(Optional[AssessmentRunName], default:None) –You can specify the name for the assessment run. The name must be unique for the assessment template whose ARN is used to start the assessment run.
Raises:
-
AccessDeniedException–You do not have required permissions to access the requested resource.
-
AgentsAlreadyRunningAssessmentException–You started an assessment run, but one of the instances is already participating in another assessment run.
-
InternalException–Internal server error.
-
InvalidCrossAccountRoleException–Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.
-
InvalidInputException–The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
-
LimitExceededException–The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.
-
NoSuchEntityException–The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
-
ServiceTemporarilyUnavailableException–The serice is temporary unavailable.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Start assessment run 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.
>>> client.start_assessment_run(assessment_template_arn='arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T', assessment_run_name='examplerun')
Source code in docs_src/capo_inspector/_services/inspector.py
2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 | |