Skip to content
v2.277.0

AsyncInferenceOutputConfigProperty Struct ​

Specifies the configuration for asynchronous inference invocation outputs.

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 asyncInferenceOutputConfigProperty: sagemaker.CfnEndpointConfig.AsyncInferenceOutputConfigProperty = {
  kmsKeyId: 'kmsKeyId',
  notificationConfig: {
    errorTopic: 'errorTopic',
    includeInferenceResponseIn: ['includeInferenceResponseIn'],
    successTopic: 'successTopic',
  },
  s3FailurePath: 's3FailurePath',
  s3OutputPath: 's3OutputPath',
};
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_output_config_property = sagemaker.CfnEndpointConfig.AsyncInferenceOutputConfigProperty(
    kms_key_id="kmsKeyId",
    notification_config=sagemaker.CfnEndpointConfig.AsyncInferenceNotificationConfigProperty(
        error_topic="errorTopic",
        include_inference_response_in=["includeInferenceResponseIn"],
        success_topic="successTopic"
    ),
    s3_failure_path="s3FailurePath",
    s3_output_path="s3OutputPath"
)
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.*;

AsyncInferenceOutputConfigProperty asyncInferenceOutputConfigProperty = AsyncInferenceOutputConfigProperty.builder()
        .kmsKeyId("kmsKeyId")
        .notificationConfig(AsyncInferenceNotificationConfigProperty.builder()
                .errorTopic("errorTopic")
                .includeInferenceResponseIn(List.of("includeInferenceResponseIn"))
                .successTopic("successTopic")
                .build())
        .s3FailurePath("s3FailurePath")
        .s3OutputPath("s3OutputPath")
        .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 asyncInferenceOutputConfigProperty = new AsyncInferenceOutputConfigProperty {
    KmsKeyId = "kmsKeyId",
    NotificationConfig = new AsyncInferenceNotificationConfigProperty {
        ErrorTopic = "errorTopic",
        IncludeInferenceResponseIn = new [] { "includeInferenceResponseIn" },
        SuccessTopic = "successTopic"
    },
    S3FailurePath = "s3FailurePath",
    S3OutputPath = "s3OutputPath"
};
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"

asyncInferenceOutputConfigProperty := &AsyncInferenceOutputConfigProperty{
	KmsKeyId: jsii.String("kmsKeyId"),
	NotificationConfig: &AsyncInferenceNotificationConfigProperty{
		ErrorTopic: jsii.String("errorTopic"),
		IncludeInferenceResponseIn: []*string{
			jsii.String("includeInferenceResponseIn"),
		},
		SuccessTopic: jsii.String("successTopic"),
	},
	S3FailurePath: jsii.String("s3FailurePath"),
	S3OutputPath: jsii.String("s3OutputPath"),
}

Properties ​

kmsKeyIdoptionalstringkms_key_idoptionalstrkmsKeyIdoptionalStringKmsKeyIdoptionalstringKmsKeyIdoptional*string#
The AWS Key Management Service ( AWS KMS) key that Amazon SageMaker uses to encrypt the asynchronous inference output in Amazon S3.
notificationConfigoptionalIResolvable | CfnEndpointConfig.AsyncInferenceNotificationConfigPropertynotification_configoptionaltyping.Union[IResolvable, AsyncInferenceNotificationConfigProperty]notificationConfigoptionalIResolvableNotificationConfigoptionalIResolvableNotificationConfigoptionalinterface{}#
Specifies the configuration for notifications of inference results for asynchronous inference.
s3FailurePathoptionalstrings3_failure_pathoptionalstrs3FailurePathoptionalStringS3FailurePathoptionalstringS3FailurePathoptional*string#
The Amazon S3 location to upload failure inference responses to.
s3OutputPathoptionalstrings3_output_pathoptionalstrs3OutputPathoptionalStringS3OutputPathoptionalstringS3OutputPathoptional*string#
The Amazon S3 location to upload inference responses to.