AWS SDK

AWS SDK

rev. e6785b15a6b118e5a6960c94143c0d982a485bbb (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde.rs

@@ -22,22 +155,147 @@
   42     42   
}
   43     43   
   44     44   
pub(crate) mod shape_complete_multipart_upload_input;
   45     45   
   46     46   
pub(crate) mod shape_copy_object;
   47     47   
   48     48   
pub(crate) mod shape_create_bucket;
   49     49   
   50     50   
pub(crate) mod shape_create_bucket_input;
   51     51   
   52         -
pub(crate) mod shape_create_bucket_metadata_configuration;
   53         -
   54         -
pub(crate) mod shape_create_bucket_metadata_configuration_input;
   55         -
   56     52   
pub(crate) mod shape_create_bucket_metadata_table_configuration;
   57     53   
   58     54   
pub(crate) mod shape_create_bucket_metadata_table_configuration_input;
   59     55   
   60     56   
pub(crate) mod shape_create_multipart_upload;
   61     57   
   62     58   
pub(crate) mod shape_create_session;
   63     59   
   64     60   
pub(crate) mod shape_delete_bucket;
   65     61   
   66     62   
pub(crate) mod shape_delete_bucket_analytics_configuration;
   67     63   
   68     64   
pub(crate) mod shape_delete_bucket_cors;
   69     65   
   70     66   
pub(crate) mod shape_delete_bucket_encryption;
   71     67   
   72     68   
pub(crate) mod shape_delete_bucket_intelligent_tiering_configuration;
   73     69   
   74     70   
pub(crate) mod shape_delete_bucket_inventory_configuration;
   75     71   
   76     72   
pub(crate) mod shape_delete_bucket_lifecycle;
   77     73   
   78         -
pub(crate) mod shape_delete_bucket_metadata_configuration;
   79         -
   80     74   
pub(crate) mod shape_delete_bucket_metadata_table_configuration;
   81     75   
   82     76   
pub(crate) mod shape_delete_bucket_metrics_configuration;
   83     77   
   84     78   
pub(crate) mod shape_delete_bucket_ownership_controls;
   85     79   
   86     80   
pub(crate) mod shape_delete_bucket_policy;
   87     81   
   88     82   
pub(crate) mod shape_delete_bucket_replication;
   89     83   
   90     84   
pub(crate) mod shape_delete_bucket_tagging;
   91     85   
   92     86   
pub(crate) mod shape_delete_bucket_website;
   93     87   
   94     88   
pub(crate) mod shape_delete_object;
   95     89   
   96     90   
pub(crate) mod shape_delete_object_tagging;
   97     91   
   98     92   
pub(crate) mod shape_delete_objects;
   99     93   
  100     94   
pub(crate) mod shape_delete_objects_input;
  101     95   
  102     96   
pub(crate) mod shape_delete_public_access_block;
  103     97   
  104     98   
pub(crate) mod shape_get_bucket_accelerate_configuration;
  105     99   
  106    100   
pub(crate) mod shape_get_bucket_acl;
  107    101   
  108    102   
pub(crate) mod shape_get_bucket_analytics_configuration;
  109    103   
  110    104   
pub(crate) mod shape_get_bucket_cors;
  111    105   
  112    106   
pub(crate) mod shape_get_bucket_encryption;
  113    107   
  114    108   
pub(crate) mod shape_get_bucket_intelligent_tiering_configuration;
  115    109   
  116    110   
pub(crate) mod shape_get_bucket_inventory_configuration;
  117    111   
  118    112   
pub(crate) mod shape_get_bucket_lifecycle_configuration;
  119    113   
  120    114   
pub(crate) mod shape_get_bucket_location;
  121    115   
  122    116   
pub(crate) mod shape_get_bucket_logging;
  123    117   
  124         -
pub(crate) mod shape_get_bucket_metadata_configuration;
  125         -
  126    118   
pub(crate) mod shape_get_bucket_metadata_table_configuration;
  127    119   
  128    120   
pub(crate) mod shape_get_bucket_metrics_configuration;
  129    121   
  130    122   
pub(crate) mod shape_get_bucket_notification_configuration;
  131    123   
  132    124   
pub(crate) mod shape_get_bucket_ownership_controls;
  133    125   
  134    126   
pub(crate) mod shape_get_bucket_policy;
  135    127   
@@ -240,232 +764,674 @@
  260    252   
pub(crate) mod shape_put_bucket_website;
  261    253   
  262    254   
pub(crate) mod shape_put_bucket_website_input;
  263    255   
  264    256   
pub(crate) mod shape_put_object;
  265    257   
  266    258   
pub(crate) mod shape_put_object_acl;
  267    259   
  268    260   
pub(crate) mod shape_put_object_acl_input;
  269    261   
  270         -
pub(crate) mod shape_put_object_input;
  271         -
  272    262   
pub(crate) mod shape_put_object_legal_hold;
  273    263   
  274    264   
pub(crate) mod shape_put_object_legal_hold_input;
  275    265   
  276    266   
pub(crate) mod shape_put_object_lock_configuration;
  277    267   
  278    268   
pub(crate) mod shape_put_object_lock_configuration_input;
  279    269   
  280    270   
pub(crate) mod shape_put_object_retention;
  281    271   
  282    272   
pub(crate) mod shape_put_object_retention_input;
  283    273   
  284    274   
pub(crate) mod shape_put_object_tagging;
  285    275   
  286    276   
pub(crate) mod shape_put_object_tagging_input;
  287    277   
  288    278   
pub(crate) mod shape_put_public_access_block;
  289    279   
  290    280   
pub(crate) mod shape_put_public_access_block_input;
  291    281   
  292         -
pub(crate) mod shape_rename_object;
  293         -
  294    282   
pub(crate) mod shape_restore_object;
  295    283   
  296    284   
pub(crate) mod shape_restore_object_input;
  297    285   
  298         -
pub(crate) mod shape_select_object_content;
  299         -
  300         -
pub(crate) mod shape_update_bucket_metadata_inventory_table_configuration;
  301         -
  302         -
pub(crate) mod shape_update_bucket_metadata_inventory_table_configuration_input;
  303         -
  304         -
pub(crate) mod shape_update_bucket_metadata_journal_table_configuration;
  305         -
  306         -
pub(crate) mod shape_update_bucket_metadata_journal_table_configuration_input;
  307         -
  308    286   
pub(crate) mod shape_upload_part;
  309    287   
  310    288   
pub(crate) mod shape_upload_part_copy;
  311    289   
  312         -
pub(crate) mod shape_upload_part_input;
  313         -
  314    290   
pub(crate) mod shape_write_get_object_response;
  315    291   
  316         -
pub(crate) mod shape_write_get_object_response_input;
  317         -
  318    292   
pub(crate) mod shape_abort_multipart_upload_output;
  319    293   
  320    294   
pub(crate) mod shape_bucket_already_exists;
  321    295   
  322    296   
pub(crate) mod shape_bucket_already_owned_by_you;
  323    297   
  324    298   
pub(crate) mod shape_complete_multipart_upload_output;
  325    299   
  326    300   
pub(crate) mod shape_copy_object_output;
  327    301   
  328    302   
pub(crate) mod shape_create_bucket_output;
  329    303   
  330    304   
pub(crate) mod shape_create_multipart_upload_output;
  331    305   
  332    306   
pub(crate) mod shape_create_session_output;
  333    307   
  334    308   
pub(crate) mod shape_delete_object_output;
  335    309   
  336    310   
pub(crate) mod shape_delete_object_tagging_output;
  337    311   
  338    312   
pub(crate) mod shape_delete_objects_output;
  339    313   
  340    314   
pub(crate) mod shape_encryption_type_mismatch;
  341    315   
  342    316   
pub(crate) mod shape_get_bucket_accelerate_configuration_output;
  343    317   
  344    318   
pub(crate) mod shape_get_bucket_analytics_configuration_output;
  345    319   
  346    320   
pub(crate) mod shape_get_bucket_encryption_output;
  347    321   
  348    322   
pub(crate) mod shape_get_bucket_intelligent_tiering_configuration_output;
  349    323   
  350    324   
pub(crate) mod shape_get_bucket_inventory_configuration_output;
  351    325   
  352    326   
pub(crate) mod shape_get_bucket_lifecycle_configuration_output;
  353    327   
  354         -
pub(crate) mod shape_get_bucket_metadata_configuration_output;
  355         -
  356    328   
pub(crate) mod shape_get_bucket_metadata_table_configuration_output;
  357    329   
  358    330   
pub(crate) mod shape_get_bucket_metrics_configuration_output;
  359    331   
  360    332   
pub(crate) mod shape_get_bucket_ownership_controls_output;
  361    333   
  362    334   
pub(crate) mod shape_get_bucket_policy_output;
  363    335   
  364    336   
pub(crate) mod shape_get_bucket_policy_status_output;
  365    337   
  366    338   
pub(crate) mod shape_get_bucket_replication_output;
  367    339   
  368    340   
pub(crate) mod shape_get_object_acl_output;
  369    341   
  370    342   
pub(crate) mod shape_get_object_attributes_output;
  371    343   
  372    344   
pub(crate) mod shape_get_object_legal_hold_output;
  373    345   
  374    346   
pub(crate) mod shape_get_object_lock_configuration_output;
  375    347   
  376    348   
pub(crate) mod shape_get_object_output;
  377    349   
  378    350   
pub(crate) mod shape_get_object_retention_output;
  379    351   
  380    352   
pub(crate) mod shape_get_object_tagging_output;
  381    353   
  382    354   
pub(crate) mod shape_get_object_torrent_output;
  383    355   
  384    356   
pub(crate) mod shape_get_public_access_block_output;
  385    357   
  386    358   
pub(crate) mod shape_head_bucket_output;
  387    359   
  388    360   
pub(crate) mod shape_head_object_output;
  389    361   
  390         -
pub(crate) mod shape_idempotency_parameter_mismatch;
  391         -
  392    362   
pub(crate) mod shape_invalid_object_state;
  393    363   
  394    364   
pub(crate) mod shape_invalid_request;
  395    365   
  396    366   
pub(crate) mod shape_invalid_write_offset;
  397    367   
  398    368   
pub(crate) mod shape_list_multipart_uploads_output;
  399    369   
  400    370   
pub(crate) mod shape_list_object_versions_output;
  401    371   
  402    372   
pub(crate) mod shape_list_objects_output;
  403    373   
  404    374   
pub(crate) mod shape_list_objects_v2_output;
  405    375   
  406    376   
pub(crate) mod shape_list_parts_output;
  407    377   
  408    378   
pub(crate) mod shape_no_such_bucket;
  409    379   
  410    380   
pub(crate) mod shape_no_such_key;
  411    381   
  412    382   
pub(crate) mod shape_no_such_upload;
  413    383   
  414    384   
pub(crate) mod shape_not_found;
  415    385   
  416    386   
pub(crate) mod shape_object_already_in_active_tier_error;
  417    387   
  418    388   
pub(crate) mod shape_object_not_in_active_tier_error;
  419    389   
  420    390   
pub(crate) mod shape_put_bucket_lifecycle_configuration_output;
  421    391   
  422    392   
pub(crate) mod shape_put_object_acl_output;
  423    393   
  424    394   
pub(crate) mod shape_put_object_legal_hold_output;
  425    395   
  426    396   
pub(crate) mod shape_put_object_lock_configuration_output;
  427    397   
  428    398   
pub(crate) mod shape_put_object_output;
  429    399   
  430    400   
pub(crate) mod shape_put_object_retention_output;
  431    401   
  432    402   
pub(crate) mod shape_put_object_tagging_output;
  433    403   
  434    404   
pub(crate) mod shape_restore_object_output;
  435    405   
  436         -
pub(crate) mod shape_select_object_content_input;
  437         -
  438         -
pub(crate) mod shape_select_object_content_output;
  439         -
  440    406   
pub(crate) mod shape_too_many_parts;
  441    407   
  442    408   
pub(crate) mod shape_upload_part_copy_output;
  443    409   
  444    410   
pub(crate) mod shape_upload_part_output;
  445    411   
  446         -
pub fn parse_event_stream_error_metadata(
  447         -
    payload: &::bytes::Bytes,
  448         -
) -> ::std::result::Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_xml::decode::XmlDecodeError> {
  449         -
    crate::rest_xml_unwrapped_errors::parse_error_metadata(payload.as_ref())
  450         -
}
  451         -
  452    412   
pub(crate) mod shape_accelerate_configuration;
  453    413   
  454    414   
pub(crate) mod shape_access_control_policy;
  455    415   
  456    416   
pub(crate) mod shape_analytics_configuration;
  457    417   
  458    418   
pub(crate) mod shape_bucket_lifecycle_configuration;
  459    419   
  460    420   
pub(crate) mod shape_bucket_logging_status;
  461    421   
  462    422   
pub(crate) mod shape_buckets;
  463    423   
  464    424   
