interface SystemControlProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ECS.CfnTaskDefinition.SystemControlProperty |
Java | software.amazon.awscdk.services.ecs.CfnTaskDefinition.SystemControlProperty |
Python | aws_cdk.aws_ecs.CfnTaskDefinition.SystemControlProperty |
TypeScript | @aws-cdk/aws-ecs » CfnTaskDefinition » SystemControlProperty |
A list of namespaced kernel parameters to set in the container.
This parameter maps to Sysctls in the Create a container section of the Docker Remote API and the --sysctl option to docker run .
We don't recommend that you specify network-related systemControls parameters for multiple containers in a single task. This task also uses either the awsvpc or host network mode. It does it for the following reasons.
- For tasks that use the
awsvpcnetwork mode, if you setsystemControlsfor any container, it applies to all containers in the task. If you set differentsystemControlsfor multiple containers in a single task, the container that's started last determines whichsystemControlstake effect. - For tasks that use the
hostnetwork mode, thesystemControlsparameter applies to the container instance's kernel parameter and that of all containers of any tasks running on that container instance.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ecs from '@aws-cdk/aws-ecs';
const systemControlProperty: ecs.CfnTaskDefinition.SystemControlProperty = {
namespace: 'namespace',
value: 'value',
};
Properties
| Name | Type | Description |
|---|---|---|
| namespace? | string | The namespaced kernel parameter to set a value for. |
| value? | string | The value for the namespaced kernel parameter that's specified in namespace . |
namespace?
Type:
string
(optional)
The namespaced kernel parameter to set a value for.
value?
Type:
string
(optional)
The value for the namespaced kernel parameter that's specified in namespace .

.NET
Java
Python
TypeScript