@cdklabs/generative-ai-cdk-constructs
@cdklabs/generative-ai-cdk-constructs / opensearchserverless / IVectorCollection
Interface representing a vector collection
IResource
readonly
aossPolicy:ManagedPolicy
An IAM policy that allows API access to the collection.
readonly
collectionArn:string
The ARN of the collection.
readonly
collectionId:string
The ID of the collection.
readonly
collectionName:string
The name of the collection.
readonly
collectionType:VectorCollectionType
Type of collection
readonly
dataAccessPolicy:CfnAccessPolicy
An OpenSearch Access Policy that allows access to the index.
readonly
env:ResourceEnvironment
The environment this resource belongs to. For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
cdk.IResource.env
readonly
node:Node
The tree node.
cdk.IResource.node
readonly
stack:Stack
The stack in which this resource is defined.
cdk.IResource.stack
readonly
standbyReplicas:VectorCollectionStandbyReplicas
Indicates whether standby replicas are enabled.
applyRemovalPolicy(
policy
):void
Apply the given removal policy to this resource
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you’ve removed it from the CDK application or because you’ve made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY
), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN
).
RemovalPolicy
void
cdk.IResource.applyRemovalPolicy
metric(
metricName
,props
?):Metric
Return the given named metric for this VectorCollection.
string
The name of the metric
MetricOptions
Properties for the metric
Metric
metricIndexRequestCount(
props
?):Metric
Metric for the number of index requests.
MetricOptions
Properties for the metric
Metric
metricSearchLatency(
props
?):Metric
Metric for the search latency.
MetricOptions
Properties for the metric
Metric
metricSearchLatencyP90(
props
?):Metric
Metric for the 90th percentile search latency.
MetricOptions
Properties for the metric
Metric
metricSearchRequestCount(
props
?):Metric
Metric for the number of search requests.
MetricOptions
Properties for the metric
Metric