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.511.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c4494b891e434050f92a7677a18004d4ebf2d7af879ed4761c49540775d8e1c |
|
MD5 | 0872a1504700dd70b1cf54975cf8f97a |
|
BLAKE2b-256 | d9b804abfc350bd1ff929b85040892c70243c851ac041442e511de80c11994f7 |
Close
Hashes for pepperize.cdk_security_group-0.0.511-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 342004c35287b769d0d716b350459cdb9f3150dcd010b57bc50984eaeaa05852 |
|
MD5 | 20045c8c829c72fbc55dc3d61dc466e5 |
|
BLAKE2b-256 | 890fd1da7a1246612d623845b689f60217b7173dcf8c74a1da5c9cfb60c1a5c3 |