Class CfnTransformJob
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,ITransformJobRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
A transform job uses a trained model to get inferences on a dataset and saves these results to an Amazon S3 location that you specify.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.*;
CfnTransformJob cfnTransformJob = CfnTransformJob.Builder.create(this, "MyCfnTransformJob")
.modelName("modelName")
.transformInput(TransformInputProperty.builder()
.dataSource(DataSourceProperty.builder()
.s3DataSource(S3DataSourceProperty.builder()
.s3DataType("s3DataType")
.s3Uri("s3Uri")
.build())
.build())
// the properties below are optional
.compressionType("compressionType")
.contentType("contentType")
.splitType("splitType")
.build())
.transformOutput(TransformOutputProperty.builder()
.s3OutputPath("s3OutputPath")
// the properties below are optional
.accept("accept")
.assembleWith("assembleWith")
.kmsKeyId("kmsKeyId")
.build())
.transformResources(TransformResourcesProperty.builder()
.instanceCount(123)
.instanceType("instanceType")
// the properties below are optional
.volumeKmsKeyId("volumeKmsKeyId")
.build())
// the properties below are optional
.batchStrategy("batchStrategy")
.dataCaptureConfig(DataCaptureConfigProperty.builder()
.destinationS3Uri("destinationS3Uri")
// the properties below are optional
.generateInferenceId(false)
.kmsKeyId("kmsKeyId")
.build())
.dataProcessing(DataProcessingProperty.builder()
.inputFilter("inputFilter")
.joinSource("joinSource")
.outputFilter("outputFilter")
.build())
.environment(Map.of(
"environmentKey", "environment"))
.experimentConfig(ExperimentConfigProperty.builder()
.experimentName("experimentName")
.trialComponentDisplayName("trialComponentDisplayName")
.trialName("trialName")
.build())
.maxConcurrentTransforms(123)
.maxPayloadInMb(123)
.modelClientConfig(ModelClientConfigProperty.builder()
.invocationsMaxRetries(123)
.invocationsTimeoutInSeconds(123)
.build())
.tags(List.of(TagsItemsProperty.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnTransformJob.static interfaceConfiguration to control how SageMaker captures inference data.static interfaceThe data structure used to specify the data to be used for inference in a batch transform job.static interfaceDescribes the location of the channel data.static interfaceAssociates a SageMaker job as a trial component with an experiment and trial.static interfaceConfigures the timeout and maximum number of retries for processing a transform job invocation.static interfaceThe S3 location of the data source.static interfaceExample:static interfaceDescribes the input source and the way the transform job consumes it.static interfaceDescribes the results of the transform job.static interfaceDescribes the resources, including ML instance types and ML instance count, to use for the transform job.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.sagemaker.ITransformJobRef
ITransformJobRef.Jsii$Default, ITransformJobRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnTransformJob(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnTransformJob(software.amazon.jsii.JsiiObjectRef objRef) CfnTransformJob(software.constructs.Construct scope, String id, CfnTransformJobProps props) Create a newAWS::SageMaker::TransformJob. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForTransformJob(ITransformJobRef resource) A timestamp that shows when the transform job was created.Indicates when the transform job has been completed, or has stopped or failed.The Amazon Resource Name (ARN) of the transform job.The name of the transform job.The status of the transform job.Indicates when the transform job starts on ML instances.Specifies the number of records to include in a mini-batch for an HTTP inference request.Tag Manager which manages the tags for this resource.Configuration to control how SageMaker captures inference data.The data structure used to specify the data to be used for inference in a batch transform job.The environment variables to set in the Docker container.Associates a SageMaker job as a trial component with an experiment and trial.The maximum number of parallel requests that can be sent to each instance in a transform job.The maximum allowed size of the payload, in MB.Configures the timeout and maximum number of retries for processing a transform job invocation.The name of the model that you want to use for the transform job.getTags()An array of key-value pairs.Describes the input source and the way the transform job consumes it.A reference to a TransformJob resource.Describes the results of the transform job.Describes the resources, including ML instance types and ML instance count, to use for the transform job.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnTransformJob.renderProperties(Map<String, Object> props) voidsetBatchStrategy(String value) Specifies the number of records to include in a mini-batch for an HTTP inference request.voidsetDataCaptureConfig(IResolvable value) Configuration to control how SageMaker captures inference data.voidConfiguration to control how SageMaker captures inference data.voidsetDataProcessing(IResolvable value) The data structure used to specify the data to be used for inference in a batch transform job.voidThe data structure used to specify the data to be used for inference in a batch transform job.voidsetEnvironment(Map<String, String> value) The environment variables to set in the Docker container.voidsetEnvironment(IResolvable value) The environment variables to set in the Docker container.voidsetExperimentConfig(IResolvable value) Associates a SageMaker job as a trial component with an experiment and trial.voidAssociates a SageMaker job as a trial component with an experiment and trial.voidsetMaxConcurrentTransforms(Number value) The maximum number of parallel requests that can be sent to each instance in a transform job.voidsetMaxPayloadInMb(Number value) The maximum allowed size of the payload, in MB.voidsetModelClientConfig(IResolvable value) Configures the timeout and maximum number of retries for processing a transform job invocation.voidConfigures the timeout and maximum number of retries for processing a transform job invocation.voidsetModelName(String value) The name of the model that you want to use for the transform job.voidAn array of key-value pairs.voidsetTransformInput(IResolvable value) Describes the input source and the way the transform job consumes it.voidDescribes the input source and the way the transform job consumes it.voidsetTransformOutput(IResolvable value) Describes the results of the transform job.voidDescribes the results of the transform job.voidsetTransformResources(IResolvable value) Describes the resources, including ML instance types and ML instance count, to use for the transform job.voidDescribes the resources, including ML instance types and ML instance count, to use for the transform job.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnTransformJob
protected CfnTransformJob(software.amazon.jsii.JsiiObjectRef objRef) -
CfnTransformJob
protected CfnTransformJob(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnTransformJob
@Stability(Stable) public CfnTransformJob(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnTransformJobProps props) Create a newAWS::SageMaker::TransformJob.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForTransformJob
@Stability(Stable) @NotNull public static String arnForTransformJob(@NotNull ITransformJobRef resource) - Parameters:
resource- This parameter is required.
-
isCfnTransformJob
Checks whether the given object is a CfnTransformJob.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCreationTime
A timestamp that shows when the transform job was created. -
getAttrTransformEndTime
Indicates when the transform job has been completed, or has stopped or failed. -
getAttrTransformJobArn
The Amazon Resource Name (ARN) of the transform job. -
getAttrTransformJobName
The name of the transform job.The name must be unique within an AWS Region in an AWS account.
-
getAttrTransformJobStatus
The status of the transform job. -
getAttrTransformStartTime
Indicates when the transform job starts on ML instances. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getTransformJobRef
A reference to a TransformJob resource.- Specified by:
getTransformJobRefin interfaceITransformJobRef
-
getModelName
The name of the model that you want to use for the transform job. -
setModelName
The name of the model that you want to use for the transform job. -
getTransformInput
Describes the input source and the way the transform job consumes it.Returns union: either
IResolvableorCfnTransformJob.TransformInputProperty -
setTransformInput
Describes the input source and the way the transform job consumes it. -
setTransformInput
@Stability(Stable) public void setTransformInput(@NotNull CfnTransformJob.TransformInputProperty value) Describes the input source and the way the transform job consumes it. -
getTransformOutput
Describes the results of the transform job.Returns union: either
IResolvableorCfnTransformJob.TransformOutputProperty -
setTransformOutput
Describes the results of the transform job. -
setTransformOutput
@Stability(Stable) public void setTransformOutput(@NotNull CfnTransformJob.TransformOutputProperty value) Describes the results of the transform job. -
getTransformResources
Describes the resources, including ML instance types and ML instance count, to use for the transform job.Returns union: either
IResolvableorCfnTransformJob.TransformResourcesProperty -
setTransformResources
Describes the resources, including ML instance types and ML instance count, to use for the transform job. -
setTransformResources
@Stability(Stable) public void setTransformResources(@NotNull CfnTransformJob.TransformResourcesProperty value) Describes the resources, including ML instance types and ML instance count, to use for the transform job. -
getBatchStrategy
Specifies the number of records to include in a mini-batch for an HTTP inference request. -
setBatchStrategy
Specifies the number of records to include in a mini-batch for an HTTP inference request. -
getDataCaptureConfig
Configuration to control how SageMaker captures inference data.Returns union: either
IResolvableorCfnTransformJob.DataCaptureConfigProperty -
setDataCaptureConfig
Configuration to control how SageMaker captures inference data. -
setDataCaptureConfig
@Stability(Stable) public void setDataCaptureConfig(@Nullable CfnTransformJob.DataCaptureConfigProperty value) Configuration to control how SageMaker captures inference data. -
getDataProcessing
The data structure used to specify the data to be used for inference in a batch transform job.Returns union: either
IResolvableorCfnTransformJob.DataProcessingProperty -
setDataProcessing
The data structure used to specify the data to be used for inference in a batch transform job. -
setDataProcessing
@Stability(Stable) public void setDataProcessing(@Nullable CfnTransformJob.DataProcessingProperty value) The data structure used to specify the data to be used for inference in a batch transform job. -
getEnvironment
The environment variables to set in the Docker container.Returns union: either
IResolvableor Mapinvalid input: '<'String,String> -
setEnvironment
The environment variables to set in the Docker container. -
setEnvironment
The environment variables to set in the Docker container. -
getExperimentConfig
Associates a SageMaker job as a trial component with an experiment and trial.Returns union: either
IResolvableorCfnTransformJob.ExperimentConfigProperty -
setExperimentConfig
Associates a SageMaker job as a trial component with an experiment and trial. -
setExperimentConfig
@Stability(Stable) public void setExperimentConfig(@Nullable CfnTransformJob.ExperimentConfigProperty value) Associates a SageMaker job as a trial component with an experiment and trial. -
getMaxConcurrentTransforms
The maximum number of parallel requests that can be sent to each instance in a transform job. -
setMaxConcurrentTransforms
The maximum number of parallel requests that can be sent to each instance in a transform job. -
getMaxPayloadInMb
The maximum allowed size of the payload, in MB. -
setMaxPayloadInMb
The maximum allowed size of the payload, in MB. -
getModelClientConfig
Configures the timeout and maximum number of retries for processing a transform job invocation.Returns union: either
IResolvableorCfnTransformJob.ModelClientConfigProperty -
setModelClientConfig
Configures the timeout and maximum number of retries for processing a transform job invocation. -
setModelClientConfig
@Stability(Stable) public void setModelClientConfig(@Nullable CfnTransformJob.ModelClientConfigProperty value) Configures the timeout and maximum number of retries for processing a transform job invocation. -
getTags
An array of key-value pairs. -
setTags
An array of key-value pairs.
-