Documentation
¶
Index ¶
- func DeleteAllVpcs(sess *session.Session, force bool) error
- func DeleteEips(sess *session.Session, eips []*ec2.Address) error
- func DeleteNacls(sess *session.Session, nacls []*ec2.NetworkAcl) error
- func DeleteNatGateways(sess *session.Session, natGateways []*ec2.NatGateway) error
- func DeleteRouteTables(sess *session.Session, tables []*ec2.RouteTable) error
- func DeleteSgs(sess *session.Session, sgs []*ec2.SecurityGroup) error
- func DeleteSubnets(sess *session.Session, subnets []*ec2.Subnet) error
- func DeleteVpc(sess *session.Session, vpc *ec2.Vpc, force bool) error
- func DeleteVpcAndWait(sess *session.Session, vpc *ec2.Vpc) error
- func DeleteVpcEndpoints(sess *session.Session, vpcEndpoints []*ec2.VpcEndpoint) error
- func DetachAndDeleteIgws(sess *session.Session, igws []*ec2.InternetGateway) error
- func Execute()
- func GetSession(profile, region string) (*session.Session, error)
- func IterateOverProfiles(profileList []string, fn func(string) error) error
- func IterateOverRegions(regionList []string, fn func(string) error) error
- func ListEipsForVpc(sess *session.Session, vpcID string) ([]*ec2.Address, error)
- func ListIgwsForVpc(sess *session.Session, vpcID string) ([]*ec2.InternetGateway, error)
- func ListNaclsForVpc(sess *session.Session, vpc *ec2.Vpc) ([]*ec2.NetworkAcl, error)
- func ListNatGatewaysForVpc(sess *session.Session, vpcID string) ([]*ec2.NatGateway, error)
- func ListRouteTablesForVpc(sess *session.Session, vpc *ec2.Vpc) ([]*ec2.RouteTable, error)
- func ListSgsForVpc(sess *session.Session, id string) ([]*ec2.SecurityGroup, error)
- func ListSubnetsForVpc(sess *session.Session, vpcID string) ([]*ec2.Subnet, error)
- func ListVpcEndpointsForVpc(sess *session.Session, vpcID string) ([]*ec2.VpcEndpoint, error)
- func ListVpcs(sess *session.Session) ([]*ec2.Vpc, error)
- func ReleaseEips(sess *session.Session, eips []*ec2.Address) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteEips ¶
DeleteEips deletes the specified Elastic IPs.
func DeleteNacls ¶
func DeleteNacls(sess *session.Session, nacls []*ec2.NetworkAcl) error
func DeleteNatGateways ¶
func DeleteNatGateways(sess *session.Session, natGateways []*ec2.NatGateway) error
DeleteNatGateways deletes the specified NAT gateways and waits for them to be deleted.
func DeleteRouteTables ¶
func DeleteRouteTables(sess *session.Session, tables []*ec2.RouteTable) error
func DeleteSubnets ¶
DeleteSubnets deletes the specified subnets.
func DeleteVpc ¶
DeleteVpc deletes the specified VPC, along with all associated resources, in the specified session. change to vpc pointer
func DeleteVpcAndWait ¶
DeleteVpcAndWait deletes the specified VPC and waits for it to be deleted.
func DeleteVpcEndpoints ¶
func DeleteVpcEndpoints(sess *session.Session, vpcEndpoints []*ec2.VpcEndpoint) error
DeleteVpcEndpoints deletes the specified VPC endpoints.
func DetachAndDeleteIgws ¶
func DetachAndDeleteIgws(sess *session.Session, igws []*ec2.InternetGateway) error
DetachAndDeleteIgws detaches and deletes the specified Internet gateways.
func GetSession ¶
GetSession creates a new AWS session using the provided profile and region.
func IterateOverProfiles ¶
IterateOverProfiles calls the provided function for each profile in the profileList.
func IterateOverRegions ¶
IterateOverRegions calls the provided function for each region in the regionList.
func ListEipsForVpc ¶
ListEipsForVpc lists all Elastic IP addresses for the specified VPC ID in the specified session.
func ListIgwsForVpc ¶
ListIgwsForVpc lists all Internet gateways for the specified VPC ID in the specified session.
func ListNaclsForVpc ¶
func ListNatGatewaysForVpc ¶
ListNatGatewaysForVpc lists all NAT gateways for the specified VPC ID in the specified session.
func ListRouteTablesForVpc ¶
func ListSgsForVpc ¶
func ListSubnetsForVpc ¶
ListSubnetsForVpc lists all subnets for the specified VPC ID in the specified session.
func ListVpcEndpointsForVpc ¶
ListVpcEndpointsForVpc lists all VPC endpoints for the specified VPC ID in the specified session.
Types ¶
This section is empty.