Class CfnDaemonTaskDefinition.KernelCapabilitiesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnDaemonTaskDefinition.KernelCapabilitiesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDaemonTaskDefinition.KernelCapabilitiesProperty>
- Enclosing interface:
CfnDaemonTaskDefinition.KernelCapabilitiesProperty
@Stability(Stable)
public static final class CfnDaemonTaskDefinition.KernelCapabilitiesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDaemonTaskDefinition.KernelCapabilitiesProperty>
A builder for
CfnDaemonTaskDefinition.KernelCapabilitiesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnDaemonTaskDefinition.KernelCapabilitiesProperty.getAdd()build()Builds the configured instance.Sets the value ofCfnDaemonTaskDefinition.KernelCapabilitiesProperty.getDrop()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
add
@Stability(Stable) public CfnDaemonTaskDefinition.KernelCapabilitiesProperty.Builder add(List<String> add) Sets the value ofCfnDaemonTaskDefinition.KernelCapabilitiesProperty.getAdd()- Parameters:
add- The Linux capabilities for the container that have been added to the default configuration provided by Docker. This parameter maps toCapAddin the docker container create command and the--cap-addoption to docker run. Tasks launched on FARGATElong only support adding theSYS_PTRACEkernel capability. Valid values:"ALL" | "AUDIT_CONTROL" | "AUDIT_WRITE" | "BLOCK_SUSPEND" | "CHOWN" | "DAC_OVERRIDE" | "DAC_READ_SEARCH" | "FOWNER" | "FSETID" | "IPC_LOCK" | "IPC_OWNER" | "KILL" | "LEASE" | "LINUX_IMMUTABLE" | "MAC_ADMIN" | "MAC_OVERRIDE" | "MKNOD" | "NET_ADMIN" | "NET_BIND_SERVICE" | "NET_BROADCAST" | "NET_RAW" | "SETFCAP" | "SETGID" | "SETPCAP" | "SETUID" | "SYS_ADMIN" | "SYS_BOOT" | "SYS_CHROOT" | "SYS_MODULE" | "SYS_NICE" | "SYS_PACCT" | "SYS_PTRACE" | "SYS_RAWIO" | "SYS_RESOURCE" | "SYS_TIME" | "SYS_TTY_CONFIG" | "SYSLOG" | "WAKE_ALARM"- Returns:
this
-
drop
@Stability(Stable) public CfnDaemonTaskDefinition.KernelCapabilitiesProperty.Builder drop(List<String> drop) Sets the value ofCfnDaemonTaskDefinition.KernelCapabilitiesProperty.getDrop()- Parameters:
drop- The Linux capabilities for the container that have been removed from the default configuration provided by Docker. This parameter maps toCapDropin the docker container create command and the--cap-dropoption to docker run. Valid values:"ALL" | "AUDIT_CONTROL" | "AUDIT_WRITE" | "BLOCK_SUSPEND" | "CHOWN" | "DAC_OVERRIDE" | "DAC_READ_SEARCH" | "FOWNER" | "FSETID" | "IPC_LOCK" | "IPC_OWNER" | "KILL" | "LEASE" | "LINUX_IMMUTABLE" | "MAC_ADMIN" | "MAC_OVERRIDE" | "MKNOD" | "NET_ADMIN" | "NET_BIND_SERVICE" | "NET_BROADCAST" | "NET_RAW" | "SETFCAP" | "SETGID" | "SETPCAP" | "SETUID" | "SYS_ADMIN" | "SYS_BOOT" | "SYS_CHROOT" | "SYS_MODULE" | "SYS_NICE" | "SYS_PACCT" | "SYS_PTRACE" | "SYS_RAWIO" | "SYS_RESOURCE" | "SYS_TIME" | "SYS_TTY_CONFIG" | "SYSLOG" | "WAKE_ALARM"- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDaemonTaskDefinition.KernelCapabilitiesProperty>- Returns:
- a new instance of
CfnDaemonTaskDefinition.KernelCapabilitiesProperty - Throws:
NullPointerException- if any required attribute was not provided
-