import * as core from "@terrascript/core"; export interface InvocationArgs extends core.ResourceArgs { /** * (Required) Name of the lambda function. */ functionName: string | core.StringOut; /** * (Required) JSON payload to the lambda function. */ input: string | core.StringOut; /** * (Optional) Qualifier (i.e., version) of the lambda function. Defaults to `$LATEST`. */ qualifier?: string | core.StringOut; /** * (Optional) Map of arbitrary keys and values that, when changed, will trigger a re-invocation. To for * ce a re-invocation without changing these keys/values, use the [`terraform taint` command](https://w * ww.terraform.io/docs/commands/taint.html). */ triggers?: core.Map | core.MapOut; } export class Invocation extends core.Resource { /** * (Required) Name of the lambda function. */ @core.attr(String) public functionName!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) JSON payload to the lambda function. */ @core.attr(String) public input!: string | core.StringOut; /** * (Optional) Qualifier (i.e., version) of the lambda function. Defaults to `$LATEST`. */ @core.attr(String) public qualifier?: string | core.StringOut; /** * String result of the lambda function invocation. */ @core.attr(String, { computed: true }) public result!: string | core.StringOut; /** * (Optional) Map of arbitrary keys and values that, when changed, will trigger a re-invocation. To for * ce a re-invocation without changing these keys/values, use the [`terraform taint` command](https://w * ww.terraform.io/docs/commands/taint.html). */ @core.attr(String, { kind: "map" }) public triggers?: core.Map | core.MapOut; constructor(name: string, args?: InvocationArgs) { super(name, "aws_lambda_invocation", args); } public override getNamespace(): string { return "aws_lambda"; } }