Skip to content
v2.278.0

InlineExamplesSourceProperty ​

Struct External

Inline examples provided directly in the request body.

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';

declare const examples: any;
const inlineExamplesSourceProperty: bedrockagentcore.CfnDataset.InlineExamplesSourceProperty = {
  examples: [examples],
};
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

# examples: Any

inline_examples_source_property = bedrockagentcore.CfnDataset.InlineExamplesSourceProperty(
    examples=[examples]
)
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.*;

Object examples;

InlineExamplesSourceProperty inlineExamplesSourceProperty = InlineExamplesSourceProperty.builder()
        .examples(List.of(examples))
        .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 examples;

var inlineExamplesSourceProperty = new InlineExamplesSourceProperty {
    Examples = new [] { examples }
};
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"

var examples interface{}

inlineExamplesSourceProperty := &InlineExamplesSourceProperty{
	Examples: []interface{}{
		examples,
	},
}

Properties ​

examplesany[] | IResolvableexamplestyping.Union[typing.List[Any], IResolvable]examplesList<Object>Examplesobject[]Examplesinterface{} required #
Examples to add.

Each example is a free-form JSON document validated against the declared schemaType.