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.119.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2b1a05a49f064fba69ff69124ca06dc5ab76f013a7d81786926423356aa14d9 |
|
MD5 | 7463a0ac6c45473e35991c91587ee03c |
|
BLAKE2b-256 | add4c081e3a452a7aa0510fd7f3c0b2662f5e9ba7c8f1190a712bfffc3cc5bee |
Close
Hashes for pepperize.cdk_security_group-0.0.119-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1859ecef03054adb79a1c4538efef2973e2ab1d87530780d0e177f91afd327b3 |
|
MD5 | 6dbba4eefd14aa57a10beefd1d5b7883 |
|
BLAKE2b-256 | eeff25b29db8df6504127c8d8f5b82d54a74aa6587eabf3437652887f8031afc |