start_assessment_run
async
¶
start_assessment_run(
assessment_template_arn: Arn,
*,
config_overrides: Optional[AsyncInspectorClientConfig] = 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.
>>> await 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/async_inspector.py
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 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 | |