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

export interface NfsFileShareDefaultsArgs extends core.SchemaArgs {
  directoryMode?: string | core.StringOut;

  fileMode?: string | core.StringOut;

  groupId?: string | core.StringOut;

  ownerId?: string | core.StringOut;
}

export class NfsFileShareDefaults extends core.Schema<NfsFileShareDefaultsArgs> {
  @core.attr(String)
  public directoryMode?: string | core.StringOut;

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

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

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

export interface CacheAttributesArgs extends core.SchemaArgs {
  cacheStaleTimeoutInSeconds?: number | core.NumberOut;
}

export class CacheAttributes extends core.Schema<CacheAttributesArgs> {
  @core.attr(Number)
  public cacheStaleTimeoutInSeconds?: number | core.NumberOut;
}

export interface NfsFileShareArgs extends core.ResourceArgs {
  auditDestinationArn?: string | core.StringOut;

  bucketRegion?: string | core.StringOut;

  cacheAttributes?: CacheAttributes;

  clientList: core.Array<string> | core.ArrayOut<core.StringOut>;

  defaultStorageClass?: string | core.StringOut;

  fileShareName?: string | core.StringOut;

  gatewayArn: string | core.StringOut;

  guessMimeTypeEnabled?: boolean | core.BooleanOut;

  kmsEncrypted?: boolean | core.BooleanOut;

  kmsKeyArn?: string | core.StringOut;

  locationArn: string | core.StringOut;

  nfsFileShareDefaults?: NfsFileShareDefaults;

  notificationPolicy?: string | core.StringOut;

  objectAcl?: string | core.StringOut;

  readOnly?: boolean | core.BooleanOut;

  requesterPays?: boolean | core.BooleanOut;

  roleArn: string | core.StringOut;

  squash?: string | core.StringOut;

  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;

  vpcEndpointDnsName?: string | core.StringOut;
}

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

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

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

  @core.attr(CacheAttributes)
  public cacheAttributes?: CacheAttributes;

  @core.attr(String, { kind: "array" })
  public clientList!: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

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

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

  @core.attr(Boolean)
  public guessMimeTypeEnabled?: boolean | core.BooleanOut;

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

  @core.attr(Boolean)
  public kmsEncrypted?: boolean | core.BooleanOut;

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

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

  @core.attr(NfsFileShareDefaults)
  public nfsFileShareDefaults?: NfsFileShareDefaults;

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

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

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

  @core.attr(Boolean)
  public readOnly?: boolean | core.BooleanOut;

  @core.attr(Boolean)
  public requesterPays?: boolean | core.BooleanOut;

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

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

  @core.attr(String, { kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  @core.attr(String, { computed: true, kind: "map" })
  public tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;

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

  constructor(name: string, args?: NfsFileShareArgs) {
    super(name, "aws_storagegateway_nfs_file_share", args);
  }

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