File tree 2 files changed +22
-3
lines changed
packages/parser/src/schemas
2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,13 @@ export {
60
60
SnsSqsNotificationSchema ,
61
61
SnsNotificationSchema ,
62
62
} from './sns.js' ;
63
- export { SqsSchema , SqsRecordSchema } from './sqs.js' ;
63
+ export {
64
+ SqsSchema ,
65
+ SqsRecordSchema ,
66
+ SqsMsgAttributeSchema ,
67
+ SqsMsgAttributeDataTypeSchema ,
68
+ SqsAttributesSchema ,
69
+ } from './sqs.js' ;
64
70
export { TransferFamilySchema } from './transfer-family.js' ;
65
71
export { VpcLatticeSchema } from './vpc-lattice.js' ;
66
72
export { VpcLatticeV2Schema } from './vpc-latticev2.js' ;
Original file line number Diff line number Diff line change 1
1
import { z } from 'zod' ;
2
2
3
+ const SqsMsgAttributeDataTypeSchema = z . union ( [
4
+ z . literal ( 'String' ) ,
5
+ z . literal ( 'Number' ) ,
6
+ z . literal ( 'Binary' ) ,
7
+ z . string ( ) ,
8
+ ] ) ;
9
+
3
10
const SqsMsgAttributeSchema = z . object ( {
4
11
stringValue : z . string ( ) . optional ( ) ,
5
12
binaryValue : z . string ( ) . optional ( ) ,
6
13
stringListValues : z . array ( z . string ( ) ) . optional ( ) ,
7
14
binaryListValues : z . array ( z . string ( ) ) . optional ( ) ,
8
- dataType : z . string ( ) ,
15
+ dataType : SqsMsgAttributeDataTypeSchema ,
9
16
} ) ;
10
17
11
18
const SqsAttributesSchema = z . object ( {
@@ -96,4 +103,10 @@ const SqsSchema = z.object({
96
103
Records : z . array ( SqsRecordSchema ) . min ( 1 ) ,
97
104
} ) ;
98
105
99
- export { SqsSchema , SqsRecordSchema } ;
106
+ export {
107
+ SqsSchema ,
108
+ SqsRecordSchema ,
109
+ SqsMsgAttributeSchema ,
110
+ SqsMsgAttributeDataTypeSchema ,
111
+ SqsAttributesSchema ,
112
+ } ;
You can’t perform that action at this time.
0 commit comments