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.525.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6032b80b06207976ce2f9011964c2ac11022e21200c4ff0dbabbc76e1123ec7 |
|
MD5 | a7e380de67ef1cbb5bd49c3ab7e36e12 |
|
BLAKE2b-256 | 29a151bb049673ff072c3af9cb0db059611ef13ac93b04f40f0964856e2db569 |
Close
Hashes for pepperize.cdk_security_group-0.0.525-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90c6d28a4a5d00adf56240b1e961aadeab399c540e87ca6b9abae07fb9b1a9ae |
|
MD5 | 96a308bc75323d0ae6bdb3aec9c8486b |
|
BLAKE2b-256 | d1f23682f5a49c8bce3291a57fab490cd40e6a8dbe7d06b160fd8cd5a2e0e51f |