|
| 1 | +# stream-connection |
| 2 | + |
| 3 | +The official [MongoDB Atlas](https://www.mongodb.com/) AWS CDK resource for Node.js. |
| 4 | + |
| 5 | +> AWS CDK [L1 construct](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html) and data structures for the [AWS CloudFormation Registry](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry.html) type `MongoDB::Atlas::StreamConnection`. |
| 6 | +
|
| 7 | +> **NOTE**: |
| 8 | +> - **Atlas Streams functionality is currently in [Public Preview](https://www.mongodb.com/blog/post/atlas-stream-processing-now-in-public-preview).** |
| 9 | +> - Please review [Limitations](https://www.mongodb.com/docs/atlas/atlas-sp/limitations/#std-label-atlas-sp-limitations) of Atlas Streams Processing during this preview period. |
| 10 | +> - Please refer [our example section](https://github.com/mongodb/mongodbatlas-cloudformation-resources/blob/master/examples/atlas-streams/README.md) for further details. |
| 11 | +
|
| 12 | +## Description |
| 13 | + |
| 14 | +Returns, adds, edits, and removes stream connections. |
| 15 | + |
| 16 | +## MongoDB Atlas API Docs |
| 17 | + |
| 18 | +For more information about the API refer to: [API Endpoints](https://www.mongodb.com/docs/atlas/reference/api-resources-spec/v2/#tag/Streams) |
| 19 | + |
| 20 | +## Usage |
| 21 | + |
| 22 | +> [Using Atlas Streams with Cloudformation](https://github.com/mongodb/mongodbatlas-cloudformation-resources/blob/master/examples/atlas-streams/README.md) |
| 23 | +
|
| 24 | +In order to use this library, you will need to activate this AWS CloudFormation Registry type in your account. You can do this via the AWS Management Console or using the [AWS CLI](https://aws.amazon.com/cli/) using the following command: |
| 25 | + |
| 26 | +```sh |
| 27 | +aws cloudformation activate-type \ |
| 28 | + --type-name MongoDB::Atlas::StreamConnection \ |
| 29 | + --publisher-id bb989456c78c398a858fef18f2ca1bfc1fbba082 \ |
| 30 | + --type RESOURCE \ |
| 31 | + --execution-role-arn ROLE-ARN |
| 32 | +``` |
| 33 | + |
| 34 | +Alternatively: |
| 35 | + |
| 36 | +```sh |
| 37 | +aws cloudformation activate-type \ |
| 38 | + --public-type-arn arn:aws:cloudformation:us-east-1::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-StreamConnection \ |
| 39 | + --execution-role-arn ROLE-ARN |
| 40 | +``` |
| 41 | + |
| 42 | +You can find more information about activating this type in the [AWS CloudFormation documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-public.html). |
| 43 | + |
| 44 | +## Example: [stream-connection.ts](../../../examples/l1-resources/stream-connection.ts) |
| 45 | +```ts |
| 46 | +import { CfnStreamInstance } from 'awscdk-resources-mongodbatlas'; |
| 47 | + |
| 48 | + const streamConnection = new CfnStreamConnection(this, "stream-connection-testing-stack", { |
| 49 | + profile: atlasProps.profile, |
| 50 | + instanceName: atlasProps.instanceName, |
| 51 | + projectId: atlasProps.projectId, |
| 52 | + connectionName: atlasProps.connectionName, |
| 53 | + type: CfnStreamConnectionPropsType.CLUSTER, |
| 54 | + clusterName: atlasProps.clusterName |
| 55 | + }); |
| 56 | +``` |
| 57 | + |
| 58 | +## Feedback |
| 59 | + |
| 60 | +This library is auto-generated and published to all supported programming languages by the [cdklabs/cdk-cloudformation] project based on the API schema published for `MongoDB::Atlas::StreamConnection`. |
| 61 | + |
| 62 | +* Issues related to this generated library should be [reported here](https://github.com/cdklabs/cdk-cloudformation/issues/new?title=Issue+with+%40cdk-cloudformation%2Fmongodb-atlas-stream-connection+v1.0.0). |
| 63 | +* Issues related to `MongoDB::Atlas::StreamConnection` should be reported to the [publisher](https://github.com/mongodb/mongodbatlas-cloudformation-resources/issues). |
| 64 | +* Feature requests should be [reported here](https://feedback.mongodb.com/forums/924145-atlas?category_id=392596) |
| 65 | + |
| 66 | +[cdklabs/cdk-cloudformation]: https://github.com/cdklabs/cdk-cloudformation |
| 67 | + |
| 68 | +## License |
| 69 | + |
| 70 | +Distributed under the Apache-2.0 License. |
0 commit comments