import * as core from "@terrascript/core"; export interface DefaultCapacityProviderStrategyArgs extends core.SchemaArgs { base?: number | core.NumberOut; capacityProvider: string | core.StringOut; weight?: number | core.NumberOut; } export class DefaultCapacityProviderStrategy extends core.Schema { @core.attr(Number) public base?: number | core.NumberOut; @core.attr(String) public capacityProvider!: string | core.StringOut; @core.attr(Number) public weight?: number | core.NumberOut; } export interface ClusterCapacityProvidersArgs extends core.ResourceArgs { /** * (Optional) Set of names of one or more capacity providers to associate with the cluster. Valid value * s also include `FARGATE` and `FARGATE_SPOT`. */ capacityProviders?: core.Array | core.ArrayOut; /** * (Required, Forces new resource) Name of the ECS cluster to manage capacity providers for. */ clusterName: string | core.StringOut; /** * (Optional) Set of capacity provider strategies to use by default for the cluster. Detailed below. */ defaultCapacityProviderStrategy?: | core.Array | core.ArrayOut; } export class ClusterCapacityProviders extends core.Resource { /** * (Optional) Set of names of one or more capacity providers to associate with the cluster. Valid value * s also include `FARGATE` and `FARGATE_SPOT`. */ @core.attr(String, { kind: "array" }) public capacityProviders?: core.Array | core.ArrayOut; /** * (Required, Forces new resource) Name of the ECS cluster to manage capacity providers for. */ @core.attr(String) public clusterName!: string | core.StringOut; /** * (Optional) Set of capacity provider strategies to use by default for the cluster. Detailed below. */ @core.attr(DefaultCapacityProviderStrategy, { kind: "array" }) public defaultCapacityProviderStrategy?: | core.Array | core.ArrayOut; /** * Same as `cluster_name`. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; constructor(name: string, args?: ClusterCapacityProvidersArgs) { super(name, "aws_ecs_cluster_capacity_providers", args); } public override getNamespace(): string { return "aws_ecs"; } }