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

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, List[Union[IResolvable, EgressProperty]], None]) – AWS::EC2::SecurityGroup.SecurityGroupEgress.

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

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

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

See

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

Attributes

group_description

AWS::EC2::SecurityGroup.GroupDescription.

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

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

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

Return type

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

security_group_ingress

AWS::EC2::SecurityGroup.SecurityGroupIngress.

See

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

Return type

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

tags

AWS::EC2::SecurityGroup.Tags.

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

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

Return type

Optional[str]