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.138.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97e18b029efb320c88a55c1f32c2b4ba3c486209b700b6cee0375abcaefb56d5 |
|
MD5 | 3866f1e5b5338a8dd89abf53a44254ce |
|
BLAKE2b-256 | 64934ce2154fb4de453b490a733cc22790fea4a2608c23aa0a0ef1f33fc05b13 |
Close
Hashes for pepperize.cdk_security_group-0.0.138-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3ce18b291cd85396b09c1668435990eb42f9ed9df3ef298487d11a807d9dbb2 |
|
MD5 | d781d82de0f1a6acf759cb989d510fb2 |
|
BLAKE2b-256 | 5431f365fafbbd40711a0e6268a08a5f49b7b4ff8b6758863e7bdfc0f3348174 |