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, { computed: true }) public shareIdentifier!: string | core.StringOut; @core.attr(Number, { computed: true }) 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, { computed: true }) public computeReservation!: number | core.NumberOut; @core.attr(Number, { computed: true }) public shareDecaySeconds!: number | core.NumberOut; @core.attr(ShareDistribution, { computed: true, kind: "array" }) public shareDistribution!: | core.Array | core.ArrayOut; } export interface DsSchedulingPolicyArgs { /** * (Required) The Amazon Resource Name (ARN) of the scheduling policy. */ arn: string | core.StringOut; /** * Key-value map of resource tags */ tags?: core.Map | core.MapOut; } export class DsSchedulingPolicy extends core.Data { /** * (Required) The Amazon Resource Name (ARN) of the scheduling policy. */ @core.attr(String) public arn!: string | core.StringOut; @core.attr(FairSharePolicy, { computed: true, kind: "array" }) public fairSharePolicy!: | core.Array | core.ArrayOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * Specifies the name of the scheduling policy. */ @core.attr(String, { computed: true }) public name!: string | core.StringOut; /** * Key-value map of resource tags */ @core.attr(String, { computed: true, kind: "map" }) public tags?: core.Map | core.MapOut; constructor(name: string, args?: DsSchedulingPolicyArgs) { super(name, "aws_batch_scheduling_policy", args); } public override getNamespace(): string { return "aws_batch"; } }