You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::EC2::Types::AuthorizeSecurityGroupEgressRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb

Overview

Note:

When making an API call, you may pass AuthorizeSecurityGroupEgressRequest data as a hash:

{
  dry_run: false,
  group_id: "String", # required
  ip_permissions: [
    {
      from_port: 1,
      ip_protocol: "String",
      ip_ranges: [
        {
          cidr_ip: "String",
        },
      ],
      ipv_6_ranges: [
        {
          cidr_ipv_6: "String",
        },
      ],
      prefix_list_ids: [
        {
          prefix_list_id: "String",
        },
      ],
      to_port: 1,
      user_id_group_pairs: [
        {
          group_id: "String",
          group_name: "String",
          peering_status: "String",
          user_id: "String",
          vpc_id: "String",
          vpc_peering_connection_id: "String",
        },
      ],
    },
  ],
  cidr_ip: "String",
  from_port: 1,
  ip_protocol: "String",
  to_port: 1,
  source_security_group_name: "String",
  source_security_group_owner_id: "String",
}

Contains the parameters for AuthorizeSecurityGroupEgress.

Instance Attribute Summary collapse

Instance Attribute Details

#cidr_ipString

The CIDR IPv4 address range. We recommend that you specify the CIDR range in a set of IP permissions instead.

Returns:

  • (String)


1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 1123

class AuthorizeSecurityGroupEgressRequest < Struct.new(
  :dry_run,
  :group_id,
  :ip_permissions,
  :cidr_ip,
  :from_port,
  :ip_protocol,
  :to_port,
  :source_security_group_name,
  :source_security_group_owner_id)
  include Aws::Structure
end

#dry_runBoolean

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.

Returns:

  • (Boolean)


1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 1123

class AuthorizeSecurityGroupEgressRequest < Struct.new(
  :dry_run,
  :group_id,
  :ip_permissions,
  :cidr_ip,
  :from_port,
  :ip_protocol,
  :to_port,
  :source_security_group_name,
  :source_security_group_owner_id)
  include Aws::Structure
end

#from_portInteger

The start of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.

Returns:

  • (Integer)


1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 1123

class AuthorizeSecurityGroupEgressRequest < Struct.new(
  :dry_run,
  :group_id,
  :ip_permissions,
  :cidr_ip,
  :from_port,
  :ip_protocol,
  :to_port,
  :source_security_group_name,
  :source_security_group_owner_id)
  include Aws::Structure
end

#group_idString

The ID of the security group.

Returns:

  • (String)


1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 1123

class AuthorizeSecurityGroupEgressRequest < Struct.new(
  :dry_run,
  :group_id,
  :ip_permissions,
  :cidr_ip,
  :from_port,
  :ip_protocol,
  :to_port,
  :source_security_group_name,
  :source_security_group_owner_id)
  include Aws::Structure
end

#ip_permissionsArray<Types::IpPermission>

A set of IP permissions. You can't specify a destination security group and a CIDR IP address range.

Returns:



1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 1123

class AuthorizeSecurityGroupEgressRequest < Struct.new(
  :dry_run,
  :group_id,
  :ip_permissions,
  :cidr_ip,
  :from_port,
  :ip_protocol,
  :to_port,
  :source_security_group_name,
  :source_security_group_owner_id)
  include Aws::Structure
end

#ip_protocolString

The IP protocol name or number. We recommend that you specify the protocol in a set of IP permissions instead.

Returns:

  • (String)


1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 1123

class AuthorizeSecurityGroupEgressRequest < Struct.new(
  :dry_run,
  :group_id,
  :ip_permissions,
  :cidr_ip,
  :from_port,
  :ip_protocol,
  :to_port,
  :source_security_group_name,
  :source_security_group_owner_id)
  include Aws::Structure
end

#source_security_group_nameString

The name of a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.

Returns:

  • (String)


1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 1123

class AuthorizeSecurityGroupEgressRequest < Struct.new(
  :dry_run,
  :group_id,
  :ip_permissions,
  :cidr_ip,
  :from_port,
  :ip_protocol,
  :to_port,
  :source_security_group_name,
  :source_security_group_owner_id)
  include Aws::Structure
end

#source_security_group_owner_idString

The AWS account number for a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.

Returns:

  • (String)


1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 1123

class AuthorizeSecurityGroupEgressRequest < Struct.new(
  :dry_run,
  :group_id,
  :ip_permissions,
  :cidr_ip,
  :from_port,
  :ip_protocol,
  :to_port,
  :source_security_group_name,
  :source_security_group_owner_id)
  include Aws::Structure
end

#to_portInteger

The end of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.

Returns:

  • (Integer)


1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 1123

class AuthorizeSecurityGroupEgressRequest < Struct.new(
  :dry_run,
  :group_id,
  :ip_permissions,
  :cidr_ip,
  :from_port,
  :ip_protocol,
  :to_port,
  :source_security_group_name,
  :source_security_group_owner_id)
  include Aws::Structure
end