Hierarchy

Constructors

Methods

Constructors

Methods

  • Send a message to Amazon SQS

    Parameters

    • sqsData: AWSSQSData

      The AWS SQS object containing all necessary information

    Returns Promise<string>

    A promise that resolves to a success message

    Remarks

    This method requires valid AWS credentials and SQS queue information. For enhanced security, it's strongly recommended to store these credentials using TagoIO Secrets rather than hardcoding them.

    See

    Example

    const environment = Utils.envToJson(context.environment);
    const sqsService = new Services({ token: context.token }).aws_sqs;
    const result = await sqsService.sendMessage({
    sqs_secret: environment.AWS_SQS_TAGOIO_SECRET,
    data: { variable: "temperature", value: 1 }
    });
    console.log(result);