pub(crate) mod shape_checksum;
  465    425   
  466    426   
pub(crate) mod shape_common_prefix;
  467    427   
  468    428   
pub(crate) mod shape_completed_multipart_upload;
  469    429   
  470    430   
pub(crate) mod shape_cors_configuration;
  471    431   
  472    432   
pub(crate) mod shape_cors_rule;
  473    433   
  474    434   
pub(crate) mod shape_create_bucket_configuration;
  475    435   
  476    436   
pub(crate) mod shape_delete;
  477    437   
  478    438   
pub(crate) mod shape_delete_marker_entry;
  479    439   
  480    440   
pub(crate) mod shape_deleted_object;
  481    441   
  482    442   
pub(crate) mod shape_error;
  483    443   
  484    444   
pub(crate) mod shape_error_document;
  485    445   
  486    446   
pub(crate) mod shape_event_bridge_configuration;
  487    447   
  488    448   
pub(crate) mod shape_get_object_attributes_parts;
  489    449   
  490    450   
pub(crate) mod shape_grants;
  491    451   
  492    452   
pub(crate) mod shape_index_document;
  493    453   
  494    454   
pub(crate) mod shape_initiator;
  495    455   
  496         -
pub(crate) mod shape_input_serialization;
  497         -
  498    456   
pub(crate) mod shape_intelligent_tiering_configuration;
  499    457   
  500    458   
pub(crate) mod shape_inventory_configuration;
  501    459   
  502         -
pub(crate) mod shape_inventory_table_configuration_updates;
  503         -
  504         -
pub(crate) mod shape_journal_table_configuration_updates;
  505         -
  506    460   
pub(crate) mod shape_lambda_function_configuration;
  507    461   
  508    462   
pub(crate) mod shape_lifecycle_rule;
  509    463   
  510    464   
pub(crate) mod shape_logging_enabled;
  511    465   
  512         -
pub(crate) mod shape_metadata_configuration;
  513         -
  514    466   
pub(crate) mod shape_metadata_table_configuration;
  515    467   
  516    468   
pub(crate) mod shape_metrics_configuration;
  517    469   
  518    470   
pub(crate) mod shape_multipart_upload;
  519    471   
  520    472   
pub(crate) mod shape_notification_configuration;
  521    473   
  522    474   
pub(crate) mod shape_object;
  523    475   
  524    476   
pub(crate) mod shape_object_lock_configuration;
  525    477   
  526    478   
pub(crate) mod shape_object_lock_legal_hold;
  527    479   
  528    480   
pub(crate) mod shape_object_lock_retention;
  529    481   
  530    482   
pub(crate) mod shape_object_version;
  531    483   
  532         -
pub(crate) mod shape_output_serialization;
  533         -
  534    484   
pub(crate) mod shape_owner;
  535    485   
  536    486   
pub(crate) mod shape_ownership_controls;
  537    487   
  538    488   
pub(crate) mod shape_part;
  539    489   
  540    490   
pub(crate) mod shape_public_access_block_configuration;
  541    491   
  542    492   
pub(crate) mod shape_queue_configuration;
  543    493   
  544    494   
pub(crate) mod shape_redirect_all_requests_to;
  545    495   
  546    496   
pub(crate) mod shape_replication_configuration;
  547    497   
  548    498   
pub(crate) mod shape_request_payment_configuration;
  549    499   
  550         -
pub(crate) mod shape_request_progress;
  551         -
  552    500   
pub(crate) mod shape_restore_request;
  553    501   
  554    502   
pub(crate) mod shape_routing_rules;
  555    503   
  556         -
pub(crate) mod shape_scan_range;
  557         -
  558    504   
pub(crate) mod shape_server_side_encryption_configuration;
  559    505   
  560    506   
pub(crate) mod shape_session_credentials;
  561    507   
  562    508   
pub(crate) mod shape_tag_set;
  563    509   
  564    510   
pub(crate) mod shape_tagging;
  565    511   
  566    512   
pub(crate) mod shape_topic_configuration;
  567    513   
  568    514   
pub(crate) mod shape_versioning_configuration;
  569    515   
  570    516   
pub(crate) mod shape_website_configuration;
  571    517   
  572    518   
pub(crate) mod shape_abort_incomplete_multipart_upload;
  573    519   
  574    520   
pub(crate) mod shape_analytics_filter;
  575    521   
  576    522   
pub(crate) mod shape_bucket;
  577    523   
  578    524   
pub(crate) mod shape_bucket_info;
  579    525   
  580    526   
pub(crate) mod shape_completed_part;
  581    527   
  582    528   
pub(crate) mod shape_copy_object_result;
  583    529   
  584    530   
pub(crate) mod shape_copy_part_result;
  585    531   
  586         -
pub(crate) mod shape_csv_input;
  587         -
  588         -
pub(crate) mod shape_csv_output;
  589         -
  590         -
pub(crate) mod shape_get_bucket_metadata_configuration_result;
  591         -
  592    532   
pub(crate) mod shape_get_bucket_metadata_table_configuration_result;
  593    533   
  594    534   
pub(crate) mod shape_glacier_job_parameters;
  595    535   
  596    536   
pub(crate) mod shape_grant;
  597    537   
  598    538   
pub(crate) mod shape_intelligent_tiering_filter;
  599    539   
  600    540   
pub(crate) mod shape_inventory_destination;
  601    541   
  602    542   
pub(crate) mod shape_inventory_filter;
  603    543   
  604    544   
pub(crate) mod shape_inventory_optional_fields;
  605    545   
  606    546   
pub(crate) mod shape_inventory_schedule;
  607    547   
  608         -
pub(crate) mod shape_inventory_table_configuration;
  609         -
  610         -
pub(crate) mod shape_journal_table_configuration;
  611         -
  612         -
pub(crate) mod shape_json_input;
  613         -
  614         -
pub(crate) mod shape_json_output;
  615         -
  616    548   
pub(crate) mod shape_lifecycle_expiration;
  617    549   
  618    550   
pub(crate) mod shape_lifecycle_rule_filter;
  619    551   
  620    552   
pub(crate) mod shape_location_info;
  621    553   
  622         -
pub(crate) mod shape_metadata_table_encryption_configuration;
  623         -
  624    554   
pub(crate) mod shape_metrics_filter;
  625    555   
  626    556   
pub(crate) mod shape_noncurrent_version_expiration;
  627    557   
  628    558   
pub(crate) mod shape_noncurrent_version_transition;
  629    559   
  630    560   
pub(crate) mod shape_notification_configuration_filter;
  631    561   
  632    562   
