Enum CustomizationType

java.lang.Object
java.lang.Enum<CustomizationType>
software.amazon.awscdk.services.stepfunctions.tasks.CustomizationType
All Implemented Interfaces:
Serializable, Comparable<CustomizationType>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.133.0 (build 0f43e37)", date="2026-06-08T20:22:54.150Z") @Stability(Stable) public enum CustomizationType extends Enum<CustomizationType>
The customization type.

Example:

 import software.amazon.awscdk.services.bedrock.*;
 import software.amazon.awscdk.services.kms.*;
 IBucket outputBucket;
 IBucket trainingBucket;
 IBucket validationBucket;
 IKey kmsKey;
 IVpc vpc;
 FoundationModel model = FoundationModel.fromFoundationModelId(this, "Model", FoundationModelIdentifier.AMAZON_TITAN_TEXT_G1_EXPRESS_V1);
 BedrockCreateModelCustomizationJob task = BedrockCreateModelCustomizationJob.Builder.create(this, "CreateModelCustomizationJob")
         .baseModel(model)
         .clientRequestToken("MyToken")
         .customizationType(CustomizationType.FINE_TUNING)
         .customModelKmsKey(kmsKey)
         .customModelName("MyCustomModel") // required
         .customModelTags(List.of(CustomModelTag.builder().key("key1").value("value1").build()))
         .hyperParameters(Map.of(
                 "batchSize", "10"))
         .jobName("MyCustomizationJob") // required
         .jobTags(List.of(CustomModelTag.builder().key("key2").value("value2").build()))
         .outputData(OutputBucketConfiguration.builder()
                 .bucket(outputBucket) // required
                 .path("output-data/")
                 .build())
         .trainingData(TrainingBucketConfiguration.builder()
                 .bucket(trainingBucket)
                 .path("training-data/data.json")
                 .build()) // required
         // If you don't provide validation data, you have to specify `Evaluation percentage` hyperparameter.
         .validationData(List.of(ValidationBucketConfiguration.builder()
                 .bucket(validationBucket)
                 .path("validation-data/data.json")
                 .build()))
         .vpcConfig(Map.of(
                 "securityGroups", List.of(SecurityGroup.Builder.create(this, "SecurityGroup").vpc(vpc).build()),
                 "subnets", vpc.getPrivateSubnets()))
         .build();
 

See Also:
  • Enum Constant Details

    • FINE_TUNING

      @Stability(Stable) public static final CustomizationType FINE_TUNING
      Fine-tuning.

      Provide labeled data in order to train a model to improve performance on specific tasks.

    • CONTINUED_PRE_TRAINING

      @Stability(Stable) public static final CustomizationType CONTINUED_PRE_TRAINING
      Continued pre-training.

      Provide unlabeled data to pre-train a foundation model by familiarizing it with certain types of inputs.

    • DISTILLATION

      @Stability(Stable) public static final CustomizationType DISTILLATION
      Distillation.

      With Model Distillation, you can generate synthetic responses from a large foundation model (teacher) and use that data to train a smaller model (student) for your specific use-case.

  • Method Details

    • values

      public static CustomizationType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static CustomizationType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null