This project provides a CDK construct to create an EC2 SecurityGroup, which property `securityGroupName` returns the GroupName.
Project description
AWS CDK SecurityGroup
This project provides a CDK construct to create an EC2 SecurityGroup, which property securityGroupName
returns the
GroupName.
The CDK EC2 SecurityGroup returns the GroupId from the
Ref
return value of AWS::EC2::SecurityGroup, rather than the GroupName.
Install
TypeScript
npm install @pepperize/cdk-security-group
or
yarn add @pepperize/cdk-security-group
Python
pip install pepperize.cdk-security-group
C# / .Net
dotnet add package Pepperize.CDK.SecurityGroup
Java
<dependency>
<groupId>com.pepperize</groupId>
<artifactId>cdk-security-group</artifactId>
<version>${cdkSecurityGroup.version}</version>
</dependency>
Example
npm install @pepperize/cdk-security-group
See API.md.
import { SecurityGroup } from "@pepperize/cdk-security-group";
const securityGroup = new SecurityGroup(this, "SecurityGroup", {});
// Pass to another construct
new OtherConstruct(this, OtherConstruct, {
SecurityGroupName: securityGroup.securityGroupName,
});
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pepperize.cdk-security-group-0.0.302.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1dc9fd261c0b14aeaa3a681440ac29e7d4dc4051d862f3e4645aa4a9c04660fb |
|
MD5 | 6a52eee61d6a2c787fde8dd31e160491 |
|
BLAKE2b-256 | 11d8841552baa0a3e13affcb72eb10a2a6d119b4389bdf44ed89c44175694d82 |
Close
Hashes for pepperize.cdk_security_group-0.0.302-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4835d6a25f53faf43ddaca08bfa4559379e89cdb5a354ad3ce53f6fffae571e3 |
|
MD5 | 31651bfe22284777a997ffbc2b45c89b |
|
BLAKE2b-256 | cb22c502adcee22fca289f3b7c56e98b74bc19db0fe978314c77898dd0bf7e69 |