@sync_performer
def perform_update_s3_routing_rules(dispatcher, intent):
 s3 = boto.connect_s3()
 bucket = s3.get_bucket(intent.bucket)
 config = bucket.get_website_configuration_obj()
 config.routing_rules = intent.routing_rules
 bucket.set_website_configuration(config)

@ sync_performer def perform_update_s3_routing_rules ( dispatcher , intent ) : s3 = boto . connect_s3 ( ) bucket = s3 . get_bucket ( intent . bucket ) config = bucket . get_website_configuration_obj ( ) config . routing_rules = intent . routing_rules bucket . set_website_configuration ( config )
see :class:updates3routingrule .