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.279.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a48af3b875e72166dec89b731b734e3c33c2f1942065c7993d40e9fbfbc4c949 |
|
MD5 | b4d36d94632002a02ffad2aebf07982d |
|
BLAKE2b-256 | 93a41f6e4b43b29394c0dd0090cc7e2e39f0f1becf9602a47981baa94a8c694d |
Close
Hashes for pepperize.cdk_security_group-0.0.279-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d3e20cd9381a0576abe51f68bb480477a358148242b13ff941b60663e84ae27 |
|
MD5 | 76cf3df68ff312ad7db60f6659510f72 |
|
BLAKE2b-256 | 00a206b8b523eb04fadfd7d89371497b7942ab25e905d2c9d2880789b557d44e |