Skip to content

TestRun

Source code in docs_src/capo_resiliencehubv2/types/test_run.py
class TestRun(TypedDict, closed=True):
    test_run_id: "capo_resiliencehubv2.types.test_run_id.TestRunId"
    """<p>The unique identifier of the test run.</p>"""
    test_id: "capo_resiliencehubv2.types.test_id.TestId"
    """<p>The identifier of the test that was run.</p>"""
    status: "capo_resiliencehubv2.types.test_run_status.TestRunStatus"
    """<p>The current status of the test run.</p>"""
    service_arn: NotRequired["capo_resiliencehubv2.types.arn.Arn"]
    """<p>The ARN of the service the test run belongs to.</p>"""
    started_at: "datetime.datetime"
    """<p>The timestamp when the test run started.</p>"""
    ended_at: NotRequired["datetime.datetime"]
    """<p>The timestamp when the test run ended.</p>"""
    experiments: NotRequired[
        "capo_resiliencehubv2.types.experiment_details_list.ExperimentDetailsList"
    ]
    """<p>The AWS Fault Injection Service (AWS FIS) experiments run as part of the test run.</p>"""
    event_count: NotRequired["int"]
    """<p>The number of events recorded for the test run. Use ListTestRunEvents to retrieve the details.</p>"""
    parameters: NotRequired["capo_resiliencehubv2.types.test_parameters.TestParameters"]
    """<p>The parameter values used for the test run.</p>"""
    error_message: NotRequired["str"]
    """<p>A human-readable reason for test run failure. Only present when the status is FAILED or ERROR.</p>"""
    stop_conditions: NotRequired[
        "capo_resiliencehubv2.types.stop_condition_list.StopConditionList"
    ]
    """<p>The stop conditions snapshotted from the test when the run was started.</p>"""
    logging_configuration: NotRequired[
        "capo_resiliencehubv2.types.logging_configuration.LoggingConfiguration"
    ]
    """<p>The logging configuration snapshotted from the test when the run was started.</p>"""
    role_name: NotRequired["capo_resiliencehubv2.types.iam_role_name.IamRoleName"]
    """<p>The IAM execution role name snapshotted from the test when the run was started.</p>"""
    test_template_arn: "capo_resiliencehubv2.types.service_owned_arn.ServiceOwnedArn"
    """<p>The ARN of the test template snapshotted from the test when the run was started.</p>"""
    report_configuration: NotRequired[
        "capo_resiliencehubv2.types.test_run_report_configuration.TestRunReportConfiguration"
    ]
    """<p>The report configuration snapshotted from the service when the run was started.</p>"""
    policy: NotRequired[
        "capo_resiliencehubv2.types.test_run_policy_snapshot.TestRunPolicySnapshot"
    ]
    """<p>The resilience policy snapshotted from the service when the run was started.</p>"""
    report_output: NotRequired[
        "capo_resiliencehubv2.types.report_generation_result.ReportGenerationResult"
    ]
    """<p>The report generation result for the test run. Present after report generation completes or fails.</p>"""
    region_switch_plan_arn: NotRequired["capo_resiliencehubv2.types.arn.Arn"]
    """<p>The ARN of the ARC Region switch plan associated with the test run.</p>"""
    region_switch_execution_id: NotRequired[
        "capo_resiliencehubv2.types.region_switch_execution_id.RegionSwitchExecutionId"
    ]
    """<p>The identifier of the ARC Region switch execution detected during the test run.</p>"""
    permission_model: NotRequired[
        "capo_resiliencehubv2.types.permission_model.PermissionModel"
    ]
    """<p>The permission model snapshotted from the service when the run was started.</p>"""
    regions: NotRequired["capo_resiliencehubv2.types.region_list.RegionList"]
    """<p>The Regions snapshotted from the service when the run was started.</p>"""
    account_targeting: NotRequired[
        "capo_resiliencehubv2.types.account_targeting.AccountTargeting"
    ]
    """<p>Indicates whether the test run targets resources in a single AWS account or across multiple accounts.</p>"""
    dev_ops_agent_investigation: NotRequired[
        "capo_resiliencehubv2.types.dev_ops_agent_investigation.DevOpsAgentInvestigation"
    ]
    """<p>The DevOps Agent investigation result for the test run, present when the integration is enabled for the service.</p>"""

account_targeting instance-attribute

account_targeting: NotRequired[AccountTargeting]

Indicates whether the test run targets resources in a single AWS account or across multiple accounts.

dev_ops_agent_investigation instance-attribute

dev_ops_agent_investigation: NotRequired[DevOpsAgentInvestigation]

The DevOps Agent investigation result for the test run, present when the integration is enabled for the service.

ended_at instance-attribute

ended_at: NotRequired[datetime]

The timestamp when the test run ended.

error_message instance-attribute

error_message: NotRequired[str]

A human-readable reason for test run failure. Only present when the status is FAILED or ERROR.

event_count instance-attribute

event_count: NotRequired[int]

The number of events recorded for the test run. Use ListTestRunEvents to retrieve the details.

experiments instance-attribute

experiments: NotRequired[ExperimentDetailsList]

The AWS Fault Injection Service (AWS FIS) experiments run as part of the test run.

logging_configuration instance-attribute

logging_configuration: NotRequired[LoggingConfiguration]

The logging configuration snapshotted from the test when the run was started.

parameters instance-attribute

parameters: NotRequired[TestParameters]

The parameter values used for the test run.

permission_model instance-attribute

permission_model: NotRequired[PermissionModel]

The permission model snapshotted from the service when the run was started.

policy instance-attribute

policy: NotRequired[TestRunPolicySnapshot]

The resilience policy snapshotted from the service when the run was started.

region_switch_execution_id instance-attribute

region_switch_execution_id: NotRequired[RegionSwitchExecutionId]

The identifier of the ARC Region switch execution detected during the test run.

region_switch_plan_arn instance-attribute

region_switch_plan_arn: NotRequired[Arn]

The ARN of the ARC Region switch plan associated with the test run.

regions instance-attribute

regions: NotRequired[RegionList]

The Regions snapshotted from the service when the run was started.

report_configuration instance-attribute

report_configuration: NotRequired[TestRunReportConfiguration]

The report configuration snapshotted from the service when the run was started.

report_output instance-attribute

report_output: NotRequired[ReportGenerationResult]

The report generation result for the test run. Present after report generation completes or fails.

role_name instance-attribute

role_name: NotRequired[IamRoleName]

The IAM execution role name snapshotted from the test when the run was started.

service_arn instance-attribute

service_arn: NotRequired[Arn]

The ARN of the service the test run belongs to.

started_at instance-attribute

started_at: datetime

The timestamp when the test run started.

status instance-attribute

status: TestRunStatus

The current status of the test run.

stop_conditions instance-attribute

stop_conditions: NotRequired[StopConditionList]

The stop conditions snapshotted from the test when the run was started.

test_id instance-attribute

test_id: TestId

The identifier of the test that was run.

test_run_id instance-attribute

test_run_id: TestRunId

The unique identifier of the test run.

test_template_arn instance-attribute

test_template_arn: ServiceOwnedArn

The ARN of the test template snapshotted from the test when the run was started.