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.171.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a7d09fec9f95c3cd6691bfe2af5191929d7b3ea51c2ab1c4cb1e9b84105338a |
|
MD5 | ebe61ff79efb527eff2319e38076297b |
|
BLAKE2b-256 | 7c4c90eb1797bc5e45a8d384f6201855cb34bd695f26cc73612fe64f74a23ef6 |
Close
Hashes for pepperize.cdk_security_group-0.0.171-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2dc9c3fc5aa3d08e98987c30b800eb6ffcbf5b952419cafe315dc2dd299e9dc7 |
|
MD5 | 58f717d68813a9aecced1c5f958c5c87 |
|
BLAKE2b-256 | c486afc73010ddeb6c2c6b250119c616ce00cef05998efbcacee23d6a25628e5 |