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

export interface Ec2ManagedPrefixListEntryArgs extends core.ResourceArgs {
  cidr: string | core.StringOut;

  description?: string | core.StringOut;

  prefixListId: string | core.StringOut;
}

export class Ec2ManagedPrefixListEntry extends core.Resource<Ec2ManagedPrefixListEntryArgs> {
  @core.attr(String)
  public cidr!: string | core.StringOut;

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

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

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

  constructor(name: string, args?: Ec2ManagedPrefixListEntryArgs) {
    super(name, "aws_ec2_managed_prefix_list_entry", args);
  }

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