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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: OriginAccessIdentityArgs) {
    super(name, "aws_cloudfront_origin_access_identity", args);
  }

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