Best Python code snippet using localstack_python
client.pyi
Source:client.pyi  
...415        Gives a description of the Time to Live (TTL) status on the specified table.416        [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/dynamodb.html#DynamoDB.Client.describe_time_to_live)417        [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/client.html#describe_time_to_live)418        """419    def disable_kinesis_streaming_destination(420        self, *, TableName: str, StreamArn: str421    ) -> KinesisStreamingDestinationOutputTypeDef:422        """423        Stops replication from the DynamoDB table to the Kinesis data stream.424        [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/dynamodb.html#DynamoDB.Client.disable_kinesis_streaming_destination)425        [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/client.html#disable_kinesis_streaming_destination)426        """427    def enable_kinesis_streaming_destination(428        self, *, TableName: str, StreamArn: str429    ) -> KinesisStreamingDestinationOutputTypeDef:430        """431        Starts table data replication to the specified Kinesis data stream at a432        timestamp chosen during the enable workflow.433        [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/dynamodb.html#DynamoDB.Client.enable_kinesis_streaming_destination)...test_dynamodb.py
Source:test_dynamodb.py  
...393        # assert kinesis streaming destination status394        self.assertEqual(stream_description["StreamARN"], describe["StreamArn"])395        self.assertEqual("ACTIVE", describe["DestinationStatus"])396        # Disable kinesis destination397        dynamodb.disable_kinesis_streaming_destination(398            TableName=table_name, StreamArn=stream_description["StreamARN"]399        )400        # describe kinesis streaming destination of the table401        describe = dynamodb.describe_kinesis_streaming_destination(TableName=table_name)[402            "KinesisDataStreamDestinations"403        ][0]404        # assert kinesis streaming destination status405        self.assertEqual(stream_description["StreamARN"], describe["StreamArn"])406        self.assertEqual("DISABLED", describe["DestinationStatus"])407        # clean up408        delete_table(table_name)409        kinesis.delete_stream(StreamName="kinesis_dest_stream")410    def test_global_tables(self):411        aws_stack.create_dynamodb_table(TEST_DDB_TABLE_NAME, partition_key=PARTITION_KEY)...Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!
