Interface RecommendationJobInputConfig.Builder

    • Method Detail

      • modelPackageVersionArn

        RecommendationJobInputConfig.Builder modelPackageVersionArn​(String modelPackageVersionArn)

        The Amazon Resource Name (ARN) of a versioned model package.

        Parameters:
        modelPackageVersionArn - The Amazon Resource Name (ARN) of a versioned model package.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • modelName

        RecommendationJobInputConfig.Builder modelName​(String modelName)

        The name of the created model.

        Parameters:
        modelName - The name of the created model.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • jobDurationInSeconds

        RecommendationJobInputConfig.Builder jobDurationInSeconds​(Integer jobDurationInSeconds)

        Specifies the maximum duration of the job, in seconds. The maximum value is 18,000 seconds.

        Parameters:
        jobDurationInSeconds - Specifies the maximum duration of the job, in seconds. The maximum value is 18,000 seconds.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • trafficPattern

        RecommendationJobInputConfig.Builder trafficPattern​(TrafficPattern trafficPattern)

        Specifies the traffic pattern of the job.

        Parameters:
        trafficPattern - Specifies the traffic pattern of the job.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • endpointConfigurations

        RecommendationJobInputConfig.Builder endpointConfigurations​(Collection<EndpointInputConfiguration> endpointConfigurations)

        Specifies the endpoint configuration to use for a job.

        Parameters:
        endpointConfigurations - Specifies the endpoint configuration to use for a job.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • endpointConfigurations

        RecommendationJobInputConfig.Builder endpointConfigurations​(EndpointInputConfiguration... endpointConfigurations)

        Specifies the endpoint configuration to use for a job.

        Parameters:
        endpointConfigurations - Specifies the endpoint configuration to use for a job.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • volumeKmsKeyId

        RecommendationJobInputConfig.Builder volumeKmsKeyId​(String volumeKmsKeyId)

        The Amazon Resource Name (ARN) of a Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint. This key will be passed to SageMaker Hosting for endpoint creation.

        The SageMaker execution role must have kms:CreateGrant permission in order to encrypt data on the storage volume of the endpoints created for inference recommendation. The inference recommendation job will fail asynchronously during endpoint configuration creation if the role passed does not have kms:CreateGrant permission.

        The KmsKeyId can be any of the following formats:

        • // KMS Key ID

          "1234abcd-12ab-34cd-56ef-1234567890ab"

        • // Amazon Resource Name (ARN) of a KMS Key

          "arn:aws:kms:<region>:<account>:key/<key-id-12ab-34cd-56ef-1234567890ab>"

        • // KMS Key Alias

          "alias/ExampleAlias"

        • // Amazon Resource Name (ARN) of a KMS Key Alias

          "arn:aws:kms:<region>:<account>:alias/<ExampleAlias>"

        For more information about key identifiers, see Key identifiers (KeyID) in the Amazon Web Services Key Management Service (Amazon Web Services KMS) documentation.

        Parameters:
        volumeKmsKeyId - The Amazon Resource Name (ARN) of a Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint. This key will be passed to SageMaker Hosting for endpoint creation.

        The SageMaker execution role must have kms:CreateGrant permission in order to encrypt data on the storage volume of the endpoints created for inference recommendation. The inference recommendation job will fail asynchronously during endpoint configuration creation if the role passed does not have kms:CreateGrant permission.

        The KmsKeyId can be any of the following formats:

        • // KMS Key ID

          "1234abcd-12ab-34cd-56ef-1234567890ab"

        • // Amazon Resource Name (ARN) of a KMS Key

          "arn:aws:kms:<region>:<account>:key/<key-id-12ab-34cd-56ef-1234567890ab>"

        • // KMS Key Alias

          "alias/ExampleAlias"

        • // Amazon Resource Name (ARN) of a KMS Key Alias

          "arn:aws:kms:<region>:<account>:alias/<ExampleAlias>"

        For more information about key identifiers, see Key identifiers (KeyID) in the Amazon Web Services Key Management Service (Amazon Web Services KMS) documentation.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • containerConfig

        RecommendationJobInputConfig.Builder containerConfig​(RecommendationJobContainerConfig containerConfig)

        Specifies mandatory fields for running an Inference Recommender job. The fields specified in ContainerConfig override the corresponding fields in the model package.

        Parameters:
        containerConfig - Specifies mandatory fields for running an Inference Recommender job. The fields specified in ContainerConfig override the corresponding fields in the model package.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • endpoints

        RecommendationJobInputConfig.Builder endpoints​(Collection<EndpointInfo> endpoints)

        Existing customer endpoints on which to run an Inference Recommender job.

        Parameters:
        endpoints - Existing customer endpoints on which to run an Inference Recommender job.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • endpoints

        RecommendationJobInputConfig.Builder endpoints​(EndpointInfo... endpoints)

        Existing customer endpoints on which to run an Inference Recommender job.

        Parameters:
        endpoints - Existing customer endpoints on which to run an Inference Recommender job.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • vpcConfig

        RecommendationJobInputConfig.Builder vpcConfig​(RecommendationJobVpcConfig vpcConfig)

        Inference Recommender provisions SageMaker endpoints with access to VPC in the inference recommendation job.

        Parameters:
        vpcConfig - Inference Recommender provisions SageMaker endpoints with access to VPC in the inference recommendation job.
        Returns:
        Returns a reference to this object so that method calls can be chained together.