Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Log Logger for this package Log = newLogger() // Cfg Config for this package Cfg *config.Config )
Functions ¶
This section is empty.
Types ¶
type SecurityGroup ¶
type SecurityGroup struct {
State *ec2.SecurityGroup
}
func FindAllSecGroupsWithTag ¶
func FindAllSecGroupsWithTag(tagKey string, tagValue string) ([]SecurityGroup, error)
func NewSecurityGroup ¶
func NewSecurityGroup(sgout *ec2.SecurityGroup) SecurityGroup
NewSecurityGroup create a new SecurityGroup object
func NewSecurityGroupWithStatus ¶
func NewSecurityGroupWithStatus(sgID string, accountID string, describeFunc ...func(string, string) (*ec2.DescribeSecurityGroupsOutput, error)) (SecurityGroup, error)
NewSecurityGroupWithStatus create a new SecurityGroup object including the current status of the AWS resource
func (*SecurityGroup) GetId ¶
func (sg *SecurityGroup) GetId() string
func (*SecurityGroup) GetProperties ¶
func (sg *SecurityGroup) GetProperties(key string) []string
GetProperties returns the given properties for <key> argument
func (SecurityGroup) TagCreator ¶
func (sg SecurityGroup) TagCreator(ui map[string]string) error
TagCreator Tag security group with the user identity given in the event
type SecurityGroupError ¶
type SecurityGroupError struct { Ignore bool // contains filtered or unexported fields }
SecurityGroupError error definition
func NewSecurityGroupError ¶
func NewSecurityGroupError(id, msg string, ignore bool) SecurityGroupError
NewSecurityGroupError create new SecurityGroupError
func (SecurityGroupError) Error ¶
func (e SecurityGroupError) Error() string
Click to show internal directories.
Click to hide internal directories.