AWS SDK

AWS SDK

rev. dc1b11a614d928cff165eac12e20d37ae979d6cc

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   
@@ -262,254 +764,678 @@
  282    274   
pub(crate) mod shape_put_object_retention_input;
  283    275   
  284    276   
pub(crate) mod shape_put_object_tagging;
  285    277   
  286    278   
pub(crate) mod shape_put_object_tagging_input;
  287    279   
  288    280   
pub(crate) mod shape_put_public_access_block;
  289    281   
  290    282   
pub(crate) mod shape_put_public_access_block_input;
  291    283   
  292         -
pub(crate) mod shape_rename_object;
  293         -
  294    284   
pub(crate) mod shape_restore_object;
  295    285   
  296    286   
pub(crate) mod shape_restore_object_input;
  297    287   
  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    288   
pub(crate) mod shape_upload_part;
  309    289   
  310    290   
pub(crate) mod shape_upload_part_copy;
  311    291   
  312    292   
pub(crate) mod shape_upload_part_input;
  313    293   
  314    294   
pub(crate) mod shape_write_get_object_response;
  315    295   
  316         -
pub(crate) mod shape_write_get_object_response_input;
  317         -
  318    296   
pub(crate) mod shape_abort_multipart_upload_output;
  319    297   
  320    298   
pub(crate) mod shape_bucket_already_exists;
  321    299   
  322    300   
pub(crate) mod shape_bucket_already_owned_by_you;
  323    301   
  324    302   
pub(crate) mod shape_complete_multipart_upload_output;
  325    303   
  326    304   
pub(crate) mod shape_copy_object_output;
  327    305   
  328    306   
pub(crate) mod shape_create_bucket_output;
  329    307   
  330    308   
pub(crate) mod shape_create_multipart_upload_output;
  331    309   
  332    310   
pub(crate) mod shape_create_session_output;
  333    311   
  334    312   
pub(crate) mod shape_delete_object_output;
  335    313   
  336    314   
pub(crate) mod shape_delete_object_tagging_output;
  337    315   
  338    316   
pub(crate) mod shape_delete_objects_output;
  339    317   
  340    318   
pub(crate) mod shape_encryption_type_mismatch;
  341    319   
  342    320   
pub(crate) mod shape_get_bucket_accelerate_configuration_output;
  343    321   
  344    322   
pub(crate) mod shape_get_bucket_analytics_configuration_output;
  345    323   
  346    324   
pub(crate) mod shape_get_bucket_encryption_output;
  347    325   
  348    326   
pub(crate) mod shape_get_bucket_intelligent_tiering_configuration_output;
  349    327   
  350    328   
pub(crate) mod shape_get_bucket_inventory_configuration_output;
  351    329   
  352    330   
pub(crate) mod shape_get_bucket_lifecycle_configuration_output;
  353    331   
  354         -
pub(crate) mod shape_get_bucket_metadata_configuration_output;
  355         -
  356    332   
pub(crate) mod shape_get_bucket_metadata_table_configuration_output;
  357    333   
  358    334   
pub(crate) mod shape_get_bucket_metrics_configuration_output;
  359    335   
  360    336   
pub(crate) mod shape_get_bucket_ownership_controls_output;
  361    337   
  362    338   
pub(crate) mod shape_get_bucket_policy_output;
  363    339   
  364    340   
pub(crate) mod shape_get_bucket_policy_status_output;
  365    341   
  366    342   
pub(crate) mod shape_get_bucket_replication_output;
  367    343   
  368    344   
pub(crate) mod shape_get_object_acl_output;
  369    345   
  370    346   
pub(crate) mod shape_get_object_attributes_output;
  371    347   
  372    348   
pub(crate) mod shape_get_object_legal_hold_output;
  373    349   
  374    350   
pub(crate) mod shape_get_object_lock_configuration_output;
  375    351   
  376    352   
pub(crate) mod shape_get_object_output;
  377    353   
  378    354   
pub(crate) mod shape_get_object_retention_output;
  379    355   
  380    356   
pub(crate) mod shape_get_object_tagging_output;
  381    357   
  382    358   
pub(crate) mod shape_get_object_torrent_output;
  383    359   
  384    360   
pub(crate) mod shape_get_public_access_block_output;
  385    361   
  386    362   
pub(crate) mod shape_head_bucket_output;
  387    363   
  388    364   
pub(crate) mod shape_head_object_output;
  389    365   
  390         -
pub(crate) mod shape_idempotency_parameter_mismatch;
  391         -
  392    366   
