Skip to content

update_ingest_configuration async

update_ingest_configuration(
    arn: IngestConfigurationArn,
    *,
    config_overrides: Optional[AsyncIVSRealTimeClientConfig] = None,
    stage_arn: Optional[IngestConfigurationStageArn] = None,
    redundant_ingest: Optional[RedundantIngest] = None,
) -> UpdateIngestConfigurationResponse

Updates a specified IngestConfiguration. Only the stage ARN attached to the IngestConfiguration can be updated. An IngestConfiguration that is active cannot be updated.

Parameters:

Raises:

Source code in docs_src/capo_ivs_realtime/_services/async_ivs_real_time.py
async def update_ingest_configuration(
    self,
    arn: "capo_ivs_realtime.types.ingest_configuration_arn.IngestConfigurationArn",
    *,
    config_overrides: Optional[AsyncIVSRealTimeClientConfig] = None,
    stage_arn: Optional[
        "capo_ivs_realtime.types.ingest_configuration_stage_arn.IngestConfigurationStageArn"
    ] = None,
    redundant_ingest: Optional[
        "capo_ivs_realtime.types.redundant_ingest.RedundantIngest"
    ] = None,
) -> "capo_ivs_realtime.types.update_ingest_configuration_response.UpdateIngestConfigurationResponse":
    """<p>Updates a specified IngestConfiguration. Only the stage ARN attached to the IngestConfiguration can be updated. An IngestConfiguration that is active cannot be updated.</p>

    Args:
        arn: <p>ARN of the IngestConfiguration, for which the related stage ARN needs to be updated.</p>
        stage_arn: <p>Stage ARN that needs to be updated.</p>
        redundant_ingest: <p>Indicates whether redundant ingest is enabled for the ingest configuration. Default: <code>false</code>. </p>

    Raises:
        capo_ivs_realtime.errors.access_denied_exception.AccessDeniedException: <p>User does not have sufficient access to perform this action.</p>
        capo_ivs_realtime.errors.conflict_exception.ConflictException: <p>Updating or deleting a resource can cause an inconsistent state.</p>
        capo_ivs_realtime.errors.pending_verification.PendingVerification: <p>Your account is pending verification.</p>
        capo_ivs_realtime.errors.resource_not_found_exception.ResourceNotFoundException: <p>Request references a resource which does not exist.</p>
        capo_ivs_realtime.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
        capo_ivs_realtime.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_ivs_realtime.types.update_ingest_configuration_request.UpdateIngestConfigurationRequest]",
    ) -> AsyncOperationResponse[
        "capo_ivs_realtime.types.update_ingest_configuration_response.UpdateIngestConfigurationResponse"
    ]:
        import capo_ivs_realtime._operations.amazon_interactive_video_service_real_time.update_ingest_configuration

        (
            output,
            http_response,
        ) = await capo_ivs_realtime._operations.amazon_interactive_video_service_real_time.update_ingest_configuration.async_update_ingest_configuration(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    def _redact_output(
        output: "capo_ivs_realtime.types.update_ingest_configuration_response.UpdateIngestConfigurationResponse",
    ) -> dict[str, Any]:
        import capo_ivs_realtime.types.update_ingest_configuration_response

        return capo_ivs_realtime.types.update_ingest_configuration_response.redact_sensitive(
            output
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("UpdateIngestConfiguration", redact_output=_redact_output),
    )
    input_: capo_ivs_realtime.types.update_ingest_configuration_request.UpdateIngestConfigurationRequest = {
        "arn": arn
    }
    if stage_arn is not None:
        input_["stage_arn"] = stage_arn
    if redundant_ingest is not None:
        input_["redundant_ingest"] = redundant_ingest

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