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

export interface LogDestinationArgs extends core.ResourceArgs {
  name: string | core.StringOut;

  roleArn: string | core.StringOut;

  targetArn: string | core.StringOut;
}

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

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

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

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

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

  constructor(name: string, args?: LogDestinationArgs) {
    super(name, "aws_cloudwatch_log_destination", args);
  }

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