Class CreateTransformJobRequest
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateTransformJobRequest.Builder,CreateTransformJobRequest>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal BatchStrategySpecifies the number of records to include in a mini-batch for an HTTP inference request.final StringSpecifies the number of records to include in a mini-batch for an HTTP inference request.builder()final BatchDataCaptureConfigConfiguration to control how SageMaker captures inference data.final DataProcessingThe data structure used to specify the data to be used for inference in a batch transform job and to associate the data that is relevant to the prediction results in the output.The environment variables to set in the Docker container.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final ExperimentConfigReturns the value of the ExperimentConfig property for this object.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) Used to retrieve the value of a field from any class that extendsSdkRequest.final booleanFor responses, this returns true if the service returned a value for the Environment property.final inthashCode()final booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.final IntegerThe maximum number of parallel requests that can be sent to each instance in a transform job.final IntegerThe maximum allowed size of the payload, in MB.final ModelClientConfigConfigures the timeout and maximum number of retries for processing a transform job invocation.final StringThe name of the model that you want to use for the transform job.static Class<? extends CreateTransformJobRequest.Builder> tags()(Optional) An array of key-value pairs.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.final TransformInputDescribes the input source and the way the transform job consumes it.final StringThe name of the transform job.final TransformOutputDescribes the results of the transform job.final TransformResourcesDescribes the resources, including ML instance types and ML instance count, to use for the transform job.Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
transformJobName
The name of the transform job. The name must be unique within an Amazon Web Services Region in an Amazon Web Services account.
- Returns:
- The name of the transform job. The name must be unique within an Amazon Web Services Region in an Amazon Web Services account.
-
modelName
The name of the model that you want to use for the transform job.
ModelNamemust be the name of an existing Amazon SageMaker model within an Amazon Web Services Region in an Amazon Web Services account.- Returns:
- The name of the model that you want to use for the transform job.
ModelNamemust be the name of an existing Amazon SageMaker model within an Amazon Web Services Region in an Amazon Web Services account.
-
maxConcurrentTransforms
The maximum number of parallel requests that can be sent to each instance in a transform job. If
MaxConcurrentTransformsis set to0or left unset, Amazon SageMaker checks the optional execution-parameters to determine the settings for your chosen algorithm. If the execution-parameters endpoint is not enabled, the default value is1. For more information on execution-parameters, see How Containers Serve Requests. For built-in algorithms, you don't need to set a value forMaxConcurrentTransforms.- Returns:
- The maximum number of parallel requests that can be sent to each instance in a transform job. If
MaxConcurrentTransformsis set to0or left unset, Amazon SageMaker checks the optional execution-parameters to determine the settings for your chosen algorithm. If the execution-parameters endpoint is not enabled, the default value is1. For more information on execution-parameters, see How Containers Serve Requests. For built-in algorithms, you don't need to set a value forMaxConcurrentTransforms.
-
modelClientConfig
Configures the timeout and maximum number of retries for processing a transform job invocation.
- Returns:
- Configures the timeout and maximum number of retries for processing a transform job invocation.
-
maxPayloadInMB
The maximum allowed size of the payload, in MB. A payload is the data portion of a record (without metadata). The value in
MaxPayloadInMBmust be greater than, or equal to, the size of a single record. To estimate the size of a record in MB, divide the size of your dataset by the number of records. To ensure that the records fit within the maximum payload size, we recommend using a slightly larger value. The default value is6MB.The value of
MaxPayloadInMBcannot be greater than 100 MB. If you specify theMaxConcurrentTransformsparameter, the value of(MaxConcurrentTransforms * MaxPayloadInMB)also cannot exceed 100 MB.For cases where the payload might be arbitrarily large and is transmitted using HTTP chunked encoding, set the value to
0. This feature works only in supported algorithms. Currently, Amazon SageMaker built-in algorithms do not support HTTP chunked encoding.- Returns:
- The maximum allowed size of the payload, in MB. A payload is the data portion of a record (without
metadata). The value in
MaxPayloadInMBmust be greater than, or equal to, the size of a single record. To estimate the size of a record in MB, divide the size of your dataset by the number of records. To ensure that the records fit within the maximum payload size, we recommend using a slightly larger value. The default value is6MB.The value of
MaxPayloadInMBcannot be greater than 100 MB. If you specify theMaxConcurrentTransformsparameter, the value of(MaxConcurrentTransforms * MaxPayloadInMB)also cannot exceed 100 MB.For cases where the payload might be arbitrarily large and is transmitted using HTTP chunked encoding, set the value to
0. This feature works only in supported algorithms. Currently, Amazon SageMaker built-in algorithms do not support HTTP chunked encoding.
-
batchStrategy
Specifies the number of records to include in a mini-batch for an HTTP inference request. A record is a single unit of input data that inference can be made on. For example, a single line in a CSV file is a record.
To enable the batch strategy, you must set the
SplitTypeproperty toLine,RecordIO, orTFRecord.To use only one record when making an HTTP invocation request to a container, set
BatchStrategytoSingleRecordandSplitTypetoLine.To fit as many records in a mini-batch as can fit within the
MaxPayloadInMBlimit, setBatchStrategytoMultiRecordandSplitTypetoLine.If the service returns an enum value that is not available in the current SDK version,
batchStrategywill returnBatchStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frombatchStrategyAsString().- Returns:
- Specifies the number of records to include in a mini-batch for an HTTP inference request. A record
is a single unit of input data that inference can be made on. For example, a single line in a CSV
file is a record.
To enable the batch strategy, you must set the
SplitTypeproperty toLine,RecordIO, orTFRecord.To use only one record when making an HTTP invocation request to a container, set
BatchStrategytoSingleRecordandSplitTypetoLine.To fit as many records in a mini-batch as can fit within the
MaxPayloadInMBlimit, setBatchStrategytoMultiRecordandSplitTypetoLine. - See Also:
-
batchStrategyAsString
Specifies the number of records to include in a mini-batch for an HTTP inference request. A record is a single unit of input data that inference can be made on. For example, a single line in a CSV file is a record.
To enable the batch strategy, you must set the
SplitTypeproperty toLine,RecordIO, orTFRecord.To use only one record when making an HTTP invocation request to a container, set
BatchStrategytoSingleRecordandSplitTypetoLine.To fit as many records in a mini-batch as can fit within the
MaxPayloadInMBlimit, setBatchStrategytoMultiRecordandSplitTypetoLine.If the service returns an enum value that is not available in the current SDK version,
batchStrategywill returnBatchStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frombatchStrategyAsString().- Returns:
- Specifies the number of records to include in a mini-batch for an HTTP inference request. A record
is a single unit of input data that inference can be made on. For example, a single line in a CSV
file is a record.
To enable the batch strategy, you must set the
SplitTypeproperty toLine,RecordIO, orTFRecord.To use only one record when making an HTTP invocation request to a container, set
BatchStrategytoSingleRecordandSplitTypetoLine.To fit as many records in a mini-batch as can fit within the
MaxPayloadInMBlimit, setBatchStrategytoMultiRecordandSplitTypetoLine. - See Also:
-
hasEnvironment
public final boolean hasEnvironment()For responses, this returns true if the service returned a value for the Environment property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
environment
The environment variables to set in the Docker container. Don't include any sensitive data in your environment variables. We support up to 16 key and values entries in the map.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasEnvironment()method.- Returns:
- The environment variables to set in the Docker container. Don't include any sensitive data in your environment variables. We support up to 16 key and values entries in the map.
-
transformInput
Describes the input source and the way the transform job consumes it.
- Returns:
- Describes the input source and the way the transform job consumes it.
-
transformOutput
Describes the results of the transform job.
- Returns:
- Describes the results of the transform job.
-
dataCaptureConfig
Configuration to control how SageMaker captures inference data.
- Returns:
- Configuration to control how SageMaker captures inference data.
-
transformResources
Describes the resources, including ML instance types and ML instance count, to use for the transform job.
- Returns:
- Describes the resources, including ML instance types and ML instance count, to use for the transform job.
-
dataProcessing
The data structure used to specify the data to be used for inference in a batch transform job and to associate the data that is relevant to the prediction results in the output. The input filter provided allows you to exclude input data that is not needed for inference in a batch transform job. The output filter provided allows you to include input data relevant to interpreting the predictions in the output from the job. For more information, see Associate Prediction Results with their Corresponding Input Records.
- Returns:
- The data structure used to specify the data to be used for inference in a batch transform job and to associate the data that is relevant to the prediction results in the output. The input filter provided allows you to exclude input data that is not needed for inference in a batch transform job. The output filter provided allows you to include input data relevant to interpreting the predictions in the output from the job. For more information, see Associate Prediction Results with their Corresponding Input Records.
-
hasTags
public final boolean hasTags()For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
tags
(Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTags()method.- Returns:
- (Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide.
-
experimentConfig
Returns the value of the ExperimentConfig property for this object.- Returns:
- The value of the ExperimentConfig property for this object.
-
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<CreateTransformJobRequest.Builder,CreateTransformJobRequest> - Specified by:
toBuilderin classSageMakerRequest- Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsRequest
-
equals
- Overrides:
equalsin classAwsRequest
-
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
Description copied from class:SdkRequestUsed to retrieve the value of a field from any class that extendsSdkRequest. The field name specified should match the member name from the corresponding service-2.json model specified in the codegen-resources folder for a given service. The class specifies what class to cast the returned value to. If the returned value is also a modeled class, theSdkRequest.getValueForField(String, Class)method will again be available.- Overrides:
getValueForFieldin classSdkRequest- Parameters:
fieldName- The name of the member to be retrieved.clazz- The class to cast the returned object to.- Returns:
- Optional containing the casted return value
-
sdkFields
-