Skip to content

list_experiment_target_account_configurations

list_experiment_target_account_configurations(
    experiment_id: ExperimentId,
    *,
    config_overrides: Optional[fisClientConfig] = None,
    next_token: Optional[NextToken] = None,
) -> ListExperimentTargetAccountConfigurationsResponse

Lists the target account configurations of the specified experiment.

Parameters:

  • experiment_id (ExperimentId) –

    The ID of the experiment.

  • next_token (Optional[NextToken], default: None ) –

    The token for the next page of results.

Raises:

Source code in docs_src/capo_fis/_services/fis.py
def list_experiment_target_account_configurations(
    self,
    experiment_id: "capo_fis.types.experiment_id.ExperimentId",
    *,
    config_overrides: Optional[fisClientConfig] = None,
    next_token: Optional["capo_fis.types.next_token.NextToken"] = None,
) -> "capo_fis.types.list_experiment_target_account_configurations_response.ListExperimentTargetAccountConfigurationsResponse":
    """<p>Lists the target account configurations of the specified experiment.</p>

    Args:
        experiment_id: <p>The ID of the experiment.</p>
        next_token: <p>The token for the next page of results.</p>

    Raises:
        capo_fis.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource cannot be found.</p>
        capo_fis.errors.validation_exception.ValidationException: <p>The specified input is not valid, or fails to satisfy the constraints for the request.</p>
        capo_fis.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_fis.types.list_experiment_target_account_configurations_request.ListExperimentTargetAccountConfigurationsRequest]",
    ) -> OperationResponse[
        "capo_fis.types.list_experiment_target_account_configurations_response.ListExperimentTargetAccountConfigurationsResponse"
    ]:
        import capo_fis._operations.fault_injection_simulator.list_experiment_target_account_configurations

        output, http_response = (
            capo_fis._operations.fault_injection_simulator.list_experiment_target_account_configurations.list_experiment_target_account_configurations(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("ListExperimentTargetAccountConfigurations"),
    )
    input_: capo_fis.types.list_experiment_target_account_configurations_request.ListExperimentTargetAccountConfigurationsRequest = {
        "experiment_id": experiment_id
    }
    if next_token is not None:
        input_["next_token"] = next_token

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output