CfnTransformerLogsMixin
- class aws_cdk.mixins_preview.aws_b2bi.mixins.CfnTransformerLogsMixin(log_type, log_delivery)
Bases:
MixinCreates a transformer. AWS B2B Data Interchange currently supports two scenarios:.
Inbound EDI : the AWS customer receives an EDI file from their trading partner. AWS B2B Data Interchange converts this EDI file into a JSON or XML file with a service-defined structure. A mapping template provided by the customer, in JSONata or XSLT format, is optionally applied to this file to produce a JSON or XML file with the structure the customer requires.
Outbound EDI : the AWS customer has a JSON or XML file containing data that they wish to use in an EDI file. A mapping template, provided by the customer (in either JSONata or XSLT format) is applied to this file to generate a JSON or XML file in the service-defined structure. This file is then converted to an EDI file.
The following fields are provided for backwards compatibility only:
fileFormat,mappingTemplate,ediType, andsampleDocument.Use the
mappingdata type in place ofmappingTemplateandfileFormatUse the
sampleDocumentsdata type in place ofsampleDocumentUse either the
inputConversionoroutputConversionin place ofediType
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-b2bi-transformer.html
- CloudformationResource:
AWS::B2BI::Transformer
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import aws_logs as logs from aws_cdk.mixins_preview.aws_b2bi import mixins as b2bi_mixins # logs_delivery: logs.ILogsDelivery cfn_transformer_logs_mixin = b2bi_mixins.CfnTransformerLogsMixin("logType", logs_delivery)
Create a mixin to enable vended logs for
AWS::B2BI::Transformer.- Parameters:
log_type (
str) – Type of logs that are getting vended.log_delivery (
ILogsDelivery) – Object in charge of setting up the delivery destination and delivery connection.
Methods
- apply_to(resource)
Apply vended logs configuration to the construct.
- Parameters:
resource (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct (has vendedLogs property).
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- B2_BI_EXECUTION_LOGS = <aws_cdk.mixins_preview.aws_b2bi.mixins.CfnTransformerB2biExecutionLogs object>
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental