utils

package
v0.0.0-...-79fa972 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteSecurityGroupRules

func DeleteSecurityGroupRules(ctx context.Context, ec2Client *ec2.Client, securityGroupRuleDetails []SecurityGroupRuleDetails)

func FindTag

func FindTag(tags []types.Tag, key string, defaultValue string) string

func IdFromArn

func IdFromArn(arn string) string

func ParseArgs

func ParseArgs() cliArgs

Types

type SecurityGroupRuleDetails

type SecurityGroupRuleDetails struct {
	SecurityGroup string
	VpcDetails    vpcDetails
	Rule          securityGroupRule
}

func FindUnusedSecurityGroupRules

func FindUnusedSecurityGroupRules(ctx context.Context, ec2Client *ec2.Client, securityHubClient *securityhub.Client) ([]SecurityGroupRuleDetails, error)

Jump to

Keyboard shortcuts

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