File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ export class VectorIndex extends Construct {
7171 }
7272 } )
7373
74- const collectionArn = `arn:aws:aoss:${ props . region } :${ props . account } :collection/${ props . collection . name } `
74+ // const collectionArn = `arn:aws:aoss:${props.region}:${props.account}:collection/${props.collection.name}`
7575 // eslint-disable-next-line max-len
7676 // const indexArn = `arn:aws:aoss:${props.region}:${props.account}:index/${props.collection.name}/${props.indexName}`
7777
@@ -81,7 +81,7 @@ export class VectorIndex extends Construct {
8181 actions : [
8282 "aoss:BatchGetCollection"
8383 ] ,
84- resources : [ collectionArn ]
84+ resources : [ "*" ]
8585 } )
8686 const getIndexPolicy = new PolicyStatement ( {
8787 actions : [
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ def handler(event, context):
3636 continue
3737
3838 # 2. Check index
39- idx_resp = aoss .batch_get_index (names = [index_name ], collectionName = collection_name )
39+ idx_resp = aoss .get_index (names = [index_name ], collectionName = collection_name )
4040 idx = next ((i for i in idx_resp .get ("indexDetails" , []) if i ["name" ] == index_name ), None )
4141
4242 if not idx :
You can’t perform that action at this time.
0 commit comments