Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-cdk/aws-kinesis

Package Overview
Dependencies
Maintainers
4
Versions
288
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-cdk/aws-kinesis - npm Package Compare versions

Comparing version 0.23.0 to 0.24.0

lib/kinesis-augmentations.generated.d.ts

11

lib/kinesis.generated.d.ts

@@ -30,3 +30,3 @@ import cdk = require('@aws-cdk/cdk');

*/
tags?: Array<cdk.Tag | cdk.Token> | cdk.Token;
tags?: Array<cdk.CfnTag | cdk.Token> | cdk.Token;
}

@@ -47,2 +47,11 @@ /**

/**
* The ``TagManager`` handles setting, removing and formatting tags
*
* Tags should be managed either passing them as properties during
* initiation or by calling methods on this object. If both techniques are
* used only the tags from the TagManager will be used. ``Tag`` (aspect)
* will use the manager.
*/
readonly tags: cdk.TagManager;
/**
* Creates a new ``AWS::Kinesis::Stream``.

@@ -49,0 +58,0 @@ *

19

lib/kinesis.generated.js
"use strict";
// Copyright 2012-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// Generated from the AWS CloudFormation Resource Specification
// See: docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-resource-specification.html
// @cfn2ts:meta@ {"generated":"2019-02-04T14:43:05.403Z","fingerprint":"c4uuD9qfqSq1FIeInzmxGfhozO498jSsUD3d3bmSZbY="}
// @cfn2ts:meta@ {"generated":"2019-02-07T11:03:30.049Z","fingerprint":"OIC4mFNEERBdGklEzjPpLIgTgvDkDJvtKR//Wg1xsuI="}
Object.defineProperty(exports, "__esModule", { value: true });

@@ -26,3 +26,3 @@ // tslint:disable:max-line-length | This is generated code - line lengths are difficult to control

errors.collect(cdk.propertyValidator('streamEncryption', CfnStream_StreamEncryptionPropertyValidator)(properties.streamEncryption));
errors.collect(cdk.propertyValidator('tags', cdk.listValidator(cdk.validateTag))(properties.tags));
errors.collect(cdk.propertyValidator('tags', cdk.listValidator(cdk.validateCfnTag))(properties.tags));
return errors.wrap('supplied properties not correct for "CfnStreamProps"');

@@ -47,3 +47,3 @@ }

StreamEncryption: cfnStreamStreamEncryptionPropertyToCloudFormation(properties.streamEncryption),
Tags: cdk.listMapper(cdk.tagToCloudFormation)(properties.tags),
Tags: cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags),
};

@@ -64,2 +64,11 @@ }

super(scope, id, { type: CfnStream.resourceTypeName, properties: props });
/**
* The ``TagManager`` handles setting, removing and formatting tags
*
* Tags should be managed either passing them as properties during
* initiation or by calling methods on this object. If both techniques are
* used only the tags from the TagManager will be used. ``Tag`` (aspect)
* will use the manager.
*/
this.tags = new cdk.TagManager(cdk.TagType.Standard, "AWS::Kinesis::Stream");
cdk.requireProperty(props, 'shardCount', this);

@@ -185,2 +194,2 @@ this.streamArn = this.getAtt('Arn').toString();

exports.CfnStreamConsumer = CfnStreamConsumer;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2luZXNpcy5nZW5lcmF0ZWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJraW5lc2lzLmdlbmVyYXRlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsK0VBQStFO0FBQy9FLCtEQUErRDtBQUMvRCw4RkFBOEY7QUFDOUYsc0hBQXNIOztBQUV0SCxrR0FBa0c7QUFFbEcsb0NBQXFDO0FBaUNyQzs7Ozs7O0dBTUc7QUFDSCxTQUFTLHVCQUF1QixDQUFDLFVBQWU7SUFDNUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxVQUFVLENBQUMsVUFBVSxDQUFDLEVBQUU7UUFBRSxPQUFPLEdBQUcsQ0FBQyxrQkFBa0IsQ0FBQztLQUFFO0lBQ25FLE1BQU0sTUFBTSxHQUFHLElBQUksR0FBRyxDQUFDLGlCQUFpQixFQUFFLENBQU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FSTicpLnRvU3RyaW5nKCk7XG4gICAgICAgIHRoaXMuc3RyZWFtQ29uc3VtZXJBcm4gPSB0aGlzLnJlZi50b1N0cmluZygpO1xuICAgIH1cblxuICAgIHB1YmxpYyBnZXQgcHJvcGVydHlPdmVycmlkZXMoKTogQ2ZuU3RyZWFtQ29uc3VtZXJQcm9wcyB7XG4gICAgICAgIHJldHVybiB0aGlzLnVudHlwZWRQcm9wZXJ0eU92ZXJyaWRlcztcbiAgICB9XG4gICAgcHJvdGVjdGVkIHJlbmRlclByb3BlcnRpZXMocHJvcGVydGllczogYW55KTogeyBba2V5OiBzdHJpbmddOiBhbnkgfSAge1xuICAgICAgICByZXR1cm4gY2ZuU3RyZWFtQ29uc3VtZXJQcm9wc1RvQ2xvdWRGb3JtYXRpb24odGhpcy5ub2RlLnJlc29sdmUocHJvcGVydGllcykpO1xuICAgIH1cbn1cbiJdfQ==
{
"name": "@aws-cdk/aws-kinesis",
"version": "0.23.0",
"version": "0.24.0",
"description": "CDK Constructs for AWS Kinesis",

@@ -56,19 +56,19 @@ "main": "lib/index.js",

"devDependencies": {
"@aws-cdk/assert": "^0.23.0",
"cdk-build-tools": "^0.23.0",
"cfn2ts": "^0.23.0",
"pkglint": "^0.23.0"
"@aws-cdk/assert": "^0.24.0",
"cdk-build-tools": "^0.24.0",
"cfn2ts": "^0.24.0",
"pkglint": "^0.24.0"
},
"dependencies": {
"@aws-cdk/aws-iam": "^0.23.0",
"@aws-cdk/aws-kms": "^0.23.0",
"@aws-cdk/aws-logs": "^0.23.0",
"@aws-cdk/cdk": "^0.23.0"
"@aws-cdk/aws-iam": "^0.24.0",
"@aws-cdk/aws-kms": "^0.24.0",
"@aws-cdk/aws-logs": "^0.24.0",
"@aws-cdk/cdk": "^0.24.0"
},
"homepage": "https://github.com/awslabs/aws-cdk",
"peerDependencies": {
"@aws-cdk/aws-iam": "^0.23.0",
"@aws-cdk/aws-kms": "^0.23.0",
"@aws-cdk/aws-logs": "^0.23.0",
"@aws-cdk/cdk": "^0.23.0"
"@aws-cdk/aws-iam": "^0.24.0",
"@aws-cdk/aws-kms": "^0.24.0",
"@aws-cdk/aws-logs": "^0.24.0",
"@aws-cdk/cdk": "^0.24.0"
},

@@ -78,2 +78,2 @@ "engines": {

}
}
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc