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.170.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 858ea925ff843cd634b63aebd3ed3a939c3759dc7c4ced432bd82ec1ed33aae2 |
|
MD5 | 3e2ae3465f877ccbb30b726beccc37b9 |
|
BLAKE2b-256 | 9d871e7d98bfe08eab2ce53fbf8835344f8bf39c459aa93f6c3b1538a22ed547 |
Close
Hashes for pepperize.cdk_security_group-0.0.170-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 499590d96a9314ba07c5b5a90307d7a998e441e8b3978c0c34fdbdcbad682a92 |
|
MD5 | f3cbcd41768ea7160cb0ae9f26ae35ca |
|
BLAKE2b-256 | b617b9764f4bb6ac456e99b30afea75c6851a0e131973e6942b36026ac090cc6 |