v1beta1

package
v1.14.0 Latest Latest
Warning

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

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

Documentation

Overview

+kubebuilder:object:generate=true +groupName=inspector2.aws.upbound.io +versionName=v1beta1

Index

Constants

View Source
const (
	CRDGroup   = "inspector2.aws.upbound.io"
	CRDVersion = "v1beta1"
)

Package type metadata.

Variables

View Source
var (
	Enabler_Kind             = "Enabler"
	Enabler_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Enabler_Kind}.String()
	Enabler_KindAPIVersion   = Enabler_Kind + "." + CRDGroupVersion.String()
	Enabler_GroupVersionKind = CRDGroupVersion.WithKind(Enabler_Kind)
)

Repository type metadata.

View Source
var (
	// CRDGroupVersion is the API Group Version used to register the objects
	CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Enabler

type Enabler struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.accountIds) || (has(self.initProvider) && has(self.initProvider.accountIds))",message="spec.forProvider.accountIds is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.resourceTypes) || (has(self.initProvider) && has(self.initProvider.resourceTypes))",message="spec.forProvider.resourceTypes is a required parameter"
	Spec   EnablerSpec   `json:"spec"`
	Status EnablerStatus `json:"status,omitempty"`
}

Enabler is the Schema for the Enablers API. +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].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:resource:scope=Cluster,categories={crossplane,managed,aws}

func (*Enabler) DeepCopy

func (in *Enabler) DeepCopy() *Enabler

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

func (*Enabler) DeepCopyInto

func (in *Enabler) DeepCopyInto(out *Enabler)

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

func (*Enabler) DeepCopyObject

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

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

func (*Enabler) GetCondition

func (mg *Enabler) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Enabler.

func (*Enabler) GetConnectionDetailsMapping

func (tr *Enabler) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this Enabler

func (*Enabler) GetDeletionPolicy

func (mg *Enabler) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this Enabler.

func (*Enabler) GetID

func (tr *Enabler) GetID() string

GetID returns ID of underlying Terraform resource of this Enabler

func (*Enabler) GetInitParameters added in v0.38.0

func (tr *Enabler) GetInitParameters() (map[string]any, error)

GetInitParameters of this Enabler

func (*Enabler) GetManagementPolicies added in v0.38.0

func (mg *Enabler) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this Enabler.

func (*Enabler) GetMergedParameters added in v0.44.0

func (tr *Enabler) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)

GetInitParameters of this Enabler

func (*Enabler) GetObservation

func (tr *Enabler) GetObservation() (map[string]any, error)

GetObservation of this Enabler

func (*Enabler) GetParameters

func (tr *Enabler) GetParameters() (map[string]any, error)

GetParameters of this Enabler

func (*Enabler) GetProviderConfigReference

func (mg *Enabler) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this Enabler.

func (*Enabler) GetPublishConnectionDetailsTo

func (mg *Enabler) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Enabler.

func (*Enabler) GetTerraformResourceType

func (mg *Enabler) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Enabler

func (*Enabler) GetTerraformSchemaVersion

func (tr *Enabler) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Enabler) GetWriteConnectionSecretToReference

func (mg *Enabler) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Enabler.

func (*Enabler) Hub added in v0.47.2

func (tr *Enabler) Hub()

Hub marks this type as a conversion hub.

func (*Enabler) LateInitialize

func (tr *Enabler) LateInitialize(attrs []byte) (bool, error)

LateInitialize this Enabler using its observed tfState. returns True if there are any spec changes for the resource.

func (*Enabler) SetConditions

func (mg *Enabler) SetConditions(c ...xpv1.Condition)

SetConditions of this Enabler.

func (*Enabler) SetDeletionPolicy

func (mg *Enabler) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this Enabler.

func (*Enabler) SetManagementPolicies added in v0.38.0

func (mg *Enabler) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this Enabler.

func (*Enabler) SetObservation

func (tr *Enabler) SetObservation(obs map[string]any) error

SetObservation for this Enabler

func (*Enabler) SetParameters

func (tr *Enabler) SetParameters(params map[string]any) error

SetParameters for this Enabler

func (*Enabler) SetProviderConfigReference

func (mg *Enabler) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this Enabler.

func (*Enabler) SetPublishConnectionDetailsTo

func (mg *Enabler) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Enabler.

func (*Enabler) SetWriteConnectionSecretToReference

func (mg *Enabler) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this Enabler.

