Class CfnTaskDefinition.ResourceRequirementProperty.Jsii$Proxy
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ecs.CfnTaskDefinition.ResourceRequirementProperty.Jsii$Proxy
- All Implemented Interfaces:
CfnTaskDefinition.ResourceRequirementProperty
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
CfnTaskDefinition.ResourceRequirementProperty
@Stability(Stable)
@Internal
public static final class CfnTaskDefinition.ResourceRequirementProperty.Jsii$Proxy
extends software.amazon.jsii.JsiiObject
implements CfnTaskDefinition.ResourceRequirementProperty
An implementation for
CfnTaskDefinition.ResourceRequirementProperty
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ecs.CfnTaskDefinition.ResourceRequirementProperty
CfnTaskDefinition.ResourceRequirementProperty.Builder, CfnTaskDefinition.ResourceRequirementProperty.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor that initializes the object based on literal property values passed by theCfnTaskDefinition.ResourceRequirementProperty.Builder
.protected
Jsii$Proxy
(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef
- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theCfnTaskDefinition.ResourceRequirementProperty.Builder
.
-
-
Method Details
-
getType
Description copied from interface:CfnTaskDefinition.ResourceRequirementProperty
The type of resource to assign to a container.- Specified by:
getType
in interfaceCfnTaskDefinition.ResourceRequirementProperty
- See Also:
-
getValue
Description copied from interface:CfnTaskDefinition.ResourceRequirementProperty
The value for the specified resource type.When the type is
GPU
, the value is the number of physicalGPUs
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.When the type is
InferenceAccelerator
, thevalue
matches thedeviceName
for an InferenceAccelerator specified in a task definition.- Specified by:
getValue
in interfaceCfnTaskDefinition.ResourceRequirementProperty
- See Also:
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-