pub(crate) mod shape_invalid_object_state;
  393    367   
  394    368   
pub(crate) mod shape_invalid_request;
  395    369   
  396    370   
pub(crate) mod shape_invalid_write_offset;
  397    371   
  398    372   
pub(crate) mod shape_list_multipart_uploads_output;
  399    373   
  400    374   
pub(crate) mod shape_list_object_versions_output;
  401    375   
  402    376   
pub(crate) mod shape_list_objects_output;
  403    377   
  404    378   
pub(crate) mod shape_list_objects_v2_output;
  405    379   
  406    380   
pub(crate) mod shape_list_parts_output;
  407    381   
  408    382   
pub(crate) mod shape_no_such_bucket;
  409    383   
  410    384   
pub(crate) mod shape_no_such_key;
  411    385   
  412    386   
pub(crate) mod shape_no_such_upload;
  413    387   
  414    388   
pub(crate) mod shape_not_found;
  415    389   
  416    390   
pub(crate) mod shape_object_already_in_active_tier_error;
  417    391   
  418    392   
pub(crate) mod shape_object_not_in_active_tier_error;
  419    393   
  420    394   
pub(crate) mod shape_put_bucket_lifecycle_configuration_output;
  421    395   
  422    396   
pub(crate) mod shape_put_object_acl_output;
  423    397   
  424    398   
pub(crate) mod shape_put_object_legal_hold_output;
  425    399   
  426    400   
pub(crate) mod shape_put_object_lock_configuration_output;
  427    401   
  428    402   
pub(crate) mod shape_put_object_output;
  429    403   
  430    404   
pub(crate) mod shape_put_object_retention_output;
  431    405   
  432    406   
pub(crate) mod shape_put_object_tagging_output;
  433    407   
  434    408   
pub(crate) mod shape_restore_object_output;
  435    409   
  436         -
pub(crate) mod shape_select_object_content_input;
  437         -
  438         -
pub(crate) mod shape_select_object_content_output;
  439         -
  440    410   
pub(crate) mod shape_too_many_parts;
  441    411   
  442    412   
pub(crate) mod shape_upload_part_copy_output;
  443    413   
  444    414   
pub(crate) mod shape_upload_part_output;
  445    415   
  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    416   
pub(crate) mod shape_accelerate_configuration;
  453    417   
  454    418   
pub(crate) mod shape_access_control_policy;
  455    419   
  456    420   
pub(crate) mod shape_analytics_configuration;
  457    421   
  458    422   
pub(crate) mod shape_bucket_lifecycle_configuration;
  459    423   
  460    424   
pub(crate) mod shape_bucket_logging_status;
  461    425   
  462    426   
pub(crate) mod shape_buckets;
  463    427   
  464    428   
pub(crate) mod shape_checksum;
  465    429   
  466    430   
pub(crate) mod shape_common_prefix;
  467    431   
  468    432   
pub(crate) mod shape_completed_multipart_upload;
  469    433   
  470    434   
pub(crate) mod shape_cors_configuration;
  471    435   
  472    436   
pub(crate) mod shape_cors_rule;
  473    437   
  474    438   
pub(crate) mod shape_create_bucket_configuration;
  475    439   
  476    440   
pub(crate) mod shape_delete;
  477    441   
  478    442   
pub(crate) mod shape_delete_marker_entry;
  479    443   
  480    444   
pub(crate) mod shape_deleted_object;
  481    445   
  482    446   
pub(crate) mod shape_error;
  483    447   
  484    448   
pub(crate) mod shape_error_document;
  485    449   
  486    450   
pub(crate) mod shape_event_bridge_configuration;
  487    451   
  488    452   
pub(crate) mod shape_get_object_attributes_parts;
  489    453   
  490    454   
pub(crate) mod shape_grants;
  491    455   
  492    456   
pub(crate) mod shape_index_document;
  493    457   
  494    458   
pub(crate) mod shape_initiator;
  495    459   
  496         -
pub(crate) mod shape_input_serialization;
  497         -
  498    460   
pub(crate) mod shape_intelligent_tiering_configuration;
  499    461   
  500    462   
pub(crate) mod shape_inventory_configuration;
  501    463   
  502         -
pub(crate) mod shape_inventory_table_configuration_updates;
  503         -
  504         -
pub(crate) mod shape_journal_table_configuration_updates;
  505         -
  506    464   
pub(crate) mod shape_lambda_function_configuration;
  507    465   
  508    466   
pub(crate) mod shape_lifecycle_rule;
  509    467   
  510    468   
