Documentation ¶
Index ¶
- func NewTags(name string) map[string]string
- type Client
- func (c Client) CreateInstanceFlowLogs(instances ec2.Instances) (string, error)
- func (c Client) CreateNatGatewayFlowLogs(natGateway ec2.NatGateway) (string, error)
- func (c Client) CreateSecurityGroupFlowLogs(securityGroup ec2.SecurityGroup) (string, error)
- func (c Client) CreateSubnetFlowLogs(subnet ec2.Subnet) (string, error)
- func (c Client) CreateVPCFlowLogs(vpc ec2.VPC) (string, error)
- func (c Client) DeleteFlowLogs(flowLogs ec2.FlowLogs) error
- func (c Client) DeleteIAMRoles(flowLogs ec2.FlowLogs) error
- func (c Client) DeleteLogGroups(flowLogs ec2.FlowLogs) error
- func (c Client) DeleteResources(flowLogs ec2.FlowLogs) error
- func (c Client) ListFlowLogs(flowLogType FlowLogType) (ec2.FlowLogs, error)
- func (c Client) ListInstances(vpcId string) (ec2.Instances, error)
- func (c Client) ListNatGateways(vpcId string) (ec2.NatGateways, error)
- func (c Client) ListNetworkInterfaces() (ec2.NetworkInterfaces, error)
- func (c Client) ListSecurityGroups(vpcId string) (ec2.SecurityGroups, error)
- func (c Client) ListSubnets(vpcId string) (ec2.Subnets, error)
- func (c Client) ListVPCs() (ec2.VPCs, error)
- func (c Client) QueryFlowLogs(flowLogs ec2.FlowLogs, query query.Query) ([]map[string]string, error)
- type Config
- type FlowLogType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) CreateInstanceFlowLogs ¶
func (Client) CreateNatGatewayFlowLogs ¶
func (c Client) CreateNatGatewayFlowLogs(natGateway ec2.NatGateway) (string, error)
func (Client) CreateSecurityGroupFlowLogs ¶
func (c Client) CreateSecurityGroupFlowLogs(securityGroup ec2.SecurityGroup) (string, error)
func (Client) CreateSubnetFlowLogs ¶
func (Client) DeleteResources ¶
DeleteResources delete flow logs, IAM roles and cloud watch log groups
func (Client) ListFlowLogs ¶
func (c Client) ListFlowLogs(flowLogType FlowLogType) (ec2.FlowLogs, error)
func (Client) ListNatGateways ¶
func (c Client) ListNatGateways(vpcId string) (ec2.NatGateways, error)
func (Client) ListNetworkInterfaces ¶ added in v0.0.2
func (c Client) ListNetworkInterfaces() (ec2.NetworkInterfaces, error)
func (Client) ListSecurityGroups ¶
func (c Client) ListSecurityGroups(vpcId string) (ec2.SecurityGroups, error)
type FlowLogType ¶
type FlowLogType string
const ( FlowLogTypeInstance FlowLogType = "instance-" FlowLogTypeSecurityGroup FlowLogType = "sg-" FlowLogTypeNatGateway FlowLogType = "nat-" FlowLogTypeSubnet FlowLogType = "subnet-" FlowLogTypeVPC FlowLogType = "vpc-" FlowLogTypeAll FlowLogType = "" )
Click to show internal directories.
Click to hide internal directories.