Skip to content

get_code_issue_artifact

get_code_issue_artifact(
    environment_id: EnvironmentId,
    issue_id: IssueId,
    artifact_id: IssueArtifactId,
    *,
    config_overrides: Optional[ContinuumClientConfig] = None,
) -> GetCodeIssueArtifactOutput

Retrieves one immutable artifact attached to an issue, including its content.

Parameters:

  • environment_id (EnvironmentId) –

    The environment that owns the issue.

  • issue_id (IssueId) –

    The issue the artifact is attached to.

  • artifact_id (IssueArtifactId) –

    The unique identifier of the artifact to retrieve.

Raises:

  • AccessDeniedException –

    The request is not authorized. Verify that your credentials and request signature are valid and that you have permission to perform this action.

  • InternalServerException –

    The request couldn't be processed because of an internal server issue. Try again later. If the problem persists, contact AWS Support.

  • ResourceNotFoundException –

    The specified resource was not found. Verify that the resource identifier is correct and that the resource exists.

  • ThrottlingException –

    The request was denied due to request throttling.

  • UnknownServiceError –

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

Source code in docs_src/capo_continuum/_services/continuum.py
def get_code_issue_artifact(
    self,
    environment_id: "capo_continuum.types.environment_id.EnvironmentId",
    issue_id: "capo_continuum.types.issue_id.IssueId",
    artifact_id: "capo_continuum.types.issue_artifact_id.IssueArtifactId",
    *,
    config_overrides: Optional[ContinuumClientConfig] = None,
) -> (
    "capo_continuum.types.get_code_issue_artifact_output.GetCodeIssueArtifactOutput"
):
    """Retrieves one immutable artifact attached to an issue, including its content.

    Args:
        environment_id: The environment that owns the issue.
        issue_id: The issue the artifact is attached to.
        artifact_id: The unique identifier of the artifact to retrieve.

    Raises:
        capo_continuum.errors.access_denied_exception.AccessDeniedException: The request is not authorized. Verify that your credentials and request signature are valid and that you have permission to perform this action.
        capo_continuum.errors.internal_server_exception.InternalServerException: The request couldn't be processed because of an internal server issue. Try again later. If the problem persists, contact AWS Support.
        capo_continuum.errors.resource_not_found_exception.ResourceNotFoundException: The specified resource was not found. Verify that the resource identifier is correct and that the resource exists.
        capo_continuum.errors.throttling_exception.ThrottlingException: The request was denied due to request throttling.
        capo_continuum.errors.validation_exception.ValidationException
        capo_continuum.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_continuum.types.get_code_issue_artifact_input.GetCodeIssueArtifactInput]",
    ) -> OperationResponse[
        "capo_continuum.types.get_code_issue_artifact_output.GetCodeIssueArtifactOutput"
    ]:
        import capo_continuum._operations.continuum_control_plane.get_code_issue_artifact

        output, http_response = (
            capo_continuum._operations.continuum_control_plane.get_code_issue_artifact.get_code_issue_artifact(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetCodeIssueArtifact")
    )
    input_: capo_continuum.types.get_code_issue_artifact_input.GetCodeIssueArtifactInput = {
        "environment_id": environment_id,
        "issue_id": issue_id,
        "artifact_id": artifact_id,
    }

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