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

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 SmbFileShareArgs extends core.ResourceArgs {
  accessBasedEnumeration?: boolean | core.BooleanOut;

  adminUserList?: core.Array<string> | core.ArrayOut<core.StringOut>;

  auditDestinationArn?: string | core.StringOut;

  authentication?: string | core.StringOut;

  bucketRegion?: string | core.StringOut;

  cacheAttributes?: CacheAttributes;

  caseSensitivity?: string | core.StringOut;

  defaultStorageClass?: string | core.StringOut;

  fileShareName?: string | core.StringOut;

  gatewayArn: string | core.StringOut;

  guessMimeTypeEnabled?: boolean | core.BooleanOut;

  invalidUserList?: core.Array<string> | core.ArrayOut<core.StringOut>;

  kmsEncrypted?: boolean | core.BooleanOut;

  kmsKeyArn?: string | core.StringOut;

  locationArn: string | core.StringOut;

  notificationPolicy?: string | core.StringOut;

  objectAcl?: string | core.StringOut;

  oplocksEnabled?: boolean | core.BooleanOut;

  readOnly?: boolean | core.BooleanOut;

  requesterPays?: boolean | core.BooleanOut;

  roleArn: string | core.StringOut;

  smbAclEnabled?: boolean | core.BooleanOut;

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

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

  validUserList?: core.Array<string> | core.ArrayOut<core.StringOut>;

  vpcEndpointDnsName?: string | core.StringOut;
}

export class SmbFileShare extends core.Resource<SmbFileShareArgs> {
  @core.attr(Boolean)
  public accessBasedEnumeration?: boolean | core.BooleanOut;

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

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

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

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

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

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

  @core.attr(String)
  public caseSensitivity?: string | 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(String, { kind: "array" })
  public invalidUserList?: core.Array<string> | core.ArrayOut<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(String)
  public notificationPolicy?: string | core.StringOut;

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

  @core.attr(Boolean, { computed: true })
  public oplocksEnabled?: boolean | core.BooleanOut;

  @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(Boolean)
  public smbAclEnabled?: boolean | core.BooleanOut;

  @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, { kind: "array" })
  public validUserList?: core.Array<string> | core.ArrayOut<core.StringOut>;

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

  constructor(name: string, args?: SmbFileShareArgs) {
    super(name, "aws_storagegateway_smb_file_share", args);
  }

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