Amazon SageMaker Service

2020/12/08 - Amazon SageMaker Service - 32 new 8 updated api methods

Changes  This feature helps you monitor model performance characteristics such as accuracy, identify undesired bias in your ML models, and explain model decisions better with explainability drift detection.

GetDeviceFleetReport (new) Link ¶

Describes a fleet.

See also: AWS API Documentation

Request Syntax

client.get_device_fleet_report(
    DeviceFleetName='string'
)
type DeviceFleetName

string

param DeviceFleetName

[REQUIRED]

The name of the fleet.

rtype

dict

returns

Response Syntax

{
    'DeviceFleetArn': 'string',
    'DeviceFleetName': 'string',
    'OutputConfig': {
        'S3OutputLocation': 'string',
        'KmsKeyId': 'string'
    },
    'Description': 'string',
    'ReportGenerated': datetime(2015, 1, 1),
    'DeviceStats': {
        'ConnectedDeviceCount': 123,
        'RegisteredDeviceCount': 123
    },
    'AgentVersions': [
        {
            'Version': 'string',
            'AgentCount': 123
        },
    ],
    'ModelStats': [
        {
            'ModelName': 'string',
            'ModelVersion': 'string',
            'OfflineDeviceCount': 123,
            'ConnectedDeviceCount': 123,
            'ActiveDeviceCount': 123,
            'SamplingDeviceCount': 123
        },
    ]
}

Response Structure

  • (dict) --

    • DeviceFleetArn (string) --

      The Amazon Resource Name (ARN) of the device.

    • DeviceFleetName (string) --

      The name of the fleet.

    • OutputConfig (dict) --

      The output configuration for storing sample data collected by the fleet.

      • S3OutputLocation (string) --

        The Amazon Simple Storage (S3) bucker URI.

      • KmsKeyId (string) --

        The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume after compilation job. If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account.

    • Description (string) --

      Description of the fleet.

    • ReportGenerated (datetime) --

      Timestamp of when the report was generated.

    • DeviceStats (dict) --

      Status of devices.

      • ConnectedDeviceCount (integer) --

        The number of devices connected with a heartbeat.

      • RegisteredDeviceCount (integer) --

        The number of registered devices.

    • AgentVersions (list) --

      The versions of Edge Manager agent deployed on the fleet.

      • (dict) --

        Edge Manager agent version.

        • Version (string) --

          Version of the agent.

        • AgentCount (integer) --

          The number of Edge Manager agents.

    • ModelStats (list) --

      Status of model on device.

      • (dict) --

        Status of edge devices with this model.

        • ModelName (string) --

          The name of the model.

        • ModelVersion (string) --

          The model version.

        • OfflineDeviceCount (integer) --

          The number of devices that have this model version and do not have a heart beat.

        • ConnectedDeviceCount (integer) --

          The number of devices that have this model version and have a heart beat.

        • ActiveDeviceCount (integer) --

          The number of devices that have this model version, a heart beat, and are currently running.

        • SamplingDeviceCount (integer) --

          The number of devices with this model version and are producing sample data.

DeleteModelExplainabilityJobDefinition (new) Link ¶

Deletes an Amazon SageMaker model explainability job definition.

See also: AWS API Documentation

Request Syntax

client.delete_model_explainability_job_definition(
    JobDefinitionName='string'
)
type JobDefinitionName

string

param JobDefinitionName

[REQUIRED]

The name of the model explainability job definition to delete.

returns

None

StopEdgePackagingJob (new) Link ¶

Request to stop an edge packaging job.

See also: AWS API Documentation

Request Syntax

client.stop_edge_packaging_job(
    EdgePackagingJobName='string'
)
type EdgePackagingJobName

string

param EdgePackagingJobName

[REQUIRED]

The name of the edge packaging job.

returns

None

RegisterDevices (new) Link ¶

Register devices.

See also: AWS API Documentation

Request Syntax

