revoke_cluster_security_group_ingress
async
¶
revoke_cluster_security_group_ingress(
*,
config_overrides: Optional[AsyncRedshiftClientConfig] = None,
cluster_security_group_name: Optional[String] = None,
cidrip: Optional[String] = None,
ec2_security_group_name: Optional[String] = None,
ec2_security_group_owner_id: Optional[String] = None,
) -> RevokeClusterSecurityGroupIngressResult
Revokes an ingress rule in an Amazon Redshift security group for a previously authorized IP range or Amazon EC2 security group. To add an ingress rule, see AuthorizeClusterSecurityGroupIngress. For information about managing security groups, go to Amazon Redshift Cluster Security Groups in the Amazon Redshift Cluster Management Guide.
Parameters:
-
cluster_security_group_name(Optional[String], default:None) –The name of the security Group from which to revoke the ingress rule.
-
cidrip(Optional[String], default:None) –The IP range for which to revoke access. This range must be a valid Classless Inter-Domain Routing (CIDR) block of IP addresses. If
CIDRIPis specified,EC2SecurityGroupNameandEC2SecurityGroupOwnerIdcannot be provided. -
ec2_security_group_name(Optional[String], default:None) –The name of the EC2 Security Group whose access is to be revoked. If
EC2SecurityGroupNameis specified,EC2SecurityGroupOwnerIdmust also be provided andCIDRIPcannot be provided. -
ec2_security_group_owner_id(Optional[String], default:None) –The Amazon Web Services account number of the owner of the security group specified in the
EC2SecurityGroupNameparameter. The Amazon Web Services access key ID is not an acceptable value. IfEC2SecurityGroupOwnerIdis specified,EC2SecurityGroupNamemust also be provided. andCIDRIPcannot be provided.Example:
111122223333
Raises:
-
AuthorizationNotFoundFault–The specified CIDR IP range or EC2 security group is not authorized for the specified cluster security group.
-
ClusterSecurityGroupNotFoundFault–The cluster security group name does not refer to an existing cluster security group.
-
InvalidClusterSecurityGroupStateFault–The state of the cluster security group is not
available. -
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_redshift/_services/async_redshift.py
11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 | |