v1alpha1

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

+groupName=budgets.aws.kubeform.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: budgets.GroupName, Version: "v1alpha1"}

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Budget

type Budget struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              BudgetSpec   `json:"spec,omitempty"`
	Status            BudgetStatus `json:"status,omitempty"`
}

func (*Budget) DeepCopy

func (in *Budget) DeepCopy() *Budget

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

func (*Budget) DeepCopyInto

func (in *Budget) DeepCopyInto(out *Budget)

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

func (*Budget) DeepCopyObject

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

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

func (*Budget) SetupWebhookWithManager

func (r *Budget) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Budget) ValidateCreate

func (r *Budget) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Budget) ValidateDelete

func (r *Budget) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Budget) ValidateUpdate

func (r *Budget) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type BudgetAction

type BudgetAction struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              BudgetActionSpec   `json:"spec,omitempty"`
	Status            BudgetActionStatus `json:"status,omitempty"`
}

func (*BudgetAction) DeepCopy

func (in *BudgetAction) DeepCopy() *BudgetAction

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

func (*BudgetAction) DeepCopyInto

func (in *BudgetAction) DeepCopyInto(out *BudgetAction)

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

func (*BudgetAction) DeepCopyObject

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

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

func (*BudgetAction) SetupWebhookWithManager

func (r *BudgetAction) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*BudgetAction) ValidateCreate

func (r *BudgetAction) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*BudgetAction) ValidateDelete

func (r *BudgetAction) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*BudgetAction) ValidateUpdate

func (r *BudgetAction) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type BudgetActionList

type BudgetActionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of BudgetAction CRD objects
	Items []BudgetAction `json:"items,omitempty"`
}

BudgetActionList is a list of BudgetActions

func (*BudgetActionList) DeepCopy

func (in *BudgetActionList) DeepCopy() *BudgetActionList

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

func (*BudgetActionList) DeepCopyInto

func (in *BudgetActionList) DeepCopyInto(out *BudgetActionList)

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

func (*BudgetActionList) DeepCopyObject

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

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

type BudgetActionSpec

