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.418.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3e185fa8e19063141ac3d2d8f731fccaf6ef7d114ee2f1b929d12adb5448ce6 |
|
MD5 | 0bf21ea778cb0cfad2cedff491c748c2 |
|
BLAKE2b-256 | 433999e1c1880cf510c892df73aa9571e726580040e52293194c5cfeff674849 |
Close
Hashes for pepperize.cdk_security_group-0.0.418-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4288636ac566995482e70dcefa743e99d6930b0be88fd80798f7e9f19a1e870 |
|
MD5 | 944640b45834f6cdcdb2618b2a047658 |
|
BLAKE2b-256 | a7fdb5f32ace6de21e842c2fdaa37ebd801a587844bd3b999d53acc5683cd3a7 |