AsyncInferenceNotificationConfigProperty Struct
Specifies the configuration for notifications of inference results for asynchronous inference.
Example
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 asyncInferenceNotificationConfigProperty: sagemaker.CfnEndpointConfig.AsyncInferenceNotificationConfigProperty = {
errorTopic: 'errorTopic',
includeInferenceResponseIn: ['includeInferenceResponseIn'],
successTopic: 'successTopic',
};
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
async_inference_notification_config_property = sagemaker.CfnEndpointConfig.AsyncInferenceNotificationConfigProperty(
error_topic="errorTopic",
include_inference_response_in=["includeInferenceResponseIn"],
success_topic="successTopic"
)
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.*;
AsyncInferenceNotificationConfigProperty asyncInferenceNotificationConfigProperty = AsyncInferenceNotificationConfigProperty.builder()
.errorTopic("errorTopic")
.includeInferenceResponseIn(List.of("includeInferenceResponseIn"))
.successTopic("successTopic")
.build();
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 asyncInferenceNotificationConfigProperty = new AsyncInferenceNotificationConfigProperty {
ErrorTopic = "errorTopic",
IncludeInferenceResponseIn = new [] { "includeInferenceResponseIn" },
SuccessTopic = "successTopic"
};
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"
asyncInferenceNotificationConfigProperty := &AsyncInferenceNotificationConfigProperty{
ErrorTopic: jsii.String("errorTopic"),
IncludeInferenceResponseIn: []*string{
jsii.String("includeInferenceResponseIn"),
},
SuccessTopic: jsii.String("successTopic"),
}
Properties
errorTopicoptionalstringerror_topicoptionalstrerrorTopicoptionalStringErrorTopicoptionalstringErrorTopicoptional*string#Amazon SNS topic to post a notification to when an inference fails.
If no topic is provided, no notification is sent on failure.
includeInferenceResponseInoptionalstring[]include_inference_response_inoptionaltyping.List[str]includeInferenceResponseInoptionalList<String>IncludeInferenceResponseInoptionalstring[]IncludeInferenceResponseInoptional*[]*string#The Amazon SNS topics where you want the inference response to be included.
The inference response is included only if the response size is less than or equal to 128 KB.
successTopicoptionalstringsuccess_topicoptionalstrsuccessTopicoptionalStringSuccessTopicoptionalstringSuccessTopicoptional*string#Amazon SNS topic to post a notification to when an inference completes successfully.
If no topic is provided, no notification is sent on success.