Class PlatformDevice
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PlatformDevice.Builder,PlatformDevice>
The devices that are available on the container instance. The supported device types are GPUs and Neuron devices.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic PlatformDevice.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringid()The ID for the GPU or Neuron device on the container instance.static Class<? extends PlatformDevice.Builder>final StringtoString()Returns a string representation of this object.final PlatformDeviceTypetype()The type of device that's available on the container instance.final StringThe type of device that's available on the container instance.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
id
The ID for the GPU or Neuron device on the container instance. For GPUs, the available GPU IDs can also be obtained on the container instance in the
/var/lib/ecs/gpu/nvidia_gpu_info.jsonfile. For Neuron devices, the ID corresponds to the device index (for example,0for/dev/neuron0).- Returns:
- The ID for the GPU or Neuron device on the container instance. For GPUs, the available GPU IDs can also
be obtained on the container instance in the
/var/lib/ecs/gpu/nvidia_gpu_info.jsonfile. For Neuron devices, the ID corresponds to the device index (for example,0for/dev/neuron0).
-
type
The type of device that's available on the container instance. The supported values are
GPUandNEURON_DEVICE.If the service returns an enum value that is not available in the current SDK version,
typewill returnPlatformDeviceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of device that's available on the container instance. The supported values are
GPUandNEURON_DEVICE. - See Also:
-
typeAsString
The type of device that's available on the container instance. The supported values are
GPUandNEURON_DEVICE.If the service returns an enum value that is not available in the current SDK version,
typewill returnPlatformDeviceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of device that's available on the container instance. The supported values are
GPUandNEURON_DEVICE. - See Also:
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<PlatformDevice.Builder,PlatformDevice>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-