import { Value } from '../../../cloudformation/Value';
import { SecretProps } from './SecretProps';
import { LinuxParametersProps } from './LinuxParametersProps';
import { FargatePlatformConfigurationProps } from './FargatePlatformConfigurationProps';
import { ResourceRequirementProps } from './ResourceRequirementProps';
import { LogConfigurationProps } from './LogConfigurationProps';
import { MountPointsProps } from './MountPointsProps';
import { RuntimePlatformProps } from './RuntimePlatformProps';
import { VolumesProps } from './VolumesProps';
import { EnvironmentProps } from './EnvironmentProps';
import { UlimitProps } from './UlimitProps';
import { NetworkConfigurationProps } from './NetworkConfigurationProps';
import { EphemeralStorageProps } from './EphemeralStorageProps';
/**
  Container properties are used for Amazon ECS based job definitions. These properties to describe the container that’s launched as part of a job.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-containerproperties.html">the AWS Docs</a>
*/
export interface ContainerPropertiesProps {
    /** <code>User</code>  <a name="cfn-batch-jobdefinition-containerproperties-user"></a>
  The user name to use inside the container. This parameter maps to <code>User</code> in the <a href="https://docs.docker.com/engine/api/v1.23/#create-a-container">Create a container</a> section of the <a href="https://docs.docker.com/engine/api/v1.23/">Docker Remote API</a> and the <code>--user</code> option to <a href="https://docs.docker.com/engine/reference/run/">docker run</a>.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    user?: Value<string>;
    /** <code>Secrets</code>  <a name="cfn-batch-jobdefinition-containerproperties-secrets"></a>
  The secrets for the container. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html">Specifying sensitive data</a> in the * AWS Batch User Guide*.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    secrets?: SecretProps[];
    /** <code>Memory</code>  <a name="cfn-batch-jobdefinition-containerproperties-memory"></a>
  This parameter is deprecated, use <code>resourceRequirements</code> to specify the memory requirements for the job definition. It’s not supported for jobs running on Fargate resources. For jobs that run on EC2 resources, it specifies the memory hard limit (in MiB) for a container. If your container attempts to exceed the specified number, it’s terminated. You must specify at least 4 MiB of memory for a job using this parameter. The memory hard limit can be specified in several places. It must be specified for each node at least once.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    memory?: Value<number>;
    /** <code>Privileged</code>  <a name="cfn-batch-jobdefinition-containerproperties-privileged"></a>
  When this parameter is true, the container is given elevated permissions on the host container instance (similar to the <code>root</code> user). This parameter maps to <code>Privileged</code> in the <a href="https://docs.docker.com/engine/api/v1.23/#create-a-container">Create a container</a> section of the <a href="https://docs.docker.com/engine/api/v1.23/">Docker Remote API</a> and the <code>--privileged</code> option to <a href="https://docs.docker.com/engine/reference/run/">docker run</a>. The default value is false.<br />
  This parameter isn’t applicable to jobs that are running on Fargate resources and shouldn’t be provided, or specified as false.
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    privileged?: Value<boolean>;
    /** <code>LinuxParameters</code>  <a name="cfn-batch-jobdefinition-containerproperties-linuxparameters"></a>
  Linux-specific modifications that are applied to the container, such as details for device mappings.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    linuxParameters?: LinuxParametersProps;
    /** <code>FargatePlatformConfiguration</code>  <a name="cfn-batch-jobdefinition-containerproperties-fargateplatformconfiguration"></a>
  The platform configuration for jobs that are running on Fargate resources. Jobs that are running on EC2 resources must not specify this parameter.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    fargatePlatformConfiguration?: FargatePlatformConfigurationProps;
    /** <code>JobRoleArn</code>  <a name="cfn-batch-jobdefinition-containerproperties-jobrolearn"></a>
  The Amazon Resource Name (ARN) of the IAM role that the container can assume for AWS permissions. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html">IAM roles for tasks</a> in the
  Amazon Elastic Container Service Developer Guide: br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    jobRoleArn?: Value<string>;
    /** <code>ReadonlyRootFilesystem</code>  <a name="cfn-batch-jobdefinition-containerproperties-readonlyrootfilesystem"></a>
  When this parameter is true, the container is given read-only access to its root file system. This parameter maps to <code>ReadonlyRootfs</code> in the <a href="https://docs.docker.com/engine/api/v1.23/#create-a-container">Create a container</a> section of the <a href="https://docs.docker.com/engine/api/v1.23/">Docker Remote API</a> and the <code>--read-only</code> option to <code>docker run</code>.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    readonlyRootFilesystem?: Value<boolean>;
    /** <code>Vcpus</code>  <a name="cfn-batch-jobdefinition-containerproperties-vcpus"></a>
  This parameter is deprecated, use <code>resourceRequirements</code> to specify the vCPU requirements for the job definition. It’s not supported for jobs running on Fargate resources. For jobs running on EC2 resources, it specifies the number of vCPUs reserved for the job.<br />
  Each vCPU is equivalent to 1,024 CPU shares. This parameter maps to <code>CpuShares</code> in the <a href="https://docs.docker.com/engine/api/v1.23/#create-a-container">Create a container</a> section of the <a href="https://docs.docker.com/engine/api/v1.23/">Docker Remote API</a> and the <code>--cpu-shares</code> option to <a href="https://docs.docker.com/engine/reference/run/">docker run</a>. The number of vCPUs must be specified but can be specified in several places. You must specify it at least once for each node.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    vcpus?: Value<number>;
    /** <p> */
    image: Value<string>;
    /** <code>ResourceRequirements</code>  <a name="cfn-batch-jobdefinition-containerproperties-resourcerequirements"></a>
  The type and amount of resources to assign to a container. The supported resources include <code>GPU</code>, <code>MEMORY</code>, and <code>VCPU</code>.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    resourceRequirements?: ResourceRequirementProps[];
    /** <code>LogConfiguration</code>  <a name="cfn-batch-jobdefinition-containerproperties-logconfiguration"></a>
  The log configuration specification for the container.<br />
  This parameter maps to <code>LogConfig</code> in the <a href="https://docs.docker.com/engine/api/v1.23/#create-a-container">Create a container</a> section of the <a href="https://docs.docker.com/engine/api/v1.23/">Docker Remote API</a> and the <code>--log-driver</code> option to <a href="https://docs.docker.com/engine/reference/run/">docker run</a>. By default, containers use the same logging driver that the Docker daemon uses. However the container might use a different logging driver than the Docker daemon by specifying a log driver with this parameter in the container definition. To use a different logging driver for a container, the log system must be configured properly on the container instance (or on a different log server for remote logging options). For more information on the options for different supported log drivers, see <a href="https://docs.docker.com/engine/admin/logging/overview/">Configure logging drivers</a> in the Docker documentation.<br />
  AWS Batch currently supports a subset of the logging drivers available to the Docker daemon (shown in the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-containerproperties.html#cfn-batch-jobdefinition-containerproperties-logconfiguration">LogConfiguration</a> data type).
  This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: <code>sudo docker version | grep &quot;Server API version&quot;</code><br />
  The Amazon ECS container agent running on a container instance must register the logging drivers available on that instance with the <code>ECS_AVAILABLE_LOGGING_DRIVERS</code> environment variable before containers placed on that instance can use these log configuration options. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html">Amazon ECS container agent configuration</a> in the
  Amazon Elastic Container Service Developer Guide:
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    logConfiguration?: LogConfigurationProps;
    /** <code>MountPoints</code>  <a name="cfn-batch-jobdefinition-containerproperties-mountpoints"></a>
  The mount points for data volumes in your container. This parameter maps to <code>Volumes</code> in the <a href="https://docs.docker.com/engine/api/v1.23/#create-a-container">Create a container</a> section of the <a href="https://docs.docker.com/engine/api/v1.23/">Docker Remote API</a> and the <code>--volume</code> option to <a href="https://docs.docker.com/engine/reference/run/">docker run</a>.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    mountPoints?: MountPointsProps[];
    /** <code>ExecutionRoleArn</code>  <a name="cfn-batch-jobdefinition-containerproperties-executionrolearn"></a>
  The Amazon Resource Name (ARN) of the execution role that AWS Batch can assume. For jobs that run on Fargate resources, you must provide an execution role. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/execution-IAM-role.html">AWS Batch execution IAM role</a> in the * AWS Batch User Guide*.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    executionRoleArn?: Value<string>;
    /** <code>RuntimePlatform</code>  <a name="cfn-batch-jobdefinition-containerproperties-runtimeplatform"></a>
  An object that represents the compute environment architecture for AWS Batch jobs on Fargate.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    runtimePlatform?: RuntimePlatformProps;
    /** <code>Volumes</code>  <a name="cfn-batch-jobdefinition-containerproperties-volumes"></a>
  A list of data volumes used in a job.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    volumes?: VolumesProps[];
    /** <code>Command</code>  <a name="cfn-batch-jobdefinition-containerproperties-command"></a>
  The command that’s passed to the container. This parameter maps to <code>Cmd</code> in the <a href="https://docs.docker.com/engine/api/v1.23/#create-a-container">Create a container</a> section of the <a href="https://docs.docker.com/engine/api/v1.23/">Docker Remote API</a> and the <code>COMMAND</code> parameter to <a href="https://docs.docker.com/engine/reference/run/">docker run</a>. For more information, see <a href="https://docs.docker.com/engine/reference/builder/#cmd">https://docs.docker.com/engine/reference/builder/#cmd</a>.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    command?: Value<Value<string>[]>;
    /** <code>Environment</code>  <a name="cfn-batch-jobdefinition-containerproperties-environment"></a>
  The environment variables to pass to a container. This parameter maps to <code>Env</code> in the <a href="https://docs.docker.com/engine/api/v1.23/#create-a-container">Create a container</a> section of the <a href="https://docs.docker.com/engine/api/v1.23/">Docker Remote API</a> and the <code>--env</code> option to <a href="https://docs.docker.com/engine/reference/run/">docker run</a>.<br />
  We don’t recommend using plaintext environment variables for sensitive information, such as credential data.
  Environment variables cannot start with “<code>AWS_BATCH</code>”. This naming convention is reserved for variables that AWS Batch sets.
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    environment?: EnvironmentProps[];
    /** <code>Ulimits</code>  <a name="cfn-batch-jobdefinition-containerproperties-ulimits"></a>
  A list of <code>ulimits</code> to set in the container. This parameter maps to <code>Ulimits</code> in the <a href="https://docs.docker.com/engine/api/v1.23/#create-a-container">Create a container</a> section of the <a href="https://docs.docker.com/engine/api/v1.23/">Docker Remote API</a> and the <code>--ulimit</code> option to <a href="https://docs.docker.com/engine/reference/run/">docker run</a>.<br />
  This parameter isn’t applicable to jobs that are running on Fargate resources and shouldn’t be provided.
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    ulimits?: UlimitProps[];
    /** <code>NetworkConfiguration</code>  <a name="cfn-batch-jobdefinition-containerproperties-networkconfiguration"></a>
  The network configuration for jobs that are running on Fargate resources. Jobs that are running on EC2 resources must not specify this parameter.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    networkConfiguration?: NetworkConfigurationProps;
    /** <code>InstanceType</code>  <a name="cfn-batch-jobdefinition-containerproperties-instancetype"></a>
  The instance type to use for a multi-node parallel job. All node groups in a multi-node parallel job must use the same instance type.<br />
  This parameter isn’t applicable to single-node container jobs or jobs that run on Fargate resources, and shouldn’t be provided.
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    instanceType?: Value<string>;
    /** <code>EphemeralStorage</code>  <a name="cfn-batch-jobdefinition-containerproperties-ephemeralstorage"></a>
  The amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on AWS Fargate.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    ephemeralStorage?: EphemeralStorageProps;
}
