@@ -8,7 +8,7 @@ use serde_json::Value;
8
8
use std:: collections:: HashMap ;
9
9
10
10
/// `ApiGatewayProxyRequest` contains data coming from the API Gateway proxy
11
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize ) ]
11
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
12
12
#[ serde( rename_all = "camelCase" ) ]
13
13
pub struct ApiGatewayProxyRequest < T1 = Value >
14
14
where
58
58
}
59
59
60
60
/// `ApiGatewayProxyResponse` configures the response to be returned by API Gateway for the request
61
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize ) ]
61
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
62
62
#[ serde( rename_all = "camelCase" ) ]
63
63
pub struct ApiGatewayProxyResponse {
64
64
pub status_code : i64 ,
@@ -76,7 +76,7 @@ pub struct ApiGatewayProxyResponse {
76
76
77
77
/// `ApiGatewayProxyRequestContext` contains the information to identify the AWS account and resources invoking the
78
78
/// Lambda function. It also includes Cognito identity information for the caller.
79
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize , Default ) ]
79
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
80
80
#[ serde( rename_all = "camelCase" ) ]
81
81
pub struct ApiGatewayProxyRequestContext < T1 = Value >
82
82
where
@@ -131,7 +131,7 @@ where
131
131
}
132
132
133
133
/// `ApiGatewayV2httpRequest` contains data coming from the new HTTP API Gateway
134
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize ) ]
134
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
135
135
#[ serde( rename_all = "camelCase" ) ]
136
136
pub struct ApiGatewayV2httpRequest {
137
137
#[ serde( deserialize_with = "deserialize_lambda_string" ) ]
@@ -168,7 +168,7 @@ pub struct ApiGatewayV2httpRequest {
168
168
}
169
169
170
170
/// `ApiGatewayV2httpRequestContext` contains the information to identify the AWS account and resources invoking the Lambda function.
171
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize ) ]
171
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
172
172
#[ serde( rename_all = "camelCase" ) ]
173
173
pub struct ApiGatewayV2httpRequestContext < T1 = Value >
174
174
where
@@ -209,7 +209,7 @@ where
209
209
}
210
210
211
211
/// `ApiGatewayV2httpRequestContextAuthorizerDescription` contains authorizer information for the request context.
212
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize , Default ) ]
212
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
213
213
#[ serde( rename_all = "camelCase" ) ]
214
214
pub struct ApiGatewayV2httpRequestContextAuthorizerDescription < T1 = Value >
215
215
where
@@ -225,7 +225,7 @@ where
225
225
}
226
226
227
227
/// `ApiGatewayV2httpRequestContextAuthorizerJwtDescription` contains JWT authorizer information for the request context.
228
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize ) ]
228
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
229
229
#[ serde( rename_all = "camelCase" ) ]
230
230
pub struct ApiGatewayV2httpRequestContextAuthorizerJwtDescription {
231
231
#[ serde( deserialize_with = "deserialize_lambda_map" ) ]
@@ -235,7 +235,7 @@ pub struct ApiGatewayV2httpRequestContextAuthorizerJwtDescription {
235
235
}
236
236
237
237
/// `ApiGatewayV2httpRequestContextAuthorizerIamDescription` contains IAM information for the request context.
238
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize ) ]
238
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
239
239
#[ serde( rename_all = "camelCase" ) ]
240
240
pub struct ApiGatewayV2httpRequestContextAuthorizerIamDescription {
241
241
#[ serde( deserialize_with = "deserialize_lambda_string" ) ]
@@ -260,7 +260,7 @@ pub struct ApiGatewayV2httpRequestContextAuthorizerIamDescription {
260
260
}
261
261
262
262
/// `ApiGatewayV2httpRequestContextAuthorizerCognitoIdentity` contains Cognito identity information for the request context.
263
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize ) ]
263
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
264
264
#[ serde( rename_all = "camelCase" ) ]
265
265
pub struct ApiGatewayV2httpRequestContextAuthorizerCognitoIdentity {
266
266
pub amr : Vec < String > ,
@@ -273,7 +273,7 @@ pub struct ApiGatewayV2httpRequestContextAuthorizerCognitoIdentity {
273
273
}
274
274
275
275
/// `ApiGatewayV2httpRequestContextHttpDescription` contains HTTP information for the request context.
276
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize ) ]
276
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
277
277
#[ serde( rename_all = "camelCase" ) ]
278
278
pub struct ApiGatewayV2httpRequestContextHttpDescription {
279
279
#[ serde( with = "http_method" ) ]
@@ -293,7 +293,7 @@ pub struct ApiGatewayV2httpRequestContextHttpDescription {
293
293
}
294
294
295
295
/// `ApiGatewayV2httpResponse` configures the response to be returned by API Gateway V2 for the request
296
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize ) ]
296
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
297
297
#[ serde( rename_all = "camelCase" ) ]
298
298
pub struct ApiGatewayV2httpResponse {
299
299
pub status_code : i64 ,
@@ -311,7 +311,7 @@ pub struct ApiGatewayV2httpResponse {
311
311
}
312
312
313
313
/// `ApiGatewayRequestIdentity` contains identity information for the request caller.
314
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize , Default ) ]
314
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
315
315
#[ serde( rename_all = "camelCase" ) ]
316
316
pub struct ApiGatewayRequestIdentity {
317
317
#[ serde( deserialize_with = "deserialize_lambda_string" ) ]
@@ -357,7 +357,7 @@ pub struct ApiGatewayRequestIdentity {
357
357
}
358
358
359
359
/// `ApiGatewayWebsocketProxyRequest` contains data coming from the API Gateway proxy
360
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize ) ]
360
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
361
361
#[ serde( rename_all = "camelCase" ) ]
362
362
pub struct ApiGatewayWebsocketProxyRequest < T1 = Value , T2 = Value >
363
363
where
@@ -413,7 +413,7 @@ where
413
413
/// `ApiGatewayWebsocketProxyRequestContext` contains the information to identify
414
414
/// the AWS account and resources invoking the Lambda function. It also includes
415
415
/// Cognito identity information for the caller.
416
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize , Default ) ]
416
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
417
417
#[ serde( rename_all = "camelCase" ) ]
418
418
pub struct ApiGatewayWebsocketProxyRequestContext < T1 = Value , T2 = Value >
419
419
where
@@ -488,7 +488,7 @@ where
488
488
}
489
489
490
490
/// `ApiGatewayCustomAuthorizerRequestTypeRequestIdentity` contains identity information for the request caller including certificate information if using mTLS.
491
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize ) ]
491
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
492
492
#[ serde( rename_all = "camelCase" ) ]
493
493
pub struct ApiGatewayCustomAuthorizerRequestTypeRequestIdentity {
494
494
#[ serde( deserialize_with = "deserialize_lambda_string" ) ]
@@ -505,7 +505,7 @@ pub struct ApiGatewayCustomAuthorizerRequestTypeRequestIdentity {
505
505
}
506
506
507
507
/// `ApiGatewayCustomAuthorizerRequestTypeRequestIdentityClientCert` contains certificate information for the request caller if using mTLS.
508
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize ) ]
508
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
509
509
#[ serde( rename_all = "camelCase" ) ]
510
510
pub struct ApiGatewayCustomAuthorizerRequestTypeRequestIdentityClientCert {
511
511
#[ serde( deserialize_with = "deserialize_lambda_string" ) ]
@@ -526,7 +526,7 @@ pub struct ApiGatewayCustomAuthorizerRequestTypeRequestIdentityClientCert {
526
526
}
527
527
528
528
/// `ApiGatewayCustomAuthorizerRequestTypeRequestIdentityClientCertValidity` contains certificate validity information for the request caller if using mTLS.
529
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize ) ]
529
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
530
530
#[ serde( rename_all = "camelCase" ) ]
531
531
pub struct ApiGatewayCustomAuthorizerRequestTypeRequestIdentityClientCertValidity {
532
532
#[ serde( deserialize_with = "deserialize_lambda_string" ) ]
@@ -538,15 +538,15 @@ pub struct ApiGatewayCustomAuthorizerRequestTypeRequestIdentityClientCertValidit
538
538
}
539
539
540
540
/// `ApiGatewayV2httpRequestContextAuthentication` contains authentication context information for the request caller including client certificate information if using mTLS.
541
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize ) ]
541
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
542
542
#[ serde( rename_all = "camelCase" ) ]
543
543
pub struct ApiGatewayV2httpRequestContextAuthentication {
544
544
#[ serde( default ) ]
545
545
pub client_cert : Option < ApiGatewayV2httpRequestContextAuthenticationClientCert > ,
546
546
}
547
547
548
548
/// `ApiGatewayV2httpRequestContextAuthenticationClientCert` contains client certificate information for the request caller if using mTLS.
549
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize ) ]
549
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
550
550
#[ serde( rename_all = "camelCase" ) ]
551
551
pub struct ApiGatewayV2httpRequestContextAuthenticationClientCert {
552
552
#[ serde( deserialize_with = "deserialize_lambda_string" ) ]
@@ -567,7 +567,7 @@ pub struct ApiGatewayV2httpRequestContextAuthenticationClientCert {
567
567
}
568
568
569
569
/// `ApiGatewayV2httpRequestContextAuthenticationClientCertValidity` contains client certificate validity information for the request caller if using mTLS.
570
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize ) ]
570
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
571
571
#[ serde( rename_all = "camelCase" ) ]
572
572
pub struct ApiGatewayV2httpRequestContextAuthenticationClientCertValidity {
573
573
#[ serde( deserialize_with = "deserialize_lambda_string" ) ]
@@ -578,7 +578,7 @@ pub struct ApiGatewayV2httpRequestContextAuthenticationClientCertValidity {
578
578
pub not_before : Option < String > ,
579
579
}
580
580
581
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize ) ]
581
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
582
582
#[ serde( rename_all = "camelCase" ) ]
583
583
pub struct ApiGatewayV2CustomAuthorizerV1RequestTypeRequestContext {
584
584
#[ serde( deserialize_with = "deserialize_lambda_string" ) ]
@@ -608,7 +608,7 @@ pub struct ApiGatewayV2CustomAuthorizerV1RequestTypeRequestContext {
608
608
pub apiid : Option < String > ,
609
609
}
610
610
611
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize ) ]
611
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
612
612
#[ serde( rename_all = "camelCase" ) ]
613
613
pub struct ApiGatewayV2CustomAuthorizerV1Request {
614
614
#[ serde( deserialize_with = "deserialize_lambda_string" ) ]
@@ -650,7 +650,7 @@ pub struct ApiGatewayV2CustomAuthorizerV1Request {
650
650
pub request_context : ApiGatewayV2CustomAuthorizerV1RequestTypeRequestContext ,
651
651
}
652
652
653
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize ) ]
653
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
654
654
#[ serde( rename_all = "camelCase" ) ]
655
655
pub struct ApiGatewayV2CustomAuthorizerV2Request {
656
656
#[ serde( deserialize_with = "deserialize_lambda_string" ) ]
@@ -691,7 +691,7 @@ pub struct ApiGatewayV2CustomAuthorizerV2Request {
691
691
692
692
/// `ApiGatewayCustomAuthorizerContext` represents the expected format of an API Gateway custom authorizer response.
693
693
/// Deprecated. Code should be updated to use the Authorizer map from APIGatewayRequestIdentity. Ex: Authorizer["principalId"]
694
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize ) ]
694
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
695
695
#[ serde( rename_all = "camelCase" ) ]
696
696
pub struct ApiGatewayCustomAuthorizerContext {
697
697
pub principal_id : Option < String > ,
@@ -702,7 +702,7 @@ pub struct ApiGatewayCustomAuthorizerContext {
702
702
}
703
703
704
704
/// `ApiGatewayCustomAuthorizerRequestTypeRequestContext` represents the expected format of an API Gateway custom authorizer response.
705
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize ) ]
705
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
706
706
#[ serde( rename_all = "camelCase" ) ]
707
707
pub struct ApiGatewayCustomAuthorizerRequestTypeRequestContext {
708
708
#[ serde( deserialize_with = "deserialize_lambda_string" ) ]
@@ -737,7 +737,7 @@ pub struct ApiGatewayCustomAuthorizerRequestTypeRequestContext {
737
737
}
738
738
739
739
/// `ApiGatewayCustomAuthorizerRequest` contains data coming in to a custom API Gateway authorizer function.
740
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize ) ]
740
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
741
741
#[ serde( rename_all = "camelCase" ) ]
742
742
pub struct ApiGatewayCustomAuthorizerRequest {
743
743
#[ serde( deserialize_with = "deserialize_lambda_string" ) ]
@@ -753,7 +753,7 @@ pub struct ApiGatewayCustomAuthorizerRequest {
753
753
}
754
754
755
755
/// `ApiGatewayCustomAuthorizerRequestTypeRequest` contains data coming in to a custom API Gateway authorizer function.
756
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize ) ]
756
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
757
757
#[ serde( rename_all = "camelCase" ) ]
758
758
pub struct ApiGatewayCustomAuthorizerRequestTypeRequest {
759
759
#[ serde( deserialize_with = "deserialize_lambda_string" ) ]
@@ -800,7 +800,7 @@ pub struct ApiGatewayCustomAuthorizerRequestTypeRequest {
800
800
}
801
801
802
802
/// `ApiGatewayCustomAuthorizerResponse` represents the expected format of an API Gateway authorization response.
803
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize ) ]
803
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
804
804
#[ serde( rename_all = "camelCase" ) ]
805
805
pub struct ApiGatewayCustomAuthorizerResponse < T1 = Value >
806
806
where
@@ -817,7 +817,7 @@ where
817
817
}
818
818
819
819
/// `ApiGatewayV2CustomAuthorizerSimpleResponse` represents the simple format of an API Gateway V2 authorization response.
820
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize ) ]
820
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
821
821
#[ serde( rename_all = "camelCase" ) ]
822
822
pub struct ApiGatewayV2CustomAuthorizerSimpleResponse < T1 = Value >
823
823
where
@@ -829,7 +829,7 @@ where
829
829
pub context : T1 ,
830
830
}
831
831
832
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize ) ]
832
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
833
833
#[ serde( rename_all = "camelCase" ) ]
834
834
pub struct ApiGatewayV2CustomAuthorizerIamPolicyResponse < T1 = Value >
835
835
where
@@ -845,7 +845,7 @@ where
845
845
}
846
846
847
847
/// `ApiGatewayCustomAuthorizerPolicy` represents an IAM policy
848
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize ) ]
848
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
849
849
#[ serde( rename_all = "camelCase" ) ]
850
850
pub struct ApiGatewayCustomAuthorizerPolicy {
851
851
#[ serde( deserialize_with = "deserialize_lambda_string" ) ]
@@ -857,7 +857,7 @@ pub struct ApiGatewayCustomAuthorizerPolicy {
857
857
}
858
858
859
859
/// `IamPolicyStatement` represents one statement from IAM policy with action, effect and resource
860
- #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize ) ]
860
+ #[ derive( Clone , Debug , Default , Deserialize , PartialEq , Serialize ) ]
861
861
#[ serde( rename_all = "camelCase" ) ]
862
862
pub struct IamPolicyStatement {
863
863
#[ serde( rename = "Action" ) ]
0 commit comments