Best Python code snippet using localstack_python
mappers.py
Source:mappers.py
...82 configuration: S3DestinationConfiguration,83) -> S3DestinationDescription:84 if configuration:85 return cast(S3DestinationDescription, configuration)86def convert_s3_update_to_desc(update: S3DestinationUpdate) -> S3DestinationDescription:87 if update:88 return cast(S3DestinationDescription, update)89def convert_extended_s3_config_to_desc(90 configuration: ExtendedS3DestinationConfiguration,91) -> ExtendedS3DestinationDescription:92 if configuration:93 result = cast(ExtendedS3DestinationDescription, configuration)94 if "S3BackupConfiguration" in configuration:95 result["S3BackupDescription"] = convert_s3_config_to_desc(96 configuration["S3BackupConfiguration"]97 )98 result.pop("S3BackupConfiguration", None)99 return result100def convert_extended_s3_update_to_desc(101 update: ExtendedS3DestinationUpdate,102) -> ExtendedS3DestinationDescription:103 if update:104 result = cast(ExtendedS3DestinationDescription, update)105 if "S3BackupUpdate" in update:106 result["S3BackupDescription"] = convert_s3_update_to_desc(update["S3BackupUpdate"])107 result.pop("S3BackupUpdate", None)108 return result109def convert_http_config_to_desc(110 configuration: HttpEndpointDestinationConfiguration,111) -> HttpEndpointDestinationDescription:112 if configuration:113 result = cast(HttpEndpointDestinationDescription, configuration)114 if "S3Configuration" in configuration:115 result["S3DestinationDescription"] = convert_s3_config_to_desc(116 configuration["S3Configuration"]117 )118 result.pop("S3Configuration", None)119 return result120def convert_http_update_to_desc(121 update: HttpEndpointDestinationUpdate,122) -> HttpEndpointDestinationDescription:123 if update:124 result = cast(HttpEndpointDestinationDescription, update)125 if "S3Update" in update:126 result["S3DestinationDescription"] = convert_s3_update_to_desc(update["S3Update"])127 result.pop("S3Update", None)128 return result129def convert_source_config_to_desc(130 configuration: KinesisStreamSourceConfiguration,131) -> SourceDescription:132 if configuration:133 result = cast(KinesisStreamSourceDescription, configuration)134 result["DeliveryStartTimestamp"] = datetime.now()...
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!!