com.pulumi.aws.ecs.outputs.GetTaskExecutionOverridesContainerOverrideResourceRequirement 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.aws.ecs.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetTaskExecutionOverridesContainerOverrideResourceRequirement {
/**
* @return The type of resource to assign to a container. Valid values are `GPU` or `InferenceAccelerator`.
*
*/
private String type;
/**
* @return The value for the specified resource type. If the `GPU` type is used, the value is the number of physical GPUs the Amazon ECS container agent reserves for the container. The number of GPUs that's reserved for all containers in a task can't exceed the number of available GPUs on the container instance that the task is launched on. If the `InferenceAccelerator` type is used, the value matches the `deviceName` for an InferenceAccelerator specified in a task definition.
*
*/
private String value;
private GetTaskExecutionOverridesContainerOverrideResourceRequirement() {}
/**
* @return The type of resource to assign to a container. Valid values are `GPU` or `InferenceAccelerator`.
*
*/
public String type() {
return this.type;
}
/**
* @return The value for the specified resource type. If the `GPU` type is used, the value is the number of physical GPUs the Amazon ECS container agent reserves for the container. The number of GPUs that's reserved for all containers in a task can't exceed the number of available GPUs on the container instance that the task is launched on. If the `InferenceAccelerator` type is used, the value matches the `deviceName` for an InferenceAccelerator specified in a task definition.
*
*/
public String value() {
return this.value;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetTaskExecutionOverridesContainerOverrideResourceRequirement defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String type;
private String value;
public Builder() {}
public Builder(GetTaskExecutionOverridesContainerOverrideResourceRequirement defaults) {
Objects.requireNonNull(defaults);
this.type = defaults.type;
this.value = defaults.value;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetTaskExecutionOverridesContainerOverrideResourceRequirement", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder value(String value) {
if (value == null) {
throw new MissingRequiredPropertyException("GetTaskExecutionOverridesContainerOverrideResourceRequirement", "value");
}
this.value = value;
return this;
}
public GetTaskExecutionOverridesContainerOverrideResourceRequirement build() {
final var _resultValue = new GetTaskExecutionOverridesContainerOverrideResourceRequirement();
_resultValue.type = type;
_resultValue.value = value;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy