import * as core from "@terrascript/core"; export interface JobQueueArgs extends core.ResourceArgs { /** * (Required) Specifies the set of compute environments */ computeEnvironments: core.Array | core.ArrayOut; /** * (Required) Specifies the name of the job queue. */ name: string | core.StringOut; /** * (Required) The priority of the job queue. Job queues with a higher priority */ priority: number | core.NumberOut; /** * (Optional) The ARN of the fair share scheduling policy. If this parameter is specified, the job queu * e uses a fair share scheduling policy. If this parameter isn't specified, the job queue uses a first * in, first out (FIFO) scheduling policy. After a job queue is created, you can replace but can't rem * ove the fair share scheduling policy. */ schedulingPolicyArn?: string | core.StringOut; /** * (Required) The state of the job queue. Must be one of: `ENABLED` or `DISABLED` */ state: string | core.StringOut; /** * (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configurati * on block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configurati * on-block) present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; } export class JobQueue extends core.Resource { /** * The Amazon Resource Name of the job queue. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Required) Specifies the set of compute environments */ @core.attr(String, { kind: "array" }) public computeEnvironments!: | core.Array | core.ArrayOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) Specifies the name of the job queue. */ @core.attr(String) public name!: string | core.StringOut; /** * (Required) The priority of the job queue. Job queues with a higher priority */ @core.attr(Number) public priority!: number | core.NumberOut; /** * (Optional) The ARN of the fair share scheduling policy. If this parameter is specified, the job queu * e uses a fair share scheduling policy. If this parameter isn't specified, the job queue uses a first * in, first out (FIFO) scheduling policy. After a job queue is created, you can replace but can't rem * ove the fair share scheduling policy. */ @core.attr(String) public schedulingPolicyArn?: string | core.StringOut; /** * (Required) The state of the job queue. Must be one of: `ENABLED` or `DISABLED` */ @core.attr(String) public state!: string | core.StringOut; /** * (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configurati * on block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configurati * on-block) present, tags with matching keys will overwrite those defined at the provider-level. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; constructor(name: string, args?: JobQueueArgs) { super(name, "aws_batch_job_queue", args); } public override getNamespace(): string { return "aws_batch"; } }