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

export interface LicenseAssociationArgs extends core.ResourceArgs {
  licenseType: string | core.StringOut;

  workspaceId: string | core.StringOut;
}

export class LicenseAssociation extends core.Resource<LicenseAssociationArgs> {
  @core.attr(String, { computed: true })
  public freeTrialExpiration!: string | core.StringOut;

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

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

  @core.attr(String)
  public licenseType!: string | core.StringOut;

  @core.attr(String)
  public workspaceId!: string | core.StringOut;

  constructor(name: string, args?: LicenseAssociationArgs) {
    super(name, "aws_grafana_license_association", args);
  }

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