AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

AuthorizeSecurityGroupIngressInput

import "github.com/aws/aws-sdk-go/service/ec2"

type AuthorizeSecurityGroupIngressInput struct { CidrIp *string `type:"string"` DryRun *bool `locationName:"dryRun" type:"boolean"` FromPort *int64 `type:"integer"` GroupId *string `type:"string"` GroupName *string `type:"string"` IpPermissions []*IpPermission `locationNameList:"item" type:"list"` IpProtocol *string `type:"string"` SourceSecurityGroupName *string `type:"string"` SourceSecurityGroupOwnerId *string `type:"string"` ToPort *int64 `type:"integer"` }

CidrIp

Type: *string

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

DryRun

Type: *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

Type: *int64

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

GroupId

Type: *string

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

Type: *string

[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

Describes a set of permissions for a security group rule.

IpProtocol

Type: *string

The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)). (VPC only) Use -1 to specify all protocols. If you specify -1, or a protocol number other than tcp, udp, icmp, or 58 (ICMPv6), traffic on all ports is allowed, regardless of any ports you specify. For tcp, udp, and icmp, you must specify a port range. For protocol 58 (ICMPv6), you can optionally specify a port range; if you don't, traffic for all types and codes is allowed.

SourceSecurityGroupName

Type: *string

[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. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP protocol and port range, use a set of IP permissions instead. For EC2-VPC, the source security group must be in the same VPC.

SourceSecurityGroupOwnerId

Type: *string

[nondefault VPC] The AWS account ID for 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. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP protocol and port range, use a set of IP permissions instead.

ToPort

Type: *int64

The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code number. For the ICMP/ICMPv6 code number, use -1 to specify all codes. If you specify all ICMP/ICMPv6 types, you must specify all codes.

Method

GoString

func (s AuthorizeSecurityGroupIngressInput) GoString() string

GoString returns the string representation

SetCidrIp

func (s *AuthorizeSecurityGroupIngressInput) SetCidrIp(v string) *AuthorizeSecurityGroupIngressInput

SetCidrIp sets the CidrIp field's value.

SetDryRun

func (s *AuthorizeSecurityGroupIngressInput) SetDryRun(v bool) *AuthorizeSecurityGroupIngressInput

SetDryRun sets the DryRun field's value.

SetFromPort

func (s *AuthorizeSecurityGroupIngressInput) SetFromPort(v int64) *AuthorizeSecurityGroupIngressInput

SetFromPort sets the FromPort field's value.

SetGroupId

func (s *AuthorizeSecurityGroupIngressInput) SetGroupId(v string) *AuthorizeSecurityGroupIngressInput

SetGroupId sets the GroupId field's value.

SetGroupName

func (s *AuthorizeSecurityGroupIngressInput) SetGroupName(v string) *AuthorizeSecurityGroupIngressInput

SetGroupName sets the GroupName field's value.

SetIpPermissions

func (s *AuthorizeSecurityGroupIngressInput) SetIpPermissions(v []*IpPermission) *AuthorizeSecurityGroupIngressInput

SetIpPermissions sets the IpPermissions field's value.

SetIpProtocol

func (s *AuthorizeSecurityGroupIngressInput) SetIpProtocol(v string) *AuthorizeSecurityGroupIngressInput

SetIpProtocol sets the IpProtocol field's value.

SetSourceSecurityGroupName

func (s *AuthorizeSecurityGroupIngressInput) SetSourceSecurityGroupName(v string) *AuthorizeSecurityGroupIngressInput

SetSourceSecurityGroupName sets the SourceSecurityGroupName field's value.

SetSourceSecurityGroupOwnerId

func (s *AuthorizeSecurityGroupIngressInput) SetSourceSecurityGroupOwnerId(v string) *AuthorizeSecurityGroupIngressInput

SetSourceSecurityGroupOwnerId sets the SourceSecurityGroupOwnerId field's value.

SetToPort

func (s *AuthorizeSecurityGroupIngressInput) SetToPort(v int64) *AuthorizeSecurityGroupIngressInput

SetToPort sets the ToPort field's value.

String

func (s AuthorizeSecurityGroupIngressInput) String() string

String returns the string representation

On this page: