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

export interface PublicKeyArgs extends core.ResourceArgs {
  comment?: string | core.StringOut;

  encodedKey: string | core.StringOut;

  name?: string | core.StringOut;

  namePrefix?: string | core.StringOut;
}

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

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

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

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

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

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

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

  constructor(name: string, args?: PublicKeyArgs) {
    super(name, "aws_cloudfront_public_key", args);
  }

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