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

export interface DsOriginAccessIdentityArgs {
  id: string | core.StringOut;
}

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

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

  @core.attr(String, { computed: true })
  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)
  public id!: string | core.StringOut;

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

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

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