update_channel
async
¶
update_channel(
channel_arn: ChannelARN,
*,
config_overrides: Optional[AsyncKinesisClientConfig] = 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/async_kinesis.py
3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 | |