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.

NetworkAclEntry

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

type NetworkAclEntry struct { CidrBlock *string `locationName:"cidrBlock" type:"string"` Egress *bool `locationName:"egress" type:"boolean"` IcmpTypeCode *IcmpTypeCode `locationName:"icmpTypeCode" type:"structure"` Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"` PortRange *PortRange `locationName:"portRange" type:"structure"` Protocol *string `locationName:"protocol" type:"string"` RuleAction *string `locationName:"ruleAction" type:"string" enum:"RuleAction"` RuleNumber *int64 `locationName:"ruleNumber" type:"integer"` }

Describes an entry in a network ACL.

CidrBlock

Type: *string

The IPv4 network range to allow or deny, in CIDR notation.

Egress

Type: *bool

Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).

IcmpTypeCode

Describes the ICMP type and code.

Ipv6CidrBlock

Type: *string

The IPv6 network range to allow or deny, in CIDR notation.

PortRange

Describes a range of ports.

Protocol

Type: *string

The protocol number. A value of "-1" means all protocols.

RuleAction

Type: *string

Indicates whether to allow or deny the traffic that matches the rule.

RuleNumber

Type: *int64

The rule number for the entry. ACL entries are processed in ascending order by rule number.

Method

GoString

func (s NetworkAclEntry) GoString() string

GoString returns the string representation

SetCidrBlock

func (s *NetworkAclEntry) SetCidrBlock(v string) *NetworkAclEntry

SetCidrBlock sets the CidrBlock field's value.

SetEgress

func (s *NetworkAclEntry) SetEgress(v bool) *NetworkAclEntry

SetEgress sets the Egress field's value.

SetIcmpTypeCode

func (s *NetworkAclEntry) SetIcmpTypeCode(v *IcmpTypeCode) *NetworkAclEntry

SetIcmpTypeCode sets the IcmpTypeCode field's value.

SetIpv6CidrBlock

func (s *NetworkAclEntry) SetIpv6CidrBlock(v string) *NetworkAclEntry

SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.

SetPortRange

func (s *NetworkAclEntry) SetPortRange(v *PortRange) *NetworkAclEntry

SetPortRange sets the PortRange field's value.

SetProtocol

func (s *NetworkAclEntry) SetProtocol(v string) *NetworkAclEntry

SetProtocol sets the Protocol field's value.

SetRuleAction

func (s *NetworkAclEntry) SetRuleAction(v string) *NetworkAclEntry

SetRuleAction sets the RuleAction field's value.

SetRuleNumber

func (s *NetworkAclEntry) SetRuleNumber(v int64) *NetworkAclEntry

SetRuleNumber sets the RuleNumber field's value.

String

func (s NetworkAclEntry) String() string

String returns the string representation

On this page: