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.139.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 817d1efffc6eb520f55e9db16268039ee2dbfb3387abe844e406bdc3b70c69e2 |
|
MD5 | 3848094580a05ae336767ff6ba9c6976 |
|
BLAKE2b-256 | 6d926e0b0c596f9ce2c84ca19b1c061e30e63c7d62caf7289f5b3f3405ff7d83 |
Close
Hashes for pepperize.cdk_security_group-0.0.139-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 376623b0a3447fb5a051792463b6b1f9d2775a66394477a0b82b75a02d62a36b |
|
MD5 | 99524d50f456ef5c25e4efa54937ad36 |
|
BLAKE2b-256 | 998c34a0d1103757b1b89f907a4fb5b6813346cb55e339354cc3c0a3b444aff4 |