@garretcharp/cdk-constructs-algolia-v2
TypeScript icon, indicating that this package has built-in type declarations

0.3.1 • Public • Published

Algolia CDK Construct

This construct allows you to create indexes on Algolia inside of the AWS CDK.

Usage

import { AlgoliaIndex } from '@garretcharp/cdk-constructs-algolia-v2'
import { SecretValue } from 'aws-cdk-lib'

const MyIndex = new AlgoliaIndex(this, 'MyIndex', {
	indexName: `${this.stage}-my-index`,
	// See: https://www.algolia.com/doc/api-reference/settings-api-parameters
	settings: {
		searchableAttributes: ['name']
	},
	apiKey: SecretValue.plainText('my-algolia-api-key'),
	appId: 'my-algolia-app-id'
})

Readme

Keywords

none

Package Sidebar

Install

npm i @garretcharp/cdk-constructs-algolia-v2

Weekly Downloads

1

Version

0.3.1

License

ISC

Unpacked Size

15.1 kB

Total Files

10

Last publish

Collaborators

  • garretcharp