import * as core from "@terrascript/core"; export interface DsContainerDefinitionArgs { /** * (Required) The name of the container definition */ containerName: string | core.StringOut; /** * (Required) The ARN of the task definition which contains the container */ taskDefinition: string | core.StringOut; } export class DsContainerDefinition extends core.Data { /** * (Required) The name of the container definition */ @core.attr(String) public containerName!: string | core.StringOut; /** * The CPU limit for this container definition */ @core.attr(Number, { computed: true }) public cpu!: number | core.NumberOut; /** * Indicator if networking is disabled */ @core.attr(Boolean, { computed: true }) public disableNetworking!: boolean | core.BooleanOut; /** * Set docker labels */ @core.attr(String, { computed: true, kind: "map" }) public dockerLabels!: core.Map | core.MapOut; /** * The environment in use */ @core.attr(String, { computed: true, kind: "map" }) public environment!: core.Map | core.MapOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The docker image in use, including the digest */ @core.attr(String, { computed: true }) public image!: string | core.StringOut; /** * The digest of the docker image in use */ @core.attr(String, { computed: true }) public imageDigest!: string | core.StringOut; /** * The memory limit for this container definition */ @core.attr(Number, { computed: true }) public memory!: number | core.NumberOut; /** * The soft limit (in MiB) of memory to reserve for the container. When system memory is under contenti * on, Docker attempts to keep the container memory to this soft limit */ @core.attr(Number, { computed: true }) public memoryReservation!: number | core.NumberOut; /** * (Required) The ARN of the task definition which contains the container */ @core.attr(String) public taskDefinition!: string | core.StringOut; constructor(name: string, args?: DsContainerDefinitionArgs) { super(name, "aws_ecs_container_definition", args); } public override getNamespace(): string { return "aws_ecs"; } }