Module Values.DaemonContainerDefinitionSource

A container definition for a daemon task. Daemon container definitions describe the containers that run as part of a daemon task on container instances managed by capacity providers.

Sourcetype nonrec t = {
  1. name : String_.t option;
    (*

    The name of the container. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.

    *)
  2. image : String_.t;
    (*

    The image used to start the container. This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with either repository-url/image:tag or repository-url/image@digest .

    *)
  3. memory : BoxedInteger.t option;
    (*

    The amount (in MiB) of memory to present to the container. If the container attempts to exceed the memory specified here, the container is killed.

    *)
  4. memoryReservation : BoxedInteger.t option;
    (*

    The soft limit (in MiB) of memory to reserve for the container.

    *)
  5. repositoryCredentials : RepositoryCredentials.t option;
    (*

    The private repository authentication credentials to use.

    *)
  6. healthCheck : HealthCheck.t option;
    (*

    The container health check command and associated configuration parameters for the container.

    *)
  7. cpu : Integer.t option;
    (*

    The number of cpu units reserved for the container.

    *)
  8. essential : BoxedBoolean.t option;
    (*

    If the essential parameter of a container is marked as true, and that container fails or stops for any reason, all other containers that are part of the task are stopped.

    *)
  9. entryPoint : StringList.t option;
    (*

    The entry point that's passed to the container.

    *)
  10. command : StringList.t option;
    (*

    The command that's passed to the container.

    *)
  11. workingDirectory : String_.t option;
    (*

    The working directory to run commands inside the container in.

    *)
  12. environmentFiles : EnvironmentFiles.t option;
    (*

    A list of files containing the environment variables to pass to a container.

    *)
  13. environment : EnvironmentVariables.t option;
    (*

    The environment variables to pass to a container.

    *)
  14. secrets : SecretList.t option;
    (*

    The secrets to pass to the container.

    *)
  15. readonlyRootFilesystem : BoxedBoolean.t option;
    (*

    When this parameter is true, the container is given read-only access to its root file system.

    *)
  16. mountPoints : MountPointList.t option;
    (*

    The mount points for data volumes in your container.

    *)
  17. logConfiguration : LogConfiguration.t option;
    (*

    The log configuration specification for the container.

    *)
  18. firelensConfiguration : FirelensConfiguration.t option;
    (*

    The FireLens configuration for the container. This is used to specify and configure a log router for container logs.

    *)
  19. privileged : BoxedBoolean.t option;
    (*

    When this parameter is true, the container is given elevated privileges on the host container instance (similar to the root user).

    *)
  20. user : String_.t option;
    (*

    The user to use inside the container.

    *)
  21. ulimits : UlimitList.t option;
    (*

    A list of ulimits to set in the container.

    *)
  22. linuxParameters : DaemonLinuxParameters.t option;
    (*

    Linux-specific modifications that are applied to the container configuration, such as Linux kernel capabilities.

    *)
  23. dependsOn : ContainerDependencies.t option;
    (*

    The dependencies defined for container startup and shutdown. A container can contain multiple dependencies on other containers in a task definition.

    *)
  24. startTimeout : BoxedInteger.t option;
    (*

    Time duration (in seconds) to wait before giving up on resolving dependencies for a container.

    *)
  25. stopTimeout : BoxedInteger.t option;
    (*

    Time duration (in seconds) to wait before the container is forcefully killed if it doesn't exit normally on its own.

    *)
  26. systemControls : SystemControls.t option;
    (*

    A list of namespaced kernel parameters to set in the container.

    *)
  27. interactive : BoxedBoolean.t option;
    (*

    When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated.

    *)
  28. pseudoTerminal : BoxedBoolean.t option;
    (*

    When this parameter is true, a TTY is allocated.

    *)
  29. restartPolicy : ContainerRestartPolicy.t option;
    (*

    The restart policy for the container. When you set up a restart policy, Amazon ECS can restart the container without needing to replace the task.

    *)
}
Sourceval context_ : string
Sourceval make : ?name:??? -> ?memory:??? -> ?memoryReservation:??? -> ?repositoryCredentials:??? -> ?healthCheck:??? -> ?cpu:??? -> ?essential:??? -> ?entryPoint:??? -> ?command:??? -> ?workingDirectory:??? -> ?environmentFiles:??? -> ?environment:??? -> ?secrets:??? -> ?readonlyRootFilesystem:??? -> ?mountPoints:??? -> ?logConfiguration:??? -> ?firelensConfiguration:??? -> ?privileged:??? -> ?user:??? -> ?ulimits:??? -> ?linuxParameters:??? -> ?dependsOn:??? -> ?startTimeout:??? -> ?stopTimeout:??? -> ?systemControls:??? -> ?interactive:??? -> ?pseudoTerminal:??? -> ?restartPolicy:??? -> image:String_.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of BoxedBoolean.t | `Integer of BoxedInteger.t | `List of [> `String of String_.t | `Structure of (string * [> `Boolean of BoxedBoolean.t | `Enum of string | `Integer of Integer.t | `String of String_.t ]) list ] list | `String of String_.t | `Structure of (string * [> `Boolean of BoxedBoolean.t | `Enum of string | `Integer of BoxedInteger.t | `List of [> `Integer of BoxedInteger.t | `String of String_.t | `Structure of (string * [> `Integer of Integer.t | `List of [> `Enum of string | `String of String_.t ] list | `String of String_.t ]) list ] list | `Map of ([> `String of String_.t ] * [> `String of String_.t ]) list | `String of String_.t | `Structure of (string * [> `List of [> `String of String_.t ] list ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t