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
Idawscc.b2bi.transformers

Fields

NameDatatypeDescription
created_atstring
edi_typeobject
file_formatstring
input_conversionobject
mappingobject
mapping_templatestringThis shape is deprecated: This is a legacy trait. Please use input-conversion or output-conversion.
modified_atstring
namestring
output_conversionobject
sample_documentstringThis shape is deprecated: This is a legacy trait. Please use input-conversion or output-conversion.
sample_documentsobject
statusstring
tagsarray
transformer_arnstring
transformer_idstring
regionstringAWS region.

For more information, see AWS::B2BI::Transformer.

Methods

NameResourceAccessible byRequired Params
create_resourcetransformersINSERTName, Status, region
delete_resourcetransformersDELETEIdentifier, region
update_resourcetransformersUPDATEIdentifier, PatchDocument, region
list_resourcestransformers_list_onlySELECTregion
get_resourcetransformersSELECTIdentifier, region

SELECT examples

Gets all properties from an individual transformer.

SELECT
region,
created_at,
edi_type,
file_format,
input_conversion,
mapping,
mapping_template,
modified_at,
name,
output_conversion,
sample_document,
sample_documents,
status,
tags,
transformer_arn,
transformer_id
FROM awscc.b2bi.transformers
WHERE
region = '{{ region }}' AND
Identifier = '{{ transformer_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.b2bi.transformers (
Name,
Status,
region
)
SELECT
'{{ name }}',
'{{ status }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

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

/*+ update */
UPDATE awscc.b2bi.transformers
SET PatchDocument = string('{{ {
"EdiType": edi_type,
"FileFormat": file_format,
"InputConversion": input_conversion,
"Mapping": mapping,
"MappingTemplate": mapping_template,
"Name": name,
"OutputConversion": output_conversion,
"SampleDocument": sample_document,
"SampleDocuments": sample_documents,
"Status": status,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ transformer_id }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.b2bi.transformers
WHERE
Identifier = '{{ transformer_id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

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