interface SecurityGroupReference
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EC2.SecurityGroupReference |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#SecurityGroupReference |
Java | software.amazon.awscdk.services.ec2.SecurityGroupReference |
Python | aws_cdk.aws_ec2.SecurityGroupReference |
TypeScript | aws-cdk-lib » aws_ec2 » SecurityGroupReference |
A reference to a SecurityGroup resource.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const securityGroupReference: ec2.SecurityGroupReference = {
securityGroupId: 'securityGroupId',
};
Properties
| Name | Type | Description |
|---|---|---|
| security | string | The Id of the SecurityGroup resource. |
securityGroupId
Type:
string
The Id of the SecurityGroup resource.

.NET
Go
Java
Python
TypeScript