pub struct Builder { /* private fields */ }
Expand description

Implementations§

Appends an item to command.

To override the contents of this collection use set_command.

The command that is passed to the container.

The command that is passed to the container.

The number of CPU units reserved for the container.

The number of CPU units reserved for the container.

Appends an item to depends_on.

To override the contents of this collection use set_depends_on.

The dependencies that are defined for container startup and shutdown.

The dependencies that are defined for container startup and shutdown.

Whether to disable networking within the container.

Whether to disable networking within the container.

Appends an item to dns_search_domains.

To override the contents of this collection use set_dns_search_domains.

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

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

Appends an item to dns_servers.

To override the contents of this collection use set_dns_servers.

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

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

Adds a key-value pair to docker_labels.

To override the contents of this collection use set_docker_labels.

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

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

Appends an item to docker_security_options.

To override the contents of this collection use set_docker_security_options.

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

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

Appends an item to entry_point.

To override the contents of this collection use set_entry_point.

The entry point that is passed to the container.

source

pub fn set_entry_point(self, input: Option<Vec<String>>) -> Self

The entry point that is passed to the container.

Appends an item to environment.

To override the contents of this collection use set_environment.

The environment variables to pass to a container.

The environment variables to pass to a container.

Appends an item to environment_files.

To override the contents of this collection use set_environment_files.

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

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

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

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

Appends an item to extra_hosts.

To override the contents of this collection use set_extra_hosts.

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

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

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

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

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

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

The hostname to use for the container.

The hostname to use for the container.

The image used to start the container.

The image used to start the container.

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

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

Appends an item to links.

To override the contents of this collection use set_links.

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.

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-specific modifications that are applied to the container, such as Linux kernel capabilities.

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

The log configuration specification for the container.

The log configuration specification for the container.

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.

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.

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

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

Appends an item to mount_points.

To override the contents of this collection use set_mount_points.

The mount points for the data volumes in the container.

The mount points for the data volumes in the container.

The name of the container.

The name of the container.

Appends an item to port_mappings.

To override the contents of this collection use set_port_mappings.

The list of port mappings for the container.

The list of port mappings for the container.

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

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

Whether to allocate a TTY to the container.

Whether to allocate a TTY to the container.

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

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

The private repository authentication credentials to use.

The private repository authentication credentials to use.

Appends an item to resource_requirements.

To override the contents of this collection use set_resource_requirements.

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

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

Appends an item to secrets.

To override the contents of this collection use set_secrets.

The secrets to pass to the container.

The secrets to pass to the container.

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

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

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

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

Appends an item to system_controls.

To override the contents of this collection use set_system_controls.

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

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

Appends an item to ulimits.

To override the contents of this collection use set_ulimits.

A list of ulimits to set in the container.

A list of ulimits to set in the container.

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

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

Appends an item to volumes_from.

To override the contents of this collection use set_volumes_from.

Data volumes to mount from another container.

Data volumes to mount from another container.

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

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

Consumes the builder and constructs a AwsEcsTaskDefinitionContainerDefinitionsDetails.

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
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

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
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