aws-cdk-lib.aws_ecs.CfnTaskDefinition.SystemControlProperty

interface SystemControlProperty

LanguageType name
.NETAmazon.CDK.AWS.ECS.CfnTaskDefinition.SystemControlProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsecs#CfnTaskDefinition_SystemControlProperty
Javasoftware.amazon.awscdk.services.ecs.CfnTaskDefinition.SystemControlProperty
Pythonaws_cdk.aws_ecs.CfnTaskDefinition.SystemControlProperty
TypeScript aws-cdk-lib » 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 awsvpc network mode, if you set systemControls for any container, it applies to all containers in the task. If you set different systemControls for multiple containers in a single task, the container that's started last determines which systemControls take effect.
  • For tasks that use the host network mode, the systemControls parameter 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 { aws_ecs as ecs } from 'aws-cdk-lib';
const systemControlProperty: ecs.CfnTaskDefinition.SystemControlProperty = {
  namespace: 'namespace',
  value: 'value',
};

Properties

NameTypeDescription
namespace?stringThe namespaced kernel parameter to set a value for.
value?stringThe 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 .