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.245.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f38e9ff0f842ecd4c93a4018bdad9a4d99dfd5b111edd5e51ccd660f409a8fc |
|
MD5 | b6ad2a11e0291a68a1bbcb816c6e68ec |
|
BLAKE2b-256 | f9443fe5b4a86fa3e30bde4be9a41fc003a6104007f402b8fb2e65c5c2e5a908 |
Close
Hashes for pepperize.cdk_security_group-0.0.245-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2bbd2250c60d4077ea28882661ef3aadd63336ae4e4d24c553d7977626e7ff6 |
|
MD5 | 5200924b5425634d10e65d0d37432d45 |
|
BLAKE2b-256 | 150cc4b2539b95b00585ccf45df13992dc3b9310a31587de6071f68348bdf843 |