IngressRuleConfig
- class aws_cdk.aws_ec2.IngressRuleConfig(*, cidr_ip=None, cidr_ipv6=None, source_prefix_list_id=None, source_security_group_id=None, source_security_group_owner_id=None)
Bases:
RuleConfigConfiguration for an ingress security group rule.
- Parameters:
cidr_ip (
Optional[str]) – The IPv4 address range, in CIDR format. Default: - No IPv4 CIDRcidr_ipv6 (
Optional[str]) – The IPv6 address range, in CIDR format. Default: - No IPv6 CIDRsource_prefix_list_id (
Optional[str]) – The ID of a source prefix list. Default: - No source prefix listsource_security_group_id (
Optional[str]) – The ID of a source security group. Default: - No source security groupsource_security_group_owner_id (
Optional[str]) – The AWS account ID of the owner of a source security group. Default: - No source security group owner ID
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_ec2 as ec2 ingress_rule_config = ec2.IngressRuleConfig( cidr_ip="cidrIp", cidr_ipv6="cidrIpv6", source_prefix_list_id="sourcePrefixListId", source_security_group_id="sourceSecurityGroupId", source_security_group_owner_id="sourceSecurityGroupOwnerId" )
Attributes
- cidr_ip
The IPv4 address range, in CIDR format.
- Default:
No IPv4 CIDR
- cidr_ipv6
The IPv6 address range, in CIDR format.
- Default:
No IPv6 CIDR
- source_prefix_list_id
The ID of a source prefix list.
- Default:
No source prefix list
- source_security_group_id
The ID of a source security group.
- Default:
No source security group
- source_security_group_owner_id
The AWS account ID of the owner of a source security group.
- Default:
No source security group owner ID