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.185.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fa2c87e2717804eee0f85b9ac55f400ce79afda78ea6b33d28ebc987b0736f9 |
|
MD5 | 46a2f3bd4464a8d7978b1a4237cbaf7c |
|
BLAKE2b-256 | 3ab2b38ab4987adeb9d1c8a5cadb3e149449b2b0b6882092bfd2c004a4f93ef7 |
Close
Hashes for pepperize.cdk_security_group-0.0.185-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37e2b4aff4c7b6d5d92fd9645854def56b28c6e210c81b6fcb9872ec6a8ba55e |
|
MD5 | bfa6b4a3783df8fc005705849953e06d |
|
BLAKE2b-256 | 39e98b9209e6bed169d72261873c65f140a08e50a8f34e378c36cf03ee5e4346 |