import * as core from "@terrascript/core"; export interface ManagedScalingArgs extends core.SchemaArgs { instanceWarmupPeriod?: number | core.NumberOut; maximumScalingStepSize?: number | core.NumberOut; minimumScalingStepSize?: number | core.NumberOut; status?: string | core.StringOut; targetCapacity?: number | core.NumberOut; } export class ManagedScaling extends core.Schema { @core.attr(Number, { computed: true }) public instanceWarmupPeriod?: number | core.NumberOut; @core.attr(Number, { computed: true }) public maximumScalingStepSize?: number | core.NumberOut; @core.attr(Number, { computed: true }) public minimumScalingStepSize?: number | core.NumberOut; @core.attr(String, { computed: true }) public status?: string | core.StringOut; @core.attr(Number, { computed: true }) public targetCapacity?: number | core.NumberOut; } export interface AutoScalingGroupProviderArgs extends core.SchemaArgs { autoScalingGroupArn: string | core.StringOut; managedScaling?: ManagedScaling; managedTerminationProtection?: string | core.StringOut; } export class AutoScalingGroupProvider extends core.Schema { @core.attr(String) public autoScalingGroupArn!: string | core.StringOut; @core.attr(ManagedScaling, { computed: true }) public managedScaling?: ManagedScaling; @core.attr(String, { computed: true }) public managedTerminationProtection?: string | core.StringOut; } export interface CapacityProviderArgs extends core.ResourceArgs { /** * (Required) Configuration block for the provider for the ECS auto scaling group. Detailed below. */ autoScalingGroupProvider: AutoScalingGroupProvider; /** * (Required) Name of the capacity provider. */ 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; /** * Map of tags assigned to the resource, including those inherited from the provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block). */ tagsAll?: core.Map | core.MapOut; } export class CapacityProvider extends core.Resource { /** * ARN that identifies the capacity provider. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Required) Configuration block for the provider for the ECS auto scaling group. Detailed below. */ @core.attr(AutoScalingGroupProvider) public autoScalingGroupProvider!: AutoScalingGroupProvider; /** * ARN that identifies the capacity provider. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) Name of the capacity provider. */ @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; /** * Map of tags assigned to the resource, including those inherited from the provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; constructor(name: string, args?: CapacityProviderArgs) { super(name, "aws_ecs_capacity_provider", args); } public override getNamespace(): string { return "aws_ecs"; } }