Skip to content

start_approval_team_baseline async

start_approval_team_baseline(
    arn: ApprovalTeamArn,
    *,
    config_overrides: Optional[AsyncMPAClientConfig] = None,
    approver_ids: Optional[StartApprovalTeamBaselineApproverIds] = None,
) -> StartApprovalTeamBaselineResponse

Starts a baseline session for specified approvers on an ACTIVE approval team.

Parameters:

Raises:

  • AccessDeniedException –

    You do not have sufficient access to perform this action. Check your permissions, and try again.

  • InternalServerException –

    The service encountered an internal error. Try your request again. If the problem persists, contact Amazon Web Services Support.

  • ResourceNotFoundException –

    The specified resource doesn't exist. Check the resource ID, and try again.

  • ThrottlingException –

    The request was denied due to request throttling.

  • ValidationException –

    The input fails to satisfy the constraints specified by an Amazon Web Services service.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_mpa/_services/async_mpa.py
async def start_approval_team_baseline(
    self,
    arn: "capo_mpa.types.approval_team_arn.ApprovalTeamArn",
    *,
    config_overrides: Optional[AsyncMPAClientConfig] = None,
    approver_ids: Optional[
        "capo_mpa.types.start_approval_team_baseline_approver_ids.StartApprovalTeamBaselineApproverIds"
    ] = None,
) -> "capo_mpa.types.start_approval_team_baseline_response.StartApprovalTeamBaselineResponse":
    """<p>Starts a baseline session for specified approvers on an <code>ACTIVE</code> approval team.</p>

    Args:
        arn: <p>Amazon Resource Name (ARN) for the approval team.</p>
        approver_ids: <p>Array of approver IDs.</p>

    Raises:
        capo_mpa.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action. Check your permissions, and try again.</p>
        capo_mpa.errors.internal_server_exception.InternalServerException: <p>The service encountered an internal error. Try your request again. If the problem persists, contact Amazon Web Services Support.</p>
        capo_mpa.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource doesn't exist. Check the resource ID, and try again.</p>
        capo_mpa.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_mpa.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
        capo_mpa.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_mpa.types.start_approval_team_baseline_request.StartApprovalTeamBaselineRequest]",
    ) -> AsyncOperationResponse[
        "capo_mpa.types.start_approval_team_baseline_response.StartApprovalTeamBaselineResponse"
    ]:
        import capo_mpa._operations.aws_fluffy_core_service.start_approval_team_baseline

        (
            output,
            http_response,
        ) = await capo_mpa._operations.aws_fluffy_core_service.start_approval_team_baseline.async_start_approval_team_baseline(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("StartApprovalTeamBaseline")
    )
    input_: capo_mpa.types.start_approval_team_baseline_request.StartApprovalTeamBaselineRequest = {
        "arn": arn
    }
    if approver_ids is not None:
        input_["approver_ids"] = approver_ids

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output