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

export interface AssociationArgs extends core.ResourceArgs {
  /**
   * (Required) ARN of the license configuration.
   */
  licenseConfigurationArn: string | core.StringOut;

  /**
   * (Required) ARN of the resource associated with the license configuration.
   */
  resourceArn: string | core.StringOut;
}

export class Association extends core.Resource<AssociationArgs> {
  /**
   * The license configuration ARN.
   */
  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  /**
   * (Required) ARN of the license configuration.
   */
  @core.attr(String)
  public licenseConfigurationArn!: string | core.StringOut;

  /**
   * (Required) ARN of the resource associated with the license configuration.
   */
  @core.attr(String)
  public resourceArn!: string | core.StringOut;

  constructor(name: string, args?: AssociationArgs) {
    super(name, "aws_licensemanager_association", args);
  }

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