vpcendpoint

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateAvailable = string(ec2Types.StateAvailable)
	StateDeleting  = string(ec2Types.StateDeleting)
	StateDeleted   = string(ec2Types.StateDeleted)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

func NewClient

func NewClient(ec2Client *ec2.Client, assumeRoleClient assumerole.Client) (Client, error)

type CreateVpcEndpointInput

type CreateVpcEndpointInput struct {
	RoleARN          string
	Region           string
	VpcId            string
	SubnetIds        []string
	SecurityGroupIds []string
	Tags             map[string]string
}

type CreateVpcEndpointOutput

type CreateVpcEndpointOutput struct {
	VpcEndpointId    string
	VpcEndpointState string
}

type DeleteVpcEndpointInput

type DeleteVpcEndpointInput struct {
	RoleARN string
	Region  string
	VpcId   string
}

type GetVpcEndpointInput

type GetVpcEndpointInput struct {
	RoleARN string
	Region  string
	VpcId   string
}

type GetVpcEndpointOutput

type GetVpcEndpointOutput struct {
	VpcEndpointId    string
	VpcEndpointState string
	SubnetIds        []string
	SecurityGroupIds []string
}

type Reconciler

type Reconciler interface {
	Reconcile(ctx context.Context, request aws.ReconcileRequest[Spec]) (aws.ReconcileResult[Status], error)
	ReconcileDelete(ctx context.Context, request aws.ReconcileRequest[aws.DeletedCloudResourceSpec]) error
}

func NewReconciler

func NewReconciler(client Client) (Reconciler, error)

type Spec

type Spec struct {
	VpcId            string
	SubnetIds        []string
	SecurityGroupIds []string
	AdditionalTags   map[string]string
}

type Status

type Status struct {
	VpcEndpointId    string
	VpcEndpointState string
}

type UpdateVpcEndpointInput

type UpdateVpcEndpointInput struct {
	RoleARN                string
	Region                 string
	VpcEndpointId          string
	AddSecurityGroupIds    []string
	AddSubnetIds           []string
	RemoveSecurityGroupIds []string
	RemoveSubnetIds        []string
	Tags                   map[string]string
}

Jump to

Keyboard shortcuts

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