internal

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertAttrValueMap

func ConvertAttrValueMap(image map[string]events.DynamoDBAttributeValue) (map[string]*dynamodb.AttributeValue, error)

ConvertAttrValueMap converts Lambda's DynamoDBAttributeValue to aws-sdk's one.

Types

type NACLClient

type NACLClient interface {
	ReleaseDenyingByNACL(networkACLID string, ruleNumber int64, ingressMode bool) error
	DenyByNACL(cidr string, protocolNumber int64, networkACLID string, ruleNumber int64, portRange *ec2.PortRange, ingressMode bool) error
	RetrieveNACLEntries(networkACLID string) (*ec2.DescribeNetworkAclsOutput, error)
}

NACLClient is a API client for EC2 network ACL.

type NACLClientImpl

type NACLClientImpl struct {
	EC2Srv *ec2.EC2
}

NACLClientImpl is a concrete implementation of NACLClient.

func NewNACLClientImpl

func NewNACLClientImpl(ec2Srv *ec2.EC2) *NACLClientImpl

NewNACLClientImpl creates a new NACLClientImpl.

func (*NACLClientImpl) DenyByNACL

func (n *NACLClientImpl) DenyByNACL(cidr string, protocolNumber int64, networkACLID string, ruleNumber int64, portRange *ec2.PortRange, ingressMode bool) error

DenyByNACL adds a new NACL entry to deny.

func (*NACLClientImpl) ReleaseDenyingByNACL

func (n *NACLClientImpl) ReleaseDenyingByNACL(networkACLID string, ruleNumber int64, ingressMode bool) error

ReleaseDenyingByNACL releases a NACL entry of denying.

func (*NACLClientImpl) RetrieveNACLEntries

func (n *NACLClientImpl) RetrieveNACLEntries(networkACLID string) (*ec2.DescribeNetworkAclsOutput, error)

RetrieveNACLEntries retrieves NACL entries that associated with NACL ID.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL