
com.pulumi.azurenative.awsconnector.outputs.LinuxParametersResponse Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.awsconnector.outputs;
import com.pulumi.azurenative.awsconnector.outputs.DeviceResponse;
import com.pulumi.azurenative.awsconnector.outputs.KernelCapabilitiesResponse;
import com.pulumi.azurenative.awsconnector.outputs.TmpfsResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.Integer;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class LinuxParametersResponse {
/**
* @return The Linux capabilities for the container that are added to or dropped from the default configuration provided by Docker. For tasks that use the Fargate launch type, ``capabilities`` is supported for all platform versions but the ``add`` parameter is only supported if using platform version 1.4.0 or later. The Linux capabilities to add or remove from the default Docker configuration for a container defined in the task definition. For more information about the default capabilities and the non-default available capabilities, see [Runtime privilege and Linux capabilities](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities) in the *Docker run reference*. For more detailed information about these Linux capabilities, see the [capabilities(7)](https://docs.aws.amazon.com/http://man7.org/linux/man-pages/man7/capabilities.7.html) Linux manual page.
*
*/
private @Nullable KernelCapabilitiesResponse capabilities;
/**
* @return Any host devices to expose to the container. This parameter maps to ``Devices`` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the ``--device`` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration). If you're using tasks that use the Fargate launch type, the ``devices`` parameter isn't supported.
*
*/
private @Nullable List devices;
/**
* @return Run an ``init`` process inside the container that forwards signals and reaps processes. This parameter maps to the ``--init`` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration). This parameter requires version 1.25 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: ``sudo docker version --format '{{.Server.APIVersion}}'``
*
*/
private @Nullable Boolean initProcessEnabled;
/**
* @return The total amount of swap memory (in MiB) a container can use. This parameter will be translated to the ``--memory-swap`` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) where the value would be the sum of the container memory plus the ``maxSwap`` value. If a ``maxSwap`` value of ``0`` is specified, the container will not use swap. Accepted values are ``0`` or any positive integer. If the ``maxSwap`` parameter is omitted, the container will use the swap configuration for the container instance it is running on. A ``maxSwap`` value must be set for the ``swappiness`` parameter to be used. If you're using tasks that use the Fargate launch type, the ``maxSwap`` parameter isn't supported. If you're using tasks on Amazon Linux 2023 the ``swappiness`` parameter isn't supported.
*
*/
private @Nullable Integer maxSwap;
/**
* @return The value for the size (in MiB) of the ``/dev/shm`` volume. This parameter maps to the ``--shm-size`` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration). If you are using tasks that use the Fargate launch type, the ``sharedMemorySize`` parameter is not supported.
*
*/
private @Nullable Integer sharedMemorySize;
/**
* @return This allows you to tune a container's memory swappiness behavior. A ``swappiness`` value of ``0`` will cause swapping to not happen unless absolutely necessary. A ``swappiness`` value of ``100`` will cause pages to be swapped very aggressively. Accepted values are whole numbers between ``0`` and ``100``. If the ``swappiness`` parameter is not specified, a default value of ``60`` is used. If a value is not specified for ``maxSwap`` then this parameter is ignored. This parameter maps to the ``--memory-swappiness`` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration). If you're using tasks that use the Fargate launch type, the ``swappiness`` parameter isn't supported. If you're using tasks on Amazon Linux 2023 the ``swappiness`` parameter isn't supported.
*
*/
private @Nullable Integer swappiness;
/**
* @return The container path, mount options, and size (in MiB) of the tmpfs mount. This parameter maps to the ``--tmpfs`` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration). If you're using tasks that use the Fargate launch type, the ``tmpfs`` parameter isn't supported.
*
*/
private @Nullable List tmpfs;
private LinuxParametersResponse() {}
/**
* @return The Linux capabilities for the container that are added to or dropped from the default configuration provided by Docker. For tasks that use the Fargate launch type, ``capabilities`` is supported for all platform versions but the ``add`` parameter is only supported if using platform version 1.4.0 or later. The Linux capabilities to add or remove from the default Docker configuration for a container defined in the task definition. For more information about the default capabilities and the non-default available capabilities, see [Runtime privilege and Linux capabilities](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities) in the *Docker run reference*. For more detailed information about these Linux capabilities, see the [capabilities(7)](https://docs.aws.amazon.com/http://man7.org/linux/man-pages/man7/capabilities.7.html) Linux manual page.
*
*/
public Optional capabilities() {
return Optional.ofNullable(this.capabilities);
}
/**
* @return Any host devices to expose to the container. This parameter maps to ``Devices`` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the ``--device`` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration). If you're using tasks that use the Fargate launch type, the ``devices`` parameter isn't supported.
*
*/
public List devices() {
return this.devices == null ? List.of() : this.devices;
}
/**
* @return Run an ``init`` process inside the container that forwards signals and reaps processes. This parameter maps to the ``--init`` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration). This parameter requires version 1.25 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: ``sudo docker version --format '{{.Server.APIVersion}}'``
*
*/
public Optional initProcessEnabled() {
return Optional.ofNullable(this.initProcessEnabled);
}
/**
* @return The total amount of swap memory (in MiB) a container can use. This parameter will be translated to the ``--memory-swap`` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) where the value would be the sum of the container memory plus the ``maxSwap`` value. If a ``maxSwap`` value of ``0`` is specified, the container will not use swap. Accepted values are ``0`` or any positive integer. If the ``maxSwap`` parameter is omitted, the container will use the swap configuration for the container instance it is running on. A ``maxSwap`` value must be set for the ``swappiness`` parameter to be used. If you're using tasks that use the Fargate launch type, the ``maxSwap`` parameter isn't supported. If you're using tasks on Amazon Linux 2023 the ``swappiness`` parameter isn't supported.
*
*/
public Optional maxSwap() {
return Optional.ofNullable(this.maxSwap);
}
/**
* @return The value for the size (in MiB) of the ``/dev/shm`` volume. This parameter maps to the ``--shm-size`` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration). If you are using tasks that use the Fargate launch type, the ``sharedMemorySize`` parameter is not supported.
*
*/
public Optional sharedMemorySize() {
return Optional.ofNullable(this.sharedMemorySize);
}
/**
* @return This allows you to tune a container's memory swappiness behavior. A ``swappiness`` value of ``0`` will cause swapping to not happen unless absolutely necessary. A ``swappiness`` value of ``100`` will cause pages to be swapped very aggressively. Accepted values are whole numbers between ``0`` and ``100``. If the ``swappiness`` parameter is not specified, a default value of ``60`` is used. If a value is not specified for ``maxSwap`` then this parameter is ignored. This parameter maps to the ``--memory-swappiness`` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration). If you're using tasks that use the Fargate launch type, the ``swappiness`` parameter isn't supported. If you're using tasks on Amazon Linux 2023 the ``swappiness`` parameter isn't supported.
*
*/
public Optional swappiness() {
return Optional.ofNullable(this.swappiness);
}
/**
* @return The container path, mount options, and size (in MiB) of the tmpfs mount. This parameter maps to the ``--tmpfs`` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration). If you're using tasks that use the Fargate launch type, the ``tmpfs`` parameter isn't supported.
*
*/
public List tmpfs() {
return this.tmpfs == null ? List.of() : this.tmpfs;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(LinuxParametersResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable KernelCapabilitiesResponse capabilities;
private @Nullable List devices;
private @Nullable Boolean initProcessEnabled;
private @Nullable Integer maxSwap;
private @Nullable Integer sharedMemorySize;
private @Nullable Integer swappiness;
private @Nullable List tmpfs;
public Builder() {}
public Builder(LinuxParametersResponse defaults) {
Objects.requireNonNull(defaults);
this.capabilities = defaults.capabilities;
this.devices = defaults.devices;
this.initProcessEnabled = defaults.initProcessEnabled;
this.maxSwap = defaults.maxSwap;
this.sharedMemorySize = defaults.sharedMemorySize;
this.swappiness = defaults.swappiness;
this.tmpfs = defaults.tmpfs;
}
@CustomType.Setter
public Builder capabilities(@Nullable KernelCapabilitiesResponse capabilities) {
this.capabilities = capabilities;
return this;
}
@CustomType.Setter
public Builder devices(@Nullable List devices) {
this.devices = devices;
return this;
}
public Builder devices(DeviceResponse... devices) {
return devices(List.of(devices));
}
@CustomType.Setter
public Builder initProcessEnabled(@Nullable Boolean initProcessEnabled) {
this.initProcessEnabled = initProcessEnabled;
return this;
}
@CustomType.Setter
public Builder maxSwap(@Nullable Integer maxSwap) {
this.maxSwap = maxSwap;
return this;
}
@CustomType.Setter
public Builder sharedMemorySize(@Nullable Integer sharedMemorySize) {
this.sharedMemorySize = sharedMemorySize;
return this;
}
@CustomType.Setter
public Builder swappiness(@Nullable Integer swappiness) {
this.swappiness = swappiness;
return this;
}
@CustomType.Setter
public Builder tmpfs(@Nullable List tmpfs) {
this.tmpfs = tmpfs;
return this;
}
public Builder tmpfs(TmpfsResponse... tmpfs) {
return tmpfs(List.of(tmpfs));
}
public LinuxParametersResponse build() {
final var _resultValue = new LinuxParametersResponse();
_resultValue.capabilities = capabilities;
_resultValue.devices = devices;
_resultValue.initProcessEnabled = initProcessEnabled;
_resultValue.maxSwap = maxSwap;
_resultValue.sharedMemorySize = sharedMemorySize;
_resultValue.swappiness = swappiness;
_resultValue.tmpfs = tmpfs;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy