@aws-solutions-constructs/aws-fargate-kinesisstreams 2.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,119 @@
1
+ # aws-fargate-kinesisstreams module
2
+ <!--BEGIN STABILITY BANNER-->
3
+
4
+ ---
5
+
6
+ ![Stability: Experimental](https://img.shields.io/badge/stability-Experimental-important.svg?style=for-the-badge)
7
+
8
+ ---
9
+ <!--END STABILITY BANNER-->
10
+
11
+ | **Reference Documentation**:| <span style="font-weight: normal">https://docs.aws.amazon.com/solutions/latest/constructs/</span>|
12
+ |:-------------|:-------------|
13
+ <div style="height:8px"></div>
14
+
15
+ | **Language** | **Package** |
16
+ |:-------------|-----------------|
17
+ |![Python Logo](https://docs.aws.amazon.com/cdk/api/latest/img/python32.png) Python|`aws_solutions_constructs.aws_fargate_kinesisstreams`|
18
+ |![Typescript Logo](https://docs.aws.amazon.com/cdk/api/latest/img/typescript32.png) Typescript|`@aws-solutions-constructs/aws-fargate-kinesisstreams`|
19
+ |![Java Logo](https://docs.aws.amazon.com/cdk/api/latest/img/java32.png) Java|`software.amazon.awsconstructs.services.fargatekinesisstreams`|
20
+
21
+ ## Overview
22
+ This AWS Solutions Construct deploys an AWS Fargate Service that can put records on an Amazon Kinesis Data Stream.
23
+
24
+ Here is a minimal deployable pattern definition:
25
+
26
+ Typescript
27
+ ``` typescript
28
+ import { Construct } from 'constructs';
29
+ import { Stack, StackProps } from 'aws-cdk-lib';
30
+ import { FargateToKinesisStreamsProps } from '@aws-solutions-constructs/aws-fargate-kinesisstreams';
31
+ import * as fargate from 'aws-cdk-lib/aws-fargate';
32
+
33
+ new FargateToKinesisStreams(this, 'FargateToKinesisStreams', {
34
+ publicApi: true,
35
+ ecrRepositoryArn: "arn:aws:ecr:us-east-1:123456789012:repository/your-ecr-repo",
36
+ });
37
+ ```
38
+
39
+ Python
40
+ ``` python
41
+ from aws_solutions_constructs.aws_fargate_kinesisstreams import FargateToKinesisStreams
42
+ from aws_cdk import (
43
+ aws_fargate as _fargate,
44
+ Stack
45
+ )
46
+ from constructs import Construct
47
+
48
+ FargateToKinesisStreams(self, 'FargateToKinesisStreams',
49
+ public_api=True,
50
+ ecr_repository_arn="arn:aws:ecr:us-east-1:123456789012:repository/your-ecr-repo"
51
+ )
52
+ ```
53
+
54
+ Java
55
+ ``` java
56
+ import software.constructs.Construct;
57
+
58
+ import software.amazon.awscdk.Stack;
59
+ import software.amazon.awscdk.StackProps;
60
+ import software.amazon.awscdk.services.fargate.*;
61
+ import software.amazon.awscdk.services.fargate.eventsources.*;
62
+ import software.amazon.awscdk.services.fargate.Runtime;
63
+ import software.amazon.awsconstructs.services.fargatekinesisstreams.*;
64
+
65
+ new FargateToKinesisStreams(this, "FargateToKinesisStreams", new FargateToKinesisStreamsProps.Builder()
66
+ .publicApi(true)
67
+ .ecrRepositoryArn("arn:aws:ecr:us-east-1:123456789012:repository/your-ecr-repo")
68
+ .build());
69
+ ```
70
+
71
+ ## Pattern Construct Props
72
+
73
+ | **Name** | **Type** | **Description** |
74
+ |:-------------|:----------------|-----------------|
75
+ | publicApi | `boolean` | True if the VPC provisioned by this construct should contain Public/Private Subnets, otherwise False for the VPC to contain Isolated Subnets only. Note this property is ignored if an existing VPC is specified in the `existingVpc` property. |
76
+ | vpcProps? | [`ec2.VpcProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.VpcProps.html) | Optional custom properties for a new VPC the construct will create. Providing both this and `existingVpc` is an error. An Amazon Kinesis Streams Interface Endpoint will be added to this VPC. |
77
+ | existingVpc? | [`ec2.IVpc`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.IVpc.html) | An existing VPC in which to deploy the Fargate Service. Providing both this and `vpcProps` is an error. If the client provides an existing Fargate Service in the `existingFargateServiceObject` property, this value must be the VPC where the service is running. An Amazon Kinesis Streams Interface Endpoint will be added to this VPC. |
78
+ | clusterProps? | [`ecs.ClusterProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.ClusterProps.html) | Optional properties to create a new ECS cluster. To provide an existing cluster, use the cluster attribute of fargateServiceProps. |
79
+ | ecrRepositoryArn? | `string` | The arn of an ECR Repository containing the image to use to generate the containers. Either this or the image property of containerDefinitionProps must be provided. format: arn:aws:ecr:*region*:*account number*:repository/*Repository Name* |
80
+ | ecrImageVersion? | `string` | The version of the image to use from the repository. Defaults to 'Latest' |
81
+ | containerDefinitionProps? | [`ecs.ContainerDefinitionProps \| any`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.ContainerDefinitionProps.html) | Optional props to define the container created for the Fargate Service. (defaults found in fargate-defaults.ts) |
82
+ | fargateTaskDefinitionProps? | [`ecs.FargateTaskDefinitionProps \| any`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.FargateTaskDefinitionProps.html) | Optional props to define the Fargate Task Definition for this construct. (defaults found in fargate-defaults.ts) |
83
+ | fargateServiceProps? | [`ecs.FargateServiceProps \| any`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.FargateServiceProps.html) | Optional values to override default Fargate Task definition properties (fargate-defaults.ts). The construct will default to launching the service is the most isolated subnets available (precedence: Isolated, Private and Public). Override those and other defaults here. |
84
+ | existingFargateServiceObject? | [`ecs.FargateService`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.FargateService.html) | A Fargate Service already instantiated (probably by another Solutions Construct). If this is specified, then no props defining a new service can be provided, including: ecrImageVersion, containerDefinitionProps, fargateTaskDefinitionProps, ecrRepositoryArn, fargateServiceProps, clusterProps |
85
+ | existingContainerDefinitionObject? | [`ecs.ContainerDefinition`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.ContainerDefinition.html) | A container definition already instantiated as part of a Fargate service. This must be the container in the `existingFargateServiceObject`. |
86
+ |existingStreamObj?|[`kinesis.Stream`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kinesis.Stream.html) | Existing instance of a Kinesis Data Stream. Providing both this and `kinesisStreamProps` will cause an error. |
87
+ |kinesisStreamProps?|[`kinesis.StreamProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kinesis.StreamProps.html) | Optional user-provided props to override the default props for the Kinesis Data Stream. Providing both this and `existingStreamObj` will cause an error. |
88
+ | createCloudWatchAlarms |`boolean` | Whether to create recommended CloudWatch Alarms for the Kinesis Stream (defaults to true). |
89
+ | streamEnvironmentVariableName? | `string` | Optional Name to override the Fargate Service default environment variable name that holds the Kinesis Data Stream name value. Default: KINESIS_DATASTREAM_NAME |
90
+
91
+ ## Pattern Properties
92
+
93
+ | **Name** | **Type** | **Description** |
94
+ |:-------------|:----------------|-----------------|
95
+ | vpc | [`ec2.IVpc`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.IVpc.html) | The new or existing VPC used by the construct. |
96
+ | service | [`ecs.FargateService`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.FargateService.html) | The new or existing AWS Fargate service used by this construct. |
97
+ | container | [`ecs.ContainerDefinition`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.ContainerDefinition.html) | The container associated with the AWS Fargate service in the service property. |
98
+ | kinesisStream | [`kinesis.Stream`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kinesis.Stream.html) | The new or existing Kinesis Data Stream used by this construct. |
99
+ | cloudwatchAlarms? | [`cloudwatch.Alarm[]`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.Alarm.html) | Returns the CloudWatch Alarms created to monitor the Kinesis Data Stream.|
100
+
101
+ ## Default settings
102
+
103
+ Out of the box implementation of the Construct without any overrides will set the following defaults:
104
+
105
+ ### AWS Fargate Service
106
+ * An AWS Fargate Service running in the isolated subnets of a new VPC
107
+ * Minimally-permissive IAM role for the Fargate Service to put records on the Kinesis Data Stream
108
+ * Sets an Environment Variable named KINESIS_DATASTREAM_NAME that holds the Kinesis Data Stream Name, which is a required property of the Kinesis Data Streams SDK when making calls to it
109
+
110
+ ### Amazon Kinesis Stream
111
+ * Enable server-side encryption for the Kinesis Data Stream using an AWS Managed CMK
112
+ * Deploy best practices CloudWatch Alarms for the Kinesis Data Stream
113
+ * An Interface Endpoint on the VPC for private communication between the Fargate Service and the Kinesis Data Stream
114
+
115
+ ## Architecture
116
+ ![Architecture Diagram](architecture.png)
117
+
118
+ ***
119
+ &copy; Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
Binary file
package/lib/index.d.ts ADDED
@@ -0,0 +1,129 @@
1
+ /**
2
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
5
+ * with the License. A copy of the License is located at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
10
+ * OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
11
+ * and limitations under the License.
12
+ */
13
+ import * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch';
14
+ import * as ec2 from "aws-cdk-lib/aws-ec2";
15
+ import * as ecs from "aws-cdk-lib/aws-ecs";
16
+ import * as kinesis from 'aws-cdk-lib/aws-kinesis';
17
+ import { Construct } from 'constructs';
18
+ /**
19
+ * The properties for the FargateToKinesisStreams class.
20
+ */
21
+ export interface FargateToKinesisStreamsProps {
22
+ /**
23
+ * True if the VPC provisioned by this construct should contain Public/Private Subnets,
24
+ * otherwise False for the VPC to contain Isolated Subnets only.
25
+ *
26
+ * Note this property is ignored if an existing VPC is specified in the `existingVpc` property.
27
+ */
28
+ readonly publicApi: boolean;
29
+ /**
30
+ * Optional custom properties for a new VPC the construct will create. Providing both this and `existingVpc` is an error.
31
+ *
32
+ * An Amazon Kinesis Streams Interface Endpoint will be added to this VPC.
33
+ *
34
+ * @default - None
35
+ */
36
+ readonly vpcProps?: ec2.VpcProps;
37
+ /**
38
+ * An existing VPC in which to deploy the Fargate Service. Providing both this and `vpcProps` is an error.
39
+ * If the client provides an existing Fargate Service in the `existingFargateServiceObject` property,
40
+ * this value must be the VPC where the service is running.
41
+ *
42
+ * An Amazon Kinesis Streams Interface Endpoint will be added to this VPC.
43
+ *
44
+ * @default - None
45
+ */
46
+ readonly existingVpc?: ec2.IVpc;
47
+ /**
48
+ * Optional properties to create a new ECS cluster. To provide an existing cluster, use the cluster attribute of the `fargateServiceProps` property.
49
+ */
50
+ readonly clusterProps?: ecs.ClusterProps;
51
+ /**
52
+ * The arn of an ECR Repository containing the image to use to generate the containers.
53
+ *
54
+ * Either this or the image property of the `containerDefinitionProps` property must be provided.
55
+ *
56
+ * format:
57
+ * arn:aws:ecr:[region]:[account number]:repository/[Repository Name]
58
+ */
59
+ readonly ecrRepositoryArn?: string;
60
+ /**
61
+ * The version of the image to use from the repository.
62
+ *
63
+ * @default - 'latest'
64
+ */
65
+ readonly ecrImageVersion?: string;
66
+ readonly containerDefinitionProps?: ecs.ContainerDefinitionProps | any;
67
+ readonly fargateTaskDefinitionProps?: ecs.FargateTaskDefinitionProps | any;
68
+ /**
69
+ * Optional values to override default Fargate Task definition properties (fargate-defaults.ts).
70
+ * The construct will default to launching the service is the most isolated subnets available (precedence: Isolated, Private and Public).
71
+ * Override those and other defaults here.
72
+ *
73
+ * defaults - fargate-defaults.ts
74
+ */
75
+ readonly fargateServiceProps?: ecs.FargateServiceProps | any;
76
+ /**
77
+ * A Fargate Service already instantiated. If this is specified, then no props defining a new service can be provided, including:
78
+ * ecrImageVersion, containerDefinitionProps, fargateTaskDefinitionProps, ecrRepositoryArn, fargateServiceProps, clusterProps.
79
+ *
80
+ * Note - If this property is set, then the `existingContainerDefinitionObject` property must be set as well.
81
+ *
82
+ * @default - None
83
+ */
84
+ readonly existingFargateServiceObject?: ecs.FargateService;
85
+ readonly existingContainerDefinitionObject?: ecs.ContainerDefinition;
86
+ /**
87
+ * Existing instance of Kinesis Stream, providing both this and `kinesisStreamProps` will cause an error.
88
+ *
89
+ * @default - None
90
+ */
91
+ readonly existingStreamObj?: kinesis.Stream;
92
+ /**
93
+ * Optional user-provided props to override the default props for the Kinesis stream.
94
+ *
95
+ * @default - Default props are used.
96
+ */
97
+ readonly kinesisStreamProps?: kinesis.StreamProps;
98
+ /**
99
+ * Whether to create recommended CloudWatch alarms for the Kinesis Stream.
100
+ *
101
+ * @default - Alarms are created
102
+ */
103
+ readonly createCloudWatchAlarms?: boolean;
104
+ /**
105
+ * Optional Name to override the Fargate Service default environment variable name that holds the Kinesis Data Stream name value.
106
+ *
107
+ * @default - KINESIS_DATASTREAM_NAME
108
+ */
109
+ readonly streamEnvironmentVariableName?: string;
110
+ }
111
+ /**
112
+ * @summary The FargateToKinesisStream class.
113
+ */
114
+ export declare class FargateToKinesisStreams extends Construct {
115
+ readonly vpc?: ec2.IVpc;
116
+ readonly service: ecs.FargateService;
117
+ readonly container: ecs.ContainerDefinition;
118
+ readonly kinesisStream: kinesis.Stream;
119
+ readonly cloudwatchAlarms?: cloudwatch.Alarm[];
120
+ /**
121
+ * @summary Constructs a new instance of the KinesisStreamsToFargate class.
122
+ * @param {cdk.App} scope - represents the scope for all the resources.
123
+ * @param {string} id - this is a a scope-unique id.
124
+ * @param {FargateToKinesisStreamsProps} props - user provided props for the construct
125
+ * @since 0.8.0
126
+ * @access public
127
+ */
128
+ constructor(scope: Construct, id: string, props: FargateToKinesisStreamsProps);
129
+ }
package/lib/index.js ADDED
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.FargateToKinesisStreams = void 0;
5
+ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
6
+ const defaults = require("@aws-solutions-constructs/core");
7
+ // Note: To ensure CDKv2 compatibility, keep the import statement for Construct separate
8
+ const constructs_1 = require("constructs");
9
+ /**
10
+ * @summary The FargateToKinesisStream class.
11
+ */
12
+ class FargateToKinesisStreams extends constructs_1.Construct {
13
+ /**
14
+ * @summary Constructs a new instance of the KinesisStreamsToFargate class.
15
+ * @param {cdk.App} scope - represents the scope for all the resources.
16
+ * @param {string} id - this is a a scope-unique id.
17
+ * @param {FargateToKinesisStreamsProps} props - user provided props for the construct
18
+ * @since 0.8.0
19
+ * @access public
20
+ */
21
+ constructor(scope, id, props) {
22
+ super(scope, id);
23
+ defaults.CheckProps(props);
24
+ defaults.CheckFargateProps(props);
25
+ // Setup the VPC
26
+ this.vpc = defaults.buildVpc(scope, {
27
+ existingVpc: props.existingVpc,
28
+ defaultVpcProps: props.publicApi ? defaults.DefaultPublicPrivateVpcProps() : defaults.DefaultIsolatedVpcProps(),
29
+ userVpcProps: props.vpcProps,
30
+ constructVpcProps: { enableDnsHostnames: true, enableDnsSupport: true }
31
+ });
32
+ // Add the interface endpoint to the VPC for Kinesis Streams
33
+ defaults.AddAwsServiceEndpoint(scope, this.vpc, defaults.ServiceEndpointTypes.KINESIS_STREAMS);
34
+ // Setup the Fargate Service
35
+ if (props.existingFargateServiceObject) {
36
+ this.service = props.existingFargateServiceObject;
37
+ // CheckFargateProps confirms that the container is provided
38
+ this.container = props.existingContainerDefinitionObject;
39
+ }
40
+ else {
41
+ [this.service, this.container] = defaults.CreateFargateService(scope, id, this.vpc, props.clusterProps, props.ecrRepositoryArn, props.ecrImageVersion, props.fargateTaskDefinitionProps, props.containerDefinitionProps, props.fargateServiceProps);
42
+ }
43
+ // Setup the Kinesis Stream
44
+ this.kinesisStream = defaults.buildKinesisStream(this, {
45
+ existingStreamObj: props.existingStreamObj,
46
+ kinesisStreamProps: props.kinesisStreamProps
47
+ });
48
+ // Configure container environment variables
49
+ const streamNameEnvironmentVariableName = props.streamEnvironmentVariableName || 'KINESIS_DATASTREAM_NAME';
50
+ this.container.addEnvironment(streamNameEnvironmentVariableName, this.kinesisStream.streamName);
51
+ // Grant the Fargate Service permission to write to the Kinesis Stream
52
+ this.kinesisStream.grantWrite(this.service.taskDefinition.taskRole);
53
+ // By default, deploy CloudWatch Alarms to monitor the Kinesis Stream
54
+ if (props.createCloudWatchAlarms === undefined || props.createCloudWatchAlarms) {
55
+ this.cloudwatchAlarms = defaults.buildKinesisStreamCWAlarms(this);
56
+ }
57
+ }
58
+ }
59
+ exports.FargateToKinesisStreams = FargateToKinesisStreams;
60
+ _a = JSII_RTTI_SYMBOL_1;
61
+ FargateToKinesisStreams[_a] = { fqn: "@aws-solutions-constructs/aws-fargate-kinesisstreams.FargateToKinesisStreams", version: "2.30.0" };
62
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQWtCQSwyREFBMkQ7QUFDM0Qsd0ZBQXdGO0FBQ3hGLDJDQUF1QztBQWdIdkM7O0dBRUc7QUFDSCxNQUFhLHVCQUF3QixTQUFRLHNCQUFTO0lBT2xEOzs7Ozs7O09BT0c7SUFDSCxZQUFZLEtBQWdCLEVBQUUsRUFBVSxFQUFFLEtBQW1DO1FBQzNFLEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFDakIsUUFBUSxDQUFDLFVBQVUsQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUMzQixRQUFRLENBQUMsaUJBQWlCLENBQUMsS0FBSyxDQUFDLENBQUM7UUFFbEMsZ0JBQWdCO1FBQ2hCLElBQUksQ0FBQyxHQUFHLEdBQUcsUUFBUSxDQUFDLFFBQVEsQ0FBQyxLQUFLLEVBQUU7WUFDbEMsV0FBVyxFQUFFLEtBQUssQ0FBQ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xhcm1zID0gZGVmYXVsdHMuYnVpbGRLaW5lc2lzU3RyZWFtQ1dBbGFybXModGhpcyk7XG4gICAgICB9XG4gICAgfVxufSJdfQ==
package/package.json ADDED
@@ -0,0 +1,93 @@
1
+ {
2
+ "name": "@aws-solutions-constructs/aws-fargate-kinesisstreams",
3
+ "version": "2.30.0",
4
+ "description": "CDK Constructs for AWS Fargate to an Amazon Kinesis Data Stream ",
5
+ "main": "lib/index.js",
6
+ "types": "lib/index.d.ts",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/awslabs/aws-solutions-constructs.git",
10
+ "directory": "source/patterns/@aws-solutions-constructs/aws-fargate-kinesisstreams"
11
+ },
12
+ "author": {
13
+ "name": "Amazon Web Services",
14
+ "url": "https://aws.amazon.com",
15
+ "organization": true
16
+ },
17
+ "license": "Apache-2.0",
18
+ "scripts": {
19
+ "build": "tsc -b .",
20
+ "lint": "eslint -c ../eslintrc.yml --ext=.js,.ts . && tslint --project .",
21
+ "lint-fix": "eslint -c ../eslintrc.yml --ext=.js,.ts --fix .",
22
+ "test": "jest --coverage",
23
+ "clean": "tsc -b --clean",
24
+ "watch": "tsc -b -w",
25
+ "integ": "cdk-integ",
26
+ "integ-no-clean": "cdk-integ --no-clean",
27
+ "integ-assert": "cdk-integ-assert-v2",
28
+ "jsii": "jsii",
29
+ "jsii-pacmak": "jsii-pacmak",
30
+ "build+lint+test": "npm run jsii && npm run lint && npm test && npm run integ-assert",
31
+ "snapshot-update": "npm run jsii && npm test -- -u && npm run integ-assert"
32
+ },
33
+ "jsii": {
34
+ "outdir": "dist",
35
+ "targets": {
36
+ "java": {
37
+ "package": "software.amazon.awsconstructs.services.fargatekinesisstreams",
38
+ "maven": {
39
+ "groupId": "software.amazon.awsconstructs",
40
+ "artifactId": "fargatekinesisstreams"
41
+ }
42
+ },
43
+ "dotnet": {
44
+ "namespace": "Amazon.SolutionsConstructs.AWS.fargatekinesisstreams",
45
+ "packageId": "Amazon.SolutionsConstructs.AWS.FargateKinesisStreams",
46
+ "signAssembly": true,
47
+ "iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
48
+ },
49
+ "python": {
50
+ "distName": "aws-solutions-constructs.aws-fargate-kinesisstreams",
51
+ "module": "aws_solutions_constructs.aws_fargate_kinesisstreams"
52
+ }
53
+ }
54
+ },
55
+ "dependencies": {
56
+ "@aws-solutions-constructs/core": "2.30.0"
57
+ },
58
+ "devDependencies": {
59
+ "@aws-cdk/assert": "2.57.0",
60
+ "@types/jest": "^26.0.22",
61
+ "@aws-solutions-constructs/core": "2.30.0",
62
+ "@types/node": "^10.3.0",
63
+ "aws-cdk-lib": "2.57.0",
64
+ "constructs": "^10.0.0"
65
+ },
66
+ "jest": {
67
+ "moduleFileExtensions": [
68
+ "js"
69
+ ],
70
+ "coverageReporters": [
71
+ "text",
72
+ [
73
+ "lcov",
74
+ {
75
+ "projectRoot": "../../../../"
76
+ }
77
+ ]
78
+ ]
79
+ },
80
+ "peerDependencies": {
81
+ "@aws-solutions-constructs/core": "2.30.0",
82
+ "aws-cdk-lib": "^2.57.0",
83
+ "constructs": "^10.0.0"
84
+ },
85
+ "keywords": [
86
+ "aws",
87
+ "cdk",
88
+ "awscdk",
89
+ "AWS Solutions Constructs",
90
+ "AWS Fargate",
91
+ "Amazon Kinesis"
92
+ ]
93
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
5
+ * with the License. A copy of the License is located at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
10
+ * OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
11
+ * and limitations under the License.
12
+ */
13
+ import '@aws-cdk/assert/jest';