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

export interface SmsChannelArgs extends core.ResourceArgs {
  /**
   * (Required) The application ID.
   */
  applicationId: string | core.StringOut;

  /**
   * (Optional) Whether the channel is enabled or disabled. Defaults to `true`.
   */
  enabled?: boolean | core.BooleanOut;

  /**
   * (Optional) Sender identifier of your messages.
   */
  senderId?: string | core.StringOut;

  /**
   * (Optional) The Short Code registered with the phone provider.
   */
  shortCode?: string | core.StringOut;
}

export class SmsChannel extends core.Resource<SmsChannelArgs> {
  /**
   * (Required) The application ID.
   */
  @core.attr(String)
  public applicationId!: string | core.StringOut;

  /**
   * (Optional) Whether the channel is enabled or disabled. Defaults to `true`.
   */
  @core.attr(Boolean)
  public enabled?: boolean | core.BooleanOut;

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

  /**
   * Promotional messages per second that can be sent.
   */
  @core.attr(Number, { computed: true })
  public promotionalMessagesPerSecond!: number | core.NumberOut;

  /**
   * (Optional) Sender identifier of your messages.
   */
  @core.attr(String)
  public senderId?: string | core.StringOut;

  /**
   * (Optional) The Short Code registered with the phone provider.
   */
  @core.attr(String)
  public shortCode?: string | core.StringOut;

  /**
   * Transactional messages per second that can be sent.
   */
  @core.attr(Number, { computed: true })
  public transactionalMessagesPerSecond!: number | core.NumberOut;

  constructor(name: string, args?: SmsChannelArgs) {
    super(name, "aws_pinpoint_sms_channel", args);
  }

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