/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A container definition that describes a container in the task.See
* Also:
AWS
* API Reference
The command that is passed to the container.
*/ inline const Aws::VectorThe command that is passed to the container.
*/ inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; } /** *The command that is passed to the container.
*/ inline void SetCommand(const Aws::VectorThe command that is passed to the container.
*/ inline void SetCommand(Aws::VectorThe command that is passed to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithCommand(const Aws::VectorThe command that is passed to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithCommand(Aws::VectorThe command that is passed to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; } /** *The command that is passed to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command.push_back(std::move(value)); return *this; } /** *The command that is passed to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddCommand(const char* value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; } /** *The number of CPU units reserved for the container.
*/ inline int GetCpu() const{ return m_cpu; } /** *The number of CPU units reserved for the container.
*/ inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; } /** *The number of CPU units reserved for the container.
*/ inline void SetCpu(int value) { m_cpuHasBeenSet = true; m_cpu = value; } /** *The number of CPU units reserved for the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithCpu(int value) { SetCpu(value); return *this;} /** *The dependencies that are defined for container startup and shutdown.
*/ inline const Aws::VectorThe dependencies that are defined for container startup and shutdown.
*/ inline bool DependsOnHasBeenSet() const { return m_dependsOnHasBeenSet; } /** *The dependencies that are defined for container startup and shutdown.
*/ inline void SetDependsOn(const Aws::VectorThe dependencies that are defined for container startup and shutdown.
*/ inline void SetDependsOn(Aws::VectorThe dependencies that are defined for container startup and shutdown.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithDependsOn(const Aws::VectorThe dependencies that are defined for container startup and shutdown.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithDependsOn(Aws::VectorThe dependencies that are defined for container startup and shutdown.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddDependsOn(const AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails& value) { m_dependsOnHasBeenSet = true; m_dependsOn.push_back(value); return *this; } /** *The dependencies that are defined for container startup and shutdown.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddDependsOn(AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails&& value) { m_dependsOnHasBeenSet = true; m_dependsOn.push_back(std::move(value)); return *this; } /** *Whether to disable networking within the container.
*/ inline bool GetDisableNetworking() const{ return m_disableNetworking; } /** *Whether to disable networking within the container.
*/ inline bool DisableNetworkingHasBeenSet() const { return m_disableNetworkingHasBeenSet; } /** *Whether to disable networking within the container.
*/ inline void SetDisableNetworking(bool value) { m_disableNetworkingHasBeenSet = true; m_disableNetworking = value; } /** *Whether to disable networking within the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithDisableNetworking(bool value) { SetDisableNetworking(value); return *this;} /** *A list of DNS search domains that are presented to the container.
*/ inline const Aws::VectorA list of DNS search domains that are presented to the container.
*/ inline bool DnsSearchDomainsHasBeenSet() const { return m_dnsSearchDomainsHasBeenSet; } /** *A list of DNS search domains that are presented to the container.
*/ inline void SetDnsSearchDomains(const Aws::VectorA list of DNS search domains that are presented to the container.
*/ inline void SetDnsSearchDomains(Aws::VectorA list of DNS search domains that are presented to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithDnsSearchDomains(const Aws::VectorA list of DNS search domains that are presented to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithDnsSearchDomains(Aws::VectorA list of DNS search domains that are presented to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddDnsSearchDomains(const Aws::String& value) { m_dnsSearchDomainsHasBeenSet = true; m_dnsSearchDomains.push_back(value); return *this; } /** *A list of DNS search domains that are presented to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddDnsSearchDomains(Aws::String&& value) { m_dnsSearchDomainsHasBeenSet = true; m_dnsSearchDomains.push_back(std::move(value)); return *this; } /** *A list of DNS search domains that are presented to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddDnsSearchDomains(const char* value) { m_dnsSearchDomainsHasBeenSet = true; m_dnsSearchDomains.push_back(value); return *this; } /** *A list of DNS servers that are presented to the container.
*/ inline const Aws::VectorA list of DNS servers that are presented to the container.
*/ inline bool DnsServersHasBeenSet() const { return m_dnsServersHasBeenSet; } /** *A list of DNS servers that are presented to the container.
*/ inline void SetDnsServers(const Aws::VectorA list of DNS servers that are presented to the container.
*/ inline void SetDnsServers(Aws::VectorA list of DNS servers that are presented to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithDnsServers(const Aws::VectorA list of DNS servers that are presented to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithDnsServers(Aws::VectorA list of DNS servers that are presented to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddDnsServers(const Aws::String& value) { m_dnsServersHasBeenSet = true; m_dnsServers.push_back(value); return *this; } /** *A list of DNS servers that are presented to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddDnsServers(Aws::String&& value) { m_dnsServersHasBeenSet = true; m_dnsServers.push_back(std::move(value)); return *this; } /** *A list of DNS servers that are presented to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddDnsServers(const char* value) { m_dnsServersHasBeenSet = true; m_dnsServers.push_back(value); return *this; } /** *A key-value map of labels to add to the container.
*/ inline const Aws::MapA key-value map of labels to add to the container.
*/ inline bool DockerLabelsHasBeenSet() const { return m_dockerLabelsHasBeenSet; } /** *A key-value map of labels to add to the container.
*/ inline void SetDockerLabels(const Aws::MapA key-value map of labels to add to the container.
*/ inline void SetDockerLabels(Aws::MapA key-value map of labels to add to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithDockerLabels(const Aws::MapA key-value map of labels to add to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithDockerLabels(Aws::MapA key-value map of labels to add to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddDockerLabels(const Aws::String& key, const Aws::String& value) { m_dockerLabelsHasBeenSet = true; m_dockerLabels.emplace(key, value); return *this; } /** *A key-value map of labels to add to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddDockerLabels(Aws::String&& key, const Aws::String& value) { m_dockerLabelsHasBeenSet = true; m_dockerLabels.emplace(std::move(key), value); return *this; } /** *A key-value map of labels to add to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddDockerLabels(const Aws::String& key, Aws::String&& value) { m_dockerLabelsHasBeenSet = true; m_dockerLabels.emplace(key, std::move(value)); return *this; } /** *A key-value map of labels to add to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddDockerLabels(Aws::String&& key, Aws::String&& value) { m_dockerLabelsHasBeenSet = true; m_dockerLabels.emplace(std::move(key), std::move(value)); return *this; } /** *A key-value map of labels to add to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddDockerLabels(const char* key, Aws::String&& value) { m_dockerLabelsHasBeenSet = true; m_dockerLabels.emplace(key, std::move(value)); return *this; } /** *A key-value map of labels to add to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddDockerLabels(Aws::String&& key, const char* value) { m_dockerLabelsHasBeenSet = true; m_dockerLabels.emplace(std::move(key), value); return *this; } /** *A key-value map of labels to add to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddDockerLabels(const char* key, const char* value) { m_dockerLabelsHasBeenSet = true; m_dockerLabels.emplace(key, value); return *this; } /** *A list of strings to provide custom labels for SELinux and AppArmor * multi-level security systems.
*/ inline const Aws::VectorA list of strings to provide custom labels for SELinux and AppArmor * multi-level security systems.
*/ inline bool DockerSecurityOptionsHasBeenSet() const { return m_dockerSecurityOptionsHasBeenSet; } /** *A list of strings to provide custom labels for SELinux and AppArmor * multi-level security systems.
*/ inline void SetDockerSecurityOptions(const Aws::VectorA list of strings to provide custom labels for SELinux and AppArmor * multi-level security systems.
*/ inline void SetDockerSecurityOptions(Aws::VectorA list of strings to provide custom labels for SELinux and AppArmor * multi-level security systems.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithDockerSecurityOptions(const Aws::VectorA list of strings to provide custom labels for SELinux and AppArmor * multi-level security systems.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithDockerSecurityOptions(Aws::VectorA list of strings to provide custom labels for SELinux and AppArmor * multi-level security systems.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddDockerSecurityOptions(const Aws::String& value) { m_dockerSecurityOptionsHasBeenSet = true; m_dockerSecurityOptions.push_back(value); return *this; } /** *A list of strings to provide custom labels for SELinux and AppArmor * multi-level security systems.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddDockerSecurityOptions(Aws::String&& value) { m_dockerSecurityOptionsHasBeenSet = true; m_dockerSecurityOptions.push_back(std::move(value)); return *this; } /** *A list of strings to provide custom labels for SELinux and AppArmor * multi-level security systems.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddDockerSecurityOptions(const char* value) { m_dockerSecurityOptionsHasBeenSet = true; m_dockerSecurityOptions.push_back(value); return *this; } /** *The entry point that is passed to the container.
*/ inline const Aws::VectorThe entry point that is passed to the container.
*/ inline bool EntryPointHasBeenSet() const { return m_entryPointHasBeenSet; } /** *The entry point that is passed to the container.
*/ inline void SetEntryPoint(const Aws::VectorThe entry point that is passed to the container.
*/ inline void SetEntryPoint(Aws::VectorThe entry point that is passed to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithEntryPoint(const Aws::VectorThe entry point that is passed to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithEntryPoint(Aws::VectorThe entry point that is passed to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddEntryPoint(const Aws::String& value) { m_entryPointHasBeenSet = true; m_entryPoint.push_back(value); return *this; } /** *The entry point that is passed to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddEntryPoint(Aws::String&& value) { m_entryPointHasBeenSet = true; m_entryPoint.push_back(std::move(value)); return *this; } /** *The entry point that is passed to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddEntryPoint(const char* value) { m_entryPointHasBeenSet = true; m_entryPoint.push_back(value); return *this; } /** *The environment variables to pass to a container.
*/ inline const Aws::VectorThe environment variables to pass to a container.
*/ inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; } /** *The environment variables to pass to a container.
*/ inline void SetEnvironment(const Aws::VectorThe environment variables to pass to a container.
*/ inline void SetEnvironment(Aws::VectorThe environment variables to pass to a container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithEnvironment(const Aws::VectorThe environment variables to pass to a container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithEnvironment(Aws::VectorThe environment variables to pass to a container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddEnvironment(const AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails& value) { m_environmentHasBeenSet = true; m_environment.push_back(value); return *this; } /** *The environment variables to pass to a container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddEnvironment(AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails&& value) { m_environmentHasBeenSet = true; m_environment.push_back(std::move(value)); return *this; } /** *A list of files containing the environment variables to pass to a * container.
*/ inline const Aws::VectorA list of files containing the environment variables to pass to a * container.
*/ inline bool EnvironmentFilesHasBeenSet() const { return m_environmentFilesHasBeenSet; } /** *A list of files containing the environment variables to pass to a * container.
*/ inline void SetEnvironmentFiles(const Aws::VectorA list of files containing the environment variables to pass to a * container.
*/ inline void SetEnvironmentFiles(Aws::VectorA list of files containing the environment variables to pass to a * container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithEnvironmentFiles(const Aws::VectorA list of files containing the environment variables to pass to a * container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithEnvironmentFiles(Aws::VectorA list of files containing the environment variables to pass to a * container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddEnvironmentFiles(const AwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails& value) { m_environmentFilesHasBeenSet = true; m_environmentFiles.push_back(value); return *this; } /** *A list of files containing the environment variables to pass to a * container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddEnvironmentFiles(AwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails&& value) { m_environmentFilesHasBeenSet = true; m_environmentFiles.push_back(std::move(value)); return *this; } /** *Whether the container is essential. All tasks must have at least one * essential container.
*/ inline bool GetEssential() const{ return m_essential; } /** *Whether the container is essential. All tasks must have at least one * essential container.
*/ inline bool EssentialHasBeenSet() const { return m_essentialHasBeenSet; } /** *Whether the container is essential. All tasks must have at least one * essential container.
*/ inline void SetEssential(bool value) { m_essentialHasBeenSet = true; m_essential = value; } /** *Whether the container is essential. All tasks must have at least one * essential container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithEssential(bool value) { SetEssential(value); return *this;} /** *A list of hostnames and IP address mappings to append to the * /etc/hosts file on the container.
*/ inline const Aws::VectorA list of hostnames and IP address mappings to append to the * /etc/hosts file on the container.
*/ inline bool ExtraHostsHasBeenSet() const { return m_extraHostsHasBeenSet; } /** *A list of hostnames and IP address mappings to append to the * /etc/hosts file on the container.
*/ inline void SetExtraHosts(const Aws::VectorA list of hostnames and IP address mappings to append to the * /etc/hosts file on the container.
*/ inline void SetExtraHosts(Aws::VectorA list of hostnames and IP address mappings to append to the * /etc/hosts file on the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithExtraHosts(const Aws::VectorA list of hostnames and IP address mappings to append to the * /etc/hosts file on the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithExtraHosts(Aws::VectorA list of hostnames and IP address mappings to append to the * /etc/hosts file on the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddExtraHosts(const AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails& value) { m_extraHostsHasBeenSet = true; m_extraHosts.push_back(value); return *this; } /** *A list of hostnames and IP address mappings to append to the * /etc/hosts file on the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddExtraHosts(AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails&& value) { m_extraHostsHasBeenSet = true; m_extraHosts.push_back(std::move(value)); return *this; } /** *The FireLens configuration for the container. Specifies and configures a log * router for container logs.
*/ inline const AwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails& GetFirelensConfiguration() const{ return m_firelensConfiguration; } /** *The FireLens configuration for the container. Specifies and configures a log * router for container logs.
*/ inline bool FirelensConfigurationHasBeenSet() const { return m_firelensConfigurationHasBeenSet; } /** *The FireLens configuration for the container. Specifies and configures a log * router for container logs.
*/ inline void SetFirelensConfiguration(const AwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails& value) { m_firelensConfigurationHasBeenSet = true; m_firelensConfiguration = value; } /** *The FireLens configuration for the container. Specifies and configures a log * router for container logs.
*/ inline void SetFirelensConfiguration(AwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails&& value) { m_firelensConfigurationHasBeenSet = true; m_firelensConfiguration = std::move(value); } /** *The FireLens configuration for the container. Specifies and configures a log * router for container logs.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithFirelensConfiguration(const AwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails& value) { SetFirelensConfiguration(value); return *this;} /** *The FireLens configuration for the container. Specifies and configures a log * router for container logs.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithFirelensConfiguration(AwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails&& value) { SetFirelensConfiguration(std::move(value)); return *this;} /** *The container health check command and associated configuration parameters * for the container.
*/ inline const AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails& GetHealthCheck() const{ return m_healthCheck; } /** *The container health check command and associated configuration parameters * for the container.
*/ inline bool HealthCheckHasBeenSet() const { return m_healthCheckHasBeenSet; } /** *The container health check command and associated configuration parameters * for the container.
*/ inline void SetHealthCheck(const AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails& value) { m_healthCheckHasBeenSet = true; m_healthCheck = value; } /** *The container health check command and associated configuration parameters * for the container.
*/ inline void SetHealthCheck(AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails&& value) { m_healthCheckHasBeenSet = true; m_healthCheck = std::move(value); } /** *The container health check command and associated configuration parameters * for the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithHealthCheck(const AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails& value) { SetHealthCheck(value); return *this;} /** *The container health check command and associated configuration parameters * for the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithHealthCheck(AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails&& value) { SetHealthCheck(std::move(value)); return *this;} /** *The hostname to use for the container.
*/ inline const Aws::String& GetHostname() const{ return m_hostname; } /** *The hostname to use for the container.
*/ inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; } /** *The hostname to use for the container.
*/ inline void SetHostname(const Aws::String& value) { m_hostnameHasBeenSet = true; m_hostname = value; } /** *The hostname to use for the container.
*/ inline void SetHostname(Aws::String&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); } /** *The hostname to use for the container.
*/ inline void SetHostname(const char* value) { m_hostnameHasBeenSet = true; m_hostname.assign(value); } /** *The hostname to use for the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithHostname(const Aws::String& value) { SetHostname(value); return *this;} /** *The hostname to use for the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithHostname(Aws::String&& value) { SetHostname(std::move(value)); return *this;} /** *The hostname to use for the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithHostname(const char* value) { SetHostname(value); return *this;} /** *The image used to start the container.
*/ inline const Aws::String& GetImage() const{ return m_image; } /** *The image used to start the container.
*/ inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; } /** *The image used to start the container.
*/ inline void SetImage(const Aws::String& value) { m_imageHasBeenSet = true; m_image = value; } /** *The image used to start the container.
*/ inline void SetImage(Aws::String&& value) { m_imageHasBeenSet = true; m_image = std::move(value); } /** *The image used to start the container.
*/ inline void SetImage(const char* value) { m_imageHasBeenSet = true; m_image.assign(value); } /** *The image used to start the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithImage(const Aws::String& value) { SetImage(value); return *this;} /** *The image used to start the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithImage(Aws::String&& value) { SetImage(std::move(value)); return *this;} /** *The image used to start the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithImage(const char* value) { SetImage(value); return *this;} /** *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.
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.
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.
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.
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.
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.
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.
*/ inline const AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails& GetLinuxParameters() const{ return m_linuxParameters; } /** *Linux-specific modifications that are applied to the container, such as Linux * kernel capabilities.
*/ inline bool LinuxParametersHasBeenSet() const { return m_linuxParametersHasBeenSet; } /** *Linux-specific modifications that are applied to the container, such as Linux * kernel capabilities.
*/ inline void SetLinuxParameters(const AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails& value) { m_linuxParametersHasBeenSet = true; m_linuxParameters = value; } /** *Linux-specific modifications that are applied to the container, such as Linux * kernel capabilities.
*/ inline void SetLinuxParameters(AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails&& value) { m_linuxParametersHasBeenSet = true; m_linuxParameters = std::move(value); } /** *Linux-specific modifications that are applied to the container, such as Linux * kernel capabilities.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithLinuxParameters(const AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails& value) { SetLinuxParameters(value); return *this;} /** *Linux-specific modifications that are applied to the container, such as Linux * kernel capabilities.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithLinuxParameters(AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails&& value) { SetLinuxParameters(std::move(value)); return *this;} /** *The log configuration specification for the container.
*/ inline const AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails& GetLogConfiguration() const{ return m_logConfiguration; } /** *The log configuration specification for the container.
*/ inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; } /** *The log configuration specification for the container.
*/ inline void SetLogConfiguration(const AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = value; } /** *The log configuration specification for the container.
*/ inline void SetLogConfiguration(AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails&& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = std::move(value); } /** *The log configuration specification for the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithLogConfiguration(const AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails& value) { SetLogConfiguration(value); return *this;} /** *The log configuration specification for the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithLogConfiguration(AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails&& value) { SetLogConfiguration(std::move(value)); return *this;} /** *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.
*/ inline int GetMemory() const{ return m_memory; } /** *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.
*/ inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; } /** *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.
*/ inline void SetMemory(int value) { m_memoryHasBeenSet = true; m_memory = value; } /** *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.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithMemory(int value) { SetMemory(value); return *this;} /** *The soft limit (in MiB) of memory to reserve for the container.
*/ inline int GetMemoryReservation() const{ return m_memoryReservation; } /** *The soft limit (in MiB) of memory to reserve for the container.
*/ inline bool MemoryReservationHasBeenSet() const { return m_memoryReservationHasBeenSet; } /** *The soft limit (in MiB) of memory to reserve for the container.
*/ inline void SetMemoryReservation(int value) { m_memoryReservationHasBeenSet = true; m_memoryReservation = value; } /** *The soft limit (in MiB) of memory to reserve for the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithMemoryReservation(int value) { SetMemoryReservation(value); return *this;} /** *The mount points for the data volumes in the container.
*/ inline const Aws::VectorThe mount points for the data volumes in the container.
*/ inline bool MountPointsHasBeenSet() const { return m_mountPointsHasBeenSet; } /** *The mount points for the data volumes in the container.
*/ inline void SetMountPoints(const Aws::VectorThe mount points for the data volumes in the container.
*/ inline void SetMountPoints(Aws::VectorThe mount points for the data volumes in the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithMountPoints(const Aws::VectorThe mount points for the data volumes in the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithMountPoints(Aws::VectorThe mount points for the data volumes in the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddMountPoints(const AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails& value) { m_mountPointsHasBeenSet = true; m_mountPoints.push_back(value); return *this; } /** *The mount points for the data volumes in the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddMountPoints(AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails&& value) { m_mountPointsHasBeenSet = true; m_mountPoints.push_back(std::move(value)); return *this; } /** *The name of the container.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the container.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the container.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the container.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the container.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithName(const char* value) { SetName(value); return *this;} /** *The list of port mappings for the container.
*/ inline const Aws::VectorThe list of port mappings for the container.
*/ inline bool PortMappingsHasBeenSet() const { return m_portMappingsHasBeenSet; } /** *The list of port mappings for the container.
*/ inline void SetPortMappings(const Aws::VectorThe list of port mappings for the container.
*/ inline void SetPortMappings(Aws::VectorThe list of port mappings for the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithPortMappings(const Aws::VectorThe list of port mappings for the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithPortMappings(Aws::VectorThe list of port mappings for the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddPortMappings(const AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails& value) { m_portMappingsHasBeenSet = true; m_portMappings.push_back(value); return *this; } /** *The list of port mappings for the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddPortMappings(AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails&& value) { m_portMappingsHasBeenSet = true; m_portMappings.push_back(std::move(value)); return *this; } /** *Whether the container is given elevated privileges on the host container * instance. The elevated privileges are similar to the root user.
*/ inline bool GetPrivileged() const{ return m_privileged; } /** *Whether the container is given elevated privileges on the host container * instance. The elevated privileges are similar to the root user.
*/ inline bool PrivilegedHasBeenSet() const { return m_privilegedHasBeenSet; } /** *Whether the container is given elevated privileges on the host container * instance. The elevated privileges are similar to the root user.
*/ inline void SetPrivileged(bool value) { m_privilegedHasBeenSet = true; m_privileged = value; } /** *Whether the container is given elevated privileges on the host container * instance. The elevated privileges are similar to the root user.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithPrivileged(bool value) { SetPrivileged(value); return *this;} /** *Whether to allocate a TTY to the container.
*/ inline bool GetPseudoTerminal() const{ return m_pseudoTerminal; } /** *Whether to allocate a TTY to the container.
*/ inline bool PseudoTerminalHasBeenSet() const { return m_pseudoTerminalHasBeenSet; } /** *Whether to allocate a TTY to the container.
*/ inline void SetPseudoTerminal(bool value) { m_pseudoTerminalHasBeenSet = true; m_pseudoTerminal = value; } /** *Whether to allocate a TTY to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithPseudoTerminal(bool value) { SetPseudoTerminal(value); return *this;} /** *Whether the container is given read-only access to its root file system.
*/ inline bool GetReadonlyRootFilesystem() const{ return m_readonlyRootFilesystem; } /** *Whether the container is given read-only access to its root file system.
*/ inline bool ReadonlyRootFilesystemHasBeenSet() const { return m_readonlyRootFilesystemHasBeenSet; } /** *Whether the container is given read-only access to its root file system.
*/ inline void SetReadonlyRootFilesystem(bool value) { m_readonlyRootFilesystemHasBeenSet = true; m_readonlyRootFilesystem = value; } /** *Whether the container is given read-only access to its root file system.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithReadonlyRootFilesystem(bool value) { SetReadonlyRootFilesystem(value); return *this;} /** *The private repository authentication credentials to use.
*/ inline const AwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails& GetRepositoryCredentials() const{ return m_repositoryCredentials; } /** *The private repository authentication credentials to use.
*/ inline bool RepositoryCredentialsHasBeenSet() const { return m_repositoryCredentialsHasBeenSet; } /** *The private repository authentication credentials to use.
*/ inline void SetRepositoryCredentials(const AwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails& value) { m_repositoryCredentialsHasBeenSet = true; m_repositoryCredentials = value; } /** *The private repository authentication credentials to use.
*/ inline void SetRepositoryCredentials(AwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails&& value) { m_repositoryCredentialsHasBeenSet = true; m_repositoryCredentials = std::move(value); } /** *The private repository authentication credentials to use.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithRepositoryCredentials(const AwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails& value) { SetRepositoryCredentials(value); return *this;} /** *The private repository authentication credentials to use.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithRepositoryCredentials(AwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails&& value) { SetRepositoryCredentials(std::move(value)); return *this;} /** *The type and amount of a resource to assign to a container. The only * supported resource is a GPU.
*/ inline const Aws::VectorThe type and amount of a resource to assign to a container. The only * supported resource is a GPU.
*/ inline bool ResourceRequirementsHasBeenSet() const { return m_resourceRequirementsHasBeenSet; } /** *The type and amount of a resource to assign to a container. The only * supported resource is a GPU.
*/ inline void SetResourceRequirements(const Aws::VectorThe type and amount of a resource to assign to a container. The only * supported resource is a GPU.
*/ inline void SetResourceRequirements(Aws::VectorThe type and amount of a resource to assign to a container. The only * supported resource is a GPU.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithResourceRequirements(const Aws::VectorThe type and amount of a resource to assign to a container. The only * supported resource is a GPU.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithResourceRequirements(Aws::VectorThe type and amount of a resource to assign to a container. The only * supported resource is a GPU.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddResourceRequirements(const AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements.push_back(value); return *this; } /** *The type and amount of a resource to assign to a container. The only * supported resource is a GPU.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddResourceRequirements(AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails&& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements.push_back(std::move(value)); return *this; } /** *The secrets to pass to the container.
*/ inline const Aws::VectorThe secrets to pass to the container.
*/ inline bool SecretsHasBeenSet() const { return m_secretsHasBeenSet; } /** *The secrets to pass to the container.
*/ inline void SetSecrets(const Aws::VectorThe secrets to pass to the container.
*/ inline void SetSecrets(Aws::VectorThe secrets to pass to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithSecrets(const Aws::VectorThe secrets to pass to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithSecrets(Aws::VectorThe secrets to pass to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddSecrets(const AwsEcsTaskDefinitionContainerDefinitionsSecretsDetails& value) { m_secretsHasBeenSet = true; m_secrets.push_back(value); return *this; } /** *The secrets to pass to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddSecrets(AwsEcsTaskDefinitionContainerDefinitionsSecretsDetails&& value) { m_secretsHasBeenSet = true; m_secrets.push_back(std::move(value)); return *this; } /** *The number of seconds to wait before giving up on resolving dependencies for * a container.
*/ inline int GetStartTimeout() const{ return m_startTimeout; } /** *The number of seconds to wait before giving up on resolving dependencies for * a container.
*/ inline bool StartTimeoutHasBeenSet() const { return m_startTimeoutHasBeenSet; } /** *The number of seconds to wait before giving up on resolving dependencies for * a container.
*/ inline void SetStartTimeout(int value) { m_startTimeoutHasBeenSet = true; m_startTimeout = value; } /** *The number of seconds to wait before giving up on resolving dependencies for * a container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithStartTimeout(int value) { SetStartTimeout(value); return *this;} /** *The number of seconds to wait before the container is stopped if it doesn't * shut down normally on its own.
*/ inline int GetStopTimeout() const{ return m_stopTimeout; } /** *The number of seconds to wait before the container is stopped if it doesn't * shut down normally on its own.
*/ inline bool StopTimeoutHasBeenSet() const { return m_stopTimeoutHasBeenSet; } /** *The number of seconds to wait before the container is stopped if it doesn't * shut down normally on its own.
*/ inline void SetStopTimeout(int value) { m_stopTimeoutHasBeenSet = true; m_stopTimeout = value; } /** *The number of seconds to wait before the container is stopped if it doesn't * shut down normally on its own.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithStopTimeout(int value) { SetStopTimeout(value); return *this;} /** *A list of namespaced kernel parameters to set in the container.
*/ inline const Aws::VectorA list of namespaced kernel parameters to set in the container.
*/ inline bool SystemControlsHasBeenSet() const { return m_systemControlsHasBeenSet; } /** *A list of namespaced kernel parameters to set in the container.
*/ inline void SetSystemControls(const Aws::VectorA list of namespaced kernel parameters to set in the container.
*/ inline void SetSystemControls(Aws::VectorA list of namespaced kernel parameters to set in the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithSystemControls(const Aws::VectorA list of namespaced kernel parameters to set in the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithSystemControls(Aws::VectorA list of namespaced kernel parameters to set in the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddSystemControls(const AwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails& value) { m_systemControlsHasBeenSet = true; m_systemControls.push_back(value); return *this; } /** *A list of namespaced kernel parameters to set in the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddSystemControls(AwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails&& value) { m_systemControlsHasBeenSet = true; m_systemControls.push_back(std::move(value)); return *this; } /** *A list of ulimits to set in the container.
*/ inline const Aws::VectorA list of ulimits to set in the container.
*/ inline bool UlimitsHasBeenSet() const { return m_ulimitsHasBeenSet; } /** *A list of ulimits to set in the container.
*/ inline void SetUlimits(const Aws::VectorA list of ulimits to set in the container.
*/ inline void SetUlimits(Aws::VectorA list of ulimits to set in the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithUlimits(const Aws::VectorA list of ulimits to set in the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithUlimits(Aws::VectorA list of ulimits to set in the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddUlimits(const AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails& value) { m_ulimitsHasBeenSet = true; m_ulimits.push_back(value); return *this; } /** *A list of ulimits to set in the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddUlimits(AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails&& value) { m_ulimitsHasBeenSet = true; m_ulimits.push_back(std::move(value)); return *this; } /** *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
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
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
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
Data volumes to mount from another container.
*/ inline const Aws::VectorData volumes to mount from another container.
*/ inline bool VolumesFromHasBeenSet() const { return m_volumesFromHasBeenSet; } /** *Data volumes to mount from another container.
*/ inline void SetVolumesFrom(const Aws::VectorData volumes to mount from another container.
*/ inline void SetVolumesFrom(Aws::VectorData volumes to mount from another container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithVolumesFrom(const Aws::VectorData volumes to mount from another container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithVolumesFrom(Aws::VectorData volumes to mount from another container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddVolumesFrom(const AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails& value) { m_volumesFromHasBeenSet = true; m_volumesFrom.push_back(value); return *this; } /** *Data volumes to mount from another container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& AddVolumesFrom(AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails&& value) { m_volumesFromHasBeenSet = true; m_volumesFrom.push_back(std::move(value)); return *this; } /** *The working directory in which to run commands inside the container.
*/ inline const Aws::String& GetWorkingDirectory() const{ return m_workingDirectory; } /** *The working directory in which to run commands inside the container.
*/ inline bool WorkingDirectoryHasBeenSet() const { return m_workingDirectoryHasBeenSet; } /** *The working directory in which to run commands inside the container.
*/ inline void SetWorkingDirectory(const Aws::String& value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory = value; } /** *The working directory in which to run commands inside the container.
*/ inline void SetWorkingDirectory(Aws::String&& value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory = std::move(value); } /** *The working directory in which to run commands inside the container.
*/ inline void SetWorkingDirectory(const char* value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory.assign(value); } /** *The working directory in which to run commands inside the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithWorkingDirectory(const Aws::String& value) { SetWorkingDirectory(value); return *this;} /** *The working directory in which to run commands inside the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithWorkingDirectory(Aws::String&& value) { SetWorkingDirectory(std::move(value)); return *this;} /** *The working directory in which to run commands inside the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsDetails& WithWorkingDirectory(const char* value) { SetWorkingDirectory(value); return *this;} private: Aws::Vector