v1alpha2

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package v1alpha2 contains managed resources for AWS network services such as VPC and Subnet. +kubebuilder:object:generate=true +groupName=network.aws.crossplane.io +versionName=v1alpha2

Index

Constants

View Source
const (
	Group   = "network.aws.crossplane.io"
	Version = "v1alpha2"
)

Package type metadata.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)
View Source
var (
	VPCKind             = reflect.TypeOf(VPC{}).Name()
	VPCKindAPIVersion   = VPCKind + "." + SchemeGroupVersion.String()
	VPCGroupVersionKind = SchemeGroupVersion.WithKind(VPCKind)
)

VPC type metadata.

View Source
var (
	SubnetKind             = reflect.TypeOf(Subnet{}).Name()
	SubnetKindAPIVersion   = SubnetKind + "." + SchemeGroupVersion.String()
	SubnetGroupVersionKind = SchemeGroupVersion.WithKind(SubnetKind)
)

Subnet type metadata.

View Source
var (
	SecurityGroupKind             = reflect.TypeOf(SecurityGroup{}).Name()
	SecurityGroupKindAPIVersion   = SecurityGroupKind + "." + SchemeGroupVersion.String()
	SecurityGroupGroupVersionKind = SchemeGroupVersion.WithKind(SecurityGroupKind)
)

SecurityGroup type metadata.

View Source
var (
	InternetGatewayKind             = reflect.TypeOf(InternetGateway{}).Name()
	InternetGatewayKindAPIVersion   = InternetGatewayKind + "." + SchemeGroupVersion.String()
	InternetGatewayGroupVersionKind = SchemeGroupVersion.WithKind(InternetGatewayKind)
)

InternetGateway type metadata.

View Source
var (
	RouteTableKind             = reflect.TypeOf(RouteTable{}).Name()
	RouteTableKindAPIVersion   = RouteTableKind + "." + SchemeGroupVersion.String()
	RouteTableGroupVersionKind = SchemeGroupVersion.WithKind(RouteTableKind)
)

RouteTable type metadata.

Functions

func BuildEC2Permissions

func BuildEC2Permissions(objectPerms []IPPermission) []ec2.IpPermission

BuildEC2Permissions converts object Permissions to ec2 format

Types

type Association

type Association struct {
	// The ID of the subnet. A subnet ID is not returned for an implicit
	// association.
	SubnetID string `json:"subnetId"`
}

Association describes an association between a route table and a subnet.

func (*Association) DeepCopy

func (in *Association) DeepCopy() *Association

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Association.

func (*Association) DeepCopyInto

func (in *Association) DeepCopyInto(out *Association)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AssociationState

type AssociationState struct {
	// Indicates whether this is the main route table.
	Main bool `json:"main"`

	// The ID of the association between a route table and a subnet.
	AssociationID string `json:"associationId"`

	Association `json:",inline"`
}

AssociationState describes an association state in the route table.

func (*AssociationState) DeepCopy

func (in *AssociationState) DeepCopy() *AssociationState

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AssociationState.

func (*AssociationState) DeepCopyInto

func (in *AssociationState) DeepCopyInto(out *AssociationState)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IPPermission

type IPPermission struct {
	// The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6
	// type number. A value of -1 indicates all ICMP/ICMPv6 types. If you
	// specify all ICMP/ICMPv6 types, you must specify all codes.
	FromPort int64 `json:"fromPort"`

	// The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6
	// code. A value of -1 indicates all ICMP/ICMPv6 codes for the specified
	// ICMP type. If you specify all ICMP/ICMPv6 types, you must specify all
	// codes.
	ToPort int64 `json:"toPort"`

	// The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)).
	//
	// [EC2-VPC only] Use -1 to specify all protocols. When authorizing security
	// group rules, specifying -1 or a protocol number other than tcp, udp, icmp,
	// or 58 (ICMPv6) allows traffic on all ports, regardless of any port range
	// you specify. For tcp, udp, and icmp, you must specify a port range. For 58
	// (ICMPv6), you can optionally specify a port range; if you don't, traffic
	// for all types and codes is allowed when authorizing rules.
	IPProtocol string `json:"protocol"`

	// One or more IPv4 ranges.
	CIDRBlocks []IPRange `json:"cidrBlocks,omitempty"`
}

IPPermission Describes a set of permissions for a security group rule.

func (*IPPermission) DeepCopy

func (in *IPPermission) DeepCopy() *IPPermission

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPPermission.

func (*IPPermission) DeepCopyInto

func (in *IPPermission) DeepCopyInto(out *IPPermission)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IPRange

