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

export interface LogDestinationPolicyArgs extends core.ResourceArgs {
  accessPolicy: string | core.StringOut;

  destinationName: string | core.StringOut;

  forceUpdate?: boolean | core.BooleanOut;
}

export class LogDestinationPolicy extends core.Resource<LogDestinationPolicyArgs> {
  @core.attr(String)
  public accessPolicy!: string | core.StringOut;

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

  @core.attr(Boolean)
  public forceUpdate?: boolean | core.BooleanOut;

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

  constructor(name: string, args?: LogDestinationPolicyArgs) {
    super(name, "aws_cloudwatch_log_destination_policy", args);
  }

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