Interface CfnIndex.PropertyMappingProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnIndex.PropertyMappingProperty.Jsii$Proxy
- Enclosing class:
CfnIndex
@Stability(Stable)
public static interface CfnIndex.PropertyMappingProperty
extends software.amazon.jsii.JsiiSerializable
Property mappings for the OpenSearch Serverless index.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.opensearchserverless.*;
PropertyMappingProperty propertyMappingProperty_;
PropertyMappingProperty propertyMappingProperty = PropertyMappingProperty.builder()
.type("type")
// the properties below are optional
.dimension(123)
.index(false)
.method(MethodProperty.builder()
.name("name")
// the properties below are optional
.engine("engine")
.parameters(ParametersProperty.builder()
.efConstruction(123)
.m(123)
.build())
.spaceType("spaceType")
.build())
.properties(Map.of(
"propertiesKey", propertyMappingProperty_))
.value("value")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnIndex.PropertyMappingPropertystatic final classAn implementation forCfnIndex.PropertyMappingProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default NumberDimension size for vector fields, defines the number of dimensions in the vector.default ObjectgetIndex()Whether a field should be indexed.default ObjectConfiguration for k-NN search method.default ObjectDefines the fields within the mapping, including their types and configurations.getType()The field data type.default StringgetValue()Default value for the field when not specified in a document.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getType
The field data type.Must be a valid OpenSearch field type.
- See Also:
-
getDimension
Dimension size for vector fields, defines the number of dimensions in the vector.- See Also:
-
getIndex
Whether a field should be indexed.Returns union: either
BooleanorIResolvable- See Also:
-
getMethod
Configuration for k-NN search method.Returns union: either
IResolvableorCfnIndex.MethodProperty- See Also:
-
getProperties
Defines the fields within the mapping, including their types and configurations.Returns union: either
IResolvableor Mapinvalid input: '<'String, eitherIResolvableorCfnIndex.PropertyMappingProperty>- See Also:
-
getValue
Default value for the field when not specified in a document.- See Also:
-
builder
-