AWS SDK

AWS SDK

rev. 32b1b3c3761061baed26023be3219639e42d7d12 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/delete_event_source_mapping/_delete_event_source_mapping_input.rs

@@ -1,1 +109,126 @@
   17     17   
    "com.amazonaws.lambda.synthetic",
   18     18   
    "DeleteEventSourceMappingInput",
   19     19   
);
   20     20   
static DELETEEVENTSOURCEMAPPINGINPUT_MEMBER_UUID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   21     21   
    ::aws_smithy_schema::ShapeId::from_static(
   22     22   
        "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingInput$UUID",
   23     23   
        "com.amazonaws.lambda.synthetic",
   24     24   
        "DeleteEventSourceMappingInput",
   25     25   
    ),
   26     26   
    ::aws_smithy_schema::ShapeType::String,
   27         -
    "uuid",
          27  +
    "UUID",
   28     28   
    0,
   29     29   
)
   30     30   
.with_http_label();
   31     31   
static DELETEEVENTSOURCEMAPPINGINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   32     32   
    DELETEEVENTSOURCEMAPPINGINPUT_SCHEMA_ID,
   33     33   
    ::aws_smithy_schema::ShapeType::Structure,
   34     34   
    &[&DELETEEVENTSOURCEMAPPINGINPUT_MEMBER_UUID],
   35         -
);
          35  +
)
          36  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          37  +
    "DELETE",
          38  +
    "/2015-03-31/event-source-mappings/{UUID}",
          39  +
    Some(202),
          40  +
));
   36     41   
impl DeleteEventSourceMappingInput {
   37     42   
    /// The schema for this shape.
   38     43   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEEVENTSOURCEMAPPINGINPUT_SCHEMA;
   39     44   
}
   40     45   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteEventSourceMappingInput {
   41     46   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   42     47   
    fn serialize_members(
   43     48   
        &self,
   44     49   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   45     50   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   46     51   
        if let Some(ref val) = self.uuid {
   47     52   
            ser.write_string(&DELETEEVENTSOURCEMAPPINGINPUT_MEMBER_UUID, val)?;
   48     53   
        }
   49     54   
        Ok(())
   50     55   
    }
   51     56   
}
   52     57   
impl DeleteEventSourceMappingInput {
   53     58   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   54         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   55         -
        deserializer: &mut D,
          59  +
    pub fn deserialize(
          60  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   56     61   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   57     62   
        #[allow(unused_variables, unused_mut)]
   58     63   
        let mut builder = Self::builder();
   59     64   
        #[allow(
   60     65   
            unused_variables,
   61     66   
            unreachable_code,
   62     67   
            clippy::single_match,
   63     68   
            clippy::match_single_binding,
   64     69   
            clippy::diverging_sub_expression
   65     70   
        )]
   66         -
        deserializer.read_struct(&DELETEEVENTSOURCEMAPPINGINPUT_SCHEMA, (), |_, member, deser| {
          71  +
        deserializer.read_struct(&DELETEEVENTSOURCEMAPPINGINPUT_SCHEMA, &mut |member, deser| {
   67     72   
            match member.member_index() {
   68     73   
                Some(0) => {
   69     74   
                    builder.uuid = Some(deser.read_string(member)?);
   70     75   
                }
   71     76   
                _ => {}
   72     77   
            }
   73     78   
            Ok(())
   74     79   
        })?;
          80  +
        builder.uuid = builder.uuid.or(Some(String::new()));
   75     81   
        builder
   76     82   
            .build()
   77     83   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   78     84   
    }
   79     85   
}
          86  +
impl DeleteEventSourceMappingInput {
          87  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          88  +
    pub fn deserialize_with_response(
          89  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          90  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          91  +
        _status: u16,
          92  +
        _body: &[u8],
          93  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          94  +
        Self::deserialize(deserializer)
          95  +
    }
          96  +
}
   80     97   
impl DeleteEventSourceMappingInput {
   81     98   
    /// Creates a new builder-style object to manufacture [`DeleteEventSourceMappingInput`](crate::operation::delete_event_source_mapping::DeleteEventSourceMappingInput).
   82     99   
    pub fn builder() -> crate::operation::delete_event_source_mapping::builders::DeleteEventSourceMappingInputBuilder {
   83    100   
        crate::operation::delete_event_source_mapping::builders::DeleteEventSourceMappingInputBuilder::default()
   84    101   
    }
   85    102   
}
   86    103   
   87    104   
/// A builder for [`DeleteEventSourceMappingInput`](crate::operation::delete_event_source_mapping::DeleteEventSourceMappingInput).
   88    105   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   89    106   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/delete_event_source_mapping/_delete_event_source_mapping_output.rs

@@ -207,207 +618,626 @@
  227    227   
    "com.amazonaws.lambda.synthetic",
  228    228   
    "DeleteEventSourceMappingOutput",
  229    229   
);
  230    230   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_UUID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  231    231   
    ::aws_smithy_schema::ShapeId::from_static(
  232    232   
        "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$UUID",
  233    233   
        "com.amazonaws.lambda.synthetic",
  234    234   
        "DeleteEventSourceMappingOutput",
  235    235   
    ),
  236    236   
    ::aws_smithy_schema::ShapeType::String,
  237         -
    "uuid",
         237  +
    "UUID",
  238    238   
    0,
  239    239   
);
  240    240   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_STARTING_POSITION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  241    241   
    ::aws_smithy_schema::ShapeId::from_static(
  242    242   
        "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$StartingPosition",
  243    243   
        "com.amazonaws.lambda.synthetic",
  244    244   
        "DeleteEventSourceMappingOutput",
  245    245   
    ),
  246    246   
    ::aws_smithy_schema::ShapeType::String,
  247         -
    "starting_position",
         247  +
    "StartingPosition",
  248    248   
    1,
  249    249   
);
  250    250   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_STARTING_POSITION_TIMESTAMP: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  251    251   
    ::aws_smithy_schema::ShapeId::from_static(
  252    252   
        "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$StartingPositionTimestamp",
  253    253   
        "com.amazonaws.lambda.synthetic",
  254    254   
        "DeleteEventSourceMappingOutput",
  255    255   
    ),
  256    256   
    ::aws_smithy_schema::ShapeType::Timestamp,
  257         -
    "starting_position_timestamp",
         257  +
    "StartingPositionTimestamp",
  258    258   
    2,
  259    259   
);
  260    260   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_BATCH_SIZE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  261    261   
    ::aws_smithy_schema::ShapeId::from_static(
  262    262   
        "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$BatchSize",
  263    263   
        "com.amazonaws.lambda.synthetic",
  264    264   
        "DeleteEventSourceMappingOutput",
  265    265   
    ),
  266    266   
    ::aws_smithy_schema::ShapeType::Integer,
  267         -
    "batch_size",
         267  +
    "BatchSize",
  268    268   
    3,
  269    269   
);
  270    270   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_MAXIMUM_BATCHING_WINDOW_IN_SECONDS: ::aws_smithy_schema::Schema =
  271    271   
    ::aws_smithy_schema::Schema::new_member(
  272    272   
        ::aws_smithy_schema::ShapeId::from_static(
  273    273   
            "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$MaximumBatchingWindowInSeconds",
  274    274   
            "com.amazonaws.lambda.synthetic",
  275    275   
            "DeleteEventSourceMappingOutput",
  276    276   
        ),
  277    277   
        ::aws_smithy_schema::ShapeType::Integer,
  278         -
        "maximum_batching_window_in_seconds",
         278  +
        "MaximumBatchingWindowInSeconds",
  279    279   
        4,
  280    280   
    );
  281    281   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_PARALLELIZATION_FACTOR: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  282    282   
    ::aws_smithy_schema::ShapeId::from_static(
  283    283   
        "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$ParallelizationFactor",
  284    284   
        "com.amazonaws.lambda.synthetic",
  285    285   
        "DeleteEventSourceMappingOutput",
  286    286   
    ),
  287    287   
    ::aws_smithy_schema::ShapeType::Integer,
  288         -
    "parallelization_factor",
         288  +
    "ParallelizationFactor",
  289    289   
    5,
  290    290   
);
  291    291   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_EVENT_SOURCE_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  292    292   
    ::aws_smithy_schema::ShapeId::from_static(
  293    293   
        "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$EventSourceArn",
  294    294   
        "com.amazonaws.lambda.synthetic",
  295    295   
        "DeleteEventSourceMappingOutput",
  296    296   
    ),
  297    297   
    ::aws_smithy_schema::ShapeType::String,
  298         -
    "event_source_arn",
         298  +
    "EventSourceArn",
  299    299   
    6,
  300    300   
);
  301    301   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_FILTER_CRITERIA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  302    302   
    ::aws_smithy_schema::ShapeId::from_static(
  303    303   
        "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$FilterCriteria",
  304    304   
        "com.amazonaws.lambda.synthetic",
  305    305   
        "DeleteEventSourceMappingOutput",
  306    306   
    ),
  307    307   
    ::aws_smithy_schema::ShapeType::Structure,
  308         -
    "filter_criteria",
         308  +
    "FilterCriteria",
  309    309   
    7,
  310    310   
);
  311    311   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_FUNCTION_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  312    312   
    ::aws_smithy_schema::ShapeId::from_static(
  313    313   
        "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$FunctionArn",
  314    314   
        "com.amazonaws.lambda.synthetic",
  315    315   
        "DeleteEventSourceMappingOutput",
  316    316   
    ),
  317    317   
    ::aws_smithy_schema::ShapeType::String,
  318         -
    "function_arn",
         318  +
    "FunctionArn",
  319    319   
    8,
  320    320   
);
  321    321   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_LAST_MODIFIED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  322    322   
    ::aws_smithy_schema::ShapeId::from_static(
  323    323   
        "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$LastModified",
  324    324   
        "com.amazonaws.lambda.synthetic",
  325    325   
        "DeleteEventSourceMappingOutput",
  326    326   
    ),
  327    327   
    ::aws_smithy_schema::ShapeType::Timestamp,
  328         -
    "last_modified",
         328  +
    "LastModified",
  329    329   
    9,
  330    330   
);
  331    331   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_LAST_PROCESSING_RESULT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  332    332   
    ::aws_smithy_schema::ShapeId::from_static(
  333    333   
        "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$LastProcessingResult",
  334    334   
        "com.amazonaws.lambda.synthetic",
  335    335   
        "DeleteEventSourceMappingOutput",
  336    336   
    ),
  337    337   
    ::aws_smithy_schema::ShapeType::String,
  338         -
    "last_processing_result",
         338  +
    "LastProcessingResult",
  339    339   
    10,
  340    340   
);
  341    341   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_STATE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  342    342   
    ::aws_smithy_schema::ShapeId::from_static(
  343    343   
        "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$State",
  344    344   
        "com.amazonaws.lambda.synthetic",
  345    345   
        "DeleteEventSourceMappingOutput",
  346    346   
    ),
  347    347   
    ::aws_smithy_schema::ShapeType::String,
  348         -
    "state",
         348  +
    "State",
  349    349   
    11,
  350    350   
);
  351    351   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_STATE_TRANSITION_REASON: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  352    352   
    ::aws_smithy_schema::ShapeId::from_static(
  353    353   
        "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$StateTransitionReason",
  354    354   
        "com.amazonaws.lambda.synthetic",
  355    355   
        "DeleteEventSourceMappingOutput",
  356    356   
    ),
  357    357   
    ::aws_smithy_schema::ShapeType::String,
  358         -
    "state_transition_reason",
         358  +
    "StateTransitionReason",
  359    359   
    12,
  360    360   
);
  361    361   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_DESTINATION_CONFIG: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  362    362   
    ::aws_smithy_schema::ShapeId::from_static(
  363    363   
        "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$DestinationConfig",
  364    364   
        "com.amazonaws.lambda.synthetic",
  365    365   
        "DeleteEventSourceMappingOutput",
  366    366   
    ),
  367    367   
    ::aws_smithy_schema::ShapeType::Structure,
  368         -
    "destination_config",
         368  +
    "DestinationConfig",
  369    369   
    13,
  370    370   
);
  371    371   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_TOPICS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  372    372   
    ::aws_smithy_schema::ShapeId::from_static(
  373    373   
        "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$Topics",
  374    374   
        "com.amazonaws.lambda.synthetic",
  375    375   
        "DeleteEventSourceMappingOutput",
  376    376   
    ),
  377    377   
    ::aws_smithy_schema::ShapeType::List,
  378         -
    "topics",
         378  +
    "Topics",
  379    379   
    14,
  380    380   
);
  381    381   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_QUEUES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  382    382   
    ::aws_smithy_schema::ShapeId::from_static(
  383    383   
        "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$Queues",
  384    384   
        "com.amazonaws.lambda.synthetic",
  385    385   
        "DeleteEventSourceMappingOutput",
  386    386   
    ),
  387    387   
    ::aws_smithy_schema::ShapeType::List,
  388         -
    "queues",
         388  +
    "Queues",
  389    389   
    15,
  390    390   
);
  391    391   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_SOURCE_ACCESS_CONFIGURATIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  392    392   
    ::aws_smithy_schema::ShapeId::from_static(
  393    393   
        "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$SourceAccessConfigurations",
  394    394   
        "com.amazonaws.lambda.synthetic",
  395    395   
        "DeleteEventSourceMappingOutput",
  396    396   
    ),
  397    397   
    ::aws_smithy_schema::ShapeType::List,
  398         -
    "source_access_configurations",
         398  +
    "SourceAccessConfigurations",
  399    399   
    16,
  400    400   
);
  401    401   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_SELF_MANAGED_EVENT_SOURCE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  402    402   
    ::aws_smithy_schema::ShapeId::from_static(
  403    403   
        "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$SelfManagedEventSource",
  404    404   
        "com.amazonaws.lambda.synthetic",
  405    405   
        "DeleteEventSourceMappingOutput",
  406    406   
    ),
  407    407   
    ::aws_smithy_schema::ShapeType::Structure,
  408         -
    "self_managed_event_source",
         408  +
    "SelfManagedEventSource",
  409    409   
    17,
  410    410   
);
  411    411   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_MAXIMUM_RECORD_AGE_IN_SECONDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  412    412   
    ::aws_smithy_schema::ShapeId::from_static(
  413    413   
        "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$MaximumRecordAgeInSeconds",
  414    414   
        "com.amazonaws.lambda.synthetic",
  415    415   
        "DeleteEventSourceMappingOutput",
  416    416   
    ),
  417    417   
    ::aws_smithy_schema::ShapeType::Integer,
  418         -
    "maximum_record_age_in_seconds",
         418  +
    "MaximumRecordAgeInSeconds",
  419    419   
    18,
  420    420   
);
  421    421   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_BISECT_BATCH_ON_FUNCTION_ERROR: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  422    422   
    ::aws_smithy_schema::ShapeId::from_static(
  423    423   
        "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$BisectBatchOnFunctionError",
  424    424   
        "com.amazonaws.lambda.synthetic",
  425    425   
        "DeleteEventSourceMappingOutput",
  426    426   
    ),
  427    427   
    ::aws_smithy_schema::ShapeType::Boolean,
  428         -
    "bisect_batch_on_function_error",
         428  +
    "BisectBatchOnFunctionError",
  429    429   
    19,
  430    430   
);
  431    431   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_MAXIMUM_RETRY_ATTEMPTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  432    432   
    ::aws_smithy_schema::ShapeId::from_static(
  433    433   
        "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$MaximumRetryAttempts",
  434    434   
        "com.amazonaws.lambda.synthetic",
  435    435   
        "DeleteEventSourceMappingOutput",
  436    436   
    ),
  437    437   
    ::aws_smithy_schema::ShapeType::Integer,
  438         -
    "maximum_retry_attempts",
         438  +
    "MaximumRetryAttempts",
  439    439   
    20,
  440    440   
);
  441    441   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_TUMBLING_WINDOW_IN_SECONDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  442    442   
    ::aws_smithy_schema::ShapeId::from_static(
  443    443   
        "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$TumblingWindowInSeconds",
  444    444   
        "com.amazonaws.lambda.synthetic",
  445    445   
        "DeleteEventSourceMappingOutput",
  446    446   
    ),
  447    447   
    ::aws_smithy_schema::ShapeType::Integer,
  448         -
    "tumbling_window_in_seconds",
         448  +
    "TumblingWindowInSeconds",
  449    449   
    21,
  450    450   
);
  451    451   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_FUNCTION_RESPONSE_TYPES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  452    452   
    ::aws_smithy_schema::ShapeId::from_static(
  453    453   
        "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$FunctionResponseTypes",
  454    454   
        "com.amazonaws.lambda.synthetic",
  455    455   
        "DeleteEventSourceMappingOutput",
  456    456   
    ),
  457    457   
    ::aws_smithy_schema::ShapeType::List,
  458         -
    "function_response_types",
         458  +
    "FunctionResponseTypes",
  459    459   
    22,
  460    460   
);
  461    461   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_AMAZON_MANAGED_KAFKA_EVENT_SOURCE_CONFIG: ::aws_smithy_schema::Schema =
  462    462   
    ::aws_smithy_schema::Schema::new_member(
  463    463   
        ::aws_smithy_schema::ShapeId::from_static(
  464    464   
            "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$AmazonManagedKafkaEventSourceConfig",
  465    465   
            "com.amazonaws.lambda.synthetic",
  466    466   
            "DeleteEventSourceMappingOutput",
  467    467   
        ),
  468    468   
        ::aws_smithy_schema::ShapeType::Structure,
  469         -
        "amazon_managed_kafka_event_source_config",
         469  +
        "AmazonManagedKafkaEventSourceConfig",
  470    470   
        23,
  471    471   
    );
  472    472   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_SELF_MANAGED_KAFKA_EVENT_SOURCE_CONFIG: ::aws_smithy_schema::Schema =
  473    473   
    ::aws_smithy_schema::Schema::new_member(
  474    474   
        ::aws_smithy_schema::ShapeId::from_static(
  475    475   
            "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$SelfManagedKafkaEventSourceConfig",
  476    476   
            "com.amazonaws.lambda.synthetic",
  477    477   
            "DeleteEventSourceMappingOutput",
  478    478   
        ),
  479    479   
        ::aws_smithy_schema::ShapeType::Structure,
  480         -
        "self_managed_kafka_event_source_config",
         480  +
        "SelfManagedKafkaEventSourceConfig",
  481    481   
        24,
  482    482   
    );
  483    483   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_SCALING_CONFIG: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  484    484   
    ::aws_smithy_schema::ShapeId::from_static(
  485    485   
        "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$ScalingConfig",
  486    486   
        "com.amazonaws.lambda.synthetic",
  487    487   
        "DeleteEventSourceMappingOutput",
  488    488   
    ),
  489    489   
    ::aws_smithy_schema::ShapeType::Structure,
  490         -
    "scaling_config",
         490  +
    "ScalingConfig",
  491    491   
    25,
  492    492   
);
  493    493   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_DOCUMENT_DB_EVENT_SOURCE_CONFIG: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  494    494   
    ::aws_smithy_schema::ShapeId::from_static(
  495    495   
        "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$DocumentDBEventSourceConfig",
  496    496   
        "com.amazonaws.lambda.synthetic",
  497    497   
        "DeleteEventSourceMappingOutput",
  498    498   
    ),
  499    499   
    ::aws_smithy_schema::ShapeType::Structure,
  500         -
    "document_db_event_source_config",
         500  +
    "DocumentDBEventSourceConfig",
  501    501   
    26,
  502    502   
);
  503    503   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_KMS_KEY_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  504    504   
    ::aws_smithy_schema::ShapeId::from_static(
  505    505   
        "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$KMSKeyArn",
  506    506   
        "com.amazonaws.lambda.synthetic",
  507    507   
        "DeleteEventSourceMappingOutput",
  508    508   
    ),
  509    509   
    ::aws_smithy_schema::ShapeType::String,
  510         -
    "kms_key_arn",
         510  +
    "KMSKeyArn",
  511    511   
    27,
  512    512   
);
  513    513   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_FILTER_CRITERIA_ERROR: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  514    514   
    ::aws_smithy_schema::ShapeId::from_static(
  515    515   
        "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$FilterCriteriaError",
  516    516   
        "com.amazonaws.lambda.synthetic",
  517    517   
        "DeleteEventSourceMappingOutput",
  518    518   
    ),
  519    519   
    ::aws_smithy_schema::ShapeType::Structure,
  520         -
    "filter_criteria_error",
         520  +
    "FilterCriteriaError",
  521    521   
    28,
  522    522   
);
  523    523   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_EVENT_SOURCE_MAPPING_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  524    524   
    ::aws_smithy_schema::ShapeId::from_static(
  525    525   
        "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$EventSourceMappingArn",
  526    526   
        "com.amazonaws.lambda.synthetic",
  527    527   
        "DeleteEventSourceMappingOutput",
  528    528   
    ),
  529    529   
    ::aws_smithy_schema::ShapeType::String,
  530         -
    "event_source_mapping_arn",
         530  +
    "EventSourceMappingArn",
  531    531   
    29,
  532    532   
);
  533    533   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_METRICS_CONFIG: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  534    534   
    ::aws_smithy_schema::ShapeId::from_static(
  535    535   
        "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$MetricsConfig",
  536    536   
        "com.amazonaws.lambda.synthetic",
  537    537   
        "DeleteEventSourceMappingOutput",
  538    538   
    ),
  539    539   
    ::aws_smithy_schema::ShapeType::Structure,
  540         -
    "metrics_config",
         540  +
    "MetricsConfig",
  541    541   
    30,
  542    542   
);
  543    543   
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_PROVISIONED_POLLER_CONFIG: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  544    544   
    ::aws_smithy_schema::ShapeId::from_static(
  545    545   
        "com.amazonaws.lambda.synthetic#DeleteEventSourceMappingOutput$ProvisionedPollerConfig",
  546    546   
        "com.amazonaws.lambda.synthetic",
  547    547   
        "DeleteEventSourceMappingOutput",
  548    548   
    ),
  549    549   
    ::aws_smithy_schema::ShapeType::Structure,
  550         -
    "provisioned_poller_config",
         550  +
    "ProvisionedPollerConfig",
  551    551   
    31,
  552    552   
);
         553  +
static DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         554  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
         555  +
    ::aws_smithy_schema::ShapeType::String,
         556  +
    "request_id",
         557  +
    32,
         558  +
)
         559  +
.with_http_header("x-amzn-requestid");
  553    560   
static DELETEEVENTSOURCEMAPPINGOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  554    561   
    DELETEEVENTSOURCEMAPPINGOUTPUT_SCHEMA_ID,
  555    562   
    ::aws_smithy_schema::ShapeType::Structure,
  556    563   
    &[
  557    564   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_UUID,
  558    565   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_STARTING_POSITION,
  559    566   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_STARTING_POSITION_TIMESTAMP,
  560    567   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_BATCH_SIZE,
  561    568   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_MAXIMUM_BATCHING_WINDOW_IN_SECONDS,
  562    569   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_PARALLELIZATION_FACTOR,
  563    570   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_EVENT_SOURCE_ARN,
  564    571   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_FILTER_CRITERIA,
  565    572   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_FUNCTION_ARN,
  566    573   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_LAST_MODIFIED,
  567    574   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_LAST_PROCESSING_RESULT,
  568    575   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_STATE,
  569    576   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_STATE_TRANSITION_REASON,
  570    577   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_DESTINATION_CONFIG,
  571    578   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_TOPICS,
  572    579   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_QUEUES,
  573    580   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_SOURCE_ACCESS_CONFIGURATIONS,
  574    581   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_SELF_MANAGED_EVENT_SOURCE,
  575    582   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_MAXIMUM_RECORD_AGE_IN_SECONDS,
  576    583   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_BISECT_BATCH_ON_FUNCTION_ERROR,
  577    584   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_MAXIMUM_RETRY_ATTEMPTS,
  578    585   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_TUMBLING_WINDOW_IN_SECONDS,
  579    586   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_FUNCTION_RESPONSE_TYPES,
  580    587   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_AMAZON_MANAGED_KAFKA_EVENT_SOURCE_CONFIG,
  581    588   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_SELF_MANAGED_KAFKA_EVENT_SOURCE_CONFIG,
  582    589   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_SCALING_CONFIG,
  583    590   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_DOCUMENT_DB_EVENT_SOURCE_CONFIG,
  584    591   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_KMS_KEY_ARN,
  585    592   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_FILTER_CRITERIA_ERROR,
  586    593   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_EVENT_SOURCE_MAPPING_ARN,
  587    594   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_METRICS_CONFIG,
  588    595   
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_PROVISIONED_POLLER_CONFIG,
         596  +
        &DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER__REQUEST_ID,
  589    597   
    ],
  590    598   
);
  591    599   
impl DeleteEventSourceMappingOutput {
  592    600   
    /// The schema for this shape.
  593    601   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEEVENTSOURCEMAPPINGOUTPUT_SCHEMA;
  594    602   
}
  595    603   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteEventSourceMappingOutput {
  596    604   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  597    605   
    fn serialize_members(
  598    606   
        &self,
@@ -704,712 +884,1010 @@
  724    732   
            ser.write_struct(&DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_METRICS_CONFIG, val)?;
  725    733   
        }
  726    734   
        if let Some(ref val) = self.provisioned_poller_config {
  727    735   
            ser.write_struct(&DELETEEVENTSOURCEMAPPINGOUTPUT_MEMBER_PROVISIONED_POLLER_CONFIG, val)?;
  728    736   
        }
  729    737   
        Ok(())
  730    738   
    }
  731    739   
}
  732    740   
impl DeleteEventSourceMappingOutput {
  733    741   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  734         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  735         -
        deserializer: &mut D,
         742  +
    pub fn deserialize(
         743  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  736    744   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  737    745   
        #[allow(unused_variables, unused_mut)]
  738    746   
        let mut builder = Self::builder();
  739    747   
        #[allow(
  740    748   
            unused_variables,
  741    749   
            unreachable_code,
  742    750   
            clippy::single_match,
  743    751   
            clippy::match_single_binding,
  744    752   
            clippy::diverging_sub_expression
  745    753   
        )]
  746         -
        deserializer.read_struct(&DELETEEVENTSOURCEMAPPINGOUTPUT_SCHEMA, (), |_, member, deser| {
         754  +
        deserializer.read_struct(&DELETEEVENTSOURCEMAPPINGOUTPUT_SCHEMA, &mut |member, deser| {
  747    755   
            match member.member_index() {
  748    756   
                Some(0) => {
  749    757   
                    builder.uuid = Some(deser.read_string(member)?);
  750    758   
                }
  751    759   
                Some(1) => {
  752    760   
                    builder.starting_position = Some(crate::types::EventSourcePosition::from(deser.read_string(member)?.as_str()));
  753    761   
                }
  754    762   
                Some(2) => {
  755    763   
                    builder.starting_position_timestamp = Some(deser.read_timestamp(member)?);
  756    764   
                }
  757    765   
                Some(3) => {
  758    766   
                    builder.batch_size = Some(deser.read_integer(member)?);
  759    767   
                }
  760    768   
                Some(4) => {
  761    769   
                    builder.maximum_batching_window_in_seconds = Some(deser.read_integer(member)?);
  762    770   
                }
  763    771   
                Some(5) => {
  764    772   
                    builder.parallelization_factor = Some(deser.read_integer(member)?);
  765    773   
                }
  766    774   
                Some(6) => {
  767    775   
                    builder.event_source_arn = Some(deser.read_string(member)?);
  768    776   
                }
  769    777   
                Some(7) => {
  770    778   
                    builder.filter_criteria = Some(crate::types::FilterCriteria::deserialize(deser)?);
  771    779   
                }
  772    780   
                Some(8) => {
  773    781   
                    builder.function_arn = Some(deser.read_string(member)?);
  774    782   
                }
  775    783   
                Some(9) => {
  776    784   
                    builder.last_modified = Some(deser.read_timestamp(member)?);
  777    785   
                }
  778    786   
                Some(10) => {
  779    787   
                    builder.last_processing_result = Some(deser.read_string(member)?);
  780    788   
                }
  781    789   
                Some(11) => {
  782    790   
                    builder.state = Some(deser.read_string(member)?);
  783    791   
                }
  784    792   
                Some(12) => {
  785    793   
                    builder.state_transition_reason = Some(deser.read_string(member)?);
  786    794   
                }
  787    795   
                Some(13) => {
  788    796   
                    builder.destination_config = Some(crate::types::DestinationConfig::deserialize(deser)?);
  789    797   
                }
  790    798   
                Some(14) => {
  791         -
                    builder.topics = Some({
  792         -
                        let container = if let Some(cap) = deser.container_size() {
  793         -
                            Vec::with_capacity(cap)
  794         -
                        } else {
  795         -
                            Vec::new()
  796         -
                        };
  797         -
                        deser.read_list(member, container, |mut list, deser| {
  798         -
                            list.push(deser.read_string(member)?);
  799         -
                            Ok(list)
  800         -
                        })?
  801         -
                    });
         799  +
                    builder.topics = Some(deser.read_string_list(member)?);
  802    800   
                }
  803    801   
                Some(15) => {
  804         -
                    builder.queues = Some({
  805         -
                        let container = if let Some(cap) = deser.container_size() {
  806         -
                            Vec::with_capacity(cap)
  807         -
                        } else {
  808         -
                            Vec::new()
  809         -
                        };
  810         -
                        deser.read_list(member, container, |mut list, deser| {
  811         -
                            list.push(deser.read_string(member)?);
  812         -
                            Ok(list)
  813         -
                        })?
         802  +
                    builder.queues = Some(deser.read_string_list(member)?);
         803  +
                }
         804  +
                Some(16) => {
         805  +
                    builder.source_access_configurations = Some({
         806  +
                        let mut container = Vec::new();
         807  +
                        deser.read_list(member, &mut |deser| {
         808  +
                            container.push(crate::types::SourceAccessConfiguration::deserialize(deser)?);
         809  +
                            Ok(())
         810  +
                        })?;
         811  +
                        container
         812  +
                    });
         813  +
                }
         814  +
                Some(17) => {
         815  +
                    builder.self_managed_event_source = Some(crate::types::SelfManagedEventSource::deserialize(deser)?);
         816  +
                }
         817  +
                Some(18) => {
         818  +
                    builder.maximum_record_age_in_seconds = Some(deser.read_integer(member)?);
         819  +
                }
         820  +
                Some(19) => {
         821  +
                    builder.bisect_batch_on_function_error = Some(deser.read_boolean(member)?);
         822  +
                }
         823  +
                Some(20) => {
         824  +
                    builder.maximum_retry_attempts = Some(deser.read_integer(member)?);
         825  +
                }
         826  +
                Some(21) => {
         827  +
                    builder.tumbling_window_in_seconds = Some(deser.read_integer(member)?);
         828  +
                }
         829  +
                Some(22) => {
         830  +
                    builder.function_response_types = Some({
         831  +
                        let mut container = Vec::new();
         832  +
                        deser.read_list(member, &mut |deser| {
         833  +
                            container.push(crate::types::FunctionResponseType::from(deser.read_string(member)?.as_str()));
         834  +
                            Ok(())
         835  +
                        })?;
         836  +
                        container
  814    837   
                    });
  815    838   
                }
         839  +
                Some(23) => {
         840  +
                    builder.amazon_managed_kafka_event_source_config = Some(crate::types::AmazonManagedKafkaEventSourceConfig::deserialize(deser)?);
         841  +
                }
         842  +
                Some(24) => {
         843  +
                    builder.self_managed_kafka_event_source_config = Some(crate::types::SelfManagedKafkaEventSourceConfig::deserialize(deser)?);
         844  +
                }
         845  +
                Some(25) => {
         846  +
                    builder.scaling_config = Some(crate::types::ScalingConfig::deserialize(deser)?);
         847  +
                }
         848  +
                Some(26) => {
         849  +
                    builder.document_db_event_source_config = Some(crate::types::DocumentDbEventSourceConfig::deserialize(deser)?);
         850  +
                }
         851  +
                Some(27) => {
         852  +
                    builder.kms_key_arn = Some(deser.read_string(member)?);
         853  +
                }
         854  +
                Some(28) => {
         855  +
                    builder.filter_criteria_error = Some(crate::types::FilterCriteriaError::deserialize(deser)?);
         856  +
                }
         857  +
                Some(29) => {
         858  +
                    builder.event_source_mapping_arn = Some(deser.read_string(member)?);
         859  +
                }
         860  +
                Some(30) => {
         861  +
                    builder.metrics_config = Some(crate::types::EventSourceMappingMetricsConfig::deserialize(deser)?);
         862  +
                }
         863  +
                Some(31) => {
         864  +
                    builder.provisioned_poller_config = Some(crate::types::ProvisionedPollerConfig::deserialize(deser)?);
         865  +
                }
         866  +
                Some(32) => {
         867  +
                    builder._request_id = Some(deser.read_string(member)?);
         868  +
                }
         869  +
                _ => {}
         870  +
            }
         871  +
            Ok(())
         872  +
        })?;
         873  +
        Ok(builder.build())
         874  +
    }
         875  +
}
         876  +
impl DeleteEventSourceMappingOutput {
         877  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         878  +
    /// Header-bound members are read directly from headers, avoiding runtime
         879  +
    /// member iteration overhead. Body members are read via the deserializer.
         880  +
    pub fn deserialize_with_response(
         881  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         882  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         883  +
        _status: u16,
         884  +
        _body: &[u8],
         885  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         886  +
        #[allow(unused_variables, unused_mut)]
         887  +
        let mut builder = Self::builder();
         888  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         889  +
            builder._request_id = Some(val.to_string());
         890  +
        }
         891  +
        #[allow(
         892  +
            unused_variables,
         893  +
            unreachable_code,
         894  +
            clippy::single_match,
         895  +
            clippy::match_single_binding,
         896  +
            clippy::diverging_sub_expression
         897  +
        )]
         898  +
        deserializer.read_struct(&DELETEEVENTSOURCEMAPPINGOUTPUT_SCHEMA, &mut |member, deser| {
         899  +
            match member.member_index() {
         900  +
                Some(0) => {
         901  +
                    builder.uuid = Some(deser.read_string(member)?);
         902  +
                }
         903  +
                Some(1) => {
         904  +
                    builder.starting_position = Some(crate::types::EventSourcePosition::from(deser.read_string(member)?.as_str()));
         905  +
                }
         906  +
                Some(2) => {
         907  +
                    builder.starting_position_timestamp = Some(deser.read_timestamp(member)?);
         908  +
                }
         909  +
                Some(3) => {
         910  +
                    builder.batch_size = Some(deser.read_integer(member)?);
         911  +
                }
         912  +
                Some(4) => {
         913  +
                    builder.maximum_batching_window_in_seconds = Some(deser.read_integer(member)?);
         914  +
                }
         915  +
                Some(5) => {
         916  +
                    builder.parallelization_factor = Some(deser.read_integer(member)?);
         917  +
                }
         918  +
                Some(6) => {
         919  +
                    builder.event_source_arn = Some(deser.read_string(member)?);
         920  +
                }
         921  +
                Some(7) => {
         922  +
                    builder.filter_criteria = Some(crate::types::FilterCriteria::deserialize(deser)?);
         923  +
                }
         924  +
                Some(8) => {
         925  +
                    builder.function_arn = Some(deser.read_string(member)?);
         926  +
                }
         927  +
                Some(9) => {
         928  +
                    builder.last_modified = Some(deser.read_timestamp(member)?);
         929  +
                }
         930  +
                Some(10) => {
         931  +
                    builder.last_processing_result = Some(deser.read_string(member)?);
         932  +
                }
         933  +
                Some(11) => {
         934  +
                    builder.state = Some(deser.read_string(member)?);
         935  +
                }
         936  +
                Some(12) => {
         937  +
                    builder.state_transition_reason = Some(deser.read_string(member)?);
         938  +
                }
         939  +
                Some(13) => {
         940  +
                    builder.destination_config = Some(crate::types::DestinationConfig::deserialize(deser)?);
         941  +
                }
         942  +
                Some(14) => {
         943  +
                    builder.topics = Some(deser.read_string_list(member)?);
         944  +
                }
         945  +
                Some(15) => {
         946  +
                    builder.queues = Some(deser.read_string_list(member)?);
         947  +
                }
  816    948   
                Some(16) => {
  817    949   
                    builder.source_access_configurations = Some({
  818         -
                        let container = if let Some(cap) = deser.container_size() {
  819         -
                            Vec::with_capacity(cap)
  820         -
                        } else {
  821         -
                            Vec::new()
  822         -
                        };
  823         -
                        deser.read_list(member, container, |mut list, deser| {
  824         -
                            list.push(crate::types::SourceAccessConfiguration::deserialize(deser)?);
  825         -
                            Ok(list)
  826         -
                        })?
         950  +
                        let mut container = Vec::new();
         951  +
                        deser.read_list(member, &mut |deser| {
         952  +
                            container.push(crate::types::SourceAccessConfiguration::deserialize(deser)?);
         953  +
                            Ok(())
         954  +
                        })?;
         955  +
                        container
  827    956   
                    });
  828    957   
                }
  829    958   
                Some(17) => {
  830    959   
                    builder.self_managed_event_source = Some(crate::types::SelfManagedEventSource::deserialize(deser)?);
  831    960   
                }
  832    961   
                Some(18) => {
  833    962   
                    builder.maximum_record_age_in_seconds = Some(deser.read_integer(member)?);
  834    963   
                }
  835    964   
                Some(19) => {
  836    965   
                    builder.bisect_batch_on_function_error = Some(deser.read_boolean(member)?);
  837    966   
                }
  838    967   
                Some(20) => {
  839    968   
                    builder.maximum_retry_attempts = Some(deser.read_integer(member)?);
  840    969   
                }
  841    970   
                Some(21) => {
  842    971   
                    builder.tumbling_window_in_seconds = Some(deser.read_integer(member)?);
  843    972   
                }
  844    973   
                Some(22) => {
  845    974   
                    builder.function_response_types = Some({
  846         -
                        let container = if let Some(cap) = deser.container_size() {
  847         -
                            Vec::with_capacity(cap)
  848         -
                        } else {
  849         -
                            Vec::new()
  850         -
                        };
  851         -
                        deser.read_list(member, container, |mut list, deser| {
  852         -
                            list.push(crate::types::FunctionResponseType::from(deser.read_string(member)?.as_str()));
  853         -
                            Ok(list)
  854         -
                        })?
         975  +
                        let mut container = Vec::new();
         976  +
                        deser.read_list(member, &mut |deser| {
         977  +
                            container.push(crate::types::FunctionResponseType::from(deser.read_string(member)?.as_str()));
         978  +
                            Ok(())
         979  +
                        })?;
         980  +
                        container
  855    981   
                    });
  856    982   
                }
  857    983   
                Some(23) => {
  858    984   
                    builder.amazon_managed_kafka_event_source_config = Some(crate::types::AmazonManagedKafkaEventSourceConfig::deserialize(deser)?);
  859    985   
                }
  860    986   
                Some(24) => {
  861    987   
                    builder.self_managed_kafka_event_source_config = Some(crate::types::SelfManagedKafkaEventSourceConfig::deserialize(deser)?);
  862    988   
                }
  863    989   
                Some(25) => {
  864    990   
                    builder.scaling_config = Some(crate::types::ScalingConfig::deserialize(deser)?);

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/delete_function.rs

@@ -1,1 +40,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `DeleteFunction`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DeleteFunction;
    6      6   
impl DeleteFunction {
    7      7   
    /// Creates a new `DeleteFunction`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::delete_function::DeleteFunctionInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::delete_function::DeleteFunctionOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::delete_function::DeleteFunctionInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::delete_function::DeleteFunctionOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::delete_function::DeleteFunctionError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -115,119 +257,412 @@
  135    139   
                crate::operation::delete_function::DeleteFunctionError,
  136    140   
            >::new());
  137    141   
  138    142   
        ::std::borrow::Cow::Owned(rcb)
  139    143   
    }
  140    144   
}
  141    145   
  142    146   
#[derive(Debug)]
  143    147   
struct DeleteFunctionResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DeleteFunctionResponseDeserializer {
  145         -
    fn deserialize_nonstreaming(
         149  +
    fn deserialize_nonstreaming_with_config(
  146    150   
        &self,
  147    151   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         152  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  148    153   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  149    154   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  150         -
        let headers = response.headers();
  151         -
        let body = response.body().bytes().expect("body loaded");
  152    155   
        #[allow(unused_mut)]
  153    156   
        let mut force_error = false;
  154    157   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  155         -
        let parse_result = if !success && status != 204 || force_error {
  156         -
            crate::protocol_serde::shape_delete_function::de_delete_function_http_error(status, headers, body)
  157         -
        } else {
  158         -
            crate::protocol_serde::shape_delete_function::de_delete_function_http_response(status, headers, body)
         158  +
        if !success && status != 204 || force_error {
         159  +
            let headers = response.headers();
         160  +
            let body = response.body().bytes().expect("body loaded");
         161  +
            #[allow(unused_mut)]
         162  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         163  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         164  +
            })?;
         165  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         166  +
            let generic = generic_builder.build();
         167  +
            let error_code = match generic.code() {
         168  +
                ::std::option::Option::Some(code) => code,
         169  +
                ::std::option::Option::None => {
         170  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         171  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::delete_function::DeleteFunctionError::unhandled(
         172  +
                            generic,
         173  +
                        )),
         174  +
                    ))
         175  +
                }
         176  +
            };
         177  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         178  +
            let protocol = _cfg
         179  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         180  +
                .expect("a SharedClientProtocol is required");
         181  +
            let err = match error_code {
         182  +
                "InvalidParameterValueException" => crate::operation::delete_function::DeleteFunctionError::InvalidParameterValueException({
         183  +
                    let mut tmp = match protocol
         184  +
                        .deserialize_response(response, crate::types::error::InvalidParameterValueException::SCHEMA, _cfg)
         185  +
                        .and_then(|mut deser| {
         186  +
                            crate::types::error::InvalidParameterValueException::deserialize_with_response(
         187  +
                                &mut *deser,
         188  +
                                response.headers(),
         189  +
                                response.status().into(),
         190  +
                                body,
         191  +
                            )
         192  +
                        }) {
         193  +
                        ::std::result::Result::Ok(val) => val,
         194  +
                        ::std::result::Result::Err(e) => {
         195  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         196  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         197  +
                            ))
         198  +
                        }
         199  +
                    };
         200  +
                    tmp.meta = generic;
         201  +
                    if tmp.message.is_none() {
         202  +
                        tmp.message = _error_message;
         203  +
                    }
         204  +
                    tmp
         205  +
                }),
         206  +
                "ResourceConflictException" => crate::operation::delete_function::DeleteFunctionError::ResourceConflictException({
         207  +
                    let mut tmp = match protocol
         208  +
                        .deserialize_response(response, crate::types::error::ResourceConflictException::SCHEMA, _cfg)
         209  +
                        .and_then(|mut deser| {
         210  +
                            crate::types::error::ResourceConflictException::deserialize_with_response(
         211  +
                                &mut *deser,
         212  +
                                response.headers(),
         213  +
                                response.status().into(),
         214  +
                                body,
         215  +
                            )
         216  +
                        }) {
         217  +
                        ::std::result::Result::Ok(val) => val,
         218  +
                        ::std::result::Result::Err(e) => {
         219  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         220  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         221  +
                            ))
         222  +
                        }
         223  +
                    };
         224  +
                    tmp.meta = generic;
         225  +
                    if tmp.message.is_none() {
         226  +
                        tmp.message = _error_message;
         227  +
                    }
         228  +
                    tmp
         229  +
                }),
         230  +
                "ResourceNotFoundException" => crate::operation::delete_function::DeleteFunctionError::ResourceNotFoundException({
         231  +
                    let mut tmp = match protocol
         232  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         233  +
                        .and_then(|mut deser| {
         234  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         235  +
                                &mut *deser,
         236  +
                                response.headers(),
         237  +
                                response.status().into(),
         238  +
                                body,
         239  +
                            )
         240  +
                        }) {
         241  +
                        ::std::result::Result::Ok(val) => val,
         242  +
                        ::std::result::Result::Err(e) => {
         243  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         244  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         245  +
                            ))
         246  +
                        }
         247  +
                    };
         248  +
                    tmp.meta = generic;
         249  +
                    if tmp.message.is_none() {
         250  +
                        tmp.message = _error_message;
         251  +
                    }
         252  +
                    tmp
         253  +
                }),
         254  +
                "ServiceException" => crate::operation::delete_function::DeleteFunctionError::ServiceException({
         255  +
                    let mut tmp = match protocol
         256  +
                        .deserialize_response(response, crate::types::error::ServiceException::SCHEMA, _cfg)
         257  +
                        .and_then(|mut deser| {
         258  +
                            crate::types::error::ServiceException::deserialize_with_response(
         259  +
                                &mut *deser,
         260  +
                                response.headers(),
         261  +
                                response.status().into(),
         262  +
                                body,
         263  +
                            )
         264  +
                        }) {
         265  +
                        ::std::result::Result::Ok(val) => val,
         266  +
                        ::std::result::Result::Err(e) => {
         267  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         268  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         269  +
                            ))
         270  +
                        }
  159    271   
                    };
  160         -
        crate::protocol_serde::type_erase_result(parse_result)
         272  +
                    tmp.meta = generic;
         273  +
                    if tmp.message.is_none() {
         274  +
                        tmp.message = _error_message;
         275  +
                    }
         276  +
                    tmp
         277  +
                }),
         278  +
                "TooManyRequestsException" => crate::operation::delete_function::DeleteFunctionError::TooManyRequestsException({
         279  +
                    let mut tmp = match protocol
         280  +
                        .deserialize_response(response, crate::types::error::TooManyRequestsException::SCHEMA, _cfg)
         281  +
                        .and_then(|mut deser| {
         282  +
                            crate::types::error::TooManyRequestsException::deserialize_with_response(
         283  +
                                &mut *deser,
         284  +
                                response.headers(),
         285  +
                                response.status().into(),
         286  +
                                body,
         287  +
                            )
         288  +
                        }) {
         289  +
                        ::std::result::Result::Ok(val) => val,
         290  +
                        ::std::result::Result::Err(e) => {
         291  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         292  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         293  +
                            ))
         294  +
                        }
         295  +
                    };
         296  +
                    tmp.meta = generic;
         297  +
                    if tmp.message.is_none() {
         298  +
                        tmp.message = _error_message;
         299  +
                    }
         300  +
                    tmp
         301  +
                }),
         302  +
                _ => crate::operation::delete_function::DeleteFunctionError::generic(generic),
         303  +
            };
         304  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         305  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         306  +
            ))
         307  +
        } else {
         308  +
            let protocol = _cfg
         309  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         310  +
                .expect("a SharedClientProtocol is required");
         311  +
            let mut deser = protocol
         312  +
                .deserialize_response(response, DeleteFunction::OUTPUT_SCHEMA, _cfg)
         313  +
                .map_err(|e| {
         314  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         315  +
                })?;
         316  +
            let body = response.body().bytes().expect("body loaded");
         317  +
            let output = crate::operation::delete_function::DeleteFunctionOutput::deserialize_with_response(
         318  +
                &mut *deser,
         319  +
                response.headers(),
         320  +
                response.status().into(),
         321  +
                body,
         322  +
            )
         323  +
            .map_err(|e| {
         324  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         325  +
            })?;
         326  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         327  +
        }
  161    328   
    }
  162    329   
}
  163    330   
