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

export interface OutputConfigArgs extends core.SchemaArgs {
  kmsKeyId?: string | core.StringOut;

  s3OutputLocation: string | core.StringOut;
}

export class OutputConfig extends core.Schema<OutputConfigArgs> {
  @core.attr(String)
  public kmsKeyId?: string | core.StringOut;

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

export interface DeviceFleetArgs extends core.ResourceArgs {
  description?: string | core.StringOut;

  deviceFleetName: string | core.StringOut;

  enableIotRoleAlias?: boolean | core.BooleanOut;

  outputConfig: OutputConfig;

  roleArn: string | core.StringOut;

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

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

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

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

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

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

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

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

  @core.attr(OutputConfig)
  public outputConfig!: OutputConfig;

  @core.attr(String)
  public roleArn!: 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>;

  constructor(name: string, args?: DeviceFleetArgs) {
    super(name, "aws_sagemaker_device_fleet", args);
  }

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