Documentation ¶
Index ¶
- func ConvertAttrValueMap(image map[string]events.DynamoDBAttributeValue) (map[string]*dynamodb.AttributeValue, error)
- type NACLClient
- type NACLClientImpl
- func (n *NACLClientImpl) DenyByNACL(cidr string, protocolNumber int64, networkACLID string, ruleNumber int64, ...) error
- func (n *NACLClientImpl) ReleaseDenyingByNACL(networkACLID string, ruleNumber int64, ingressMode bool) error
- func (n *NACLClientImpl) RetrieveNACLEntries(networkACLID string) (*ec2.DescribeNetworkAclsOutput, error)
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.