#[derive(Debug)]
  164    331   
struct DeleteFunctionRequestSerializer;
  165    332   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DeleteFunctionRequestSerializer {
  166    333   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  167    334   
    fn serialize_input(
  168    335   
        &self,
  169    336   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  170    337   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  171    338   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  172    339   
        let input = input
  173    340   
            .downcast::<crate::operation::delete_function::DeleteFunctionInput>()
  174    341   
            .expect("correct type");
  175         -
        let _header_serialization_settings = _cfg
  176         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  177         -
            .cloned()
  178         -
            .unwrap_or_default();
  179         -
        let mut request_builder = {
  180         -
            #[allow(clippy::uninlined_format_args)]
  181         -
            fn uri_base(
  182         -
                _input: &crate::operation::delete_function::DeleteFunctionInput,
  183         -
                output: &mut ::std::string::String,
  184         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  185         -
                use ::std::fmt::Write as _;
  186         -
                let input_1 = &_input.function_name;
  187         -
                let input_1 = input_1
  188         -
                    .as_ref()
  189         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("function_name", "cannot be empty or unset"))?;
  190         -
                let function_name = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  191         -
                if function_name.is_empty() {
  192         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  193         -
                        "function_name",
  194         -
                        "cannot be empty or unset",
  195         -
                    ));
  196         -
                }
  197         -
                ::std::write!(output, "/2015-03-31/functions/{FunctionName}", FunctionName = function_name).expect("formatting should succeed");
  198         -
                ::std::result::Result::Ok(())
  199         -
            }
  200         -
            fn uri_query(
  201         -
                _input: &crate::operation::delete_function::DeleteFunctionInput,
  202         -
                mut output: &mut ::std::string::String,
  203         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  204         -
                let mut query = ::aws_smithy_http::query::Writer::new(output);
  205         -
                if let ::std::option::Option::Some(inner_2) = &_input.qualifier {
         342  +
        let protocol = _cfg
         343  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         344  +
            .expect("a SharedClientProtocol is required");
         345  +
        if protocol.supports_http_bindings() {
         346  +
            let mut request = protocol
         347  +
                .serialize_body(&input, DeleteFunction::INPUT_SCHEMA, "", _cfg)
         348  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
  206    349   
            {
  207         -
                        query.push_kv("Qualifier", &::aws_smithy_http::query::fmt_string(inner_2));
  208         -
                    }
         350  +
                let mut uri = "/2015-03-31/functions/{FunctionName}".to_string();
         351  +
                let mut query_params: Vec<(String, String)> = Vec::new();
         352  +
                if let Some(ref val) = input.function_name {
         353  +
                    uri = uri.replace("{FunctionName}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
         354  +
                }
         355  +
                if let Some(ref val) = input.qualifier {
         356  +
                    query_params.push(("Qualifier".to_string(), val.to_string()));
         357  +
                }
         358  +
                if !query_params.is_empty() {
         359  +
                    uri.push(if uri.contains('?') { '&' } else { '?' });
         360  +
                    let pairs: Vec<String> = query_params
         361  +
                        .iter()
         362  +
                        .map(|(k, v)| {
         363  +
                            format!(
         364  +
                                "{}={}",
         365  +
                                ::aws_smithy_schema::http_protocol::percent_encode(k),
         366  +
                                ::aws_smithy_schema::http_protocol::percent_encode(v)
         367  +
                            )
         368  +
                        })
         369  +
                        .collect();
         370  +
                    uri.push_str(&pairs.join("&"));
  209    371   
                }
  210         -
                ::std::result::Result::Ok(())
         372  +
                request.set_uri(uri.as_str()).expect("valid URI");
  211    373   
            }
  212         -
            #[allow(clippy::unnecessary_wraps)]
  213         -
            fn update_http_builder(
  214         -
                input: &crate::operation::delete_function::DeleteFunctionInput,
  215         -
                builder: ::http_1x::request::Builder,
  216         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  217         -
                let mut uri = ::std::string::String::new();
  218         -
                uri_base(input, &mut uri)?;
  219         -
                uri_query(input, &mut uri)?;
  220         -
                ::std::result::Result::Ok(builder.method("DELETE").uri(uri))
  221         -
            }
  222         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  223         -
            builder
  224         -
        };
  225         -
        let body = ::aws_smithy_types::body::SdkBody::from("");
  226    374   
  227         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         375  +
            return ::std::result::Result::Ok(request);
         376  +
        } else {
         377  +
            let mut request = protocol
         378  +
                .serialize_request(&input, DeleteFunction::INPUT_SCHEMA, "", _cfg)
         379  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         380  +
         381  +
            return ::std::result::Result::Ok(request);
         382  +
        }
  228    383   
    }
  229    384   
}
  230    385   
#[derive(Debug)]
  231    386   
struct DeleteFunctionEndpointParamsInterceptor;
  232    387   
  233    388   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DeleteFunctionEndpointParamsInterceptor {
  234    389   
    fn name(&self) -> &'static str {
  235    390   
        "DeleteFunctionEndpointParamsInterceptor"
  236    391   
    }
  237    392   

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/delete_function/_delete_function_input.rs

@@ -23,23 +152,169 @@
   43     43   
    "com.amazonaws.lambda.synthetic",
   44     44   
    "DeleteFunctionInput",
   45     45   
);
   46     46   
static DELETEFUNCTIONINPUT_MEMBER_FUNCTION_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   47     47   
    ::aws_smithy_schema::ShapeId::from_static(
   48     48   
        "com.amazonaws.lambda.synthetic#DeleteFunctionInput$FunctionName",
   49     49   
        "com.amazonaws.lambda.synthetic",
   50     50   
        "DeleteFunctionInput",
   51     51   
    ),
   52     52   
    ::aws_smithy_schema::ShapeType::String,
   53         -
    "function_name",
          53  +
    "FunctionName",
   54     54   
    0,
   55     55   
)
   56     56   
.with_http_label();
   57     57   
static DELETEFUNCTIONINPUT_MEMBER_QUALIFIER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   58     58   
    ::aws_smithy_schema::ShapeId::from_static(
   59     59   
        "com.amazonaws.lambda.synthetic#DeleteFunctionInput$Qualifier",
   60     60   
        "com.amazonaws.lambda.synthetic",
   61     61   
        "DeleteFunctionInput",
   62     62   
    ),
   63     63   
    ::aws_smithy_schema::ShapeType::String,
   64         -
    "qualifier",
          64  +
    "Qualifier",
   65     65   
    1,
   66     66   
)
   67     67   
.with_http_query("Qualifier");
   68     68   
static DELETEFUNCTIONINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   69     69   
    DELETEFUNCTIONINPUT_SCHEMA_ID,
   70     70   
    ::aws_smithy_schema::ShapeType::Structure,
   71     71   
    &[&DELETEFUNCTIONINPUT_MEMBER_FUNCTION_NAME, &DELETEFUNCTIONINPUT_MEMBER_QUALIFIER],
   72         -
);
          72  +
)
          73  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          74  +
    "DELETE",
          75  +
    "/2015-03-31/functions/{FunctionName}",
          76  +
    Some(204),
          77  +
));
   73     78   
