Skip to content

RevokeSecurityGroupIngressRequest

Source code in docs_src/capo_ec2/types/revoke_security_group_ingress_request.py
class RevokeSecurityGroupIngressRequest(TypedDict, closed=True):
    cidr_ip: NotRequired["capo_ec2.types.string.String"]
    """<p>The CIDR IP address range. You can't specify this parameter when specifying a source security group.</p>"""
    from_port: NotRequired["capo_ec2.types.integer.Integer"]
    """<p>If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP, this is the ICMP type or -1 (all ICMP types).</p>"""
    group_id: NotRequired["capo_ec2.types.security_group_id.SecurityGroupId"]
    """<p>The ID of the security group.</p>"""
    group_name: NotRequired["capo_ec2.types.security_group_name.SecurityGroupName"]
    """<p>[Default VPC] The name of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID.</p>"""
    ip_permissions: NotRequired["capo_ec2.types.ip_permission_list.IpPermissionList"]
    """<p>The sets of IP permissions. You can't specify a source security group and a CIDR IP address range in the same set of permissions.</p>"""
    ip_protocol: NotRequired["capo_ec2.types.string.String"]
    """<p>The IP protocol name (<code>tcp</code>, <code>udp</code>, <code>icmp</code>) or number (see <a href="http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml">Protocol Numbers</a>). Use <code>-1</code> to specify all.</p>"""
    source_security_group_name: NotRequired["capo_ec2.types.string.String"]
    """<p>[Default VPC] The name of the source security group. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the end of the port range. The source security group must be in the same VPC. To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.</p>"""
    source_security_group_owner_id: NotRequired["capo_ec2.types.string.String"]
    """<p>Not supported.</p>"""
    to_port: NotRequired["capo_ec2.types.integer.Integer"]
    """<p>If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP, this is the ICMP code or -1 (all ICMP codes).</p>"""
    security_group_rule_ids: NotRequired[
        "capo_ec2.types.security_group_rule_id_list.SecurityGroupRuleIdList"
    ]
    """<p>The IDs of the security group rules.</p>"""
    dry_run: NotRequired["capo_ec2.types.boolean.Boolean"]
    """<p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>"""

cidr_ip instance-attribute

cidr_ip: NotRequired[String]

The CIDR IP address range. You can't specify this parameter when specifying a source security group.

dry_run instance-attribute

dry_run: NotRequired[Boolean]

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

from_port instance-attribute

from_port: NotRequired[Integer]

If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP, this is the ICMP type or -1 (all ICMP types).

group_id instance-attribute

group_id: NotRequired[SecurityGroupId]

The ID of the security group.

group_name instance-attribute

group_name: NotRequired[SecurityGroupName]

[Default VPC] The name of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID.

ip_permissions instance-attribute

ip_permissions: NotRequired[IpPermissionList]

The sets of IP permissions. You can't specify a source security group and a CIDR IP address range in the same set of permissions.

ip_protocol instance-attribute

ip_protocol: NotRequired[String]

The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers). Use -1 to specify all.

security_group_rule_ids instance-attribute

security_group_rule_ids: NotRequired[SecurityGroupRuleIdList]

The IDs of the security group rules.

source_security_group_name instance-attribute

source_security_group_name: NotRequired[String]

[Default VPC] The name of the source security group. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the end of the port range. The source security group must be in the same VPC. To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.

source_security_group_owner_id instance-attribute

source_security_group_owner_id: NotRequired[String]

Not supported.

to_port instance-attribute

to_port: NotRequired[Integer]

If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP, this is the ICMP code or -1 (all ICMP codes).