https://github.com/antenny/antenny-cdk
Cdk constructs for antenny
https://github.com/antenny/antenny-cdk
aws aws-cdk aws-cdk-constructs
Last synced: 5 months ago
JSON representation
Cdk constructs for antenny
- Host: GitHub
- URL: https://github.com/antenny/antenny-cdk
- Owner: antenny
- License: mit
- Archived: true
- Created: 2020-12-24T03:07:17.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-03T15:44:43.000Z (over 5 years ago)
- Last Synced: 2025-12-29T04:37:10.467Z (6 months ago)
- Topics: aws, aws-cdk, aws-cdk-constructs
- Language: JavaScript
- Homepage:
- Size: 364 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# antenny-cdk
antenny-cdk is a cloud development kit construct library for Antenny. It provides a way to integrate Antenny into your cdk infrastructure.
## Installation
#### npm
```shell
npm install antenny-cdk --save
```
#### pip
```shell
pip install antenny-cdk
```
#### nuget
```shell
dotnet add package Antenny.Cdk
```
## Usage
To create a subscription in your aws-cdk project:
```javascript
const antenny = require('antenny-cdk');
const sub = new antenny.Subscription(this, 'Sub', {
apiKey: '{api-key}',
subscription: {
name: 'example-subscription',
customerId: '{customerId}',
region: '{aws-region}',
resource: {
protocol: 'ws',
url: 'wss://example.com'
},
endpoint: {
protocol: 'http',
url: 'https://example.com'
}
}
});
```
There is also a real world example included in our [sample-app](https://github.com/antenny/sample-app).