-
Notifications
You must be signed in to change notification settings - Fork 117
/
zz_instance_types.go
executable file
·136 lines (103 loc) · 5.11 KB
/
zz_instance_types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
/*
Copyright 2022 Upbound Inc.
*/
// Code generated by upjet. DO NOT EDIT.
package v1beta1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
type InstanceObservation struct {
// The ARN of the Lightsail instance (matches id).
Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`
// The number of vCPUs the instance has.
CPUCount *float64 `json:"cpuCount,omitempty" tf:"cpu_count,omitempty"`
// The timestamp when the instance was created.
CreatedAt *string `json:"createdAt,omitempty" tf:"created_at,omitempty"`
// The ARN of the Lightsail instance (matches arn).
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// (Deprecated) The first IPv6 address of the Lightsail instance. Use ipv6_addresses attribute instead.
IPv6Address *string `json:"ipv6Address,omitempty" tf:"ipv6_address,omitempty"`
// List of IPv6 addresses for the Lightsail instance.
IPv6Addresses []*string `json:"ipv6Addresses,omitempty" tf:"ipv6_addresses,omitempty"`
// A Boolean value indicating whether this instance has a static IP assigned to it.
IsStaticIP *bool `json:"isStaticIp,omitempty" tf:"is_static_ip,omitempty"`
// The private IP address of the instance.
PrivateIPAddress *string `json:"privateIpAddress,omitempty" tf:"private_ip_address,omitempty"`
// The public IP address of the instance.
PublicIPAddress *string `json:"publicIpAddress,omitempty" tf:"public_ip_address,omitempty"`
// The amount of RAM in GB on the instance (e.g., 1.0).
RAMSize *float64 `json:"ramSize,omitempty" tf:"ram_size,omitempty"`
// A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"`
// The user name for connecting to the instance (e.g., ec2-user).
Username *string `json:"username,omitempty" tf:"username,omitempty"`
}
type InstanceParameters struct {
// The Availability Zone in which to create your
// instance (see list below)
// +kubebuilder:validation:Required
AvailabilityZone *string `json:"availabilityZone" tf:"availability_zone,omitempty"`
// The ID for a virtual private server image. A list of available blueprint IDs can be obtained using the AWS CLI command: aws lightsail get-blueprints
// +kubebuilder:validation:Required
BlueprintID *string `json:"blueprintId" tf:"blueprint_id,omitempty"`
// The bundle of specification information (see list below)
// +kubebuilder:validation:Required
BundleID *string `json:"bundleId" tf:"bundle_id,omitempty"`
// The name of your key pair. Created in the
// Lightsail console (cannot use aws_key_pair at this time)
// +kubebuilder:validation:Optional
KeyPairName *string `json:"keyPairName,omitempty" tf:"key_pair_name,omitempty"`
// Region is the region you'd like your resource to be created in.
// +upjet:crd:field:TFTag=-
// +kubebuilder:validation:Required
Region *string `json:"region" tf:"-"`
// Key-value map of resource tags.
// +kubebuilder:validation:Optional
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// launch script to configure server with additional user data
// +kubebuilder:validation:Optional
UserData *string `json:"userData,omitempty" tf:"user_data,omitempty"`
}
// InstanceSpec defines the desired state of Instance
type InstanceSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider InstanceParameters `json:"forProvider"`
}
// InstanceStatus defines the observed state of Instance.
type InstanceStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider InstanceObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// Instance is the Schema for the Instances API. Provides an Lightsail Instance
// +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="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws}
type Instance struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec InstanceSpec `json:"spec"`
Status InstanceStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// InstanceList contains a list of Instances
type InstanceList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Instance `json:"items"`
}
// Repository type metadata.
var (
Instance_Kind = "Instance"
Instance_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Instance_Kind}.String()
Instance_KindAPIVersion = Instance_Kind + "." + CRDGroupVersion.String()
Instance_GroupVersionKind = CRDGroupVersion.WithKind(Instance_Kind)
)
func init() {
SchemeBuilder.Register(&Instance{}, &InstanceList{})
}