ec2

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LocalGatewayID is the id for local gateway
	LocalGatewayID = "local"

	// RouteTableIDNotFound is the code that is returned by ec2 when the given SubnetID is invalid
	RouteTableIDNotFound = "InvalidRouteTableID.NotFound"

	// RouteNotFound is the code that is returned when the given route is not found
	RouteNotFound = "InvalidRoute.NotFound"

	// AssociationIDNotFound is the code that is returned when then given AssociationID is invalid
	AssociationIDNotFound = "InvalidAssociationID.NotFound"
)
View Source
const (
	// InternetGatewayIDNotFound is the code that is returned by ec2 when the given SubnetID is not valid
	InternetGatewayIDNotFound = "InvalidInternetGatewayID.NotFound"
)
View Source
const (
	// InvalidGroupNotFound is the code that is returned by ec2 when the given VPCID is not valid
	InvalidGroupNotFound = "InvalidGroup.NotFound"
)
View Source
const (
	// SubnetIDNotFound is the code that is returned by ec2 when the given SubnetID is not valid
	SubnetIDNotFound = "InvalidSubnetID.NotFound"
)
View Source
const (
	// VPCIDNotFound is the code that is returned by ec2 when the given VPCID is not valid
	VPCIDNotFound = "InvalidVpcID.NotFound"
)

Variables

This section is empty.

Functions

func IsAssociationIDNotFoundErr

func IsAssociationIDNotFoundErr(err error) bool

IsAssociationIDNotFoundErr returns true if the error is because the association doesn't exist

func IsInternetGatewayNotFoundErr

func IsInternetGatewayNotFoundErr(err error) bool

IsInternetGatewayNotFoundErr returns true if the error is because the item doesn't exist

func IsRouteNotFoundErr

func IsRouteNotFoundErr(err error) bool

IsRouteNotFoundErr returns true if the error is because the route doesn't exist

func IsRouteTableNotFoundErr

func IsRouteTableNotFoundErr(err error) bool

IsRouteTableNotFoundErr returns true if the error is because the route table doesn't exist

func IsSecurityGroupNotFoundErr

func IsSecurityGroupNotFoundErr(err error) bool

IsSecurityGroupNotFoundErr returns true if the error is because the item doesn't exist

func IsSubnetNotFoundErr

func IsSubnetNotFoundErr(err error) bool

IsSubnetNotFoundErr returns true if the error is because the item doesn't exist

func IsVPCNotFoundErr

func IsVPCNotFoundErr(err error) bool

IsVPCNotFoundErr returns true if the error is because the item doesn't exist

Types

type InternetGatewayClient

type InternetGatewayClient interface {
	CreateInternetGatewayRequest(input *ec2.CreateInternetGatewayInput) ec2.CreateInternetGatewayRequest
	DeleteInternetGatewayRequest(input *ec2.DeleteInternetGatewayInput) ec2.DeleteInternetGatewayRequest
	DescribeInternetGatewaysRequest(input *ec2.DescribeInternetGatewaysInput) ec2.DescribeInternetGatewaysRequest
	AttachInternetGatewayRequest(input *ec2.AttachInternetGatewayInput) ec2.AttachInternetGatewayRequest
	DetachInternetGatewayRequest(input *ec2.DetachInternetGatewayInput) ec2.DetachInternetGatewayRequest
}

InternetGatewayClient is the external client used for InternetGateway Custom Resource

func NewInternetGatewayClient

func NewInternetGatewayClient(cfg *aws.Config) (InternetGatewayClient, error)

NewInternetGatewayClient returns a new client using AWS credentials as JSON encoded data.

type RouteTableClient

type RouteTableClient interface {
	CreateRouteTableRequest(*ec2.CreateRouteTableInput) ec2.CreateRouteTableRequest
	DeleteRouteTableRequest(*ec2.DeleteRouteTableInput) ec2.DeleteRouteTableRequest
	DescribeRouteTablesRequest(*ec2.DescribeRouteTablesInput) ec2.DescribeRouteTablesRequest

	CreateRouteRequest(*ec2.CreateRouteInput) ec2.CreateRouteRequest
	DeleteRouteRequest(*ec2.DeleteRouteInput) ec2.DeleteRouteRequest

	AssociateRouteTableRequest(*ec2.AssociateRouteTableInput) ec2.AssociateRouteTableRequest
	DisassociateRouteTableRequest(*ec2.DisassociateRouteTableInput) ec2.DisassociateRouteTableRequest
}

RouteTableClient is the external client used for RouteTable Custom Resource

func NewRouteTableClient

func NewRouteTableClient(cfg *aws.Config) (RouteTableClient, error)

NewRouteTableClient returns a new client using AWS credentials as JSON encoded data.

type SecurityGroupClient

type SecurityGroupClient interface {
	CreateSecurityGroupRequest(input *ec2.CreateSecurityGroupInput) ec2.CreateSecurityGroupRequest
	DeleteSecurityGroupRequest(input *ec2.DeleteSecurityGroupInput) ec2.DeleteSecurityGroupRequest
	DescribeSecurityGroupsRequest(input *ec2.DescribeSecurityGroupsInput) ec2.DescribeSecurityGroupsRequest
	AuthorizeSecurityGroupIngressRequest(input *ec2.AuthorizeSecurityGroupIngressInput) ec2.AuthorizeSecurityGroupIngressRequest
	AuthorizeSecurityGroupEgressRequest(input *ec2.AuthorizeSecurityGroupEgressInput) ec2.AuthorizeSecurityGroupEgressRequest
}

SecurityGroupClient is the external client used for SecurityGroup Custom Resource

func NewSecurityGroupClient

func NewSecurityGroupClient(cfg *aws.Config) (SecurityGroupClient, error)

NewSecurityGroupClient returns a new client using AWS credentials as JSON encoded data.

type SubnetClient

type SubnetClient interface {
	CreateSubnetRequest(input *ec2.CreateSubnetInput) ec2.CreateSubnetRequest
	DescribeSubnetsRequest(input *ec2.DescribeSubnetsInput) ec2.DescribeSubnetsRequest
	DeleteSubnetRequest(input *ec2.DeleteSubnetInput) ec2.DeleteSubnetRequest
}

SubnetClient is the external client used for Subnet Custom Resource

func NewSubnetClient

func NewSubnetClient(cfg *aws.Config) (SubnetClient, error)

NewSubnetClient returns a new client using AWS credentials as JSON encoded data.

type VPCClient

type VPCClient interface {
	CreateVpcRequest(*ec2.CreateVpcInput) ec2.CreateVpcRequest
	DeleteVpcRequest(*ec2.DeleteVpcInput) ec2.DeleteVpcRequest
	DescribeVpcsRequest(*ec2.DescribeVpcsInput) ec2.DescribeVpcsRequest
	ModifyVpcAttributeRequest(*ec2.ModifyVpcAttributeInput) ec2.ModifyVpcAttributeRequest
}

VPCClient is the external client used for VPC Custom Resource

func NewVPCClient

func NewVPCClient(cfg *aws.Config) (VPCClient, error)

NewVPCClient returns a new client using AWS credentials as JSON encoded data.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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