import * as core from "@terrascript/core"; export interface DsAliasArgs { /** * (Required) Name of the aliased Lambda function. */ functionName: string | core.StringOut; /** * (Required) Name of the Lambda alias. */ name: string | core.StringOut; } export class DsAlias extends core.Data { /** * The Amazon Resource Name (ARN) identifying the Lambda function alias. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * Description of alias. */ @core.attr(String, { computed: true }) public description!: string | core.StringOut; /** * (Required) Name of the aliased Lambda function. */ @core.attr(String) public functionName!: string | core.StringOut; /** * Lambda function version which the alias uses. */ @core.attr(String, { computed: true }) public functionVersion!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The ARN to be used for invoking Lambda Function from API Gateway - to be used in aws_api_gateway_int * egration's `uri`. */ @core.attr(String, { computed: true }) public invokeArn!: string | core.StringOut; /** * (Required) Name of the Lambda alias. */ @core.attr(String) public name!: string | core.StringOut; constructor(name: string, args?: DsAliasArgs) { super(name, "aws_lambda_alias", args); } public override getNamespace(): string { return "aws_lambda"; } }