impl DeleteFunctionInput {
   74     79   
    /// The schema for this shape.
   75     80   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEFUNCTIONINPUT_SCHEMA;
   76     81   
}
   77     82   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteFunctionInput {
   78     83   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   79     84   
    fn serialize_members(
   80     85   
        &self,
   81     86   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   82     87   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   83     88   
        if let Some(ref val) = self.function_name {
   84     89   
            ser.write_string(&DELETEFUNCTIONINPUT_MEMBER_FUNCTION_NAME, val)?;
   85     90   
        }
   86     91   
        if let Some(ref val) = self.qualifier {
   87     92   
            ser.write_string(&DELETEFUNCTIONINPUT_MEMBER_QUALIFIER, val)?;
   88     93   
        }
   89     94   
        Ok(())
   90     95   
    }
   91     96   
}
   92     97   
impl DeleteFunctionInput {
   93     98   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   94         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   95         -
        deserializer: &mut D,
          99  +
    pub fn deserialize(
         100  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   96    101   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   97    102   
        #[allow(unused_variables, unused_mut)]
   98    103   
        let mut builder = Self::builder();
   99    104   
        #[allow(
  100    105   
            unused_variables,
  101    106   
            unreachable_code,
  102    107   
            clippy::single_match,
  103    108   
            clippy::match_single_binding,
  104    109   
            clippy::diverging_sub_expression
  105    110   
        )]
  106         -
        deserializer.read_struct(&DELETEFUNCTIONINPUT_SCHEMA, (), |_, member, deser| {
         111  +
        deserializer.read_struct(&DELETEFUNCTIONINPUT_SCHEMA, &mut |member, deser| {
  107    112   
            match member.member_index() {
  108    113   
                Some(0) => {
  109    114   
                    builder.function_name = Some(deser.read_string(member)?);
  110    115   
                }
  111    116   
                Some(1) => {
  112    117   
                    builder.qualifier = Some(deser.read_string(member)?);
  113    118   
                }
  114    119   
                _ => {}
  115    120   
            }
  116    121   
            Ok(())
  117    122   
        })?;
         123  +
        builder.function_name = builder.function_name.or(Some(String::new()));
  118    124   
        builder
  119    125   
            .build()
  120    126   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  121    127   
    }
  122    128   
}
         129  +
impl DeleteFunctionInput {
         130  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         131  +
    pub fn deserialize_with_response(
         132  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         133  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         134  +
        _status: u16,
         135  +
        _body: &[u8],
         136  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         137  +
        Self::deserialize(deserializer)
         138  +
    }
         139  +
}
  123    140   
impl DeleteFunctionInput {
  124    141   
    /// Creates a new builder-style object to manufacture [`DeleteFunctionInput`](crate::operation::delete_function::DeleteFunctionInput).
  125    142   
    pub fn builder() -> crate::operation::delete_function::builders::DeleteFunctionInputBuilder {
  126    143   
        crate::operation::delete_function::builders::DeleteFunctionInputBuilder::default()
  127    144   
    }
  128    145   
}
  129    146   
  130    147   
/// A builder for [`DeleteFunctionInput`](crate::operation::delete_function::DeleteFunctionInput).
  131    148   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  132    149   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/delete_function/_delete_function_output.rs

@@ -1,1 +80,111 @@
    3      3   
#[non_exhaustive]
    4      4   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    5      5   
pub struct DeleteFunctionOutput {
    6      6   
    _request_id: Option<String>,
    7      7   
}
    8      8   
static DELETEFUNCTIONOUTPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    9      9   
    "com.amazonaws.lambda.synthetic#DeleteFunctionOutput",
   10     10   
    "com.amazonaws.lambda.synthetic",
   11     11   
    "DeleteFunctionOutput",
   12     12   
);
   13         -
static DELETEFUNCTIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema =
   14         -
    ::aws_smithy_schema::Schema::new_struct(DELETEFUNCTIONOUTPUT_SCHEMA_ID, ::aws_smithy_schema::ShapeType::Structure, &[]);
          13  +
static DELETEFUNCTIONOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          14  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          15  +
    ::aws_smithy_schema::ShapeType::String,
          16  +
    "request_id",
          17  +
    0,
          18  +
)
          19  +
.with_http_header("x-amzn-requestid");
          20  +
static DELETEFUNCTIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
          21  +
    DELETEFUNCTIONOUTPUT_SCHEMA_ID,
          22  +
    ::aws_smithy_schema::ShapeType::Structure,
          23  +
    &[&DELETEFUNCTIONOUTPUT_MEMBER__REQUEST_ID],
          24  +
);
   15     25   
impl DeleteFunctionOutput {
   16     26   
    /// The schema for this shape.
   17     27   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEFUNCTIONOUTPUT_SCHEMA;
   18     28   
}
   19     29   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteFunctionOutput {
   20     30   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   21     31   
    fn serialize_members(
   22     32   
        &self,
   23     33   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   24     34   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   25     35   
        Ok(())
   26     36   
    }
   27     37   
}
   28     38   
impl DeleteFunctionOutput {
   29     39   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   30         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   31         -
        deserializer: &mut D,
          40  +
    pub fn deserialize(
          41  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   32     42   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   33     43   
        #[allow(unused_variables, unused_mut)]
   34     44   
        let mut builder = Self::builder();
   35     45   
        #[allow(
   36     46   
            unused_variables,
   37     47   
            unreachable_code,
   38     48   
            clippy::single_match,
   39     49   
            clippy::match_single_binding,
   40     50   
            clippy::diverging_sub_expression
   41     51   
        )]
   42         -
        deserializer.read_struct(&DELETEFUNCTIONOUTPUT_SCHEMA, (), |_, member, deser| {
          52  +
        deserializer.read_struct(&DELETEFUNCTIONOUTPUT_SCHEMA, &mut |member, deser| {
   43     53   
            match member.member_index() {
          54  +
                Some(0) => {
          55  +
                    builder._request_id = Some(deser.read_string(member)?);
          56  +
                }
   44     57   
                _ => {}
   45     58   
            }
   46     59   
            Ok(())
   47     60   
        })?;
   48     61   
        Ok(builder.build())
   49     62   
    }
   50     63   
}
          64  +
impl DeleteFunctionOutput {
          65  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          66  +
    /// Header-bound members are read directly from headers, avoiding runtime
          67  +
    /// member iteration overhead. Body members are read via the deserializer.
          68  +
    pub fn deserialize_with_response(
          69  +
        _deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          70  +
        headers: &::aws_smithy_runtime_api::http::Headers,
          71  +
        _status: u16,
          72  +
        _body: &[u8],
          73  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          74  +
        #[allow(unused_variables, unused_mut)]
          75  +
        let mut builder = Self::builder();
          76  +
        if let Some(val) = headers.get("x-amzn-requestid") {
          77  +
            builder._request_id = Some(val.to_string());
          78  +
        }
          79  +
        Ok(builder.build())
          80  +
    }
          81  +
}
   51     82   
impl ::aws_types::request_id::RequestId for DeleteFunctionOutput {
   52     83   
    fn request_id(&self) -> Option<&str> {
   53     84   
        self._request_id.as_deref()
   54     85   
    }
   55     86   
}
   56     87   
impl DeleteFunctionOutput {
   57     88   
    /// Creates a new builder-style object to manufacture [`DeleteFunctionOutput`](crate::operation::delete_function::DeleteFunctionOutput).
   58     89   
    pub fn builder() -> crate::operation::delete_function::builders::DeleteFunctionOutputBuilder {
   59     90   
        crate::operation::delete_function::builders::DeleteFunctionOutputBuilder::default()
   60     91   
    }

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/delete_function_code_signing_config.rs

@@ -1,1 +40,46 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `DeleteFunctionCodeSigningConfig`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DeleteFunctionCodeSigningConfig;
    6      6   
impl DeleteFunctionCodeSigningConfig {
    7      7   
    /// Creates a new `DeleteFunctionCodeSigningConfig`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          13  +
        crate::operation::delete_function_code_signing_config::DeleteFunctionCodeSigningConfigInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::delete_function_code_signing_config::DeleteFunctionCodeSigningConfigOutput::SCHEMA;
   11     17   
    pub(crate) async fn orchestrate(
   12     18   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     19   
        input: crate::operation::delete_function_code_signing_config::DeleteFunctionCodeSigningConfigInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::delete_function_code_signing_config::DeleteFunctionCodeSigningConfigOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::delete_function_code_signing_config::DeleteFunctionCodeSigningConfigError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +260,456 @@
  144    150   
                crate::operation::delete_function_code_signing_config::DeleteFunctionCodeSigningConfigError,
  145    151   
            >::new());
  146    152   
  147    153   
        ::std::borrow::Cow::Owned(rcb)
  148    154   
    }
  149    155   
}
  150    156   
  151    157   
#[derive(Debug)]
  152    158   
struct DeleteFunctionCodeSigningConfigResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DeleteFunctionCodeSigningConfigResponseDeserializer {
  154         -
    fn deserialize_nonstreaming(
         160  +
    fn deserialize_nonstreaming_with_config(
  155    161   
        &self,
  156    162   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         163  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  157    164   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  158    165   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  159         -
        let headers = response.headers();
  160         -
        let body = response.body().bytes().expect("body loaded");
  161    166   
        #[allow(unused_mut)]
  162    167   
        let mut force_error = false;
  163    168   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  164         -
        let parse_result = if !success && status != 204 || force_error {
  165         -
            crate::protocol_serde::shape_delete_function_code_signing_config::de_delete_function_code_signing_config_http_error(status, headers, body)
  166         -
        } else {
  167         -
            crate::protocol_serde::shape_delete_function_code_signing_config::de_delete_function_code_signing_config_http_response(
  168         -
                status, headers, body,
         169  +
        if !success && status != 204 || force_error {
         170  +
            let headers = response.headers();
         171  +
            let body = response.body().bytes().expect("body loaded");
         172  +
            #[allow(unused_mut)]
         173  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         174  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         175  +
            })?;
         176  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         177  +
            let generic = generic_builder.build();
         178  +
            let error_code = match generic.code() {
         179  +
                ::std::option::Option::Some(code) => code,
         180  +
                ::std::option::Option::None => {
         181  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         182  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         183  +
                            crate::operation::delete_function_code_signing_config::DeleteFunctionCodeSigningConfigError::unhandled(generic),
         184  +
                        ),
         185  +
                    ))
         186  +
                }
         187  +
            };
         188  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         189  +
            let protocol = _cfg
         190  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         191  +
                .expect("a SharedClientProtocol is required");
         192  +
            let err = match error_code {
         193  +
                "CodeSigningConfigNotFoundException" => {
         194  +
                    crate::operation::delete_function_code_signing_config::DeleteFunctionCodeSigningConfigError::CodeSigningConfigNotFoundException({
         195  +
                        let mut tmp = match protocol
         196  +
                            .deserialize_response(response, crate::types::error::CodeSigningConfigNotFoundException::SCHEMA, _cfg)
         197  +
                            .and_then(|mut deser| {
         198  +
                                crate::types::error::CodeSigningConfigNotFoundException::deserialize_with_response(
         199  +
                                    &mut *deser,
         200  +
                                    response.headers(),
         201  +
                                    response.status().into(),
         202  +
                                    body,
         203  +
                                )
         204  +
                            }) {
         205  +
                            ::std::result::Result::Ok(val) => val,
         206  +
                            ::std::result::Result::Err(e) => {
         207  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         208  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         209  +
                                ))
         210  +
                            }
         211  +
                        };
         212  +
                        tmp.meta = generic;
         213  +
                        if tmp.message.is_none() {
         214  +
                            tmp.message = _error_message;
         215  +
                        }
         216  +
                        tmp
         217  +
                    })
         218  +
                }
         219  +
                "InvalidParameterValueException" => {
         220  +
                    crate::operation::delete_function_code_signing_config::DeleteFunctionCodeSigningConfigError::InvalidParameterValueException({
         221  +
                        let mut tmp = match protocol
         222  +
                            .deserialize_response(response, crate::types::error::InvalidParameterValueException::SCHEMA, _cfg)
         223  +
                            .and_then(|mut deser| {
         224  +
                                crate::types::error::InvalidParameterValueException::deserialize_with_response(
         225  +
                                    &mut *deser,
         226  +
                                    response.headers(),
         227  +
                                    response.status().into(),
         228  +
                                    body,
  169    229   
                                )
         230  +
                            }) {
         231  +
                            ::std::result::Result::Ok(val) => val,
         232  +
                            ::std::result::Result::Err(e) => {
         233  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         234  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         235  +
                                ))
         236  +
                            }
         237  +
                        };
         238  +
                        tmp.meta = generic;
         239  +
                        if tmp.message.is_none() {
         240  +
                            tmp.message = _error_message;
         241  +
                        }
         242  +
                        tmp
         243  +
                    })
         244  +
                }
         245  +
                "ResourceConflictException" => {
         246  +
                    crate::operation::delete_function_code_signing_config::DeleteFunctionCodeSigningConfigError::ResourceConflictException({
         247  +
                        let mut tmp = match protocol
         248  +
                            .deserialize_response(response, crate::types::error::ResourceConflictException::SCHEMA, _cfg)
         249  +
                            .and_then(|mut deser| {
         250  +
                                crate::types::error::ResourceConflictException::deserialize_with_response(
         251  +
                                    &mut *deser,
         252  +
                                    response.headers(),
         253  +
                                    response.status().into(),
         254  +
                                    body,
         255  +
                                )
         256  +
                            }) {
         257  +
                            ::std::result::Result::Ok(val) => val,
         258  +
                            ::std::result::Result::Err(e) => {
         259  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         260  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         261  +
                                ))
         262  +
                            }
  170    263   
                        };
  171         -
        crate::protocol_serde::type_erase_result(parse_result)
         264  +
                        tmp.meta = generic;
         265  +
                        if tmp.message.is_none() {
         266  +
                            tmp.message = _error_message;
         267  +
                        }
         268  +
                        tmp
         269  +
                    })
         270  +
                }
         271  +
                "ResourceNotFoundException" => {
         272  +
                    crate::operation::delete_function_code_signing_config::DeleteFunctionCodeSigningConfigError::ResourceNotFoundException({
         273  +
                        let mut tmp = match protocol
         274  +
                            .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         275  +
                            .and_then(|mut deser| {
         276  +
                                crate::types::error::ResourceNotFoundException::deserialize_with_response(
         277  +
                                    &mut *deser,
         278  +
                                    response.headers(),
         279  +
                                    response.status().into(),
         280  +
                                    body,
         281  +
                                )
         282  +
                            }) {
         283  +
                            ::std::result::Result::Ok(val) => val,
         284  +
                            ::std::result::Result::Err(e) => {
         285  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         286  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         287  +
                                ))
         288  +
                            }
         289  +
                        };
         290  +
                        tmp.meta = generic;
         291  +
                        if tmp.message.is_none() {
         292  +
                            tmp.message = _error_message;
         293  +
                        }
         294  +
                        tmp
         295  +
                    })
         296  +
                }
         297  +
                "ServiceException" => {
         298  +
                    crate::operation::delete_function_code_signing_config::DeleteFunctionCodeSigningConfigError::ServiceException({
         299  +
                        let mut tmp = match protocol
         300  +
                            .deserialize_response(response, crate::types::error::ServiceException::SCHEMA, _cfg)
         301  +
                            .and_then(|mut deser| {
         302  +
                                crate::types::error::ServiceException::deserialize_with_response(
         303  +
                                    &mut *deser,
         304  +
                                    response.headers(),
         305  +
                                    response.status().into(),
         306  +
                                    body,
         307  +
                                )
         308  +
                            }) {
         309  +
                            ::std::result::Result::Ok(val) => val,
         310  +
                            ::std::result::Result::Err(e) => {
         311  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         312  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         313  +
                                ))
         314  +
                            }
         315  +
                        };
         316  +
                        tmp.meta = generic;
         317  +
                        if tmp.message.is_none() {
         318  +
                            tmp.message = _error_message;
         319  +
                        }
         320  +
                        tmp
         321  +
                    })
         322  +
                }
         323  +
                "TooManyRequestsException" => {
         324  +
                    crate::operation::delete_function_code_signing_config::DeleteFunctionCodeSigningConfigError::TooManyRequestsException({
         325  +
                        let mut tmp = match protocol
         326  +
                            .deserialize_response(response, crate::types::error::TooManyRequestsException::SCHEMA, _cfg)
         327  +
                            .and_then(|mut deser| {
         328  +
                                crate::types::error::TooManyRequestsException::deserialize_with_response(
         329  +
                                    &mut *deser,
         330  +
                                    response.headers(),
         331  +
                                    response.status().into(),
         332  +
                                    body,
         333  +
                                )
         334  +
                            }) {
         335  +
                            ::std::result::Result::Ok(val) => val,
         336  +
                            ::std::result::Result::Err(e) => {
         337  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         338  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         339  +
                                ))
         340  +
                            }
         341  +
                        };
         342  +
                        tmp.meta = generic;
         343  +
                        if tmp.message.is_none() {
         344  +
                            tmp.message = _error_message;
         345  +
                        }
         346  +
                        tmp
         347  +
                    })
         348  +
                }
         349  +
                _ => crate::operation::delete_function_code_signing_config::DeleteFunctionCodeSigningConfigError::generic(generic),
         350  +
            };
         351  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         352  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         353  +
            ))
         354  +
        } else {
         355  +
            let protocol = _cfg
         356  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         357  +
                .expect("a SharedClientProtocol is required");
         358  +
            let mut deser = protocol
         359  +
                .deserialize_response(response, DeleteFunctionCodeSigningConfig::OUTPUT_SCHEMA, _cfg)
         360  +
                .map_err(|e| {
         361  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         362  +
                })?;
         363  +
            let body = response.body().bytes().expect("body loaded");
         364  +
            let output = crate::operation::delete_function_code_signing_config::DeleteFunctionCodeSigningConfigOutput::deserialize_with_response(
         365  +
                &mut *deser,
         366  +
                response.headers(),
         367  +
                response.status().into(),
         368  +
                body,
         369  +
            )
         370  +
            .map_err(|e| {
         371  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         372  +
            })?;
         373  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         374  +
        }
  172    375   
    }
  173    376   
}
  174    377   
#[derive(Debug)]
  175    378   
struct DeleteFunctionCodeSigningConfigRequestSerializer;
  176    379   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DeleteFunctionCodeSigningConfigRequestSerializer {
  177    380   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  178    381   
    fn serialize_input(
  179    382   
        &self,
  180    383   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  181    384   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  182    385   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  183    386   
        let input = input
  184    387   
            .downcast::<crate::operation::delete_function_code_signing_config::DeleteFunctionCodeSigningConfigInput>()
  185    388   
            .expect("correct type");
  186         -
        let _header_serialization_settings = _cfg
  187         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  188         -
            .cloned()
  189         -
            .unwrap_or_default();
  190         -
        let mut request_builder = {
  191         -
            #[allow(clippy::uninlined_format_args)]
  192         -
            fn uri_base(
  193         -
                _input: &crate::operation::delete_function_code_signing_config::DeleteFunctionCodeSigningConfigInput,
  194         -
                output: &mut ::std::string::String,
  195         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  196         -
                use ::std::fmt::Write as _;
  197         -
                let input_1 = &_input.function_name;
  198         -
                let input_1 = input_1
  199         -
                    .as_ref()
  200         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("function_name", "cannot be empty or unset"))?;
  201         -
                let function_name = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  202         -
                if function_name.is_empty() {
  203         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  204         -
                        "function_name",
  205         -
                        "cannot be empty or unset",
  206         -
                    ));
  207         -
                }
  208         -
                ::std::write!(
  209         -
                    output,
  210         -
                    "/2020-06-30/functions/{FunctionName}/code-signing-config",
  211         -
                    FunctionName = function_name
         389  +
        let protocol = _cfg
         390  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         391  +
            .expect("a SharedClientProtocol is required");
         392  +
        if protocol.supports_http_bindings() {
         393  +
            let mut request = protocol
         394  +
                .serialize_body(&input, DeleteFunctionCodeSigningConfig::INPUT_SCHEMA, "", _cfg)
         395  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         396  +
            {
         397  +
                let mut uri = "/2020-06-30/functions/{FunctionName}/code-signing-config".to_string();
         398  +
                let mut query_params: Vec<(String, String)> = Vec::new();
         399  +
                if let Some(ref val) = input.function_name {
         400  +
                    uri = uri.replace("{FunctionName}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
         401  +
                }
         402  +
                if !query_params.is_empty() {
         403  +
                    uri.push(if uri.contains('?') { '&' } else { '?' });
         404  +
                    let pairs: Vec<String> = query_params
         405  +
                        .iter()
         406  +
                        .map(|(k, v)| {
         407  +
                            format!(
         408  +
                                "{}={}",
         409  +
                                ::aws_smithy_schema::http_protocol::percent_encode(k),
         410  +
                                ::aws_smithy_schema::http_protocol::percent_encode(v)
  212    411   
                            )
  213         -
                .expect("formatting should succeed");
  214         -
                ::std::result::Result::Ok(())
         412  +
                        })
         413  +
                        .collect();
         414  +
                    uri.push_str(&pairs.join("&"));
  215    415   
                }
  216         -
            #[allow(clippy::unnecessary_wraps)]
  217         -
            fn update_http_builder(
  218         -
                input: &crate::operation::delete_function_code_signing_config::DeleteFunctionCodeSigningConfigInput,
  219         -
                builder: ::http_1x::request::Builder,
  220         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  221         -
                let mut uri = ::std::string::String::new();
  222         -
                uri_base(input, &mut uri)?;
  223         -
                ::std::result::Result::Ok(builder.method("DELETE").uri(uri))
  224         -
            }
  225         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  226         -
            builder
  227         -
        };
  228         -
        let body = ::aws_smithy_types::body::SdkBody::from("");
         416  +
                request.set_uri(uri.as_str()).expect("valid URI");
         417  +
            }
         418  +
         419  +
            return ::std::result::Result::Ok(request);
         420  +
        } else {
         421  +
            let mut request = protocol
         422  +
                .serialize_request(&input, DeleteFunctionCodeSigningConfig::INPUT_SCHEMA, "", _cfg)
         423  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
  229    424   
  230         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         425  +
            return ::std::result::Result::Ok(request);
         426  +
        }
  231    427   
    }
  232    428   
}
  233    429   
