revoke_cache_security_group_ingress
async
¶
revoke_cache_security_group_ingress(
*,
config_overrides: Optional[AsyncElastiCacheClientConfig] = 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.
>>> await 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/async_elasti_cache.py
6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 | |