pub(crate) mod shape_object_identifier;
  633    563   
  634    564   
pub(crate) mod shape_object_lock_rule;
  635    565   
  636    566   
pub(crate) mod shape_object_part;
  637    567   
  638    568   
pub(crate) mod shape_output_location;
  639    569   
  640    570   
pub(crate) mod shape_ownership_controls_rule;
  641    571   
  642    572   
pub(crate) mod shape_policy_status;
  643    573   
  644         -
pub(crate) mod shape_progress_event;
  645         -
  646         -
pub(crate) mod shape_record_expiration;
  647         -
  648    574   
pub(crate) mod shape_replication_rule;
  649    575   
  650    576   
pub(crate) mod shape_restore_status;
  651    577   
  652    578   
pub(crate) mod shape_routing_rule;
  653    579   
  654    580   
pub(crate) mod shape_s3_tables_destination;
  655    581   
  656         -
pub(crate) mod shape_select_parameters;
  657         -
  658    582   
pub(crate) mod shape_server_side_encryption_rule;
  659    583   
  660         -
pub(crate) mod shape_stats_event;
  661         -
  662    584   
pub(crate) mod shape_storage_class_analysis;
  663    585   
  664    586   
pub(crate) mod shape_tag;
  665    587   
  666    588   
pub(crate) mod shape_target_grants;
  667    589   
  668    590   
pub(crate) mod shape_target_object_key_format;
  669    591   
  670    592   
pub(crate) mod shape_tiering;
  671    593   
  672    594   
pub(crate) mod shape_transition;
  673    595   
  674    596   
pub(crate) mod shape_analytics_and_operator;
  675    597   
  676    598   
pub(crate) mod shape_condition;
  677    599   
  678    600   
pub(crate) mod shape_default_retention;
  679    601   
  680    602   
pub(crate) mod shape_delete_marker_replication;
  681    603   
  682    604   
pub(crate) mod shape_destination;
  683    605   
  684    606   
pub(crate) mod shape_error_details;
  685    607   
  686    608   
pub(crate) mod shape_existing_object_replication;
  687    609   
  688    610   
pub(crate) mod shape_grantee;
  689    611   
  690    612   
pub(crate) mod shape_intelligent_tiering_and_operator;
  691    613   
  692    614   
pub(crate) mod shape_inventory_s3_bucket_destination;
  693    615   
  694    616   
pub(crate) mod shape_lifecycle_rule_and_operator;
  695    617   
  696         -
pub(crate) mod shape_metadata_configuration_result;
  697         -
  698    618   
pub(crate) mod shape_metadata_table_configuration_result;
  699    619   
  700    620   
pub(crate) mod shape_metrics_and_operator;
  701    621   
  702    622   
pub(crate) mod shape_partitioned_prefix;
  703    623   
  704         -
pub(crate) mod shape_progress;
  705         -
  706    624   
pub(crate) mod shape_redirect;
  707    625   
  708    626   
pub(crate) mod shape_replication_rule_filter;
  709    627   
  710    628   
pub(crate) mod shape_s3_key_filter;
  711    629   
  712    630   
pub(crate) mod shape_s3_location;
  713    631   
  714    632   
pub(crate) mod shape_server_side_encryption_by_default;
  715    633   
  716    634   
pub(crate) mod shape_simple_prefix;
  717    635   
  718    636   
pub(crate) mod shape_source_selection_criteria;
  719    637   
  720         -
pub(crate) mod shape_stats;
  721         -
  722    638   
pub(crate) mod shape_storage_class_analysis_data_export;
  723    639   
  724    640   
pub(crate) mod shape_target_grant;
  725    641   
  726    642   
pub(crate) mod shape_access_control_translation;
  727    643   
  728    644   
pub(crate) mod shape_analytics_export_destination;
  729    645   
  730         -
pub(crate) mod shape_destination_result;
  731         -
  732    646   
pub(crate) mod shape_encryption;
  733    647   
  734    648   
pub(crate) mod shape_encryption_configuration;
  735    649   
  736    650   
pub(crate) mod shape_filter_rule;
  737    651   
  738    652   
pub(crate) mod shape_inventory_encryption;
  739    653   
  740         -
pub(crate) mod shape_inventory_table_configuration_result;
  741         -
  742         -
pub(crate) mod shape_journal_table_configuration_result;
  743         -
  744    654   
pub(crate) mod shape_metadata_entry;
  745    655   
  746    656   
pub(crate) mod shape_metrics;
  747    657   
  748    658   
pub(crate) mod shape_replica_modifications;
  749    659   
  750    660   
pub(crate) mod shape_replication_rule_and_operator;
  751    661   
  752    662   
pub(crate) mod shape_replication_time;
  753    663   

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_bucket.rs

@@ -20,20 +67,54 @@
   40     40   
                        Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
   41     41   
                            ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   42     42   
                            .into()
   43     43   
                        )
   44     44   
                        ?
   45     45   
                    )
   46     46   
                ;
   47     47   
                builder = builder.set_bucket_region(var_3);
   48     48   
            }
   49     49   
            ,
   50         -
            s if s.matches("BucketArn") /* BucketArn com.amazonaws.s3#Bucket$BucketArn */ =>  {
   51         -
                let var_4 =
   52         -
                    Some(
   53         -
                        Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
   54         -
                            ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   55         -
                            .into()
   56         -
                        )
   57         -
                        ?
   58         -
                    )
   59         -
                ;
   60         -
                builder = builder.set_bucket_arn(var_4);
   61         -
            }
   62         -
            ,
   63     50   
            _ => {}
   64     51   
        }
   65     52   
    }
   66     53   
    Ok(builder.build())
   67     54   
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_create_bucket.rs

@@ -34,34 +98,93 @@
   54     54   
   55     55   
#[allow(clippy::unnecessary_wraps)]
   56     56   
