-
Notifications
You must be signed in to change notification settings - Fork 362
/
zz_file_system.go
170 lines (147 loc) · 7.94 KB
/
zz_file_system.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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
/*
Copyright 2021 The Crossplane Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// Code generated by ack-generate. DO NOT EDIT.
package v1alpha1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
// FileSystemParameters defines the desired state of FileSystem
type FileSystemParameters struct {
// Region is which region the FileSystem will be created.
// +kubebuilder:validation:Required
Region string `json:"region"`
// A Boolean value that, if true, creates an encrypted file system. When creating
// an encrypted file system, you have the option of specifying CreateFileSystemRequest$KmsKeyId
// for an existing AWS Key Management Service (AWS KMS) customer master key
// (CMK). If you don't specify a CMK, then the default CMK for Amazon EFS, /aws/elasticfilesystem,
// is used to protect the encrypted file system.
Encrypted *bool `json:"encrypted,omitempty"`
// The ID of the AWS KMS CMK to be used to protect the encrypted file system.
// This parameter is only required if you want to use a nondefault CMK. If this
// parameter is not specified, the default CMK for Amazon EFS is used. This
// ID can be in one of the following formats:
//
// * Key ID - A unique identifier of the key, for example 1234abcd-12ab-34cd-56ef-1234567890ab.
//
// * ARN - An Amazon Resource Name (ARN) for the key, for example arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab.
//
// * Key alias - A previously created display name for a key, for example
// alias/projectKey1.
//
// * Key alias ARN - An ARN for a key alias, for example arn:aws:kms:us-west-2:444455556666:alias/projectKey1.
//
// If KmsKeyId is specified, the CreateFileSystemRequest$Encrypted parameter
// must be set to true.
//
// EFS accepts only symmetric CMKs. You cannot use asymmetric CMKs with EFS
// file systems.
KMSKeyID *string `json:"kmsKeyID,omitempty"`
// The performance mode of the file system. We recommend generalPurpose performance
// mode for most file systems. File systems using the maxIO performance mode
// can scale to higher levels of aggregate throughput and operations per second
// with a tradeoff of slightly higher latencies for most file operations. The
// performance mode can't be changed after the file system has been created.
PerformanceMode *string `json:"performanceMode,omitempty"`
// A value that specifies to create one or more tags associated with the file
// system. Each tag is a user-defined key-value pair. Name your file system
// on creation by including a "Key":"Name","Value":"{value}" key-value pair.
Tags []*Tag `json:"tags,omitempty"`
// The throughput mode for the file system to be created. There are two throughput
// modes to choose from for your file system: bursting and provisioned. If you
// set ThroughputMode to provisioned, you must also set a value for ProvisionedThroughPutInMibps.
// You can decrease your file system's throughput in Provisioned Throughput
// mode or change between the throughput modes as long as it’s been more than
// 24 hours since the last decrease or throughput mode change. For more, see
// Specifying Throughput with Provisioned Mode (https://docs.aws.amazon.com/efs/latest/ug/performance.html#provisioned-throughput)
// in the Amazon EFS User Guide.
ThroughputMode *string `json:"throughputMode,omitempty"`
// CustomFileSystemParameters includes the additional fields on top of
// the generated ones.
CustomFileSystemParameters `json:",inline"`
}
// FileSystemSpec defines the desired state of FileSystem
type FileSystemSpec struct {
xpv1.ResourceSpec `json:",inline"`
ForProvider FileSystemParameters `json:"forProvider"`
}
// FileSystemObservation defines the observed state of FileSystem
type FileSystemObservation struct {
// The time that the file system was created, in seconds (since 1970-01-01T00:00:00Z).
CreationTime *metav1.Time `json:"creationTime,omitempty"`
// The opaque string specified in the request.
CreationToken *string `json:"creationToken,omitempty"`
// The Amazon Resource Name (ARN) for the EFS file system, in the format arn:aws:elasticfilesystem:region:account-id:file-system/file-system-id
// . Example with sample data: arn:aws:elasticfilesystem:us-west-2:1111333322228888:file-system/fs-01234567
FileSystemARN *string `json:"fileSystemARN,omitempty"`
// The ID of the file system, assigned by Amazon EFS.
FileSystemID *string `json:"fileSystemID,omitempty"`
// The lifecycle phase of the file system.
LifeCycleState *string `json:"lifeCycleState,omitempty"`
// You can add tags to a file system, including a Name tag. For more information,
// see CreateFileSystem. If the file system has a Name tag, Amazon EFS returns
// the value in this field.
Name *string `json:"name,omitempty"`
// The current number of mount targets that the file system has. For more information,
// see CreateMountTarget.
NumberOfMountTargets *int64 `json:"numberOfMountTargets,omitempty"`
// The AWS account that created the file system. If the file system was created
// by an IAM user, the parent account to which the user belongs is the owner.
OwnerID *string `json:"ownerID,omitempty"`
// The latest known metered size (in bytes) of data stored in the file system,
// in its Value field, and the time at which that size was determined in its
// Timestamp field. The Timestamp value is the integer number of seconds since
// 1970-01-01T00:00:00Z. The SizeInBytes value doesn't represent the size of
// a consistent snapshot of the file system, but it is eventually consistent
// when there are no writes to the file system. That is, SizeInBytes represents
// actual size only if the file system is not modified for a period longer than
// a couple of hours. Otherwise, the value is not the exact size that the file
// system was at any point in time.
SizeInBytes *FileSystemSize `json:"sizeInBytes,omitempty"`
}
// FileSystemStatus defines the observed state of FileSystem.
type FileSystemStatus struct {
xpv1.ResourceStatus `json:",inline"`
AtProvider FileSystemObservation `json:"atProvider"`
}
// +kubebuilder:object:root=true
// FileSystem is the Schema for the FileSystems API
// +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:subresource:status
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws}
type FileSystem struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec FileSystemSpec `json:"spec,omitempty"`
Status FileSystemStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// FileSystemList contains a list of FileSystems
type FileSystemList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []FileSystem `json:"items"`
}
// Repository type metadata.
var (
FileSystemKind = "FileSystem"
FileSystemGroupKind = schema.GroupKind{Group: Group, Kind: FileSystemKind}.String()
FileSystemKindAPIVersion = FileSystemKind + "." + GroupVersion.String()
FileSystemGroupVersionKind = GroupVersion.WithKind(FileSystemKind)
)
func init() {
SchemeBuilder.Register(&FileSystem{}, &FileSystemList{})
}