type IPRange struct {
	// The IPv4 CIDR range. You can either specify a CIDR range or a source
	// security group, not both. To specify a single IPv4 address, use the /32
	// prefix length.
	CIDRIP string `json:"cidrIp"`

	// A description for the ip range
	Description string `json:"description,omitempty"`
}

IPRange describes an IPv4 range.

func (*IPRange) DeepCopy

func (in *IPRange) DeepCopy() *IPRange

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPRange.

func (*IPRange) DeepCopyInto

func (in *IPRange) DeepCopyInto(out *IPRange)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InternetGateway

type InternetGateway struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   InternetGatewaySpec   `json:"spec,omitempty"`
	Status InternetGatewayStatus `json:"status,omitempty"`
}

An InternetGateway is a managed resource that represents an AWS VPC Internet Gateway. +kubebuilder:printcolumn:name="ID",type="string",JSONPath=".status.internetGatewayId" +kubebuilder:printcolumn:name="VPCID",type="string",JSONPath=".spec.vpcId" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status

func (*InternetGateway) DeepCopy

func (in *InternetGateway) DeepCopy() *InternetGateway

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InternetGateway.

func (*InternetGateway) DeepCopyInto

func (in *InternetGateway) DeepCopyInto(out *InternetGateway)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*InternetGateway) DeepCopyObject

func (in *InternetGateway) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*InternetGateway) GetBindingPhase

func (i *InternetGateway) GetBindingPhase() runtimev1alpha1.BindingPhase

GetBindingPhase of this InternetGateway.

func (*InternetGateway) GetClaimReference

func (i *InternetGateway) GetClaimReference() *corev1.ObjectReference

GetClaimReference of this InternetGateway.

func (*InternetGateway) GetNonPortableClassReference

func (i *InternetGateway) GetNonPortableClassReference() *corev1.ObjectReference

GetNonPortableClassReference of this InternetGateway.

func (*InternetGateway) GetReclaimPolicy

func (i *InternetGateway) GetReclaimPolicy() runtimev1alpha1.ReclaimPolicy

GetReclaimPolicy of this InternetGateway.

func (*InternetGateway) GetWriteConnectionSecretToReference

func (i *InternetGateway) GetWriteConnectionSecretToReference() corev1.LocalObjectReference

GetWriteConnectionSecretToReference of this InternetGateway.

func (*InternetGateway) SetBindingPhase

func (i *InternetGateway) SetBindingPhase(p runtimev1alpha1.BindingPhase)

SetBindingPhase of this InternetGateway.

func (*InternetGateway) SetClaimReference

func (i *InternetGateway) SetClaimReference(r *corev1.ObjectReference)

SetClaimReference of this InternetGateway.

func (*InternetGateway) SetConditions

func (i *InternetGateway) SetConditions(c ...runtimev1alpha1.Condition)

SetConditions of this InternetGateway.

func (*InternetGateway) SetNonPortableClassReference

func (i *InternetGateway) SetNonPortableClassReference(r *corev1.ObjectReference)

SetNonPortableClassReference of this InternetGateway.

func (*InternetGateway) SetReclaimPolicy

func (i *InternetGateway) SetReclaimPolicy(p runtimev1alpha1.ReclaimPolicy)

SetReclaimPolicy of this InternetGateway.

func (*InternetGateway) SetWriteConnectionSecretToReference

func (i *InternetGateway) SetWriteConnectionSecretToReference(r corev1.LocalObjectReference)

SetWriteConnectionSecretToReference of this InternetGateway.

func (*InternetGateway) UpdateExternalStatus

func (i *InternetGateway) UpdateExternalStatus(observation ec2.InternetGateway)

UpdateExternalStatus updates the external status object, given the observation

type InternetGatewayAttachment

type InternetGatewayAttachment struct {
	// The current state of the attachment. For an internet gateway, the state
	// is available when attached to a VPC; otherwise, this value is not
	// returned.
	// +kubebuilder:validation:Enum=available;attaching;attached;detaching;detached
	AttachmentStatus string `json:"attachmentStatus"`

	// VPCID is the ID of the attached VPC.
	VPCID string `json:"vpcId"`
}

InternetGatewayAttachment describes the attachment of a VPC to an internet gateway or an egress-only internet gateway.

func (*InternetGatewayAttachment) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InternetGatewayAttachment.

func (*InternetGatewayAttachment) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InternetGatewayExternalStatus

type InternetGatewayExternalStatus struct {
	// Any VPCs attached to the internet gateway.
	Attachments []InternetGatewayAttachment `json:"attachments,omitempty"`

	// The ID of the internet gateway.
	InternetGatewayID string `json:"internetGatewayId"`

	// Tags represents to current ec2 tags.
	Tags []Tag `json:"tags,omitempty"`
}