pub fn de_create_bucket_http_response(
   57     57   
    _response_status: u16,
   58     58   
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   59     59   
    _response_body: &[u8],
   60     60   
) -> std::result::Result<crate::operation::create_bucket::CreateBucketOutput, crate::operation::create_bucket::CreateBucketError> {
   61     61   
    Ok({
   62     62   
        #[allow(unused_mut)]
   63     63   
        let mut output = crate::operation::create_bucket::builders::CreateBucketOutputBuilder::default();
   64         -
        output = output.set_bucket_arn(
   65         -
            crate::protocol_serde::shape_create_bucket_output::de_bucket_arn_header(_response_headers).map_err(|_| {
   66         -
                crate::operation::create_bucket::CreateBucketError::unhandled("Failed to parse BucketArn from header `x-amz-bucket-arn")
   67         -
            })?,
   68         -
        );
   69     64   
        output = output.set_location(
   70     65   
            crate::protocol_serde::shape_create_bucket_output::de_location_header(_response_headers)
   71     66   
                .map_err(|_| crate::operation::create_bucket::CreateBucketError::unhandled("Failed to parse Location from header `Location"))?,
   72     67   
        );
   73     68   
        output._set_extended_request_id(crate::s3_request_id::RequestIdExt::extended_request_id(_response_headers).map(str::to_string));
   74     69   
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   75     70   
        output.build()
   76     71   
    })
   77     72   
}
   78     73   

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_create_bucket_configuration.rs

@@ -1,1 +31,22 @@
   10     10   
        inner_writer.data(var_1.as_str());
   11     11   
    }
   12     12   
    if let Some(var_2) = &input.location {
   13     13   
        let inner_writer = scope.start_el("Location");
   14     14   
        crate::protocol_serde::shape_location_info::ser_location_info(var_2, inner_writer)?
   15     15   
    }
   16     16   
    if let Some(var_3) = &input.bucket {
   17     17   
        let inner_writer = scope.start_el("Bucket");
   18     18   
        crate::protocol_serde::shape_bucket_info::ser_bucket_info(var_3, inner_writer)?
   19     19   
    }
   20         -
    if let Some(var_4) = &input.tags {
   21         -
        let mut inner_writer = scope.start_el("Tags").finish();
   22         -
        for list_item_5 in var_4 {
   23         -
            {
   24         -
                let inner_writer = inner_writer.start_el("Tag");
   25         -
                crate::protocol_serde::shape_tag::ser_tag(list_item_5, inner_writer)?
   26         -
            }
   27         -
        }
   28         -
    }
   29     20   
    scope.finish();
   30     21   
    Ok(())
   31     22   
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_create_bucket_metadata_configuration.rs

@@ -1,0 +76,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
#[allow(clippy::unnecessary_wraps)]
    3         -
pub fn de_create_bucket_metadata_configuration_http_error(
    4         -
    _response_status: u16,
    5         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
    6         -
    _response_body: &[u8],
    7         -
) -> std::result::Result<
    8         -
    crate::operation::create_bucket_metadata_configuration::CreateBucketMetadataConfigurationOutput,
    9         -
    crate::operation::create_bucket_metadata_configuration::CreateBucketMetadataConfigurationError,
   10         -
> {
   11         -
    #[allow(unused_mut)]
   12         -
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
   13         -
        .map_err(crate::operation::create_bucket_metadata_configuration::CreateBucketMetadataConfigurationError::unhandled)?;
   14         -
    generic_builder = crate::s3_request_id::apply_extended_request_id(generic_builder, _response_headers);
   15         -
    generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers);
   16         -
    let generic = generic_builder.build();
   17         -
    Err(crate::operation::create_bucket_metadata_configuration::CreateBucketMetadataConfigurationError::generic(generic))
   18         -
}
   19         -
   20         -
#[allow(clippy::unnecessary_wraps)]
   21         -
pub fn de_create_bucket_metadata_configuration_http_response(
   22         -
    _response_status: u16,
   23         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   24         -
    _response_body: &[u8],
   25         -
) -> std::result::Result<
   26         -
    crate::operation::create_bucket_metadata_configuration::CreateBucketMetadataConfigurationOutput,
   27         -
    crate::operation::create_bucket_metadata_configuration::CreateBucketMetadataConfigurationError,
   28         -
> {
   29         -
    Ok({
   30         -
        #[allow(unused_mut)]
   31         -
        let mut output = crate::operation::create_bucket_metadata_configuration::builders::CreateBucketMetadataConfigurationOutputBuilder::default();
   32         -
        output._set_extended_request_id(crate::s3_request_id::RequestIdExt::extended_request_id(_response_headers).map(str::to_string));
   33         -
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   34         -
        output.build()
   35         -
    })
   36         -
}
   37         -
   38         -
pub fn ser_create_bucket_metadata_configuration_headers(
   39         -
    input: &crate::operation::create_bucket_metadata_configuration::CreateBucketMetadataConfigurationInput,
   40         -
    mut builder: ::http::request::Builder,
   41         -
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   42         -
    if let ::std::option::Option::Some(inner_1) = &input.content_md5 {
   43         -
        let formatted_2 = inner_1.as_str();
   44         -
        let header_value = formatted_2;
   45         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   46         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   47         -
                "content_md5",
   48         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   49         -
            )
   50         -
        })?;
   51         -
        builder = builder.header("Content-MD5", header_value);
   52         -
    }
   53         -
    if let ::std::option::Option::Some(inner_3) = &input.checksum_algorithm {
   54         -
        let formatted_4 = inner_3.as_str();
   55         -
        let header_value = formatted_4;
   56         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   57         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   58         -
                "checksum_algorithm",
   59         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   60         -
            )
   61         -
        })?;
   62         -
        builder = builder.header("x-amz-sdk-checksum-algorithm", header_value);
   63         -
    }
   64         -
    if let ::std::option::Option::Some(inner_5) = &input.expected_bucket_owner {
   65         -
        let formatted_6 = inner_5.as_str();
   66         -
        let header_value = formatted_6;
   67         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   68         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   69         -
                "expected_bucket_owner",
   70         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   71         -
            )
   72         -
        })?;
   73         -
        builder = builder.header("x-amz-expected-bucket-owner", header_value);
   74         -
    }
   75         -
    Ok(builder)
   76         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_create_bucket_metadata_configuration_input.rs

@@ -1,0 +25,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_metadata_configuration_http_payload(
    3         -
    payload: &::std::option::Option<crate::types::MetadataConfiguration>,
    4         -
) -> ::std::result::Result<::std::vec::Vec<u8>, ::aws_smithy_types::error::operation::BuildError> {
    5         -
    let payload = match payload.as_ref() {
    6         -
        Some(t) => t,
    7         -
        None => return Ok(crate::protocol_serde::rest_xml_unset_struct_payload()),
    8         -
    };
    9         -
    Ok(crate::protocol_serde::shape_create_bucket_metadata_configuration_input::ser_metadata_configuration_payload(payload)?)
   10         -
}
   11         -
   12         -