#[derive(Debug)]
  234    430   
struct DeleteFunctionCodeSigningConfigEndpointParamsInterceptor;
  235    431   
  236    432   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DeleteFunctionCodeSigningConfigEndpointParamsInterceptor {
  237    433   
    fn name(&self) -> &'static str {
  238    434   
        "DeleteFunctionCodeSigningConfigEndpointParamsInterceptor"
  239    435   
    }
  240    436   

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/delete_function_code_signing_config/_delete_function_code_signing_config_input.rs

@@ -17,17 +129,146 @@
   37     37   
    "com.amazonaws.lambda.synthetic",
   38     38   
    "DeleteFunctionCodeSigningConfigInput",
   39     39   
);
   40     40   
static DELETEFUNCTIONCODESIGNINGCONFIGINPUT_MEMBER_FUNCTION_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   41     41   
    ::aws_smithy_schema::ShapeId::from_static(
   42     42   
        "com.amazonaws.lambda.synthetic#DeleteFunctionCodeSigningConfigInput$FunctionName",
   43     43   
        "com.amazonaws.lambda.synthetic",
   44     44   
        "DeleteFunctionCodeSigningConfigInput",
   45     45   
    ),
   46     46   
    ::aws_smithy_schema::ShapeType::String,
   47         -
    "function_name",
          47  +
    "FunctionName",
   48     48   
    0,
   49     49   
)
   50     50   
.with_http_label();
   51     51   
static DELETEFUNCTIONCODESIGNINGCONFIGINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   52     52   
    DELETEFUNCTIONCODESIGNINGCONFIGINPUT_SCHEMA_ID,
   53     53   
    ::aws_smithy_schema::ShapeType::Structure,
   54     54   
    &[&DELETEFUNCTIONCODESIGNINGCONFIGINPUT_MEMBER_FUNCTION_NAME],
   55         -
);
          55  +
)
          56  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          57  +
    "DELETE",
          58  +
    "/2020-06-30/functions/{FunctionName}/code-signing-config",
          59  +
    Some(204),
          60  +
));
   56     61   
impl DeleteFunctionCodeSigningConfigInput {
   57     62   
    /// The schema for this shape.
   58     63   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEFUNCTIONCODESIGNINGCONFIGINPUT_SCHEMA;
   59     64   
}
   60     65   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteFunctionCodeSigningConfigInput {
   61     66   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   62     67   
    fn serialize_members(
   63     68   
        &self,
   64     69   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   65     70   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   66     71   
        if let Some(ref val) = self.function_name {
   67     72   
            ser.write_string(&DELETEFUNCTIONCODESIGNINGCONFIGINPUT_MEMBER_FUNCTION_NAME, val)?;
   68     73   
        }
   69     74   
        Ok(())
   70     75   
    }
   71     76   
}
   72     77   
impl DeleteFunctionCodeSigningConfigInput {
   73     78   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   74         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   75         -
        deserializer: &mut D,
          79  +
    pub fn deserialize(
          80  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   76     81   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   77     82   
        #[allow(unused_variables, unused_mut)]
   78     83   
        let mut builder = Self::builder();
   79     84   
        #[allow(
   80     85   
            unused_variables,
   81     86   
            unreachable_code,
   82     87   
            clippy::single_match,
   83     88   
            clippy::match_single_binding,
   84     89   
            clippy::diverging_sub_expression
   85     90   
        )]
   86         -
        deserializer.read_struct(&DELETEFUNCTIONCODESIGNINGCONFIGINPUT_SCHEMA, (), |_, member, deser| {
          91  +
        deserializer.read_struct(&DELETEFUNCTIONCODESIGNINGCONFIGINPUT_SCHEMA, &mut |member, deser| {
   87     92   
            match member.member_index() {
   88     93   
                Some(0) => {
   89     94   
                    builder.function_name = Some(deser.read_string(member)?);
   90     95   
                }
   91     96   
                _ => {}
   92     97   
            }
   93     98   
            Ok(())
   94     99   
        })?;
         100  +
        builder.function_name = builder.function_name.or(Some(String::new()));
   95    101   
        builder
   96    102   
            .build()
   97    103   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   98    104   
    }
   99    105   
}
         106  +
impl DeleteFunctionCodeSigningConfigInput {
         107  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         108  +
    pub fn deserialize_with_response(
         109  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         110  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         111  +
        _status: u16,
         112  +
        _body: &[u8],
         113  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         114  +
        Self::deserialize(deserializer)
         115  +
    }
         116  +
}
  100    117   
impl DeleteFunctionCodeSigningConfigInput {
  101    118   
    /// Creates a new builder-style object to manufacture [`DeleteFunctionCodeSigningConfigInput`](crate::operation::delete_function_code_signing_config::DeleteFunctionCodeSigningConfigInput).
  102    119   
    pub fn builder() -> crate::operation::delete_function_code_signing_config::builders::DeleteFunctionCodeSigningConfigInputBuilder {
  103    120   
        crate::operation::delete_function_code_signing_config::builders::DeleteFunctionCodeSigningConfigInputBuilder::default()
  104    121   
    }
  105    122   
}
  106    123   
  107    124   
/// A builder for [`DeleteFunctionCodeSigningConfigInput`](crate::operation::delete_function_code_signing_config::DeleteFunctionCodeSigningConfigInput).
  108    125   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  109    126   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/delete_function_code_signing_config/_delete_function_code_signing_config_output.rs

@@ -1,1 +83,111 @@
    3      3   
#[non_exhaustive]
    4      4   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    5      5   
pub struct DeleteFunctionCodeSigningConfigOutput {
    6      6   
    _request_id: Option<String>,
    7      7   
}
    8      8   
static DELETEFUNCTIONCODESIGNINGCONFIGOUTPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    9      9   
    "com.amazonaws.lambda.synthetic#DeleteFunctionCodeSigningConfigOutput",
   10     10   
    "com.amazonaws.lambda.synthetic",
   11     11   
    "DeleteFunctionCodeSigningConfigOutput",
   12     12   
);
          13  +
static DELETEFUNCTIONCODESIGNINGCONFIGOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          14  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          15  +
    ::aws_smithy_schema::ShapeType::String,
          16  +
    "request_id",
          17  +
    0,
          18  +
)
          19  +
.with_http_header("x-amzn-requestid");
   13     20   
static DELETEFUNCTIONCODESIGNINGCONFIGOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   14     21   
    DELETEFUNCTIONCODESIGNINGCONFIGOUTPUT_SCHEMA_ID,
   15     22   
    ::aws_smithy_schema::ShapeType::Structure,
   16         -
    &[],
          23  +
    &[&DELETEFUNCTIONCODESIGNINGCONFIGOUTPUT_MEMBER__REQUEST_ID],
   17     24   
);
   18     25   
impl DeleteFunctionCodeSigningConfigOutput {
   19     26   
    /// The schema for this shape.
   20     27   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEFUNCTIONCODESIGNINGCONFIGOUTPUT_SCHEMA;
   21     28   
}
   22     29   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteFunctionCodeSigningConfigOutput {
   23     30   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   24     31   
    fn serialize_members(
   25     32   
        &self,
   26     33   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   27     34   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   28     35   
        Ok(())
   29     36   
    }
   30     37   
}
   31     38   
impl DeleteFunctionCodeSigningConfigOutput {
   32     39   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   33         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   34         -
        deserializer: &mut D,
          40  +
    pub fn deserialize(
          41  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   35     42   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   36     43   
        #[allow(unused_variables, unused_mut)]
   37     44   
        let mut builder = Self::builder();
   38     45   
        #[allow(
   39     46   
            unused_variables,
   40     47   
            unreachable_code,
   41     48   
            clippy::single_match,
   42     49   
            clippy::match_single_binding,
   43     50   
            clippy::diverging_sub_expression
   44     51   
        )]
   45         -
        deserializer.read_struct(&DELETEFUNCTIONCODESIGNINGCONFIGOUTPUT_SCHEMA, (), |_, member, deser| {
          52  +
        deserializer.read_struct(&DELETEFUNCTIONCODESIGNINGCONFIGOUTPUT_SCHEMA, &mut |member, deser| {
   46     53   
            match member.member_index() {
          54  +
                Some(0) => {
          55  +
                    builder._request_id = Some(deser.read_string(member)?);
          56  +
                }
   47     57   
                _ => {}
   48     58   
            }
   49     59   
            Ok(())
   50     60   
        })?;
   51     61   
        Ok(builder.build())
   52     62   
    }
   53     63   
}
          64  +
impl DeleteFunctionCodeSigningConfigOutput {
          65  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          66  +
    /// Header-bound members are read directly from headers, avoiding runtime
          67  +
    /// member iteration overhead. Body members are read via the deserializer.
          68  +
    pub fn deserialize_with_response(
          69  +
        _deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          70  +
        headers: &::aws_smithy_runtime_api::http::Headers,
          71  +
        _status: u16,
          72  +
        _body: &[u8],
          73  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          74  +
        #[allow(unused_variables, unused_mut)]
          75  +
        let mut builder = Self::builder();
          76  +
        if let Some(val) = headers.get("x-amzn-requestid") {
          77  +
            builder._request_id = Some(val.to_string());
          78  +
        }
          79  +
        Ok(builder.build())
          80  +
    }
          81  +
}
   54     82   
impl ::aws_types::request_id::RequestId for DeleteFunctionCodeSigningConfigOutput {
   55     83   
    fn request_id(&self) -> Option<&str> {
   56     84   
        self._request_id.as_deref()
   57     85   
    }
   58     86   
}
   59     87   
impl DeleteFunctionCodeSigningConfigOutput {
   60     88   
    /// Creates a new builder-style object to manufacture [`DeleteFunctionCodeSigningConfigOutput`](crate::operation::delete_function_code_signing_config::DeleteFunctionCodeSigningConfigOutput).
   61     89   
    pub fn builder() -> crate::operation::delete_function_code_signing_config::builders::DeleteFunctionCodeSigningConfigOutputBuilder {
   62     90   
        crate::operation::delete_function_code_signing_config::builders::DeleteFunctionCodeSigningConfigOutputBuilder::default()
   63     91   
    }