client.register_devices(
    DeviceFleetName='string',
    Devices=[
        {
            'DeviceName': 'string',
            'Description': 'string',
            'IotThingName': 'string'
        },
    ],
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
type DeviceFleetName

string

param DeviceFleetName

[REQUIRED]

The name of the fleet.

type Devices

list

param Devices

[REQUIRED]

A list of devices to register with SageMaker Edge Manager.

  • (dict) --

    Information of a particular device.

    • DeviceName (string) -- [REQUIRED]

      The name of the device.

    • Description (string) --

      Description of the device.

    • IotThingName (string) --

      AWS Internet of Things (IoT) object name.

type Tags

list

param Tags

The tags associated with devices.

  • (dict) --

    Describes a tag.

    • Key (string) -- [REQUIRED]

      The tag key.

    • Value (string) -- [REQUIRED]

      The tag value.

returns

None

ListDevices (new) Link ¶

A list of devices.

See also: AWS API Documentation

Request Syntax

client.list_devices(
    NextToken='string',
    MaxResults=123,
    LatestHeartbeatAfter=datetime(2015, 1, 1),
    ModelName='string',
    DeviceFleetName='string'
)
type NextToken

string

param NextToken

The response from the last list when returning a list large enough to need tokening.

type MaxResults

integer

param MaxResults

Maximum number of results to select.

type LatestHeartbeatAfter

datetime

param LatestHeartbeatAfter

Select fleets where the job was updated after X

type ModelName

string

param ModelName

A filter that searches devices that contains this name in any of their models.

type DeviceFleetName

string

param DeviceFleetName

Filter for fleets containing this name in their device fleet name.

rtype

dict

returns

Response Syntax

{
    'DeviceSummaries': [
        {
            'DeviceName': 'string',
            'DeviceArn': 'string',
            'Description': 'string',
            'DeviceFleetName': 'string',
            'IotThingName': 'string',
            'RegistrationTime': datetime(2015, 1, 1),
            'LatestHeartbeat': datetime(2015, 1, 1),
            'Models': [
                {
                    'ModelName': 'string',
                    'ModelVersion': 'string'
                },
            ]
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • DeviceSummaries (list) --

      Summary of devices.

      • (dict) --

        Summary of the device.

        • DeviceName (string) --

          The unique identifier of the device.

        • DeviceArn (string) --

          Amazon Resource Name (ARN) of the device.

        • Description (string) --

          A description of the device.

        • DeviceFleetName (string) --

          The name of the fleet the device belongs to.

        • IotThingName (string) --

          The AWS Internet of Things (IoT) object thing name associated with the device..

        • RegistrationTime (datetime) --

          The timestamp of the last registration or de-reregistration.

        • LatestHeartbeat (datetime) --

          The last heartbeat received from the device.

        • Models (list) --

          Models on the device.

          • (dict) --

            Summary of model on edge device.

            • ModelName (string) --

              The name of the model.

            • ModelVersion (string) --

              The version model.

    • NextToken (string) --

      The response from the last list when returning a list large enough to need tokening.

CreateDataQualityJobDefinition (new) Link ¶

Creates a definition for a job that monitors data quality and drift. For information about model monitor, see Amazon SageMaker Model Monitor .

See also: AWS API Documentation

Request Syntax

client.create_data_quality_job_definition(
    JobDefinitionName='string',
    DataQualityBaselineConfig={
        'BaseliningJobName': 'string',
        'ConstraintsResource': {
            'S3Uri': 'string'
        },
        'StatisticsResource': {
            'S3Uri': 'string'
        }
    },
    DataQualityAppSpecification={
        'ImageUri': 'string',
        'ContainerEntrypoint': [
            'string',
        ],
        'ContainerArguments': [
            'string',
        ],
        'RecordPreprocessorSourceUri': 'string',
        'PostAnalyticsProcessorSourceUri': 'string',
        'Environment': {
            'string': 'string'
        }
    },
    DataQualityJobInput={
        'EndpointInput': {
            'EndpointName': 'string',
            'LocalPath': 'string',
            'S3InputMode': 'Pipe'|'File',
            'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
            'FeaturesAttribute': 'string',
            'InferenceAttribute': 'string',
            'ProbabilityAttribute': 'string',
            'ProbabilityThresholdAttribute': 123.0,
            'StartTimeOffset': 'string',
            'EndTimeOffset': 'string'
        }
    },
    DataQualityJobOutputConfig={
        'MonitoringOutputs': [
            {
                'S3Output': {
                    'S3Uri': 'string',
                    'LocalPath': 'string',
                    'S3UploadMode': 'Continuous'|'EndOfJob'
                }
            },
        ],
        'KmsKeyId': 'string'
    },
    JobResources={
        'ClusterConfig': {
            'InstanceCount': 123,
            'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
            'VolumeSizeInGB': 123,
            'VolumeKmsKeyId': 'string'
        }
    },
    NetworkConfig={
        'EnableInterContainerTrafficEncryption': True|False,
        'EnableNetworkIsolation': True|False,
        'VpcConfig': {
            'SecurityGroupIds': [
                'string',
            ],
            'Subnets': [
                'string',
            ]
        }
    },
    RoleArn='string',
    StoppingCondition={
        'MaxRuntimeInSeconds': 123
    },
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
type JobDefinitionName

string

param JobDefinitionName

[REQUIRED]

The name for the monitoring job definition.

type DataQualityBaselineConfig

dict

param DataQualityBaselineConfig

Configures the constraints and baselines for the monitoring job.

  • BaseliningJobName (string) --

    The name of the job that performs baselining for the data quality monitoring job.

  • ConstraintsResource (dict) --

    The constraints resource for a monitoring job.

    • S3Uri (string) --

      The Amazon S3 URI for the constraints resource.

  • StatisticsResource (dict) --

    The statistics resource for a monitoring job.

    • S3Uri (string) --

      The Amazon S3 URI for the statistics resource.

type DataQualityAppSpecification

dict

param DataQualityAppSpecification

[REQUIRED]

Specifies the container that runs the monitoring job.

  • ImageUri (string) -- [REQUIRED]

    The container image that the data quality monitoring job runs.

  • ContainerEntrypoint (list) --

    The entrypoint for a container used to run a monitoring job.

    • (string) --

  • ContainerArguments (list) --

    The arguments to send to the container that the monitoring job runs.

    • (string) --

  • RecordPreprocessorSourceUri (string) --

    An Amazon S3 URI to a script that is called per row prior to running analysis. It can base64 decode the payload and convert it into a flatted json so that the built-in container can use the converted data. Applicable only for the built-in (first party) containers.

  • PostAnalyticsProcessorSourceUri (string) --

    An Amazon S3 URI to a script that is called after analysis has been performed. Applicable only for the built-in (first party) containers.

  • Environment (dict) --

    Sets the environment variables in the container that the monitoring job runs.

    • (string) --

      • (string) --

type DataQualityJobInput

dict

param DataQualityJobInput

[REQUIRED]

A list of inputs for the monitoring job. Currently endpoints are supported as monitoring inputs.

  • EndpointInput (dict) -- [REQUIRED]

    Input object for the endpoint

    • EndpointName (string) -- [REQUIRED]

      An endpoint in customer's account which has enabled DataCaptureConfig enabled.

    • LocalPath (string) -- [REQUIRED]

      Path to the filesystem where the endpoint data is available to the container.

    • S3InputMode (string) --

      Whether the Pipe or File is used as the input mode for transfering data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

    • S3DataDistributionType (string) --

      Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defauts to FullyReplicated

    • FeaturesAttribute (string) --

      The attributes of the input data that are the input features.

    • InferenceAttribute (string) --

      The attribute of the input data that represents the ground truth label.

    • ProbabilityAttribute (string) --

      In a classification problem, the attribute that represents the class probability.

    • ProbabilityThresholdAttribute (float) --

      The threshold for the class probability to be evaluated as a positive result.

    • StartTimeOffset (string) --

      If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs .

    • EndTimeOffset (string) --

      If specified, monitoring jobs substract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs .

type DataQualityJobOutputConfig

dict

param DataQualityJobOutputConfig

[REQUIRED]

The output configuration for monitoring jobs.

  • MonitoringOutputs (list) -- [REQUIRED]

    Monitoring outputs for monitoring jobs. This is where the output of the periodic monitoring jobs is uploaded.

    • (dict) --

      The output object for a monitoring job.

      • S3Output (dict) -- [REQUIRED]

        The Amazon S3 storage location where the results of a monitoring job are saved.

        • S3Uri (string) -- [REQUIRED]

          A URI that identifies the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job.

        • LocalPath (string) -- [REQUIRED]

          The local path to the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job. LocalPath is an absolute path for the output data.

        • S3UploadMode (string) --

          Whether to upload the results of the monitoring job continuously or after the job completes.

  • KmsKeyId (string) --

    The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.

type JobResources

dict

param JobResources

[REQUIRED]

Identifies the resources to deploy for a monitoring job.

  • ClusterConfig (dict) -- [REQUIRED]

    The configuration for the cluster resources used to run the processing job.

    • InstanceCount (integer) -- [REQUIRED]

      The number of ML compute instances to use in the model monitoring job. For distributed processing jobs, specify a value greater than 1. The default value is 1.

    • InstanceType (string) -- [REQUIRED]

      The ML compute instance type for the processing job.

    • VolumeSizeInGB (integer) -- [REQUIRED]

      The size of the ML storage volume, in gigabytes, that you want to provision. You must specify sufficient ML storage for your scenario.

    • VolumeKmsKeyId (string) --

      The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.

type NetworkConfig

dict

param NetworkConfig

Specifies networking configuration for the monitoring job.

  • EnableInterContainerTrafficEncryption (boolean) --

    Whether to encrypt all communications between the instances used for the monitoring jobs. Choose True to encrypt communications. Encryption provides greater security for distributed jobs, but the processing might take longer.

  • EnableNetworkIsolation (boolean) --

    Whether to allow inbound and outbound network calls to and from the containers used for the monitoring job.

  • VpcConfig (dict) --

    Specifies a VPC that your training jobs and hosted models have access to. Control access to and from your training and model containers by configuring the VPC. For more information, see Protect Endpoints by Using an Amazon Virtual Private Cloud and Protect Training Jobs by Using an Amazon Virtual Private Cloud .

    • SecurityGroupIds (list) -- [REQUIRED]

      The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field.

      • (string) --

    • Subnets (list) -- [REQUIRED]

      The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones .

      • (string) --

type RoleArn

string

param RoleArn

[REQUIRED]

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

type StoppingCondition

dict

param StoppingCondition

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

  • MaxRuntimeInSeconds (integer) -- [REQUIRED]

    The maximum runtime allowed in seconds.

type Tags

list

param Tags

(Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide .

  • (dict) --

    Describes a tag.

    • Key (string) -- [REQUIRED]

      The tag key.

    • Value (string) -- [REQUIRED]

      The tag value.

rtype

dict

returns

Response Syntax

{
    'JobDefinitionArn': 'string'
}

Response Structure

  • (dict) --

    • JobDefinitionArn (string) --

      The Amazon Resource Name (ARN) of the job definition.

DeregisterDevices (new) Link ¶

Deregisters the specified devices. After you deregister a device, you will need to re-register the devices.

See also: AWS API Documentation

Request Syntax

client.deregister_devices(
    DeviceFleetName='string',
    DeviceNames=[
        'string',
    ]
)
type DeviceFleetName

string

param DeviceFleetName

[REQUIRED]

The name of the fleet the devices belong to.

type DeviceNames

list

param DeviceNames

[REQUIRED]

The unique IDs of the devices.

  • (string) --

returns

None

ListModelBiasJobDefinitions (new) Link ¶

Lists model bias jobs definitions that satisfy various filters.

See also: AWS API Documentation

Request Syntax

client.list_model_bias_job_definitions(
    EndpointName='string',
    SortBy='Name'|'CreationTime',
    SortOrder='Ascending'|'Descending',
    NextToken='string',
    MaxResults=123,
    NameContains='string',
    CreationTimeBefore=datetime(2015, 1, 1),
    CreationTimeAfter=datetime(2015, 1, 1)
)
type EndpointName

string

param EndpointName

Name of the endpoint to monitor for model bias.

type SortBy

string

param SortBy

Whether to sort results by the Name or CreationTime field. The default is CreationTime .

type SortOrder

string

param SortOrder

Whether to sort the results in Ascending or Descending order. The default is Descending .

type NextToken

string

param NextToken

The token returned if the response is truncated. To retrieve the next set of job executions, use it in the next request.

type MaxResults

integer

param MaxResults

The maximum number of model bias jobs to return in the response. The default value is 10.

type NameContains

string

param NameContains

Filter for model bias jobs whose name contains a specified string.

type CreationTimeBefore

datetime

param CreationTimeBefore

A filter that returns only model bias jobs created before a specified time.

type CreationTimeAfter

datetime

param CreationTimeAfter

A filter that returns only model bias jobs created after a specified time.

rtype

dict

returns

Response Syntax

{
    'JobDefinitionSummaries': [
        {
            'MonitoringJobDefinitionName': 'string',
            'MonitoringJobDefinitionArn': 'string',
            'CreationTime': datetime(2015, 1, 1),
            'EndpointName': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • JobDefinitionSummaries (list) --

      A JSON array in which each element is a summary for a model bias jobs.

      • (dict) --

        Summary information about a monitoring job.

        • MonitoringJobDefinitionName (string) --

          The name of the monitoring job.

        • MonitoringJobDefinitionArn (string) --

          The Amazon Resource Name (ARN) of the monitoring job.

        • CreationTime (datetime) --

          The time that the monitoring job was created.

        • EndpointName (string) --

          The name of the endpoint that the job monitors.

    • NextToken (string) --

      If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of jobs, use it in the subsequent request.

UpdateTrainingJob (new) Link ¶

Update a model training job to request a new Debugger profiling configuration.

See also: AWS API Documentation

Request Syntax

client.update_training_job(
    TrainingJobName='string',
    ProfilerConfig={
        'S3OutputPath': 'string',
        'ProfilingIntervalInMilliseconds': 123,
        'ProfilingParameters': {
            'string': 'string'
        },
        'DisableProfiler': True|False
    },
    ProfilerRuleConfigurations=[
        {
            'RuleConfigurationName': 'string',
            'LocalPath': 'string',
            'S3OutputPath': 'string',
            'RuleEvaluatorImage': 'string',
            'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
            'VolumeSizeInGB': 123,
            'RuleParameters': {
                'string': 'string'
            }
        },
    ]
)
type TrainingJobName

string

param TrainingJobName

[REQUIRED]

The name of a training job to update the Debugger profiling configuration.

type ProfilerConfig

dict

param ProfilerConfig

Configuration information for Debugger system monitoring, framework profiling, and storage paths.

  • S3OutputPath (string) --

    Path to Amazon S3 storage location for system and framework metrics.

  • ProfilingIntervalInMilliseconds (integer) --

    A time interval for capturing system metrics in milliseconds. Available values are 100, 200, 500, 1000 (1 second), 5000 (5 seconds), and 60000 (1 minute) milliseconds. The default value is 500 milliseconds.

  • ProfilingParameters (dict) --

    Configuration information for capturing framework metrics. Available key strings for different profiling options are DetailedProfilingConfig , PythonProfilingConfig , and DataLoaderProfilingConfig . The following codes are configuration structures for the ProfilingParameters parameter. To learn more about how to configure the ProfilingParameters parameter, see Use the SageMaker and Debugger Configuration API Operations to Create, Update, and Debug Your Training Job .

    • (string) --

      • (string) --

  • DisableProfiler (boolean) --

    To disable Debugger monitoring and profiling, set to True .

type ProfilerRuleConfigurations

list

param ProfilerRuleConfigurations

Configuration information for Debugger rules for profiling system and framework metrics.

  • (dict) --

    Configuration information for profiling rules.

    • RuleConfigurationName (string) -- [REQUIRED]

      The name of the rule configuration. It must be unique relative to other rule configuration names.

    • LocalPath (string) --

      Path to local storage location for output of rules. Defaults to /opt/ml/processing/output/rule/ .

    • S3OutputPath (string) --

      Path to Amazon S3 storage location for rules.

    • RuleEvaluatorImage (string) -- [REQUIRED]

      The Amazon Elastic Container (ECR) Image for the managed rule evaluation.

    • InstanceType (string) --

      The instance type to deploy a Debugger custom rule for profiling a training job.

    • VolumeSizeInGB (integer) --

      The size, in GB, of the ML storage volume attached to the processing instance.

    • RuleParameters (dict) --

      Runtime configuration for rule container.

      • (string) --

        • (string) --

rtype

dict

returns

Response Syntax

{
    'TrainingJobArn': 'string'
}

Response Structure

  • (dict) --

    • TrainingJobArn (string) --

      The Amazon Resource Name (ARN) of the training job.

DeleteModelQualityJobDefinition (new) Link ¶

Deletes the secified model quality monitoring job definition.

See also: AWS API Documentation

Request Syntax

client.delete_model_quality_job_definition(
    JobDefinitionName='string'
)
type JobDefinitionName

string

param JobDefinitionName

[REQUIRED]

The name of the model quality monitoring job definition to delete.

returns

None

CreateModelExplainabilityJobDefinition (new) Link ¶

Creates the definition for a model explainability job.

See also: AWS API Documentation

Request Syntax

client.create_model_explainability_job_definition(
    JobDefinitionName='string',
    ModelExplainabilityBaselineConfig={
        'BaseliningJobName': 'string',
        'ConstraintsResource': {
            'S3Uri': 'string'
        }
    },
    ModelExplainabilityAppSpecification={
        'ImageUri': 'string',
        'ConfigUri': 'string',
        'Environment': {
            'string': 'string'
        }
    },
    ModelExplainabilityJobInput={
        'EndpointInput': {
            'EndpointName': 'string',
            'LocalPath': 'string',
            'S3InputMode': 'Pipe'|'File',
            'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
            'FeaturesAttribute': 'string',
            'InferenceAttribute': 'string',
            'ProbabilityAttribute': 'string',
            'ProbabilityThresholdAttribute': 123.0,
            'StartTimeOffset': 'string',
            'EndTimeOffset': 'string'
        }
    },
    ModelExplainabilityJobOutputConfig={
        'MonitoringOutputs': [
            {
                'S3Output': {
                    'S3Uri': 'string',
                    'LocalPath': 'string',
                    'S3UploadMode': 'Continuous'|'EndOfJob'
                }
            },
        ],
        'KmsKeyId': 'string'
    },
    JobResources={
        'ClusterConfig': {
            'InstanceCount': 123,
            'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
            'VolumeSizeInGB': 123,
            'VolumeKmsKeyId': 'string'
        }
    },
    NetworkConfig={
        'EnableInterContainerTrafficEncryption': True|False,
        'EnableNetworkIsolation': True|False,
        'VpcConfig': {
            'SecurityGroupIds': [
                'string',
            ],
            'Subnets': [
                'string',
            ]
        }
    },
    RoleArn='string',
    StoppingCondition={
        'MaxRuntimeInSeconds': 123
    },
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
type JobDefinitionName

string

param JobDefinitionName

[REQUIRED]

The name of the model explainability job definition. The name must be unique within an AWS Region in the AWS account.

type ModelExplainabilityBaselineConfig

dict

param ModelExplainabilityBaselineConfig

The baseline configuration for a model explainability job.

  • BaseliningJobName (string) --

    The name of the baseline model explainability job.

  • ConstraintsResource (dict) --

    The constraints resource for a monitoring job.

    • S3Uri (string) --

      The Amazon S3 URI for the constraints resource.

type ModelExplainabilityAppSpecification

dict

param ModelExplainabilityAppSpecification

[REQUIRED]

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

  • ImageUri (string) -- [REQUIRED]

    The container image to be run by the model explainability job.

  • ConfigUri (string) -- [REQUIRED]

    JSON formatted S3 file that defines explainability parameters. For more information on this JSON configuration file, see Configure model explainability parameters .

  • Environment (dict) --

    Sets the environment variables in the Docker container.

    • (string) --

      • (string) --

type ModelExplainabilityJobInput

dict

param ModelExplainabilityJobInput

[REQUIRED]

Inputs for the model explainability job.

  • EndpointInput (dict) -- [REQUIRED]

    Input object for the endpoint

    • EndpointName (string) -- [REQUIRED]

      An endpoint in customer's account which has enabled DataCaptureConfig enabled.

    • LocalPath (string) -- [REQUIRED]

      Path to the filesystem where the endpoint data is available to the container.

    • S3InputMode (string) --

      Whether the Pipe or File is used as the input mode for transfering data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

    • S3DataDistributionType (string) --

      Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defauts to FullyReplicated

    • FeaturesAttribute (string) --

      The attributes of the input data that are the input features.

    • InferenceAttribute (string) --

      The attribute of the input data that represents the ground truth label.

    • ProbabilityAttribute (string) --

      In a classification problem, the attribute that represents the class probability.

    • ProbabilityThresholdAttribute (float) --

      The threshold for the class probability to be evaluated as a positive result.

    • StartTimeOffset (string) --

      If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs .

    • EndTimeOffset (string) --

      If specified, monitoring jobs substract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs .

type ModelExplainabilityJobOutputConfig

dict

param ModelExplainabilityJobOutputConfig

[REQUIRED]

The output configuration for monitoring jobs.

  • MonitoringOutputs (list) -- [REQUIRED]

    Monitoring outputs for monitoring jobs. This is where the output of the periodic monitoring jobs is uploaded.

    • (dict) --

      The output object for a monitoring job.

      • S3Output (dict) -- [REQUIRED]

        The Amazon S3 storage location where the results of a monitoring job are saved.

        • S3Uri (string) -- [REQUIRED]

          A URI that identifies the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job.

        • LocalPath (string) -- [REQUIRED]

          The local path to the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job. LocalPath is an absolute path for the output data.

        • S3UploadMode (string) --

          Whether to upload the results of the monitoring job continuously or after the job completes.

  • KmsKeyId (string) --

    The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.

type JobResources

dict

param JobResources

[REQUIRED]

Identifies the resources to deploy for a monitoring job.

  • ClusterConfig (dict) -- [REQUIRED]

    The configuration for the cluster resources used to run the processing job.

    • InstanceCount (integer) -- [REQUIRED]

      The number of ML compute instances to use in the model monitoring job. For distributed processing jobs, specify a value greater than 1. The default value is 1.

    • InstanceType (string) -- [REQUIRED]

      The ML compute instance type for the processing job.

    • VolumeSizeInGB (integer) -- [REQUIRED]

      The size of the ML storage volume, in gigabytes, that you want to provision. You must specify sufficient ML storage for your scenario.

    • VolumeKmsKeyId (string) --

      The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.

type NetworkConfig

dict

param NetworkConfig

Networking options for a model explainability job.

  • EnableInterContainerTrafficEncryption (boolean) --

    Whether to encrypt all communications between the instances used for the monitoring jobs. Choose True to encrypt communications. Encryption provides greater security for distributed jobs, but the processing might take longer.

  • EnableNetworkIsolation (boolean) --

    Whether to allow inbound and outbound network calls to and from the containers used for the monitoring job.

  • VpcConfig (dict) --

    Specifies a VPC that your training jobs and hosted models have access to. Control access to and from your training and model containers by configuring the VPC. For more information, see Protect Endpoints by Using an Amazon Virtual Private Cloud and Protect Training Jobs by Using an Amazon Virtual Private Cloud .

    • SecurityGroupIds (list) -- [REQUIRED]

      The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field.

      • (string) --

    • Subnets (list) -- [REQUIRED]

      The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones .

      • (string) --

type RoleArn

string

param RoleArn

[REQUIRED]

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

type StoppingCondition

dict

param StoppingCondition

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

  • MaxRuntimeInSeconds (integer) -- [REQUIRED]

    The maximum runtime allowed in seconds.

type Tags

list

param Tags

(Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide .

  • (dict) --

    Describes a tag.

    • Key (string) -- [REQUIRED]

      The tag key.

    • Value (string) -- [REQUIRED]

      The tag value.

rtype

dict

returns

Response Syntax

{
    'JobDefinitionArn': 'string'
}

Response Structure

  • (dict) --

    • JobDefinitionArn (string) --

      The Amazon Resource Name (ARN) of the model explainability job.

ListModelExplainabilityJobDefinitions (new) Link ¶

Lists model explainability job definitions that satisfy various filters.

See also: AWS API Documentation

Request Syntax

client.list_model_explainability_job_definitions(
    EndpointName='string',
    SortBy='Name'|'CreationTime',
    SortOrder='Ascending'|'Descending',
    NextToken='string',
    MaxResults=123,
    NameContains='string',
    CreationTimeBefore=datetime(2015, 1, 1),
    CreationTimeAfter=datetime(2015, 1, 1)
)
type EndpointName

string

param EndpointName

Name of the endpoint to monitor for model explainability.

type SortBy

string

param SortBy

Whether to sort results by the Name or CreationTime field. The default is CreationTime .

type SortOrder

string

param SortOrder

Whether to sort the results in Ascending or Descending order. The default is Descending .

type NextToken

string

param NextToken

The token returned if the response is truncated. To retrieve the next set of job executions, use it in the next request.

type MaxResults

integer

param MaxResults

The maximum number of jobs to return in the response. The default value is 10.

type NameContains

string

param NameContains

Filter for model explainability jobs whose name contains a specified string.

type CreationTimeBefore

datetime

param CreationTimeBefore

A filter that returns only model explainability jobs created before a specified time.

type CreationTimeAfter

datetime

param CreationTimeAfter

A filter that returns only model explainability jobs created after a specified time.

rtype

dict

returns

Response Syntax

{
    'JobDefinitionSummaries': [
        {
            'MonitoringJobDefinitionName': 'string',
            'MonitoringJobDefinitionArn': 'string',
            'CreationTime': datetime(2015, 1, 1),
            'EndpointName': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • JobDefinitionSummaries (list) --

      A JSON array in which each element is a summary for a explainability bias jobs.

      • (dict) --

        Summary information about a monitoring job.

        • MonitoringJobDefinitionName (string) --

          The name of the monitoring job.

        • MonitoringJobDefinitionArn (string) --

          The Amazon Resource Name (ARN) of the monitoring job.

        • CreationTime (datetime) --

          The time that the monitoring job was created.

        • EndpointName (string) --

          The name of the endpoint that the job monitors.

    • NextToken (string) --

      If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of jobs, use it in the subsequent request.

UpdateDeviceFleet (new) Link ¶

Updates a fleet of devices.

See also: AWS API Documentation

Request Syntax

client.update_device_fleet(
    DeviceFleetName='string',
    RoleArn='string',
    Description='string',
    OutputConfig={
        'S3OutputLocation': 'string',
        'KmsKeyId': 'string'
    }
)
type DeviceFleetName

string

param DeviceFleetName

[REQUIRED]

The name of the fleet.

type RoleArn

string

param RoleArn

The Amazon Resource Name (ARN) of the device.

type Description

string

param Description

Description of the fleet.

type OutputConfig

dict

param OutputConfig

[REQUIRED]

Output configuration for storing sample data collected by the fleet.

  • S3OutputLocation (string) -- [REQUIRED]

    The Amazon Simple Storage (S3) bucker URI.

  • KmsKeyId (string) --

    The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume after compilation job. If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account.

returns

None

DeleteDataQualityJobDefinition (new) Link ¶

Deletes a data quality monitoring job definition.

See also: AWS API Documentation

Request Syntax

client.delete_data_quality_job_definition(
    JobDefinitionName='string'
)
type JobDefinitionName

string

param JobDefinitionName

[REQUIRED]

The name of the data quality monitoring job definition to delete.

returns

None

CreateEdgePackagingJob (new) Link ¶

Starts a SageMaker Edge Manager model packaging job. Edge Manager will use the model artifacts from the Amazon Simple Storage Service bucket that you specify. After the model has been packaged, Amazon SageMaker saves the resulting artifacts to an S3 bucket that you specify.

See also: AWS API Documentation

Request Syntax

client.create_edge_packaging_job(
    EdgePackagingJobName='string',
    CompilationJobName='string',
    ModelName='string',
    ModelVersion='string',
    RoleArn='string',
    OutputConfig={
        'S3OutputLocation': 'string',
        'KmsKeyId': 'string'
    },
    ResourceKey='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
type EdgePackagingJobName

string

param EdgePackagingJobName

[REQUIRED]

The name of the edge packaging job.

type CompilationJobName

string

param CompilationJobName

[REQUIRED]

The name of the SageMaker Neo compilation job that will be used to locate model artifacts for packaging.

type ModelName

string

param ModelName

[REQUIRED]

The name of the model.

type ModelVersion

string

param ModelVersion

[REQUIRED]

The version of the model.

type RoleArn

string

param RoleArn

[REQUIRED]

The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to download and upload the model, and to contact SageMaker Neo.

type OutputConfig

dict

param OutputConfig

[REQUIRED]

Provides information about the output location for the packaged model.

  • S3OutputLocation (string) -- [REQUIRED]

    The Amazon Simple Storage (S3) bucker URI.

  • KmsKeyId (string) --

    The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume after compilation job. If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account.

type ResourceKey

string

param ResourceKey

The CMK to use when encrypting the EBS volume the edge packaging job runs on.

type Tags

list

param Tags

Creates tags for the packaging job.

  • (dict) --

    Describes a tag.

    • Key (string) -- [REQUIRED]

      The tag key.

    • Value (string) -- [REQUIRED]

      The tag value.

returns

None

CreateModelQualityJobDefinition (new) Link ¶

Creates a definition for a job that monitors model quality and drift. For information about model monitor, see Amazon SageMaker Model Monitor .

See also: AWS API Documentation

Request Syntax

client.create_model_quality_job_definition(
    JobDefinitionName='string',
    ModelQualityBaselineConfig={
        'BaseliningJobName': 'string',
        'ConstraintsResource': {
            'S3Uri': 'string'
        }
    },
    ModelQualityAppSpecification={
        'ImageUri': 'string',
        'ContainerEntrypoint': [
            'string',
        ],
        'ContainerArguments': [
            'string',
        ],
        'RecordPreprocessorSourceUri': 'string',
        'PostAnalyticsProcessorSourceUri': 'string',
        'ProblemType': 'BinaryClassification'|'MulticlassClassification'|'Regression',
        'Environment': {
            'string': 'string'
        }
    },
    ModelQualityJobInput={
        'EndpointInput': {
            'EndpointName': 'string',
            'LocalPath': 'string',
            'S3InputMode': 'Pipe'|'File',
            'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
            'FeaturesAttribute': 'string',
            'InferenceAttribute': 'string',
            'ProbabilityAttribute': 'string',
            'ProbabilityThresholdAttribute': 123.0,
            'StartTimeOffset': 'string',
            'EndTimeOffset': 'string'
        },
        'GroundTruthS3Input': {
            'S3Uri': 'string'
        }
    },
    ModelQualityJobOutputConfig={
        'MonitoringOutputs': [
            {
                'S3Output': {
                    'S3Uri': 'string',
                    'LocalPath': 'string',
                    'S3UploadMode': 'Continuous'|'EndOfJob'
                }
            },
        ],
        'KmsKeyId': 'string'
    },
    JobResources={
        'ClusterConfig': {
            'InstanceCount': 123,
            'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
            'VolumeSizeInGB': 123,
            'VolumeKmsKeyId': 'string'
        }
    },
    NetworkConfig={
        'EnableInterContainerTrafficEncryption': True|False,
        'EnableNetworkIsolation': True|False,
        'VpcConfig': {
            'SecurityGroupIds': [
                'string',
            ],
            'Subnets': [
                'string',
            ]
        }
    },
    RoleArn='string',
    StoppingCondition={
        'MaxRuntimeInSeconds': 123
    },
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
type JobDefinitionName

string

param JobDefinitionName

[REQUIRED]

The name of the monitoring job definition.

type ModelQualityBaselineConfig

dict

param ModelQualityBaselineConfig

Specifies the constraints and baselines for the monitoring job.

  • BaseliningJobName (string) --

    The name of the job that performs baselining for the monitoring job.

  • ConstraintsResource (dict) --

    The constraints resource for a monitoring job.

    • S3Uri (string) --

      The Amazon S3 URI for the constraints resource.

type ModelQualityAppSpecification

dict

param ModelQualityAppSpecification

[REQUIRED]

The container that runs the monitoring job.

  • ImageUri (string) -- [REQUIRED]

    The address of the container image that the monitoring job runs.

  • ContainerEntrypoint (list) --

    Specifies the entrypoint for a container that the monitoring job runs.

    • (string) --

  • ContainerArguments (list) --

    An array of arguments for the container used to run the monitoring job.

    • (string) --

  • RecordPreprocessorSourceUri (string) --

    An Amazon S3 URI to a script that is called per row prior to running analysis. It can base64 decode the payload and convert it into a flatted json so that the built-in container can use the converted data. Applicable only for the built-in (first party) containers.

  • PostAnalyticsProcessorSourceUri (string) --

    An Amazon S3 URI to a script that is called after analysis has been performed. Applicable only for the built-in (first party) containers.

  • ProblemType (string) --

    The machine learning problem type of the model that the monitoring job monitors.

  • Environment (dict) --

    Sets the environment variables in the container that the monitoring job runs.

    • (string) --

      • (string) --

type ModelQualityJobInput

dict

param ModelQualityJobInput

[REQUIRED]

A list of the inputs that are monitored. Currently endpoints are supported.

  • EndpointInput (dict) -- [REQUIRED]

    Input object for the endpoint

    • EndpointName (string) -- [REQUIRED]

      An endpoint in customer's account which has enabled DataCaptureConfig enabled.

    • LocalPath (string) -- [REQUIRED]

      Path to the filesystem where the endpoint data is available to the container.

    • S3InputMode (string) --

      Whether the Pipe or File is used as the input mode for transfering data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

    • S3DataDistributionType (string) --

      Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defauts to FullyReplicated

    • FeaturesAttribute (string) --

      The attributes of the input data that are the input features.

    • InferenceAttribute (string) --

      The attribute of the input data that represents the ground truth label.

    • ProbabilityAttribute (string) --

      In a classification problem, the attribute that represents the class probability.

    • ProbabilityThresholdAttribute (float) --

      The threshold for the class probability to be evaluated as a positive result.

    • StartTimeOffset (string) --

      If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs .

    • EndTimeOffset (string) --

      If specified, monitoring jobs substract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs .

  • GroundTruthS3Input (dict) -- [REQUIRED]

    The ground truth label provided for the model.

    • S3Uri (string) --

      The address of the Amazon S3 location of the ground truth labels.

type ModelQualityJobOutputConfig

dict

param ModelQualityJobOutputConfig

[REQUIRED]

The output configuration for monitoring jobs.

  • MonitoringOutputs (list) -- [REQUIRED]

    Monitoring outputs for monitoring jobs. This is where the output of the periodic monitoring jobs is uploaded.

    • (dict) --

      The output object for a monitoring job.

      • S3Output (dict) -- [REQUIRED]

        The Amazon S3 storage location where the results of a monitoring job are saved.

        • S3Uri (string) -- [REQUIRED]

          A URI that identifies the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job.

        • LocalPath (string) -- [REQUIRED]

          The local path to the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job. LocalPath is an absolute path for the output data.

        • S3UploadMode (string) --

          Whether to upload the results of the monitoring job continuously or after the job completes.

  • KmsKeyId (string) --

    The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.

type JobResources

dict

param JobResources

[REQUIRED]

Identifies the resources to deploy for a monitoring job.

  • ClusterConfig (dict) -- [REQUIRED]

    The configuration for the cluster resources used to run the processing job.

    • InstanceCount (integer) -- [REQUIRED]

      The number of ML compute instances to use in the model monitoring job. For distributed processing jobs, specify a value greater than 1. The default value is 1.

    • InstanceType (string) -- [REQUIRED]

      The ML compute instance type for the processing job.

    • VolumeSizeInGB (integer) -- [REQUIRED]

      The size of the ML storage volume, in gigabytes, that you want to provision. You must specify sufficient ML storage for your scenario.

    • VolumeKmsKeyId (string) --

      The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.

type NetworkConfig

dict

param NetworkConfig

Specifies the network configuration for the monitoring job.

  • EnableInterContainerTrafficEncryption (boolean) --

    Whether to encrypt all communications between the instances used for the monitoring jobs. Choose True to encrypt communications. Encryption provides greater security for distributed jobs, but the processing might take longer.

  • EnableNetworkIsolation (boolean) --

    Whether to allow inbound and outbound network calls to and from the containers used for the monitoring job.

  • VpcConfig (dict) --

    Specifies a VPC that your training jobs and hosted models have access to. Control access to and from your training and model containers by configuring the VPC. For more information, see Protect Endpoints by Using an Amazon Virtual Private Cloud and Protect Training Jobs by Using an Amazon Virtual Private Cloud .

    • SecurityGroupIds (list) -- [REQUIRED]

      The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field.

      • (string) --

    • Subnets (list) -- [REQUIRED]

      The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones .

      • (string) --

type RoleArn

string

param RoleArn

[REQUIRED]

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

type StoppingCondition

dict

param StoppingCondition

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

  • MaxRuntimeInSeconds (integer) -- [REQUIRED]

    The maximum runtime allowed in seconds.

type Tags

list

param Tags

(Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide .

  • (dict) --

    Describes a tag.

    • Key (string) -- [REQUIRED]

      The tag key.

    • Value (string) -- [REQUIRED]

      The tag value.

rtype

dict

returns

Response Syntax

{
    'JobDefinitionArn': 'string'
}

Response Structure

  • (dict) --

    • JobDefinitionArn (string) --

      The Amazon Resource Name (ARN) of the model quality monitoring job.

ListDataQualityJobDefinitions (new) Link ¶

Lists the data quality job definitions in your account.

See also: AWS API Documentation

Request Syntax

client.list_data_quality_job_definitions(
    EndpointName='string',
    SortBy='Name'|'CreationTime',
    SortOrder='Ascending'|'Descending',
    NextToken='string',
    MaxResults=123,
    NameContains='string',
    CreationTimeBefore=datetime(2015, 1, 1),
    CreationTimeAfter=datetime(2015, 1, 1)
)
type EndpointName

string

param EndpointName

A filter that lists the data quality job definitions associated with the specified endpoint.

type SortBy

string

param SortBy

The field to sort results by. The default is CreationTime .

type SortOrder

string

param SortOrder

The sort order for results. The default is Descending .

type NextToken

string

param NextToken

If the result of the previous ListDataQualityJobDefinitions request was truncated, the response includes a NextToken . To retrieve the next set of transform jobs, use the token in the next request.>

type MaxResults

integer

param MaxResults

The maximum number of data quality monitoring job definitions to return in the response.

type NameContains

string

param NameContains

A string in the data quality monitoring job definition name. This filter returns only data quality monitoring job definitions whose name contains the specified string.

type CreationTimeBefore

datetime

param CreationTimeBefore

A filter that returns only data quality monitoring job definitions created before the specified time.

type CreationTimeAfter

datetime

param CreationTimeAfter

A filter that returns only data quality monitoring job definitions created after the specified time.

rtype

dict

returns

Response Syntax

{
    'JobDefinitionSummaries': [
        {
            'MonitoringJobDefinitionName': 'string',
            'MonitoringJobDefinitionArn': 'string',
            'CreationTime': datetime(2015, 1, 1),
            'EndpointName': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • JobDefinitionSummaries (list) --

      A list of data quality monitoring job definitions.

      • (dict) --

        Summary information about a monitoring job.

        • MonitoringJobDefinitionName (string) --

          The name of the monitoring job.

        • MonitoringJobDefinitionArn (string) --

          The Amazon Resource Name (ARN) of the monitoring job.

        • CreationTime (datetime) --

          The time that the monitoring job was created.

        • EndpointName (string) --

          The name of the endpoint that the job monitors.

    • NextToken (string) --

      If the result of the previous ListDataQualityJobDefinitions request was truncated, the response includes a NextToken . To retrieve the next set of data quality monitoring job definitions, use the token in the next request.

CreateModelBiasJobDefinition (new) Link ¶

Creates the definition for a model bias job.

See also: AWS API Documentation

Request Syntax

client.create_model_bias_job_definition(
    JobDefinitionName='string',
    ModelBiasBaselineConfig={
        'BaseliningJobName': 'string',
        'ConstraintsResource': {
            'S3Uri': 'string'
        }
    },
    ModelBiasAppSpecification={
        'ImageUri': 'string',
        'ConfigUri': 'string',
        'Environment': {
            'string': 'string'
        }
    },
    ModelBiasJobInput={
        'EndpointInput': {
            'EndpointName': 'string',
            'LocalPath': 'string',
            'S3InputMode': 'Pipe'|'File',
            'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
            'FeaturesAttribute': 'string',
            'InferenceAttribute': 'string',
            'ProbabilityAttribute': 'string',
            'ProbabilityThresholdAttribute': 123.0,
            'StartTimeOffset': 'string',
            'EndTimeOffset': 'string'
        },
        'GroundTruthS3Input': {
            'S3Uri': 'string'
        }
    },
    ModelBiasJobOutputConfig={
        'MonitoringOutputs': [
            {
                'S3Output': {
                    'S3Uri': 'string',
                    'LocalPath': 'string',
                    'S3UploadMode': 'Continuous'|'EndOfJob'
                }
            },
        ],
        'KmsKeyId': 'string'
    },
    JobResources={
        'ClusterConfig': {
            'InstanceCount': 123,
            'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
            'VolumeSizeInGB': 123,
            'VolumeKmsKeyId': 'string'
        }
    },
    NetworkConfig={
        'EnableInterContainerTrafficEncryption': True|False,
        'EnableNetworkIsolation': True|False,
        'VpcConfig': {
            'SecurityGroupIds': [
                'string',
            ],
            'Subnets': [
                'string',
            ]
        }
    },
    RoleArn='string',
    StoppingCondition={
        'MaxRuntimeInSeconds': 123
    },
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
type JobDefinitionName

string

param JobDefinitionName

[REQUIRED]

The name of the bias job definition. The name must be unique within an AWS Region in the AWS account.

type ModelBiasBaselineConfig

dict

param ModelBiasBaselineConfig

The baseline configuration for a model bias job.

  • BaseliningJobName (string) --

    The name of the baseline model bias job.

  • ConstraintsResource (dict) --

    The constraints resource for a monitoring job.

    • S3Uri (string) --

      The Amazon S3 URI for the constraints resource.

type ModelBiasAppSpecification

dict

param ModelBiasAppSpecification

[REQUIRED]

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

  • ImageUri (string) -- [REQUIRED]

    The container image to be run by the model bias job.

  • ConfigUri (string) -- [REQUIRED]

    JSON formatted S3 file that defines bias parameters. For more information on this JSON configuration file, see Configure bias parameters .

  • Environment (dict) --

    Sets the environment variables in the Docker container.

    • (string) --

      • (string) --

type ModelBiasJobInput

dict

param ModelBiasJobInput

[REQUIRED]

Inputs for the model bias job.

  • EndpointInput (dict) -- [REQUIRED]

    Input object for the endpoint

    • EndpointName (string) -- [REQUIRED]

      An endpoint in customer's account which has enabled DataCaptureConfig enabled.

    • LocalPath (string) -- [REQUIRED]

      Path to the filesystem where the endpoint data is available to the container.

    • S3InputMode (string) --

      Whether the Pipe or File is used as the input mode for transfering data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

    • S3DataDistributionType (string) --

      Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defauts to FullyReplicated

    • FeaturesAttribute (string) --

      The attributes of the input data that are the input features.

    • InferenceAttribute (string) --

      The attribute of the input data that represents the ground truth label.

    • ProbabilityAttribute (string) --

      In a classification problem, the attribute that represents the class probability.

    • ProbabilityThresholdAttribute (float) --

      The threshold for the class probability to be evaluated as a positive result.

    • StartTimeOffset (string) --

      If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs .

    • EndTimeOffset (string) --

      If specified, monitoring jobs substract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs .

  • GroundTruthS3Input (dict) -- [REQUIRED]

    Location of ground truth labels to use in model bias job.

    • S3Uri (string) --

      The address of the Amazon S3 location of the ground truth labels.

type ModelBiasJobOutputConfig

dict

param ModelBiasJobOutputConfig

[REQUIRED]

The output configuration for monitoring jobs.

  • MonitoringOutputs (list) -- [REQUIRED]

    Monitoring outputs for monitoring jobs. This is where the output of the periodic monitoring jobs is uploaded.

    • (dict) --

      The output object for a monitoring job.

      • S3Output (dict) -- [REQUIRED]

        The Amazon S3 storage location where the results of a monitoring job are saved.

        • S3Uri (string) -- [REQUIRED]

          A URI that identifies the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job.

        • LocalPath (string) -- [REQUIRED]

          The local path to the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job. LocalPath is an absolute path for the output data.

        • S3UploadMode (string) --

          Whether to upload the results of the monitoring job continuously or after the job completes.

  • KmsKeyId (string) --

    The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.

type JobResources

dict

param JobResources

[REQUIRED]

Identifies the resources to deploy for a monitoring job.

  • ClusterConfig (dict) -- [REQUIRED]

    The configuration for the cluster resources used to run the processing job.

    • InstanceCount (integer) -- [REQUIRED]

      The number of ML compute instances to use in the model monitoring job. For distributed processing jobs, specify a value greater than 1. The default value is 1.

    • InstanceType (string) -- [REQUIRED]

      The ML compute instance type for the processing job.

    • VolumeSizeInGB (integer) -- [REQUIRED]

      The size of the ML storage volume, in gigabytes, that you want to provision. You must specify sufficient ML storage for your scenario.

    • VolumeKmsKeyId (string) --

      The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.

type NetworkConfig

dict

param NetworkConfig

Networking options for a model bias job.

  • EnableInterContainerTrafficEncryption (boolean) --

    Whether to encrypt all communications between the instances used for the monitoring jobs. Choose True to encrypt communications. Encryption provides greater security for distributed jobs, but the processing might take longer.

  • EnableNetworkIsolation (boolean) --

    Whether to allow inbound and outbound network calls to and from the containers used for the monitoring job.

  • VpcConfig (dict) --

    Specifies a VPC that your training jobs and hosted models have access to. Control access to and from your training and model containers by configuring the VPC. For more information, see Protect Endpoints by Using an Amazon Virtual Private Cloud and Protect Training Jobs by Using an Amazon Virtual Private Cloud .

    • SecurityGroupIds (list) -- [REQUIRED]

      The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field.

      • (string) --

    • Subnets (list) -- [REQUIRED]

      The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones .

      • (string) --

type RoleArn

string

param RoleArn

[REQUIRED]

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

type StoppingCondition

dict

param StoppingCondition

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

  • MaxRuntimeInSeconds (integer) -- [REQUIRED]

    The maximum runtime allowed in seconds.

type Tags

list

param Tags

(Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide .

  • (dict) --

    Describes a tag.

    • Key (string) -- [REQUIRED]

      The tag key.

    • Value (string) -- [REQUIRED]

      The tag value.

rtype

dict

returns

Response Syntax

{
    'JobDefinitionArn': 'string'
}

Response Structure

  • (dict) --

    • JobDefinitionArn (string) --

      The Amazon Resource Name (ARN) of the model bias job.

DescribeModelQualityJobDefinition (new) Link ¶

Returns a description of a model quality job definition.

See also: AWS API Documentation

Request Syntax

client.describe_model_quality_job_definition(
    JobDefinitionName='string'
)
type JobDefinitionName

string

param JobDefinitionName

[REQUIRED]

The name of the model quality job. The name must be unique within an AWS Region in the AWS account.

rtype

dict

returns

Response Syntax

{
    'JobDefinitionArn': 'string',
    'JobDefinitionName': 'string',
    'CreationTime': datetime(2015, 1, 1),
    'ModelQualityBaselineConfig': {
        'BaseliningJobName': 'string',
        'ConstraintsResource': {
            'S3Uri': 'string'
        }
    },
    'ModelQualityAppSpecification': {
        'ImageUri': 'string',
        'ContainerEntrypoint': [
            'string',
        ],
        'ContainerArguments': [
            'string',
        ],
        'RecordPreprocessorSourceUri': 'string',
        'PostAnalyticsProcessorSourceUri': 'string',
        'ProblemType': 'BinaryClassification'|'MulticlassClassification'|'Regression',
        'Environment': {
            'string': 'string'
        }
    },
    'ModelQualityJobInput': {
        'EndpointInput': {
            'EndpointName': 'string',
            'LocalPath': 'string',
            'S3InputMode': 'Pipe'|'File',
            'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
            'FeaturesAttribute': 'string',
            'InferenceAttribute': 'string',
            'ProbabilityAttribute': 'string',
            'ProbabilityThresholdAttribute': 123.0,
            'StartTimeOffset': 'string',
            'EndTimeOffset': 'string'
        },
        'GroundTruthS3Input': {
            'S3Uri': 'string'
        }
    },
    'ModelQualityJobOutputConfig': {
        'MonitoringOutputs': [
            {
                'S3Output': {
                    'S3Uri': 'string',
                    'LocalPath': 'string',
                    'S3UploadMode': 'Continuous'|'EndOfJob'
                }
            },
        ],
        'KmsKeyId': 'string'
    },
    'JobResources': {
        'ClusterConfig': {
            'InstanceCount': 123,
            'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
            'VolumeSizeInGB': 123,
            'VolumeKmsKeyId': 'string'
        }
    },
    'NetworkConfig': {
        'EnableInterContainerTrafficEncryption': True|False,
        'EnableNetworkIsolation': True|False,
        'VpcConfig': {
            'SecurityGroupIds': [
                'string',
            ],
            'Subnets': [
                'string',
            ]
        }
    },
    'RoleArn': 'string',
    'StoppingCondition': {
        'MaxRuntimeInSeconds': 123
    }
}

Response Structure

  • (dict) --

    • JobDefinitionArn (string) --

      The Amazon Resource Name (ARN) of the model quality job.

    • JobDefinitionName (string) --

      The name of the quality job definition. The name must be unique within an AWS Region in the AWS account.

    • CreationTime (datetime) --

      The time at which the model quality job was created.

    • ModelQualityBaselineConfig (dict) --

      The baseline configuration for a model quality job.

      • BaseliningJobName (string) --

        The name of the job that performs baselining for the monitoring job.

      • ConstraintsResource (dict) --

        The constraints resource for a monitoring job.

        • S3Uri (string) --

          The Amazon S3 URI for the constraints resource.

    • ModelQualityAppSpecification (dict) --

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

      • ImageUri (string) --

        The address of the container image that the monitoring job runs.

      • ContainerEntrypoint (list) --

        Specifies the entrypoint for a container that the monitoring job runs.

        • (string) --

      • ContainerArguments (list) --

        An array of arguments for the container used to run the monitoring job.

        • (string) --

      • RecordPreprocessorSourceUri (string) --

        An Amazon S3 URI to a script that is called per row prior to running analysis. It can base64 decode the payload and convert it into a flatted json so that the built-in container can use the converted data. Applicable only for the built-in (first party) containers.

      • PostAnalyticsProcessorSourceUri (string) --

        An Amazon S3 URI to a script that is called after analysis has been performed. Applicable only for the built-in (first party) containers.

      • ProblemType (string) --

        The machine learning problem type of the model that the monitoring job monitors.

      • Environment (dict) --

        Sets the environment variables in the container that the monitoring job runs.

        • (string) --

          • (string) --

    • ModelQualityJobInput (dict) --

      Inputs for the model quality job.

      • EndpointInput (dict) --

        Input object for the endpoint

        • EndpointName (string) --

          An endpoint in customer's account which has enabled DataCaptureConfig enabled.

        • LocalPath (string) --

          Path to the filesystem where the endpoint data is available to the container.

        • S3InputMode (string) --

          Whether the Pipe or File is used as the input mode for transfering data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

        • S3DataDistributionType (string) --

          Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defauts to FullyReplicated

        • FeaturesAttribute (string) --

          The attributes of the input data that are the input features.

        • InferenceAttribute (string) --

          The attribute of the input data that represents the ground truth label.

        • ProbabilityAttribute (string) --

          In a classification problem, the attribute that represents the class probability.

        • ProbabilityThresholdAttribute (float) --

          The threshold for the class probability to be evaluated as a positive result.

        • StartTimeOffset (string) --

          If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs .

        • EndTimeOffset (string) --

          If specified, monitoring jobs substract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs .

      • GroundTruthS3Input (dict) --

        The ground truth label provided for the model.

        • S3Uri (string) --

          The address of the Amazon S3 location of the ground truth labels.

    • ModelQualityJobOutputConfig (dict) --

      The output configuration for monitoring jobs.

      • MonitoringOutputs (list) --

        Monitoring outputs for monitoring jobs. This is where the output of the periodic monitoring jobs is uploaded.

        • (dict) --

          The output object for a monitoring job.

          • S3Output (dict) --

            The Amazon S3 storage location where the results of a monitoring job are saved.

            • S3Uri (string) --

              A URI that identifies the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job.

            • LocalPath (string) --

              The local path to the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job. LocalPath is an absolute path for the output data.

            • S3UploadMode (string) --

              Whether to upload the results of the monitoring job continuously or after the job completes.

      • KmsKeyId (string) --

        The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.

    • JobResources (dict) --

      Identifies the resources to deploy for a monitoring job.

      • ClusterConfig (dict) --

        The configuration for the cluster resources used to run the processing job.

        • InstanceCount (integer) --

          The number of ML compute instances to use in the model monitoring job. For distributed processing jobs, specify a value greater than 1. The default value is 1.

        • InstanceType (string) --

          The ML compute instance type for the processing job.

        • VolumeSizeInGB (integer) --

          The size of the ML storage volume, in gigabytes, that you want to provision. You must specify sufficient ML storage for your scenario.

        • VolumeKmsKeyId (string) --

          The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.

    • NetworkConfig (dict) --

      Networking options for a model quality job.

      • EnableInterContainerTrafficEncryption (boolean) --

        Whether to encrypt all communications between the instances used for the monitoring jobs. Choose True to encrypt communications. Encryption provides greater security for distributed jobs, but the processing might take longer.

      • EnableNetworkIsolation (boolean) --

        Whether to allow inbound and outbound network calls to and from the containers used for the monitoring job.

      • VpcConfig (dict) --

        Specifies a VPC that your training jobs and hosted models have access to. Control access to and from your training and model containers by configuring the VPC. For more information, see Protect Endpoints by Using an Amazon Virtual Private Cloud and Protect Training Jobs by Using an Amazon Virtual Private Cloud .

        • SecurityGroupIds (list) --

          The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field.

          • (string) --

        • Subnets (list) --

          The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones .

          • (string) --

    • RoleArn (string) --

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

    • StoppingCondition (dict) --

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

      • MaxRuntimeInSeconds (integer) --

        The maximum runtime allowed in seconds.

DeleteModelBiasJobDefinition (new) Link ¶

Deletes an Amazon SageMaker model bias job definition.

See also: AWS API Documentation

Request Syntax

client.delete_model_bias_job_definition(
    JobDefinitionName='string'
)
type JobDefinitionName

string

param JobDefinitionName

[REQUIRED]

The name of the model bias job definition to delete.

returns

None

DescribeModelExplainabilityJobDefinition (new) Link ¶

Returns a description of a model explainability job definition.

See also: AWS API Documentation

Request Syntax

client.describe_model_explainability_job_definition(
    JobDefinitionName='string'
)
type JobDefinitionName

string

param JobDefinitionName

[REQUIRED]

The name of the model explainability job definition. The name must be unique within an AWS Region in the AWS account.

rtype

dict

returns

Response Syntax

{
    'JobDefinitionArn': 'string',
    'JobDefinitionName': 'string',
    'CreationTime': datetime(2015, 1, 1),
    'ModelExplainabilityBaselineConfig': {
        'BaseliningJobName': 'string',
        'ConstraintsResource': {
            'S3Uri': 'string'
        }
    },
    'ModelExplainabilityAppSpecification': {
        'ImageUri': 'string',
        'ConfigUri': 'string',
        'Environment': {
            'string': 'string'
        }
    },
    'ModelExplainabilityJobInput': {
        'EndpointInput': {
            'EndpointName': 'string',
            'LocalPath': 'string',
            'S3InputMode': 'Pipe'|'File',
            'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
            'FeaturesAttribute': 'string',
            'InferenceAttribute': 'string',
            'ProbabilityAttribute': 'string',
            'ProbabilityThresholdAttribute': 123.0,
            'StartTimeOffset': 'string',
            'EndTimeOffset': 'string'
        }
    },
    'ModelExplainabilityJobOutputConfig': {
        'MonitoringOutputs': [
            {
                'S3Output': {
                    'S3Uri': 'string',
                    'LocalPath': 'string',
                    'S3UploadMode': 'Continuous'|'EndOfJob'
                }
            },
        ],
        'KmsKeyId': 'string'
    },
    'JobResources': {
        'ClusterConfig': {
            'InstanceCount': 123,
            'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
            'VolumeSizeInGB': 123,
            'VolumeKmsKeyId': 'string'
        }
    },
    'NetworkConfig': {
        'EnableInterContainerTrafficEncryption': True|False,
        'EnableNetworkIsolation': True|False,
        'VpcConfig': {
            'SecurityGroupIds': [
                'string',
            ],
            'Subnets': [
                'string',
            ]
        }
    },
    'RoleArn': 'string',
    'StoppingCondition': {
        'MaxRuntimeInSeconds': 123
    }
}

Response Structure

  • (dict) --

    • JobDefinitionArn (string) --

      The Amazon Resource Name (ARN) of the model explainability job.

    • JobDefinitionName (string) --

      The name of the explainability job definition. The name must be unique within an AWS Region in the AWS account.

    • CreationTime (datetime) --

      The time at which the model explainability job was created.

    • ModelExplainabilityBaselineConfig (dict) --

      The baseline configuration for a model explainability job.

      • BaseliningJobName (string) --

        The name of the baseline model explainability job.

      • ConstraintsResource (dict) --

        The constraints resource for a monitoring job.

        • S3Uri (string) --

          The Amazon S3 URI for the constraints resource.

    • ModelExplainabilityAppSpecification (dict) --

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

      • ImageUri (string) --

        The container image to be run by the model explainability job.

      • ConfigUri (string) --

        JSON formatted S3 file that defines explainability parameters. For more information on this JSON configuration file, see Configure model explainability parameters .

      • Environment (dict) --

        Sets the environment variables in the Docker container.

        • (string) --

          • (string) --

    • ModelExplainabilityJobInput (dict) --

      Inputs for the model explainability job.

      • EndpointInput (dict) --

        Input object for the endpoint

        • EndpointName (string) --

          An endpoint in customer's account which has enabled DataCaptureConfig enabled.

        • LocalPath (string) --

          Path to the filesystem where the endpoint data is available to the container.

        • S3InputMode (string) --

          Whether the Pipe or File is used as the input mode for transfering data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

        • S3DataDistributionType (string) --

          Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defauts to FullyReplicated

        • FeaturesAttribute (string) --

          The attributes of the input data that are the input features.

        • InferenceAttribute (string) --

          The attribute of the input data that represents the ground truth label.

        • ProbabilityAttribute (string) --

          In a classification problem, the attribute that represents the class probability.

        • ProbabilityThresholdAttribute (float) --

          The threshold for the class probability to be evaluated as a positive result.

        • StartTimeOffset (string) --

          If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs .

        • EndTimeOffset (string) --

          If specified, monitoring jobs substract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs .

    • ModelExplainabilityJobOutputConfig (dict) --

      The output configuration for monitoring jobs.

      • MonitoringOutputs (list) --

        Monitoring outputs for monitoring jobs. This is where the output of the periodic monitoring jobs is uploaded.

        • (dict) --

          The output object for a monitoring job.

          • S3Output (dict) --

            The Amazon S3 storage location where the results of a monitoring job are saved.

            • S3Uri (string) --

              A URI that identifies the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job.

            • LocalPath (string) --

              The local path to the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job. LocalPath is an absolute path for the output data.

            • S3UploadMode (string) --

              Whether to upload the results of the monitoring job continuously or after the job completes.

      • KmsKeyId (string) --

        The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.

    • JobResources (dict) --

      Identifies the resources to deploy for a monitoring job.

      • ClusterConfig (dict) --

        The configuration for the cluster resources used to run the processing job.

        • InstanceCount (integer) --

          The number of ML compute instances to use in the model monitoring job. For distributed processing jobs, specify a value greater than 1. The default value is 1.

        • InstanceType (string) --

          The ML compute instance type for the processing job.

        • VolumeSizeInGB (integer) --

          The size of the ML storage volume, in gigabytes, that you want to provision. You must specify sufficient ML storage for your scenario.

        • VolumeKmsKeyId (string) --

          The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.

    • NetworkConfig (dict) --

      Networking options for a model explainability job.

      • EnableInterContainerTrafficEncryption (boolean) --

        Whether to encrypt all communications between the instances used for the monitoring jobs. Choose True to encrypt communications. Encryption provides greater security for distributed jobs, but the processing might take longer.

      • EnableNetworkIsolation (boolean) --

        Whether to allow inbound and outbound network calls to and from the containers used for the monitoring job.

      • VpcConfig (dict) --

        Specifies a VPC that your training jobs and hosted models have access to. Control access to and from your training and model containers by configuring the VPC. For more information, see Protect Endpoints by Using an Amazon Virtual Private Cloud and Protect Training Jobs by Using an Amazon Virtual Private Cloud .

        • SecurityGroupIds (list) --

          The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field.

          • (string) --

        • Subnets (list) --

          The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones .

          • (string) --

    • RoleArn (string) --

      The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that has read permission to the input data location and write permission to the output data location in Amazon S3.

    • StoppingCondition (dict) --

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

      • MaxRuntimeInSeconds (integer) --

        The maximum runtime allowed in seconds.

DescribeDeviceFleet (new) Link ¶

A description of the fleet the device belongs to.

See also: AWS API Documentation

Request Syntax

client.describe_device_fleet(
    DeviceFleetName='string'
)
type DeviceFleetName

string

param DeviceFleetName

[REQUIRED]

The name of the fleet.

rtype

dict

returns

Response Syntax

{
    'DeviceFleetName': 'string',
    'DeviceFleetArn': 'string',
    'OutputConfig': {
        'S3OutputLocation': 'string',
        'KmsKeyId': 'string'
    },
    'Description': 'string',
    'CreationTime': datetime(2015, 1, 1),
    'LastModifiedTime': datetime(2015, 1, 1),
    'RoleArn': 'string',
    'IotRoleAlias': 'string'
}

Response Structure

  • (dict) --

    • DeviceFleetName (string) --

      The name of the fleet.

    • DeviceFleetArn (string) --

      The The Amazon Resource Name (ARN) of the fleet.

    • OutputConfig (dict) --

      The output configuration for storing sampled data.

      • S3OutputLocation (string) --

        The Amazon Simple Storage (S3) bucker URI.

      • KmsKeyId (string) --

        The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume after compilation job. If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account.

    • Description (string) --

      A description of the fleet.

    • CreationTime (datetime) --

      Timestamp of when the device fleet was created.

    • LastModifiedTime (datetime) --

      Timestamp of when the device fleet was last updated.

    • RoleArn (string) --

      The Amazon Resource Name (ARN) that has access to AWS Internet of Things (IoT).

    • IotRoleAlias (string) --

      The Amazon Resource Name (ARN) alias created in AWS Internet of Things (IoT).

DeleteDeviceFleet (new) Link ¶

Deletes a fleet.

See also: AWS API Documentation

Request Syntax

client.delete_device_fleet(
    DeviceFleetName='string'
)
type DeviceFleetName

string

param DeviceFleetName

[REQUIRED]

The name of the fleet to delete.

returns

None

ListDeviceFleets (new) Link ¶

Returns a list of devices in the fleet.

See also: AWS API Documentation

Request Syntax

client.list_device_fleets(
    NextToken='string',
    MaxResults=123,
    CreationTimeAfter=datetime(2015, 1, 1),
    CreationTimeBefore=datetime(2015, 1, 1),
    LastModifiedTimeAfter=datetime(2015, 1, 1),
    LastModifiedTimeBefore=datetime(2015, 1, 1),
    NameContains='string',
    SortBy='NAME'|'CREATION_TIME'|'LAST_MODIFIED_TIME',
    SortOrder='Ascending'|'Descending'
)
type NextToken

string

param NextToken

The response from the last list when returning a list large enough to need tokening.

type MaxResults

integer

param MaxResults

The maximum number of results to select.

type CreationTimeAfter

datetime

param CreationTimeAfter

Filter fleets where packaging job was created after specified time.

type CreationTimeBefore

datetime

param CreationTimeBefore

Filter fleets where the edge packaging job was created before specified time.

type LastModifiedTimeAfter

datetime

param LastModifiedTimeAfter

Select fleets where the job was updated after X

type LastModifiedTimeBefore

datetime

param LastModifiedTimeBefore

Select fleets where the job was updated before X

type NameContains

string

param NameContains

Filter for fleets containing this name in their fleet device name.

type SortBy

string

param SortBy

The column to sort by.

type SortOrder

string

param SortOrder

What direction to sort in.

rtype

dict

returns

Response Syntax

{
    'DeviceFleetSummaries': [
        {
            'DeviceFleetArn': 'string',
            'DeviceFleetName': 'string',
            'CreationTime': datetime(2015, 1, 1),
            'LastModifiedTime': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • DeviceFleetSummaries (list) --

      Summary of the device fleet.

      • (dict) --

        Summary of the device fleet.

        • DeviceFleetArn (string) --

          Amazon Resource Name (ARN) of the device fleet.

        • DeviceFleetName (string) --

          Name of the device fleet.

        • CreationTime (datetime) --

          Timestamp of when the device fleet was created.

        • LastModifiedTime (datetime) --

          Timestamp of when the device fleet was last updated.

    • NextToken (string) --

      The response from the last list when returning a list large enough to need tokening.

DescribeModelBiasJobDefinition (new) Link ¶

Returns a description of a model bias job definition.

See also: AWS API Documentation

Request Syntax

client.describe_model_bias_job_definition(
    JobDefinitionName='string'
)
type JobDefinitionName

string

param JobDefinitionName

[REQUIRED]

The name of the model bias job definition. The name must be unique within an AWS Region in the AWS account.

rtype

dict

returns

Response Syntax

{
    'JobDefinitionArn': 'string',
    'JobDefinitionName': 'string',
    'CreationTime': datetime(2015, 1, 1),
    'ModelBiasBaselineConfig': {
        'BaseliningJobName': 'string',
        'ConstraintsResource': {
            'S3Uri': 'string'
        }
    },
    'ModelBiasAppSpecification': {
        'ImageUri': 'string',
        'ConfigUri': 'string',
        'Environment': {
            'string': 'string'
        }
    },
    'ModelBiasJobInput': {
        'EndpointInput': {
            'EndpointName': 'string',
            'LocalPath': 'string',
            'S3InputMode': 'Pipe'|'File',
            'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
            'FeaturesAttribute': 'string',
            'InferenceAttribute': 'string',
            'ProbabilityAttribute': 'string',
            'ProbabilityThresholdAttribute': 123.0,
            'StartTimeOffset': 'string',
            'EndTimeOffset': 'string'
        },
        'GroundTruthS3Input': {
            'S3Uri': 'string'
        }
    },
    'ModelBiasJobOutputConfig': {
        'MonitoringOutputs': [
            {
                'S3Output': {
                    'S3Uri': 'string',
                    'LocalPath': 'string',
                    'S3UploadMode': 'Continuous'|'EndOfJob'
                }
            },
        ],
        'KmsKeyId': 'string'
    },
    'JobResources': {
        'ClusterConfig': {
            'InstanceCount': 123,
            'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
            'VolumeSizeInGB': 123,
            'VolumeKmsKeyId': 'string'
        }
    },
    'NetworkConfig': {
        'EnableInterContainerTrafficEncryption': True|False,
        'EnableNetworkIsolation': True|False,
        'VpcConfig': {
            'SecurityGroupIds': [
                'string',
            ],
            'Subnets': [
                'string',
            ]
        }
    },
    'RoleArn': 'string',
    'StoppingCondition': {
        'MaxRuntimeInSeconds': 123
    }
}

Response Structure

  • (dict) --

    • JobDefinitionArn (string) --

      The Amazon Resource Name (ARN) of the model bias job.

    • JobDefinitionName (string) --

      The name of the bias job definition. The name must be unique within an AWS Region in the AWS account.

    • CreationTime (datetime) --

      The time at which the model bias job was created.

    • ModelBiasBaselineConfig (dict) --

      The baseline configuration for a model bias job.

      • BaseliningJobName (string) --

        The name of the baseline model bias job.

      • ConstraintsResource (dict) --

        The constraints resource for a monitoring job.

        • S3Uri (string) --

          The Amazon S3 URI for the constraints resource.

    • ModelBiasAppSpecification (dict) --

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

      • ImageUri (string) --

        The container image to be run by the model bias job.

      • ConfigUri (string) --

        JSON formatted S3 file that defines bias parameters. For more information on this JSON configuration file, see Configure bias parameters .

      • Environment (dict) --

        Sets the environment variables in the Docker container.

        • (string) --

          • (string) --

    • ModelBiasJobInput (dict) --

      Inputs for the model bias job.

      • EndpointInput (dict) --

        Input object for the endpoint

        • EndpointName (string) --

          An endpoint in customer's account which has enabled DataCaptureConfig enabled.

        • LocalPath (string) --

          Path to the filesystem where the endpoint data is available to the container.

        • S3InputMode (string) --

          Whether the Pipe or File is used as the input mode for transfering data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

        • S3DataDistributionType (string) --

          Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defauts to FullyReplicated

        • FeaturesAttribute (string) --

          The attributes of the input data that are the input features.

        • InferenceAttribute (string) --

          The attribute of the input data that represents the ground truth label.

        • ProbabilityAttribute (string) --

          In a classification problem, the attribute that represents the class probability.

        • ProbabilityThresholdAttribute (float) --

          The threshold for the class probability to be evaluated as a positive result.

        • StartTimeOffset (string) --

          If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs .

        • EndTimeOffset (string) --

          If specified, monitoring jobs substract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs .

      • GroundTruthS3Input (dict) --

        Location of ground truth labels to use in model bias job.

        • S3Uri (string) --

          The address of the Amazon S3 location of the ground truth labels.

    • ModelBiasJobOutputConfig (dict) --

      The output configuration for monitoring jobs.

      • MonitoringOutputs (list) --

        Monitoring outputs for monitoring jobs. This is where the output of the periodic monitoring jobs is uploaded.

        • (dict) --

          The output object for a monitoring job.

          • S3Output (dict) --

            The Amazon S3 storage location where the results of a monitoring job are saved.

            • S3Uri (string) --

              A URI that identifies the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job.

            • LocalPath (string) --

              The local path to the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job. LocalPath is an absolute path for the output data.

            • S3UploadMode (string) --

              Whether to upload the results of the monitoring job continuously or after the job completes.

      • KmsKeyId (string) --

        The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.

    • JobResources (dict) --

      Identifies the resources to deploy for a monitoring job.

      • ClusterConfig (dict) --

        The configuration for the cluster resources used to run the processing job.

        • InstanceCount (integer) --

          The number of ML compute instances to use in the model monitoring job. For distributed processing jobs, specify a value greater than 1. The default value is 1.

        • InstanceType (string) --

          The ML compute instance type for the processing job.

        • VolumeSizeInGB (integer) --

          The size of the ML storage volume, in gigabytes, that you want to provision. You must specify sufficient ML storage for your scenario.

        • VolumeKmsKeyId (string) --

          The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.

    • NetworkConfig (dict) --

      Networking options for a model bias job.

      • EnableInterContainerTrafficEncryption (boolean) --

        Whether to encrypt all communications between the instances used for the monitoring jobs. Choose True to encrypt communications. Encryption provides greater security for distributed jobs, but the processing might take longer.

      • EnableNetworkIsolation (boolean) --

        Whether to allow inbound and outbound network calls to and from the containers used for the monitoring job.

      • VpcConfig (dict) --

        Specifies a VPC that your training jobs and hosted models have access to. Control access to and from your training and model containers by configuring the VPC. For more information, see Protect Endpoints by Using an Amazon Virtual Private Cloud and Protect Training Jobs by Using an Amazon Virtual Private Cloud .

        • SecurityGroupIds (list) --

          The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field.

          • (string) --

        • Subnets (list) --

          The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones .

          • (string) --

    • RoleArn (string) --

      The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that has read permission to the input data location and write permission to the output data location in Amazon S3.

    • StoppingCondition (dict) --

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

      • MaxRuntimeInSeconds (integer) --

        The maximum runtime allowed in seconds.

DescribeDevice (new) Link ¶

Describes the device.

See also: AWS API Documentation

Request Syntax

client.describe_device(
    NextToken='string',
    DeviceName='string',
    DeviceFleetName='string'
)
type NextToken

string

param NextToken

Next token of device description.

type DeviceName

string

param DeviceName

[REQUIRED]

The unique ID of the device.

type DeviceFleetName

string

param DeviceFleetName

[REQUIRED]

The name of the fleet the devices belong to.

rtype

dict

returns

Response Syntax

{
    'DeviceArn': 'string',
    'DeviceName': 'string',
    'Description': 'string',
    'DeviceFleetName': 'string',
    'IotThingName': 'string',
    'RegistrationTime': datetime(2015, 1, 1),
    'LatestHeartbeat': datetime(2015, 1, 1),
    'Models': [
        {
            'ModelName': 'string',
            'ModelVersion': 'string',
            'LatestSampleTime': datetime(2015, 1, 1),
            'LatestInference': datetime(2015, 1, 1)
        },
    ],
    'MaxModels': 123,
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • DeviceArn (string) --

      The Amazon Resource Name (ARN) of the device.

    • DeviceName (string) --

      The unique identifier of the device.

    • Description (string) --

      A description of the device.

    • DeviceFleetName (string) --

      The name of the fleet the device belongs to.

    • IotThingName (string) --

      The AWS Internet of Things (IoT) object thing name associated with the device.

    • RegistrationTime (datetime) --

      The timestamp of the last registration or de-reregistration.

    • LatestHeartbeat (datetime) --

      The last heartbeat received from the device.

    • Models (list) --

      Models on the device.

      • (dict) --

        The model on the edge device.

        • ModelName (string) --

          The name of the model.

        • ModelVersion (string) --

          The model version.

        • LatestSampleTime (datetime) --

          The timestamp of the last data sample taken.

        • LatestInference (datetime) --

          The timestamp of the last inference that was made.

    • MaxModels (integer) --

      The maximum number of models.

    • NextToken (string) --

      The response from the last list when returning a list large enough to need tokening.

ListModelQualityJobDefinitions (new) Link ¶

Gets a list of model quality monitoring job definitions in your account.

See also: AWS API Documentation

Request Syntax

client.list_model_quality_job_definitions(
    EndpointName='string',
    SortBy='Name'|'CreationTime',
    SortOrder='Ascending'|'Descending',
    NextToken='string',
    MaxResults=123,
    NameContains='string',
    CreationTimeBefore=datetime(2015, 1, 1),
    CreationTimeAfter=datetime(2015, 1, 1)
)
type EndpointName

string

param EndpointName

A filter that returns only model quality monitoring job definitions that are associated with the specified endpoint.

type SortBy

string

param SortBy

The field to sort results by. The default is CreationTime .

type SortOrder

string

param SortOrder

The sort order for results. The default is Descending .

type NextToken

string

param NextToken

If the result of the previous ListModelQualityJobDefinitions request was truncated, the response includes a NextToken . To retrieve the next set of model quality monitoring job definitions, use the token in the next request.

type MaxResults

integer

param MaxResults

The maximum number of results to return in a call to ListModelQualityJobDefinitions .

type NameContains

string

param NameContains

A string in the transform job name. This filter returns only model quality monitoring job definitions whose name contains the specified string.

type CreationTimeBefore

datetime

param CreationTimeBefore

A filter that returns only model quality monitoring job definitions created before the specified time.

type CreationTimeAfter

datetime

param CreationTimeAfter

A filter that returns only model quality monitoring job definitions created after the specified time.

rtype

dict

returns

Response Syntax

{
    'JobDefinitionSummaries': [
        {
            'MonitoringJobDefinitionName': 'string',
            'MonitoringJobDefinitionArn': 'string',
            'CreationTime': datetime(2015, 1, 1),
            'EndpointName': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • JobDefinitionSummaries (list) --

      A list of summaries of model quality monitoring job definitions.

      • (dict) --

        Summary information about a monitoring job.

        • MonitoringJobDefinitionName (string) --

          The name of the monitoring job.

        • MonitoringJobDefinitionArn (string) --

          The Amazon Resource Name (ARN) of the monitoring job.

        • CreationTime (datetime) --

          The time that the monitoring job was created.

        • EndpointName (string) --

          The name of the endpoint that the job monitors.

    • NextToken (string) --

      If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of model quality monitoring job definitions, use it in the next request.

UpdateDevices (new) Link ¶

Updates one or more devices in a fleet.

See also: AWS API Documentation

Request Syntax

client.update_devices(
    DeviceFleetName='string',
    Devices=[
        {
            'DeviceName': 'string',
            'Description': 'string',
            'IotThingName': 'string'
        },
    ]
)
type DeviceFleetName

string

param DeviceFleetName

[REQUIRED]

The name of the fleet the devices belong to.

type Devices

list

param Devices

[REQUIRED]

List of devices to register with Edge Manager agent.

  • (dict) --

    Information of a particular device.

    • DeviceName (string) -- [REQUIRED]

      The name of the device.

    • Description (string) --

      Description of the device.

    • IotThingName (string) --

      AWS Internet of Things (IoT) object name.

returns

None

DescribeEdgePackagingJob (new) Link ¶

A description of edge packaging jobs.

See also: AWS API Documentation

Request Syntax

client.describe_edge_packaging_job(
    EdgePackagingJobName='string'
)
type EdgePackagingJobName

string

param EdgePackagingJobName

[REQUIRED]

The name of the edge packaging job.

rtype

dict

returns

Response Syntax

{
    'EdgePackagingJobArn': 'string',
    'EdgePackagingJobName': 'string',
    'CompilationJobName': 'string',
    'ModelName': 'string',
    'ModelVersion': 'string',
    'RoleArn': 'string',
    'OutputConfig': {
        'S3OutputLocation': 'string',
        'KmsKeyId': 'string'
    },
    'ResourceKey': 'string',
    'EdgePackagingJobStatus': 'STARTING'|'INPROGRESS'|'COMPLETED'|'FAILED'|'STOPPING'|'STOPPED',
    'EdgePackagingJobStatusMessage': 'string',
    'CreationTime': datetime(2015, 1, 1),
    'LastModifiedTime': datetime(2015, 1, 1),
    'ModelArtifact': 'string',
    'ModelSignature': 'string'
}

Response Structure

  • (dict) --

    • EdgePackagingJobArn (string) --

      The Amazon Resource Name (ARN) of the edge packaging job.

    • EdgePackagingJobName (string) --

      The name of the edge packaging job.

    • CompilationJobName (string) --

      The name of the SageMaker Neo compilation job that is used to locate model artifacts that are being packaged.

    • ModelName (string) --

      The name of the model.

    • ModelVersion (string) --

      The version of the model.

    • RoleArn (string) --

      The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to download and upload the model, and to contact Neo.

    • OutputConfig (dict) --

      The output configuration for the edge packaging job.

      • S3OutputLocation (string) --

        The Amazon Simple Storage (S3) bucker URI.

      • KmsKeyId (string) --

        The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume after compilation job. If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account.

    • ResourceKey (string) --

      The CMK to use when encrypting the EBS volume the job run on.

    • EdgePackagingJobStatus (string) --

      The current status of the packaging job.

    • EdgePackagingJobStatusMessage (string) --

      Returns a message describing the job status and error messages.

    • CreationTime (datetime) --

      The timestamp of when the packaging job was created.

    • LastModifiedTime (datetime) --

      The timestamp of when the job was last updated.

    • ModelArtifact (string) --

      The Amazon Simple Storage (S3) URI where model artifacts ares stored.

    • ModelSignature (string) --

      The signature document of files in the model artifact.

DescribeDataQualityJobDefinition (new) Link ¶

Gets the details of a data quality monitoring job definition.

See also: AWS API Documentation

Request Syntax

client.describe_data_quality_job_definition(
    JobDefinitionName='string'
)
type JobDefinitionName

string

param JobDefinitionName

[REQUIRED]

The name of the data quality monitoring job definition to describe.

rtype

dict

returns

Response Syntax

{
    'JobDefinitionArn': 'string',
    'JobDefinitionName': 'string',
    'CreationTime': datetime(2015, 1, 1),
    'DataQualityBaselineConfig': {
        'BaseliningJobName': 'string',
        'ConstraintsResource': {
            'S3Uri': 'string'
        },
        'StatisticsResource': {
            'S3Uri': 'string'
        }
    },
    'DataQualityAppSpecification': {
        'ImageUri': 'string',
        'ContainerEntrypoint': [
            'string',
        ],
        'ContainerArguments': [
            'string',
        ],
        'RecordPreprocessorSourceUri': 'string',
        'PostAnalyticsProcessorSourceUri': 'string',
        'Environment': {
            'string': 'string'
        }
    },
    'DataQualityJobInput': {
        'EndpointInput': {
            'EndpointName': 'string',
            'LocalPath': 'string',
            'S3InputMode': 'Pipe'|'File',
            'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
            'FeaturesAttribute': 'string',
            'InferenceAttribute': 'string',
            'ProbabilityAttribute': 'string',
            'ProbabilityThresholdAttribute': 123.0,
            'StartTimeOffset': 'string',
            'EndTimeOffset': 'string'
        }
    },
    'DataQualityJobOutputConfig': {
        'MonitoringOutputs': [
            {
                'S3Output': {
                    'S3Uri': 'string',
                    'LocalPath': 'string',
                    'S3UploadMode': 'Continuous'|'EndOfJob'
                }
            },
        ],
        'KmsKeyId': 'string'
    },
    'JobResources': {
        'ClusterConfig': {
            'InstanceCount': 123,
            'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
            'VolumeSizeInGB': 123,
            'VolumeKmsKeyId': 'string'
        }
    },
    'NetworkConfig': {
        'EnableInterContainerTrafficEncryption': True|False,
        'EnableNetworkIsolation': True|False,
        'VpcConfig': {
            'SecurityGroupIds': [
                'string',
            ],
            'Subnets': [
                'string',
            ]
        }
    },
    'RoleArn': 'string',
    'StoppingCondition': {
        'MaxRuntimeInSeconds': 123
    }
}

Response Structure

  • (dict) --

    • JobDefinitionArn (string) --

      The Amazon Resource Name (ARN) of the data quality monitoring job definition.

    • JobDefinitionName (string) --

      The name of the data quality monitoring job definition.

    • CreationTime (datetime) --

      The time that the data quality monitoring job definition was created.

    • DataQualityBaselineConfig (dict) --

      The constraints and baselines for the data quality monitoring job definition.

      • BaseliningJobName (string) --

        The name of the job that performs baselining for the data quality monitoring job.

      • ConstraintsResource (dict) --

        The constraints resource for a monitoring job.

        • S3Uri (string) --

          The Amazon S3 URI for the constraints resource.

      • StatisticsResource (dict) --

        The statistics resource for a monitoring job.

        • S3Uri (string) --

          The Amazon S3 URI for the statistics resource.

    • DataQualityAppSpecification (dict) --

      Information about the container that runs the data quality monitoring job.

      • ImageUri (string) --

        The container image that the data quality monitoring job runs.

      • ContainerEntrypoint (list) --

        The entrypoint for a container used to run a monitoring job.

        • (string) --

      • ContainerArguments (list) --

        The arguments to send to the container that the monitoring job runs.

        • (string) --

      • RecordPreprocessorSourceUri (string) --

        An Amazon S3 URI to a script that is called per row prior to running analysis. It can base64 decode the payload and convert it into a flatted json so that the built-in container can use the converted data. Applicable only for the built-in (first party) containers.

      • PostAnalyticsProcessorSourceUri (string) --

        An Amazon S3 URI to a script that is called after analysis has been performed. Applicable only for the built-in (first party) containers.

      • Environment (dict) --

        Sets the environment variables in the container that the monitoring job runs.

        • (string) --

          • (string) --

    • DataQualityJobInput (dict) --

      The list of inputs for the data quality monitoring job. Currently endpoints are supported.

      • EndpointInput (dict) --

        Input object for the endpoint

        • EndpointName (string) --

          An endpoint in customer's account which has enabled DataCaptureConfig enabled.

        • LocalPath (string) --

          Path to the filesystem where the endpoint data is available to the container.

        • S3InputMode (string) --

          Whether the Pipe or File is used as the input mode for transfering data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

        • S3DataDistributionType (string) --

          Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defauts to FullyReplicated

        • FeaturesAttribute (string) --

          The attributes of the input data that are the input features.

        • InferenceAttribute (string) --

          The attribute of the input data that represents the ground truth label.

        • ProbabilityAttribute (string) --

          In a classification problem, the attribute that represents the class probability.

        • ProbabilityThresholdAttribute (float) --

          The threshold for the class probability to be evaluated as a positive result.

        • StartTimeOffset (string) --

          If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs .

        • EndTimeOffset (string) --

          If specified, monitoring jobs substract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs .

    • DataQualityJobOutputConfig (dict) --

      The output configuration for monitoring jobs.

      • MonitoringOutputs (list) --

        Monitoring outputs for monitoring jobs. This is where the output of the periodic monitoring jobs is uploaded.

        • (dict) --

          The output object for a monitoring job.

          • S3Output (dict) --

            The Amazon S3 storage location where the results of a monitoring job are saved.

            • S3Uri (string) --

              A URI that identifies the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job.

            • LocalPath (string) --

              The local path to the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job. LocalPath is an absolute path for the output data.

            • S3UploadMode (string) --

              Whether to upload the results of the monitoring job continuously or after the job completes.

      • KmsKeyId (string) --

        The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.

    • JobResources (dict) --

      Identifies the resources to deploy for a monitoring job.

      • ClusterConfig (dict) --

        The configuration for the cluster resources used to run the processing job.

        • InstanceCount (integer) --

          The number of ML compute instances to use in the model monitoring job. For distributed processing jobs, specify a value greater than 1. The default value is 1.

        • InstanceType (string) --

          The ML compute instance type for the processing job.

        • VolumeSizeInGB (integer) --

          The size of the ML storage volume, in gigabytes, that you want to provision. You must specify sufficient ML storage for your scenario.

        • VolumeKmsKeyId (string) --

          The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.

    • NetworkConfig (dict) --

      The networking configuration for the data quality monitoring job.

      • EnableInterContainerTrafficEncryption (boolean) --

        Whether to encrypt all communications between the instances used for the monitoring jobs. Choose True to encrypt communications. Encryption provides greater security for distributed jobs, but the processing might take longer.

      • EnableNetworkIsolation (boolean) --

        Whether to allow inbound and outbound network calls to and from the containers used for the monitoring job.

      • VpcConfig (dict) --

        Specifies a VPC that your training jobs and hosted models have access to. Control access to and from your training and model containers by configuring the VPC. For more information, see Protect Endpoints by Using an Amazon Virtual Private Cloud and Protect Training Jobs by Using an Amazon Virtual Private Cloud .

        • SecurityGroupIds (list) --

          The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field.

          • (string) --

        • Subnets (list) --

          The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones .

          • (string) --

    • RoleArn (string) --

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

    • StoppingCondition (dict) --

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

      • MaxRuntimeInSeconds (integer) --

        The maximum runtime allowed in seconds.

ListEdgePackagingJobs (new) Link ¶

Returns a list of edge packaging jobs.

See also: AWS API Documentation

Request Syntax

client.list_edge_packaging_jobs(
    NextToken='string',
    MaxResults=123,
    CreationTimeAfter=datetime(2015, 1, 1),
    CreationTimeBefore=datetime(2015, 1, 1),
    LastModifiedTimeAfter=datetime(2015, 1, 1),
    LastModifiedTimeBefore=datetime(2015, 1, 1),
    NameContains='string',
    ModelNameContains='string',
    StatusEquals='STARTING'|'INPROGRESS'|'COMPLETED'|'FAILED'|'STOPPING'|'STOPPED',
    SortBy='NAME'|'MODEL_NAME'|'CREATION_TIME'|'LAST_MODIFIED_TIME'|'STATUS',
    SortOrder='Ascending'|'Descending'
)
type NextToken

string

param NextToken

The response from the last list when returning a list large enough to need tokening.

type MaxResults

integer

param MaxResults

Maximum number of results to select.

type CreationTimeAfter

datetime

param CreationTimeAfter

Select jobs where the job was created after specified time.

type CreationTimeBefore

datetime

param CreationTimeBefore

Select jobs where the job was created before specified time.

type LastModifiedTimeAfter

datetime

param LastModifiedTimeAfter

Select jobs where the job was updated after specified time.

type LastModifiedTimeBefore

datetime

param LastModifiedTimeBefore

Select jobs where the job was updated before specified time.

type NameContains

string

param NameContains

Filter for jobs containing this name in their packaging job name.

type ModelNameContains

string

param ModelNameContains

Filter for jobs where the model name contains this string.

type StatusEquals

string

param StatusEquals

The job status to filter for.

type SortBy

string

param SortBy

Use to specify what column to sort by.

type SortOrder

string

param SortOrder

What direction to sort by.

rtype

dict

returns

Response Syntax

{
    'EdgePackagingJobSummaries': [
        {
            'EdgePackagingJobArn': 'string',
            'EdgePackagingJobName': 'string',
            'EdgePackagingJobStatus': 'STARTING'|'INPROGRESS'|'COMPLETED'|'FAILED'|'STOPPING'|'STOPPED',
            'CompilationJobName': 'string',
            'ModelName': 'string',
            'ModelVersion': 'string',
            'CreationTime': datetime(2015, 1, 1),
            'LastModifiedTime': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • EdgePackagingJobSummaries (list) --

      Summaries of edge packaging jobs.

      • (dict) --

        Summary of edge packaging job.

        • EdgePackagingJobArn (string) --

          The Amazon Resource Name (ARN) of the edge packaging job.

        • EdgePackagingJobName (string) --

          The name of the edge packaging job.

        • EdgePackagingJobStatus (string) --

          The status of the edge packaging job.

        • CompilationJobName (string) --

          The name of the SageMaker Neo compilation job.

        • ModelName (string) --

          The name of the model.

        • ModelVersion (string) --

          The version of the model.

        • CreationTime (datetime) --

          The timestamp of when the job was created.

        • LastModifiedTime (datetime) --

          The timestamp of when the edge packaging job was last updated.

    • NextToken (string) --

      Token to use when calling the next page of results.

CreateDeviceFleet (new) Link ¶

Creates a device fleet.

See also: AWS API Documentation

Request Syntax

client.create_device_fleet(
    DeviceFleetName='string',
    RoleArn='string',
    Description='string',
    OutputConfig={
        'S3OutputLocation': 'string',
        'KmsKeyId': 'string'
    },
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
type DeviceFleetName

string

param DeviceFleetName

[REQUIRED]

The name of the fleet that the device belongs to.

type RoleArn

string

param RoleArn

The Amazon Resource Name (ARN) that has access to AWS Internet of Things (IoT).

type Description

string

param Description

A description of the fleet.

type OutputConfig

dict

param OutputConfig

[REQUIRED]

The output configuration for storing sample data collected by the fleet.

  • S3OutputLocation (string) -- [REQUIRED]

    The Amazon Simple Storage (S3) bucker URI.

  • KmsKeyId (string) --

    The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume after compilation job. If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account.

type Tags

list

param Tags

Creates tags for the specified fleet.

  • (dict) --

    Describes a tag.

    • Key (string) -- [REQUIRED]

      The tag key.

    • Value (string) -- [REQUIRED]

      The tag value.

returns

None

CreateMonitoringSchedule (updated) Link ¶
Changes (request)
{'MonitoringScheduleConfig': {'MonitoringJobDefinition': {'BaselineConfig': {'BaseliningJobName': 'string'},
                                                          'MonitoringInputs': {'EndpointInput': {'EndTimeOffset': 'string',
                                                                                                 'FeaturesAttribute': 'string',
                                                                                                 'InferenceAttribute': 'string',
                                                                                                 'ProbabilityAttribute': 'string',
                                                                                                 'ProbabilityThresholdAttribute': 'double',
                                                                                                 'StartTimeOffset': 'string'}}},
                              'MonitoringJobDefinitionName': 'string',
                              'MonitoringType': 'DataQuality | ModelQuality | '
                                                'ModelBias | '
                                                'ModelExplainability'}}

Creates a schedule that regularly starts Amazon SageMaker Processing Jobs to monitor the data captured for an Amazon SageMaker Endoint.

See also: AWS API Documentation

Request Syntax

client.create_monitoring_schedule(
    MonitoringScheduleName='string',
    MonitoringScheduleConfig={
        'ScheduleConfig': {
            'ScheduleExpression': 'string'
        },
        'MonitoringJobDefinition': {
            'BaselineConfig': {
                'BaseliningJobName': 'string',
                'ConstraintsResource': {
                    'S3Uri': 'string'
                },
                'StatisticsResource': {
                    'S3Uri': 'string'
                }
            },
            'MonitoringInputs': [
                {
                    'EndpointInput': {
                        'EndpointName': 'string',
                        'LocalPath': 'string',
                        'S3InputMode': 'Pipe'|'File',
                        'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
                        'FeaturesAttribute': 'string',
                        'InferenceAttribute': 'string',
                        'ProbabilityAttribute': 'string',
                        'ProbabilityThresholdAttribute': 123.0,
                        'StartTimeOffset': 'string',
                        'EndTimeOffset': 'string'
                    }
                },
            ],
            'MonitoringOutputConfig': {
                'MonitoringOutputs': [
                    {
                        'S3Output': {
                            'S3Uri': 'string',
                            'LocalPath': 'string',
                            'S3UploadMode': 'Continuous'|'EndOfJob'
                        }
                    },
                ],
                'KmsKeyId': 'string'
            },
            'MonitoringResources': {
                'ClusterConfig': {
                    'InstanceCount': 123,
                    'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
                    'VolumeSizeInGB': 123,
                    'VolumeKmsKeyId': 'string'
                }
            },
            'MonitoringAppSpecification': {
                'ImageUri': 'string',
                'ContainerEntrypoint': [
                    'string',
                ],
                'ContainerArguments': [
                    'string',
                ],
                'RecordPreprocessorSourceUri': 'string',
                'PostAnalyticsProcessorSourceUri': 'string'
            },
            'StoppingCondition': {
                'MaxRuntimeInSeconds': 123
            },
            'Environment': {
                'string': 'string'
            },
            'NetworkConfig': {
                'EnableInterContainerTrafficEncryption': True|False,
                'EnableNetworkIsolation': True|False,
                'VpcConfig': {
                    'SecurityGroupIds': [
                        'string',
                    ],
                    'Subnets': [
                        'string',
                    ]
                }
            },
            'RoleArn': 'string'
        },
        'MonitoringJobDefinitionName': 'string',
        'MonitoringType': 'DataQuality'|'ModelQuality'|'ModelBias'|'ModelExplainability'
    },
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
type MonitoringScheduleName

string

param MonitoringScheduleName

[REQUIRED]

The name of the monitoring schedule. The name must be unique within an AWS Region within an AWS account.

type MonitoringScheduleConfig

dict

param MonitoringScheduleConfig

[REQUIRED]

The configuration object that specifies the monitoring schedule and defines the monitoring job.

  • ScheduleConfig (dict) --

    Configures the monitoring schedule.

    • ScheduleExpression (string) -- [REQUIRED]

      A cron expression that describes details about the monitoring schedule.

      Currently the only supported cron expressions are:

      • If you want to set the job to start every hour, please use the following: Hourly: cron(0 * ? * * *)

      • If you want to start the job daily: cron(0 [00-23] ? * * *)

      For example, the following are valid cron expressions:

      • Daily at noon UTC: cron(0 12 ? * * *)

      • Daily at midnight UTC: cron(0 0 ? * * *)

      To support running every 6, 12 hours, the following are also supported:

      cron(0 [00-23]/[01-24] ? * * *)

      For example, the following are valid cron expressions:

      • Every 12 hours, starting at 5pm UTC: cron(0 17/12 ? * * *)

      • Every two hours starting at midnight: cron(0 0/2 ? * * *)

      Note

      • Even though the cron expression is set to start at 5PM UTC, note that there could be a delay of 0-20 minutes from the actual requested time to run the execution.

      • We recommend that if you would like a daily schedule, you do not provide this parameter. Amazon SageMaker will pick a time for running every day.

  • MonitoringJobDefinition (dict) --

    Defines the monitoring job.

    • BaselineConfig (dict) --

      Baseline configuration used to validate that the data conforms to the specified constraints and statistics

      • BaseliningJobName (string) --

        The name of the job that performs baselining for the monitoring job.

      • ConstraintsResource (dict) --

        The baseline constraint file in Amazon S3 that the current monitoring job should validated against.

        • S3Uri (string) --

          The Amazon S3 URI for the constraints resource.

      • StatisticsResource (dict) --

        The baseline statistics file in Amazon S3 that the current monitoring job should be validated against.

        • S3Uri (string) --

          The Amazon S3 URI for the statistics resource.

    • MonitoringInputs (list) -- [REQUIRED]

      The array of inputs for the monitoring job. Currently we support monitoring an Amazon SageMaker Endpoint.

      • (dict) --

        The inputs for a monitoring job.

        • EndpointInput (dict) -- [REQUIRED]

          The endpoint for a monitoring job.

          • EndpointName (string) -- [REQUIRED]

            An endpoint in customer's account which has enabled DataCaptureConfig enabled.

          • LocalPath (string) -- [REQUIRED]

            Path to the filesystem where the endpoint data is available to the container.

          • S3InputMode (string) --

            Whether the Pipe or File is used as the input mode for transfering data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

          • S3DataDistributionType (string) --

            Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defauts to FullyReplicated

          • FeaturesAttribute (string) --

            The attributes of the input data that are the input features.

          • InferenceAttribute (string) --

            The attribute of the input data that represents the ground truth label.

          • ProbabilityAttribute (string) --

            In a classification problem, the attribute that represents the class probability.

          • ProbabilityThresholdAttribute (float) --

            The threshold for the class probability to be evaluated as a positive result.

          • StartTimeOffset (string) --

            If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs .

          • EndTimeOffset (string) --

            If specified, monitoring jobs substract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs .

    • MonitoringOutputConfig (dict) -- [REQUIRED]

      The array of outputs from the monitoring job to be uploaded to Amazon Simple Storage Service (Amazon S3).

      • MonitoringOutputs (list) -- [REQUIRED]

        Monitoring outputs for monitoring jobs. This is where the output of the periodic monitoring jobs is uploaded.

        • (dict) --

          The output object for a monitoring job.

          • S3Output (dict) -- [REQUIRED]

            The Amazon S3 storage location where the results of a monitoring job are saved.

            • S3Uri (string) -- [REQUIRED]

              A URI that identifies the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job.

            • LocalPath (string) -- [REQUIRED]

              The local path to the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job. LocalPath is an absolute path for the output data.

            • S3UploadMode (string) --

              Whether to upload the results of the monitoring job continuously or after the job completes.

      • KmsKeyId (string) --

        The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.

    • MonitoringResources (dict) -- [REQUIRED]

      Identifies the resources, ML compute instances, and ML storage volumes to deploy for a monitoring job. In distributed processing, you specify more than one instance.

      • ClusterConfig (dict) -- [REQUIRED]

        The configuration for the cluster resources used to run the processing job.

        • InstanceCount (integer) -- [REQUIRED]

          The number of ML compute instances to use in the model monitoring job. For distributed processing jobs, specify a value greater than 1. The default value is 1.

        • InstanceType (string) -- [REQUIRED]

          The ML compute instance type for the processing job.

        • VolumeSizeInGB (integer) -- [REQUIRED]

          The size of the ML storage volume, in gigabytes, that you want to provision. You must specify sufficient ML storage for your scenario.

        • VolumeKmsKeyId (string) --

          The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.

    • MonitoringAppSpecification (dict) -- [REQUIRED]

      Configures the monitoring job to run a specified Docker container image.

      • ImageUri (string) -- [REQUIRED]

        The container image to be run by the monitoring job.

      • ContainerEntrypoint (list) --

        Specifies the entrypoint for a container used to run the monitoring job.

        • (string) --

      • ContainerArguments (list) --

        An array of arguments for the container used to run the monitoring job.

        • (string) --

      • RecordPreprocessorSourceUri (string) --

        An Amazon S3 URI to a script that is called per row prior to running analysis. It can base64 decode the payload and convert it into a flatted json so that the built-in container can use the converted data. Applicable only for the built-in (first party) containers.

      • PostAnalyticsProcessorSourceUri (string) --

        An Amazon S3 URI to a script that is called after analysis has been performed. Applicable only for the built-in (first party) containers.

    • StoppingCondition (dict) --

      Specifies a time limit for how long the monitoring job is allowed to run.

      • MaxRuntimeInSeconds (integer) -- [REQUIRED]

        The maximum runtime allowed in seconds.

    • Environment (dict) --

      Sets the environment variables in the Docker container.

      • (string) --

        • (string) --

    • NetworkConfig (dict) --

      Specifies networking options for an monitoring job.

      • EnableInterContainerTrafficEncryption (boolean) --

        Whether to encrypt all communications between distributed processing jobs. Choose True to encrypt communications. Encryption provides greater security for distributed processing jobs, but the processing might take longer.

      • EnableNetworkIsolation (boolean) --

        Whether to allow inbound and outbound network calls to and from the containers used for the processing job.

      • VpcConfig (dict) --

        Specifies a VPC that your training jobs and hosted models have access to. Control access to and from your training and model containers by configuring the VPC. For more information, see Protect Endpoints by Using an Amazon Virtual Private Cloud and Protect Training Jobs by Using an Amazon Virtual Private Cloud .

        • SecurityGroupIds (list) -- [REQUIRED]

          The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field.

          • (string) --

        • Subnets (list) -- [REQUIRED]

          The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones .

          • (string) --

    • RoleArn (string) -- [REQUIRED]

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

  • MonitoringJobDefinitionName (string) --

    The name of the monitoring job definition to schedule.

  • MonitoringType (string) --

    The type of the monitoring job definition to schedule.

type Tags

list

param Tags

(Optional) An array of key-value pairs. For more information, see `Using Cost Allocation Tags < https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-whatURL>`__ in the AWS Billing and Cost Management User Guide .

  • (dict) --

    Describes a tag.

    • Key (string) -- [REQUIRED]

      The tag key.

    • Value (string) -- [REQUIRED]

      The tag value.

rtype

dict

returns

Response Syntax

{
    'MonitoringScheduleArn': 'string'
}

Response Structure

  • (dict) --

    • MonitoringScheduleArn (string) --

      The Amazon Resource Name (ARN) of the monitoring schedule.

CreateTrainingJob (updated) Link ¶
Changes (request)
{'ProfilerConfig': {'ProfilingIntervalInMilliseconds': 'long',
                    'ProfilingParameters': {'string': 'string'},
                    'S3OutputPath': 'string'},
 'ProfilerRuleConfigurations': [{'InstanceType': 'ml.t3.medium | ml.t3.large | '
                                                 'ml.t3.xlarge | ml.t3.2xlarge '
                                                 '| ml.m4.xlarge | '
                                                 'ml.m4.2xlarge | '
                                                 'ml.m4.4xlarge | '
                                                 'ml.m4.10xlarge | '
                                                 'ml.m4.16xlarge | '
                                                 'ml.c4.xlarge | ml.c4.2xlarge '
                                                 '| ml.c4.4xlarge | '
                                                 'ml.c4.8xlarge | ml.p2.xlarge '
                                                 '| ml.p2.8xlarge | '
                                                 'ml.p2.16xlarge | '
                                                 'ml.p3.2xlarge | '
                                                 'ml.p3.8xlarge | '
                                                 'ml.p3.16xlarge | '
                                                 'ml.c5.xlarge | ml.c5.2xlarge '
                                                 '| ml.c5.4xlarge | '
                                                 'ml.c5.9xlarge | '
                                                 'ml.c5.18xlarge | ml.m5.large '
                                                 '| ml.m5.xlarge | '
                                                 'ml.m5.2xlarge | '
                                                 'ml.m5.4xlarge | '
                                                 'ml.m5.12xlarge | '
                                                 'ml.m5.24xlarge | ml.r5.large '
                                                 '| ml.r5.xlarge | '
                                                 'ml.r5.2xlarge | '
                                                 'ml.r5.4xlarge | '
                                                 'ml.r5.8xlarge | '
                                                 'ml.r5.12xlarge | '
                                                 'ml.r5.16xlarge | '
                                                 'ml.r5.24xlarge',
                                 'LocalPath': 'string',
                                 'RuleConfigurationName': 'string',
                                 'RuleEvaluatorImage': 'string',
                                 'RuleParameters': {'string': 'string'},
                                 'S3OutputPath': 'string',
                                 'VolumeSizeInGB': 'integer'}]}

Starts a model training job. After training completes, Amazon SageMaker saves the resulting model artifacts to an Amazon S3 location that you specify.

If you choose to host your model using Amazon SageMaker hosting services, you can use the resulting model artifacts as part of the model. You can also use the artifacts in a machine learning service other than Amazon SageMaker, provided that you know how to use them for inference.

In the request body, you provide the following:

  • AlgorithmSpecification - Identifies the training algorithm to use.

  • HyperParameters - Specify these algorithm-specific parameters to enable the estimation of model parameters during training. Hyperparameters can be tuned to optimize this learning process. For a list of hyperparameters for each training algorithm provided by Amazon SageMaker, see Algorithms .

  • InputDataConfig - Describes the training dataset and the Amazon S3, EFS, or FSx location where it is stored.

  • OutputDataConfig - Identifies the Amazon S3 bucket where you want Amazon SageMaker to save the results of model training.

  • ResourceConfig - Identifies the resources, ML compute instances, and ML storage volumes to deploy for model training. In distributed training, you specify more than one instance.

  • EnableManagedSpotTraining - Optimize the cost of training machine learning models by up to 80% by using Amazon EC2 Spot instances. For more information, see Managed Spot Training .

  • RoleArn - The Amazon Resource Number (ARN) that Amazon SageMaker assumes to perform tasks on your behalf during model training. You must grant this role the necessary permissions so that Amazon SageMaker can successfully complete model training.

  • StoppingCondition - To help cap training costs, use MaxRuntimeInSeconds to set a time limit for training. Use MaxWaitTimeInSeconds to specify how long you are willing to wait for a managed spot training job to complete.

For more information about Amazon SageMaker, see How It Works .

See also: AWS API Documentation

Request Syntax

client.create_training_job(
    TrainingJobName='string',
    HyperParameters={
        'string': 'string'
    },
    AlgorithmSpecification={
        'TrainingImage': 'string',
        'AlgorithmName': 'string',
        'TrainingInputMode': 'Pipe'|'File',
        'MetricDefinitions': [
            {
                'Name': 'string',
                'Regex': 'string'
            },
        ],
        'EnableSageMakerMetricsTimeSeries': True|False
    },
    RoleArn='string',
    InputDataConfig=[
        {
            'ChannelName': 'string',
            'DataSource': {
                'S3DataSource': {
                    'S3DataType': 'ManifestFile'|'S3Prefix'|'AugmentedManifestFile',
                    'S3Uri': 'string',
                    'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
                    'AttributeNames': [
                        'string',
                    ]
                },
                'FileSystemDataSource': {
                    'FileSystemId': 'string',
                    'FileSystemAccessMode': 'rw'|'ro',
                    'FileSystemType': 'EFS'|'FSxLustre',
                    'DirectoryPath': 'string'
                }
            },
            'ContentType': 'string',
            'CompressionType': 'None'|'Gzip',
            'RecordWrapperType': 'None'|'RecordIO',
            'InputMode': 'Pipe'|'File',
            'ShuffleConfig': {
                'Seed': 123
            }
        },
    ],
    OutputDataConfig={
        'KmsKeyId': 'string',
        'S3OutputPath': 'string'
    },
    ResourceConfig={
        'InstanceType': 'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.p3dn.24xlarge'|'ml.p4d.24xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5n.xlarge'|'ml.c5n.2xlarge'|'ml.c5n.4xlarge'|'ml.c5n.9xlarge'|'ml.c5n.18xlarge',
        'InstanceCount': 123,
        'VolumeSizeInGB': 123,
        'VolumeKmsKeyId': 'string'
    },
    VpcConfig={
        'SecurityGroupIds': [
            'string',
        ],
        'Subnets': [
            'string',
        ]
    },
    StoppingCondition={
        'MaxRuntimeInSeconds': 123,
        'MaxWaitTimeInSeconds': 123
    },
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ],
    EnableNetworkIsolation=True|False,
    EnableInterContainerTrafficEncryption=True|False,
    EnableManagedSpotTraining=True|False,
    CheckpointConfig={
        'S3Uri': 'string',
        'LocalPath': 'string'
    },
    DebugHookConfig={
        'LocalPath': 'string',
        'S3OutputPath': 'string',
        'HookParameters': {
            'string': 'string'
        },
        'CollectionConfigurations': [
            {
                'CollectionName': 'string',
                'CollectionParameters': {
                    'string': 'string'
                }
            },
        ]
    },
    DebugRuleConfigurations=[
        {
            'RuleConfigurationName': 'string',
            'LocalPath': 'string',
            'S3OutputPath': 'string',
            'RuleEvaluatorImage': 'string',
            'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
            'VolumeSizeInGB': 123,
            'RuleParameters': {
                'string': 'string'
            }
        },
    ],
    TensorBoardOutputConfig={
        'LocalPath': 'string',
        'S3OutputPath': 'string'
    },
    ExperimentConfig={
        'ExperimentName': 'string',
        'TrialName': 'string',
        'TrialComponentDisplayName': 'string'
    },
    ProfilerConfig={
        'S3OutputPath': 'string',
        'ProfilingIntervalInMilliseconds': 123,
        'ProfilingParameters': {
            'string': 'string'
        }
    },
    ProfilerRuleConfigurations=[
        {
            'RuleConfigurationName': 'string',
            'LocalPath': 'string',
            'S3OutputPath': 'string',
            'RuleEvaluatorImage': 'string',
            'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
            'VolumeSizeInGB': 123,
            'RuleParameters': {
                'string': 'string'
            }
        },
    ]
)
type TrainingJobName

string

param TrainingJobName

[REQUIRED]

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

type HyperParameters

dict

param HyperParameters

Algorithm-specific parameters that influence the quality of the model. You set hyperparameters before you start the learning process. For a list of hyperparameters for each training algorithm provided by Amazon SageMaker, see Algorithms .

You can specify a maximum of 100 hyperparameters. Each hyperparameter is a key-value pair. Each key and value is limited to 256 characters, as specified by the Length Constraint .

  • (string) --

    • (string) --

type AlgorithmSpecification

dict

param AlgorithmSpecification

[REQUIRED]

The registry path of the Docker image that contains the training algorithm and algorithm-specific metadata, including the input mode. For more information about algorithms provided by Amazon SageMaker, see Algorithms . For information about providing your own algorithms, see Using Your Own Algorithms with Amazon SageMaker .

  • TrainingImage (string) --

    The registry path of the Docker image that contains the training algorithm. For information about docker registry paths for built-in algorithms, see Algorithms Provided by Amazon SageMaker: Common Parameters . Amazon SageMaker supports both registry/repository[:tag] and registry/repository[@digest] image path formats. For more information, see Using Your Own Algorithms with Amazon SageMaker .

  • AlgorithmName (string) --

    The name of the algorithm resource to use for the training job. This must be an algorithm resource that you created or subscribe to on AWS Marketplace. If you specify a value for this parameter, you can't specify a value for TrainingImage .

  • TrainingInputMode (string) -- [REQUIRED]

    The input mode that the algorithm supports. For the input modes that Amazon SageMaker algorithms support, see Algorithms . If an algorithm supports the File input mode, Amazon SageMaker downloads the training data from S3 to the provisioned ML storage Volume, and mounts the directory to docker volume for training container. If an algorithm supports the Pipe input mode, Amazon SageMaker streams data directly from S3 to the container.

    In File mode, make sure you provision ML storage volume with sufficient capacity to accommodate the data download from S3. In addition to the training data, the ML storage volume also stores the output model. The algorithm container use ML storage volume to also store intermediate information, if any.

    For distributed algorithms using File mode, training data is distributed uniformly, and your training duration is predictable if the input data objects size is approximately same. Amazon SageMaker does not split the files any further for model training. If the object sizes are skewed, training won't be optimal as the data distribution is also skewed where one host in a training cluster is overloaded, thus becoming bottleneck in training.

  • MetricDefinitions (list) --

    A list of metric definition objects. Each object specifies the metric name and regular expressions used to parse algorithm logs. Amazon SageMaker publishes each metric to Amazon CloudWatch.

    • (dict) --

      Specifies a metric that the training algorithm writes to stderr or stdout . Amazon SageMakerhyperparameter tuning captures all defined metrics. You specify one metric that a hyperparameter tuning job uses as its objective metric to choose the best training job.

      • Name (string) -- [REQUIRED]

        The name of the metric.

      • Regex (string) -- [REQUIRED]

        A regular expression that searches the output of a training job and gets the value of the metric. For more information about using regular expressions to define metrics, see Defining Objective Metrics .

  • EnableSageMakerMetricsTimeSeries (boolean) --

    To generate and save time-series metrics during training, set to true . The default is false and time-series metrics aren't generated except in the following cases:

    • You use one of the Amazon SageMaker built-in algorithms

    • You use one of the following Prebuilt Amazon SageMaker Docker Images :

      • Tensorflow (version >= 1.15)

      • MXNet (version >= 1.6)

      • PyTorch (version >= 1.3)

    • You specify at least one MetricDefinition

type RoleArn

string

param RoleArn

[REQUIRED]

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

During model training, Amazon SageMaker needs your permission to read input data from an S3 bucket, download a Docker image that contains training code, write model artifacts to an S3 bucket, write logs to Amazon CloudWatch Logs, and publish metrics to Amazon CloudWatch. You grant permissions for all of these tasks to an IAM role. For more information, see Amazon SageMaker Roles .

Note

To be able to pass this role to Amazon SageMaker, the caller of this API must have the iam:PassRole permission.

type InputDataConfig

list

param InputDataConfig

An array of Channel objects. Each channel is a named input source. InputDataConfig describes the input data and its location.

Algorithms can accept input data from one or more channels. For example, an algorithm might have two channels of input data, training_data and validation_data . The configuration for each channel provides the S3, EFS, or FSx location where the input data is stored. It also provides information about the stored data: the MIME type, compression method, and whether the data is wrapped in RecordIO format.

Depending on the input mode that the algorithm supports, Amazon SageMaker either copies input data files from an S3 bucket to a local directory in the Docker container, or makes it available as input streams. For example, if you specify an EFS location, input data files will be made available as input streams. They do not need to be downloaded.

  • (dict) --

    A channel is a named input source that training algorithms can consume.

    • ChannelName (string) -- [REQUIRED]

      The name of the channel.

    • DataSource (dict) -- [REQUIRED]

      The location of the channel data.

      • S3DataSource (dict) --

        The S3 location of the data source that is associated with a channel.

        • S3DataType (string) -- [REQUIRED]

          If you choose S3Prefix , S3Uri identifies a key name prefix. Amazon SageMaker uses all objects that match the specified key name prefix for model training.

          If you choose ManifestFile , S3Uri identifies an object that is a manifest file containing a list of object keys that you want Amazon SageMaker to use for model training.

          If you choose AugmentedManifestFile , S3Uri identifies an object that is an augmented manifest file in JSON lines format. This file contains the data you want to use for model training. AugmentedManifestFile can only be used if the Channel's input mode is Pipe .

        • S3Uri (string) -- [REQUIRED]

          Depending on the value specified for the S3DataType , identifies either a key name prefix or a manifest. For example:

          • A key name prefix might look like this: s3://bucketname/exampleprefix

          • A manifest might look like this: s3://bucketname/example.manifest A manifest is an S3 object which is a JSON file consisting of an array of elements. The first element is a prefix which is followed by one or more suffixes. SageMaker appends the suffix elements to the prefix to get a full set of S3Uri . Note that the prefix must be a valid non-empty S3Uri that precludes users from specifying a manifest whose individual S3Uri is sourced from different S3 buckets. The following code example shows a valid manifest format: [ {"prefix": "s3://customer_bucket/some/prefix/"}, "relative/path/to/custdata-1", "relative/path/custdata-2", ... "relative/path/custdata-N" ] This JSON is equivalent to the following S3Uri list: s3://customer_bucket/some/prefix/relative/path/to/custdata-1 s3://customer_bucket/some/prefix/relative/path/custdata-2 ... s3://customer_bucket/some/prefix/relative/path/custdata-N The complete set of S3Uri in this manifest is the input data for the channel for this data source. The object that each S3Uri points to must be readable by the IAM role that Amazon SageMaker uses to perform tasks on your behalf.

        • S3DataDistributionType (string) --

          If you want Amazon SageMaker to replicate the entire dataset on each ML compute instance that is launched for model training, specify FullyReplicated .

          If you want Amazon SageMaker to replicate a subset of data on each ML compute instance that is launched for model training, specify ShardedByS3Key . If there are n ML compute instances launched for a training job, each instance gets approximately 1/n of the number of S3 objects. In this case, model training on each machine uses only the subset of training data.

          Don't choose more ML compute instances for training than available S3 objects. If you do, some nodes won't get any data and you will pay for nodes that aren't getting any training data. This applies in both File and Pipe modes. Keep this in mind when developing algorithms.

          In distributed training, where you use multiple ML compute EC2 instances, you might choose ShardedByS3Key . If the algorithm requires copying training data to the ML storage volume (when TrainingInputMode is set to File ), this copies 1/n of the number of objects.

        • AttributeNames (list) --

          A list of one or more attribute names to use that are found in a specified augmented manifest file.

          • (string) --

      • FileSystemDataSource (dict) --

        The file system that is associated with a channel.

        • FileSystemId (string) -- [REQUIRED]

          The file system id.

        • FileSystemAccessMode (string) -- [REQUIRED]

          The access mode of the mount of the directory associated with the channel. A directory can be mounted either in ro (read-only) or rw (read-write) mode.

        • FileSystemType (string) -- [REQUIRED]

          The file system type.

        • DirectoryPath (string) -- [REQUIRED]

          The full path to the directory to associate with the channel.

    • ContentType (string) --

      The MIME type of the data.

    • CompressionType (string) --

      If training data is compressed, the compression type. The default value is None . CompressionType is used only in Pipe input mode. In File mode, leave this field unset or set it to None.

    • RecordWrapperType (string) --

      Specify RecordIO as the value when input data is in raw format but the training algorithm requires the RecordIO format. In this case, Amazon SageMaker wraps each individual S3 object in a RecordIO record. If the input data is already in RecordIO format, you don't need to set this attribute. For more information, see Create a Dataset Using RecordIO .

      In File mode, leave this field unset or set it to None.

    • InputMode (string) --

      (Optional) The input mode to use for the data channel in a training job. If you don't set a value for InputMode , Amazon SageMaker uses the value set for TrainingInputMode . Use this parameter to override the TrainingInputMode setting in a AlgorithmSpecification request when you have a channel that needs a different input mode from the training job's general setting. To download the data from Amazon Simple Storage Service (Amazon S3) to the provisioned ML storage volume, and mount the directory to a Docker volume, use File input mode. To stream data directly from Amazon S3 to the container, choose Pipe input mode.

      To use a model for incremental training, choose File input model.

    • ShuffleConfig (dict) --

      A configuration for a shuffle option for input data in a channel. If you use S3Prefix for S3DataType , this shuffles the results of the S3 key prefix matches. If you use ManifestFile , the order of the S3 object references in the ManifestFile is shuffled. If you use AugmentedManifestFile , the order of the JSON lines in the AugmentedManifestFile is shuffled. The shuffling order is determined using the Seed value.

      For Pipe input mode, shuffling is done at the start of every epoch. With large datasets this ensures that the order of the training data is different for each epoch, it helps reduce bias and possible overfitting. In a multi-node training job when ShuffleConfig is combined with S3DataDistributionType of ShardedByS3Key , the data is shuffled across nodes so that the content sent to a particular node on the first epoch might be sent to a different node on the second epoch.

      • Seed (integer) -- [REQUIRED]

        Determines the shuffling order in ShuffleConfig value.

type OutputDataConfig

dict

param OutputDataConfig

[REQUIRED]

Specifies the path to the S3 location where you want to store model artifacts. Amazon SageMaker creates subfolders for the artifacts.

  • KmsKeyId (string) --

    The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption. 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:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

    • // KMS Key Alias "alias/ExampleAlias"

    • // Amazon Resource Name (ARN) of a KMS Key Alias "arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"

    If you use a KMS key ID or an alias of your master key, the Amazon SageMaker execution role must include permissions to call kms:Encrypt . If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account. Amazon SageMaker uses server-side encryption with KMS-managed keys for OutputDataConfig . If you use a bucket policy with an s3:PutObject permission that only allows objects with server-side encryption, set the condition key of s3:x-amz-server-side-encryption to "aws:kms" . For more information, see KMS-Managed Encryption Keys in the Amazon Simple Storage Service Developer Guide.

    The KMS key policy must grant permission to the IAM role that you specify in your CreateTrainingJob , CreateTransformJob , or CreateHyperParameterTuningJob requests. For more information, see Using Key Policies in AWS KMS in the AWS Key Management Service Developer Guide .

  • S3OutputPath (string) -- [REQUIRED]

    Identifies the S3 path where you want Amazon SageMaker to store the model artifacts. For example, s3://bucket-name/key-name-prefix .

type ResourceConfig

dict

param ResourceConfig

[REQUIRED]

The resources, including the ML compute instances and ML storage volumes, to use for model training.

ML storage volumes store model artifacts and incremental states. Training algorithms might also use ML storage volumes for scratch space. If you want Amazon SageMaker to use the ML storage volume to store the training data, choose File as the TrainingInputMode in the algorithm specification. For distributed training algorithms, specify an instance count greater than 1.

  • InstanceType (string) -- [REQUIRED]

    The ML compute instance type.

  • InstanceCount (integer) -- [REQUIRED]

    The number of ML compute instances to use. For distributed training, provide a value greater than 1.

  • VolumeSizeInGB (integer) -- [REQUIRED]

    The size of the ML storage volume that you want to provision.

    ML storage volumes store model artifacts and incremental states. Training algorithms might also use the ML storage volume for scratch space. If you want to store the training data in the ML storage volume, choose File as the TrainingInputMode in the algorithm specification.

    You must specify sufficient ML storage for your scenario.

    Note

    Amazon SageMaker supports only the General Purpose SSD (gp2) ML storage volume type.

    Note

    Certain Nitro-based instances include local storage with a fixed total size, dependent on the instance type. When using these instances for training, Amazon SageMaker mounts the local instance storage instead of Amazon EBS gp2 storage. You can't request a VolumeSizeInGB greater than the total size of the local instance storage.

    For a list of instance types that support local instance storage, including the total size per instance type, see Instance Store Volumes .

  • VolumeKmsKeyId (string) --

    The AWS KMS key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the training job.

    Note

    Certain Nitro-based instances include local storage, dependent on the instance type. Local storage volumes are encrypted using a hardware module on the instance. You can't request a VolumeKmsKeyId when using an instance type with local storage.

    For a list of instance types that support local instance storage, see Instance Store Volumes .

    For more information about local instance storage encryption, see SSD Instance Store Volumes .

    The VolumeKmsKeyId can be in any of the following formats:

    • // KMS Key ID "1234abcd-12ab-34cd-56ef-1234567890ab"

    • // Amazon Resource Name (ARN) of a KMS Key "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

type VpcConfig

dict

param VpcConfig

A VpcConfig object that specifies the VPC that you want your training job to connect to. Control access to and from your training container by configuring the VPC. For more information, see Protect Training Jobs by Using an Amazon Virtual Private Cloud .

  • SecurityGroupIds (list) -- [REQUIRED]

    The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field.

    • (string) --

  • Subnets (list) -- [REQUIRED]

    The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones .

    • (string) --

type StoppingCondition

dict

param StoppingCondition

[REQUIRED]

Specifies a limit to how long a model training job can run. When the job reaches the time limit, Amazon SageMaker ends the training job. Use this API to cap model training costs.

To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which delays job termination for 120 seconds. Algorithms can use this 120-second window to save the model artifacts, so the results of training are not lost.

  • MaxRuntimeInSeconds (integer) --

    The maximum length of time, in seconds, that the training or compilation job can run. If job does not complete during this time, Amazon SageMaker ends the job. If value is not specified, default value is 1 day. The maximum value is 28 days.

  • MaxWaitTimeInSeconds (integer) --

    The maximum length of time, in seconds, how long you are willing to wait for a managed spot training job to complete. It is the amount of time spent waiting for Spot capacity plus the amount of time the training job runs. It must be equal to or greater than MaxRuntimeInSeconds .

type Tags

list

param Tags

An array of key-value pairs. You can use tags to categorize your AWS resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging AWS Resources .

  • (dict) --

    Describes a tag.

    • Key (string) -- [REQUIRED]

      The tag key.

    • Value (string) -- [REQUIRED]

      The tag value.

type EnableNetworkIsolation

boolean

param EnableNetworkIsolation

Isolates the training container. No inbound or outbound network calls can be made, except for calls between peers within a training cluster for distributed training. If you enable network isolation for training jobs that are configured to use a VPC, Amazon SageMaker downloads and uploads customer data and model artifacts through the specified VPC, but the training container does not have network access.

type EnableInterContainerTrafficEncryption

boolean

param EnableInterContainerTrafficEncryption

To encrypt all communications between ML compute instances in distributed training, choose True . Encryption provides greater security for distributed training, but training might take longer. How long it takes depends on the amount of communication between compute instances, especially if you use a deep learning algorithm in distributed training. For more information, see Protect Communications Between ML Compute Instances in a Distributed Training Job .

type EnableManagedSpotTraining

boolean

param EnableManagedSpotTraining

To train models using managed spot training, choose True . Managed spot training provides a fully managed and scalable infrastructure for training machine learning models. this option is useful when training jobs can be interrupted and when there is flexibility when the training job is run.

The complete and intermediate results of jobs are stored in an Amazon S3 bucket, and can be used as a starting point to train models incrementally. Amazon SageMaker provides metrics and logs in CloudWatch. They can be used to see when managed spot training jobs are running, interrupted, resumed, or completed.

type CheckpointConfig

dict

param CheckpointConfig

Contains information about the output location for managed spot training checkpoint data.

  • S3Uri (string) -- [REQUIRED]

    Identifies the S3 path where you want Amazon SageMaker to store checkpoints. For example, s3://bucket-name/key-name-prefix .

  • LocalPath (string) --

    (Optional) The local directory where checkpoints are written. The default directory is /opt/ml/checkpoints/ .

type DebugHookConfig

dict

param DebugHookConfig

Configuration information for the Debugger hook parameters, metric and tensor collections, and storage paths. To learn more about how to configure the DebugHookConfig parameter, see Use the SageMaker and Debugger Configuration API Operations to Create, Update, and Debug Your Training Job .

  • LocalPath (string) --

    Path to local storage location for metrics and tensors. Defaults to /opt/ml/output/tensors/ .

  • S3OutputPath (string) -- [REQUIRED]

    Path to Amazon S3 storage location for metrics and tensors.

  • HookParameters (dict) --

    Configuration information for the Debugger hook parameters.

    • (string) --

      • (string) --

  • CollectionConfigurations (list) --

    Configuration information for Debugger tensor collections. To learn more about how to configure the CollectionConfiguration parameter, see Use the SageMaker and Debugger Configuration API Operations to Create, Update, and Debug Your Training Job .

    • (dict) --

      Configuration information for the Debugger output tensor collections.

      • CollectionName (string) --

        The name of the tensor collection. The name must be unique relative to other rule configuration names.

      • CollectionParameters (dict) --

        Parameter values for the tensor collection. The allowed parameters are "name" , "include_regex" , "reduction_config" , "save_config" , "tensor_names" , and "save_histogram" .

        • (string) --

          • (string) --

type DebugRuleConfigurations

list

param DebugRuleConfigurations

Configuration information for Debugger rules for debugging output tensors.

  • (dict) --

    Configuration information for SageMaker Debugger rules for debugging. To learn more about how to configure the DebugRuleConfiguration parameter, see Use the SageMaker and Debugger Configuration API Operations to Create, Update, and Debug Your Training Job .

    • RuleConfigurationName (string) -- [REQUIRED]

      The name of the rule configuration. It must be unique relative to other rule configuration names.

    • LocalPath (string) --

      Path to local storage location for output of rules. Defaults to /opt/ml/processing/output/rule/ .

    • S3OutputPath (string) --

      Path to Amazon S3 storage location for rules.

    • RuleEvaluatorImage (string) -- [REQUIRED]

      The Amazon Elastic Container (ECR) Image for the managed rule evaluation.

    • InstanceType (string) --

      The instance type to deploy a Debugger custom rule for debugging a training job.

    • VolumeSizeInGB (integer) --

      The size, in GB, of the ML storage volume attached to the processing instance.

    • RuleParameters (dict) --

      Runtime configuration for rule container.

      • (string) --

        • (string) --

type TensorBoardOutputConfig

dict

param TensorBoardOutputConfig

Configuration of storage locations for the Debugger TensorBoard output data.

  • LocalPath (string) --

    Path to local storage location for tensorBoard output. Defaults to /opt/ml/output/tensorboard .

  • S3OutputPath (string) -- [REQUIRED]

    Path to Amazon S3 storage location for TensorBoard output.

type ExperimentConfig

dict

param ExperimentConfig

Associates a SageMaker job as a trial component with an experiment and trial. Specified when you call the following APIs:

  • CreateProcessingJob

  • CreateTrainingJob

  • CreateTransformJob

  • ExperimentName (string) --

    The name of an existing experiment to associate the trial component with.

  • TrialName (string) --

    The name of an existing trial to associate the trial component with. If not specified, a new trial is created.

  • TrialComponentDisplayName (string) --

    The display name for the trial component. If this key isn't specified, the display name is the trial component name.

type ProfilerConfig

dict

param ProfilerConfig

Configuration information for Debugger system monitoring, framework profiling, and storage paths.

  • S3OutputPath (string) -- [REQUIRED]

    Path to Amazon S3 storage location for system and framework metrics.

  • ProfilingIntervalInMilliseconds (integer) --

    A time interval for capturing system metrics in milliseconds. Available values are 100, 200, 500, 1000 (1 second), 5000 (5 seconds), and 60000 (1 minute) milliseconds. The default value is 500 milliseconds.

  • ProfilingParameters (dict) --

    Configuration information for capturing framework metrics. Available key strings for different profiling options are DetailedProfilingConfig , PythonProfilingConfig , and DataLoaderProfilingConfig . The following codes are configuration structures for the ProfilingParameters parameter. To learn more about how to configure the ProfilingParameters parameter, see Use the SageMaker and Debugger Configuration API Operations to Create, Update, and Debug Your Training Job .

    • (string) --

      • (string) --

type ProfilerRuleConfigurations

list

param ProfilerRuleConfigurations

Configuration information for Debugger rules for profiling system and framework metrics.

  • (dict) --

    Configuration information for profiling rules.

    • RuleConfigurationName (string) -- [REQUIRED]

      The name of the rule configuration. It must be unique relative to other rule configuration names.

    • LocalPath (string) --

      Path to local storage location for output of rules. Defaults to /opt/ml/processing/output/rule/ .

    • S3OutputPath (string) --

      Path to Amazon S3 storage location for rules.

    • RuleEvaluatorImage (string) -- [REQUIRED]

      The Amazon Elastic Container (ECR) Image for the managed rule evaluation.

    • InstanceType (string) --

      The instance type to deploy a Debugger custom rule for profiling a training job.

    • VolumeSizeInGB (integer) --

      The size, in GB, of the ML storage volume attached to the processing instance.

    • RuleParameters (dict) --

      Runtime configuration for rule container.

      • (string) --

        • (string) --

rtype

dict

returns

Response Syntax

{
    'TrainingJobArn': 'string'
}

Response Structure

  • (dict) --

    • TrainingJobArn (string) --

      The Amazon Resource Name (ARN) of the training job.

DescribeMonitoringSchedule (updated) Link ¶
Changes (response)
{'LastMonitoringExecutionSummary': {'MonitoringJobDefinitionName': 'string',
                                    'MonitoringType': 'DataQuality | '
                                                      'ModelQuality | '
                                                      'ModelBias | '
                                                      'ModelExplainability'},
 'MonitoringScheduleConfig': {'MonitoringJobDefinition': {'BaselineConfig': {'BaseliningJobName': 'string'},
                                                          'MonitoringInputs': {'EndpointInput': {'EndTimeOffset': 'string',
                                                                                                 'FeaturesAttribute': 'string',
                                                                                                 'InferenceAttribute': 'string',
                                                                                                 'ProbabilityAttribute': 'string',
                                                                                                 'ProbabilityThresholdAttribute': 'double',
                                                                                                 'StartTimeOffset': 'string'}}},
                              'MonitoringJobDefinitionName': 'string',
                              'MonitoringType': 'DataQuality | ModelQuality | '
                                                'ModelBias | '
                                                'ModelExplainability'},
 'MonitoringType': 'DataQuality | ModelQuality | ModelBias | '
                   'ModelExplainability'}

Describes the schedule for a monitoring job.

See also: AWS API Documentation

Request Syntax

client.describe_monitoring_schedule(
    MonitoringScheduleName='string'
)
type MonitoringScheduleName

string

param MonitoringScheduleName

[REQUIRED]

Name of a previously created monitoring schedule.

rtype

dict

returns

Response Syntax

{
    'MonitoringScheduleArn': 'string',
    'MonitoringScheduleName': 'string',
    'MonitoringScheduleStatus': 'Pending'|'Failed'|'Scheduled'|'Stopped',
    'MonitoringType': 'DataQuality'|'ModelQuality'|'ModelBias'|'ModelExplainability',
    'FailureReason': 'string',
    'CreationTime': datetime(2015, 1, 1),
    'LastModifiedTime': datetime(2015, 1, 1),
    'MonitoringScheduleConfig': {
        'ScheduleConfig': {
            'ScheduleExpression': 'string'
        },
        'MonitoringJobDefinition': {
            'BaselineConfig': {
                'BaseliningJobName': 'string',
                'ConstraintsResource': {
                    'S3Uri': 'string'
                },
                'StatisticsResource': {
                    'S3Uri': 'string'
                }
            },
            'MonitoringInputs': [
                {
                    'EndpointInput': {
                        'EndpointName': 'string',
                        'LocalPath': 'string',
                        'S3InputMode': 'Pipe'|'File',
                        'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
                        'FeaturesAttribute': 'string',
                        'InferenceAttribute': 'string',
                        'ProbabilityAttribute': 'string',
                        'ProbabilityThresholdAttribute': 123.0,
                        'StartTimeOffset': 'string',
                        'EndTimeOffset': 'string'
                    }
                },
            ],
            'MonitoringOutputConfig': {
                'MonitoringOutputs': [
                    {
                        'S3Output': {
                            'S3Uri': 'string',
                            'LocalPath': 'string',
                            'S3UploadMode': 'Continuous'|'EndOfJob'
                        }
                    },
                ],
                'KmsKeyId': 'string'
            },
            'MonitoringResources': {
                'ClusterConfig': {
                    'InstanceCount': 123,
                    'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
                    'VolumeSizeInGB': 123,
                    'VolumeKmsKeyId': 'string'
                }
            },
            'MonitoringAppSpecification': {
                'ImageUri': 'string',
                'ContainerEntrypoint': [
                    'string',
                ],
                'ContainerArguments': [
                    'string',
                ],
                'RecordPreprocessorSourceUri': 'string',
                'PostAnalyticsProcessorSourceUri': 'string'
            },
            'StoppingCondition': {
                'MaxRuntimeInSeconds': 123
            },
            'Environment': {
                'string': 'string'
            },
            'NetworkConfig': {
                'EnableInterContainerTrafficEncryption': True|False,
                'EnableNetworkIsolation': True|False,
                'VpcConfig': {
                    'SecurityGroupIds': [
                        'string',
                    ],
                    'Subnets': [
                        'string',
                    ]
                }
            },
            'RoleArn': 'string'
        },
        'MonitoringJobDefinitionName': 'string',
        'MonitoringType': 'DataQuality'|'ModelQuality'|'ModelBias'|'ModelExplainability'
    },
    'EndpointName': 'string',
    'LastMonitoringExecutionSummary': {
        'MonitoringScheduleName': 'string',
        'ScheduledTime': datetime(2015, 1, 1),
        'CreationTime': datetime(2015, 1, 1),
        'LastModifiedTime': datetime(2015, 1, 1),
        'MonitoringExecutionStatus': 'Pending'|'Completed'|'CompletedWithViolations'|'InProgress'|'Failed'|'Stopping'|'Stopped',
        'ProcessingJobArn': 'string',
        'EndpointName': 'string',
        'FailureReason': 'string',
        'MonitoringJobDefinitionName': 'string',
        'MonitoringType': 'DataQuality'|'ModelQuality'|'ModelBias'|'ModelExplainability'
    }
}

Response Structure

  • (dict) --

    • MonitoringScheduleArn (string) --

      The Amazon Resource Name (ARN) of the monitoring schedule.

    • MonitoringScheduleName (string) --

      Name of the monitoring schedule.

    • MonitoringScheduleStatus (string) --

      The status of an monitoring job.

    • MonitoringType (string) --

      The type of the monitoring job that this schedule runs. This is one of the following values.

      • DATA_QUALITY - The schedule is for a data quality monitoring job.

      • MODEL_QUALITY - The schedule is for a model quality monitoring job.

      • MODEL_BIAS - The schedule is for a bias monitoring job.

      • MODEL_EXPLAINABILITY - The schedule is for an explainability monitoring job.

    • FailureReason (string) --

      A string, up to one KB in size, that contains the reason a monitoring job failed, if it failed.

    • CreationTime (datetime) --

      The time at which the monitoring job was created.

    • LastModifiedTime (datetime) --

      The time at which the monitoring job was last modified.

    • MonitoringScheduleConfig (dict) --

      The configuration object that specifies the monitoring schedule and defines the monitoring job.

      • ScheduleConfig (dict) --

        Configures the monitoring schedule.

        • ScheduleExpression (string) --

          A cron expression that describes details about the monitoring schedule.

          Currently the only supported cron expressions are:

          • If you want to set the job to start every hour, please use the following: Hourly: cron(0 * ? * * *)

          • If you want to start the job daily: cron(0 [00-23] ? * * *)

          For example, the following are valid cron expressions:

          • Daily at noon UTC: cron(0 12 ? * * *)

          • Daily at midnight UTC: cron(0 0 ? * * *)

          To support running every 6, 12 hours, the following are also supported:

          cron(0 [00-23]/[01-24] ? * * *)

          For example, the following are valid cron expressions:

          • Every 12 hours, starting at 5pm UTC: cron(0 17/12 ? * * *)

          • Every two hours starting at midnight: cron(0 0/2 ? * * *)

          Note

          • Even though the cron expression is set to start at 5PM UTC, note that there could be a delay of 0-20 minutes from the actual requested time to run the execution.

          • We recommend that if you would like a daily schedule, you do not provide this parameter. Amazon SageMaker will pick a time for running every day.

      • MonitoringJobDefinition (dict) --

        Defines the monitoring job.

        • BaselineConfig (dict) --

          Baseline configuration used to validate that the data conforms to the specified constraints and statistics

          • BaseliningJobName (string) --

            The name of the job that performs baselining for the monitoring job.

          • ConstraintsResource (dict) --

            The baseline constraint file in Amazon S3 that the current monitoring job should validated against.

            • S3Uri (string) --

              The Amazon S3 URI for the constraints resource.

          • StatisticsResource (dict) --

            The baseline statistics file in Amazon S3 that the current monitoring job should be validated against.

            • S3Uri (string) --

              The Amazon S3 URI for the statistics resource.

        • MonitoringInputs (list) --

          The array of inputs for the monitoring job. Currently we support monitoring an Amazon SageMaker Endpoint.

          • (dict) --

            The inputs for a monitoring job.

            • EndpointInput (dict) --

              The endpoint for a monitoring job.

              • EndpointName (string) --

                An endpoint in customer's account which has enabled DataCaptureConfig enabled.

              • LocalPath (string) --

                Path to the filesystem where the endpoint data is available to the container.

              • S3InputMode (string) --

                Whether the Pipe or File is used as the input mode for transfering data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

              • S3DataDistributionType (string) --

                Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defauts to FullyReplicated

              • FeaturesAttribute (string) --

                The attributes of the input data that are the input features.

              • InferenceAttribute (string) --

                The attribute of the input data that represents the ground truth label.

              • ProbabilityAttribute (string) --

                In a classification problem, the attribute that represents the class probability.

              • ProbabilityThresholdAttribute (float) --

                The threshold for the class probability to be evaluated as a positive result.

              • StartTimeOffset (string) --

                If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs .

              • EndTimeOffset (string) --

                If specified, monitoring jobs substract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs .

        • MonitoringOutputConfig (dict) --

          The array of outputs from the monitoring job to be uploaded to Amazon Simple Storage Service (Amazon S3).

          • MonitoringOutputs (list) --

            Monitoring outputs for monitoring jobs. This is where the output of the periodic monitoring jobs is uploaded.

            • (dict) --

              The output object for a monitoring job.

              • S3Output (dict) --

                The Amazon S3 storage location where the results of a monitoring job are saved.

                • S3Uri (string) --

                  A URI that identifies the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job.

                • LocalPath (string) --

                  The local path to the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job. LocalPath is an absolute path for the output data.

                • S3UploadMode (string) --

                  Whether to upload the results of the monitoring job continuously or after the job completes.

          • KmsKeyId (string) --

            The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.

        • MonitoringResources (dict) --

          Identifies the resources, ML compute instances, and ML storage volumes to deploy for a monitoring job. In distributed processing, you specify more than one instance.

          • ClusterConfig (dict) --

            The configuration for the cluster resources used to run the processing job.

            • InstanceCount (integer) --

              The number of ML compute instances to use in the model monitoring job. For distributed processing jobs, specify a value greater than 1. The default value is 1.

            • InstanceType (string) --

              The ML compute instance type for the processing job.

            • VolumeSizeInGB (integer) --

              The size of the ML storage volume, in gigabytes, that you want to provision. You must specify sufficient ML storage for your scenario.

            • VolumeKmsKeyId (string) --

              The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.

        • MonitoringAppSpecification (dict) --

          Configures the monitoring job to run a specified Docker container image.

          • ImageUri (string) --

            The container image to be run by the monitoring job.

          • ContainerEntrypoint (list) --

            Specifies the entrypoint for a container used to run the monitoring job.

            • (string) --

          • ContainerArguments (list) --

            An array of arguments for the container used to run the monitoring job.

            • (string) --

          • RecordPreprocessorSourceUri (string) --

            An Amazon S3 URI to a script that is called per row prior to running analysis. It can base64 decode the payload and convert it into a flatted json so that the built-in container can use the converted data. Applicable only for the built-in (first party) containers.

          • PostAnalyticsProcessorSourceUri (string) --

            An Amazon S3 URI to a script that is called after analysis has been performed. Applicable only for the built-in (first party) containers.

        • StoppingCondition (dict) --

          Specifies a time limit for how long the monitoring job is allowed to run.

          • MaxRuntimeInSeconds (integer) --

            The maximum runtime allowed in seconds.

        • Environment (dict) --

          Sets the environment variables in the Docker container.

          • (string) --

            • (string) --

        • NetworkConfig (dict) --

          Specifies networking options for an monitoring job.

          • EnableInterContainerTrafficEncryption (boolean) --

            Whether to encrypt all communications between distributed processing jobs. Choose True to encrypt communications. Encryption provides greater security for distributed processing jobs, but the processing might take longer.

          • EnableNetworkIsolation (boolean) --

            Whether to allow inbound and outbound network calls to and from the containers used for the processing job.

          • VpcConfig (dict) --

            Specifies a VPC that your training jobs and hosted models have access to. Control access to and from your training and model containers by configuring the VPC. For more information, see Protect Endpoints by Using an Amazon Virtual Private Cloud and Protect Training Jobs by Using an Amazon Virtual Private Cloud .

            • SecurityGroupIds (list) --

              The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field.

              • (string) --

            • Subnets (list) --

              The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones .

              • (string) --

        • RoleArn (string) --

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

      • MonitoringJobDefinitionName (string) --

        The name of the monitoring job definition to schedule.

      • MonitoringType (string) --

        The type of the monitoring job definition to schedule.

    • EndpointName (string) --

      The name of the endpoint for the monitoring job.

    • LastMonitoringExecutionSummary (dict) --

      Describes metadata on the last execution to run, if there was one.

      • MonitoringScheduleName (string) --

        The name of the monitoring schedule.

      • ScheduledTime (datetime) --

        The time the monitoring job was scheduled.

      • CreationTime (datetime) --

        The time at which the monitoring job was created.

      • LastModifiedTime (datetime) --

        A timestamp that indicates the last time the monitoring job was modified.

      • MonitoringExecutionStatus (string) --

        The status of the monitoring job.

      • ProcessingJobArn (string) --

        The Amazon Resource Name (ARN) of the monitoring job.

      • EndpointName (string) --

        The name of the endpoint used to run the monitoring job.

      • FailureReason (string) --

        Contains the reason a monitoring job failed, if it failed.

      • MonitoringJobDefinitionName (string) --

        The name of the monitoring job.

      • MonitoringType (string) --

        The type of the monitoring job.

DescribeTrainingJob (updated) Link ¶
Changes (response)
{'ProfilerConfig': {'ProfilingIntervalInMilliseconds': 'long',
                    'ProfilingParameters': {'string': 'string'},
                    'S3OutputPath': 'string'},
 'ProfilerRuleConfigurations': [{'InstanceType': 'ml.t3.medium | ml.t3.large | '
                                                 'ml.t3.xlarge | ml.t3.2xlarge '
                                                 '| ml.m4.xlarge | '
                                                 'ml.m4.2xlarge | '
                                                 'ml.m4.4xlarge | '
                                                 'ml.m4.10xlarge | '
                                                 'ml.m4.16xlarge | '
                                                 'ml.c4.xlarge | ml.c4.2xlarge '
                                                 '| ml.c4.4xlarge | '
                                                 'ml.c4.8xlarge | ml.p2.xlarge '
                                                 '| ml.p2.8xlarge | '
                                                 'ml.p2.16xlarge | '
                                                 'ml.p3.2xlarge | '
                                                 'ml.p3.8xlarge | '
                                                 'ml.p3.16xlarge | '
                                                 'ml.c5.xlarge | ml.c5.2xlarge '
                                                 '| ml.c5.4xlarge | '
                                                 'ml.c5.9xlarge | '
                                                 'ml.c5.18xlarge | ml.m5.large '
                                                 '| ml.m5.xlarge | '
                                                 'ml.m5.2xlarge | '
                                                 'ml.m5.4xlarge | '
                                                 'ml.m5.12xlarge | '
                                                 'ml.m5.24xlarge | ml.r5.large '
                                                 '| ml.r5.xlarge | '
                                                 'ml.r5.2xlarge | '
                                                 'ml.r5.4xlarge | '
                                                 'ml.r5.8xlarge | '
                                                 'ml.r5.12xlarge | '
                                                 'ml.r5.16xlarge | '
                                                 'ml.r5.24xlarge',
                                 'LocalPath': 'string',
                                 'RuleConfigurationName': 'string',
                                 'RuleEvaluatorImage': 'string',
                                 'RuleParameters': {'string': 'string'},
                                 'S3OutputPath': 'string',
                                 'VolumeSizeInGB': 'integer'}],
 'ProfilerRuleEvaluationStatuses': [{'LastModifiedTime': 'timestamp',
                                     'RuleConfigurationName': 'string',
                                     'RuleEvaluationJobArn': 'string',
                                     'RuleEvaluationStatus': 'InProgress | '
                                                             'NoIssuesFound | '
                                                             'IssuesFound | '
                                                             'Error | Stopping '
                                                             '| Stopped',
                                     'StatusDetails': 'string'}],
 'ProfilingStatus': 'Enabled | Disabled'}

Returns information about a training job.

See also: AWS API Documentation

Request Syntax

client.describe_training_job(
    TrainingJobName='string'
)
type TrainingJobName

string

param TrainingJobName

[REQUIRED]

The name of the training job.

rtype

dict

returns

Response Syntax

{
    'TrainingJobName': 'string',
    'TrainingJobArn': 'string',
    'TuningJobArn': 'string',
    'LabelingJobArn': 'string',
    'AutoMLJobArn': 'string',
    'ModelArtifacts': {
        'S3ModelArtifacts': 'string'
    },
    'TrainingJobStatus': 'InProgress'|'Completed'|'Failed'|'Stopping'|'Stopped',
    'SecondaryStatus': 'Starting'|'LaunchingMLInstances'|'PreparingTrainingStack'|'Downloading'|'DownloadingTrainingImage'|'Training'|'Uploading'|'Stopping'|'Stopped'|'MaxRuntimeExceeded'|'Completed'|'Failed'|'Interrupted'|'MaxWaitTimeExceeded'|'Updating',
    'FailureReason': 'string',
    'HyperParameters': {
        'string': 'string'
    },
    'AlgorithmSpecification': {
        'TrainingImage': 'string',
        'AlgorithmName': 'string',
        'TrainingInputMode': 'Pipe'|'File',
        'MetricDefinitions': [
            {
                'Name': 'string',
                'Regex': 'string'
            },
        ],
        'EnableSageMakerMetricsTimeSeries': True|False
    },
    'RoleArn': 'string',
    'InputDataConfig': [
        {
            'ChannelName': 'string',
            'DataSource': {
                'S3DataSource': {
                    'S3DataType': 'ManifestFile'|'S3Prefix'|'AugmentedManifestFile',
                    'S3Uri': 'string',
                    'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
                    'AttributeNames': [
                        'string',
                    ]
                },
                'FileSystemDataSource': {
                    'FileSystemId': 'string',
                    'FileSystemAccessMode': 'rw'|'ro',
                    'FileSystemType': 'EFS'|'FSxLustre',
                    'DirectoryPath': 'string'
                }
            },
            'ContentType': 'string',
            'CompressionType': 'None'|'Gzip',
            'RecordWrapperType': 'None'|'RecordIO',
            'InputMode': 'Pipe'|'File',
            'ShuffleConfig': {
                'Seed': 123
            }
        },
    ],
    'OutputDataConfig': {
        'KmsKeyId': 'string',
        'S3OutputPath': 'string'
    },
    'ResourceConfig': {
        'InstanceType': 'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.p3dn.24xlarge'|'ml.p4d.24xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5n.xlarge'|'ml.c5n.2xlarge'|'ml.c5n.4xlarge'|'ml.c5n.9xlarge'|'ml.c5n.18xlarge',
        'InstanceCount': 123,
        'VolumeSizeInGB': 123,
        'VolumeKmsKeyId': 'string'
    },
    'VpcConfig': {
        'SecurityGroupIds': [
            'string',
        ],
        'Subnets': [
            'string',
        ]
    },
    'StoppingCondition': {
        'MaxRuntimeInSeconds': 123,
        'MaxWaitTimeInSeconds': 123
    },
    'CreationTime': datetime(2015, 1, 1),
    'TrainingStartTime': datetime(2015, 1, 1),
    'TrainingEndTime': datetime(2015, 1, 1),
    'LastModifiedTime': datetime(2015, 1, 1),
    'SecondaryStatusTransitions': [
        {
            'Status': 'Starting'|'LaunchingMLInstances'|'PreparingTrainingStack'|'Downloading'|'DownloadingTrainingImage'|'Training'|'Uploading'|'Stopping'|'Stopped'|'MaxRuntimeExceeded'|'Completed'|'Failed'|'Interrupted'|'MaxWaitTimeExceeded'|'Updating',
            'StartTime': datetime(2015, 1, 1),
            'EndTime': datetime(2015, 1, 1),
            'StatusMessage': 'string'
        },
    ],
    'FinalMetricDataList': [
        {
            'MetricName': 'string',
            'Value': ...,
            'Timestamp': datetime(2015, 1, 1)
        },
    ],
    'EnableNetworkIsolation': True|False,
    'EnableInterContainerTrafficEncryption': True|False,
    'EnableManagedSpotTraining': True|False,
    'CheckpointConfig': {
        'S3Uri': 'string',
        'LocalPath': 'string'
    },
    'TrainingTimeInSeconds': 123,
    'BillableTimeInSeconds': 123,
    'DebugHookConfig': {
        'LocalPath': 'string',
        'S3OutputPath': 'string',
        'HookParameters': {
            'string': 'string'
        },
        'CollectionConfigurations': [
            {
                'CollectionName': 'string',
                'CollectionParameters': {
                    'string': 'string'
                }
            },
        ]
    },
    'ExperimentConfig': {
        'ExperimentName': 'string',
        'TrialName': 'string',
        'TrialComponentDisplayName': 'string'
    },
    'DebugRuleConfigurations': [
        {
            'RuleConfigurationName': 'string',
            'LocalPath': 'string',
            'S3OutputPath': 'string',
            'RuleEvaluatorImage': 'string',
            'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
            'VolumeSizeInGB': 123,
            'RuleParameters': {
                'string': 'string'
            }
        },
    ],
    'TensorBoardOutputConfig': {
        'LocalPath': 'string',
        'S3OutputPath': 'string'
    },
    'DebugRuleEvaluationStatuses': [
        {
            'RuleConfigurationName': 'string',
            'RuleEvaluationJobArn': 'string',
            'RuleEvaluationStatus': 'InProgress'|'NoIssuesFound'|'IssuesFound'|'Error'|'Stopping'|'Stopped',
            'StatusDetails': 'string',
            'LastModifiedTime': datetime(2015, 1, 1)
        },
    ],
    'ProfilerConfig': {
        'S3OutputPath': 'string',
        'ProfilingIntervalInMilliseconds': 123,
        'ProfilingParameters': {
            'string': 'string'
        }
    },
    'ProfilerRuleConfigurations': [
        {
            'RuleConfigurationName': 'string',
            'LocalPath': 'string',
            'S3OutputPath': 'string',
            'RuleEvaluatorImage': 'string',
            'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
            'VolumeSizeInGB': 123,
            'RuleParameters': {
                'string': 'string'
            }
        },
    ],
    'ProfilerRuleEvaluationStatuses': [
        {
            'RuleConfigurationName': 'string',
            'RuleEvaluationJobArn': 'string',
            'RuleEvaluationStatus': 'InProgress'|'NoIssuesFound'|'IssuesFound'|'Error'|'Stopping'|'Stopped',
            'StatusDetails': 'string',
            'LastModifiedTime': datetime(2015, 1, 1)
        },
    ],
    'ProfilingStatus': 'Enabled'|'Disabled'
}

Response Structure

  • (dict) --

    • TrainingJobName (string) --

      Name of the model training job.

    • TrainingJobArn (string) --

      The Amazon Resource Name (ARN) of the training job.

    • TuningJobArn (string) --

      The Amazon Resource Name (ARN) of the associated hyperparameter tuning job if the training job was launched by a hyperparameter tuning job.

    • LabelingJobArn (string) --

      The Amazon Resource Name (ARN) of the Amazon SageMaker Ground Truth labeling job that created the transform or training job.

    • AutoMLJobArn (string) --

      The Amazon Resource Name (ARN) of an AutoML job.

    • ModelArtifacts (dict) --

      Information about the Amazon S3 location that is configured for storing model artifacts.

      • S3ModelArtifacts (string) --

        The path of the S3 object that contains the model artifacts. For example, s3://bucket-name/keynameprefix/model.tar.gz .

    • TrainingJobStatus (string) --

      The status of the training job.

      Amazon SageMaker provides the following training job statuses:

      • InProgress - The training is in progress.

      • Completed - The training job has completed.

      • Failed - The training job has failed. To see the reason for the failure, see the FailureReason field in the response to a DescribeTrainingJobResponse call.

      • Stopping - The training job is stopping.

      • Stopped - The training job has stopped.

      For more detailed information, see SecondaryStatus .

    • SecondaryStatus (string) --

      Provides detailed information about the state of the training job. For detailed information on the secondary status of the training job, see StatusMessage under SecondaryStatusTransition .

      Amazon SageMaker provides primary statuses and secondary statuses that apply to each of them:

      InProgress

      • Starting - Starting the training job.

      • Downloading - An optional stage for algorithms that support File training input mode. It indicates that data is being downloaded to the ML storage volumes.

      • Training - Training is in progress.

      • Interrupted - The job stopped because the managed spot training instances were interrupted.

      • Uploading - Training is complete and the model artifacts are being uploaded to the S3 location.

        Completed

      • Completed - The training job has completed.

        Failed

      • Failed - The training job has failed. The reason for the failure is returned in the FailureReason field of DescribeTrainingJobResponse .

        Stopped

      • MaxRuntimeExceeded - The job stopped because it exceeded the maximum allowed runtime.

      • MaxWaitTimeExceeded - The job stopped because it exceeded the maximum allowed wait time.

      • Stopped - The training job has stopped.

        Stopping

      • Stopping - Stopping the training job.

      Warning

      Valid values for SecondaryStatus are subject to change.

      We no longer support the following secondary statuses:

      • LaunchingMLInstances

      • PreparingTrainingStack

      • DownloadingTrainingImage

    • FailureReason (string) --

      If the training job failed, the reason it failed.

    • HyperParameters (dict) --

      Algorithm-specific parameters.

      • (string) --

        • (string) --

    • AlgorithmSpecification (dict) --

      Information about the algorithm used for training, and algorithm metadata.

      • TrainingImage (string) --

        The registry path of the Docker image that contains the training algorithm. For information about docker registry paths for built-in algorithms, see Algorithms Provided by Amazon SageMaker: Common Parameters . Amazon SageMaker supports both registry/repository[:tag] and registry/repository[@digest] image path formats. For more information, see Using Your Own Algorithms with Amazon SageMaker .

      • AlgorithmName (string) --

        The name of the algorithm resource to use for the training job. This must be an algorithm resource that you created or subscribe to on AWS Marketplace. If you specify a value for this parameter, you can't specify a value for TrainingImage .

      • TrainingInputMode (string) --

        The input mode that the algorithm supports. For the input modes that Amazon SageMaker algorithms support, see Algorithms . If an algorithm supports the File input mode, Amazon SageMaker downloads the training data from S3 to the provisioned ML storage Volume, and mounts the directory to docker volume for training container. If an algorithm supports the Pipe input mode, Amazon SageMaker streams data directly from S3 to the container.

        In File mode, make sure you provision ML storage volume with sufficient capacity to accommodate the data download from S3. In addition to the training data, the ML storage volume also stores the output model. The algorithm container use ML storage volume to also store intermediate information, if any.

        For distributed algorithms using File mode, training data is distributed uniformly, and your training duration is predictable if the input data objects size is approximately same. Amazon SageMaker does not split the files any further for model training. If the object sizes are skewed, training won't be optimal as the data distribution is also skewed where one host in a training cluster is overloaded, thus becoming bottleneck in training.

      • MetricDefinitions (list) --

        A list of metric definition objects. Each object specifies the metric name and regular expressions used to parse algorithm logs. Amazon SageMaker publishes each metric to Amazon CloudWatch.

        • (dict) --

          Specifies a metric that the training algorithm writes to stderr or stdout . Amazon SageMakerhyperparameter tuning captures all defined metrics. You specify one metric that a hyperparameter tuning job uses as its objective metric to choose the best training job.

          • Name (string) --

            The name of the metric.

          • Regex (string) --

            A regular expression that searches the output of a training job and gets the value of the metric. For more information about using regular expressions to define metrics, see Defining Objective Metrics .

      • EnableSageMakerMetricsTimeSeries (boolean) --

        To generate and save time-series metrics during training, set to true . The default is false and time-series metrics aren't generated except in the following cases:

        • You use one of the Amazon SageMaker built-in algorithms

        • You use one of the following Prebuilt Amazon SageMaker Docker Images :

          • Tensorflow (version >= 1.15)

          • MXNet (version >= 1.6)

          • PyTorch (version >= 1.3)

        • You specify at least one MetricDefinition

    • RoleArn (string) --

      The AWS Identity and Access Management (IAM) role configured for the training job.

    • InputDataConfig (list) --

      An array of Channel objects that describes each data input channel.

      • (dict) --

        A channel is a named input source that training algorithms can consume.

        • ChannelName (string) --

          The name of the channel.

        • DataSource (dict) --

          The location of the channel data.

          • S3DataSource (dict) --

            The S3 location of the data source that is associated with a channel.

            • S3DataType (string) --

              If you choose S3Prefix , S3Uri identifies a key name prefix. Amazon SageMaker uses all objects that match the specified key name prefix for model training.

              If you choose ManifestFile , S3Uri identifies an object that is a manifest file containing a list of object keys that you want Amazon SageMaker to use for model training.

              If you choose AugmentedManifestFile , S3Uri identifies an object that is an augmented manifest file in JSON lines format. This file contains the data you want to use for model training. AugmentedManifestFile can only be used if the Channel's input mode is Pipe .

            • S3Uri (string) --

              Depending on the value specified for the S3DataType , identifies either a key name prefix or a manifest. For example:

              • A key name prefix might look like this: s3://bucketname/exampleprefix

              • A manifest might look like this: s3://bucketname/example.manifest A manifest is an S3 object which is a JSON file consisting of an array of elements. The first element is a prefix which is followed by one or more suffixes. SageMaker appends the suffix elements to the prefix to get a full set of S3Uri . Note that the prefix must be a valid non-empty S3Uri that precludes users from specifying a manifest whose individual S3Uri is sourced from different S3 buckets. The following code example shows a valid manifest format: [ {"prefix": "s3://customer_bucket/some/prefix/"}, "relative/path/to/custdata-1", "relative/path/custdata-2", ... "relative/path/custdata-N" ] This JSON is equivalent to the following S3Uri list: s3://customer_bucket/some/prefix/relative/path/to/custdata-1 s3://customer_bucket/some/prefix/relative/path/custdata-2 ... s3://customer_bucket/some/prefix/relative/path/custdata-N The complete set of S3Uri in this manifest is the input data for the channel for this data source. The object that each S3Uri points to must be readable by the IAM role that Amazon SageMaker uses to perform tasks on your behalf.

            • S3DataDistributionType (string) --

              If you want Amazon SageMaker to replicate the entire dataset on each ML compute instance that is launched for model training, specify FullyReplicated .

              If you want Amazon SageMaker to replicate a subset of data on each ML compute instance that is launched for model training, specify ShardedByS3Key . If there are n ML compute instances launched for a training job, each instance gets approximately 1/n of the number of S3 objects. In this case, model training on each machine uses only the subset of training data.

              Don't choose more ML compute instances for training than available S3 objects. If you do, some nodes won't get any data and you will pay for nodes that aren't getting any training data. This applies in both File and Pipe modes. Keep this in mind when developing algorithms.

              In distributed training, where you use multiple ML compute EC2 instances, you might choose ShardedByS3Key . If the algorithm requires copying training data to the ML storage volume (when TrainingInputMode is set to File ), this copies 1/n of the number of objects.

            • AttributeNames (list) --

              A list of one or more attribute names to use that are found in a specified augmented manifest file.

              • (string) --

          • FileSystemDataSource (dict) --

            The file system that is associated with a channel.

            • FileSystemId (string) --

              The file system id.

            • FileSystemAccessMode (string) --

              The access mode of the mount of the directory associated with the channel. A directory can be mounted either in ro (read-only) or rw (read-write) mode.

            • FileSystemType (string) --

              The file system type.

            • DirectoryPath (string) --

              The full path to the directory to associate with the channel.

        • ContentType (string) --

          The MIME type of the data.

        • CompressionType (string) --

          If training data is compressed, the compression type. The default value is None . CompressionType is used only in Pipe input mode. In File mode, leave this field unset or set it to None.

        • RecordWrapperType (string) --

          Specify RecordIO as the value when input data is in raw format but the training algorithm requires the RecordIO format. In this case, Amazon SageMaker wraps each individual S3 object in a RecordIO record. If the input data is already in RecordIO format, you don't need to set this attribute. For more information, see Create a Dataset Using RecordIO .

          In File mode, leave this field unset or set it to None.

        • InputMode (string) --

          (Optional) The input mode to use for the data channel in a training job. If you don't set a value for InputMode , Amazon SageMaker uses the value set for TrainingInputMode . Use this parameter to override the TrainingInputMode setting in a AlgorithmSpecification request when you have a channel that needs a different input mode from the training job's general setting. To download the data from Amazon Simple Storage Service (Amazon S3) to the provisioned ML storage volume, and mount the directory to a Docker volume, use File input mode. To stream data directly from Amazon S3 to the container, choose Pipe input mode.

          To use a model for incremental training, choose File input model.

        • ShuffleConfig (dict) --

          A configuration for a shuffle option for input data in a channel. If you use S3Prefix for S3DataType , this shuffles the results of the S3 key prefix matches. If you use ManifestFile , the order of the S3 object references in the ManifestFile is shuffled. If you use AugmentedManifestFile , the order of the JSON lines in the AugmentedManifestFile is shuffled. The shuffling order is determined using the Seed value.

          For Pipe input mode, shuffling is done at the start of every epoch. With large datasets this ensures that the order of the training data is different for each epoch, it helps reduce bias and possible overfitting. In a multi-node training job when ShuffleConfig is combined with S3DataDistributionType of ShardedByS3Key , the data is shuffled across nodes so that the content sent to a particular node on the first epoch might be sent to a different node on the second epoch.

          • Seed (integer) --

            Determines the shuffling order in ShuffleConfig value.

    • OutputDataConfig (dict) --

      The S3 path where model artifacts that you configured when creating the job are stored. Amazon SageMaker creates subfolders for model artifacts.

      • KmsKeyId (string) --

        The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption. 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:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

        • // KMS Key Alias "alias/ExampleAlias"

        • // Amazon Resource Name (ARN) of a KMS Key Alias "arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"

        If you use a KMS key ID or an alias of your master key, the Amazon SageMaker execution role must include permissions to call kms:Encrypt . If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account. Amazon SageMaker uses server-side encryption with KMS-managed keys for OutputDataConfig . If you use a bucket policy with an s3:PutObject permission that only allows objects with server-side encryption, set the condition key of s3:x-amz-server-side-encryption to "aws:kms" . For more information, see KMS-Managed Encryption Keys in the Amazon Simple Storage Service Developer Guide.

        The KMS key policy must grant permission to the IAM role that you specify in your CreateTrainingJob , CreateTransformJob , or CreateHyperParameterTuningJob requests. For more information, see Using Key Policies in AWS KMS in the AWS Key Management Service Developer Guide .

      • S3OutputPath (string) --

        Identifies the S3 path where you want Amazon SageMaker to store the model artifacts. For example, s3://bucket-name/key-name-prefix .

    • ResourceConfig (dict) --

      Resources, including ML compute instances and ML storage volumes, that are configured for model training.

      • InstanceType (string) --

        The ML compute instance type.

      • InstanceCount (integer) --

        The number of ML compute instances to use. For distributed training, provide a value greater than 1.

      • VolumeSizeInGB (integer) --

        The size of the ML storage volume that you want to provision.

        ML storage volumes store model artifacts and incremental states. Training algorithms might also use the ML storage volume for scratch space. If you want to store the training data in the ML storage volume, choose File as the TrainingInputMode in the algorithm specification.

        You must specify sufficient ML storage for your scenario.

        Note

        Amazon SageMaker supports only the General Purpose SSD (gp2) ML storage volume type.

        Note

        Certain Nitro-based instances include local storage with a fixed total size, dependent on the instance type. When using these instances for training, Amazon SageMaker mounts the local instance storage instead of Amazon EBS gp2 storage. You can't request a VolumeSizeInGB greater than the total size of the local instance storage.

        For a list of instance types that support local instance storage, including the total size per instance type, see Instance Store Volumes .

      • VolumeKmsKeyId (string) --

        The AWS KMS key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the training job.

        Note

        Certain Nitro-based instances include local storage, dependent on the instance type. Local storage volumes are encrypted using a hardware module on the instance. You can't request a VolumeKmsKeyId when using an instance type with local storage.

        For a list of instance types that support local instance storage, see Instance Store Volumes .

        For more information about local instance storage encryption, see SSD Instance Store Volumes .

        The VolumeKmsKeyId can be in any of the following formats:

        • // KMS Key ID "1234abcd-12ab-34cd-56ef-1234567890ab"

        • // Amazon Resource Name (ARN) of a KMS Key "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

    • VpcConfig (dict) --

      A VpcConfig object that specifies the VPC that this training job has access to. For more information, see Protect Training Jobs by Using an Amazon Virtual Private Cloud .

      • SecurityGroupIds (list) --

        The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field.

        • (string) --

      • Subnets (list) --

        The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones .

        • (string) --

    • StoppingCondition (dict) --

      Specifies a limit to how long a model training job can run. It also specifies the maximum time to wait for a spot instance. When the job reaches the time limit, Amazon SageMaker ends the training job. Use this API to cap model training costs.

      To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which delays job termination for 120 seconds. Algorithms can use this 120-second window to save the model artifacts, so the results of training are not lost.

      • MaxRuntimeInSeconds (integer) --

        The maximum length of time, in seconds, that the training or compilation job can run. If job does not complete during this time, Amazon SageMaker ends the job. If value is not specified, default value is 1 day. The maximum value is 28 days.

      • MaxWaitTimeInSeconds (integer) --

        The maximum length of time, in seconds, how long you are willing to wait for a managed spot training job to complete. It is the amount of time spent waiting for Spot capacity plus the amount of time the training job runs. It must be equal to or greater than MaxRuntimeInSeconds .

    • CreationTime (datetime) --

      A timestamp that indicates when the training job was created.

    • TrainingStartTime (datetime) --

      Indicates the time when the training job starts on training instances. You are billed for the time interval between this time and the value of TrainingEndTime . The start time in CloudWatch Logs might be later than this time. The difference is due to the time it takes to download the training data and to the size of the training container.

    • TrainingEndTime (datetime) --

      Indicates the time when the training job ends on training instances. You are billed for the time interval between the value of TrainingStartTime and this time. For successful jobs and stopped jobs, this is the time after model artifacts are uploaded. For failed jobs, this is the time when Amazon SageMaker detects a job failure.

    • LastModifiedTime (datetime) --

      A timestamp that indicates when the status of the training job was last modified.

    • SecondaryStatusTransitions (list) --

      A history of all of the secondary statuses that the training job has transitioned through.

      • (dict) --

        An array element of DescribeTrainingJobResponse$SecondaryStatusTransitions . It provides additional details about a status that the training job has transitioned through. A training job can be in one of several states, for example, starting, downloading, training, or uploading. Within each state, there are a number of intermediate states. For example, within the starting state, Amazon SageMaker could be starting the training job or launching the ML instances. These transitional states are referred to as the job's secondary status.

        • Status (string) --

          Contains a secondary status information from a training job.

          Status might be one of the following secondary statuses:

          InProgress

          • Starting - Starting the training job.

          • Downloading - An optional stage for algorithms that support File training input mode. It indicates that data is being downloaded to the ML storage volumes.

          • Training - Training is in progress.

          • Uploading - Training is complete and the model artifacts are being uploaded to the S3 location.

            Completed

          • Completed - The training job has completed.

            Failed

          • Failed - The training job has failed. The reason for the failure is returned in the FailureReason field of DescribeTrainingJobResponse .

            Stopped

          • MaxRuntimeExceeded - The job stopped because it exceeded the maximum allowed runtime.

          • Stopped - The training job has stopped.

            Stopping

          • Stopping - Stopping the training job.

          We no longer support the following secondary statuses:

          • LaunchingMLInstances

          • PreparingTrainingStack

          • DownloadingTrainingImage

        • StartTime (datetime) --

          A timestamp that shows when the training job transitioned to the current secondary status state.

        • EndTime (datetime) --

          A timestamp that shows when the training job transitioned out of this secondary status state into another secondary status state or when the training job has ended.

        • StatusMessage (string) --

          A detailed description of the progress within a secondary status.

          Amazon SageMaker provides secondary statuses and status messages that apply to each of them:

          Starting

          • Starting the training job.

          • Launching requested ML instances.

          • Insufficient capacity error from EC2 while launching instances, retrying!

          • Launched instance was unhealthy, replacing it!

          • Preparing the instances for training.

            Training

          • Downloading the training image.

          • Training image download completed. Training in progress.

          Warning

          Status messages are subject to change. Therefore, we recommend not including them in code that programmatically initiates actions. For examples, don't use status messages in if statements.

          To have an overview of your training job's progress, view TrainingJobStatus and SecondaryStatus in DescribeTrainingJob , and StatusMessage together. For example, at the start of a training job, you might see the following:

          • TrainingJobStatus - InProgress

          • SecondaryStatus - Training

          • StatusMessage - Downloading the training image

    • FinalMetricDataList (list) --

      A collection of MetricData objects that specify the names, values, and dates and times that the training algorithm emitted to Amazon CloudWatch.

      • (dict) --

        The name, value, and date and time of a metric that was emitted to Amazon CloudWatch.

        • MetricName (string) --

          The name of the metric.

        • Value (float) --

          The value of the metric.

        • Timestamp (datetime) --

          The date and time that the algorithm emitted the metric.

    • EnableNetworkIsolation (boolean) --

      If you want to allow inbound or outbound network calls, except for calls between peers within a training cluster for distributed training, choose True . If you enable network isolation for training jobs that are configured to use a VPC, Amazon SageMaker downloads and uploads customer data and model artifacts through the specified VPC, but the training container does not have network access.

    • EnableInterContainerTrafficEncryption (boolean) --

      To encrypt all communications between ML compute instances in distributed training, choose True . Encryption provides greater security for distributed training, but training might take longer. How long it takes depends on the amount of communication between compute instances, especially if you use a deep learning algorithms in distributed training.

    • EnableManagedSpotTraining (boolean) --

      A Boolean indicating whether managed spot training is enabled (True ) or not (False ).

    • CheckpointConfig (dict) --

      Contains information about the output location for managed spot training checkpoint data.

      • S3Uri (string) --

        Identifies the S3 path where you want Amazon SageMaker to store checkpoints. For example, s3://bucket-name/key-name-prefix .

      • LocalPath (string) --

        (Optional) The local directory where checkpoints are written. The default directory is /opt/ml/checkpoints/ .

    • TrainingTimeInSeconds (integer) --

      The training time in seconds.

    • BillableTimeInSeconds (integer) --

      The billable time in seconds.

      You can calculate the savings from using managed spot training using the formula (1 - BillableTimeInSeconds / TrainingTimeInSeconds) * 100 . For example, if BillableTimeInSeconds is 100 and TrainingTimeInSeconds is 500, the savings is 80%.

    • DebugHookConfig (dict) --

      Configuration information for the Debugger hook parameters, metric and tensor collections, and storage paths. To learn more about how to configure the DebugHookConfig parameter, see Use the SageMaker and Debugger Configuration API Operations to Create, Update, and Debug Your Training Job .

      • LocalPath (string) --

        Path to local storage location for metrics and tensors. Defaults to /opt/ml/output/tensors/ .

      • S3OutputPath (string) --

        Path to Amazon S3 storage location for metrics and tensors.

      • HookParameters (dict) --

        Configuration information for the Debugger hook parameters.

        • (string) --

          • (string) --

      • CollectionConfigurations (list) --

        Configuration information for Debugger tensor collections. To learn more about how to configure the CollectionConfiguration parameter, see Use the SageMaker and Debugger Configuration API Operations to Create, Update, and Debug Your Training Job .

        • (dict) --

          Configuration information for the Debugger output tensor collections.

          • CollectionName (string) --

            The name of the tensor collection. The name must be unique relative to other rule configuration names.

          • CollectionParameters (dict) --

            Parameter values for the tensor collection. The allowed parameters are "name" , "include_regex" , "reduction_config" , "save_config" , "tensor_names" , and "save_histogram" .

            • (string) --

              • (string) --

    • ExperimentConfig (dict) --

      Associates a SageMaker job as a trial component with an experiment and trial. Specified when you call the following APIs:

      • CreateProcessingJob

      • CreateTrainingJob

      • CreateTransformJob

      • ExperimentName (string) --

        The name of an existing experiment to associate the trial component with.

      • TrialName (string) --

        The name of an existing trial to associate the trial component with. If not specified, a new trial is created.

      • TrialComponentDisplayName (string) --

        The display name for the trial component. If this key isn't specified, the display name is the trial component name.

    • DebugRuleConfigurations (list) --

      Configuration information for Debugger rules for debugging output tensors.

      • (dict) --

        Configuration information for SageMaker Debugger rules for debugging. To learn more about how to configure the DebugRuleConfiguration parameter, see Use the SageMaker and Debugger Configuration API Operations to Create, Update, and Debug Your Training Job .

        • RuleConfigurationName (string) --

          The name of the rule configuration. It must be unique relative to other rule configuration names.

        • LocalPath (string) --

          Path to local storage location for output of rules. Defaults to /opt/ml/processing/output/rule/ .

        • S3OutputPath (string) --

          Path to Amazon S3 storage location for rules.

        • RuleEvaluatorImage (string) --

          The Amazon Elastic Container (ECR) Image for the managed rule evaluation.

        • InstanceType (string) --

          The instance type to deploy a Debugger custom rule for debugging a training job.

        • VolumeSizeInGB (integer) --

          The size, in GB, of the ML storage volume attached to the processing instance.

        • RuleParameters (dict) --

          Runtime configuration for rule container.

          • (string) --

            • (string) --

    • TensorBoardOutputConfig (dict) --

      Configuration of storage locations for the Debugger TensorBoard output data.

      • LocalPath (string) --

        Path to local storage location for tensorBoard output. Defaults to /opt/ml/output/tensorboard .

      • S3OutputPath (string) --

        Path to Amazon S3 storage location for TensorBoard output.

    • DebugRuleEvaluationStatuses (list) --

      Evaluation status of Debugger rules for debugging on a training job.

      • (dict) --

        Information about the status of the rule evaluation.

        • RuleConfigurationName (string) --

          The name of the rule configuration.

        • RuleEvaluationJobArn (string) --

          The Amazon Resource Name (ARN) of the rule evaluation job.

        • RuleEvaluationStatus (string) --

          Status of the rule evaluation.

        • StatusDetails (string) --

          Details from the rule evaluation.

        • LastModifiedTime (datetime) --

          Timestamp when the rule evaluation status was last modified.

    • ProfilerConfig (dict) --

      Configuration information for Debugger system monitoring, framework profiling, and storage paths.

      • S3OutputPath (string) --

        Path to Amazon S3 storage location for system and framework metrics.

      • ProfilingIntervalInMilliseconds (integer) --

        A time interval for capturing system metrics in milliseconds. Available values are 100, 200, 500, 1000 (1 second), 5000 (5 seconds), and 60000 (1 minute) milliseconds. The default value is 500 milliseconds.

      • ProfilingParameters (dict) --

        Configuration information for capturing framework metrics. Available key strings for different profiling options are DetailedProfilingConfig , PythonProfilingConfig , and DataLoaderProfilingConfig . The following codes are configuration structures for the ProfilingParameters parameter. To learn more about how to configure the ProfilingParameters parameter, see Use the SageMaker and Debugger Configuration API Operations to Create, Update, and Debug Your Training Job .

        • (string) --

          • (string) --

    • ProfilerRuleConfigurations (list) --

      Configuration information for Debugger rules for profiling system and framework metrics.

      • (dict) --

        Configuration information for profiling rules.

        • RuleConfigurationName (string) --

          The name of the rule configuration. It must be unique relative to other rule configuration names.

        • LocalPath (string) --

          Path to local storage location for output of rules. Defaults to /opt/ml/processing/output/rule/ .

        • S3OutputPath (string) --

          Path to Amazon S3 storage location for rules.

        • RuleEvaluatorImage (string) --

          The Amazon Elastic Container (ECR) Image for the managed rule evaluation.

        • InstanceType (string) --

          The instance type to deploy a Debugger custom rule for profiling a training job.

        • VolumeSizeInGB (integer) --

          The size, in GB, of the ML storage volume attached to the processing instance.

        • RuleParameters (dict) --

          Runtime configuration for rule container.

          • (string) --

            • (string) --

    • ProfilerRuleEvaluationStatuses (list) --

      Evaluation status of Debugger rules for profiling on a training job.

      • (dict) --

        Information about the status of the rule evaluation.

        • RuleConfigurationName (string) --

          The name of the rule configuration.

        • RuleEvaluationJobArn (string) --

          The Amazon Resource Name (ARN) of the rule evaluation job.

        • RuleEvaluationStatus (string) --

          Status of the rule evaluation.

        • StatusDetails (string) --

          Details from the rule evaluation.

        • LastModifiedTime (datetime) --

          Timestamp when the rule evaluation status was last modified.

    • ProfilingStatus (string) --

      Profiling status of a training job.

ListMonitoringExecutions (updated) Link ¶
Changes (request, response)
Request
{'MonitoringJobDefinitionName': 'string',
 'MonitoringTypeEquals': 'DataQuality | ModelQuality | ModelBias | '
                         'ModelExplainability'}
Response
{'MonitoringExecutionSummaries': {'MonitoringJobDefinitionName': 'string',
                                  'MonitoringType': 'DataQuality | '
                                                    'ModelQuality | ModelBias '
                                                    '| ModelExplainability'}}

Returns list of all monitoring job executions.

See also: AWS API Documentation

Request Syntax

client.list_monitoring_executions(
    MonitoringScheduleName='string',
    EndpointName='string',
    SortBy='CreationTime'|'ScheduledTime'|'Status',
    SortOrder='Ascending'|'Descending',
    NextToken='string',
    MaxResults=123,
    ScheduledTimeBefore=datetime(2015, 1, 1),
    ScheduledTimeAfter=datetime(2015, 1, 1),
    CreationTimeBefore=datetime(2015, 1, 1),
    CreationTimeAfter=datetime(2015, 1, 1),
    LastModifiedTimeBefore=datetime(2015, 1, 1),
    LastModifiedTimeAfter=datetime(2015, 1, 1),
    StatusEquals='Pending'|'Completed'|'CompletedWithViolations'|'InProgress'|'Failed'|'Stopping'|'Stopped',
    MonitoringJobDefinitionName='string',
    MonitoringTypeEquals='DataQuality'|'ModelQuality'|'ModelBias'|'ModelExplainability'
)
type MonitoringScheduleName

string

param MonitoringScheduleName

Name of a specific schedule to fetch jobs for.

type EndpointName

string

param EndpointName

Name of a specific endpoint to fetch jobs for.

type SortBy

string

param SortBy

Whether to sort results by Status , CreationTime , ScheduledTime field. The default is CreationTime .

type SortOrder

string

param SortOrder

Whether to sort the results in Ascending or Descending order. The default is Descending .

type NextToken

string

param NextToken

The token returned if the response is truncated. To retrieve the next set of job executions, use it in the next request.

type MaxResults

integer

param MaxResults

The maximum number of jobs to return in the response. The default value is 10.

type ScheduledTimeBefore

datetime

param ScheduledTimeBefore

Filter for jobs scheduled before a specified time.

type ScheduledTimeAfter

datetime

param ScheduledTimeAfter

Filter for jobs scheduled after a specified time.

type CreationTimeBefore

datetime

param CreationTimeBefore

A filter that returns only jobs created before a specified time.

type CreationTimeAfter

datetime

param CreationTimeAfter

A filter that returns only jobs created after a specified time.

type LastModifiedTimeBefore

datetime

param LastModifiedTimeBefore

A filter that returns only jobs modified after a specified time.

type LastModifiedTimeAfter

datetime

param LastModifiedTimeAfter

A filter that returns only jobs modified before a specified time.

type StatusEquals

string

param StatusEquals

A filter that retrieves only jobs with a specific status.

type MonitoringJobDefinitionName

string

param MonitoringJobDefinitionName

Gets a list of the monitoring job runs of the specified monitoring job definitions.

type MonitoringTypeEquals

string

param MonitoringTypeEquals

A filter that returns only the monitoring job runs of the specified monitoring type.

rtype

dict

returns

Response Syntax

{
    'MonitoringExecutionSummaries': [
        {
            'MonitoringScheduleName': 'string',
            'ScheduledTime': datetime(2015, 1, 1),
            'CreationTime': datetime(2015, 1, 1),
            'LastModifiedTime': datetime(2015, 1, 1),
            'MonitoringExecutionStatus': 'Pending'|'Completed'|'CompletedWithViolations'|'InProgress'|'Failed'|'Stopping'|'Stopped',
            'ProcessingJobArn': 'string',
            'EndpointName': 'string',
            'FailureReason': 'string',
            'MonitoringJobDefinitionName': 'string',
            'MonitoringType': 'DataQuality'|'ModelQuality'|'ModelBias'|'ModelExplainability'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • MonitoringExecutionSummaries (list) --

      A JSON array in which each element is a summary for a monitoring execution.

      • (dict) --

        Summary of information about the last monitoring job to run.

        • MonitoringScheduleName (string) --

          The name of the monitoring schedule.

        • ScheduledTime (datetime) --

          The time the monitoring job was scheduled.

        • CreationTime (datetime) --

          The time at which the monitoring job was created.

        • LastModifiedTime (datetime) --

          A timestamp that indicates the last time the monitoring job was modified.

        • MonitoringExecutionStatus (string) --

          The status of the monitoring job.

        • ProcessingJobArn (string) --

          The Amazon Resource Name (ARN) of the monitoring job.

        • EndpointName (string) --

          The name of the endpoint used to run the monitoring job.

        • FailureReason (string) --

          Contains the reason a monitoring job failed, if it failed.

        • MonitoringJobDefinitionName (string) --

          The name of the monitoring job.

        • MonitoringType (string) --

          The type of the monitoring job.

    • NextToken (string) --

      If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of jobs, use it in the subsequent reques

ListMonitoringSchedules (updated) Link ¶
Changes (request, response)
Request
{'MonitoringJobDefinitionName': 'string',
 'MonitoringTypeEquals': 'DataQuality | ModelQuality | ModelBias | '
                         'ModelExplainability'}
Response
{'MonitoringScheduleSummaries': {'MonitoringJobDefinitionName': 'string',
                                 'MonitoringType': 'DataQuality | ModelQuality '
                                                   '| ModelBias | '
                                                   'ModelExplainability'}}

Returns list of all monitoring schedules.

See also: AWS API Documentation

Request Syntax

client.list_monitoring_schedules(
    EndpointName='string',
    SortBy='Name'|'CreationTime'|'Status',
    SortOrder='Ascending'|'Descending',
    NextToken='string',
    MaxResults=123,
    NameContains='string',
    CreationTimeBefore=datetime(2015, 1, 1),
    CreationTimeAfter=datetime(2015, 1, 1),
    LastModifiedTimeBefore=datetime(2015, 1, 1),
    LastModifiedTimeAfter=datetime(2015, 1, 1),
    StatusEquals='Pending'|'Failed'|'Scheduled'|'Stopped',
    MonitoringJobDefinitionName='string',
    MonitoringTypeEquals='DataQuality'|'ModelQuality'|'ModelBias'|'ModelExplainability'
)
type EndpointName

string

param EndpointName

Name of a specific endpoint to fetch schedules for.

type SortBy

string

param SortBy

Whether to sort results by Status , CreationTime , ScheduledTime field. The default is CreationTime .

type SortOrder

string

param SortOrder

Whether to sort the results in Ascending or Descending order. The default is Descending .

type NextToken

string

param NextToken

The token returned if the response is truncated. To retrieve the next set of job executions, use it in the next request.

type MaxResults

integer

param MaxResults

The maximum number of jobs to return in the response. The default value is 10.

type NameContains

string

param NameContains

Filter for monitoring schedules whose name contains a specified string.

type CreationTimeBefore

datetime

param CreationTimeBefore

A filter that returns only monitoring schedules created before a specified time.

type CreationTimeAfter

datetime

param CreationTimeAfter

A filter that returns only monitoring schedules created after a specified time.

type LastModifiedTimeBefore

datetime

param LastModifiedTimeBefore

A filter that returns only monitoring schedules modified before a specified time.

type LastModifiedTimeAfter

datetime

param LastModifiedTimeAfter

A filter that returns only monitoring schedules modified after a specified time.

type StatusEquals

string

param StatusEquals

A filter that returns only monitoring schedules modified before a specified time.

type MonitoringJobDefinitionName

string

param MonitoringJobDefinitionName

Gets a list of the monitoring schedules for the specified monitoring job definition.

type MonitoringTypeEquals

string

param MonitoringTypeEquals

A filter that returns only the monitoring schedules for the specified monitoring type.

rtype

dict

returns

Response Syntax

{
    'MonitoringScheduleSummaries': [
        {
            'MonitoringScheduleName': 'string',
            'MonitoringScheduleArn': 'string',
            'CreationTime': datetime(2015, 1, 1),
            'LastModifiedTime': datetime(2015, 1, 1),
            'MonitoringScheduleStatus': 'Pending'|'Failed'|'Scheduled'|'Stopped',
            'EndpointName': 'string',
            'MonitoringJobDefinitionName': 'string',
            'MonitoringType': 'DataQuality'|'ModelQuality'|'ModelBias'|'ModelExplainability'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • MonitoringScheduleSummaries (list) --

      A JSON array in which each element is a summary for a monitoring schedule.

      • (dict) --

        Summarizes the monitoring schedule.

        • MonitoringScheduleName (string) --

          The name of the monitoring schedule.

        • MonitoringScheduleArn (string) --

          The Amazon Resource Name (ARN) of the monitoring schedule.

        • CreationTime (datetime) --

          The creation time of the monitoring schedule.

        • LastModifiedTime (datetime) --

          The last time the monitoring schedule was modified.

        • MonitoringScheduleStatus (string) --

          The status of the monitoring schedule.

        • EndpointName (string) --

          The name of the endpoint using the monitoring schedule.

        • MonitoringJobDefinitionName (string) --

          The name of the monitoring job definition that the schedule is for.

        • MonitoringType (string) --

          The type of the monitoring job definition that the schedule is for.

    • NextToken (string) --

      If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of jobs, use it in the subsequent request.

UpdateMonitoringSchedule (updated) Link ¶
Changes (request)
{'MonitoringScheduleConfig': {'MonitoringJobDefinition': {'BaselineConfig': {'BaseliningJobName': 'string'},
                                                          'MonitoringInputs': {'EndpointInput': {'EndTimeOffset': 'string',
                                                                                                 'FeaturesAttribute': 'string',
                                                                                                 'InferenceAttribute': 'string',
                                                                                                 'ProbabilityAttribute': 'string',
                                                                                                 'ProbabilityThresholdAttribute': 'double',
                                                                                                 'StartTimeOffset': 'string'}}},
                              'MonitoringJobDefinitionName': 'string',
                              'MonitoringType': 'DataQuality | ModelQuality | '
                                                'ModelBias | '
                                                'ModelExplainability'}}

Updates a previously created schedule.

See also: AWS API Documentation

Request Syntax

client.update_monitoring_schedule(
    MonitoringScheduleName='string',
    MonitoringScheduleConfig={
        'ScheduleConfig': {
            'ScheduleExpression': 'string'
        },
        'MonitoringJobDefinition': {
            'BaselineConfig': {
                'BaseliningJobName': 'string',
                'ConstraintsResource': {
                    'S3Uri': 'string'
                },
                'StatisticsResource': {
                    'S3Uri': 'string'
                }
            },
            'MonitoringInputs': [
                {
                    'EndpointInput': {
                        'EndpointName': 'string',
                        'LocalPath': 'string',
                        'S3InputMode': 'Pipe'|'File',
                        'S3DataDistributionType': 'FullyReplicated'|'ShardedByS3Key',
                        'FeaturesAttribute': 'string',
                        'InferenceAttribute': 'string',
                        'ProbabilityAttribute': 'string',
                        'ProbabilityThresholdAttribute': 123.0,
                        'StartTimeOffset': 'string',
                        'EndTimeOffset': 'string'
                    }
                },
            ],
            'MonitoringOutputConfig': {
                'MonitoringOutputs': [
                    {
                        'S3Output': {
                            'S3Uri': 'string',
                            'LocalPath': 'string',
                            'S3UploadMode': 'Continuous'|'EndOfJob'
                        }
                    },
                ],
                'KmsKeyId': 'string'
            },
            'MonitoringResources': {
                'ClusterConfig': {
                    'InstanceCount': 123,
                    'InstanceType': 'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge'|'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.r5.large'|'ml.r5.xlarge'|'ml.r5.2xlarge'|'ml.r5.4xlarge'|'ml.r5.8xlarge'|'ml.r5.12xlarge'|'ml.r5.16xlarge'|'ml.r5.24xlarge',
                    'VolumeSizeInGB': 123,
                    'VolumeKmsKeyId': 'string'
                }
            },
            'MonitoringAppSpecification': {
                'ImageUri': 'string',
                'ContainerEntrypoint': [
                    'string',
                ],
                'ContainerArguments': [
                    'string',
                ],
                'RecordPreprocessorSourceUri': 'string',
                'PostAnalyticsProcessorSourceUri': 'string'
            },
            'StoppingCondition': {
                'MaxRuntimeInSeconds': 123
            },
            'Environment': {
                'string': 'string'
            },
            'NetworkConfig': {
                'EnableInterContainerTrafficEncryption': True|False,
                'EnableNetworkIsolation': True|False,
                'VpcConfig': {
                    'SecurityGroupIds': [
                        'string',
                    ],
                    'Subnets': [
                        'string',
                    ]
                }
            },
            'RoleArn': 'string'
        },
        'MonitoringJobDefinitionName': 'string',
        'MonitoringType': 'DataQuality'|'ModelQuality'|'ModelBias'|'ModelExplainability'
    }
)
type MonitoringScheduleName

string

param MonitoringScheduleName

[REQUIRED]

The name of the monitoring schedule. The name must be unique within an AWS Region within an AWS account.

type MonitoringScheduleConfig

dict

param MonitoringScheduleConfig

[REQUIRED]

The configuration object that specifies the monitoring schedule and defines the monitoring job.

  • ScheduleConfig (dict) --

    Configures the monitoring schedule.

    • ScheduleExpression (string) -- [REQUIRED]

      A cron expression that describes details about the monitoring schedule.

      Currently the only supported cron expressions are:

      • If you want to set the job to start every hour, please use the following: Hourly: cron(0 * ? * * *)

      • If you want to start the job daily: cron(0 [00-23] ? * * *)

      For example, the following are valid cron expressions:

      • Daily at noon UTC: cron(0 12 ? * * *)

      • Daily at midnight UTC: cron(0 0 ? * * *)

      To support running every 6, 12 hours, the following are also supported:

      cron(0 [00-23]/[01-24] ? * * *)

      For example, the following are valid cron expressions:

      • Every 12 hours, starting at 5pm UTC: cron(0 17/12 ? * * *)

      • Every two hours starting at midnight: cron(0 0/2 ? * * *)

      Note

      • Even though the cron expression is set to start at 5PM UTC, note that there could be a delay of 0-20 minutes from the actual requested time to run the execution.

      • We recommend that if you would like a daily schedule, you do not provide this parameter. Amazon SageMaker will pick a time for running every day.

  • MonitoringJobDefinition (dict) --

    Defines the monitoring job.

    • BaselineConfig (dict) --

      Baseline configuration used to validate that the data conforms to the specified constraints and statistics

      • BaseliningJobName (string) --

        The name of the job that performs baselining for the monitoring job.

      • ConstraintsResource (dict) --

        The baseline constraint file in Amazon S3 that the current monitoring job should validated against.

        • S3Uri (string) --

          The Amazon S3 URI for the constraints resource.

      • StatisticsResource (dict) --

        The baseline statistics file in Amazon S3 that the current monitoring job should be validated against.

        • S3Uri (string) --

          The Amazon S3 URI for the statistics resource.

    • MonitoringInputs (list) -- [REQUIRED]

      The array of inputs for the monitoring job. Currently we support monitoring an Amazon SageMaker Endpoint.

      • (dict) --

        The inputs for a monitoring job.

        • EndpointInput (dict) -- [REQUIRED]

          The endpoint for a monitoring job.

          • EndpointName (string) -- [REQUIRED]

            An endpoint in customer's account which has enabled DataCaptureConfig enabled.

          • LocalPath (string) -- [REQUIRED]

            Path to the filesystem where the endpoint data is available to the container.

          • S3InputMode (string) --

            Whether the Pipe or File is used as the input mode for transfering data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .

          • S3DataDistributionType (string) --

            Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defauts to FullyReplicated

          • FeaturesAttribute (string) --

            The attributes of the input data that are the input features.

          • InferenceAttribute (string) --

            The attribute of the input data that represents the ground truth label.

          • ProbabilityAttribute (string) --

            In a classification problem, the attribute that represents the class probability.

          • ProbabilityThresholdAttribute (float) --

            The threshold for the class probability to be evaluated as a positive result.

          • StartTimeOffset (string) --

            If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs .

          • EndTimeOffset (string) --

            If specified, monitoring jobs substract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs .

    • MonitoringOutputConfig (dict) -- [REQUIRED]

      The array of outputs from the monitoring job to be uploaded to Amazon Simple Storage Service (Amazon S3).

      • MonitoringOutputs (list) -- [REQUIRED]

        Monitoring outputs for monitoring jobs. This is where the output of the periodic monitoring jobs is uploaded.

        • (dict) --

          The output object for a monitoring job.

          • S3Output (dict) -- [REQUIRED]

            The Amazon S3 storage location where the results of a monitoring job are saved.

            • S3Uri (string) -- [REQUIRED]

              A URI that identifies the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job.

            • LocalPath (string) -- [REQUIRED]

              The local path to the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job. LocalPath is an absolute path for the output data.

            • S3UploadMode (string) --

              Whether to upload the results of the monitoring job continuously or after the job completes.

      • KmsKeyId (string) --

        The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.

    • MonitoringResources (dict) -- [REQUIRED]

      Identifies the resources, ML compute instances, and ML storage volumes to deploy for a monitoring job. In distributed processing, you specify more than one instance.

      • ClusterConfig (dict) -- [REQUIRED]

        The configuration for the cluster resources used to run the processing job.

        • InstanceCount (integer) -- [REQUIRED]

          The number of ML compute instances to use in the model monitoring job. For distributed processing jobs, specify a value greater than 1. The default value is 1.

        • InstanceType (string) -- [REQUIRED]

          The ML compute instance type for the processing job.

        • VolumeSizeInGB (integer) -- [REQUIRED]

          The size of the ML storage volume, in gigabytes, that you want to provision. You must specify sufficient ML storage for your scenario.

        • VolumeKmsKeyId (string) --

          The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.

    • MonitoringAppSpecification (dict) -- [REQUIRED]

      Configures the monitoring job to run a specified Docker container image.

      • ImageUri (string) -- [REQUIRED]

        The container image to be run by the monitoring job.

      • ContainerEntrypoint (list) --

        Specifies the entrypoint for a container used to run the monitoring job.

        • (string) --

      • ContainerArguments (list) --

        An array of arguments for the container used to run the monitoring job.

        • (string) --

      • RecordPreprocessorSourceUri (string) --

        An Amazon S3 URI to a script that is called per row prior to running analysis. It can base64 decode the payload and convert it into a flatted json so that the built-in container can use the converted data. Applicable only for the built-in (first party) containers.

      • PostAnalyticsProcessorSourceUri (string) --

        An Amazon S3 URI to a script that is called after analysis has been performed. Applicable only for the built-in (first party) containers.

    • StoppingCondition (dict) --

      Specifies a time limit for how long the monitoring job is allowed to run.

      • MaxRuntimeInSeconds (integer) -- [REQUIRED]

        The maximum runtime allowed in seconds.

    • Environment (dict) --

      Sets the environment variables in the Docker container.

      • (string) --

        • (string) --

    • NetworkConfig (dict) --

      Specifies networking options for an monitoring job.

      • EnableInterContainerTrafficEncryption (boolean) --

        Whether to encrypt all communications between distributed processing jobs. Choose True to encrypt communications. Encryption provides greater security for distributed processing jobs, but the processing might take longer.

      • EnableNetworkIsolation (boolean) --

        Whether to allow inbound and outbound network calls to and from the containers used for the processing job.

      • VpcConfig (dict) --

        Specifies a VPC that your training jobs and hosted models have access to. Control access to and from your training and model containers by configuring the VPC. For more information, see Protect Endpoints by Using an Amazon Virtual Private Cloud and Protect Training Jobs by Using an Amazon Virtual Private Cloud .

        • SecurityGroupIds (list) -- [REQUIRED]

          The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field.

          • (string) --

        • Subnets (list) -- [REQUIRED]

          The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones .

          • (string) --

    • RoleArn (string) -- [REQUIRED]

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

  • MonitoringJobDefinitionName (string) --

    The name of the monitoring job definition to schedule.

  • MonitoringType (string) --

    The type of the monitoring job definition to schedule.

rtype

dict

returns

Response Syntax

{
    'MonitoringScheduleArn': 'string'
}

Response Structure

  • (dict) --

    • MonitoringScheduleArn (string) --

      The Amazon Resource Name (ARN) of the monitoring schedule.