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.272.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef7356d2482f6d6ddd4f14c4c0f013a6c742e94a8fb21dfdbd4f0e676f029bd0 |
|
MD5 | d5f4e7dd90c6b8e804cb0d4e0b436c25 |
|
BLAKE2b-256 | 74fd396de9239af01dd22a57365baea1640f83b11402b52c8aa4093742480f0e |
Close
Hashes for pepperize.cdk_security_group-0.0.272-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9192b063adcf0cd0de87c02c448db2cd071e62fab34fc325590f0c8f4e0fa6de |
|
MD5 | dd0aaff75372c1bcb62eb398d9fd6e57 |
|
BLAKE2b-256 | 8dfe78a5c77cfb63d2bfdab353b375e2c29540a2e9737636d909d5025a3871c4 |