Struct aws_sdk_securityhub::model::aws_ecs_task_definition_container_definitions_details::Builder [−][src]
#[non_exhaustive]pub struct Builder { /* fields omitted */ }
Expand description
A builder for AwsEcsTaskDefinitionContainerDefinitionsDetails
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.
pub fn depends_on(
self,
input: impl Into<AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails>
) -> Self
pub fn depends_on(
self,
input: impl Into<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.
pub 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.
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.
The entry point that is passed to the container.
pub fn environment(
self,
input: impl Into<AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails>
) -> Self
pub fn environment(
self,
input: impl Into<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.
pub 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.
pub fn environment_files(
self,
input: impl Into<AwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails>
) -> Self
pub fn environment_files(
self,
input: impl Into<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.
pub 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.
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.
pub fn extra_hosts(
self,
input: impl Into<AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails>
) -> Self
pub fn extra_hosts(
self,
input: impl Into<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.
pub 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.
pub 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.
pub 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.
pub 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.
pub 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.
The hostname to use for 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.
pub 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.
pub 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.
pub fn log_configuration(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails
) -> Self
pub fn log_configuration(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails
) -> Self
The log configuration specification for the container.
pub 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.
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.
pub fn mount_points(
self,
input: impl Into<AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails>
) -> Self
pub fn mount_points(
self,
input: impl Into<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.
pub 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.
pub fn port_mappings(
self,
input: impl Into<AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails>
) -> Self
pub fn port_mappings(
self,
input: impl Into<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.
pub 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.
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.
pub fn repository_credentials(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails
) -> Self
pub fn repository_credentials(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails
) -> Self
The private repository authentication credentials to use.
pub 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.
pub fn resource_requirements(
self,
input: impl Into<AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails>
) -> Self
pub fn resource_requirements(
self,
input: impl Into<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.
pub 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.
pub fn secrets(
self,
input: impl Into<AwsEcsTaskDefinitionContainerDefinitionsSecretsDetails>
) -> Self
pub fn secrets(
self,
input: impl Into<AwsEcsTaskDefinitionContainerDefinitionsSecretsDetails>
) -> Self
Appends an item to secrets
.
To override the contents of this collection use set_secrets
.
The secrets to pass to the container.
pub 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.
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.
pub fn system_controls(
self,
input: impl Into<AwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails>
) -> Self
pub fn system_controls(
self,
input: impl Into<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.
pub 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.
pub fn ulimits(
self,
input: impl Into<AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails>
) -> Self
pub fn ulimits(
self,
input: impl Into<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.
pub 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.
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
pub fn volumes_from(
self,
input: impl Into<AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails>
) -> Self
pub fn volumes_from(
self,
input: impl Into<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.
pub 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.
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
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl UnwindSafe for Builder
Blanket Implementations
Mutably borrows from an owned value. Read more
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