Skip to content

update_channel_flow

update_channel_flow(
    channel_flow_arn: ChimeArn,
    processors: ProcessorList,
    name: NonEmptyResourceName,
    *,
    config_overrides: Optional[ChimeSDKMessagingClientConfig] = None,
) -> UpdateChannelFlowResponse

Updates channel flow attributes. This is a developer API.

Parameters:

Raises:

Source code in docs_src/capo_chime_sdk_messaging/_services/chime_sdk_messaging.py
def update_channel_flow(
    self,
    channel_flow_arn: "capo_chime_sdk_messaging.types.chime_arn.ChimeArn",
    processors: "capo_chime_sdk_messaging.types.processor_list.ProcessorList",
    name: "capo_chime_sdk_messaging.types.non_empty_resource_name.NonEmptyResourceName",
    *,
    config_overrides: Optional[ChimeSDKMessagingClientConfig] = None,
) -> "capo_chime_sdk_messaging.types.update_channel_flow_response.UpdateChannelFlowResponse":
    """<p>Updates channel flow attributes. This is a developer API.</p>

    Args:
        channel_flow_arn: <p>The ARN of the channel flow.</p>
        processors: <p>Information about the processor Lambda functions </p>
        name: <p>The name of the channel flow.</p>

    Raises:
        capo_chime_sdk_messaging.errors.bad_request_exception.BadRequestException: <p>The input parameters don't match the service's restrictions.</p>
        capo_chime_sdk_messaging.errors.conflict_exception.ConflictException: <p>The request could not be processed because of conflict in the current state of the resource.</p>
        capo_chime_sdk_messaging.errors.forbidden_exception.ForbiddenException: <p>The client is permanently forbidden from making the request.</p>
        capo_chime_sdk_messaging.errors.service_failure_exception.ServiceFailureException: <p>The service encountered an unexpected error.</p>
        capo_chime_sdk_messaging.errors.service_unavailable_exception.ServiceUnavailableException: <p>The service is currently unavailable.</p>
        capo_chime_sdk_messaging.errors.throttled_client_exception.ThrottledClientException: <p>The client exceeded its request rate limit.</p>
        capo_chime_sdk_messaging.errors.unauthorized_client_exception.UnauthorizedClientException: <p>The client is not currently authorized to make the request.</p>
        capo_chime_sdk_messaging.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_chime_sdk_messaging.types.update_channel_flow_request.UpdateChannelFlowRequest]",
    ) -> OperationResponse[
        "capo_chime_sdk_messaging.types.update_channel_flow_response.UpdateChannelFlowResponse"
    ]:
        import capo_chime_sdk_messaging._operations.chime_messaging_service.update_channel_flow

        output, http_response = (
            capo_chime_sdk_messaging._operations.chime_messaging_service.update_channel_flow.update_channel_flow(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    def _redact_input(
        input_: "capo_chime_sdk_messaging.types.update_channel_flow_request.UpdateChannelFlowRequest",
    ) -> dict[str, Any]:
        import capo_chime_sdk_messaging.types.update_channel_flow_request

        return capo_chime_sdk_messaging.types.update_channel_flow_request.redact_sensitive(
            input_
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("UpdateChannelFlow", redact_input=_redact_input),
    )
    input_: capo_chime_sdk_messaging.types.update_channel_flow_request.UpdateChannelFlowRequest = {
        "channel_flow_arn": channel_flow_arn,
        "processors": processors,
        "name": name,
    }

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