diff --git a/framework/src/consumption/README.md b/framework/src/consumption/README.md index ffbfcca12..48d8d9f58 100644 --- a/framework/src/consumption/README.md +++ b/framework/src/consumption/README.md @@ -228,8 +228,6 @@ The IAM Role passed as `iamHandlerRole` property has to have all necessary permi Generic method to execute any Opensearch API, subject to correct permissions attached to the IAM Role. -[example OpenSearch API](examples/opensearch-api.lit.ts) - ## addRoleMapping Use this method to add role mappings to OpenSearch cluster using `_security` plugin. diff --git a/website/docs/constructs/library/generated/_consumption-opensearch-api.mdx b/website/docs/constructs/library/generated/_consumption-opensearch-api.mdx index 76183d92b..057ae745d 100644 --- a/website/docs/constructs/library/generated/_consumption-opensearch-api.mdx +++ b/website/docs/constructs/library/generated/_consumption-opensearch-api.mdx @@ -143,8 +143,6 @@ The IAM Role passed as `iamHandlerRole` property has to have all necessary permi Generic method to execute any Opensearch API, subject to correct permissions attached to the IAM Role. -[example OpenSearch API](examples/opensearch-api.lit.ts) - ## addRoleMapping Use this method to add role mappings to OpenSearch cluster using `_security` plugin. @@ -153,13 +151,6 @@ This method is only applicable to provisioned OpenSearch clusters. [OpenSearch Roles API](https://opensearch.org/docs/2.13/security/access-control/api#create-role-mapping) does not allow to update individual roles, requiring to pass array of roles that needs to be applied. To avoid overwriting prevously added roles `addRoleMapping` method provides `persist` parameter to store previously added roles inside the construct. To avoid racing conditions you also need to execute multiple `addRoleMapping` calls sequentionally as shown below. -```typescript -const firstCall = osApi.addRoleMapping('AnotherAdmin', 'all_access','', true); -const secondCall = osApi.addRoleMapping('AnotherAdmin', 'all_access','', true); -secondCall.node.addDependency(firstCall); -``` - -