Class LinuxParameters
Linux-specific options that are applied to the container.
Inherited Members
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public class LinuxParameters : Construct, IConstruct, IDependable
Syntax (vb)
Public Class LinuxParameters
Inherits Construct
Implements IConstruct, IDependable
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;
var linuxParameters = new LinuxParameters(this, "MyLinuxParameters", new LinuxParametersProps {
InitProcessEnabled = false,
SharedMemorySize = 123
});
Synopsis
Constructors
LinuxParameters(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
LinuxParameters(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
LinuxParameters(Construct, String, ILinuxParametersProps) | Constructs a new instance of the LinuxParameters class. |
Methods
AddCapabilities(Capability[]) | Adds one or more Linux capabilities to the Docker configuration of a container. |
AddDevices(IDevice[]) | Adds one or more host devices to a container. |
AddTmpfs(ITmpfs[]) | Specifies the container path, mount options, and size (in MiB) of the tmpfs mount for a container. |
DropCapabilities(Capability[]) | Removes one or more Linux capabilities to the Docker configuration of a container. |
RenderLinuxParameters() | Renders the Linux parameters to a CloudFormation object. |
Constructors
LinuxParameters(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected LinuxParameters(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
LinuxParameters(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected LinuxParameters(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
LinuxParameters(Construct, String, ILinuxParametersProps)
Constructs a new instance of the LinuxParameters class.
public LinuxParameters(Construct scope, string id, ILinuxParametersProps props = null)
Parameters
- scope Constructs.Construct
- id System.String
- props ILinuxParametersProps
Methods
AddCapabilities(Capability[])
Adds one or more Linux capabilities to the Docker configuration of a container.
public virtual void AddCapabilities(params Capability[] cap)
Parameters
- cap Capability[]
Remarks
Only works with EC2 launch type.
AddDevices(IDevice[])
Adds one or more host devices to a container.
public virtual void AddDevices(params IDevice[] device)
Parameters
- device IDevice[]
AddTmpfs(ITmpfs[])
Specifies the container path, mount options, and size (in MiB) of the tmpfs mount for a container.
public virtual void AddTmpfs(params ITmpfs[] tmpfs)
Parameters
- tmpfs ITmpfs[]
Remarks
Only works with EC2 launch type.
DropCapabilities(Capability[])
Removes one or more Linux capabilities to the Docker configuration of a container.
public virtual void DropCapabilities(params Capability[] cap)
Parameters
- cap Capability[]
Remarks
Only works with EC2 launch type.
RenderLinuxParameters()
Renders the Linux parameters to a CloudFormation object.
public virtual CfnTaskDefinition.ILinuxParametersProperty RenderLinuxParameters()
Returns
CfnTaskDefinition.ILinuxParametersProperty