Skip to main content

transformers

Creates, updates, deletes or gets a transformer resource or lists transformers in a region

Overview

Nametransformers
TypeResource
DescriptionDefinition of AWS::B2BI::Transformer Resource Type
Idaws.b2bi.transformers

Fields

NameDatatypeDescription
created_atstring
edi_typeundefined
file_formatstring
mapping_templatestring
modified_atstring
namestring
sample_documentstring
statusstring
tagsarray
transformer_arnstring
transformer_idstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTEdiType, FileFormat, MappingTemplate, Name, Status, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all transformers in a region.

SELECT
region,
created_at,
edi_type,
file_format,
mapping_template,
modified_at,
name,
sample_document,
status,
tags,
transformer_arn,
transformer_id
FROM aws.b2bi.transformers
WHERE region = 'us-east-1';

Gets all properties from an individual transformer.

SELECT
region,
created_at,
edi_type,
file_format,
mapping_template,
modified_at,
name,
sample_document,
status,
tags,
transformer_arn,
transformer_id
FROM aws.b2bi.transformers
WHERE region = 'us-east-1' AND data__Identifier = '<TransformerId>';

INSERT example

Use the following StackQL query and manifest file to create a new transformer resource, using stack-deploy.

/*+ create */
INSERT INTO aws.b2bi.transformers (
EdiType,
FileFormat,
MappingTemplate,
Name,
Status,
region
)
SELECT
'{{ EdiType }}',
'{{ FileFormat }}',
'{{ MappingTemplate }}',
'{{ Name }}',
'{{ Status }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.b2bi.transformers
WHERE data__Identifier = '<TransformerId>'
AND region = 'us-east-1';

Permissions

To operate on the transformers resource, the following permissions are required:

Create

b2bi:CreateTransformer,
b2bi:TagResource,
b2bi:UpdateTransformer,
logs:CreateLogDelivery,
logs:CreateLogGroup,
logs:CreateLogStream,
logs:DescribeLogGroups,
logs:DescribeLogStreams,
logs:DescribeResourcePolicies,
logs:ListLogDeliveries,
logs:PutLogEvents,
logs:PutResourcePolicy

Read

b2bi:GetTransformer,
b2bi:ListTagsForResource

Update

b2bi:TagResource,
b2bi:UntagResource,
b2bi:UpdateTransformer

Delete

b2bi:DeleteTransformer,
logs:DeleteLogDelivery,
logs:ListLogDeliveries

List

b2bi:ListTransformers