# AsyncInferenceOutputConfigProperty

Specifies the configuration for asynchronous inference invocation outputs.

- 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 asyncInferenceOutputConfigProperty: sagemaker.CfnEndpointConfig.AsyncInferenceOutputConfigProperty = {
  kmsKeyId: 'kmsKeyId',
  notificationConfig: {
    errorTopic: 'errorTopic',
    includeInferenceResponseIn: ['includeInferenceResponseIn'],
    successTopic: 'successTopic',
  },
  s3FailurePath: 's3FailurePath',
  s3OutputPath: 's3OutputPath',
};
```

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

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:

```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();
```

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 asyncInferenceOutputConfigProperty = new AsyncInferenceOutputConfigProperty {
    KmsKeyId = "kmsKeyId",
    NotificationConfig = new AsyncInferenceNotificationConfigProperty {
        ErrorTopic = "errorTopic",
        IncludeInferenceResponseIn = new [] { "includeInferenceResponseIn" },
        SuccessTopic = "successTopic"
    },
    S3FailurePath = "s3FailurePath",
    S3OutputPath = "s3OutputPath"
};
```

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"

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

- `kmsKeyId`: string — The AWS Key Management Service ( AWS KMS) key that Amazon SageMaker uses to encrypt the asynchronous inference output in Amazon S3.

- `notificationConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEndpointConfig.AsyncInferenceNotificationConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnEndpointConfig.AsyncInferenceNotificationConfigProperty.html) — Specifies the configuration for notifications of inference results for asynchronous inference.

- `s3FailurePath`: string — The Amazon S3 location to upload failure inference responses to.

- `s3OutputPath`: string — The Amazon S3 location to upload inference responses to.
