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
File details
Details for the file pepperize.cdk-security-group-0.0.553.tar.gz
.
File metadata
- Download URL: pepperize.cdk-security-group-0.0.553.tar.gz
- Upload date:
- Size: 22.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01caa5dc97ead128333938697f72944ae4de6ee719a3808ec6a932dddfb660ca |
|
MD5 | 0f81bb0830bf52b29359ab1cb329e735 |
|
BLAKE2b-256 | f83eff1f09b212da86f9195ef616454994d73e170f40c19b881e8c80a6d7485c |
File details
Details for the file pepperize.cdk_security_group-0.0.553-py3-none-any.whl
.
File metadata
- Download URL: pepperize.cdk_security_group-0.0.553-py3-none-any.whl
- Upload date:
- Size: 23.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad8b2a626cd46ead97c58722e7db0bd55b0a50c410c5651212ac07a98aab7f5b |
|
MD5 | d18cd2318e9d6b3579dd13c7ffacc5d4 |
|
BLAKE2b-256 | 2adfbf2f309391bbc7b1e5de98edf7aa7791702e2d7a380ec1708218d4876ff1 |