import * as core from "@terrascript/core"; export interface ProxyConfigurationArgs extends core.SchemaArgs { containerName: string | core.StringOut; properties?: core.Map | core.MapOut; type?: string | core.StringOut; } export class ProxyConfiguration extends core.Schema { @core.attr(String) public containerName!: string | core.StringOut; @core.attr(String, { kind: "map" }) public properties?: core.Map | core.MapOut; @core.attr(String) public type?: string | core.StringOut; } export interface EphemeralStorageArgs extends core.SchemaArgs { sizeInGib: number | core.NumberOut; } export class EphemeralStorage extends core.Schema { @core.attr(Number) public sizeInGib!: number | core.NumberOut; } export interface RuntimePlatformArgs extends core.SchemaArgs { cpuArchitecture?: string | core.StringOut; operatingSystemFamily?: string | core.StringOut; } export class RuntimePlatform extends core.Schema { @core.attr(String) public cpuArchitecture?: string | core.StringOut; @core.attr(String) public operatingSystemFamily?: string | core.StringOut; } export interface InferenceAcceleratorArgs extends core.SchemaArgs { deviceName: string | core.StringOut; deviceType: string | core.StringOut; } export class InferenceAccelerator extends core.Schema { @core.attr(String) public deviceName!: string | core.StringOut; @core.attr(String) public deviceType!: string | core.StringOut; } export interface DockerVolumeConfigurationArgs extends core.SchemaArgs { autoprovision?: boolean | core.BooleanOut; driver?: string | core.StringOut; driverOpts?: core.Map | core.MapOut; labels?: core.Map | core.MapOut; scope?: string | core.StringOut; } export class DockerVolumeConfiguration extends core.Schema { @core.attr(Boolean) public autoprovision?: boolean | core.BooleanOut; @core.attr(String) public driver?: string | core.StringOut; @core.attr(String, { kind: "map" }) public driverOpts?: core.Map | core.MapOut; @core.attr(String, { kind: "map" }) public labels?: core.Map | core.MapOut; @core.attr(String, { computed: true }) public scope?: string | core.StringOut; } export interface EfsVolumeConfigurationAuthorizationConfigArgs extends core.SchemaArgs { accessPointId?: string | core.StringOut; iam?: string | core.StringOut; } export class EfsVolumeConfigurationAuthorizationConfig extends core.Schema { @core.attr(String) public accessPointId?: string | core.StringOut; @core.attr(String) public iam?: string | core.StringOut; } export interface EfsVolumeConfigurationArgs extends core.SchemaArgs { authorizationConfig?: EfsVolumeConfigurationAuthorizationConfig; fileSystemId: string | core.StringOut; rootDirectory?: string | core.StringOut; transitEncryption?: string | core.StringOut; transitEncryptionPort?: number | core.NumberOut; } export class EfsVolumeConfiguration extends core.Schema { @core.attr(EfsVolumeConfigurationAuthorizationConfig) public authorizationConfig?: EfsVolumeConfigurationAuthorizationConfig; @core.attr(String) public fileSystemId!: string | core.StringOut; @core.attr(String) public rootDirectory?: string | core.StringOut; @core.attr(String) public transitEncryption?: string | core.StringOut; @core.attr(Number) public transitEncryptionPort?: number | core.NumberOut; } export interface FsxWindowsFileServerVolumeConfigurationAuthorizationConfigArgs extends core.SchemaArgs { credentialsParameter: string | core.StringOut; domain: string | core.StringOut; } export class FsxWindowsFileServerVolumeConfigurationAuthorizationConfig extends core.Schema { @core.attr(String) public credentialsParameter!: string | core.StringOut; @core.attr(String) public domain!: string | core.StringOut; } export interface FsxWindowsFileServerVolumeConfigurationArgs extends core.SchemaArgs { authorizationConfig: FsxWindowsFileServerVolumeConfigurationAuthorizationConfig; fileSystemId: string | core.StringOut; rootDirectory: string | core.StringOut; } export class FsxWindowsFileServerVolumeConfiguration extends core.Schema { @core.attr(FsxWindowsFileServerVolumeConfigurationAuthorizationConfig) public authorizationConfig!: FsxWindowsFileServerVolumeConfigurationAuthorizationConfig; @core.attr(String) public fileSystemId!: string | core.StringOut; @core.attr(String) public rootDirectory!: string | core.StringOut; } export interface VolumeArgs extends core.SchemaArgs { dockerVolumeConfiguration?: DockerVolumeConfiguration; efsVolumeConfiguration?: EfsVolumeConfiguration; fsxWindowsFileServerVolumeConfiguration?: FsxWindowsFileServerVolumeConfiguration; hostPath?: string | core.StringOut; name: string | core.StringOut; } export class Volume extends core.Schema { @core.attr(DockerVolumeConfiguration) public dockerVolumeConfiguration?: DockerVolumeConfiguration; @core.attr(EfsVolumeConfiguration) public efsVolumeConfiguration?: EfsVolumeConfiguration; @core.attr(FsxWindowsFileServerVolumeConfiguration) public fsxWindowsFileServerVolumeConfiguration?: FsxWindowsFileServerVolumeConfiguration; @core.attr(String) public hostPath?: string | core.StringOut; @core.attr(String) public name!: string | core.StringOut; } export interface PlacementConstraintsArgs extends core.SchemaArgs { expression?: string | core.StringOut; type: string | core.StringOut; } export class PlacementConstraints extends core.Schema { @core.attr(String) public expression?: string | core.StringOut; @core.attr(String) public type!: string | core.StringOut; } export interface TaskDefinitionArgs extends core.ResourceArgs { /** * (Required) A list of valid [container definitions](http://docs.aws.amazon.com/AmazonECS/latest/APIRe * ference/API_ContainerDefinition.html) provided as a single valid JSON document. Please note that you * should only provide values that are part of the container definition document. For a detailed descr * iption of what parameters are available, see the [Task Definition Parameters](https://docs.aws.amazo * n.com/AmazonECS/latest/developerguide/task_definition_parameters.html) section from the official [De * veloper Guide](https://docs.aws.amazon.com/AmazonECS/latest/developerguide). */ containerDefinitions: string | core.StringOut; /** * (Optional) Number of cpu units used by the task. If the `requires_compatibilities` is `FARGATE` this * field is required. */ cpu?: string | core.StringOut; /** * (Optional) The amount of ephemeral storage to allocate for the task. This parameter is used to expa * nd the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on A * WS Fargate. See [Ephemeral Storage](#ephemeral_storage). */ ephemeralStorage?: EphemeralStorage; /** * (Optional) ARN of the task execution role that the Amazon ECS container agent and the Docker daemon * can assume. */ executionRoleArn?: string | core.StringOut; /** * (Required) A unique name for your task definition. */ family: string | core.StringOut; /** * (Optional) Configuration block(s) with Inference Accelerators settings. [Detailed below.](#inference * _accelerator) */ inferenceAccelerator?: | core.Array | core.ArrayOut; /** * (Optional) IPC resource namespace to be used for the containers in the task The valid values are `ho * st`, `task`, and `none`. */ ipcMode?: string | core.StringOut; /** * (Optional) Amount (in MiB) of memory used by the task. If the `requires_compatibilities` is `FARGATE * this field is required. */ memory?: string | core.StringOut; /** * (Optional) Docker networking mode to use for the containers in the task. Valid values are `none`, `b * ridge`, `awsvpc`, and `host`. */ networkMode?: string | core.StringOut; /** * (Optional) Process namespace to use for the containers in the task. The valid values are `host` and * task`. */ pidMode?: string | core.StringOut; /** * (Optional) Configuration block for rules that are taken into consideration during task placement. Ma * ximum number of `placement_constraints` is `10`. [Detailed below](#placement_constraints). */ placementConstraints?: | core.Array | core.ArrayOut; /** * (Optional) Configuration block for the App Mesh proxy. [Detailed below.](#proxy_configuration) */ proxyConfiguration?: ProxyConfiguration; /** * (Optional) Set of launch types required by the task. The valid values are `EC2` and `FARGATE`. */ requiresCompatibilities?: core.Array | core.ArrayOut; /** * (Optional) Configuration block for [runtime_platform](#runtime_platform) that containers in your tas * k may use. */ runtimePlatform?: RuntimePlatform; skipDestroy?: boolean | core.BooleanOut; /** * (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; /** * (Optional) ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS ser * vices. */ taskRoleArn?: string | core.StringOut; /** * (Optional) Configuration block for [volumes](#volume) that containers in your task may use. Detailed * below. */ volume?: core.Array | core.ArrayOut; } export class TaskDefinition extends core.Resource { /** * Full ARN of the Task Definition (including both `family` and `revision`). */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Required) A list of valid [container definitions](http://docs.aws.amazon.com/AmazonECS/latest/APIRe * ference/API_ContainerDefinition.html) provided as a single valid JSON document. Please note that you * should only provide values that are part of the container definition document. For a detailed descr * iption of what parameters are available, see the [Task Definition Parameters](https://docs.aws.amazo * n.com/AmazonECS/latest/developerguide/task_definition_parameters.html) section from the official [De * veloper Guide](https://docs.aws.amazon.com/AmazonECS/latest/developerguide). */ @core.attr(String) public containerDefinitions!: string | core.StringOut; /** * (Optional) Number of cpu units used by the task. If the `requires_compatibilities` is `FARGATE` this * field is required. */ @core.attr(String) public cpu?: string | core.StringOut; /** * (Optional) The amount of ephemeral storage to allocate for the task. This parameter is used to expa * nd the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on A * WS Fargate. See [Ephemeral Storage](#ephemeral_storage). */ @core.attr(EphemeralStorage) public ephemeralStorage?: EphemeralStorage; /** * (Optional) ARN of the task execution role that the Amazon ECS container agent and the Docker daemon * can assume. */ @core.attr(String) public executionRoleArn?: string | core.StringOut; /** * (Required) A unique name for your task definition. */ @core.attr(String) public family!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) Configuration block(s) with Inference Accelerators settings. [Detailed below.](#inference * _accelerator) */ @core.attr(InferenceAccelerator, { kind: "array" }) public inferenceAccelerator?: | core.Array | core.ArrayOut; /** * (Optional) IPC resource namespace to be used for the containers in the task The valid values are `ho * st`, `task`, and `none`. */ @core.attr(String) public ipcMode?: string | core.StringOut; /** * (Optional) Amount (in MiB) of memory used by the task. If the `requires_compatibilities` is `FARGATE * this field is required. */ @core.attr(String) public memory?: string | core.StringOut; /** * (Optional) Docker networking mode to use for the containers in the task. Valid values are `none`, `b * ridge`, `awsvpc`, and `host`. */ @core.attr(String, { computed: true }) public networkMode?: string | core.StringOut; /** * (Optional) Process namespace to use for the containers in the task. The valid values are `host` and * task`. */ @core.attr(String) public pidMode?: string | core.StringOut; /** * (Optional) Configuration block for rules that are taken into consideration during task placement. Ma * ximum number of `placement_constraints` is `10`. [Detailed below](#placement_constraints). */ @core.attr(PlacementConstraints, { kind: "array" }) public placementConstraints?: | core.Array | core.ArrayOut; /** * (Optional) Configuration block for the App Mesh proxy. [Detailed below.](#proxy_configuration) */ @core.attr(ProxyConfiguration) public proxyConfiguration?: ProxyConfiguration; /** * (Optional) Set of launch types required by the task. The valid values are `EC2` and `FARGATE`. */ @core.attr(String, { kind: "array" }) public requiresCompatibilities?: | core.Array | core.ArrayOut; /** * Revision of the task in a particular family. */ @core.attr(Number, { computed: true }) public revision!: number | core.NumberOut; /** * (Optional) Configuration block for [runtime_platform](#runtime_platform) that containers in your tas * k may use. */ @core.attr(RuntimePlatform) public runtimePlatform?: RuntimePlatform; @core.attr(Boolean) public skipDestroy?: boolean | core.BooleanOut; /** * (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; /** * (Optional) ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS ser * vices. */ @core.attr(String) public taskRoleArn?: string | core.StringOut; /** * (Optional) Configuration block for [volumes](#volume) that containers in your task may use. Detailed * below. */ @core.attr(Volume, { kind: "array" }) public volume?: core.Array | core.ArrayOut; constructor(name: string, args?: TaskDefinitionArgs) { super(name, "aws_ecs_task_definition", args); } public override getNamespace(): string { return "aws_ecs"; } }