logo
pub struct AwsEcsTaskDefinitionContainerDefinitionsDetails {
Show 39 fields pub command: Option<Vec<String>>, pub cpu: Option<i64>, pub depends_on: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails>>, pub disable_networking: Option<bool>, pub dns_search_domains: Option<Vec<String>>, pub dns_servers: Option<Vec<String>>, pub docker_labels: Option<HashMap<String, String>>, pub docker_security_options: Option<Vec<String>>, pub entry_point: Option<Vec<String>>, pub environment: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails>>, pub environment_files: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails>>, pub essential: Option<bool>, pub extra_hosts: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails>>, pub firelens_configuration: Option<AwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails>, pub health_check: Option<AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails>, pub hostname: Option<String>, pub image: Option<String>, pub interactive: Option<bool>, pub links: Option<Vec<String>>, pub linux_parameters: Option<AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails>, pub log_configuration: Option<AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails>, pub memory: Option<i64>, pub memory_reservation: Option<i64>, pub mount_points: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails>>, pub name: Option<String>, pub port_mappings: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails>>, pub privileged: Option<bool>, pub pseudo_terminal: Option<bool>, pub readonly_root_filesystem: Option<bool>, pub repository_credentials: Option<AwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails>, pub resource_requirements: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails>>, pub secrets: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsSecretsDetails>>, pub start_timeout: Option<i64>, pub stop_timeout: Option<i64>, pub system_controls: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails>>, pub ulimits: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails>>, pub user: Option<String>, pub volumes_from: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails>>, pub working_directory: Option<String>,
}
Expand description

A container definition that describes a container in the task.

Fields

command: Option<Vec<String>>

The command that is passed to the container.

cpu: Option<i64>

The number of CPU units reserved for the container.

depends_on: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails>>

The dependencies that are defined for container startup and shutdown.

disable_networking: Option<bool>

Whether to disable networking within the container.

dns_search_domains: Option<Vec<String>>

A list of DNS search domains that are presented to the container.

dns_servers: Option<Vec<String>>

A list of DNS servers that are presented to the container.

docker_labels: Option<HashMap<String, String>>

A key-value map of labels to add to the container.

docker_security_options: Option<Vec<String>>

A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems.

entry_point: Option<Vec<String>>

The entry point that is passed to the container.

environment: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails>>

The environment variables to pass to a container.

environment_files: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails>>

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

essential: Option<bool>

Whether the container is essential. All tasks must have at least one essential container.

extra_hosts: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails>>

A list of hostnames and IP address mappings to append to the /etc/hosts file on the container.

firelens_configuration: Option<AwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails>

The FireLens configuration for the container. Specifies and configures a log router for container logs.

health_check: Option<AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails>

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

hostname: Option<String>

The hostname to use for the container.

image: Option<String>

The image used to start the container.

interactive: Option<bool>

If set to true, then containerized applications can be deployed that require stdin or a tty to be allocated.

links: Option<Vec<String>>

A list of links for the container in the form container_name:alias . Allows containers to communicate with each other without the need for port mappings.

linux_parameters: Option<AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails>

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

log_configuration: Option<AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails>

The log configuration specification for the container.

memory: Option<i64>

The amount (in MiB) of memory to present to the container. If the container attempts to exceed the memory specified here, the container is shut down. The total amount of memory reserved for all containers within a task must be lower than the task memory value, if one is specified.

memory_reservation: Option<i64>

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

mount_points: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails>>

The mount points for the data volumes in the container.

name: Option<String>

The name of the container.

port_mappings: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails>>

The list of port mappings for the container.

privileged: Option<bool>

Whether the container is given elevated privileges on the host container instance. The elevated privileges are similar to the root user.

pseudo_terminal: Option<bool>

Whether to allocate a TTY to the container.

readonly_root_filesystem: Option<bool>

Whether the container is given read-only access to its root file system.

repository_credentials: Option<AwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails>

The private repository authentication credentials to use.

resource_requirements: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails>>

The type and amount of a resource to assign to a container. The only supported resource is a GPU.

secrets: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsSecretsDetails>>

The secrets to pass to the container.

start_timeout: Option<i64>

The number of seconds to wait before giving up on resolving dependencies for a container.

stop_timeout: Option<i64>

The number of seconds to wait before the container is stopped if it doesn't shut down normally on its own.

system_controls: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails>>

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

ulimits: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails>>

A list of ulimits to set in the container.

user: Option<String>

The user to use inside the container.

The value can use one of the following formats.

  • user

  • user : group

  • uid

  • uid : gid

  • user : gid

  • uid : group

volumes_from: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails>>

Data volumes to mount from another container.

working_directory: Option<String>

The working directory in which to run commands inside the container.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more