type EnablerInitParameters added in v0.38.0

type EnablerInitParameters struct {

	// Set of account IDs.
	// Can contain one of: the Organization's Administrator Account, or one or more Member Accounts.
	// +listType=set
	AccountIds []*string `json:"accountIds,omitempty" tf:"account_ids,omitempty"`

	// Type of resources to scan.
	// Valid values are EC2, ECR, LAMBDA and LAMBDA_CODE.
	// At least one item is required.
	// +listType=set
	ResourceTypes []*string `json:"resourceTypes,omitempty" tf:"resource_types,omitempty"`
}

func (*EnablerInitParameters) DeepCopy added in v0.38.0

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

func (*EnablerInitParameters) DeepCopyInto added in v0.38.0

func (in *EnablerInitParameters) DeepCopyInto(out *EnablerInitParameters)

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

type EnablerList

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

EnablerList contains a list of Enablers

func (*EnablerList) DeepCopy

func (in *EnablerList) DeepCopy() *EnablerList

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

func (*EnablerList) DeepCopyInto

func (in *EnablerList) DeepCopyInto(out *EnablerList)

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

func (*EnablerList) DeepCopyObject

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

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

func (*EnablerList) GetItems

func (l *EnablerList) GetItems() []resource.Managed

GetItems of this EnablerList.

type EnablerObservation

type EnablerObservation struct {

	// Set of account IDs.
	// Can contain one of: the Organization's Administrator Account, or one or more Member Accounts.
	// +listType=set
	AccountIds []*string `json:"accountIds,omitempty" tf:"account_ids,omitempty"`

	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// Type of resources to scan.
	// Valid values are EC2, ECR, LAMBDA and LAMBDA_CODE.
	// At least one item is required.
	// +listType=set
	ResourceTypes []*string `json:"resourceTypes,omitempty" tf:"resource_types,omitempty"`
}

func (*EnablerObservation) DeepCopy

func (in *EnablerObservation) DeepCopy() *EnablerObservation

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

func (*EnablerObservation) DeepCopyInto

func (in *EnablerObservation) DeepCopyInto(out *EnablerObservation)

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

type EnablerParameters

type EnablerParameters struct {

	// Set of account IDs.
	// Can contain one of: the Organization's Administrator Account, or one or more Member Accounts.
	// +kubebuilder:validation:Optional
	// +listType=set
	AccountIds []*string `json:"accountIds,omitempty" tf:"account_ids,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:"-"`

	// Type of resources to scan.
	// Valid values are EC2, ECR, LAMBDA and LAMBDA_CODE.
	// At least one item is required.
	// +kubebuilder:validation:Optional
	// +listType=set
	ResourceTypes []*string `json:"resourceTypes,omitempty" tf:"resource_types,omitempty"`
}

func (*EnablerParameters) DeepCopy

func (in *EnablerParameters) DeepCopy() *EnablerParameters

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

func (*EnablerParameters) DeepCopyInto

func (in *EnablerParameters) DeepCopyInto(out *EnablerParameters)

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

type EnablerSpec

type EnablerSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     EnablerParameters `json:"forProvider"`
	// THIS IS A BETA FIELD. It will be honored
	// unless the Management Policies feature flag is disabled.
	// InitProvider holds the same fields as ForProvider, with the exception
	// of Identifier and other resource reference fields. The fields that are
	// in InitProvider are merged into ForProvider when the resource is created.
	// The same fields are also added to the terraform ignore_changes hook, to
	// avoid updating them after creation. This is useful for fields that are
	// required on creation, but we do not desire to update them after creation,
	// for example because of an external controller is managing them, like an
	// autoscaler.
	InitProvider EnablerInitParameters `json:"initProvider,omitempty"`
}

EnablerSpec defines the desired state of Enabler

func (*EnablerSpec) DeepCopy

func (in *EnablerSpec) DeepCopy() *EnablerSpec

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

func (*EnablerSpec) DeepCopyInto

func (in *EnablerSpec) DeepCopyInto(out *EnablerSpec)

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

type EnablerStatus

type EnablerStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        EnablerObservation `json:"atProvider,omitempty"`
}

EnablerStatus defines the observed state of Enabler.

func (*EnablerStatus) DeepCopy

func (in *EnablerStatus) DeepCopy() *EnablerStatus

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

func (*EnablerStatus) DeepCopyInto

func (in *EnablerStatus) DeepCopyInto(out *EnablerStatus)

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