# EmbeddingModelConfigurationProperty

The configuration details for the embeddings model.

- Source: Generated at build time
- Type last changed: v2.154.0 · 22 Aug 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';

declare const modelConfiguration: any;
const embeddingModelConfigurationProperty: bedrock.CfnKnowledgeBase.EmbeddingModelConfigurationProperty = {
  bedrockEmbeddingModelConfiguration: {
    audio: [{
      segmentationConfiguration: {
        fixedLengthDuration: 123,
      },
    }],
    dimensions: 123,
    embeddingDataType: 'embeddingDataType',
    modelConfiguration: modelConfiguration,
    video: [{
      segmentationConfiguration: {
        fixedLengthDuration: 123,
      },
    }],
  },
};
```

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_bedrock as bedrock

# model_configuration: Any

embedding_model_configuration_property = bedrock.CfnKnowledgeBase.EmbeddingModelConfigurationProperty(
    bedrock_embedding_model_configuration=bedrock.CfnKnowledgeBase.BedrockEmbeddingModelConfigurationProperty(
        audio=[bedrock.CfnKnowledgeBase.AudioConfigurationProperty(
            segmentation_configuration=bedrock.CfnKnowledgeBase.AudioSegmentationConfigurationProperty(
                fixed_length_duration=123
            )
        )],
        dimensions=123,
        embedding_data_type="embeddingDataType",
        model_configuration=model_configuration,
        video=[bedrock.CfnKnowledgeBase.VideoConfigurationProperty(
            segmentation_configuration=bedrock.CfnKnowledgeBase.VideoSegmentationConfigurationProperty(
                fixed_length_duration=123
            )
        )]
    )
)
```

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.bedrock.*;

Object modelConfiguration;

EmbeddingModelConfigurationProperty embeddingModelConfigurationProperty = EmbeddingModelConfigurationProperty.builder()
        .bedrockEmbeddingModelConfiguration(BedrockEmbeddingModelConfigurationProperty.builder()
                .audio(List.of(AudioConfigurationProperty.builder()
                        .segmentationConfiguration(AudioSegmentationConfigurationProperty.builder()
                                .fixedLengthDuration(123)
                                .build())
                        .build()))
                .dimensions(123)
                .embeddingDataType("embeddingDataType")
                .modelConfiguration(modelConfiguration)
                .video(List.of(VideoConfigurationProperty.builder()
                        .segmentationConfiguration(VideoSegmentationConfigurationProperty.builder()
                                .fixedLengthDuration(123)
                                .build())
                        .build()))
                .build())
        .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.Bedrock;

var modelConfiguration;

var embeddingModelConfigurationProperty = new EmbeddingModelConfigurationProperty {
    BedrockEmbeddingModelConfiguration = new BedrockEmbeddingModelConfigurationProperty {
        Audio = new [] { new AudioConfigurationProperty {
            SegmentationConfiguration = new AudioSegmentationConfigurationProperty {
                FixedLengthDuration = 123
            }
        } },
        Dimensions = 123,
        EmbeddingDataType = "embeddingDataType",
        ModelConfiguration = modelConfiguration,
        Video = new [] { new VideoConfigurationProperty {
            SegmentationConfiguration = new VideoSegmentationConfigurationProperty {
                FixedLengthDuration = 123
            }
        } }
    }
};
```

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"

var modelConfiguration interface{}

embeddingModelConfigurationProperty := &EmbeddingModelConfigurationProperty{
	BedrockEmbeddingModelConfiguration: &BedrockEmbeddingModelConfigurationProperty{
		Audio: []interface{}{
			&AudioConfigurationProperty{
				SegmentationConfiguration: &AudioSegmentationConfigurationProperty{
					FixedLengthDuration: jsii.Number(123),
				},
			},
		},
		Dimensions: jsii.Number(123),
		EmbeddingDataType: jsii.String("embeddingDataType"),
		ModelConfiguration: modelConfiguration,
		Video: []interface{}{
			&VideoConfigurationProperty{
				SegmentationConfiguration: &VideoSegmentationConfigurationProperty{
					FixedLengthDuration: jsii.Number(123),
				},
			},
		},
	},
}
```

## Properties

- `bedrockEmbeddingModelConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnKnowledgeBase.BedrockEmbeddingModelConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.BedrockEmbeddingModelConfigurationProperty.html) — The vector configuration details on the Bedrock embeddings model.
