import * as core from "@terrascript/core"; export interface LogConfigurationArgs extends core.SchemaArgs { cloudWatchEncryptionEnabled?: boolean | core.BooleanOut; cloudWatchLogGroupName?: string | core.StringOut; s3BucketEncryptionEnabled?: boolean | core.BooleanOut; s3BucketName?: string | core.StringOut; s3KeyPrefix?: string | core.StringOut; } export class LogConfiguration extends core.Schema { @core.attr(Boolean) public cloudWatchEncryptionEnabled?: boolean | core.BooleanOut; @core.attr(String) public cloudWatchLogGroupName?: string | core.StringOut; @core.attr(Boolean) public s3BucketEncryptionEnabled?: boolean | core.BooleanOut; @core.attr(String) public s3BucketName?: string | core.StringOut; @core.attr(String) public s3KeyPrefix?: string | core.StringOut; } export interface ExecuteCommandConfigurationArgs extends core.SchemaArgs { kmsKeyId?: string | core.StringOut; logConfiguration?: LogConfiguration; logging?: string | core.StringOut; } export class ExecuteCommandConfiguration extends core.Schema { @core.attr(String) public kmsKeyId?: string | core.StringOut; @core.attr(LogConfiguration) public logConfiguration?: LogConfiguration; @core.attr(String) public logging?: string | core.StringOut; } export interface ConfigurationArgs extends core.SchemaArgs { executeCommandConfiguration?: ExecuteCommandConfiguration; } export class Configuration extends core.Schema { @core.attr(ExecuteCommandConfiguration) public executeCommandConfiguration?: ExecuteCommandConfiguration; } 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 SettingArgs extends core.SchemaArgs { name: string | core.StringOut; value: string | core.StringOut; } export class Setting extends core.Schema { @core.attr(String) public name!: string | core.StringOut; @core.attr(String) public value!: string | core.StringOut; } export interface ClusterArgs extends core.ResourceArgs { /** * (Optional, **Deprecated** use the `aws_ecs_cluster_capacity_providers` resource instead) List of sho * rt names of one or more capacity providers to associate with the cluster. Valid values also include * FARGATE` and `FARGATE_SPOT`. */ capacityProviders?: core.Array | core.ArrayOut; /** * (Optional) The execute command configuration for the cluster. Detailed below. */ configuration?: Configuration; /** * (Optional, **Deprecated** use the `aws_ecs_cluster_capacity_providers` resource instead) Configurati * on block for capacity provider strategy to use by default for the cluster. Can be one or more. Detai * led below. */ defaultCapacityProviderStrategy?: | core.Array | core.ArrayOut; /** * (Required) Name of the cluster (up to 255 letters, numbers, hyphens, and underscores) */ name: string | core.StringOut; /** * (Optional) Configuration block(s) with cluster settings. For example, this can be used to enable Clo * udWatch Container Insights for a cluster. Detailed below. */ setting?: core.Array | core.ArrayOut; /** * (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 Cluster extends core.Resource { /** * ARN that identifies the cluster. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional, **Deprecated** use the `aws_ecs_cluster_capacity_providers` resource instead) List of sho * rt names of one or more capacity providers to associate with the cluster. Valid values also include * FARGATE` and `FARGATE_SPOT`. */ @core.attr(String, { computed: true, kind: "array" }) public capacityProviders?: core.Array | core.ArrayOut; /** * (Optional) The execute command configuration for the cluster. Detailed below. */ @core.attr(Configuration) public configuration?: Configuration; /** * (Optional, **Deprecated** use the `aws_ecs_cluster_capacity_providers` resource instead) Configurati * on block for capacity provider strategy to use by default for the cluster. Can be one or more. Detai * led below. */ @core.attr(DefaultCapacityProviderStrategy, { computed: true, kind: "array" }) public defaultCapacityProviderStrategy?: | core.Array | core.ArrayOut; /** * ARN that identifies the cluster. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) Name of the cluster (up to 255 letters, numbers, hyphens, and underscores) */ @core.attr(String) public name!: string | core.StringOut; /** * (Optional) Configuration block(s) with cluster settings. For example, this can be used to enable Clo * udWatch Container Insights for a cluster. Detailed below. */ @core.attr(Setting, { computed: true, kind: "array" }) public setting?: core.Array | core.ArrayOut; /** * (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?: ClusterArgs) { super(name, "aws_ecs_cluster", args); } public override getNamespace(): string { return "aws_ecs"; } }