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

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

  /**
   * (Required) Client ID (part of OAuth Credentials) obtained via Amazon Developer Account.
   */
  clientId: string | core.StringOut;

  /**
   * (Required) Client Secret (part of OAuth Credentials) obtained via Amazon Developer Account.
   */
  clientSecret: string | core.StringOut;

  /**
   * (Optional) Specifies whether to enable the channel. Defaults to `true`.
   */
  enabled?: boolean | core.BooleanOut;
}

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

  /**
   * (Required) Client ID (part of OAuth Credentials) obtained via Amazon Developer Account.
   */
  @core.attr(String)
  public clientId!: string | core.StringOut;

  /**
   * (Required) Client Secret (part of OAuth Credentials) obtained via Amazon Developer Account.
   */
  @core.attr(String)
  public clientSecret!: string | core.StringOut;

  /**
   * (Optional) Specifies whether to enable the channel. Defaults to `true`.
   */
  @core.attr(Boolean)
  public enabled?: boolean | core.BooleanOut;

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

  constructor(name: string, args?: AdmChannelArgs) {
    super(name, "aws_pinpoint_adm_channel", args);
  }

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