v1beta2

package
v1.10.0-rc.0 Latest Latest
Warning

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

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

Documentation

Overview

+kubebuilder:object:generate=true +groupName=cloudwatchlogs.aws.upbound.io +versionName=v1beta2

Index

Constants

View Source
const (
	CRDGroup   = "cloudwatchlogs.aws.upbound.io"
	CRDVersion = "v1beta2"
)

Package type metadata.

Variables

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
)
View Source
var (
	MetricFilter_Kind             = "MetricFilter"
	MetricFilter_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: MetricFilter_Kind}.String()
	MetricFilter_KindAPIVersion   = MetricFilter_Kind + "." + CRDGroupVersion.String()
	MetricFilter_GroupVersionKind = CRDGroupVersion.WithKind(MetricFilter_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type MetricFilter

type MetricFilter 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.metricTransformation) || (has(self.initProvider) && has(self.initProvider.metricTransformation))",message="spec.forProvider.metricTransformation is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.pattern) || (has(self.initProvider) && has(self.initProvider.pattern))",message="spec.forProvider.pattern is a required parameter"
	Spec   MetricFilterSpec   `json:"spec"`
	Status MetricFilterStatus `json:"status,omitempty"`
}

MetricFilter is the Schema for the MetricFilters API. Provides a CloudWatch Log Metric Filter resource. +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 (*MetricFilter) DeepCopy

func (in *MetricFilter) DeepCopy() *MetricFilter

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

func (*MetricFilter) DeepCopyInto

func (in *MetricFilter) DeepCopyInto(out *MetricFilter)

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

func (*MetricFilter) DeepCopyObject

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

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

func (*MetricFilter) GetCondition

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

GetCondition of this MetricFilter.

func (*MetricFilter) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this MetricFilter

func (*MetricFilter) GetDeletionPolicy

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

GetDeletionPolicy of this MetricFilter.

func (*MetricFilter) GetID

func (tr *MetricFilter) GetID() string

GetID returns ID of underlying Terraform resource of this MetricFilter

func (*MetricFilter) GetInitParameters

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

GetInitParameters of this MetricFilter

func (*MetricFilter) GetManagementPolicies

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

GetManagementPolicies of this MetricFilter.

func (*MetricFilter) GetMergedParameters

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

GetInitParameters of this MetricFilter

func (*MetricFilter) GetObservation

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

GetObservation of this MetricFilter

func (*MetricFilter) GetParameters

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

GetParameters of this MetricFilter

func (*MetricFilter) GetProviderConfigReference

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

GetProviderConfigReference of this MetricFilter.

func (*MetricFilter) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this MetricFilter.

func (*MetricFilter) GetTerraformResourceType

func (mg *MetricFilter) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this MetricFilter

func (*MetricFilter) GetTerraformSchemaVersion

func (tr *MetricFilter) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*MetricFilter) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this MetricFilter.

func (*MetricFilter) Hub

func (tr *MetricFilter) Hub()

Hub marks this type as a conversion hub.

func (*MetricFilter) LateInitialize

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

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

func (*MetricFilter) ResolveReferences

func (mg *MetricFilter) ResolveReferences(
	ctx context.Context, c client.Reader) error

func (*MetricFilter) SetConditions

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

SetConditions of this MetricFilter.

func (*MetricFilter) SetDeletionPolicy

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

SetDeletionPolicy of this MetricFilter.

func (*MetricFilter) SetManagementPolicies

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

SetManagementPolicies of this MetricFilter.

func (*MetricFilter) SetObservation

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

SetObservation for this MetricFilter

func (*MetricFilter) SetParameters

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

SetParameters for this MetricFilter

func (*MetricFilter) SetProviderConfigReference

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

SetProviderConfigReference of this MetricFilter.

func (*MetricFilter) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this MetricFilter.

func (*MetricFilter) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this MetricFilter.

type MetricFilterInitParameters

type MetricFilterInitParameters struct {

	// The name of the log group to associate the metric filter with.
	// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1.Group
	LogGroupName *string `json:"logGroupName,omitempty" tf:"log_group_name,omitempty"`

	// Reference to a Group in cloudwatchlogs to populate logGroupName.
	// +kubebuilder:validation:Optional
	LogGroupNameRef *v1.Reference `json:"logGroupNameRef,omitempty" tf:"-"`

	// Selector for a Group in cloudwatchlogs to populate logGroupName.
	// +kubebuilder:validation:Optional
	LogGroupNameSelector *v1.Selector `json:"logGroupNameSelector,omitempty" tf:"-"`

	// A block defining collection of information needed to define how metric data gets emitted. See below.
	MetricTransformation *MetricTransformationInitParameters `json:"metricTransformation,omitempty" tf:"metric_transformation,omitempty"`

	// A valid CloudWatch Logs filter pattern
	// for extracting metric data out of ingested log events.
	Pattern *string `json:"pattern,omitempty" tf:"pattern,omitempty"`
}

func (*MetricFilterInitParameters) DeepCopy

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

func (*MetricFilterInitParameters) DeepCopyInto

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

type MetricFilterList

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

MetricFilterList contains a list of MetricFilters

func (*MetricFilterList) DeepCopy

func (in *MetricFilterList) DeepCopy() *MetricFilterList

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

func (*MetricFilterList) DeepCopyInto

func (in *MetricFilterList) DeepCopyInto(out *MetricFilterList)

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

func (*MetricFilterList) DeepCopyObject

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

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

func (*MetricFilterList) GetItems

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

GetItems of this MetricFilterList.

type MetricFilterObservation

type MetricFilterObservation struct {

	// The name of the metric filter.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// The name of the log group to associate the metric filter with.
	LogGroupName *string `json:"logGroupName,omitempty" tf:"log_group_name,omitempty"`

	// A block defining collection of information needed to define how metric data gets emitted. See below.
	MetricTransformation *MetricTransformationObservation `json:"metricTransformation,omitempty" tf:"metric_transformation,omitempty"`

	// A valid CloudWatch Logs filter pattern
	// for extracting metric data out of ingested log events.
	Pattern *string `json:"pattern,omitempty" tf:"pattern,omitempty"`
}

func (*MetricFilterObservation) DeepCopy

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

func (*MetricFilterObservation) DeepCopyInto

func (in *MetricFilterObservation) DeepCopyInto(out *MetricFilterObservation)

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

type MetricFilterParameters

type MetricFilterParameters struct {

	// The name of the log group to associate the metric filter with.
	// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1.Group
	// +kubebuilder:validation:Optional
	LogGroupName *string `json:"logGroupName,omitempty" tf:"log_group_name,omitempty"`

	// Reference to a Group in cloudwatchlogs to populate logGroupName.
	// +kubebuilder:validation:Optional
	LogGroupNameRef *v1.Reference `json:"logGroupNameRef,omitempty" tf:"-"`

	// Selector for a Group in cloudwatchlogs to populate logGroupName.
	// +kubebuilder:validation:Optional
	LogGroupNameSelector *v1.Selector `json:"logGroupNameSelector,omitempty" tf:"-"`

	// A block defining collection of information needed to define how metric data gets emitted. See below.
	// +kubebuilder:validation:Optional
	MetricTransformation *MetricTransformationParameters `json:"metricTransformation,omitempty" tf:"metric_transformation,omitempty"`

	// A valid CloudWatch Logs filter pattern
	// for extracting metric data out of ingested log events.
	// +kubebuilder:validation:Optional
	Pattern *string `json:"pattern,omitempty" tf:"pattern,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:"-"`
}

func (*MetricFilterParameters) DeepCopy

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

func (*MetricFilterParameters) DeepCopyInto

func (in *MetricFilterParameters) DeepCopyInto(out *MetricFilterParameters)

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

type MetricFilterSpec

type MetricFilterSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     MetricFilterParameters `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 MetricFilterInitParameters `json:"initProvider,omitempty"`
}

MetricFilterSpec defines the desired state of MetricFilter

func (*MetricFilterSpec) DeepCopy

func (in *MetricFilterSpec) DeepCopy() *MetricFilterSpec

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

func (*MetricFilterSpec) DeepCopyInto

func (in *MetricFilterSpec) DeepCopyInto(out *MetricFilterSpec)

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

type MetricFilterStatus

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

MetricFilterStatus defines the observed state of MetricFilter.

func (*MetricFilterStatus) DeepCopy

func (in *MetricFilterStatus) DeepCopy() *MetricFilterStatus

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

func (*MetricFilterStatus) DeepCopyInto

func (in *MetricFilterStatus) DeepCopyInto(out *MetricFilterStatus)

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

type MetricTransformationInitParameters

type MetricTransformationInitParameters struct {

	// The value to emit when a filter pattern does not match a log event. Conflicts with dimensions.
	DefaultValue *string `json:"defaultValue,omitempty" tf:"default_value,omitempty"`

	// Map of fields to use as dimensions for the metric. Up to 3 dimensions are allowed. Conflicts with default_value.
	// +mapType=granular
	Dimensions map[string]*string `json:"dimensions,omitempty" tf:"dimensions,omitempty"`

	// The name of the CloudWatch metric to which the monitored log information should be published (e.g., ErrorCount)
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// The destination namespace of the CloudWatch metric.
	Namespace *string `json:"namespace,omitempty" tf:"namespace,omitempty"`

	// The unit to assign to the metric. If you omit this, the unit is set as None.
	Unit *string `json:"unit,omitempty" tf:"unit,omitempty"`

	// What to publish to the metric. For example, if you're counting the occurrences of a particular term like "Error", the value will be "1" for each occurrence. If you're counting the bytes transferred the published value will be the value in the log event.
	Value *string `json:"value,omitempty" tf:"value,omitempty"`
}

func (*MetricTransformationInitParameters) DeepCopy

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

func (*MetricTransformationInitParameters) DeepCopyInto

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

type MetricTransformationObservation

type MetricTransformationObservation struct {

	// The value to emit when a filter pattern does not match a log event. Conflicts with dimensions.
	DefaultValue *string `json:"defaultValue,omitempty" tf:"default_value,omitempty"`

	// Map of fields to use as dimensions for the metric. Up to 3 dimensions are allowed. Conflicts with default_value.
	// +mapType=granular
	Dimensions map[string]*string `json:"dimensions,omitempty" tf:"dimensions,omitempty"`

	// The name of the CloudWatch metric to which the monitored log information should be published (e.g., ErrorCount)
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// The destination namespace of the CloudWatch metric.
	Namespace *string `json:"namespace,omitempty" tf:"namespace,omitempty"`

	// The unit to assign to the metric. If you omit this, the unit is set as None.
	Unit *string `json:"unit,omitempty" tf:"unit,omitempty"`

	// What to publish to the metric. For example, if you're counting the occurrences of a particular term like "Error", the value will be "1" for each occurrence. If you're counting the bytes transferred the published value will be the value in the log event.
	Value *string `json:"value,omitempty" tf:"value,omitempty"`
}

func (*MetricTransformationObservation) DeepCopy

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

func (*MetricTransformationObservation) DeepCopyInto

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

type MetricTransformationParameters

type MetricTransformationParameters struct {

	// The value to emit when a filter pattern does not match a log event. Conflicts with dimensions.
	// +kubebuilder:validation:Optional
	DefaultValue *string `json:"defaultValue,omitempty" tf:"default_value,omitempty"`

	// Map of fields to use as dimensions for the metric. Up to 3 dimensions are allowed. Conflicts with default_value.
	// +kubebuilder:validation:Optional
	// +mapType=granular
	Dimensions map[string]*string `json:"dimensions,omitempty" tf:"dimensions,omitempty"`

	// The name of the CloudWatch metric to which the monitored log information should be published (e.g., ErrorCount)
	// +kubebuilder:validation:Optional
	Name *string `json:"name" tf:"name,omitempty"`

	// The destination namespace of the CloudWatch metric.
	// +kubebuilder:validation:Optional
	Namespace *string `json:"namespace" tf:"namespace,omitempty"`

	// The unit to assign to the metric. If you omit this, the unit is set as None.
	// +kubebuilder:validation:Optional
	Unit *string `json:"unit,omitempty" tf:"unit,omitempty"`

	// What to publish to the metric. For example, if you're counting the occurrences of a particular term like "Error", the value will be "1" for each occurrence. If you're counting the bytes transferred the published value will be the value in the log event.
	// +kubebuilder:validation:Optional
	Value *string `json:"value" tf:"value,omitempty"`
}

func (*MetricTransformationParameters) DeepCopy

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

func (*MetricTransformationParameters) DeepCopyInto

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