-
Notifications
You must be signed in to change notification settings - Fork 113
/
zz_servicespecificcredential_types.go
executable file
·99 lines (77 loc) · 4.47 KB
/
zz_servicespecificcredential_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
/*
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 ServiceSpecificCredentialObservation struct {
// The combination of service_name and user_name as such: service_name:user_name:service_specific_credential_id.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// The unique identifier for the service-specific credential.
ServiceSpecificCredentialID *string `json:"serviceSpecificCredentialId,omitempty" tf:"service_specific_credential_id,omitempty"`
// The generated user name for the service-specific credential. This value is generated by combining the IAM user's name combined with the ID number of the AWS account, as in jane-at-123456789012, for example.
ServiceUserName *string `json:"serviceUserName,omitempty" tf:"service_user_name,omitempty"`
}
type ServiceSpecificCredentialParameters struct {
// The name of the AWS service that is to be associated with the credentials. The service you specify here is the only service that can be accessed using these credentials.
// +kubebuilder:validation:Required
ServiceName *string `json:"serviceName" tf:"service_name,omitempty"`
// The status to be assigned to the service-specific credential. Valid values are Active and Inactive. Default value is Active.
// +kubebuilder:validation:Optional
Status *string `json:"status,omitempty" tf:"status,omitempty"`
// The name of the IAM user that is to be associated with the credentials. The new service-specific credentials have the same permissions as the associated user except that they can be used only to access the specified service.
// +crossplane:generate:reference:type=User
// +kubebuilder:validation:Optional
UserName *string `json:"userName,omitempty" tf:"user_name,omitempty"`
// Reference to a User to populate userName.
// +kubebuilder:validation:Optional
UserNameRef *v1.Reference `json:"userNameRef,omitempty" tf:"-"`
// Selector for a User to populate userName.
// +kubebuilder:validation:Optional
UserNameSelector *v1.Selector `json:"userNameSelector,omitempty" tf:"-"`
}
// ServiceSpecificCredentialSpec defines the desired state of ServiceSpecificCredential
type ServiceSpecificCredentialSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider ServiceSpecificCredentialParameters `json:"forProvider"`
}
// ServiceSpecificCredentialStatus defines the observed state of ServiceSpecificCredential.
type ServiceSpecificCredentialStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider ServiceSpecificCredentialObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// ServiceSpecificCredential is the Schema for the ServiceSpecificCredentials API. Provides an IAM Service Specific Credential.
// +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 ServiceSpecificCredential struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ServiceSpecificCredentialSpec `json:"spec"`
Status ServiceSpecificCredentialStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// ServiceSpecificCredentialList contains a list of ServiceSpecificCredentials
type ServiceSpecificCredentialList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ServiceSpecificCredential `json:"items"`
}
// Repository type metadata.
var (
ServiceSpecificCredential_Kind = "ServiceSpecificCredential"
ServiceSpecificCredential_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ServiceSpecificCredential_Kind}.String()
ServiceSpecificCredential_KindAPIVersion = ServiceSpecificCredential_Kind + "." + CRDGroupVersion.String()
ServiceSpecificCredential_GroupVersionKind = CRDGroupVersion.WithKind(ServiceSpecificCredential_Kind)
)
func init() {
SchemeBuilder.Register(&ServiceSpecificCredential{}, &ServiceSpecificCredentialList{})
}