LinuxParameters

class aws_cdk.aws_ecs.LinuxParameters(scope, id, *, init_process_enabled=None, shared_memory_size=None)

Bases: aws_cdk.core.Construct

Linux-specific options that are applied to the container.

__init__(scope, id, *, init_process_enabled=None, shared_memory_size=None)

Constructs a new instance of the LinuxParameters class.

Parameters
  • scope (Construct) –

  • id (str) –

  • props

  • init_process_enabled (Optional[bool]) – Specifies whether to run an init process inside the container that forwards signals and reaps processes. Default: false

  • shared_memory_size (Union[int, float, None]) – The value for the size (in MiB) of the /dev/shm volume. Default: No shared memory.

Return type

None

Methods

add_capabilities(*cap)

Adds one or more Linux capabilities to the Docker configuration of a container.

Only works with EC2 launch type.

Parameters

cap (Capability) –

Return type

None

add_devices(*device)

Adds one or more host devices to a container.

Parameters

device (Device) –

Return type

None

add_tmpfs(*tmpfs)

Specifies the container path, mount options, and size (in MiB) of the tmpfs mount for a container.

Only works with EC2 launch type.

Parameters

tmpfs (Tmpfs) –

Return type

None

drop_capabilities(*cap)

Removes one or more Linux capabilities to the Docker configuration of a container.

Only works with EC2 launch type.

Parameters

cap (Capability) –

Return type

None

render_linux_parameters()

Renders the Linux parameters to a CloudFormation object.

Return type

LinuxParametersProperty

to_string()

Returns a string representation of this construct.

Return type

str

Attributes

node

Construct tree node which offers APIs for interacting with the construct tree.

Return type

ConstructNode

Static Methods

classmethod is_construct(x)

Return whether the given object is a Construct.

Parameters

x (Any) –

Return type

bool