InternetGatewayExternalStatus keeps the state for the external resource

func (*InternetGatewayExternalStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InternetGatewayExternalStatus.

func (*InternetGatewayExternalStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InternetGatewayList

type InternetGatewayList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []InternetGateway `json:"items"`
}

InternetGatewayList contains a list of InternetGateways

func (*InternetGatewayList) DeepCopy

func (in *InternetGatewayList) DeepCopy() *InternetGatewayList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InternetGatewayList.

func (*InternetGatewayList) DeepCopyInto

func (in *InternetGatewayList) DeepCopyInto(out *InternetGatewayList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*InternetGatewayList) DeepCopyObject

func (in *InternetGatewayList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type InternetGatewayParameters

type InternetGatewayParameters struct {
	// the VPC to attach the gateway to.
	VPCID string `json:"vpcId"`
}

InternetGatewayParameters define the desired state of an AWS VPC Internet Gateway.

func (*InternetGatewayParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InternetGatewayParameters.

func (*InternetGatewayParameters) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InternetGatewaySpec

type InternetGatewaySpec struct {
	runtimev1alpha1.ResourceSpec `json:",inline"`
	InternetGatewayParameters    `json:",inline"`
}

An InternetGatewaySpec defines the desired state of an InternetGateway.

func (*InternetGatewaySpec) DeepCopy

func (in *InternetGatewaySpec) DeepCopy() *InternetGatewaySpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InternetGatewaySpec.

func (*InternetGatewaySpec) DeepCopyInto

func (in *InternetGatewaySpec) DeepCopyInto(out *InternetGatewaySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InternetGatewayStatus

type InternetGatewayStatus struct {
	runtimev1alpha1.ResourceStatus `json:",inline"`
	InternetGatewayExternalStatus  `json:",inline"`
}

An InternetGatewayStatus represents the observed state of an InternetGateway.

func (*InternetGatewayStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InternetGatewayStatus.

func (*InternetGatewayStatus) DeepCopyInto

func (in *InternetGatewayStatus) DeepCopyInto(out *InternetGatewayStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Route

type Route struct {
	// The IPv4 CIDR address block used for the destination match. Routing
	// decisions are based on the most specific match.
	DestinationCIDRBlock string `json:"destinationCidrBlock"`

	// The ID of an internet gateway or virtual private gateway attached to your
	// VPC.
	GatewayID string `json:"gatewayId"`
}

Route describes a route in a route table.

func (*Route) DeepCopy

func (in *Route) DeepCopy() *Route

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Route.

func (*Route) DeepCopyInto

func (in *Route) DeepCopyInto(out *Route)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RouteState

type RouteState struct {
	// The state of the route. The blackhole state indicates that the route's
	// target isn't available (for example, the specified gateway isn't attached
	// to the VPC, or the specified NAT instance has been terminated).
	RouteState string `json:"routeState,omitempty"`

	Route `json:",inline"`
}

RouteState describes a route state in the route table.

func (*RouteState) DeepCopy

func (in *RouteState) DeepCopy() *RouteState

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteState.

func (*RouteState) DeepCopyInto

func (in *RouteState) DeepCopyInto(out *RouteState)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RouteTable

type RouteTable struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   RouteTableSpec   `json:"spec,omitempty"`
	Status RouteTableStatus `json:"status,omitempty"`
}

A RouteTable is a managed resource that represents an AWS VPC Route Table. +kubebuilder:printcolumn:name="TABLEID",type="string",JSONPath=".status.routeTableId" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status

func (*RouteTable) DeepCopy

func (in *RouteTable) DeepCopy() *RouteTable

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTable.

func (*RouteTable) DeepCopyInto

func (in *RouteTable) DeepCopyInto(out *RouteTable)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RouteTable) DeepCopyObject

func (in *RouteTable) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*RouteTable) GetBindingPhase

func (t *RouteTable) GetBindingPhase() runtimev1alpha1.BindingPhase

GetBindingPhase of this RouteTable.

func (*RouteTable) GetClaimReference

func (t *RouteTable) GetClaimReference() *corev1.ObjectReference

GetClaimReference of this RouteTable.

func (*RouteTable) GetNonPortableClassReference

func (t *RouteTable) GetNonPortableClassReference() *corev1.ObjectReference

GetNonPortableClassReference of this RouteTable.

func (*RouteTable) GetReclaimPolicy

func (t *RouteTable) GetReclaimPolicy() runtimev1alpha1.ReclaimPolicy

GetReclaimPolicy of this RouteTable.

func (*RouteTable) GetWriteConnectionSecretToReference

func (t *RouteTable) GetWriteConnectionSecretToReference() corev1.LocalObjectReference

GetWriteConnectionSecretToReference of this RouteTable.

func (*RouteTable) SetBindingPhase

func (t *RouteTable) SetBindingPhase(p runtimev1alpha1.BindingPhase)

SetBindingPhase of this RouteTable.

func (*RouteTable) SetClaimReference

func (t *RouteTable) SetClaimReference(r *corev1.ObjectReference)

SetClaimReference of this RouteTable.

func (*RouteTable) SetConditions

func (t *RouteTable) SetConditions(c ...runtimev1alpha1.Condition)

SetConditions of this RouteTable.

func (*RouteTable) SetNonPortableClassReference

func (t *RouteTable) SetNonPortableClassReference(r *corev1.ObjectReference)

SetNonPortableClassReference of this RouteTable.

func (*RouteTable) SetReclaimPolicy

func (t *RouteTable) SetReclaimPolicy(p runtimev1alpha1.ReclaimPolicy)

SetReclaimPolicy of this RouteTable.

func (*RouteTable) SetWriteConnectionSecretToReference

func (t *RouteTable) SetWriteConnectionSecretToReference(r corev1.LocalObjectReference)

SetWriteConnectionSecretToReference of this RouteTable.

func (*RouteTable) UpdateExternalStatus

func (t *RouteTable) UpdateExternalStatus(observation ec2.RouteTable)

UpdateExternalStatus updates the external status object, given the observation

type RouteTableExternalStatus

type RouteTableExternalStatus struct {

	// RouteTableID is the ID of the RouteTable.
	RouteTableID string `json:"routeTableId"`

	// The actual routes created for the route table.
	Routes []RouteState `json:"routes,omitempty"`

	// The actual associations created for the route table.
	Associations []AssociationState `json:"associations,omitempty"`
}

RouteTableExternalStatus keeps the state for the external resource

func (*RouteTableExternalStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableExternalStatus.

func (*RouteTableExternalStatus) DeepCopyInto

func (in *RouteTableExternalStatus) DeepCopyInto(out *RouteTableExternalStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RouteTableList

type RouteTableList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []RouteTable `json:"items"`
}

RouteTableList contains a list of RouteTables

func (*RouteTableList) DeepCopy

func (in *RouteTableList) DeepCopy() *RouteTableList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableList.

func (*RouteTableList) DeepCopyInto

func (in *RouteTableList) DeepCopyInto(out *RouteTableList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RouteTableList) DeepCopyObject

func (in *RouteTableList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type RouteTableParameters

type RouteTableParameters struct {
	// VPCID is the ID of the VPC.
	VPCID string `json:"vpcId"`

	// the routes in the route table
	Routes []Route `json:"routes,omitempty"`

	// The associations between the route table and one or more subnets.
	Associations []Association `json:"associations,omitempty"`
}

RouteTableParameters define the desired state of an AWS VPC Route Table.

func (*RouteTableParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableParameters.

func (*RouteTableParameters) DeepCopyInto

func (in *RouteTableParameters) DeepCopyInto(out *RouteTableParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RouteTableSpec

type RouteTableSpec struct {
	runtimev1alpha1.ResourceSpec `json:",inline"`
	RouteTableParameters         `json:",inline"`
}

A RouteTableSpec defines the desired state of a RouteTable.

func (*RouteTableSpec) DeepCopy

func (in *RouteTableSpec) DeepCopy() *RouteTableSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableSpec.

func (*RouteTableSpec) DeepCopyInto

func (in *RouteTableSpec) DeepCopyInto(out *RouteTableSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RouteTableStatus

type RouteTableStatus struct {
	runtimev1alpha1.ResourceStatus `json:",inline"`
	RouteTableExternalStatus       `json:",inline"`
}

A RouteTableStatus represents the observed state of a RouteTable.

func (*RouteTableStatus) DeepCopy

func (in *RouteTableStatus) DeepCopy() *RouteTableStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableStatus.

func (*RouteTableStatus) DeepCopyInto

func (in *RouteTableStatus) DeepCopyInto(out *RouteTableStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SecurityGroup

type SecurityGroup struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   SecurityGroupSpec   `json:"spec,omitempty"`
	Status SecurityGroupStatus `json:"status,omitempty"`
}

A SecurityGroup is a managed resource that represents an AWS VPC Security Group. +kubebuilder:printcolumn:name="GROUPNAME",type="string",JSONPath=".spec.groupName" +kubebuilder:printcolumn:name="VPCID",type="string",JSONPath=".spec.vpcId" +kubebuilder:printcolumn:name="DESCRIPTION",type="string",JSONPath=".spec.description" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status

func (*SecurityGroup) DeepCopy

func (in *SecurityGroup) DeepCopy() *SecurityGroup

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroup.

func (*SecurityGroup) DeepCopyInto

func (in *SecurityGroup) DeepCopyInto(out *SecurityGroup)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*SecurityGroup) DeepCopyObject

func (in *SecurityGroup) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*SecurityGroup) GetBindingPhase

func (s *SecurityGroup) GetBindingPhase() runtimev1alpha1.BindingPhase

GetBindingPhase of this SecurityGroup.

func (*SecurityGroup) GetClaimReference

func (s *SecurityGroup) GetClaimReference() *corev1.ObjectReference

GetClaimReference of this SecurityGroup.

func (*SecurityGroup) GetNonPortableClassReference

func (s *SecurityGroup) GetNonPortableClassReference() *corev1.ObjectReference

GetNonPortableClassReference of this SecurityGroup.

func (*SecurityGroup) GetReclaimPolicy

func (s *SecurityGroup) GetReclaimPolicy() runtimev1alpha1.ReclaimPolicy

GetReclaimPolicy of this SecurityGroup.

func (*SecurityGroup) GetWriteConnectionSecretToReference

func (s *SecurityGroup) GetWriteConnectionSecretToReference() corev1.LocalObjectReference

GetWriteConnectionSecretToReference of this SecurityGroup.

func (*SecurityGroup) SetBindingPhase

func (s *SecurityGroup) SetBindingPhase(p runtimev1alpha1.BindingPhase)

SetBindingPhase of this SecurityGroup.

func (*SecurityGroup) SetClaimReference

func (s *SecurityGroup) SetClaimReference(r *corev1.ObjectReference)

SetClaimReference of this SecurityGroup.

func (*SecurityGroup) SetConditions

func (s *SecurityGroup) SetConditions(c ...runtimev1alpha1.Condition)

SetConditions of this SecurityGroup.

func (*SecurityGroup) SetNonPortableClassReference

func (s *SecurityGroup) SetNonPortableClassReference(r *corev1.ObjectReference)

SetNonPortableClassReference of this SecurityGroup.

func (*SecurityGroup) SetReclaimPolicy

func (s *SecurityGroup) SetReclaimPolicy(p runtimev1alpha1.ReclaimPolicy)

SetReclaimPolicy of this SecurityGroup.

func (*SecurityGroup) SetWriteConnectionSecretToReference

func (s *SecurityGroup) SetWriteConnectionSecretToReference(r corev1.LocalObjectReference)

SetWriteConnectionSecretToReference of this SecurityGroup.

func (*SecurityGroup) UpdateExternalStatus

func (s *SecurityGroup) UpdateExternalStatus(observation ec2.SecurityGroup)

UpdateExternalStatus updates the external status object, given the observation

type SecurityGroupExternalStatus

type SecurityGroupExternalStatus struct {
	// SecurityGroupID is the ID of the SecurityGroup.
	SecurityGroupID string `json:"securityGroupID"`

	// Tags represents to current ec2 tags.
	Tags []Tag `json:"tags,omitempty"`
}

SecurityGroupExternalStatus keeps the state for the external resource

func (*SecurityGroupExternalStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupExternalStatus.

func (*SecurityGroupExternalStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SecurityGroupList

type SecurityGroupList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []SecurityGroup `json:"items"`
}

SecurityGroupList contains a list of SecurityGroups

func (*SecurityGroupList) DeepCopy

func (in *SecurityGroupList) DeepCopy() *SecurityGroupList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupList.

func (*SecurityGroupList) DeepCopyInto

func (in *SecurityGroupList) DeepCopyInto(out *SecurityGroupList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*SecurityGroupList) DeepCopyObject

func (in *SecurityGroupList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type SecurityGroupParameters

type SecurityGroupParameters struct {
	// VPCID is the ID of the VPC.
	VPCID string `json:"vpcId,omitempty"`

	// A description of the security group.
	Description string `json:"description"`

	// The name of the security group.
	GroupName string `json:"groupName"`

	// One or more inbound rules associated with the security group.
	IngressPermissions []IPPermission `json:"ingress,omitempty"`

	// [EC2-VPC] One or more outbound rules associated with the security group.
	EgressPermissions []IPPermission `json:"egress,omitempty"`
}

SecurityGroupParameters define the desired state of an AWS VPC Security Group.

func (*SecurityGroupParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupParameters.

func (*SecurityGroupParameters) DeepCopyInto

func (in *SecurityGroupParameters) DeepCopyInto(out *SecurityGroupParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SecurityGroupSpec

type SecurityGroupSpec struct {
	runtimev1alpha1.ResourceSpec `json:",inline"`
	SecurityGroupParameters      `json:",inline"`
}

A SecurityGroupSpec defines the desired state of a SecurityGroup.

func (*SecurityGroupSpec) DeepCopy

func (in *SecurityGroupSpec) DeepCopy() *SecurityGroupSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupSpec.

func (*SecurityGroupSpec) DeepCopyInto

func (in *SecurityGroupSpec) DeepCopyInto(out *SecurityGroupSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SecurityGroupStatus

type SecurityGroupStatus struct {
	runtimev1alpha1.ResourceStatus `json:",inline"`
	SecurityGroupExternalStatus    `json:",inline"`
}

A SecurityGroupStatus represents the observed state of a SecurityGroup.

func (*SecurityGroupStatus) DeepCopy

func (in *SecurityGroupStatus) DeepCopy() *SecurityGroupStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupStatus.

func (*SecurityGroupStatus) DeepCopyInto

func (in *SecurityGroupStatus) DeepCopyInto(out *SecurityGroupStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Subnet

type Subnet struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   SubnetSpec   `json:"spec,omitempty"`
	Status SubnetStatus `json:"status,omitempty"`
}

A Subnet is a managed resource that represents an AWS VPC Subnet. +kubebuilder:printcolumn:name="SUBNETID",type="string",JSONPath=".status.subnetId" +kubebuilder:printcolumn:name="VPCID",type="string",JSONPath=".spec.vpcId" +kubebuilder:printcolumn:name="CIDRBLOCK",type="string",JSONPath=".spec.cidrBlock" +kubebuilder:printcolumn:name="AZ",type="string",JSONPath=".spec.availabilityZone" +kubebuilder:printcolumn:name="STATE",type="string",JSONPath=".status.subnetState" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status

func (*Subnet) DeepCopy

func (in *Subnet) DeepCopy() *Subnet

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Subnet.

func (*Subnet) DeepCopyInto

func (in *Subnet) DeepCopyInto(out *Subnet)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Subnet) DeepCopyObject

func (in *Subnet) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Subnet) GetBindingPhase

func (s *Subnet) GetBindingPhase() runtimev1alpha1.BindingPhase

GetBindingPhase of this Subnet.

func (*Subnet) GetClaimReference

func (s *Subnet) GetClaimReference() *corev1.ObjectReference

GetClaimReference of this Subnet.

func (*Subnet) GetNonPortableClassReference

func (s *Subnet) GetNonPortableClassReference() *corev1.ObjectReference

GetNonPortableClassReference of this Subnet.

func (*Subnet) GetReclaimPolicy

func (s *Subnet) GetReclaimPolicy() runtimev1alpha1.ReclaimPolicy

GetReclaimPolicy of this Subnet.

func (*Subnet) GetWriteConnectionSecretToReference

func (s *Subnet) GetWriteConnectionSecretToReference() corev1.LocalObjectReference

GetWriteConnectionSecretToReference of this Subnet.

func (*Subnet) SetBindingPhase

func (s *Subnet) SetBindingPhase(p runtimev1alpha1.BindingPhase)

SetBindingPhase of this Subnet.

func (*Subnet) SetClaimReference

func (s *Subnet) SetClaimReference(r *corev1.ObjectReference)

SetClaimReference of this Subnet.

func (*Subnet) SetConditions

func (s *Subnet) SetConditions(c ...runtimev1alpha1.Condition)

SetConditions of this Subnet.

func (*Subnet) SetNonPortableClassReference

func (s *Subnet) SetNonPortableClassReference(r *corev1.ObjectReference)

SetNonPortableClassReference of this Subnet.

func (*Subnet) SetReclaimPolicy

func (s *Subnet) SetReclaimPolicy(p runtimev1alpha1.ReclaimPolicy)

SetReclaimPolicy of this Subnet.

func (*Subnet) SetWriteConnectionSecretToReference

func (s *Subnet) SetWriteConnectionSecretToReference(r corev1.LocalObjectReference)

SetWriteConnectionSecretToReference of this Subnet.

func (*Subnet) UpdateExternalStatus

func (s *Subnet) UpdateExternalStatus(observation ec2.Subnet)

UpdateExternalStatus updates the external status object, given the observation

type SubnetExternalStatus

type SubnetExternalStatus struct {
	// SubnetState is the current state of the Subnet.
	// +kubebuilder:validation:Enum=pending;available
	SubnetState string `json:"subnetState"`

	// Tags represents to current ec2 tags.
	Tags []Tag `json:"tags,omitempty"`

	// SubnetID is the ID of the Subnet.
	SubnetID string `json:"subnetId"`
}

SubnetExternalStatus keeps the state for the external resource

func (*SubnetExternalStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetExternalStatus.

func (*SubnetExternalStatus) DeepCopyInto

func (in *SubnetExternalStatus) DeepCopyInto(out *SubnetExternalStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SubnetList

type SubnetList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Subnet `json:"items"`
}

SubnetList contains a list of Subnets

func (*SubnetList) DeepCopy

func (in *SubnetList) DeepCopy() *SubnetList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetList.

func (*SubnetList) DeepCopyInto

func (in *SubnetList) DeepCopyInto(out *SubnetList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*SubnetList) DeepCopyObject

func (in *SubnetList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type SubnetParameters

type SubnetParameters struct {
	// CIDRBlock is the IPv4 network range for the Subnet, in CIDR notation. For example, 10.0.0.0/18.
	CIDRBlock string `json:"cidrBlock"`

	// The Availability Zone for the subnet.
	// Default: AWS selects one for you. If you create more than one subnet in your
	// VPC, we may not necessarily select a different zone for each subnet.
	AvailabilityZone string `json:"availabilityZone"`

	// VPCID is the ID of the VPC.
	VPCID string `json:"vpcId"`
}

SubnetParameters define the desired state of an AWS VPC Subnet.

func (*SubnetParameters) DeepCopy

func (in *SubnetParameters) DeepCopy() *SubnetParameters

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetParameters.

func (*SubnetParameters) DeepCopyInto

func (in *SubnetParameters) DeepCopyInto(out *SubnetParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SubnetSpec

type SubnetSpec struct {
	runtimev1alpha1.ResourceSpec `json:",inline"`
	SubnetParameters             `json:",inline"`
}

A SubnetSpec defines the desired state of a Subnet.

func (*SubnetSpec) DeepCopy

func (in *SubnetSpec) DeepCopy() *SubnetSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetSpec.

func (*SubnetSpec) DeepCopyInto

func (in *SubnetSpec) DeepCopyInto(out *SubnetSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SubnetStatus

type SubnetStatus struct {
	runtimev1alpha1.ResourceStatus `json:",inline"`
	SubnetExternalStatus           `json:",inline"`
}

A SubnetStatus represents the observed state of a Subnet.

func (*SubnetStatus) DeepCopy

func (in *SubnetStatus) DeepCopy() *SubnetStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetStatus.

func (*SubnetStatus) DeepCopyInto

func (in *SubnetStatus) DeepCopyInto(out *SubnetStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Tag

type Tag struct {

	// Key is the name of the tag.
	Key string `json:"key"`

	// Value is the value of the tag.
	Value string `json:"value"`
}

Tag defines a tag

func BuildFromEC2Tags

func BuildFromEC2Tags(tags []ec2.Tag) []Tag

BuildFromEC2Tags returns a list of tags, off of the given ec2 tags

func (*Tag) DeepCopy

func (in *Tag) DeepCopy() *Tag

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Tag.

func (*Tag) DeepCopyInto

func (in *Tag) DeepCopyInto(out *Tag)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VPC

type VPC struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   VPCSpec   `json:"spec,omitempty"`
	Status VPCStatus `json:"status,omitempty"`
}

A VPC is a managed resource that represents an AWS Virtual Private Cloud. +kubebuilder:printcolumn:name="VPCID",type="string",JSONPath=".status.vpcId" +kubebuilder:printcolumn:name="CIDRBLOCK",type="string",JSONPath=".spec.cidrBlock" +kubebuilder:printcolumn:name="STATE",type="string",JSONPath=".status.vpcState" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status

func (*VPC) DeepCopy

func (in *VPC) DeepCopy() *VPC

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPC.

func (*VPC) DeepCopyInto

func (in *VPC) DeepCopyInto(out *VPC)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VPC) DeepCopyObject

func (in *VPC) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*VPC) GetBindingPhase

func (v *VPC) GetBindingPhase() runtimev1alpha1.BindingPhase

GetBindingPhase of this VPC.

func (*VPC) GetClaimReference

func (v *VPC) GetClaimReference() *corev1.ObjectReference

GetClaimReference of this VPC.

func (*VPC) GetNonPortableClassReference

func (v *VPC) GetNonPortableClassReference() *corev1.ObjectReference

GetNonPortableClassReference of this VPC.

func (*VPC) GetReclaimPolicy

func (v *VPC) GetReclaimPolicy() runtimev1alpha1.ReclaimPolicy

GetReclaimPolicy of this VPC.

func (*VPC) GetWriteConnectionSecretToReference

func (v *VPC) GetWriteConnectionSecretToReference() corev1.LocalObjectReference

GetWriteConnectionSecretToReference of this VPC.

func (*VPC) SetBindingPhase

func (v *VPC) SetBindingPhase(p runtimev1alpha1.BindingPhase)

SetBindingPhase of this VPC.

func (*VPC) SetClaimReference

func (v *VPC) SetClaimReference(r *corev1.ObjectReference)

SetClaimReference of this VPC.

func (*VPC) SetConditions

func (v *VPC) SetConditions(c ...runtimev1alpha1.Condition)

SetConditions of this VPC.

func (*VPC) SetNonPortableClassReference

func (v *VPC) SetNonPortableClassReference(r *corev1.ObjectReference)

SetNonPortableClassReference of this VPC.

func (*VPC) SetReclaimPolicy

func (v *VPC) SetReclaimPolicy(p runtimev1alpha1.ReclaimPolicy)

SetReclaimPolicy of this VPC.

func (*VPC) SetWriteConnectionSecretToReference

func (v *VPC) SetWriteConnectionSecretToReference(r corev1.LocalObjectReference)

SetWriteConnectionSecretToReference of this VPC.

func (*VPC) UpdateExternalStatus

func (v *VPC) UpdateExternalStatus(observation ec2.Vpc)

UpdateExternalStatus updates the external status object, given the observation

type VPCExternalStatus

type VPCExternalStatus struct {
	// VPCState is the current state of the VPC.
	// +kubebuilder:validation:Enum=pending;available
	VPCState string `json:"vpcState"`

	// Tags represents to current ec2 tags.
	Tags []Tag `json:"tags,omitempty"`

	// VPCID is the ID of the VPC.
	VPCID string `json:"vpcId"`
}

VPCExternalStatus keeps the state for the external resource

func (*VPCExternalStatus) DeepCopy

func (in *VPCExternalStatus) DeepCopy() *VPCExternalStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCExternalStatus.

func (*VPCExternalStatus) DeepCopyInto

func (in *VPCExternalStatus) DeepCopyInto(out *VPCExternalStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VPCList

type VPCList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []VPC `json:"items"`
}

VPCList contains a list of VPCs

func (*VPCList) DeepCopy

func (in *VPCList) DeepCopy() *VPCList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCList.

func (*VPCList) DeepCopyInto

func (in *VPCList) DeepCopyInto(out *VPCList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VPCList) DeepCopyObject

func (in *VPCList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VPCParameters

type VPCParameters struct {
	// CIDRBlock is the IPv4 network range for the VPC, in CIDR notation. For
	// example, 10.0.0.0/16.
	// +kubebuilder:validation:Required
	CIDRBlock string `json:"cidrBlock"`

	// A boolean flag to enable/disable DNS support in the VPC
	EnableDNSSupport bool `json:"enableDnsSupport,omitempty"`

	// A boolean flag to enable/disable DNS hostnames in the VPC
	EnableDNSHostNames bool `json:"enableDnsHostNames,omitempty"`
}

VPCParameters define the desired state of an AWS Virtual Private Cloud.

func (*VPCParameters) DeepCopy

func (in *VPCParameters) DeepCopy() *VPCParameters

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCParameters.

func (*VPCParameters) DeepCopyInto

func (in *VPCParameters) DeepCopyInto(out *VPCParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VPCSpec

type VPCSpec struct {
	runtimev1alpha1.ResourceSpec `json:",inline"`
	VPCParameters                `json:",inline"`
}

A VPCSpec defines the desired state of a VPC.

func (*VPCSpec) DeepCopy

func (in *VPCSpec) DeepCopy() *VPCSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCSpec.

func (*VPCSpec) DeepCopyInto

func (in *VPCSpec) DeepCopyInto(out *VPCSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VPCStatus

type VPCStatus struct {
	runtimev1alpha1.ResourceStatus `json:",inline"`
	VPCExternalStatus              `json:",inline"`
}

A VPCStatus represents the observed state of a VPC.

func (*VPCStatus) DeepCopy

func (in *VPCStatus) DeepCopy() *VPCStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCStatus.

func (*VPCStatus) DeepCopyInto

func (in *VPCStatus) DeepCopyInto(out *VPCStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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