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

export interface ProductSubscriptionArgs extends core.ResourceArgs {
  /**
   * (Required) The ARN of the product that generates findings that you want to import into Security Hub
   * see below.
   */
  productArn: string | core.StringOut;
}

export class ProductSubscription extends core.Resource<ProductSubscriptionArgs> {
  /**
   * The ARN of a resource that represents your subscription to the product that generates the findings t
   * hat you want to import into Security Hub.
   */
  @core.attr(String, { computed: true })
  public arn!: string | core.StringOut;

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

  /**
   * (Required) The ARN of the product that generates findings that you want to import into Security Hub
   * see below.
   */
  @core.attr(String)
  public productArn!: string | core.StringOut;

  constructor(name: string, args?: ProductSubscriptionArgs) {
    super(name, "aws_securityhub_product_subscription", args);
  }

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