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.198.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9585479525f0113d0d14c69280485944ff6c8bc4d364923757000b48196fe163 |
|
MD5 | d4c1b25e998ae02af6defbc1fa5a705b |
|
BLAKE2b-256 | c1ea29c780c01b2af0ab92e4a3b87212820801561febcd226771ecbbc5325514 |
Close
Hashes for pepperize.cdk_security_group-0.0.198-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ddaf383f30e4ee6fe34b2eebf63d31fafd5660980570275dfbedb128bd4053f |
|
MD5 | 098b5a91e4b04b555d3bb4eb0c17eb05 |
|
BLAKE2b-256 | 587eedd0807f1de724b6658e6690e2ed5c9928c8fe369b99350e467e776f59ba |