# ProcessingResourcesProperty

Identifies the resources, ML compute instances, and ML storage volumes to deploy for a processing job.

In distributed training, you specify more than one instance.

- Source: Generated at build time
- Type last changed: v2.211.0 · 13 Aug 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const processingResourcesProperty: sagemaker.CfnProcessingJob.ProcessingResourcesProperty = {
  clusterConfig: {
    instanceCount: 123,
    instanceType: 'instanceType',
    volumeSizeInGb: 123,

    // the properties below are optional
    volumeKmsKeyId: 'volumeKmsKeyId',
  },
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker

processing_resources_property = sagemaker.CfnProcessingJob.ProcessingResourcesProperty(
    cluster_config=sagemaker.CfnProcessingJob.ClusterConfigProperty(
        instance_count=123,
        instance_type="instanceType",
        volume_size_in_gb=123,

        # the properties below are optional
        volume_kms_key_id="volumeKmsKeyId"
    )
)
```

Java:

```java
// 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.*;

ProcessingResourcesProperty processingResourcesProperty = ProcessingResourcesProperty.builder()
        .clusterConfig(ClusterConfigProperty.builder()
                .instanceCount(123)
                .instanceType("instanceType")
                .volumeSizeInGb(123)

                // the properties below are optional
                .volumeKmsKeyId("volumeKmsKeyId")
                .build())
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;

var processingResourcesProperty = new ProcessingResourcesProperty {
    ClusterConfig = new ClusterConfigProperty {
        InstanceCount = 123,
        InstanceType = "instanceType",
        VolumeSizeInGb = 123,

        // the properties below are optional
        VolumeKmsKeyId = "volumeKmsKeyId"
    }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

processingResourcesProperty := &ProcessingResourcesProperty{
	ClusterConfig: &ClusterConfigProperty{
		InstanceCount: jsii.Number(123),
		InstanceType: jsii.String("instanceType"),
		VolumeSizeInGb: jsii.Number(123),

		// the properties below are optional
		VolumeKmsKeyId: jsii.String("volumeKmsKeyId"),
	},
}
```

## Properties

- `clusterConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnProcessingJob.ClusterConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnProcessingJob.ClusterConfigProperty.html) (required) — The configuration for the resources in a cluster used to run the processing job.
