Skip to content

Latest commit

 

History

History
67 lines (50 loc) · 2.49 KB

expressions.md

File metadata and controls

67 lines (50 loc) · 2.49 KB

concat strings

Open in playground

export const main = asl.deploy.asStateMachine(async () => {
  return {
    a: "hello" + " world ",
    b: "a" + "b" + "c",
    c: `a${"b"}c`,
    d: `n=${42};`,
  };
});

numbers

Open in playground

export const main = asl.deploy.asStateMachine(async () => {
  return {
    a: 10 + 10,
    b: 30 - 10,
    c: 10 * 2,
    d: 40 / 2,
    e: 2 * (4 + 4 * 4),
  };
});

booleans

Open in playground

export const main = asl.deploy.asStateMachine(async () => {
  return {
    a: true,
    b: false,
    c: true || false,
    d: true && false,
    e: true && (false || false),
    f: (true && false) || false || true,
  };
});

parameters

Open in playground

export const main = asl.deploy.asStateMachine(async () => {
  return {
    a: asl.deploy.getParameter("bucketName"),
    b: "s3:::arn:" + asl.deploy.getParameter("bucketName"),
    c: `value -> ${asl.deploy.getParameter("bucketName")} <- value`,
  };
});