revoke_cache_security_group_ingress
¶
revoke_cache_security_group_ingress(
*,
config_overrides: Optional[ElastiCacheClientConfig] = None,
cache_security_group_name: Optional[String] = None,
ec2_security_group_name: Optional[String] = None,
ec2_security_group_owner_id: Optional[String] = None,
) -> RevokeCacheSecurityGroupIngressResult
Revokes ingress from a cache security group. Use this operation to disallow access from an Amazon EC2 security group that had been previously authorized.
Parameters:
-
cache_security_group_name(Optional[String], default:None) –The name of the cache security group to revoke ingress from.
-
ec2_security_group_name(Optional[String], default:None) –The name of the Amazon EC2 security group to revoke access from.
-
ec2_security_group_owner_id(Optional[String], default:None) –The Amazon account number of the Amazon EC2 security group owner. Note that this is not the same thing as an Amazon access key ID - you must provide a valid Amazon account number for this parameter.
Raises:
-
AuthorizationNotFoundFault–The specified Amazon EC2 security group is not authorized for the specified cache security group.
-
CacheSecurityGroupNotFoundFault–The requested cache security group name does not refer to an existing cache security group.
-
InvalidCacheSecurityGroupStateFault–The current state of the cache security group does not allow deletion.
-
InvalidParameterCombinationException–Two or more incompatible parameters were specified.
-
InvalidParameterValueException–The value for a parameter is invalid.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
DescribeCacheSecurityGroups Returns a list of cache security group descriptions. If a cache security group name is specified, the list contains only the description of that group.
>>> client.revoke_cache_security_group_ingress(cache_security_group_name='my-sec-grp', ec2_security_group_name='my-ec2-sec-grp', ec2_security_group_owner_id='1234567890')
Source code in docs_src/capo_elasticache/_services/elasti_cache.py
6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 | |