Class ResourceSpec
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ResourceSpec.Builder,ResourceSpec>
Specifies the ARN's of a SageMaker AI image and SageMaker AI image version, and the instance type that the version runs on.
When both SageMakerImageVersionArn and SageMakerImageArn are passed,
SageMakerImageVersionArn is used. Any updates to SageMakerImageArn will not take effect if
SageMakerImageVersionArn already exists in the ResourceSpec because
SageMakerImageVersionArn always takes precedence. To clear the value set for
SageMakerImageVersionArn, pass None as the value.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceSpec.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final AppInstanceTypeThe instance type that the image version runs on.final StringThe instance type that the image version runs on.final StringThe Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.final StringThe ARN of the SageMaker AI image that the image version belongs to.final StringThe SageMakerImageVersionAlias of the image to launch with.final StringThe ARN of the image version created on the instance.static Class<? extends ResourceSpec.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
sageMakerImageArn
The ARN of the SageMaker AI image that the image version belongs to.
- Returns:
- The ARN of the SageMaker AI image that the image version belongs to.
-
sageMakerImageVersionArn
The ARN of the image version created on the instance. To clear the value set for
SageMakerImageVersionArn, passNoneas the value.- Returns:
- The ARN of the image version created on the instance. To clear the value set for
SageMakerImageVersionArn, passNoneas the value.
-
sageMakerImageVersionAlias
The SageMakerImageVersionAlias of the image to launch with. This value is in SemVer 2.0.0 versioning format.
- Returns:
- The SageMakerImageVersionAlias of the image to launch with. This value is in SemVer 2.0.0 versioning format.
-
instanceType
The instance type that the image version runs on.
JupyterServer apps only support the
systemvalue.For KernelGateway apps, the
systemvalue is translated toml.t3.medium. KernelGateway apps also support all other values for available instance types.If the service returns an enum value that is not available in the current SDK version,
instanceTypewill returnAppInstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominstanceTypeAsString().- Returns:
- The instance type that the image version runs on.
JupyterServer apps only support the
systemvalue.For KernelGateway apps, the
systemvalue is translated toml.t3.medium. KernelGateway apps also support all other values for available instance types. - See Also:
-
instanceTypeAsString
The instance type that the image version runs on.
JupyterServer apps only support the
systemvalue.For KernelGateway apps, the
systemvalue is translated toml.t3.medium. KernelGateway apps also support all other values for available instance types.If the service returns an enum value that is not available in the current SDK version,
instanceTypewill returnAppInstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominstanceTypeAsString().- Returns:
- The instance type that the image version runs on.
JupyterServer apps only support the
systemvalue.For KernelGateway apps, the
systemvalue is translated toml.t3.medium. KernelGateway apps also support all other values for available instance types. - See Also:
-
lifecycleConfigArn
The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.
- Returns:
- The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ResourceSpec.Builder,ResourceSpec> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-