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.182.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cad0a9aa90359ef7e5faf60aefbc709f4ae906e3ef511be711d9635828bb3bf9 |
|
MD5 | de62220c80a24ebe7dbef42a870b546f |
|
BLAKE2b-256 | 1b4ba583530d7cfd6c80bcf55454058dafa75595cc5d909a376a4a05534aca58 |
Close
Hashes for pepperize.cdk_security_group-0.0.182-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 485f645f879d446830ef8f943b133b67209036db055ec1637d84b77923c62f5c |
|
MD5 | d85b697b53a7df8069bb198157192af8 |
|
BLAKE2b-256 | 63bba5aadc34a31bbb102de27f5fd7e80c06a3b48fee2fd8fcea6b6e096e8ff9 |