type BudgetActionSpec struct {
	State *BudgetActionSpecResource `json:"state,omitempty" tf:"-"`

	Resource BudgetActionSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`
}

func (*BudgetActionSpec) DeepCopy

func (in *BudgetActionSpec) DeepCopy() *BudgetActionSpec

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

func (*BudgetActionSpec) DeepCopyInto

func (in *BudgetActionSpec) DeepCopyInto(out *BudgetActionSpec)

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

type BudgetActionSpecActionThreshold

type BudgetActionSpecActionThreshold struct {
	ActionThresholdType  *string  `json:"actionThresholdType" tf:"action_threshold_type"`
	ActionThresholdValue *float64 `json:"actionThresholdValue" tf:"action_threshold_value"`
}

func (*BudgetActionSpecActionThreshold) DeepCopy

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

func (*BudgetActionSpecActionThreshold) DeepCopyInto

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

type BudgetActionSpecActionThresholdCodec

type BudgetActionSpecActionThresholdCodec struct {
}

+k8s:deepcopy-gen=false

func (BudgetActionSpecActionThresholdCodec) Decode

func (BudgetActionSpecActionThresholdCodec) Encode

func (BudgetActionSpecActionThresholdCodec) IsEmpty

type BudgetActionSpecDefinition

type BudgetActionSpecDefinition struct {
	// +optional
	IamActionDefinition *BudgetActionSpecDefinitionIamActionDefinition `json:"iamActionDefinition,omitempty" tf:"iam_action_definition"`
	// +optional
	ScpActionDefinition *BudgetActionSpecDefinitionScpActionDefinition `json:"scpActionDefinition,omitempty" tf:"scp_action_definition"`
	// +optional
	SsmActionDefinition *BudgetActionSpecDefinitionSsmActionDefinition `json:"ssmActionDefinition,omitempty" tf:"ssm_action_definition"`
}

func (*BudgetActionSpecDefinition) DeepCopy

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

func (*BudgetActionSpecDefinition) DeepCopyInto

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

type BudgetActionSpecDefinitionCodec

type BudgetActionSpecDefinitionCodec struct {
}

+k8s:deepcopy-gen=false

func (BudgetActionSpecDefinitionCodec) Decode

func (BudgetActionSpecDefinitionCodec) Encode

func (BudgetActionSpecDefinitionCodec) IsEmpty

type BudgetActionSpecDefinitionIamActionDefinition

type BudgetActionSpecDefinitionIamActionDefinition struct {
	// +optional
	// +kubebuilder:validation:MaxItems=100
	Groups    []string `json:"groups,omitempty" tf:"groups"`
	PolicyArn *string  `json:"policyArn" tf:"policy_arn"`
	// +optional
	// +kubebuilder:validation:MaxItems=100
	Roles []string `json:"roles,omitempty" tf:"roles"`
	// +optional
	// +kubebuilder:validation:MaxItems=100
	Users []string `json:"users,omitempty" tf:"users"`
}

func (*BudgetActionSpecDefinitionIamActionDefinition) DeepCopy

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

func (*BudgetActionSpecDefinitionIamActionDefinition) DeepCopyInto

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

type BudgetActionSpecDefinitionIamActionDefinitionCodec

type BudgetActionSpecDefinitionIamActionDefinitionCodec struct {
}

+k8s:deepcopy-gen=false

func (BudgetActionSpecDefinitionIamActionDefinitionCodec) Decode

func (BudgetActionSpecDefinitionIamActionDefinitionCodec) Encode

func (BudgetActionSpecDefinitionIamActionDefinitionCodec) IsEmpty

type BudgetActionSpecDefinitionScpActionDefinition

type BudgetActionSpecDefinitionScpActionDefinition struct {
	PolicyID *string `json:"policyID" tf:"policy_id"`
	// +kubebuilder:validation:MaxItems=100
	TargetIDS []string `json:"targetIDS" tf:"target_ids"`
}

func (*BudgetActionSpecDefinitionScpActionDefinition) DeepCopy

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

func (*BudgetActionSpecDefinitionScpActionDefinition) DeepCopyInto

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

type BudgetActionSpecDefinitionScpActionDefinitionCodec

type BudgetActionSpecDefinitionScpActionDefinitionCodec struct {
}

+k8s:deepcopy-gen=false

func (BudgetActionSpecDefinitionScpActionDefinitionCodec) Decode

func (BudgetActionSpecDefinitionScpActionDefinitionCodec) Encode

func (BudgetActionSpecDefinitionScpActionDefinitionCodec) IsEmpty

type BudgetActionSpecDefinitionSsmActionDefinition

type BudgetActionSpecDefinitionSsmActionDefinition struct {
	ActionSubType *string `json:"actionSubType" tf:"action_sub_type"`
	// +kubebuilder:validation:MaxItems=100
	InstanceIDS []string `json:"instanceIDS" tf:"instance_ids"`
	Region      *string  `json:"region" tf:"region"`
}

func (*BudgetActionSpecDefinitionSsmActionDefinition) DeepCopy

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

func (*BudgetActionSpecDefinitionSsmActionDefinition) DeepCopyInto

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

type BudgetActionSpecDefinitionSsmActionDefinitionCodec

type BudgetActionSpecDefinitionSsmActionDefinitionCodec struct {
}

+k8s:deepcopy-gen=false

func (BudgetActionSpecDefinitionSsmActionDefinitionCodec) Decode

func (BudgetActionSpecDefinitionSsmActionDefinitionCodec) Encode

func (BudgetActionSpecDefinitionSsmActionDefinitionCodec) IsEmpty

type BudgetActionSpecResource

type BudgetActionSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// +optional
	AccountID *string `json:"accountID,omitempty" tf:"account_id"`
	// +optional
	ActionID        *string                          `json:"actionID,omitempty" tf:"action_id"`
	ActionThreshold *BudgetActionSpecActionThreshold `json:"actionThreshold" tf:"action_threshold"`
	ActionType      *string                          `json:"actionType" tf:"action_type"`
	ApprovalModel   *string                          `json:"approvalModel" tf:"approval_model"`
	// +optional
	Arn              *string                     `json:"arn,omitempty" tf:"arn"`
	BudgetName       *string                     `json:"budgetName" tf:"budget_name"`
	Definition       *BudgetActionSpecDefinition `json:"definition" tf:"definition"`
	ExecutionRoleArn *string                     `json:"executionRoleArn" tf:"execution_role_arn"`
	NotificationType *string                     `json:"notificationType" tf:"notification_type"`
	// +optional
	Status *string `json:"status,omitempty" tf:"status"`
	// +kubebuilder:validation:MaxItems=11
	Subscriber []BudgetActionSpecSubscriber `json:"subscriber" tf:"subscriber"`
}

func (*BudgetActionSpecResource) DeepCopy

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

func (*BudgetActionSpecResource) DeepCopyInto

func (in *BudgetActionSpecResource) DeepCopyInto(out *BudgetActionSpecResource)

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

type BudgetActionSpecSubscriber

type BudgetActionSpecSubscriber struct {
	Address          *string `json:"address" tf:"address"`
	SubscriptionType *string `json:"subscriptionType" tf:"subscription_type"`
}

func (*BudgetActionSpecSubscriber) DeepCopy

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

func (*BudgetActionSpecSubscriber) DeepCopyInto

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

type BudgetActionStatus

type BudgetActionStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*BudgetActionStatus) DeepCopy

func (in *BudgetActionStatus) DeepCopy() *BudgetActionStatus

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

func (*BudgetActionStatus) DeepCopyInto

func (in *BudgetActionStatus) DeepCopyInto(out *BudgetActionStatus)

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

type BudgetList

type BudgetList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Budget CRD objects
	Items []Budget `json:"items,omitempty"`
}

BudgetList is a list of Budgets

func (*BudgetList) DeepCopy

func (in *BudgetList) DeepCopy() *BudgetList

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

func (*BudgetList) DeepCopyInto

func (in *BudgetList) DeepCopyInto(out *BudgetList)

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

func (*BudgetList) DeepCopyObject

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

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

type BudgetSpec

type BudgetSpec struct {
	State *BudgetSpecResource `json:"state,omitempty" tf:"-"`

	Resource BudgetSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`
}