pub fn ser_metadata_configuration_payload(
   13         -
    input: &crate::types::MetadataConfiguration,
   14         -
) -> std::result::Result<std::vec::Vec<u8>, ::aws_smithy_types::error::operation::SerializationError> {
   15         -
    let mut out = String::new();
   16         -
    {
   17         -
        let mut writer = ::aws_smithy_xml::encode::XmlWriter::new(&mut out);
   18         -
        #[allow(unused_mut)]
   19         -
        let mut root = writer
   20         -
            .start_el("MetadataConfiguration")
   21         -
            .write_ns("http://s3.amazonaws.com/doc/2006-03-01/", None);
   22         -
        crate::protocol_serde::shape_metadata_configuration::ser_metadata_configuration(input, root)?
   23         -
    }
   24         -
    Ok(out.into_bytes())
   25         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_create_bucket_output.rs

@@ -1,1 +14,7 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_bucket_arn_header(
    3         -
    header_map: &::aws_smithy_runtime_api::http::Headers,
    4         -
) -> ::std::result::Result<::std::option::Option<::std::string::String>, ::aws_smithy_http::header::ParseError> {
    5         -
    let headers = header_map.get_all("x-amz-bucket-arn");
    6         -
    ::aws_smithy_http::header::one_or_none(headers)
    7         -
}
    8         -
    9      2   
pub(crate) fn de_location_header(
   10      3   
    header_map: &::aws_smithy_runtime_api::http::Headers,
   11      4   
) -> ::std::result::Result<::std::option::Option<::std::string::String>, ::aws_smithy_http::header::ParseError> {
   12      5   
    let headers = header_map.get_all("Location");
   13      6   
    ::aws_smithy_http::header::one_or_none(headers)
   14      7   
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_csv_input.rs

@@ -1,0 +38,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_csv_input(
    3         -
    input: &crate::types::CsvInput,
    4         -
    writer: ::aws_smithy_xml::encode::ElWriter,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    #[allow(unused_mut)]
    7         -
    let mut scope = writer.finish();
    8         -
    if let Some(var_1) = &input.file_header_info {
    9         -
        let mut inner_writer = scope.start_el("FileHeaderInfo").finish();
   10         -
        inner_writer.data(var_1.as_str());
   11         -
    }
   12         -
    if let Some(var_2) = &input.comments {
   13         -
        let mut inner_writer = scope.start_el("Comments").finish();
   14         -
        inner_writer.data(var_2.as_str());
   15         -
    }
   16         -
    if let Some(var_3) = &input.quote_escape_character {
   17         -
        let mut inner_writer = scope.start_el("QuoteEscapeCharacter").finish();
   18         -
        inner_writer.data(var_3.as_str());
   19         -
    }
   20         -
    if let Some(var_4) = &input.record_delimiter {
   21         -
        let mut inner_writer = scope.start_el("RecordDelimiter").finish();
   22         -
        inner_writer.data(var_4.as_str());
   23         -
    }
   24         -
    if let Some(var_5) = &input.field_delimiter {
   25         -
        let mut inner_writer = scope.start_el("FieldDelimiter").finish();
   26         -
        inner_writer.data(var_5.as_str());
   27         -
    }
   28         -
    if let Some(var_6) = &input.quote_character {
   29         -
        let mut inner_writer = scope.start_el("QuoteCharacter").finish();
   30         -
        inner_writer.data(var_6.as_str());
   31         -
    }
   32         -
    if let Some(var_7) = &input.allow_quoted_record_delimiter {
   33         -
        let mut inner_writer = scope.start_el("AllowQuotedRecordDelimiter").finish();
   34         -
        inner_writer.data(::aws_smithy_types::primitive::Encoder::from(*var_7).encode());
   35         -
    }
   36         -
    scope.finish();
   37         -
    Ok(())
   38         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_csv_output.rs

@@ -1,0 +30,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_csv_output(
    3         -
    input: &crate::types::CsvOutput,
    4         -
    writer: ::aws_smithy_xml::encode::ElWriter,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    #[allow(unused_mut)]
    7         -
    let mut scope = writer.finish();
    8         -
    if let Some(var_1) = &input.quote_fields {
    9         -
        let mut inner_writer = scope.start_el("QuoteFields").finish();
   10         -
        inner_writer.data(var_1.as_str());
   11         -
    }
   12         -
    if let Some(var_2) = &input.quote_escape_character {
   13         -
        let mut inner_writer = scope.start_el("QuoteEscapeCharacter").finish();
   14         -
        inner_writer.data(var_2.as_str());
   15         -
    }
   16         -
    if let Some(var_3) = &input.record_delimiter {
   17         -
        let mut inner_writer = scope.start_el("RecordDelimiter").finish();
   18         -
        inner_writer.data(var_3.as_str());
   19         -
    }
   20         -
    if let Some(var_4) = &input.field_delimiter {
   21         -
        let mut inner_writer = scope.start_el("FieldDelimiter").finish();
   22         -
        inner_writer.data(var_4.as_str());
   23         -
    }
   24         -
    if let Some(var_5) = &input.quote_character {
   25         -
        let mut inner_writer = scope.start_el("QuoteCharacter").finish();
   26         -
        inner_writer.data(var_5.as_str());
   27         -
    }
   28         -
    scope.finish();
   29         -
    Ok(())
   30         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_delete_bucket_intelligent_tiering_configuration.rs

@@ -7,7 +54,0 @@
   27     27   
    crate::operation::delete_bucket_intelligent_tiering_configuration::DeleteBucketIntelligentTieringConfigurationError,
   28     28   
> {
   29     29   
    Ok({
   30     30   
        #[allow(unused_mut)]
   31     31   
        let mut output = crate::operation::delete_bucket_intelligent_tiering_configuration::builders::DeleteBucketIntelligentTieringConfigurationOutputBuilder::default();
   32     32   
        output._set_extended_request_id(crate::s3_request_id::RequestIdExt::extended_request_id(_response_headers).map(str::to_string));
   33     33   
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   34     34   
        output.build()
   35     35   
    })
   36     36   
}
   37         -
   38         -
pub fn ser_delete_bucket_intelligent_tiering_configuration_headers(
   39         -
    input: &crate::operation::delete_bucket_intelligent_tiering_configuration::DeleteBucketIntelligentTieringConfigurationInput,
   40         -
    mut builder: ::http::request::Builder,
   41         -
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   42         -
    if let ::std::option::Option::Some(inner_1) = &input.expected_bucket_owner {
   43         -
        let formatted_2 = inner_1.as_str();
   44         -
        let header_value = formatted_2;
   45         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   46         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   47         -
                "expected_bucket_owner",
   48         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   49         -
            )
   50         -
        })?;
   51         -
        builder = builder.header("x-amz-expected-bucket-owner", header_value);
   52         -
    }
   53         -
    Ok(builder)
   54         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_delete_bucket_metadata_configuration.rs

@@ -1,0 +54,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
#[allow(clippy::unnecessary_wraps)]
    3         -
pub fn de_delete_bucket_metadata_configuration_http_error(
    4         -
    _response_status: u16,
    5         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
    6         -
    _response_body: &[u8],
    7         -
) -> std::result::Result<
    8         -
    crate::operation::delete_bucket_metadata_configuration::DeleteBucketMetadataConfigurationOutput,
    9         -
    crate::operation::delete_bucket_metadata_configuration::DeleteBucketMetadataConfigurationError,
   10         -
> {
   11         -
    #[allow(unused_mut)]
   12         -
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
   13         -
        .map_err(crate::operation::delete_bucket_metadata_configuration::DeleteBucketMetadataConfigurationError::unhandled)?;
   14         -
    generic_builder = crate::s3_request_id::apply_extended_request_id(generic_builder, _response_headers);
   15         -
    generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers);
   16         -
    let generic = generic_builder.build();
   17         -
    Err(crate::operation::delete_bucket_metadata_configuration::DeleteBucketMetadataConfigurationError::generic(generic))
   18         -
}
   19         -
   20         -
#[allow(clippy::unnecessary_wraps)]
   21         -
pub fn de_delete_bucket_metadata_configuration_http_response(
   22         -
    _response_status: u16,
   23         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   24         -
    _response_body: &[u8],
   25         -
) -> std::result::Result<
   26         -
    crate::operation::delete_bucket_metadata_configuration::DeleteBucketMetadataConfigurationOutput,
   27         -
    crate::operation::delete_bucket_metadata_configuration::DeleteBucketMetadataConfigurationError,
   28         -
> {
   29         -
    Ok({
   30         -
        #[allow(unused_mut)]
   31         -
        let mut output = crate::operation::delete_bucket_metadata_configuration::builders::DeleteBucketMetadataConfigurationOutputBuilder::default();
   32         -
        output._set_extended_request_id(crate::s3_request_id::RequestIdExt::extended_request_id(_response_headers).map(str::to_string));
   33         -
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   34         -
        output.build()
   35         -
    })
   36         -
}
   37         -
   38         -
pub fn ser_delete_bucket_metadata_configuration_headers(
   39         -
    input: &crate::operation::delete_bucket_metadata_configuration::DeleteBucketMetadataConfigurationInput,
   40         -
    mut builder: ::http::request::Builder,
   41         -
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   42         -
    if let ::std::option::Option::Some(inner_1) = &input.expected_bucket_owner {
   43         -
        let formatted_2 = inner_1.as_str();
   44         -
        let header_value = formatted_2;
   45         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   46         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   47         -
                "expected_bucket_owner",
   48         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   49         -
            )
   50         -
        })?;
   51         -
        builder = builder.header("x-amz-expected-bucket-owner", header_value);
   52         -
    }
   53         -
    Ok(builder)
   54         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_destination_result.rs

