Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _queue_to_xml(writer, queue):
writer.elements([
('LockDuration', queue.lock_duration, None),
('MaxSizeInMegabytes', queue.max_size_in_megabytes, None),
('RequiresDuplicateDetection', queue.requires_duplicate_detection, _lower),
('RequiresSession', queue.requires_session, _lower),
('DefaultMessageTimeToLive', queue.default_message_time_to_live, None),
('DeadLetteringOnMessageExpiration', queue.dead_lettering_on_message_expiration, _lower),
('DuplicateDetectionHistoryTimeWindow', queue.duplicate_detection_history_time_window, None),
('MaxDeliveryCount', queue.max_delivery_count, None),
('EnableBatchedOperations', queue.enable_batched_operations, _lower),
('SizeInBytes', queue.size_in_bytes, None),
('MessageCount', queue.message_count, None),
])