aws-cdk-lib.aws_sagemaker.CfnModelBiasJobDefinitionProps

interface CfnModelBiasJobDefinitionProps

LanguageType name
.NETAmazon.CDK.AWS.Sagemaker.CfnModelBiasJobDefinitionProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awssagemaker#CfnModelBiasJobDefinitionProps
Javasoftware.amazon.awscdk.services.sagemaker.CfnModelBiasJobDefinitionProps
Pythonaws_cdk.aws_sagemaker.CfnModelBiasJobDefinitionProps
TypeScript aws-cdk-lib » aws_sagemaker » CfnModelBiasJobDefinitionProps

Properties for defining a CfnModelBiasJobDefinition.

Example

// 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 cfnModelBiasJobDefinitionProps: sagemaker.CfnModelBiasJobDefinitionProps = {
  jobResources: {
    clusterConfig: {
      instanceCount: 123,
      instanceType: 'instanceType',
      volumeSizeInGb: 123,

      // the properties below are optional
      volumeKmsKeyId: 'volumeKmsKeyId',
    },
  },
  modelBiasAppSpecification: {
    configUri: 'configUri',
    imageUri: 'imageUri',

    // the properties below are optional
    environment: {
      environmentKey: 'environment',
    },
  },
  modelBiasJobInput: {
    groundTruthS3Input: {
      s3Uri: 's3Uri',
    },

    // the properties below are optional
    batchTransformInput: {
      dataCapturedDestinationS3Uri: 'dataCapturedDestinationS3Uri',
      datasetFormat: {
        csv: {
          header: false,
        },
        json: {
          line: false,
        },
        parquet: false,
      },
      localPath: 'localPath',

      // the properties below are optional
      endTimeOffset: 'endTimeOffset',
      featuresAttribute: 'featuresAttribute',
      inferenceAttribute: 'inferenceAttribute',
      probabilityAttribute: 'probabilityAttribute',
      probabilityThresholdAttribute: 123,
      s3DataDistributionType: 's3DataDistributionType',
      s3InputMode: 's3InputMode',
      startTimeOffset: 'startTimeOffset',
    },
    endpointInput: {
      endpointName: 'endpointName',
      localPath: 'localPath',

      // the properties below are optional
      endTimeOffset: 'endTimeOffset',
      featuresAttribute: 'featuresAttribute',
      inferenceAttribute: 'inferenceAttribute',
      probabilityAttribute: 'probabilityAttribute',
      probabilityThresholdAttribute: 123,
      s3DataDistributionType: 's3DataDistributionType',
      s3InputMode: 's3InputMode',
      startTimeOffset: 'startTimeOffset',
    },
  },
  modelBiasJobOutputConfig: {
    monitoringOutputs: [{
      s3Output: {
        localPath: 'localPath',
        s3Uri: 's3Uri',

        // the properties below are optional
        s3UploadMode: 's3UploadMode',
      },
    }],

    // the properties below are optional
    kmsKeyId: 'kmsKeyId',
  },
  roleArn: 'roleArn',

  // the properties below are optional
  endpointName: 'endpointName',
  jobDefinitionName: 'jobDefinitionName',
  modelBiasBaselineConfig: {
    baseliningJobName: 'baseliningJobName',
    constraintsResource: {
      s3Uri: 's3Uri',
    },
  },
  networkConfig: {
    enableInterContainerTrafficEncryption: false,
    enableNetworkIsolation: false,
    vpcConfig: {
      securityGroupIds: ['securityGroupIds'],
      subnets: ['subnets'],
    },
  },
  stoppingCondition: {
    maxRuntimeInSeconds: 123,
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties

NameTypeDescription
jobResourcesIResolvable | MonitoringResourcesPropertyIdentifies the resources to deploy for a monitoring job.
modelBiasAppSpecificationIResolvable | ModelBiasAppSpecificationPropertyConfigures the model bias job to run a specified Docker container image.
modelBiasJobInputIResolvable | ModelBiasJobInputPropertyInputs for the model bias job.
modelBiasJobOutputConfigIResolvable | MonitoringOutputConfigPropertyThe output configuration for monitoring jobs.
roleArnstringThe Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf.
endpointName?stringAWS::SageMaker::ModelBiasJobDefinition.EndpointName.
jobDefinitionName?stringThe name of the bias job definition.
modelBiasBaselineConfig?IResolvable | ModelBiasBaselineConfigPropertyThe baseline configuration for a model bias job.
networkConfig?IResolvable | NetworkConfigPropertyNetworking options for a model bias job.
stoppingCondition?IResolvable | StoppingConditionPropertyA time limit for how long the monitoring job is allowed to run before stopping.
tags?CfnTag[]An array of key-value pairs to apply to this resource.

jobResources

Type: IResolvable | MonitoringResourcesProperty

Identifies the resources to deploy for a monitoring job.


modelBiasAppSpecification

Type: IResolvable | ModelBiasAppSpecificationProperty

Configures the model bias job to run a specified Docker container image.


modelBiasJobInput

Type: IResolvable | ModelBiasJobInputProperty

Inputs for the model bias job.


modelBiasJobOutputConfig

Type: IResolvable | MonitoringOutputConfigProperty

The output configuration for monitoring jobs.


roleArn

Type: string

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf.


endpointName?

Type: string (optional)

AWS::SageMaker::ModelBiasJobDefinition.EndpointName.


jobDefinitionName?

Type: string (optional)

The name of the bias job definition.

The name must be unique within an AWS Region in the AWS account.


modelBiasBaselineConfig?

Type: IResolvable | ModelBiasBaselineConfigProperty (optional)

The baseline configuration for a model bias job.


networkConfig?

Type: IResolvable | NetworkConfigProperty (optional)

Networking options for a model bias job.


stoppingCondition?

Type: IResolvable | StoppingConditionProperty (optional)

A time limit for how long the monitoring job is allowed to run before stopping.


tags?

Type: CfnTag[] (optional)

An array of key-value pairs to apply to this resource.

For more information, see Tag .