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.521.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6832d79e97fc7370b5f78e79a83598ad9335a34ab39b75e6842e2c77c11feaa9 |
|
MD5 | c56afaf2718bb94048f042a6db964ac0 |
|
BLAKE2b-256 | 0e68413f50230ea7ae1e6ef17b5bcb78af6a91d17b37e6e84ff2c112392e76eb |
Close
Hashes for pepperize.cdk_security_group-0.0.521-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07d922cc9d9185f1d7abb79048c6b7d32afcb4e1c4877a6aaea1e663790c62f6 |
|
MD5 | 6b75f60fdaf6ba22ae69adfd727fe461 |
|
BLAKE2b-256 | 56c20aba606b31722c92f0d6b20f23d1f65f20162e4f1784f10ac783bfc2650d |