func (*BudgetSpec) DeepCopy

func (in *BudgetSpec) DeepCopy() *BudgetSpec

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

func (*BudgetSpec) DeepCopyInto

func (in *BudgetSpec) DeepCopyInto(out *BudgetSpec)

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

type BudgetSpecCostTypes

type BudgetSpecCostTypes struct {
	// +optional
	IncludeCredit *bool `json:"includeCredit,omitempty" tf:"include_credit"`
	// +optional
	IncludeDiscount *bool `json:"includeDiscount,omitempty" tf:"include_discount"`
	// +optional
	IncludeOtherSubscription *bool `json:"includeOtherSubscription,omitempty" tf:"include_other_subscription"`
	// +optional
	IncludeRecurring *bool `json:"includeRecurring,omitempty" tf:"include_recurring"`
	// +optional
	IncludeRefund *bool `json:"includeRefund,omitempty" tf:"include_refund"`
	// +optional
	IncludeSubscription *bool `json:"includeSubscription,omitempty" tf:"include_subscription"`
	// +optional
	IncludeSupport *bool `json:"includeSupport,omitempty" tf:"include_support"`
	// +optional
	IncludeTax *bool `json:"includeTax,omitempty" tf:"include_tax"`
	// +optional
	IncludeUpfront *bool `json:"includeUpfront,omitempty" tf:"include_upfront"`
	// +optional
	UseAmortized *bool `json:"useAmortized,omitempty" tf:"use_amortized"`
	// +optional
	UseBlended *bool `json:"useBlended,omitempty" tf:"use_blended"`
}

func (*BudgetSpecCostTypes) DeepCopy

func (in *BudgetSpecCostTypes) DeepCopy() *BudgetSpecCostTypes

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

func (*BudgetSpecCostTypes) DeepCopyInto

func (in *BudgetSpecCostTypes) DeepCopyInto(out *BudgetSpecCostTypes)

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

type BudgetSpecCostTypesCodec

type BudgetSpecCostTypesCodec struct {
}

+k8s:deepcopy-gen=false

func (BudgetSpecCostTypesCodec) Decode

func (BudgetSpecCostTypesCodec) Encode

func (BudgetSpecCostTypesCodec) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)

func (BudgetSpecCostTypesCodec) IsEmpty

type BudgetSpecNotification

type BudgetSpecNotification struct {
	ComparisonOperator *string `json:"comparisonOperator" tf:"comparison_operator"`
	NotificationType   *string `json:"notificationType" tf:"notification_type"`
	// +optional
	SubscriberEmailAddresses []string `json:"subscriberEmailAddresses,omitempty" tf:"subscriber_email_addresses"`
	// +optional
	SubscriberSnsTopicArns []string `json:"subscriberSnsTopicArns,omitempty" tf:"subscriber_sns_topic_arns"`
	Threshold              *float64 `json:"threshold" tf:"threshold"`
	ThresholdType          *string  `json:"thresholdType" tf:"threshold_type"`
}

func (*BudgetSpecNotification) DeepCopy

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

func (*BudgetSpecNotification) DeepCopyInto

func (in *BudgetSpecNotification) DeepCopyInto(out *BudgetSpecNotification)

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

type BudgetSpecResource

type BudgetSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// +optional
	AccountID *string `json:"accountID,omitempty" tf:"account_id"`
	// +optional
	Arn        *string `json:"arn,omitempty" tf:"arn"`
	BudgetType *string `json:"budgetType" tf:"budget_type"`
	// +optional
	CostFilters *map[string]string `json:"costFilters,omitempty" tf:"cost_filters"`
	// +optional
	CostTypes   *BudgetSpecCostTypes `json:"costTypes,omitempty" tf:"cost_types"`
	LimitAmount *string              `json:"limitAmount" tf:"limit_amount"`
	LimitUnit   *string              `json:"limitUnit" tf:"limit_unit"`
	// +optional
	Name *string `json:"name,omitempty" tf:"name"`
	// +optional
	NamePrefix *string `json:"namePrefix,omitempty" tf:"name_prefix"`
	// +optional
	Notification []BudgetSpecNotification `json:"notification,omitempty" tf:"notification"`
	// +optional
	TimePeriodEnd   *string `json:"timePeriodEnd,omitempty" tf:"time_period_end"`
	TimePeriodStart *string `json:"timePeriodStart" tf:"time_period_start"`
	TimeUnit        *string `json:"timeUnit" tf:"time_unit"`
}

func (*BudgetSpecResource) DeepCopy

func (in *BudgetSpecResource) DeepCopy() *BudgetSpecResource

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

func (*BudgetSpecResource) DeepCopyInto

func (in *BudgetSpecResource) DeepCopyInto(out *BudgetSpecResource)

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

type BudgetStatus

type BudgetStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*BudgetStatus) DeepCopy

func (in *BudgetStatus) DeepCopy() *BudgetStatus

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

func (*BudgetStatus) DeepCopyInto

func (in *BudgetStatus) DeepCopyInto(out *BudgetStatus)

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