awsutils

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteWorkMailOrganization

func DeleteWorkMailOrganization(t *testing.T, orgID string, client WorkMailClient) error

func LoadEC2Client

func LoadEC2Client(region string) (*ec2.Client, error)

func RemoveENI

func RemoveENI(t *testing.T, vpcID string, svc EC2Client) (int32, error)

Types

type DefaultAWSConfigLoader

type DefaultAWSConfigLoader struct{}

AWS config.

func (*DefaultAWSConfigLoader) LoadConfig

func (d *DefaultAWSConfigLoader) LoadConfig(ctx context.Context, region string) (aws.Config, error)

LoadConfig loads the AWS configuration using the AWS SDK.

type EC2Client

type EC2Client interface {
	DescribeNetworkInterfaces(ctx context.Context, params *ec2.DescribeNetworkInterfacesInput, opts ...func(*ec2.Options)) (*ec2.DescribeNetworkInterfacesOutput, error)
	DeleteNetworkInterface(ctx context.Context, params *ec2.DeleteNetworkInterfaceInput, opts ...func(*ec2.Options)) (*ec2.DeleteNetworkInterfaceOutput, error)
}

type WorkMailClient

type WorkMailClient interface {
	DeleteOrganization(ctx context.Context, params *workmail.DeleteOrganizationInput, optFns ...func(*workmail.Options)) (*workmail.DeleteOrganizationOutput, error)
}

Jump to

Keyboard shortcuts

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