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

export interface LifecycleHookArgs extends core.ResourceArgs {
  autoscalingGroupName: string | core.StringOut;

  defaultResult?: string | core.StringOut;

  heartbeatTimeout?: number | core.NumberOut;

  lifecycleTransition: string | core.StringOut;

  name: string | core.StringOut;

  notificationMetadata?: string | core.StringOut;

  notificationTargetArn?: string | core.StringOut;

  roleArn?: string | core.StringOut;
}

export class LifecycleHook extends core.Resource<LifecycleHookArgs> {
  @core.attr(String)
  public autoscalingGroupName!: string | core.StringOut;

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

  @core.attr(Number)
  public heartbeatTimeout?: number | core.NumberOut;

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

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

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

  @core.attr(String)
  public notificationMetadata?: string | core.StringOut;

  @core.attr(String)
  public notificationTargetArn?: string | core.StringOut;

  @core.attr(String)
  public roleArn?: string | core.StringOut;

  constructor(name: string, args?: LifecycleHookArgs) {
    super(name, "aws_autoscaling_lifecycle_hook", args);
  }

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