77
88
99from . import AWSObject , AWSProperty , PropsDictType , Tags
10+ from .validators import boolean
1011
1112
1213class X12Details (AWSProperty ):
@@ -22,7 +23,7 @@ class X12Details(AWSProperty):
2223
2324class EdiType (AWSProperty ):
2425 """
25- `EdiType <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-transformer -editype.html>`__
26+ `EdiType <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-capability -editype.html>`__
2627 """
2728
2829 props : PropsDictType = {
@@ -47,6 +48,7 @@ class EdiConfiguration(AWSProperty):
4748 """
4849
4950 props : PropsDictType = {
51+ "CapabilityDirection" : (str , False ),
5052 "InputLocation" : (S3Location , True ),
5153 "OutputLocation" : (S3Location , True ),
5254 "TransformerId" : (str , True ),
@@ -80,6 +82,89 @@ class Capability(AWSObject):
8082 }
8183
8284
85+ class X12Delimiters (AWSProperty ):
86+ """
87+ `X12Delimiters <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-partnership-x12delimiters.html>`__
88+ """
89+
90+ props : PropsDictType = {
91+ "ComponentSeparator" : (str , False ),
92+ "DataElementSeparator" : (str , False ),
93+ "SegmentTerminator" : (str , False ),
94+ }
95+
96+
97+ class X12FunctionalGroupHeaders (AWSProperty ):
98+ """
99+ `X12FunctionalGroupHeaders <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-partnership-x12functionalgroupheaders.html>`__
100+ """
101+
102+ props : PropsDictType = {
103+ "ApplicationReceiverCode" : (str , False ),
104+ "ApplicationSenderCode" : (str , False ),
105+ "ResponsibleAgencyCode" : (str , False ),
106+ }
107+
108+
109+ class X12InterchangeControlHeaders (AWSProperty ):
110+ """
111+ `X12InterchangeControlHeaders <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-partnership-x12interchangecontrolheaders.html>`__
112+ """
113+
114+ props : PropsDictType = {
115+ "AcknowledgmentRequestedCode" : (str , False ),
116+ "ReceiverId" : (str , False ),
117+ "ReceiverIdQualifier" : (str , False ),
118+ "RepetitionSeparator" : (str , False ),
119+ "SenderId" : (str , False ),
120+ "SenderIdQualifier" : (str , False ),
121+ "UsageIndicatorCode" : (str , False ),
122+ }
123+
124+
125+ class X12OutboundEdiHeaders (AWSProperty ):
126+ """
127+ `X12OutboundEdiHeaders <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-partnership-x12outboundediheaders.html>`__
128+ """
129+
130+ props : PropsDictType = {
131+ "Delimiters" : (X12Delimiters , False ),
132+ "FunctionalGroupHeaders" : (X12FunctionalGroupHeaders , False ),
133+ "InterchangeControlHeaders" : (X12InterchangeControlHeaders , False ),
134+ "ValidateEdi" : (boolean , False ),
135+ }
136+
137+
138+ class X12Envelope (AWSProperty ):
139+ """
140+ `X12Envelope <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-partnership-x12envelope.html>`__
141+ """
142+
143+ props : PropsDictType = {
144+ "Common" : (X12OutboundEdiHeaders , False ),
145+ }
146+
147+
148+ class OutboundEdiOptions (AWSProperty ):
149+ """
150+ `OutboundEdiOptions <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-partnership-outboundedioptions.html>`__
151+ """
152+
153+ props : PropsDictType = {
154+ "X12" : (X12Envelope , True ),
155+ }
156+
157+
158+ class CapabilityOptions (AWSProperty ):
159+ """
160+ `CapabilityOptions <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-partnership-capabilityoptions.html>`__
161+ """
162+
163+ props : PropsDictType = {
164+ "OutboundEdi" : (OutboundEdiOptions , False ),
165+ }
166+
167+
83168class Partnership (AWSObject ):
84169 """
85170 `Partnership <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-b2bi-partnership.html>`__
@@ -88,7 +173,8 @@ class Partnership(AWSObject):
88173 resource_type = "AWS::B2BI::Partnership"
89174
90175 props : PropsDictType = {
91- "Capabilities" : ([str ], False ),
176+ "Capabilities" : ([str ], True ),
177+ "CapabilityOptions" : (CapabilityOptions , False ),
92178 "Email" : (str , True ),
93179 "Name" : (str , True ),
94180 "Phone" : (str , False ),
@@ -114,6 +200,71 @@ class Profile(AWSObject):
114200 }
115201
116202
203+ class FormatOptions (AWSProperty ):
204+ """
205+ `FormatOptions <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-transformer-formatoptions.html>`__
206+ """
207+
208+ props : PropsDictType = {
209+ "X12" : (X12Details , True ),
210+ }
211+
212+
213+ class InputConversion (AWSProperty ):
214+ """
215+ `InputConversion <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-transformer-inputconversion.html>`__
216+ """
217+
218+ props : PropsDictType = {
219+ "FormatOptions" : (FormatOptions , False ),
220+ "FromFormat" : (str , True ),
221+ }
222+
223+
224+ class Mapping (AWSProperty ):
225+ """
226+ `Mapping <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-transformer-mapping.html>`__
227+ """
228+
229+ props : PropsDictType = {
230+ "Template" : (str , False ),
231+ "TemplateLanguage" : (str , True ),
232+ }
233+
234+
235+ class OutputConversion (AWSProperty ):
236+ """
237+ `OutputConversion <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-transformer-outputconversion.html>`__
238+ """
239+
240+ props : PropsDictType = {
241+ "FormatOptions" : (FormatOptions , False ),
242+ "ToFormat" : (str , True ),
243+ }
244+
245+
246+ class SampleDocumentKeys (AWSProperty ):
247+ """
248+ `SampleDocumentKeys <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-transformer-sampledocumentkeys.html>`__
249+ """
250+
251+ props : PropsDictType = {
252+ "Input" : (str , False ),
253+ "Output" : (str , False ),
254+ }
255+
256+
257+ class SampleDocuments (AWSProperty ):
258+ """
259+ `SampleDocuments <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-transformer-sampledocuments.html>`__
260+ """
261+
262+ props : PropsDictType = {
263+ "BucketName" : (str , True ),
264+ "Keys" : ([SampleDocumentKeys ], True ),
265+ }
266+
267+
117268class Transformer (AWSObject ):
118269 """
119270 `Transformer <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-b2bi-transformer.html>`__
@@ -122,11 +273,11 @@ class Transformer(AWSObject):
122273 resource_type = "AWS::B2BI::Transformer"
123274
124275 props : PropsDictType = {
125- "EdiType" : (EdiType , True ),
126- "FileFormat" : (str , True ),
127- "MappingTemplate" : (str , True ),
276+ "InputConversion" : (InputConversion , False ),
277+ "Mapping" : (Mapping , False ),
128278 "Name" : (str , True ),
129- "SampleDocument" : (str , False ),
279+ "OutputConversion" : (OutputConversion , False ),
280+ "SampleDocuments" : (SampleDocuments , False ),
130281 "Status" : (str , True ),
131282 "Tags" : (Tags , False ),
132283 }
0 commit comments