Skip to content

get_experiment_target_account_configuration

get_experiment_target_account_configuration(
    experiment_id: ExperimentId,
    account_id: TargetAccountId,
    *,
    config_overrides: Optional[fisClientConfig] = None,
) -> GetExperimentTargetAccountConfigurationResponse

Gets information about the specified target account configuration of the experiment.

Parameters:

  • experiment_id (ExperimentId) –

    The ID of the experiment.

  • account_id (TargetAccountId) –

    The Amazon Web Services account ID of the target account.

Raises:

Source code in docs_src/capo_fis/_services/fis.py
def get_experiment_target_account_configuration(
    self,
    experiment_id: "capo_fis.types.experiment_id.ExperimentId",
    account_id: "capo_fis.types.target_account_id.TargetAccountId",
    *,
    config_overrides: Optional[fisClientConfig] = None,
) -> "capo_fis.types.get_experiment_target_account_configuration_response.GetExperimentTargetAccountConfigurationResponse":
    """<p>Gets information about the specified target account configuration of the experiment.</p>

    Args:
        experiment_id: <p>The ID of the experiment.</p>
        account_id: <p>The Amazon Web Services account ID of the target account.</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.get_experiment_target_account_configuration_request.GetExperimentTargetAccountConfigurationRequest]",
    ) -> OperationResponse[
        "capo_fis.types.get_experiment_target_account_configuration_response.GetExperimentTargetAccountConfigurationResponse"
    ]:
        import capo_fis._operations.fault_injection_simulator.get_experiment_target_account_configuration

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

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("GetExperimentTargetAccountConfiguration"),
    )
    input_: capo_fis.types.get_experiment_target_account_configuration_request.GetExperimentTargetAccountConfigurationRequest = {
        "experiment_id": experiment_id,
        "account_id": account_id,
    }

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