# EndpointInputProperty

Input object for the endpoint.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const endpointInputProperty: sagemaker.CfnModelQualityJobDefinition.EndpointInputProperty = {
  endpointName: 'endpointName',
  localPath: 'localPath',

  // the properties below are optional
  endTimeOffset: 'endTimeOffset',
  inferenceAttribute: 'inferenceAttribute',
  probabilityAttribute: 'probabilityAttribute',
  probabilityThresholdAttribute: 123,
  s3DataDistributionType: 's3DataDistributionType',
  s3InputMode: 's3InputMode',
  startTimeOffset: 'startTimeOffset',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker

endpoint_input_property = sagemaker.CfnModelQualityJobDefinition.EndpointInputProperty(
    endpoint_name="endpointName",
    local_path="localPath",

    # the properties below are optional
    end_time_offset="endTimeOffset",
    inference_attribute="inferenceAttribute",
    probability_attribute="probabilityAttribute",
    probability_threshold_attribute=123,
    s3_data_distribution_type="s3DataDistributionType",
    s3_input_mode="s3InputMode",
    start_time_offset="startTimeOffset"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.*;

EndpointInputProperty endpointInputProperty = EndpointInputProperty.builder()
        .endpointName("endpointName")
        .localPath("localPath")

        // the properties below are optional
        .endTimeOffset("endTimeOffset")
        .inferenceAttribute("inferenceAttribute")
        .probabilityAttribute("probabilityAttribute")
        .probabilityThresholdAttribute(123)
        .s3DataDistributionType("s3DataDistributionType")
        .s3InputMode("s3InputMode")
        .startTimeOffset("startTimeOffset")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;

var endpointInputProperty = new EndpointInputProperty {
    EndpointName = "endpointName",
    LocalPath = "localPath",

    // the properties below are optional
    EndTimeOffset = "endTimeOffset",
    InferenceAttribute = "inferenceAttribute",
    ProbabilityAttribute = "probabilityAttribute",
    ProbabilityThresholdAttribute = 123,
    S3DataDistributionType = "s3DataDistributionType",
    S3InputMode = "s3InputMode",
    StartTimeOffset = "startTimeOffset"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

endpointInputProperty := &EndpointInputProperty{
	EndpointName: jsii.String("endpointName"),
	LocalPath: jsii.String("localPath"),

	// the properties below are optional
	EndTimeOffset: jsii.String("endTimeOffset"),
	InferenceAttribute: jsii.String("inferenceAttribute"),
	ProbabilityAttribute: jsii.String("probabilityAttribute"),
	ProbabilityThresholdAttribute: jsii.Number(123),
	S3DataDistributionType: jsii.String("s3DataDistributionType"),
	S3InputMode: jsii.String("s3InputMode"),
	StartTimeOffset: jsii.String("startTimeOffset"),
}
```

## Properties

- `endpointName`: string (required) — An endpoint in customer's account which has enabled `DataCaptureConfig` enabled.

- `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](https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-model-quality-schedule.html) .

- `inferenceAttribute`: string — The attribute of the input data that represents the ground truth label.

- `localPath`: string (required) — Path to the filesystem where the endpoint data is available to the container.

- `probabilityAttribute`: string — In a classification problem, the attribute that represents the class probability.

- `probabilityThresholdAttribute`: number — The threshold for the class probability to be evaluated as a positive result.

- `s3DataDistributionType`: string — Whether input data distributed in Amazon S3 is fully replicated or sharded by an Amazon S3 key.

  Defaults to `FullyReplicated`

- `s3InputMode`: string — Whether the `Pipe` or `File` is used as the input mode for transferring 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` .

- `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](https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-model-quality-schedule.html) .
