revokeCacheSecurityGroupIngress method
Revokes ingress from a cache security group. Use this operation to disallow access from an Amazon EC2 security group that had been previously authorized.
May throw CacheSecurityGroupNotFoundFault. May throw AuthorizationNotFoundFault. May throw InvalidCacheSecurityGroupStateFault. May throw InvalidParameterValueException. May throw InvalidParameterCombinationException.
Parameter cacheSecurityGroupName
:
The name of the cache security group to revoke ingress from.
Parameter eC2SecurityGroupName
:
The name of the Amazon EC2 security group to revoke access from.
Parameter eC2SecurityGroupOwnerId
:
The AWS account number of the Amazon EC2 security group owner. Note that
this is not the same thing as an AWS access key ID - you must provide a
valid AWS account number for this parameter.
Implementation
Future<RevokeCacheSecurityGroupIngressResult>
revokeCacheSecurityGroupIngress({
required String cacheSecurityGroupName,
required String eC2SecurityGroupName,
required String eC2SecurityGroupOwnerId,
}) async {
ArgumentError.checkNotNull(
cacheSecurityGroupName, 'cacheSecurityGroupName');
ArgumentError.checkNotNull(eC2SecurityGroupName, 'eC2SecurityGroupName');
ArgumentError.checkNotNull(
eC2SecurityGroupOwnerId, 'eC2SecurityGroupOwnerId');
final $request = <String, dynamic>{};
$request['CacheSecurityGroupName'] = cacheSecurityGroupName;
$request['EC2SecurityGroupName'] = eC2SecurityGroupName;
$request['EC2SecurityGroupOwnerId'] = eC2SecurityGroupOwnerId;
final $result = await _protocol.send(
$request,
action: 'RevokeCacheSecurityGroupIngress',
version: '2015-02-02',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['RevokeCacheSecurityGroupIngressMessage'],
shapes: shapes,
resultWrapper: 'RevokeCacheSecurityGroupIngressResult',
);
return RevokeCacheSecurityGroupIngressResult.fromXml($result);
}