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

export interface LogResourcePolicyArgs extends core.ResourceArgs {
  policyDocument: string | core.StringOut;

  policyName: string | core.StringOut;
}

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

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

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

  constructor(name: string, args?: LogResourcePolicyArgs) {
    super(name, "aws_cloudwatch_log_resource_policy", args);
  }

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