Class CfnIndex
An OpenSearch Serverless index resource.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.OpenSearchServerless
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnIndex : CfnResource, IInspectable
Syntax (vb)
Public Class CfnIndex
Inherits CfnResource
Implements IInspectable
Remarks
CloudformationResource: AWS::OpenSearchServerless::Index
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.OpenSearchServerless;
PropertyMappingProperty propertyMappingProperty_;
var cfnIndex = new CfnIndex(this, "MyCfnIndex", new CfnIndexProps {
CollectionEndpoint = "collectionEndpoint",
IndexName = "indexName",
// the properties below are optional
Mappings = new MappingsProperty {
Properties = new Dictionary<string, object> {
{ "propertiesKey", new PropertyMappingProperty {
Type = "type",
// the properties below are optional
Dimension = 123,
Index = false,
Method = new MethodProperty {
Engine = "engine",
Name = "name",
// the properties below are optional
Parameters = new ParametersProperty {
EfConstruction = 123,
M = 123
},
SpaceType = "spaceType"
},
Properties = new Dictionary<string, object> {
{ "propertiesKey", propertyMappingProperty_ }
},
Value = "value"
} }
}
},
Settings = new IndexSettingsProperty {
Index = new IndexProperty {
Knn = false,
KnnAlgoParamEfSearch = 123,
RefreshInterval = "refreshInterval"
}
}
});
Synopsis
Constructors
Cfn |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Cfn |
Used by jsii to construct an instance of this class from DeputyProps |
Cfn |
Properties
Attr |
The unique identifier for the index. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
Cfn |
|
Collection |
The endpoint for the collection. |
Index |
The name of the OpenSearch Serverless index. |
Mappings | Index mappings for the OpenSearch Serverless index. |
Settings | Index settings for the OpenSearch Serverless index. |
Methods
Inspect(Tree |
Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnIndex(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnIndex(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
CfnIndex(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnIndex(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
CfnIndex(Construct, String, ICfnIndexProps)
public CfnIndex(Construct scope, string id, ICfnIndexProps props)
Parameters
- scope Constructs.
Construct Scope in which this resource is defined.
- id System.
String Construct identifier for this resource (unique in its scope).
- props ICfn
Index Props Resource properties.
Properties
AttrUuid
The unique identifier for the index.
public virtual string AttrUuid { get; }
Property Value
System.
Remarks
CloudformationAttribute: Uuid
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.
Overrides
CollectionEndpoint
The endpoint for the collection.
public virtual string CollectionEndpoint { get; set; }
Property Value
System.
IndexName
The name of the OpenSearch Serverless index.
public virtual string IndexName { get; set; }
Property Value
System.
Mappings
Index mappings for the OpenSearch Serverless index.
public virtual object Mappings { get; set; }
Property Value
System.
Settings
Index settings for the OpenSearch Serverless index.
public virtual object Settings { get; set; }
Property Value
System.
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector Tree
Inspector tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.
Collections. <System.Generic. IDictionary String , System.Object >
Returns
System.