CfnSecurityGroupProps

class aws_cdk.aws_ec2.CfnSecurityGroupProps(*, group_description, group_name=None, security_group_egress=None, security_group_ingress=None, tags=None, vpc_id=None)

Bases: object

__init__(*, group_description, group_name=None, security_group_egress=None, security_group_ingress=None, tags=None, vpc_id=None)

Properties for defining a AWS::EC2::SecurityGroup.

Parameters
  • group_description (str) – AWS::EC2::SecurityGroup.GroupDescription.

  • group_name (Optional[str]) – AWS::EC2::SecurityGroup.GroupName.

  • security_group_egress (Union[IResolvable, None, List[Union[IResolvable, EgressProperty]]]) – AWS::EC2::SecurityGroup.SecurityGroupEgress.

  • security_group_ingress (Union[IResolvable, None, List[Union[IResolvable, IngressProperty]]]) – AWS::EC2::SecurityGroup.SecurityGroupIngress.

  • tags (Optional[List[CfnTag]]) – AWS::EC2::SecurityGroup.Tags.

  • vpc_id (Optional[str]) – AWS::EC2::SecurityGroup.VpcId.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group.html

Attributes

group_description

AWS::EC2::SecurityGroup.GroupDescription.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group.html#cfn-ec2-securitygroup-groupdescription

Return type

str

group_name

AWS::EC2::SecurityGroup.GroupName.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group.html#cfn-ec2-securitygroup-groupname

Return type

Optional[str]

security_group_egress

AWS::EC2::SecurityGroup.SecurityGroupEgress.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group.html#cfn-ec2-securitygroup-securitygroupegress

Return type

Union[IResolvable, None, List[Union[IResolvable, EgressProperty]]]

security_group_ingress

AWS::EC2::SecurityGroup.SecurityGroupIngress.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group.html#cfn-ec2-securitygroup-securitygroupingress

Return type

Union[IResolvable, None, List[Union[IResolvable, IngressProperty]]]

tags

AWS::EC2::SecurityGroup.Tags.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group.html#cfn-ec2-securitygroup-tags

Return type

Optional[List[CfnTag]]

vpc_id

AWS::EC2::SecurityGroup.VpcId.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group.html#cfn-ec2-securitygroup-vpcid

Return type

Optional[str]