import * as core from "@terrascript/core"; export interface ShareDistributionArgs extends core.SchemaArgs { shareIdentifier: string | core.StringOut; weightFactor?: number | core.NumberOut; } export class ShareDistribution extends core.Schema { @core.attr(String) public shareIdentifier!: string | core.StringOut; @core.attr(Number) public weightFactor?: number | core.NumberOut; } export interface FairSharePolicyArgs extends core.SchemaArgs { computeReservation?: number | core.NumberOut; shareDecaySeconds?: number | core.NumberOut; shareDistribution?: | core.Array | core.ArrayOut; } export class FairSharePolicy extends core.Schema { @core.attr(Number) public computeReservation?: number | core.NumberOut; @core.attr(Number) public shareDecaySeconds?: number | core.NumberOut; @core.attr(ShareDistribution, { kind: "array" }) public shareDistribution?: | core.Array | core.ArrayOut; } export interface SchedulingPolicyArgs extends core.ResourceArgs { fairSharePolicy?: FairSharePolicy; /** * (Required) Specifies the name of the scheduling policy. */ name: 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 SchedulingPolicy extends core.Resource { /** * The Amazon Resource Name of the scheduling policy. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; @core.attr(FairSharePolicy) public fairSharePolicy?: FairSharePolicy; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) Specifies the name of the scheduling policy. */ @core.attr(String) public name!: 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?: SchedulingPolicyArgs) { super(name, "aws_batch_scheduling_policy", args); } public override getNamespace(): string { return "aws_batch"; } }