@Stability(value=Stable) @Internal public static final class CfnTaskDefinition.ResourceRequirementProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnTaskDefinition.ResourceRequirementProperty
CfnTaskDefinition.ResourceRequirementPropertysoftware.amazon.jsii.JsiiObject.InitializationModeCfnTaskDefinition.ResourceRequirementProperty.Builder, CfnTaskDefinition.ResourceRequirementProperty.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(CfnTaskDefinition.ResourceRequirementProperty.Builder builder)
Constructor that initializes the object based on literal property values passed by the
CfnTaskDefinition.AuthorizationConfigProperty.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getType()
The type of resource to assign to a container.
|
String |
getValue()
The value for the specified resource type.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(CfnTaskDefinition.ResourceRequirementProperty.Builder builder)
CfnTaskDefinition.AuthorizationConfigProperty.Builder.public final String getType()
CfnTaskDefinition.ResourceRequirementProperty
The supported values are GPU or InferenceAccelerator .
getType in interface CfnTaskDefinition.ResourceRequirementPropertypublic final String getValue()
CfnTaskDefinition.ResourceRequirementProperty
If the GPU type is used, the value is the number of physical GPUs the Amazon ECS container agent will reserve for the container. The number of GPUs reserved for all containers in a task should not exceed the number of available GPUs on the container instance the task is launched on.
If the InferenceAccelerator type is used, the value should match the DeviceName for an InferenceAccelerator specified in a task definition.
getValue in interface CfnTaskDefinition.ResourceRequirementProperty@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.