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.

CreateNetworkAclEntryInput

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

type CreateNetworkAclEntryInput struct { CidrBlock *string `locationName:"cidrBlock" type:"string"` DryRun *bool `locationName:"dryRun" type:"boolean"` Egress *bool `locationName:"egress" type:"boolean" required:"true"` IcmpTypeCode *IcmpTypeCode `locationName:"Icmp" type:"structure"` Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"` NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"` PortRange *PortRange `locationName:"portRange" type:"structure"` Protocol *string `locationName:"protocol" type:"string" required:"true"` RuleAction *string `locationName:"ruleAction" type:"string" required:"true" enum:"RuleAction"` RuleNumber *int64 `locationName:"ruleNumber" type:"integer" required:"true"` }

CidrBlock

Type: *string

The IPv4 network range to allow or deny, in CIDR notation (for example 172.16.0.0/24).

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.

Egress

Type: *bool

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

Egress is a required field

IcmpTypeCode

Describes the ICMP type and code.

Ipv6CidrBlock

Type: *string

The IPv6 network range to allow or deny, in CIDR notation (for example 2001:db8:1234:1a00::/64).

NetworkAclId

Type: *string

The ID of the network ACL.

NetworkAclId is a required field

PortRange

Describes a range of ports.

Protocol

Type: *string

The protocol number. A value of "-1" means all protocols. If you specify "-1" or a protocol number other than "6" (TCP), "17" (UDP), or "1" (ICMP), traffic on all ports is allowed, regardless of any ports or ICMP types or codes that you specify. If you specify protocol "58" (ICMPv6) and specify an IPv4 CIDR block, traffic for all ICMP types and codes allowed, regardless of any that you specify. If you specify protocol "58" (ICMPv6) and specify an IPv6 CIDR block, you must specify an ICMP type and code.

Protocol is a required field

RuleAction

Type: *string

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

RuleAction is a required field

RuleNumber

Type: *int64

The rule number for the entry (for example, 100). ACL entries are processed in ascending order by rule number.

Constraints: Positive integer from 1 to 32766. The range 32767 to 65535 is reserved for internal use.

RuleNumber is a required field

Method

GoString

func (s CreateNetworkAclEntryInput) GoString() string

GoString returns the string representation

SetCidrBlock

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

SetCidrBlock sets the CidrBlock field's value.

SetDryRun

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

SetDryRun sets the DryRun field's value.

SetEgress

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

SetEgress sets the Egress field's value.

SetIcmpTypeCode

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

SetIcmpTypeCode sets the IcmpTypeCode field's value.

SetIpv6CidrBlock

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

SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.

SetNetworkAclId

func (s *CreateNetworkAclEntryInput) SetNetworkAclId(v string) *CreateNetworkAclEntryInput

SetNetworkAclId sets the NetworkAclId field's value.

SetPortRange

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

SetPortRange sets the PortRange field's value.

SetProtocol

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

SetProtocol sets the Protocol field's value.

SetRuleAction

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

SetRuleAction sets the RuleAction field's value.

SetRuleNumber

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

SetRuleNumber sets the RuleNumber field's value.

String

func (s CreateNetworkAclEntryInput) String() string

String returns the string representation

Validate

func (s *CreateNetworkAclEntryInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: