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.416.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f84b686bdfc1e37931ec05e23ec7300e825a43753f2561633b707a93fa1d5cdb |
|
MD5 | 7523cff817e0ad16ffeb7eac2b88dc4f |
|
BLAKE2b-256 | 25d9bd377b550d1cf1b1ed62199480494bc9be82d2e5ef1febc661b88f8da132 |
Close
Hashes for pepperize.cdk_security_group-0.0.416-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96ec2f98ac878026a4be3c9e06d7e58f42e0ffb9e444e29c0e9054380e1d8f0d |
|
MD5 | 856ce1ee00bddd1f9ee71e87cb459cc1 |
|
BLAKE2b-256 | 06b0afba5b6394a71cea64404c329e8ca22522aa123e29d3fd743b86387f5dc1 |