# BedrockCreateModelCustomizationJobProps

Properties for invoking a Bedrock Model.

Extends: BedrockCreateModelCustomizationJobProps
Extends: TaskStateBaseProps
Used as props by: BedrockCreateModelCustomizationJob

- Source: [`aws-stepfunctions-tasks/lib/bedrock/create-model-customization-job.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/bedrock/create-model-customization-job.ts#L112)
- Type last changed: v2.224.0 · 13 Nov 2025

## Example

```ts
import * as bedrock from 'aws-cdk-lib/aws-bedrock';
import * as kms from 'aws-cdk-lib/aws-kms';

declare const outputBucket: s3.IBucket;
declare const trainingBucket: s3.IBucket;
declare const validationBucket: s3.IBucket;
declare const kmsKey: kms.IKey;
declare const vpc: ec2.IVpc;

const model = bedrock.FoundationModel.fromFoundationModelId(
  this,
  'Model',
  bedrock.FoundationModelIdentifier.AMAZON_TITAN_TEXT_G1_EXPRESS_V1,
);

const task = new tasks.BedrockCreateModelCustomizationJob(this, 'CreateModelCustomizationJob', {
  baseModel: model,
  clientRequestToken: 'MyToken',
  customizationType: tasks.CustomizationType.FINE_TUNING,
  customModelKmsKey: kmsKey,
  customModelName: 'MyCustomModel', // required
  customModelTags: [{ key: 'key1', value: 'value1' }],
  hyperParameters: {
    batchSize: '10',
  },
  jobName: 'MyCustomizationJob', // required
  jobTags: [{ key: 'key2', value: 'value2' }],
  outputData: {
    bucket: outputBucket, // required
    path: 'output-data/',
  },
  trainingData: {
    bucket: trainingBucket,
    path: 'training-data/data.json',
  }, // required
  // If you don't provide validation data, you have to specify `Evaluation percentage` hyperparameter.
  validationData: [
    {
      bucket: validationBucket,
      path: 'validation-data/data.json',
    },
  ],
  vpcConfig: {
    securityGroups: [new ec2.SecurityGroup(this, 'SecurityGroup', { vpc })],
    subnets: vpc.privateSubnets,
  },
});
```

## Properties

- `assign`: { [key: string]: any } — Workflow variables to store in this step.

  **Default:** Not assign variables

  Using workflow variables, you can store data in a step and retrieve that data in future steps.

- `baseModel`: [IModel](/cdk/api/v2/docs/aws-cdk-lib.aws_bedrock.IModel.html) (required) — The base model.

- `clientRequestToken`: string — A unique, case-sensitive identifier to ensure that the API request completes no more than one time.

  **Default:** no client request token

  If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error.

  The maximum length is 256 characters.

- `comment`: string — A comment describing this state.

  **Default:** No comment

- `credentials`: [Credentials](/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions.Credentials.html) — Credentials for an IAM Role that the State Machine assumes for executing the task.

  **Default:** None (Task is executed using the State Machine's execution role)

  This enables cross-account resource invocations.

- `customizationType`: [CustomizationType](/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.CustomizationType.html) = FINE_TUNING — The customization type.

- `customModelKmsKey`: [IKey](/cdk/api/v2/docs/aws-cdk-lib.aws_kms.IKey.html) — The custom model is encrypted at rest using this key.

  **Default:** encrypted with the AWS owned key

- `customModelName`: string (required) — A name for the resulting custom model.

  The maximum length is 63 characters.

- `customModelTags`: [CustomModelTag](/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.CustomModelTag.html)[] — Tags to attach to the resulting custom model.

  **Default:** no tags

  The maximum number of tags is 200.

- `heartbeat`: [Duration](/cdk/api/v2/docs/aws-cdk-lib.Duration.html) = None — use `heartbeatTimeout`

- `heartbeatTimeout`: [Timeout](/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions.Timeout.html) = None — Timeout for the heartbeat.

  [disable-awslint:duration-prop-type] is needed because all props interface in
  aws-stepfunctions-tasks extend this interface

- `hyperParameters`: { [key: string]: string } — Parameters related to tuning the model.

  **Default:** use default hyperparameters

- `inputPath`: string = $ — JSONPath expression to select part of the state to be the input to this state.

  May also be the special value JsonPath.DISCARD, which will cause the effective
  input to be the empty object {}.

- `integrationPattern`: [IntegrationPattern](/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions.IntegrationPattern.html) — AWS Step Functions integrates with services directly in the Amazon States Language.

  **Default:** `IntegrationPattern.REQUEST_RESPONSE` for most tasks. `IntegrationPattern.RUN_JOB` for the following exceptions: `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`.

  You can control these AWS services using service integration patterns.

  Depending on the AWS Service, the Service Integration Pattern availability will vary.

- `jobName`: string (required) — A name for the fine-tuning job.

  The maximum length is 63 characters.

- `jobTags`: [CustomModelTag](/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.CustomModelTag.html)[] — Tags to attach to the job.

  **Default:** no tags

  The maximum number of tags is 200.

- `outputData`: [OutputBucketConfiguration](/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.OutputBucketConfiguration.html) (required) — The S3 bucket configuration where the output data is stored.

- `outputPath`: string = $ — JSONPath expression to select part of the state to be the output to this state.

  May also be the special value JsonPath.DISCARD, which will cause the effective
  output to be the empty object {}.

- `outputs`: any — Used to specify and transform output from the state.

  **Default:** $states.result or $states.errorOutput

  When specified, the value overrides the state output default.
  The output field accepts any JSON value (object, array, string, number, boolean, null).
  Any string value, including those inside objects or arrays,
  will be evaluated as JSONata if surrounded by {% %} characters.
  Output also accepts a JSONata expression directly.

- `queryLanguage`: [QueryLanguage](/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions.QueryLanguage.html) = JSONPath — The name of the query language used by the state.

  If the state does not contain a `queryLanguage` field,
  then it will use the query language specified in the top-level `queryLanguage` field.

- `resultPath`: string = $ — JSONPath expression to indicate where to inject the state's output.

  May also be the special value JsonPath.DISCARD, which will cause the state's
  input to become its output.

- `resultSelector`: { [key: string]: any } = None — The JSON that will replace the state's raw result and become the effective result before ResultPath is applied.

  You can use ResultSelector to create a payload with values that are static
  or selected from the state's raw result.

- `role`: [IRoleRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_iam.IRoleRef.html) — The IAM role that Amazon Bedrock can assume to perform tasks on your behalf.

  **Default:** use auto generated role

  For example, during model training, Amazon Bedrock needs your permission to read input data from an S3 bucket,
  write model artifacts to an S3 bucket.
  To pass this role to Amazon Bedrock, the caller of this API must have the iam:PassRole permission.

- `stateName`: string — Optional name for this state.

  **Default:** The construct ID will be used as state name

- `taskTimeout`: [Timeout](/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions.Timeout.html) = None — Timeout for the task.

  [disable-awslint:duration-prop-type] is needed because all props interface in
  aws-stepfunctions-tasks extend this interface

- `timeout`: [Duration](/cdk/api/v2/docs/aws-cdk-lib.Duration.html) = None — use `taskTimeout`

- `trainingData`: [TrainingBucketConfiguration](/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.TrainingBucketConfiguration.html) (required) — The S3 bucket configuration where the training data is stored.

- `validationData`: [ValidationBucketConfiguration](/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.ValidationBucketConfiguration.html)[] — The S3 bucket configuration where the validation data is stored.

  **Default:** undefined - validate using a subset of the training data

  If you don't provide a validation dataset, specify the evaluation percentage by the `Evaluation percentage` hyperparameter.

  The maximum number is 10.

- `vpcConfig`: [IBedrockCreateModelCustomizationJobVpcConfig](/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.IBedrockCreateModelCustomizationJobVpcConfig.html) — The VPC configuration.

  **Default:** no VPC configuration