pub(crate) mod shape_logging_enabled;
  511    469   
  512         -
pub(crate) mod shape_metadata_configuration;
  513         -
  514    470   
pub(crate) mod shape_metadata_table_configuration;
  515    471   
  516    472   
pub(crate) mod shape_metrics_configuration;
  517    473   
  518    474   
pub(crate) mod shape_multipart_upload;
  519    475   
  520    476   
pub(crate) mod shape_notification_configuration;
  521    477   
  522    478   
pub(crate) mod shape_object;
  523    479   
  524    480   
pub(crate) mod shape_object_lock_configuration;
  525    481   
  526    482   
pub(crate) mod shape_object_lock_legal_hold;
  527    483   
  528    484   
pub(crate) mod shape_object_lock_retention;
  529    485   
  530    486   
pub(crate) mod shape_object_version;
  531    487   
  532         -
pub(crate) mod shape_output_serialization;
  533         -
  534    488   
pub(crate) mod shape_owner;
  535    489   
  536    490   
pub(crate) mod shape_ownership_controls;
  537    491   
  538    492   
pub(crate) mod shape_part;
  539    493   
  540    494   
pub(crate) mod shape_public_access_block_configuration;
  541    495   
  542    496   
pub(crate) mod shape_queue_configuration;
  543    497   
  544    498   
pub(crate) mod shape_redirect_all_requests_to;
  545    499   
  546    500   
pub(crate) mod shape_replication_configuration;
  547    501   
  548    502   
pub(crate) mod shape_request_payment_configuration;
  549    503   
  550         -
pub(crate) mod shape_request_progress;
  551         -
  552    504   
pub(crate) mod shape_restore_request;
  553    505   
  554    506   
pub(crate) mod shape_routing_rules;
  555    507   
  556         -
pub(crate) mod shape_scan_range;
  557         -
  558    508   
pub(crate) mod shape_server_side_encryption_configuration;
  559    509   
  560    510   
pub(crate) mod shape_session_credentials;
  561    511   
  562    512   
pub(crate) mod shape_tag_set;
  563    513   
  564    514   
pub(crate) mod shape_tagging;
  565    515   
  566    516   
pub(crate) mod shape_topic_configuration;
  567    517   
  568    518   
pub(crate) mod shape_versioning_configuration;
  569    519   
  570    520   
pub(crate) mod shape_website_configuration;
  571    521   
  572    522   
pub(crate) mod shape_abort_incomplete_multipart_upload;
  573    523   
  574    524   
pub(crate) mod shape_analytics_filter;
  575    525   
  576    526   
pub(crate) mod shape_bucket;
  577    527   
  578    528   
pub(crate) mod shape_bucket_info;
  579    529   
  580    530   
pub(crate) mod shape_completed_part;
  581    531   
  582    532   
pub(crate) mod shape_copy_object_result;
  583    533   
  584    534   
pub(crate) mod shape_copy_part_result;
  585    535   
  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    536   
pub(crate) mod shape_get_bucket_metadata_table_configuration_result;
  593    537   
  594    538   
pub(crate) mod shape_glacier_job_parameters;
  595    539   
  596    540   
pub(crate) mod shape_grant;
  597    541   
  598    542   
pub(crate) mod shape_intelligent_tiering_filter;
  599    543   
  600    544   
pub(crate) mod shape_inventory_destination;
  601    545   
  602    546   
pub(crate) mod shape_inventory_filter;
  603    547   
  604    548   
pub(crate) mod shape_inventory_optional_fields;
  605    549   
  606    550   
pub(crate) mod shape_inventory_schedule;
  607    551   
  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    552   
pub(crate) mod shape_lifecycle_expiration;
  617    553   
  618    554   
pub(crate) mod shape_lifecycle_rule_filter;
  619    555   
  620    556   
pub(crate) mod shape_location_info;
  621    557   
  622         -
pub(crate) mod shape_metadata_table_encryption_configuration;
  623         -
  624    558   
pub(crate) mod shape_metrics_filter;
  625    559   
  626    560   
pub(crate) mod shape_noncurrent_version_expiration;
  627    561   
  628    562   
pub(crate) mod shape_noncurrent_version_transition;
  629    563   
  630    564   
pub(crate) mod shape_notification_configuration_filter;
  631    565   
  632    566   
pub(crate) mod shape_object_identifier;
  633    567   
  634    568   
pub(crate) mod shape_object_lock_rule;
  635    569   
  636    570   
pub(crate) mod shape_object_part;
  637    571   
  638    572   
pub(crate) mod shape_output_location;
  639    573   
  640    574   
pub(crate) mod shape_ownership_controls_rule;
  641    575   
  642    576   
pub(crate) mod shape_policy_status;
  643    577   
  644         -
pub(crate) mod shape_progress_event;
  645         -
  646         -
pub(crate) mod shape_record_expiration;
  647         -
  648    578   
pub(crate) mod shape_replication_rule;
  649    579   
  650    580   
pub(crate) mod shape_restore_status;
  651    581   
  652    582   
pub(crate) mod shape_routing_rule;
  653    583   
  654    584   
pub(crate) mod shape_s3_tables_destination;
  655    585   
  656         -
pub(crate) mod shape_select_parameters;
  657         -
  658    586   
pub(crate) mod shape_server_side_encryption_rule;
  659    587   
  660         -
pub(crate) mod shape_stats_event;
  661         -
  662    588   
pub(crate) mod shape_storage_class_analysis;
  663    589   
  664    590   
pub(crate) mod shape_tag;
  665    591   
  666    592   
pub(crate) mod shape_target_grants;
  667    593   
  668    594   
pub(crate) mod shape_target_object_key_format;
  669    595   
  670    596   
pub(crate) mod shape_tiering;
  671    597   
  672    598   
pub(crate) mod shape_transition;
  673    599   
  674    600   
pub(crate) mod shape_analytics_and_operator;
  675    601   
  676    602   
pub(crate) mod shape_condition;
  677    603   
  678    604   
pub(crate) mod shape_default_retention;
  679    605   
  680    606   
pub(crate) mod shape_delete_marker_replication;
  681    607   
  682    608   
pub(crate) mod shape_destination;
  683    609   
  684    610   
pub(crate) mod shape_error_details;
  685    611   
  686    612   
pub(crate) mod shape_existing_object_replication;
  687    613   
  688    614   
pub(crate) mod shape_grantee;
  689    615   
  690    616   
pub(crate) mod shape_intelligent_tiering_and_operator;
  691    617   
  692    618   
pub(crate) mod shape_inventory_s3_bucket_destination;
  693    619   
  694    620   
pub(crate) mod shape_lifecycle_rule_and_operator;
  695    621   
  696         -
pub(crate) mod shape_metadata_configuration_result;
  697         -
  698    622   
pub(crate) mod shape_metadata_table_configuration_result;
  699    623   
  700    624   
pub(crate) mod shape_metrics_and_operator;
  701    625   
  702    626   
pub(crate) mod shape_partitioned_prefix;
  703    627   
  704         -
pub(crate) mod shape_progress;
  705         -
  706    628   
pub(crate) mod shape_redirect;
  707    629   
  708    630   
pub(crate) mod shape_replication_rule_filter;
  709    631   
  710    632   
pub(crate) mod shape_s3_key_filter;
  711    633   
  712    634   
pub(crate) mod shape_s3_location;
  713    635   
  714    636   
pub(crate) mod shape_server_side_encryption_by_default;
  715    637   
  716    638   
pub(crate) mod shape_simple_prefix;
  717    639   
  718    640   
pub(crate) mod shape_source_selection_criteria;
  719    641   
  720         -
pub(crate) mod shape_stats;
  721         -
  722    642   
pub(crate) mod shape_storage_class_analysis_data_export;
  723    643   
  724    644   
pub(crate) mod shape_target_grant;
  725    645   
  726    646   
pub(crate) mod shape_access_control_translation;
  727    647   
  728    648   
pub(crate) mod shape_analytics_export_destination;
  729    649   
  730         -
pub(crate) mod shape_destination_result;
  731         -
  732    650   
pub(crate) mod shape_encryption;
  733    651   
  734    652   
pub(crate) mod shape_encryption_configuration;
  735    653   
  736    654   
pub(crate) mod shape_filter_rule;
  737    655   
  738    656   
pub(crate) mod shape_inventory_encryption;
  739    657   
  740         -
pub(crate) mod shape_inventory_table_configuration_result;
  741         -
  742         -
pub(crate) mod shape_journal_table_configuration_result;
  743         -
  744    658   
pub(crate) mod shape_metadata_entry;
  745    659   
  746    660   
pub(crate) mod shape_metrics;
  747    661   
  748    662   
pub(crate) mod shape_replica_modifications;
  749    663   
  750    664   
pub(crate) mod shape_replication_rule_and_operator;
  751    665   
  752    666   
pub(crate) mod shape_replication_time;
  753    667   

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         -
}