public java.util.List<String> getDockerSecurityOptions() {
        if (dockerSecurityOptions == null) {
            dockerSecurityOptions = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return dockerSecurityOptions;
    }
public java . util . List < String > getDockerSecurityOptions ( ) { if ( dockerSecurityOptions == null ) { dockerSecurityOptions = new com . amazonaws . internal . SdkInternalList < String > ( ) ; } return dockerSecurityOptions ; }
<p>
A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems. This field is
not valid for containers in tasks using the Fargate launch type.
</p>
<p>
This parameter maps to <code>SecurityOpt</code> in the <a
href="https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate">Create a container</a> section of the
<a href="https://docs.docker.com/engine/api/v1.35/">Docker Remote API</a> and the <code>--security-opt</code>
option to <a href="https://docs.docker.com/engine/reference/run/">docker run</a>.
</p>
<note>
<p>
The Amazon ECS container agent running on a container instance must register with the
<code>ECS_SELINUX_CAPABLE=true</code> or <code>ECS_APPARMOR_CAPABLE=true</code> environment variables before
containers placed on that instance can use these security options. For more information, see <a
href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html">Amazon ECS Container
Agent Configuration</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.
</p>
<p>
This parameter is not supported for Windows containers.
</p>
</note>

@return A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems. This
field is not valid for containers in tasks using the Fargate launch type.</p>
<p>
This parameter maps to <code>SecurityOpt</code> in the <a
href="https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate">Create a container</a> section
of the <a href="https://docs.docker.com/engine/api/v1.35/">Docker Remote API</a> and the
<code>--security-opt</code> option to <a href="https://docs.docker.com/engine/reference/run/">docker
run</a>.
</p>
<note>
<p>
The Amazon ECS container agent running on a container instance must register with the
<code>ECS_SELINUX_CAPABLE=true</code> or <code>ECS_APPARMOR_CAPABLE=true</code> environment variables
before containers placed on that instance can use these security options. For more information, see <a
href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html">Amazon ECS
Container Agent Configuration</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.
</p>
<p>
This parameter is not supported for Windows containers.
</p>