@@ -1,0 +54,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
#[allow(clippy::needless_question_mark)]
    3         -
pub fn de_destination_result(
    4         -
    decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
    5         -
) -> ::std::result::Result<crate::types::DestinationResult, ::aws_smithy_xml::decode::XmlDecodeError> {
    6         -
    #[allow(unused_mut)]
    7         -
    let mut builder = crate::types::DestinationResult::builder();
    8         -
    while let Some(mut tag) = decoder.next_tag() {
    9         -
        match tag.start_el() {
   10         -
            s if s.matches("TableBucketType") /* TableBucketType com.amazonaws.s3#DestinationResult$TableBucketType */ =>  {
   11         -
                let var_1 =
   12         -
                    Some(
   13         -
                        Result::<crate::types::S3TablesBucketType, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
   14         -
                            crate::types::S3TablesBucketType::from(
   15         -
                                ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   16         -
                            )
   17         -
                        )
   18         -
                        ?
   19         -
                    )
   20         -
                ;
   21         -
                builder = builder.set_table_bucket_type(var_1);
   22         -
            }
   23         -
            ,
   24         -
            s if s.matches("TableBucketArn") /* TableBucketArn com.amazonaws.s3#DestinationResult$TableBucketArn */ =>  {
   25         -
                let var_2 =
   26         -
                    Some(
   27         -
                        Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
   28         -
                            ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   29         -
                            .into()
   30         -
                        )
   31         -
                        ?
   32         -
                    )
   33         -
                ;
   34         -
                builder = builder.set_table_bucket_arn(var_2);
   35         -
            }
   36         -
            ,
   37         -
            s if s.matches("TableNamespace") /* TableNamespace com.amazonaws.s3#DestinationResult$TableNamespace */ =>  {
   38         -
                let var_3 =
   39         -
                    Some(
   40         -
                        Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
   41         -
                            ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   42         -
                            .into()
   43         -
                        )
   44         -
                        ?
   45         -
                    )
   46         -
                ;
   47         -
                builder = builder.set_table_namespace(var_3);
   48         -
            }
   49         -
            ,
   50         -
            _ => {}
   51         -
        }
   52         -
    }
   53         -
    Ok(builder.build())
   54         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_get_bucket_intelligent_tiering_configuration.rs

@@ -14,14 +61,0 @@
   34     34   
        output = output.set_intelligent_tiering_configuration(
   35     35   
            crate::protocol_serde::shape_get_bucket_intelligent_tiering_configuration_output::de_intelligent_tiering_configuration_payload(
   36     36   
                _response_body,
   37     37   
            )?,
   38     38   
        );
   39     39   
        output._set_extended_request_id(crate::s3_request_id::RequestIdExt::extended_request_id(_response_headers).map(str::to_string));
   40     40   
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   41     41   
        output.build()
   42     42   
    })
   43     43   
}
   44         -
   45         -
pub fn ser_get_bucket_intelligent_tiering_configuration_headers(
   46         -
    input: &crate::operation::get_bucket_intelligent_tiering_configuration::GetBucketIntelligentTieringConfigurationInput,
   47         -
    mut builder: ::http::request::Builder,
   48         -
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   49         -
    if let ::std::option::Option::Some(inner_1) = &input.expected_bucket_owner {
   50         -
        let formatted_2 = inner_1.as_str();
   51         -
        let header_value = formatted_2;
   52         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   53         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   54         -
                "expected_bucket_owner",
   55         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   56         -
            )
   57         -
        })?;
   58         -
        builder = builder.header("x-amz-expected-bucket-owner", header_value);
   59         -
    }
   60         -
    Ok(builder)
   61         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_get_bucket_metadata_configuration.rs

