api.go 577 B

12345678910111213141516171819202122
  1. package amazon
  2. import (
  3. "github.com/awslabs/goformation/v4/cloudformation"
  4. )
  5. type API interface {
  6. ClusterExists(name string) (bool, error)
  7. CreateCluster(name string) (string, error)
  8. DeleteCluster(name string) error
  9. GetDefaultVPC() (string, error)
  10. GetSubNets(vpcId string) ([]string, error)
  11. ListRolesForPolicy(policy string) ([]string, error)
  12. GetRoleArn(name string) (string, error)
  13. StackExists(name string) (bool, error)
  14. CreateStack(name string, template *cloudformation.Template) error
  15. DescribeStackEvents(stack string) error
  16. DeleteStack(name string) error
  17. }