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.385.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09957d9b1a9d1fb7ad1d1440dba2623b913cf6660883738e7375ed0955498312 |
|
MD5 | 51ff0f30c5d6ab5cb7e1ae608d0b27b3 |
|
BLAKE2b-256 | 47e7e70d4d7cd217d1db296c6fd2301bbb11d0e6c97e55100271770a510953b2 |
Close
Hashes for pepperize.cdk_security_group-0.0.385-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6b48742e5ba3682aeada4a160c92e260f5044e143e48c55e77b3a46a03acbee |
|
MD5 | 5656eb051fef0f6c665de6b2107cb08b |
|
BLAKE2b-256 | e156084381190e8baefcca3d74f9b665d9f5eabd21c665dfa66204114576865f |