update_channel
¶
update_channel(
channel_arn: ChannelARN,
*,
config_overrides: Optional[KinesisClientConfig] = None,
s3_destination_configuration: Optional[S3DestinationUpdateInput] = None,
s3_tables_destination_configuration: Optional[
S3TablesDestinationUpdateInput
] = None,
logging_configuration: Optional[ChannelLoggingUpdateInput] = None,
) -> UpdateChannelOutput
Updates the data freshness interval or the Amazon CloudWatch Logs configuration of an existing channel. You cannot change the destination, source stream, record format, schema, encryption configuration, or service execution role of an existing channel. To change any other setting, delete the channel and create a new one.
Updating a channel is an asynchronous operation. Upon receiving the request, Amazon Kinesis Data Streams sets the channel to the UPDATING state and returns immediately. After the change is applied, Amazon Kinesis Data Streams sets the channel back to the ACTIVE state.
This operation has a call limit of 5 transactions per second (TPS) for each Amazon Web Services account. Exceeding 5 TPS results in a LimitExceededException.
Parameters:
-
channel_arn(ChannelARN) –The Amazon Resource Name (ARN) of the channel to update.
-
s3_destination_configuration(Optional[S3DestinationUpdateInput], default:None) –The updated configuration for a general purpose Amazon S3 destination. Specify this parameter when the channel delivers to a general purpose Amazon S3 bucket. Only
DataFreshnessInSecondscan be updated. -
s3_tables_destination_configuration(Optional[S3TablesDestinationUpdateInput], default:None) –The updated configuration for a streaming table destination. Specify this parameter when the channel delivers to streaming tables on Apache Iceberg in Amazon S3 Tables. Only
DataFreshnessInSecondscan be updated. -
logging_configuration(Optional[ChannelLoggingUpdateInput], default:None) –The updated Amazon CloudWatch Logs configuration for the channel.
Raises:
-
AccessDeniedException–Specifies that you do not have the permissions required to perform this operation.
-
InvalidArgumentException–A specified parameter exceeds its restrictions, is not supported, or can't be used. For more information, see the returned message.
-
LimitExceededException–The requested resource exceeds the maximum number allowed, or the number of concurrent stream requests exceeds the maximum number allowed.
-
ResourceInUseException–The resource is not available for this operation. For successful operation, the resource must be in the
ACTIVEstate. -
ResourceNotFoundException–The requested resource could not be found. The stream might not be specified correctly.
-
ValidationException–The request failed validation. For example, a parameter value is not valid, a combination of parameters is not supported, or the operation is not supported for the stream's capacity mode. The error message describes the specific reason.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_kinesis/_services/kinesis.py
3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 | |