Skip to content

put_action_revision async

put_action_revision(
    pipeline_name: PipelineName,
    stage_name: StageName,
    action_name: ActionName,
    action_revision: ActionRevision,
    *,
    config_overrides: Optional[AsyncCodePipelineClientConfig] = None,
) -> PutActionRevisionOutput

Provides information to CodePipeline about new revisions to a source.

Parameters:

  • pipeline_name (PipelineName) –

    The name of the pipeline that starts processing the revision to the source.

  • stage_name (StageName) –

    The name of the stage that contains the action that acts on the revision.

  • action_name (ActionName) –

    The name of the action that processes the revision.

  • action_revision (ActionRevision) –

    Represents information about the version (or revision) of an action.

Raises:

Source code in docs_src/capo_codepipeline/_services/async_code_pipeline.py
async def put_action_revision(
    self,
    pipeline_name: "capo_codepipeline.types.pipeline_name.PipelineName",
    stage_name: "capo_codepipeline.types.stage_name.StageName",
    action_name: "capo_codepipeline.types.action_name.ActionName",
    action_revision: "capo_codepipeline.types.action_revision.ActionRevision",
    *,
    config_overrides: Optional[AsyncCodePipelineClientConfig] = None,
) -> "capo_codepipeline.types.put_action_revision_output.PutActionRevisionOutput":
    """<p>Provides information to CodePipeline about new revisions to a source.</p>

    Args:
        pipeline_name: <p>The name of the pipeline that starts processing the revision to the source.</p>
        stage_name: <p>The name of the stage that contains the action that acts on the revision.</p>
        action_name: <p>The name of the action that processes the revision.</p>
        action_revision: <p>Represents information about the version (or revision) of an action.</p>

    Raises:
        capo_codepipeline.errors.action_not_found_exception.ActionNotFoundException: <p>The specified action cannot be found.</p>
        capo_codepipeline.errors.concurrent_pipeline_executions_limit_exceeded_exception.ConcurrentPipelineExecutionsLimitExceededException: <p>The pipeline has reached the limit for concurrent pipeline executions.</p>
        capo_codepipeline.errors.pipeline_not_found_exception.PipelineNotFoundException: <p>The pipeline was specified in an invalid format or cannot be found.</p>
        capo_codepipeline.errors.stage_not_found_exception.StageNotFoundException: <p>The stage was specified in an invalid format or cannot be found.</p>
        capo_codepipeline.errors.validation_exception.ValidationException: <p>The validation was specified in an invalid format.</p>
        capo_codepipeline.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_codepipeline.types.put_action_revision_input.PutActionRevisionInput]",
    ) -> AsyncOperationResponse[
        "capo_codepipeline.types.put_action_revision_output.PutActionRevisionOutput"
    ]:
        import capo_codepipeline._operations.code_pipeline_20150709.put_action_revision

        (
            output,
            http_response,
        ) = await capo_codepipeline._operations.code_pipeline_20150709.put_action_revision.async_put_action_revision(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("PutActionRevision")
    )
    input_: capo_codepipeline.types.put_action_revision_input.PutActionRevisionInput = {
        "pipeline_name": pipeline_name,
        "stage_name": stage_name,
        "action_name": action_name,
        "action_revision": action_revision,
    }

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