import * as core from "@terrascript/core";

export interface DsLambdaFunctionAssociationArgs {
  /**
   * (Required) Amazon Resource Name (ARN) of the Lambda Function, omitting any version or alias qualifie
   * r.
   */
  functionArn: string | core.StringOut;

  /**
   * (Required) The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of
   * the instance.
   */
  instanceId: string | core.StringOut;
}

export class DsLambdaFunctionAssociation extends core.Data<DsLambdaFunctionAssociationArgs> {
  /**
   * (Required) Amazon Resource Name (ARN) of the Lambda Function, omitting any version or alias qualifie
   * r.
   */
  @core.attr(String)
  public functionArn!: string | core.StringOut;

  /**
   * AWS Region.
   */
  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  /**
   * (Required) The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of
   * the instance.
   */
  @core.attr(String)
  public instanceId!: string | core.StringOut;

  constructor(name: string, args?: DsLambdaFunctionAssociationArgs) {
    super(name, "aws_connect_lambda_function_association", args);
  }

  public override getNamespace(): string {
    return "aws_connect";
  }
}
