Struct aws_sdk_securityhub::model::aws_ecs_task_definition_container_definitions_details::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for AwsEcsTaskDefinitionContainerDefinitionsDetails
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn command(self, input: impl Into<String>) -> Self
pub fn command(self, input: impl Into<String>) -> Self
Appends an item to command
.
To override the contents of this collection use set_command
.
The command that is passed to the container.
sourcepub fn set_command(self, input: Option<Vec<String>>) -> Self
pub fn set_command(self, input: Option<Vec<String>>) -> Self
The command that is passed to the container.
sourcepub fn set_cpu(self, input: Option<i32>) -> Self
pub fn set_cpu(self, input: Option<i32>) -> Self
The number of CPU units reserved for the container.
sourcepub fn depends_on(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails
) -> Self
pub fn depends_on(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails
) -> Self
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.
sourcepub fn set_depends_on(
self,
input: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails>>
) -> Self
pub fn set_depends_on(
self,
input: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails>>
) -> Self
The dependencies that are defined for container startup and shutdown.
sourcepub fn disable_networking(self, input: bool) -> Self
pub fn disable_networking(self, input: bool) -> Self
Whether to disable networking within the container.
sourcepub fn set_disable_networking(self, input: Option<bool>) -> Self
pub fn set_disable_networking(self, input: Option<bool>) -> Self
Whether to disable networking within the container.
sourcepub fn dns_search_domains(self, input: impl Into<String>) -> Self
pub fn dns_search_domains(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_dns_search_domains(self, input: Option<Vec<String>>) -> Self
pub fn set_dns_search_domains(self, input: Option<Vec<String>>) -> Self
A list of DNS search domains that are presented to the container.
sourcepub fn dns_servers(self, input: impl Into<String>) -> Self
pub fn dns_servers(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_dns_servers(self, input: Option<Vec<String>>) -> Self
pub fn set_dns_servers(self, input: Option<Vec<String>>) -> Self
A list of DNS servers that are presented to the container.
sourcepub fn docker_labels(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn docker_labels(self, k: impl Into<String>, v: impl Into<String>) -> Self
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.
sourcepub fn set_docker_labels(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_docker_labels(self, input: Option<HashMap<String, String>>) -> Self
A key-value map of labels to add to the container.
sourcepub fn docker_security_options(self, input: impl Into<String>) -> Self
pub fn docker_security_options(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_docker_security_options(self, input: Option<Vec<String>>) -> Self
pub fn set_docker_security_options(self, input: Option<Vec<String>>) -> Self
A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems.
sourcepub fn entry_point(self, input: impl Into<String>) -> Self
pub fn entry_point(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_entry_point(self, input: Option<Vec<String>>) -> Self
pub fn set_entry_point(self, input: Option<Vec<String>>) -> Self
The entry point that is passed to the container.
sourcepub fn environment(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
) -> Self
pub fn environment(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails
) -> Self
Appends an item to environment
.
To override the contents of this collection use set_environment
.
The environment variables to pass to a container.
sourcepub fn set_environment(
self,
input: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails>>
) -> Self
pub fn set_environment(
self,
input: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails>>
) -> Self
The environment variables to pass to a container.
sourcepub fn environment_files(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails
) -> Self
pub fn environment_files(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails
) -> Self
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.
sourcepub fn set_environment_files(
self,
input: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails>>
) -> Self
pub fn set_environment_files(
self,
input: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails>>
) -> Self
A list of files containing the environment variables to pass to a container.
sourcepub fn essential(self, input: bool) -> Self
pub fn essential(self, input: bool) -> Self
Whether the container is essential. All tasks must have at least one essential container.
sourcepub fn set_essential(self, input: Option<bool>) -> Self
pub fn set_essential(self, input: Option<bool>) -> Self
Whether the container is essential. All tasks must have at least one essential container.
sourcepub fn extra_hosts(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails
) -> Self
pub fn extra_hosts(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails
) -> Self
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.
sourcepub fn set_extra_hosts(
self,
input: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails>>
) -> Self
pub fn set_extra_hosts(
self,
input: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails>>
) -> Self
A list of hostnames and IP address mappings to append to the /etc/hosts file on the container.
sourcepub fn firelens_configuration(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails
) -> Self
pub fn firelens_configuration(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails
) -> Self
The FireLens configuration for the container. Specifies and configures a log router for container logs.
sourcepub fn set_firelens_configuration(
self,
input: Option<AwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails>
) -> Self
pub fn set_firelens_configuration(
self,
input: Option<AwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails>
) -> Self
The FireLens configuration for the container. Specifies and configures a log router for container logs.
sourcepub fn health_check(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails
) -> Self
pub fn health_check(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails
) -> Self
The container health check command and associated configuration parameters for the container.
sourcepub fn set_health_check(
self,
input: Option<AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails>
) -> Self
pub fn set_health_check(
self,
input: Option<AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails>
) -> Self
The container health check command and associated configuration parameters for the container.
sourcepub fn set_hostname(self, input: Option<String>) -> Self
pub fn set_hostname(self, input: Option<String>) -> Self
The hostname to use for the container.
sourcepub fn interactive(self, input: bool) -> Self
pub fn interactive(self, input: bool) -> Self
If set to true, then containerized applications can be deployed that require stdin
or a tty
to be allocated.
sourcepub fn set_interactive(self, input: Option<bool>) -> Self
pub fn set_interactive(self, input: Option<bool>) -> Self
If set to true, then containerized applications can be deployed that require stdin
or a tty
to be allocated.
sourcepub fn links(self, input: impl Into<String>) -> Self
pub fn links(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_links(self, input: Option<Vec<String>>) -> Self
pub fn set_links(self, input: Option<Vec<String>>) -> Self
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,
input: AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails
) -> Self
pub fn linux_parameters(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails
) -> Self
Linux-specific modifications that are applied to the container, such as Linux kernel capabilities.
sourcepub fn set_linux_parameters(
self,
input: Option<AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails>
) -> Self
pub fn set_linux_parameters(
self,
input: Option<AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails>
) -> Self
Linux-specific modifications that are applied to the container, such as Linux kernel capabilities.
sourcepub fn log_configuration(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails
) -> Self
pub fn log_configuration(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails
) -> Self
The log configuration specification for the container.
sourcepub fn set_log_configuration(
self,
input: Option<AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails>
) -> Self
pub fn set_log_configuration(
self,
input: Option<AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails>
) -> Self
The log configuration specification for the container.
sourcepub fn memory(self, input: i32) -> Self
pub fn memory(self, input: i32) -> Self
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 set_memory(self, input: Option<i32>) -> Self
pub fn set_memory(self, input: Option<i32>) -> Self
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, input: i32) -> Self
pub fn memory_reservation(self, input: i32) -> Self
The soft limit (in MiB) of memory to reserve for the container.
sourcepub fn set_memory_reservation(self, input: Option<i32>) -> Self
pub fn set_memory_reservation(self, input: Option<i32>) -> Self
The soft limit (in MiB) of memory to reserve for the container.
sourcepub fn mount_points(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails
) -> Self
pub fn mount_points(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails
) -> Self
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.
sourcepub fn set_mount_points(
self,
input: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails>>
) -> Self
pub fn set_mount_points(
self,
input: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails>>
) -> Self
The mount points for the data volumes in the container.
sourcepub fn port_mappings(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails
) -> Self
pub fn port_mappings(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails
) -> Self
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.
sourcepub fn set_port_mappings(
self,
input: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails>>
) -> Self
pub fn set_port_mappings(
self,
input: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails>>
) -> Self
The list of port mappings for the container.
sourcepub fn privileged(self, input: bool) -> Self
pub fn privileged(self, input: bool) -> Self
Whether the container is given elevated privileges on the host container instance. The elevated privileges are similar to the root user.
sourcepub fn set_privileged(self, input: Option<bool>) -> Self
pub fn set_privileged(self, input: Option<bool>) -> Self
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, input: bool) -> Self
pub fn pseudo_terminal(self, input: bool) -> Self
Whether to allocate a TTY to the container.
sourcepub fn set_pseudo_terminal(self, input: Option<bool>) -> Self
pub fn set_pseudo_terminal(self, input: Option<bool>) -> Self
Whether to allocate a TTY to the container.
sourcepub fn readonly_root_filesystem(self, input: bool) -> Self
pub fn readonly_root_filesystem(self, input: bool) -> Self
Whether the container is given read-only access to its root file system.
sourcepub fn set_readonly_root_filesystem(self, input: Option<bool>) -> Self
pub fn set_readonly_root_filesystem(self, input: Option<bool>) -> Self
Whether the container is given read-only access to its root file system.
sourcepub fn repository_credentials(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails
) -> Self
pub fn repository_credentials(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails
) -> Self
The private repository authentication credentials to use.
sourcepub fn set_repository_credentials(
self,
input: Option<AwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails>
) -> Self
pub fn set_repository_credentials(
self,
input: Option<AwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails>
) -> Self
The private repository authentication credentials to use.
sourcepub fn resource_requirements(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails
) -> Self
pub fn resource_requirements(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails
) -> Self
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.
sourcepub fn set_resource_requirements(
self,
input: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails>>
) -> Self
pub fn set_resource_requirements(
self,
input: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails>>
) -> Self
The type and amount of a resource to assign to a container. The only supported resource is a GPU.
sourcepub fn secrets(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsSecretsDetails
) -> Self
pub fn secrets(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsSecretsDetails
) -> Self
Appends an item to secrets
.
To override the contents of this collection use set_secrets
.
The secrets to pass to the container.
sourcepub fn set_secrets(
self,
input: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsSecretsDetails>>
) -> Self
pub fn set_secrets(
self,
input: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsSecretsDetails>>
) -> Self
The secrets to pass to the container.
sourcepub fn start_timeout(self, input: i32) -> Self
pub fn start_timeout(self, input: i32) -> Self
The number of seconds to wait before giving up on resolving dependencies for a container.
sourcepub fn set_start_timeout(self, input: Option<i32>) -> Self
pub fn set_start_timeout(self, input: Option<i32>) -> Self
The number of seconds to wait before giving up on resolving dependencies for a container.
sourcepub fn stop_timeout(self, input: i32) -> Self
pub fn stop_timeout(self, input: i32) -> Self
The number of seconds to wait before the container is stopped if it doesn't shut down normally on its own.
sourcepub fn set_stop_timeout(self, input: Option<i32>) -> Self
pub fn set_stop_timeout(self, input: Option<i32>) -> Self
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,
input: AwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails
) -> Self
pub fn system_controls(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails
) -> Self
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.
sourcepub fn set_system_controls(
self,
input: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails>>
) -> Self
pub fn set_system_controls(
self,
input: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails>>
) -> Self
A list of namespaced kernel parameters to set in the container.
sourcepub fn ulimits(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails
) -> Self
pub fn ulimits(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails
) -> Self
Appends an item to ulimits
.
To override the contents of this collection use set_ulimits
.
A list of ulimits to set in the container.
sourcepub fn set_ulimits(
self,
input: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails>>
) -> Self
pub fn set_ulimits(
self,
input: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails>>
) -> Self
A list of ulimits to set in the container.
sourcepub fn user(self, input: impl Into<String>) -> Self
pub fn user(self, input: impl Into<String>) -> Self
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 set_user(self, input: Option<String>) -> Self
pub fn set_user(self, input: Option<String>) -> Self
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,
input: AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails
) -> Self
pub fn volumes_from(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails
) -> Self
Appends an item to volumes_from
.
To override the contents of this collection use set_volumes_from
.
Data volumes to mount from another container.
sourcepub fn set_volumes_from(
self,
input: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails>>
) -> Self
pub fn set_volumes_from(
self,
input: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails>>
) -> Self
Data volumes to mount from another container.
sourcepub fn working_directory(self, input: impl Into<String>) -> Self
pub fn working_directory(self, input: impl Into<String>) -> Self
The working directory in which to run commands inside the container.
sourcepub fn set_working_directory(self, input: Option<String>) -> Self
pub fn set_working_directory(self, input: Option<String>) -> Self
The working directory in which to run commands inside the container.
sourcepub fn build(self) -> AwsEcsTaskDefinitionContainerDefinitionsDetails
pub fn build(self) -> AwsEcsTaskDefinitionContainerDefinitionsDetails
Consumes the builder and constructs a AwsEcsTaskDefinitionContainerDefinitionsDetails
.