@@ -1,0 +59,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
#[allow(clippy::unnecessary_wraps)]
    3         -
pub fn de_get_bucket_metadata_configuration_http_error(
    4         -
    _response_status: u16,
    5         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
    6         -
    _response_body: &[u8],
    7         -
) -> std::result::Result<
    8         -
    crate::operation::get_bucket_metadata_configuration::GetBucketMetadataConfigurationOutput,
    9         -
    crate::operation::get_bucket_metadata_configuration::GetBucketMetadataConfigurationError,
   10         -
> {
   11         -
    #[allow(unused_mut)]
   12         -
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
   13         -
        .map_err(crate::operation::get_bucket_metadata_configuration::GetBucketMetadataConfigurationError::unhandled)?;
   14         -
    generic_builder = crate::s3_request_id::apply_extended_request_id(generic_builder, _response_headers);
   15         -
    generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers);
   16         -
    let generic = generic_builder.build();
   17         -
    Err(crate::operation::get_bucket_metadata_configuration::GetBucketMetadataConfigurationError::generic(generic))
   18         -
}
   19         -
   20         -
#[allow(clippy::unnecessary_wraps)]
   21         -
pub fn de_get_bucket_metadata_configuration_http_response(
   22         -
    _response_status: u16,
   23         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   24         -
    _response_body: &[u8],
   25         -
) -> std::result::Result<
   26         -
    crate::operation::get_bucket_metadata_configuration::GetBucketMetadataConfigurationOutput,
   27         -
    crate::operation::get_bucket_metadata_configuration::GetBucketMetadataConfigurationError,
   28         -
> {
   29         -
    Ok({
   30         -
        #[allow(unused_mut)]
   31         -
        let mut output = crate::operation::get_bucket_metadata_configuration::builders::GetBucketMetadataConfigurationOutputBuilder::default();
   32         -
        output = output.set_get_bucket_metadata_configuration_result(
   33         -
            crate::protocol_serde::shape_get_bucket_metadata_configuration_output::de_get_bucket_metadata_configuration_result_payload(
   34         -
                _response_body,
   35         -
            )?,
   36         -
        );
   37         -
        output._set_extended_request_id(crate::s3_request_id::RequestIdExt::extended_request_id(_response_headers).map(str::to_string));
   38         -
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   39         -
        output.build()
   40         -
    })
   41         -
}
   42         -
   43         -
pub fn ser_get_bucket_metadata_configuration_headers(
   44         -
    input: &crate::operation::get_bucket_metadata_configuration::GetBucketMetadataConfigurationInput,
   45         -
    mut builder: ::http::request::Builder,
   46         -
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   47         -
    if let ::std::option::Option::Some(inner_1) = &input.expected_bucket_owner {
   48         -
        let formatted_2 = inner_1.as_str();
   49         -
        let header_value = formatted_2;
   50         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   51         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   52         -
                "expected_bucket_owner",
   53         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   54         -
            )
   55         -
        })?;
   56         -
        builder = builder.header("x-amz-expected-bucket-owner", header_value);
   57         -
    }
   58         -
    Ok(builder)
   59         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_get_bucket_metadata_configuration_output.rs

@@ -1,0 +29,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_get_bucket_metadata_configuration_result_payload(
    3         -
    body: &[u8],
    4         -
) -> std::result::Result<
    5         -
    ::std::option::Option<crate::types::GetBucketMetadataConfigurationResult>,
    6         -
    crate::operation::get_bucket_metadata_configuration::GetBucketMetadataConfigurationError,
    7         -
> {
    8         -
    (!body.is_empty())
    9         -
        .then(|| {
   10         -
            crate::protocol_serde::shape_get_bucket_metadata_configuration_output::de_get_bucket_metadata_configuration_result(body)
   11         -
                .map_err(crate::operation::get_bucket_metadata_configuration::GetBucketMetadataConfigurationError::unhandled)
   12         -
        })
   13         -
        .transpose()
   14         -
}
   15         -
   16         -
pub fn de_get_bucket_metadata_configuration_result(
   17         -
    inp: &[u8],
   18         -
) -> std::result::Result<crate::types::GetBucketMetadataConfigurationResult, ::aws_smithy_xml::decode::XmlDecodeError> {
   19         -
    let mut doc = ::aws_smithy_xml::decode::Document::try_from(inp)?;
   20         -
    #[allow(unused_mut)]
   21         -
    let mut decoder = doc.root_element()?;
   22         -
    let start_el = decoder.start_el();
   23         -
    if !(start_el.matches("GetBucketMetadataConfigurationResult")) {
   24         -
        return Err(::aws_smithy_xml::decode::XmlDecodeError::custom(format!(
   25         -
            "invalid root, expected GetBucketMetadataConfigurationResult got {start_el:?}"
   26         -
        )));
   27         -
    }
   28         -
    crate::protocol_serde::shape_get_bucket_metadata_configuration_result::de_get_bucket_metadata_configuration_result(&mut decoder)
   29         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_get_bucket_metadata_configuration_result.rs

@@ -1,0 +24,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
#[allow(clippy::needless_question_mark)]
    3         -
pub fn de_get_bucket_metadata_configuration_result(
    4         -
    decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
    5         -
) -> ::std::result::Result<crate::types::GetBucketMetadataConfigurationResult, ::aws_smithy_xml::decode::XmlDecodeError> {
    6         -
    #[allow(unused_mut)]
    7         -
    let mut builder = crate::types::GetBucketMetadataConfigurationResult::builder();
    8         -
    while let Some(mut tag) = decoder.next_tag() {
    9         -
        match tag.start_el() {
   10         -
            s if s.matches("MetadataConfigurationResult") /* MetadataConfigurationResult com.amazonaws.s3#GetBucketMetadataConfigurationResult$MetadataConfigurationResult */ =>  {
   11         -
                let var_1 =
   12         -
                    Some(
   13         -
                        crate::protocol_serde::shape_metadata_configuration_result::de_metadata_configuration_result(&mut tag)
   14         -
                        ?
   15         -
                    )
   16         -
                ;
   17         -
                builder = builder.set_metadata_configuration_result(var_1);
   18         -
            }
   19         -
            ,
   20         -
            _ => {}
   21         -
        }
   22         -
    }
   23         -
    Ok(crate::serde_util::get_bucket_metadata_configuration_result_correct_errors(builder).build())
   24         -
}