NAME

Paws::EC2::RevokeSecurityGroupIngress - Arguments for method RevokeSecurityGroupIngress on Paws::EC2

DESCRIPTION

This class represents the parameters used for calling the method RevokeSecurityGroupIngress on the Amazon Elastic Compute Cloud service. Use the attributes of this class as arguments to method RevokeSecurityGroupIngress.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to RevokeSecurityGroupIngress.

SYNOPSIS

my $ec2 = Paws->service('EC2');
my $RevokeSecurityGroupIngressResult = $ec2->RevokeSecurityGroupIngress(
  CidrIp        => 'MyString',               # OPTIONAL
  DryRun        => 1,                        # OPTIONAL
  FromPort      => 1,                        # OPTIONAL
  GroupId       => 'MySecurityGroupId',      # OPTIONAL
  GroupName     => 'MySecurityGroupName',    # OPTIONAL
  IpPermissions => [
    {
      FromPort   => 1,
      IpProtocol => 'MyString',
      IpRanges   => [
        {
          CidrIp      => 'MyString',
          Description => 'MyString',
        },
        ...
      ],    # OPTIONAL
      Ipv6Ranges => [
        {
          CidrIpv6    => 'MyString',
          Description => 'MyString',
        },
        ...
      ],    # OPTIONAL
      PrefixListIds => [
        {
          Description  => 'MyString',
          PrefixListId => 'MyString',
        },
        ...
      ],    # OPTIONAL
      ToPort           => 1,
      UserIdGroupPairs => [
        {
          Description            => 'MyString',
          GroupId                => 'MyString',
          GroupName              => 'MyString',
          PeeringStatus          => 'MyString',
          UserId                 => 'MyString',
          VpcId                  => 'MyString',
          VpcPeeringConnectionId => 'MyString',
        },
        ...
      ],    # OPTIONAL
    },
    ...
  ],    # OPTIONAL
  IpProtocol                 => 'MyString',    # OPTIONAL
  SourceSecurityGroupName    => 'MyString',    # OPTIONAL
  SourceSecurityGroupOwnerId => 'MyString',    # OPTIONAL
  ToPort                     => 1,             # OPTIONAL
);

# Results:
my $Return = $RevokeSecurityGroupIngressResult->Return;
my $UnknownIpPermissions =
  $RevokeSecurityGroupIngressResult->UnknownIpPermissions;

# Returns a L<Paws::EC2::RevokeSecurityGroupIngressResult> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/ec2/RevokeSecurityGroupIngress

ATTRIBUTES

CidrIp => Str

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

DryRun => Bool

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.

FromPort => Int

The start of port range for the TCP and UDP protocols, or an ICMP type number. For the ICMP type number, use -1 to specify all ICMP types.

GroupId => Str

The ID 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.

GroupName => Str

[EC2-Classic, default VPC] The name of the security group. You must specify either the security group ID or the security group name in the request.

IpPermissions => ArrayRef[Paws::EC2::IpPermission]

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.

IpProtocol => Str

The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)). Use -1 to specify all.

SourceSecurityGroupName => Str

[EC2-Classic, 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. For EC2-VPC, 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.

SourceSecurityGroupOwnerId => Str

[EC2-Classic] The AWS account ID of the source security group, if the source security group is in a different account. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the IP protocol, the start of the port range, and the end of the port range. To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.

ToPort => Int

The end of port range for the TCP and UDP protocols, or an ICMP code number. For the ICMP code number, use -1 to specify all ICMP codes for the ICMP type.

SEE ALSO

This class forms part of Paws, documenting arguments for method RevokeSecurityGroupIngress in Paws::EC2

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues