Documentation ¶
Index ¶
- func DeleteAthenaResources(athenaSvc AthenaService) error
- func NukeAccount(input *NukeAccountInput) error
- type AthenaReset
- func (athenaReset AthenaReset) DeleteNamedQuery(input *athena.DeleteNamedQueryInput) (*athena.DeleteNamedQueryOutput, error)
- func (athenaReset AthenaReset) DeleteWorkGroup(input *athena.DeleteWorkGroupInput) (*athena.DeleteWorkGroupOutput, error)
- func (athenaReset AthenaReset) ListNamedQueries(input *athena.ListNamedQueriesInput) (*athena.ListNamedQueriesOutput, error)
- func (athenaReset AthenaReset) ListWorkGroups(input *athena.ListWorkGroupsInput) (*athena.ListWorkGroupsOutput, error)
- type AthenaService
- type Nuke
- type NukeAccountInput
- type Nuker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteAthenaResources ¶
func DeleteAthenaResources(athenaSvc AthenaService) error
DeleteAthenaResources deletes all aethna resources in the current aws session
func NukeAccount ¶
func NukeAccount(input *NukeAccountInput) error
NukeAccount directly triggers aws-nuke to be called on the configuration file provided, bypassing any manual prompts. Returns an error if there's any, else nil.
Types ¶
type AthenaReset ¶
type AthenaReset struct {
Client athenaiface.AthenaAPI
}
AthenaReset defines a concrete implementation of the above Service interface
func (AthenaReset) DeleteNamedQuery ¶
func (athenaReset AthenaReset) DeleteNamedQuery(input *athena.DeleteNamedQueryInput) (*athena.DeleteNamedQueryOutput, error)
DeleteNamedQuery implemenation
func (AthenaReset) DeleteWorkGroup ¶
func (athenaReset AthenaReset) DeleteWorkGroup(input *athena.DeleteWorkGroupInput) (*athena.DeleteWorkGroupOutput, error)
DeleteWorkGroup implemenation
func (AthenaReset) ListNamedQueries ¶
func (athenaReset AthenaReset) ListNamedQueries(input *athena.ListNamedQueriesInput) (*athena.ListNamedQueriesOutput, error)
ListNamedQueries implemenation
func (AthenaReset) ListWorkGroups ¶
func (athenaReset AthenaReset) ListWorkGroups(input *athena.ListWorkGroupsInput) (*athena.ListWorkGroupsOutput, error)
ListWorkGroups implemenation
type AthenaService ¶
type AthenaService interface { ListWorkGroups(input *athena.ListWorkGroupsInput) (*athena.ListWorkGroupsOutput, error) ListNamedQueries(input *athena.ListNamedQueriesInput) (*athena.ListNamedQueriesOutput, error) DeleteNamedQuery(input *athena.DeleteNamedQueryInput) (*athena.DeleteNamedQueryOutput, error) DeleteWorkGroup(input *athena.DeleteWorkGroupInput) (*athena.DeleteWorkGroupOutput, error) }
AthenaService interface
type Nuke ¶
type Nuke struct { }
Nuke implements the NukeService interface using rebuy-de/aws-nuke https://github.com/rebuy-de/aws-nuke
func (Nuke) Load ¶
Load returns an aws-nuke Nuke configuration with the provided configuration file. This will provide the information needed to know what can be nuked by aws-nuke.
func (Nuke) NewAccount ¶
NewAccount returns an aws-nuke Account that is created from the provided aws-nuke Credentials. This will provide the account information needed for aws-nuke to access an account to nuke.
type NukeAccountInput ¶
type NukeAccountInput struct { ChildAccountID string RoleName string ConfigPath string NoDryRun bool Token common.TokenService Nuke Nuker }
NukeAccountInput is the container used for the TokenService and the NukeService to execute a Nuke for an AWS Account