Documentation ¶
Index ¶
- Constants
- func IsAssociationIDNotFoundErr(err error) bool
- func IsInternetGatewayNotFoundErr(err error) bool
- func IsRouteNotFoundErr(err error) bool
- func IsRouteTableNotFoundErr(err error) bool
- func IsSecurityGroupNotFoundErr(err error) bool
- func IsSubnetNotFoundErr(err error) bool
- func IsVPCNotFoundErr(err error) bool
- type InternetGatewayClient
- type RouteTableClient
- type SecurityGroupClient
- type SubnetClient
- type VPCClient
Constants ¶
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" )
const (
// InternetGatewayIDNotFound is the code that is returned by ec2 when the given SubnetID is not valid
InternetGatewayIDNotFound = "InvalidInternetGatewayID.NotFound"
)
const (
// InvalidGroupNotFound is the code that is returned by ec2 when the given VPCID is not valid
InvalidGroupNotFound = "InvalidGroup.NotFound"
)
const (
// SubnetIDNotFound is the code that is returned by ec2 when the given SubnetID is not valid
SubnetIDNotFound = "InvalidSubnetID.NotFound"
)
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 ¶
IsAssociationIDNotFoundErr returns true if the error is because the association doesn't exist
func IsInternetGatewayNotFoundErr ¶
IsInternetGatewayNotFoundErr returns true if the error is because the item doesn't exist
func IsRouteNotFoundErr ¶
IsRouteNotFoundErr returns true if the error is because the route doesn't exist
func IsRouteTableNotFoundErr ¶
IsRouteTableNotFoundErr returns true if the error is because the route table doesn't exist
func IsSecurityGroupNotFoundErr ¶
IsSecurityGroupNotFoundErr returns true if the error is because the item doesn't exist
func IsSubnetNotFoundErr ¶
IsSubnetNotFoundErr returns true if the error is because the item doesn't exist
func IsVPCNotFoundErr ¶
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