#[non_exhaustive]pub struct AwsEcsTaskDefinitionContainerDefinitionsDetails { /* private fields */ }
Expand description
A container definition that describes a container in the task.
Implementations§
source§impl AwsEcsTaskDefinitionContainerDefinitionsDetails
impl AwsEcsTaskDefinitionContainerDefinitionsDetails
sourcepub fn depends_on(
&self
) -> Option<&[AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails]>
pub fn depends_on(
&self
) -> Option<&[AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails]>
The dependencies that are defined for container startup and shutdown.
sourcepub fn disable_networking(&self) -> bool
pub fn disable_networking(&self) -> bool
Whether to disable networking within the container.
sourcepub fn dns_search_domains(&self) -> Option<&[String]>
pub fn dns_search_domains(&self) -> Option<&[String]>
A list of DNS search domains that are presented to the container.
sourcepub fn dns_servers(&self) -> Option<&[String]>
pub fn dns_servers(&self) -> Option<&[String]>
A list of DNS servers that are presented to the container.
sourcepub fn docker_labels(&self) -> Option<&HashMap<String, String>>
pub fn docker_labels(&self) -> Option<&HashMap<String, String>>
A key-value map of labels to add to the container.
sourcepub fn docker_security_options(&self) -> Option<&[String]>
pub fn docker_security_options(&self) -> Option<&[String]>
A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems.
sourcepub fn entry_point(&self) -> Option<&[String]>
pub fn entry_point(&self) -> Option<&[String]>
The entry point that is passed to the container.
sourcepub fn environment(
&self
) -> Option<&[AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails]>
pub fn environment(
&self
) -> Option<&[AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails]>
The environment variables to pass to a container.
sourcepub fn environment_files(
&self
) -> Option<&[AwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails]>
pub fn environment_files(
&self
) -> Option<&[AwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails]>
A list of files containing the environment variables to pass to a container.
sourcepub fn essential(&self) -> bool
pub fn essential(&self) -> bool
Whether the container is essential. All tasks must have at least one essential container.
sourcepub fn extra_hosts(
&self
) -> Option<&[AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails]>
pub fn extra_hosts(
&self
) -> Option<&[AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails]>
A list of hostnames and IP address mappings to append to the /etc/hosts file on the container.
sourcepub fn firelens_configuration(
&self
) -> Option<&AwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails>
pub fn firelens_configuration(
&self
) -> Option<&AwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails>
The FireLens configuration for the container. Specifies and configures a log router for container logs.
sourcepub fn health_check(
&self
) -> Option<&AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails>
pub fn health_check(
&self
) -> Option<&AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails>
The container health check command and associated configuration parameters for the container.
sourcepub fn interactive(&self) -> bool
pub fn interactive(&self) -> bool
If set to true, then containerized applications can be deployed that require stdin
or a tty
to be allocated.
sourcepub fn links(&self) -> Option<&[String]>
pub fn links(&self) -> Option<&[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.
sourcepub fn linux_parameters(
&self
) -> Option<&AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails>
pub fn linux_parameters(
&self
) -> Option<&AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails>
Linux-specific modifications that are applied to the container, such as Linux kernel capabilities.
sourcepub fn log_configuration(
&self
) -> Option<&AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails>
pub fn log_configuration(
&self
) -> Option<&AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails>
The log configuration specification for the container.
sourcepub fn memory(&self) -> i32
pub fn memory(&self) -> i32
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.
sourcepub fn memory_reservation(&self) -> i32
pub fn memory_reservation(&self) -> i32
The soft limit (in MiB) of memory to reserve for the container.
sourcepub fn mount_points(
&self
) -> Option<&[AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails]>
pub fn mount_points(
&self
) -> Option<&[AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails]>
The mount points for the data volumes in the container.
sourcepub fn port_mappings(
&self
) -> Option<&[AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails]>
pub fn port_mappings(
&self
) -> Option<&[AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails]>
The list of port mappings for the container.
sourcepub fn privileged(&self) -> bool
pub fn privileged(&self) -> bool
Whether the container is given elevated privileges on the host container instance. The elevated privileges are similar to the root user.
sourcepub fn pseudo_terminal(&self) -> bool
pub fn pseudo_terminal(&self) -> bool
Whether to allocate a TTY to the container.
sourcepub fn readonly_root_filesystem(&self) -> bool
pub fn readonly_root_filesystem(&self) -> bool
Whether the container is given read-only access to its root file system.
sourcepub fn repository_credentials(
&self
) -> Option<&AwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails>
pub fn repository_credentials(
&self
) -> Option<&AwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails>
The private repository authentication credentials to use.
sourcepub fn resource_requirements(
&self
) -> Option<&[AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails]>
pub fn resource_requirements(
&self
) -> Option<&[AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails]>
The type and amount of a resource to assign to a container. The only supported resource is a GPU.
sourcepub fn secrets(
&self
) -> Option<&[AwsEcsTaskDefinitionContainerDefinitionsSecretsDetails]>
pub fn secrets(
&self
) -> Option<&[AwsEcsTaskDefinitionContainerDefinitionsSecretsDetails]>
The secrets to pass to the container.
sourcepub fn start_timeout(&self) -> i32
pub fn start_timeout(&self) -> i32
The number of seconds to wait before giving up on resolving dependencies for a container.
sourcepub fn stop_timeout(&self) -> i32
pub fn stop_timeout(&self) -> i32
The number of seconds to wait before the container is stopped if it doesn't shut down normally on its own.
sourcepub fn system_controls(
&self
) -> Option<&[AwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails]>
pub fn system_controls(
&self
) -> Option<&[AwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails]>
A list of namespaced kernel parameters to set in the container.
sourcepub fn ulimits(
&self
) -> Option<&[AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails]>
pub fn ulimits(
&self
) -> Option<&[AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails]>
A list of ulimits to set in the container.
sourcepub fn user(&self) -> Option<&str>
pub fn user(&self) -> Option<&str>
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
sourcepub fn volumes_from(
&self
) -> Option<&[AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails]>
pub fn volumes_from(
&self
) -> Option<&[AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails]>
Data volumes to mount from another container.
sourcepub fn working_directory(&self) -> Option<&str>
pub fn working_directory(&self) -> Option<&str>
The working directory in which to run commands inside the container.
source§impl AwsEcsTaskDefinitionContainerDefinitionsDetails
impl AwsEcsTaskDefinitionContainerDefinitionsDetails
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AwsEcsTaskDefinitionContainerDefinitionsDetails
.
Trait Implementations§
source§impl Clone for AwsEcsTaskDefinitionContainerDefinitionsDetails
impl Clone for AwsEcsTaskDefinitionContainerDefinitionsDetails
source§fn clone(&self) -> AwsEcsTaskDefinitionContainerDefinitionsDetails
fn clone(&self) -> AwsEcsTaskDefinitionContainerDefinitionsDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq<AwsEcsTaskDefinitionContainerDefinitionsDetails> for AwsEcsTaskDefinitionContainerDefinitionsDetails
impl PartialEq<AwsEcsTaskDefinitionContainerDefinitionsDetails> for AwsEcsTaskDefinitionContainerDefinitionsDetails
source§fn eq(&self, other: &AwsEcsTaskDefinitionContainerDefinitionsDetails) -> bool
fn eq(&self, other: &AwsEcsTaskDefinitionContainerDefinitionsDetails) -> bool
self
and other
values to be equal, and is used
by ==
.