Skip to content
v2.278.0

StreamDeliveryContentConfiguration Struct ​

Content configuration for a stream delivery resource.

Defines what content type and detail level to deliver.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const streamDeliveryContentConfiguration: bedrockagentcore.StreamDeliveryContentConfiguration = {
  level: bedrockagentcore.StreamDeliveryContentLevel.METADATA_ONLY,
  type: bedrockagentcore.StreamDeliveryContentType.MEMORY_RECORDS,
};
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_bedrockagentcore as bedrockagentcore

stream_delivery_content_configuration = bedrockagentcore.StreamDeliveryContentConfiguration(
    level=bedrockagentcore.StreamDeliveryContentLevel.METADATA_ONLY,
    type=bedrockagentcore.StreamDeliveryContentType.MEMORY_RECORDS
)
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.bedrockagentcore.*;

StreamDeliveryContentConfiguration streamDeliveryContentConfiguration = StreamDeliveryContentConfiguration.builder()
        .level(StreamDeliveryContentLevel.METADATA_ONLY)
        .type(StreamDeliveryContentType.MEMORY_RECORDS)
        .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.BedrockAgentCore;

var streamDeliveryContentConfiguration = new StreamDeliveryContentConfiguration {
    Level = StreamDeliveryContentLevel.METADATA_ONLY,
    Type = StreamDeliveryContentType.MEMORY_RECORDS
};
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"

streamDeliveryContentConfiguration := &StreamDeliveryContentConfiguration{
	Level: awscdk.Aws_bedrockagentcore.StreamDeliveryContentLevel_METADATA_ONLY,
	Type: awscdk.*Aws_bedrockagentcore.StreamDeliveryContentType_MEMORY_RECORDS,
}

Properties ​

The level of content detail to deliver.
notes

There is no default: the level must be chosen explicitly because FULL_CONTENT delivers complete memory record bodies, which can contain personally identifiable information and other sensitive conversation content. Use METADATA_ONLY unless the record body is required downstream.