Skip to content

Commit 4d29610

Browse files
authored
docs(ecs): updated documentation for addCapabilities and dropCapabilities (#24176)
closes #24123
1 parent a1da757 commit 4d29610

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/@aws-cdk/aws-ecs/lib/linux-parameters.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,14 @@ export class LinuxParameters extends Construct {
126126
/**
127127
* Adds one or more Linux capabilities to the Docker configuration of a container.
128128
*
129-
* Only works with EC2 launch type.
129+
* Tasks launched on Fargate only support adding the 'SYS_PTRACE' kernel capability.
130130
*/
131131
public addCapabilities(...cap: Capability[]) {
132132
this.capAdd.push(...cap);
133133
}
134134

135135
/**
136136
* Removes one or more Linux capabilities to the Docker configuration of a container.
137-
*
138-
* Only works with EC2 launch type.
139137
*/
140138
public dropCapabilities(...cap: Capability[]) {
141139
this.capDrop.push(...cap);

0 commit comments

Comments
 (0)