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.368.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a55b407a67b9c10d4af06e74604ba881c279fcc3638716186314a32da09fd1a |
|
MD5 | 7a792e78cc981e7f451e80b0dc1510b4 |
|
BLAKE2b-256 | a3441c1af2fb5e92d69d1c3059742af830dbf1ee61b4ca933c26b8c4f9b870e0 |
Close
Hashes for pepperize.cdk_security_group-0.0.368-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4b91a3d33ffb8168f5f98e2e37a77b9c0ddee226e1bf180e3918aa1908afa94 |
|
MD5 | 9291f835a19c1d93b674110215ac0db7 |
|
BLAKE2b-256 | f077efc361986ba90b638c0fbe586b00f333839d5f2e93492990ebd9cb249296 |