v1beta2

package
v1.15.0 Latest Latest
Warning

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

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

Documentation

Overview

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

Index

Constants

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

Package type metadata.

Variables

View Source
var (
	CompositeAlarm_Kind             = "CompositeAlarm"
	CompositeAlarm_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: CompositeAlarm_Kind}.String()
	CompositeAlarm_KindAPIVersion   = CompositeAlarm_Kind + "." + CRDGroupVersion.String()
	CompositeAlarm_GroupVersionKind = CRDGroupVersion.WithKind(CompositeAlarm_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
)
View Source
var (
	MetricAlarm_Kind             = "MetricAlarm"
	MetricAlarm_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: MetricAlarm_Kind}.String()
	MetricAlarm_KindAPIVersion   = MetricAlarm_Kind + "." + CRDGroupVersion.String()
	MetricAlarm_GroupVersionKind = CRDGroupVersion.WithKind(MetricAlarm_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type ActionsSuppressorInitParameters

type ActionsSuppressorInitParameters struct {

	// Can be an AlarmName or an Amazon Resource Name (ARN) from an existing alarm.
	Alarm *string `json:"alarm,omitempty" tf:"alarm,omitempty"`

	// The maximum time in seconds that the composite alarm waits after suppressor alarm goes out of the ALARM state. After this time, the composite alarm performs its actions.
	ExtensionPeriod *float64 `json:"extensionPeriod,omitempty" tf:"extension_period,omitempty"`

	// The maximum time in seconds that the composite alarm waits for the suppressor alarm to go into the ALARM state. After this time, the composite alarm performs its actions.
	WaitPeriod *float64 `json:"waitPeriod,omitempty" tf:"wait_period,omitempty"`
}

func (*ActionsSuppressorInitParameters) DeepCopy

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

func (*ActionsSuppressorInitParameters) DeepCopyInto

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

type ActionsSuppressorObservation

type ActionsSuppressorObservation struct {

	// Can be an AlarmName or an Amazon Resource Name (ARN) from an existing alarm.
	Alarm *string `json:"alarm,omitempty" tf:"alarm,omitempty"`

	// The maximum time in seconds that the composite alarm waits after suppressor alarm goes out of the ALARM state. After this time, the composite alarm performs its actions.
	ExtensionPeriod *float64 `json:"extensionPeriod,omitempty" tf:"extension_period,omitempty"`

	// The maximum time in seconds that the composite alarm waits for the suppressor alarm to go into the ALARM state. After this time, the composite alarm performs its actions.
	WaitPeriod *float64 `json:"waitPeriod,omitempty" tf:"wait_period,omitempty"`
}

func (*ActionsSuppressorObservation) DeepCopy

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

func (*ActionsSuppressorObservation) DeepCopyInto

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

type ActionsSuppressorParameters

type ActionsSuppressorParameters struct {

	// Can be an AlarmName or an Amazon Resource Name (ARN) from an existing alarm.
	// +kubebuilder:validation:Optional
	Alarm *string `json:"alarm" tf:"alarm,omitempty"`

	// The maximum time in seconds that the composite alarm waits after suppressor alarm goes out of the ALARM state. After this time, the composite alarm performs its actions.
	// +kubebuilder:validation:Optional
	ExtensionPeriod *float64 `json:"extensionPeriod" tf:"extension_period,omitempty"`

	// The maximum time in seconds that the composite alarm waits for the suppressor alarm to go into the ALARM state. After this time, the composite alarm performs its actions.
	// +kubebuilder:validation:Optional
	WaitPeriod *float64 `json:"waitPeriod" tf:"wait_period,omitempty"`
}

func (*ActionsSuppressorParameters) DeepCopy

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

func (*ActionsSuppressorParameters) DeepCopyInto

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

type CompositeAlarm

type CompositeAlarm 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.alarmRule) || (has(self.initProvider) && has(self.initProvider.alarmRule))",message="spec.forProvider.alarmRule is a required parameter"
	Spec   CompositeAlarmSpec   `json:"spec"`
	Status CompositeAlarmStatus `json:"status,omitempty"`
}

CompositeAlarm is the Schema for the CompositeAlarms API. Provides a CloudWatch Composite Alarm 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 (*CompositeAlarm) DeepCopy

func (in *CompositeAlarm) DeepCopy() *CompositeAlarm

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

func (*CompositeAlarm) DeepCopyInto

func (in *CompositeAlarm) DeepCopyInto(out *CompositeAlarm)

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

func (*CompositeAlarm) DeepCopyObject

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

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

func (*CompositeAlarm) GetCondition

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

GetCondition of this CompositeAlarm.

func (*CompositeAlarm) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this CompositeAlarm

func (*CompositeAlarm) GetDeletionPolicy

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

GetDeletionPolicy of this CompositeAlarm.

func (*CompositeAlarm) GetID

func (tr *CompositeAlarm) GetID() string

GetID returns ID of underlying Terraform resource of this CompositeAlarm

func (*CompositeAlarm) GetInitParameters

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

GetInitParameters of this CompositeAlarm

func (*CompositeAlarm) GetManagementPolicies

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

GetManagementPolicies of this CompositeAlarm.

func (*CompositeAlarm) GetMergedParameters

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

GetInitParameters of this CompositeAlarm

func (*CompositeAlarm) GetObservation

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

GetObservation of this CompositeAlarm

func (*CompositeAlarm) GetParameters

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

GetParameters of this CompositeAlarm

func (*CompositeAlarm) GetProviderConfigReference

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

GetProviderConfigReference of this CompositeAlarm.

func (*CompositeAlarm) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this CompositeAlarm.

func (*CompositeAlarm) GetTerraformResourceType

func (mg *CompositeAlarm) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this CompositeAlarm

func (*CompositeAlarm) GetTerraformSchemaVersion

func (tr *CompositeAlarm) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*CompositeAlarm) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this CompositeAlarm.

func (*CompositeAlarm) Hub

func (tr *CompositeAlarm) Hub()

Hub marks this type as a conversion hub.

func (*CompositeAlarm) LateInitialize

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

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

func (*CompositeAlarm) ResolveReferences

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

func (*CompositeAlarm) SetConditions

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

SetConditions of this CompositeAlarm.

func (*CompositeAlarm) SetDeletionPolicy

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

SetDeletionPolicy of this CompositeAlarm.

func (*CompositeAlarm) SetManagementPolicies

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

SetManagementPolicies of this CompositeAlarm.

func (*CompositeAlarm) SetObservation

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

SetObservation for this CompositeAlarm

func (*CompositeAlarm) SetParameters

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

SetParameters for this CompositeAlarm

func (*CompositeAlarm) SetProviderConfigReference

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

SetProviderConfigReference of this CompositeAlarm.

func (*CompositeAlarm) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this CompositeAlarm.

func (*CompositeAlarm) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this CompositeAlarm.

type CompositeAlarmInitParameters

type CompositeAlarmInitParameters struct {

	// Indicates whether actions should be executed during any changes to the alarm state of the composite alarm. Defaults to true.
	ActionsEnabled *bool `json:"actionsEnabled,omitempty" tf:"actions_enabled,omitempty"`

	// Actions will be suppressed if the suppressor alarm is in the ALARM state.
	ActionsSuppressor *ActionsSuppressorInitParameters `json:"actionsSuppressor,omitempty" tf:"actions_suppressor,omitempty"`

	// The set of actions to execute when this alarm transitions to the ALARM state from any other state. Each action is specified as an ARN. Up to 5 actions are allowed.
	// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic
	// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true)
	// +listType=set
	AlarmActions []*string `json:"alarmActions,omitempty" tf:"alarm_actions,omitempty"`

	// References to Topic in sns to populate alarmActions.
	// +kubebuilder:validation:Optional
	AlarmActionsRefs []v1.Reference `json:"alarmActionsRefs,omitempty" tf:"-"`

	// Selector for a list of Topic in sns to populate alarmActions.
	// +kubebuilder:validation:Optional
	AlarmActionsSelector *v1.Selector `json:"alarmActionsSelector,omitempty" tf:"-"`

	// The description for the composite alarm.
	AlarmDescription *string `json:"alarmDescription,omitempty" tf:"alarm_description,omitempty"`

	// An expression that specifies which other alarms are to be evaluated to determine this composite alarm's state. For syntax, see Creating a Composite Alarm. The maximum length is 10240 characters.
	AlarmRule *string `json:"alarmRule,omitempty" tf:"alarm_rule,omitempty"`

	// The set of actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an ARN. Up to 5 actions are allowed.
	// +listType=set
	InsufficientDataActions []*string `json:"insufficientDataActions,omitempty" tf:"insufficient_data_actions,omitempty"`

	// The set of actions to execute when this alarm transitions to an OK state from any other state. Each action is specified as an ARN. Up to 5 actions are allowed.
	// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic
	// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true)
	// +listType=set
	OkActions []*string `json:"okActions,omitempty" tf:"ok_actions,omitempty"`

	// References to Topic in sns to populate okActions.
	// +kubebuilder:validation:Optional
	OkActionsRefs []v1.Reference `json:"okActionsRefs,omitempty" tf:"-"`

	// Selector for a list of Topic in sns to populate okActions.
	// +kubebuilder:validation:Optional
	OkActionsSelector *v1.Selector `json:"okActionsSelector,omitempty" tf:"-"`

	// Key-value map of resource tags.
	// +mapType=granular
	Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
}

func (*CompositeAlarmInitParameters) DeepCopy

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

func (*CompositeAlarmInitParameters) DeepCopyInto

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

type CompositeAlarmList

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

CompositeAlarmList contains a list of CompositeAlarms

func (*CompositeAlarmList) DeepCopy

func (in *CompositeAlarmList) DeepCopy() *CompositeAlarmList

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

func (*CompositeAlarmList) DeepCopyInto

func (in *CompositeAlarmList) DeepCopyInto(out *CompositeAlarmList)

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

func (*CompositeAlarmList) DeepCopyObject

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

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

func (*CompositeAlarmList) GetItems

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

GetItems of this CompositeAlarmList.

type CompositeAlarmObservation

type CompositeAlarmObservation struct {

	// Indicates whether actions should be executed during any changes to the alarm state of the composite alarm. Defaults to true.
	ActionsEnabled *bool `json:"actionsEnabled,omitempty" tf:"actions_enabled,omitempty"`

	// Actions will be suppressed if the suppressor alarm is in the ALARM state.
	ActionsSuppressor *ActionsSuppressorObservation `json:"actionsSuppressor,omitempty" tf:"actions_suppressor,omitempty"`

	// The set of actions to execute when this alarm transitions to the ALARM state from any other state. Each action is specified as an ARN. Up to 5 actions are allowed.
	// +listType=set
	AlarmActions []*string `json:"alarmActions,omitempty" tf:"alarm_actions,omitempty"`

	// The description for the composite alarm.
	AlarmDescription *string `json:"alarmDescription,omitempty" tf:"alarm_description,omitempty"`

	// An expression that specifies which other alarms are to be evaluated to determine this composite alarm's state. For syntax, see Creating a Composite Alarm. The maximum length is 10240 characters.
	AlarmRule *string `json:"alarmRule,omitempty" tf:"alarm_rule,omitempty"`

	// The ARN of the composite alarm.
	Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`

	// The ID of the composite alarm resource, which is equivalent to its alarm_name.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// The set of actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an ARN. Up to 5 actions are allowed.
	// +listType=set
	InsufficientDataActions []*string `json:"insufficientDataActions,omitempty" tf:"insufficient_data_actions,omitempty"`

	// The set of actions to execute when this alarm transitions to an OK state from any other state. Each action is specified as an ARN. Up to 5 actions are allowed.
	// +listType=set
	OkActions []*string `json:"okActions,omitempty" tf:"ok_actions,omitempty"`

	// Key-value map of resource tags.
	// +mapType=granular
	Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`

	// A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
	// +mapType=granular
	TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"`
}

func (*CompositeAlarmObservation) DeepCopy

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

func (*CompositeAlarmObservation) DeepCopyInto

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

type CompositeAlarmParameters

type CompositeAlarmParameters struct {

	// Indicates whether actions should be executed during any changes to the alarm state of the composite alarm. Defaults to true.
	// +kubebuilder:validation:Optional
	ActionsEnabled *bool `json:"actionsEnabled,omitempty" tf:"actions_enabled,omitempty"`

	// Actions will be suppressed if the suppressor alarm is in the ALARM state.
	// +kubebuilder:validation:Optional
	ActionsSuppressor *ActionsSuppressorParameters `json:"actionsSuppressor,omitempty" tf:"actions_suppressor,omitempty"`

	// The set of actions to execute when this alarm transitions to the ALARM state from any other state. Each action is specified as an ARN. Up to 5 actions are allowed.
	// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic
	// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true)
	// +kubebuilder:validation:Optional
	// +listType=set
	AlarmActions []*string `json:"alarmActions,omitempty" tf:"alarm_actions,omitempty"`

	// References to Topic in sns to populate alarmActions.
	// +kubebuilder:validation:Optional
	AlarmActionsRefs []v1.Reference `json:"alarmActionsRefs,omitempty" tf:"-"`

	// Selector for a list of Topic in sns to populate alarmActions.
	// +kubebuilder:validation:Optional
	AlarmActionsSelector *v1.Selector `json:"alarmActionsSelector,omitempty" tf:"-"`

	// The description for the composite alarm.
	// +kubebuilder:validation:Optional
	AlarmDescription *string `json:"alarmDescription,omitempty" tf:"alarm_description,omitempty"`

	// An expression that specifies which other alarms are to be evaluated to determine this composite alarm's state. For syntax, see Creating a Composite Alarm. The maximum length is 10240 characters.
	// +kubebuilder:validation:Optional
	AlarmRule *string `json:"alarmRule,omitempty" tf:"alarm_rule,omitempty"`

	// The set of actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an ARN. Up to 5 actions are allowed.
	// +kubebuilder:validation:Optional
	// +listType=set
	InsufficientDataActions []*string `json:"insufficientDataActions,omitempty" tf:"insufficient_data_actions,omitempty"`

	// The set of actions to execute when this alarm transitions to an OK state from any other state. Each action is specified as an ARN. Up to 5 actions are allowed.
	// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic
	// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true)
	// +kubebuilder:validation:Optional
	// +listType=set
	OkActions []*string `json:"okActions,omitempty" tf:"ok_actions,omitempty"`

	// References to Topic in sns to populate okActions.
	// +kubebuilder:validation:Optional
	OkActionsRefs []v1.Reference `json:"okActionsRefs,omitempty" tf:"-"`

	// Selector for a list of Topic in sns to populate okActions.
	// +kubebuilder:validation:Optional
	OkActionsSelector *v1.Selector `json:"okActionsSelector,omitempty" tf:"-"`

	// 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:"-"`

	// Key-value map of resource tags.
	// +kubebuilder:validation:Optional
	// +mapType=granular
	Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
}

func (*CompositeAlarmParameters) DeepCopy

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

func (*CompositeAlarmParameters) DeepCopyInto

func (in *CompositeAlarmParameters) DeepCopyInto(out *CompositeAlarmParameters)

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

type CompositeAlarmSpec

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

CompositeAlarmSpec defines the desired state of CompositeAlarm

func (*CompositeAlarmSpec) DeepCopy

func (in *CompositeAlarmSpec) DeepCopy() *CompositeAlarmSpec

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

func (*CompositeAlarmSpec) DeepCopyInto

func (in *CompositeAlarmSpec) DeepCopyInto(out *CompositeAlarmSpec)

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

type CompositeAlarmStatus

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

CompositeAlarmStatus defines the observed state of CompositeAlarm.

func (*CompositeAlarmStatus) DeepCopy

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

func (*CompositeAlarmStatus) DeepCopyInto

func (in *CompositeAlarmStatus) DeepCopyInto(out *CompositeAlarmStatus)

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

type MetricAlarm

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

MetricAlarm is the Schema for the MetricAlarms API. Provides a CloudWatch Metric Alarm 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 (*MetricAlarm) DeepCopy

func (in *MetricAlarm) DeepCopy() *MetricAlarm

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

func (*MetricAlarm) DeepCopyInto

func (in *MetricAlarm) DeepCopyInto(out *MetricAlarm)

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

func (*MetricAlarm) DeepCopyObject

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

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

func (*MetricAlarm) GetCondition

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

GetCondition of this MetricAlarm.

func (*MetricAlarm) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this MetricAlarm

func (*MetricAlarm) GetDeletionPolicy

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

GetDeletionPolicy of this MetricAlarm.

func (*MetricAlarm) GetID

func (tr *MetricAlarm) GetID() string

GetID returns ID of underlying Terraform resource of this MetricAlarm

func (*MetricAlarm) GetInitParameters

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

GetInitParameters of this MetricAlarm

func (*MetricAlarm) GetManagementPolicies

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

GetManagementPolicies of this MetricAlarm.

func (*MetricAlarm) GetMergedParameters

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

GetInitParameters of this MetricAlarm

func (*MetricAlarm) GetObservation

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

GetObservation of this MetricAlarm

func (*MetricAlarm) GetParameters

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

GetParameters of this MetricAlarm

func (*MetricAlarm) GetProviderConfigReference

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

GetProviderConfigReference of this MetricAlarm.

func (*MetricAlarm) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this MetricAlarm.

func (*MetricAlarm) GetTerraformResourceType

func (mg *MetricAlarm) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this MetricAlarm

func (*MetricAlarm) GetTerraformSchemaVersion

func (tr *MetricAlarm) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*MetricAlarm) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this MetricAlarm.

func (*MetricAlarm) Hub

func (tr *MetricAlarm) Hub()

Hub marks this type as a conversion hub.

func (*MetricAlarm) LateInitialize

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

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

func (*MetricAlarm) SetConditions

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

SetConditions of this MetricAlarm.

func (*MetricAlarm) SetDeletionPolicy

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

SetDeletionPolicy of this MetricAlarm.

func (*MetricAlarm) SetManagementPolicies

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

SetManagementPolicies of this MetricAlarm.

func (*MetricAlarm) SetObservation

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

SetObservation for this MetricAlarm

func (*MetricAlarm) SetParameters

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

SetParameters for this MetricAlarm

func (*MetricAlarm) SetProviderConfigReference

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

SetProviderConfigReference of this MetricAlarm.

func (*MetricAlarm) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this MetricAlarm.

func (*MetricAlarm) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this MetricAlarm.

type MetricAlarmInitParameters

type MetricAlarmInitParameters struct {

	// Indicates whether or not actions should be executed during any changes to the alarm's state. Defaults to true.
	ActionsEnabled *bool `json:"actionsEnabled,omitempty" tf:"actions_enabled,omitempty"`

	// The list of actions to execute when this alarm transitions into an ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).
	// +listType=set
	AlarmActions []*string `json:"alarmActions,omitempty" tf:"alarm_actions,omitempty"`

	// The description for the alarm.
	AlarmDescription *string `json:"alarmDescription,omitempty" tf:"alarm_description,omitempty"`

	// The arithmetic operation to use when comparing the specified Statistic and Threshold. The specified Statistic value is used as the first operand. Either of the following is supported: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold, LessThanOrEqualToThreshold. Additionally, the values  LessThanLowerOrGreaterThanUpperThreshold, LessThanLowerThreshold, and GreaterThanUpperThreshold are used only for alarms based on anomaly detection models.
	ComparisonOperator *string `json:"comparisonOperator,omitempty" tf:"comparison_operator,omitempty"`

	// The number of datapoints that must be breaching to trigger the alarm.
	DatapointsToAlarm *float64 `json:"datapointsToAlarm,omitempty" tf:"datapoints_to_alarm,omitempty"`

	// The dimensions for the alarm's associated metric.  For the list of available dimensions see the AWS documentation here.
	// +mapType=granular
	Dimensions map[string]*string `json:"dimensions,omitempty" tf:"dimensions,omitempty"`

	// Used only for alarms based on percentiles.
	// If you specify ignore, the alarm state will not change during periods with too few data points to be statistically significant.
	// If you specify evaluate or omit this parameter, the alarm will always be evaluated and possibly change state no matter how many data points are available.
	// The following values are supported: ignore, and evaluate.
	EvaluateLowSampleCountPercentiles *string `json:"evaluateLowSampleCountPercentiles,omitempty" tf:"evaluate_low_sample_count_percentiles,omitempty"`

	// The number of periods over which data is compared to the specified threshold.
	EvaluationPeriods *float64 `json:"evaluationPeriods,omitempty" tf:"evaluation_periods,omitempty"`

	// The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100.
	ExtendedStatistic *string `json:"extendedStatistic,omitempty" tf:"extended_statistic,omitempty"`

	// The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).
	// +listType=set
	InsufficientDataActions []*string `json:"insufficientDataActions,omitempty" tf:"insufficient_data_actions,omitempty"`

	// The name for the alarm's associated metric.
	// See docs for supported metrics.
	MetricName *string `json:"metricName,omitempty" tf:"metric_name,omitempty"`

	// Enables you to create an alarm based on a metric math expression. You may specify at most 20.
	MetricQuery []MetricQueryInitParameters `json:"metricQuery,omitempty" tf:"metric_query,omitempty"`

	// The namespace for the alarm's associated metric. See docs for the list of namespaces.
	// See docs for supported metrics.
	Namespace *string `json:"namespace,omitempty" tf:"namespace,omitempty"`

	// The list of actions to execute when this alarm transitions into an OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).
	// +listType=set
	OkActions []*string `json:"okActions,omitempty" tf:"ok_actions,omitempty"`

	// The period in seconds over which the specified statistic is applied.
	// Valid values are 10, 30, or any multiple of 60.
	Period *float64 `json:"period,omitempty" tf:"period,omitempty"`

	// The statistic to apply to the alarm's associated metric.
	// Either of the following is supported: SampleCount, Average, Sum, Minimum, Maximum
	Statistic *string `json:"statistic,omitempty" tf:"statistic,omitempty"`

	// Key-value map of resource tags.
	// +mapType=granular
	Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`

	// The value against which the specified statistic is compared. This parameter is required for alarms based on static thresholds, but should not be used for alarms based on anomaly detection models.
	Threshold *float64 `json:"threshold,omitempty" tf:"threshold,omitempty"`

	// If this is an alarm based on an anomaly detection model, make this value match the ID of the ANOMALY_DETECTION_BAND function.
	ThresholdMetricID *string `json:"thresholdMetricId,omitempty" tf:"threshold_metric_id,omitempty"`

	// Sets how this alarm is to handle missing data points. The following values are supported: missing, ignore, breaching and notBreaching. Defaults to missing.
	TreatMissingData *string `json:"treatMissingData,omitempty" tf:"treat_missing_data,omitempty"`

	// The unit for the alarm's associated metric.
	Unit *string `json:"unit,omitempty" tf:"unit,omitempty"`
}

func (*MetricAlarmInitParameters) DeepCopy

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

func (*MetricAlarmInitParameters) DeepCopyInto

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

type MetricAlarmList

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

MetricAlarmList contains a list of MetricAlarms

func (*MetricAlarmList) DeepCopy

func (in *MetricAlarmList) DeepCopy() *MetricAlarmList

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

func (*MetricAlarmList) DeepCopyInto

func (in *MetricAlarmList) DeepCopyInto(out *MetricAlarmList)

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

func (*MetricAlarmList) DeepCopyObject

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

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

func (*MetricAlarmList) GetItems

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

GetItems of this MetricAlarmList.

type MetricAlarmObservation

type MetricAlarmObservation struct {

	// Indicates whether or not actions should be executed during any changes to the alarm's state. Defaults to true.
	ActionsEnabled *bool `json:"actionsEnabled,omitempty" tf:"actions_enabled,omitempty"`

	// The list of actions to execute when this alarm transitions into an ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).
	// +listType=set
	AlarmActions []*string `json:"alarmActions,omitempty" tf:"alarm_actions,omitempty"`

	// The description for the alarm.
	AlarmDescription *string `json:"alarmDescription,omitempty" tf:"alarm_description,omitempty"`

	// The ARN of the CloudWatch Metric Alarm.
	Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`

	// The arithmetic operation to use when comparing the specified Statistic and Threshold. The specified Statistic value is used as the first operand. Either of the following is supported: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold, LessThanOrEqualToThreshold. Additionally, the values  LessThanLowerOrGreaterThanUpperThreshold, LessThanLowerThreshold, and GreaterThanUpperThreshold are used only for alarms based on anomaly detection models.
	ComparisonOperator *string `json:"comparisonOperator,omitempty" tf:"comparison_operator,omitempty"`

	// The number of datapoints that must be breaching to trigger the alarm.
	DatapointsToAlarm *float64 `json:"datapointsToAlarm,omitempty" tf:"datapoints_to_alarm,omitempty"`

	// The dimensions for the alarm's associated metric.  For the list of available dimensions see the AWS documentation here.
	// +mapType=granular
	Dimensions map[string]*string `json:"dimensions,omitempty" tf:"dimensions,omitempty"`

	// Used only for alarms based on percentiles.
	// If you specify ignore, the alarm state will not change during periods with too few data points to be statistically significant.
	// If you specify evaluate or omit this parameter, the alarm will always be evaluated and possibly change state no matter how many data points are available.
	// The following values are supported: ignore, and evaluate.
	EvaluateLowSampleCountPercentiles *string `json:"evaluateLowSampleCountPercentiles,omitempty" tf:"evaluate_low_sample_count_percentiles,omitempty"`

	// The number of periods over which data is compared to the specified threshold.
	EvaluationPeriods *float64 `json:"evaluationPeriods,omitempty" tf:"evaluation_periods,omitempty"`

	// The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100.
	ExtendedStatistic *string `json:"extendedStatistic,omitempty" tf:"extended_statistic,omitempty"`

	// The ID of the health check.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).
	// +listType=set
	InsufficientDataActions []*string `json:"insufficientDataActions,omitempty" tf:"insufficient_data_actions,omitempty"`

	// The name for the alarm's associated metric.
	// See docs for supported metrics.
	MetricName *string `json:"metricName,omitempty" tf:"metric_name,omitempty"`

	// Enables you to create an alarm based on a metric math expression. You may specify at most 20.
	MetricQuery []MetricQueryObservation `json:"metricQuery,omitempty" tf:"metric_query,omitempty"`

	// The namespace for the alarm's associated metric. See docs for the list of namespaces.
	// See docs for supported metrics.
	Namespace *string `json:"namespace,omitempty" tf:"namespace,omitempty"`

	// The list of actions to execute when this alarm transitions into an OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).
	// +listType=set
	OkActions []*string `json:"okActions,omitempty" tf:"ok_actions,omitempty"`

	// The period in seconds over which the specified statistic is applied.
	// Valid values are 10, 30, or any multiple of 60.
	Period *float64 `json:"period,omitempty" tf:"period,omitempty"`

	// The statistic to apply to the alarm's associated metric.
	// Either of the following is supported: SampleCount, Average, Sum, Minimum, Maximum
	Statistic *string `json:"statistic,omitempty" tf:"statistic,omitempty"`

	// Key-value map of resource tags.
	// +mapType=granular
	Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`

	// A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
	// +mapType=granular
	TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"`

	// The value against which the specified statistic is compared. This parameter is required for alarms based on static thresholds, but should not be used for alarms based on anomaly detection models.
	Threshold *float64 `json:"threshold,omitempty" tf:"threshold,omitempty"`

	// If this is an alarm based on an anomaly detection model, make this value match the ID of the ANOMALY_DETECTION_BAND function.
	ThresholdMetricID *string `json:"thresholdMetricId,omitempty" tf:"threshold_metric_id,omitempty"`

	// Sets how this alarm is to handle missing data points. The following values are supported: missing, ignore, breaching and notBreaching. Defaults to missing.
	TreatMissingData *string `json:"treatMissingData,omitempty" tf:"treat_missing_data,omitempty"`

	// The unit for the alarm's associated metric.
	Unit *string `json:"unit,omitempty" tf:"unit,omitempty"`
}

func (*MetricAlarmObservation) DeepCopy

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

func (*MetricAlarmObservation) DeepCopyInto

func (in *MetricAlarmObservation) DeepCopyInto(out *MetricAlarmObservation)

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

type MetricAlarmParameters

type MetricAlarmParameters struct {

	// Indicates whether or not actions should be executed during any changes to the alarm's state. Defaults to true.
	// +kubebuilder:validation:Optional
	ActionsEnabled *bool `json:"actionsEnabled,omitempty" tf:"actions_enabled,omitempty"`

	// The list of actions to execute when this alarm transitions into an ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).
	// +kubebuilder:validation:Optional
	// +listType=set
	AlarmActions []*string `json:"alarmActions,omitempty" tf:"alarm_actions,omitempty"`

	// The description for the alarm.
	// +kubebuilder:validation:Optional
	AlarmDescription *string `json:"alarmDescription,omitempty" tf:"alarm_description,omitempty"`

	// The arithmetic operation to use when comparing the specified Statistic and Threshold. The specified Statistic value is used as the first operand. Either of the following is supported: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold, LessThanOrEqualToThreshold. Additionally, the values  LessThanLowerOrGreaterThanUpperThreshold, LessThanLowerThreshold, and GreaterThanUpperThreshold are used only for alarms based on anomaly detection models.
	// +kubebuilder:validation:Optional
	ComparisonOperator *string `json:"comparisonOperator,omitempty" tf:"comparison_operator,omitempty"`

	// The number of datapoints that must be breaching to trigger the alarm.
	// +kubebuilder:validation:Optional
	DatapointsToAlarm *float64 `json:"datapointsToAlarm,omitempty" tf:"datapoints_to_alarm,omitempty"`

	// The dimensions for the alarm's associated metric.  For the list of available dimensions see the AWS documentation here.
	// +kubebuilder:validation:Optional
	// +mapType=granular
	Dimensions map[string]*string `json:"dimensions,omitempty" tf:"dimensions,omitempty"`

	// Used only for alarms based on percentiles.
	// If you specify ignore, the alarm state will not change during periods with too few data points to be statistically significant.
	// If you specify evaluate or omit this parameter, the alarm will always be evaluated and possibly change state no matter how many data points are available.
	// The following values are supported: ignore, and evaluate.
	// +kubebuilder:validation:Optional
	EvaluateLowSampleCountPercentiles *string `json:"evaluateLowSampleCountPercentiles,omitempty" tf:"evaluate_low_sample_count_percentiles,omitempty"`

	// The number of periods over which data is compared to the specified threshold.
	// +kubebuilder:validation:Optional
	EvaluationPeriods *float64 `json:"evaluationPeriods,omitempty" tf:"evaluation_periods,omitempty"`

	// The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100.
	// +kubebuilder:validation:Optional
	ExtendedStatistic *string `json:"extendedStatistic,omitempty" tf:"extended_statistic,omitempty"`

	// The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).
	// +kubebuilder:validation:Optional
	// +listType=set
	InsufficientDataActions []*string `json:"insufficientDataActions,omitempty" tf:"insufficient_data_actions,omitempty"`

	// The name for the alarm's associated metric.
	// See docs for supported metrics.
	// +kubebuilder:validation:Optional
	MetricName *string `json:"metricName,omitempty" tf:"metric_name,omitempty"`

	// Enables you to create an alarm based on a metric math expression. You may specify at most 20.
	// +kubebuilder:validation:Optional
	MetricQuery []MetricQueryParameters `json:"metricQuery,omitempty" tf:"metric_query,omitempty"`

	// The namespace for the alarm's associated metric. See docs for the list of namespaces.
	// See docs for supported metrics.
	// +kubebuilder:validation:Optional
	Namespace *string `json:"namespace,omitempty" tf:"namespace,omitempty"`

	// The list of actions to execute when this alarm transitions into an OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).
	// +kubebuilder:validation:Optional
	// +listType=set
	OkActions []*string `json:"okActions,omitempty" tf:"ok_actions,omitempty"`

	// The period in seconds over which the specified statistic is applied.
	// Valid values are 10, 30, or any multiple of 60.
	// +kubebuilder:validation:Optional
	Period *float64 `json:"period,omitempty" tf:"period,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:"-"`

	// The statistic to apply to the alarm's associated metric.
	// Either of the following is supported: SampleCount, Average, Sum, Minimum, Maximum
	// +kubebuilder:validation:Optional
	Statistic *string `json:"statistic,omitempty" tf:"statistic,omitempty"`

	// Key-value map of resource tags.
	// +kubebuilder:validation:Optional
	// +mapType=granular
	Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`

	// The value against which the specified statistic is compared. This parameter is required for alarms based on static thresholds, but should not be used for alarms based on anomaly detection models.
	// +kubebuilder:validation:Optional
	Threshold *float64 `json:"threshold,omitempty" tf:"threshold,omitempty"`

	// If this is an alarm based on an anomaly detection model, make this value match the ID of the ANOMALY_DETECTION_BAND function.
	// +kubebuilder:validation:Optional
	ThresholdMetricID *string `json:"thresholdMetricId,omitempty" tf:"threshold_metric_id,omitempty"`

	// Sets how this alarm is to handle missing data points. The following values are supported: missing, ignore, breaching and notBreaching. Defaults to missing.
	// +kubebuilder:validation:Optional
	TreatMissingData *string `json:"treatMissingData,omitempty" tf:"treat_missing_data,omitempty"`

	// The unit for the alarm's associated metric.
	// +kubebuilder:validation:Optional
	Unit *string `json:"unit,omitempty" tf:"unit,omitempty"`
}

func (*MetricAlarmParameters) DeepCopy

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

func (*MetricAlarmParameters) DeepCopyInto

func (in *MetricAlarmParameters) DeepCopyInto(out *MetricAlarmParameters)

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

type MetricAlarmSpec

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

MetricAlarmSpec defines the desired state of MetricAlarm

func (*MetricAlarmSpec) DeepCopy

func (in *MetricAlarmSpec) DeepCopy() *MetricAlarmSpec

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

func (*MetricAlarmSpec) DeepCopyInto

func (in *MetricAlarmSpec) DeepCopyInto(out *MetricAlarmSpec)

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

type MetricAlarmStatus

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

MetricAlarmStatus defines the observed state of MetricAlarm.

func (*MetricAlarmStatus) DeepCopy

func (in *MetricAlarmStatus) DeepCopy() *MetricAlarmStatus

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

func (*MetricAlarmStatus) DeepCopyInto

func (in *MetricAlarmStatus) DeepCopyInto(out *MetricAlarmStatus)

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

type MetricInitParameters

type MetricInitParameters struct {

	// The dimensions for this metric.  For the list of available dimensions see the AWS documentation here.
	// +mapType=granular
	Dimensions map[string]*string `json:"dimensions,omitempty" tf:"dimensions,omitempty"`

	// The name for this metric.
	// See docs for supported metrics.
	MetricName *string `json:"metricName,omitempty" tf:"metric_name,omitempty"`

	// The namespace for this metric. See docs for the list of namespaces.
	// See docs for supported metrics.
	Namespace *string `json:"namespace,omitempty" tf:"namespace,omitempty"`

	// Granularity in seconds of returned data points.
	// For metrics with regular resolution, valid values are any multiple of 60.
	// For high-resolution metrics, valid values are 1, 5, 10, 30, or any multiple of 60.
	Period *float64 `json:"period,omitempty" tf:"period,omitempty"`

	// The statistic to apply to this metric.
	// See docs for supported statistics.
	Stat *string `json:"stat,omitempty" tf:"stat,omitempty"`

	// The unit for this metric.
	Unit *string `json:"unit,omitempty" tf:"unit,omitempty"`
}

func (*MetricInitParameters) DeepCopy

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

func (*MetricInitParameters) DeepCopyInto

func (in *MetricInitParameters) DeepCopyInto(out *MetricInitParameters)

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

type MetricObservation

type MetricObservation struct {

	// The dimensions for this metric.  For the list of available dimensions see the AWS documentation here.
	// +mapType=granular
	Dimensions map[string]*string `json:"dimensions,omitempty" tf:"dimensions,omitempty"`

	// The name for this metric.
	// See docs for supported metrics.
	MetricName *string `json:"metricName,omitempty" tf:"metric_name,omitempty"`

	// The namespace for this metric. See docs for the list of namespaces.
	// See docs for supported metrics.
	Namespace *string `json:"namespace,omitempty" tf:"namespace,omitempty"`

	// Granularity in seconds of returned data points.
	// For metrics with regular resolution, valid values are any multiple of 60.
	// For high-resolution metrics, valid values are 1, 5, 10, 30, or any multiple of 60.
	Period *float64 `json:"period,omitempty" tf:"period,omitempty"`

	// The statistic to apply to this metric.
	// See docs for supported statistics.
	Stat *string `json:"stat,omitempty" tf:"stat,omitempty"`

	// The unit for this metric.
	Unit *string `json:"unit,omitempty" tf:"unit,omitempty"`
}

func (*MetricObservation) DeepCopy

func (in *MetricObservation) DeepCopy() *MetricObservation

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

func (*MetricObservation) DeepCopyInto

func (in *MetricObservation) DeepCopyInto(out *MetricObservation)

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

type MetricParameters

type MetricParameters struct {

	// The dimensions for this metric.  For the list of available dimensions see the AWS documentation here.
	// +kubebuilder:validation:Optional
	// +mapType=granular
	Dimensions map[string]*string `json:"dimensions,omitempty" tf:"dimensions,omitempty"`

	// The name for this metric.
	// See docs for supported metrics.
	// +kubebuilder:validation:Optional
	MetricName *string `json:"metricName" tf:"metric_name,omitempty"`

	// The namespace for this metric. See docs for the list of namespaces.
	// See docs for supported metrics.
	// +kubebuilder:validation:Optional
	Namespace *string `json:"namespace,omitempty" tf:"namespace,omitempty"`

	// Granularity in seconds of returned data points.
	// For metrics with regular resolution, valid values are any multiple of 60.
	// For high-resolution metrics, valid values are 1, 5, 10, 30, or any multiple of 60.
	// +kubebuilder:validation:Optional
	Period *float64 `json:"period" tf:"period,omitempty"`

	// The statistic to apply to this metric.
	// See docs for supported statistics.
	// +kubebuilder:validation:Optional
	Stat *string `json:"stat" tf:"stat,omitempty"`

	// The unit for this metric.
	// +kubebuilder:validation:Optional
	Unit *string `json:"unit,omitempty" tf:"unit,omitempty"`
}

func (*MetricParameters) DeepCopy

func (in *MetricParameters) DeepCopy() *MetricParameters

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

func (*MetricParameters) DeepCopyInto

func (in *MetricParameters) DeepCopyInto(out *MetricParameters)

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

type MetricQueryInitParameters

type MetricQueryInitParameters struct {

	// The ID of the account where the metrics are located, if this is a cross-account alarm.
	AccountID *string `json:"accountId,omitempty" tf:"account_id,omitempty"`

	// The math expression to be performed on the returned data, if this object is performing a math expression. This expression can use the id of the other metrics to refer to those metrics, and can also use the id of other expressions to use the result of those expressions. For more information about metric math expressions, see Metric Math Syntax and Functions in the Amazon CloudWatch User Guide.
	Expression *string `json:"expression,omitempty" tf:"expression,omitempty"`

	// A short name used to tie this object to the results in the response. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// A human-readable label for this metric or expression. This is especially useful if this is an expression, so that you know what the value represents.
	Label *string `json:"label,omitempty" tf:"label,omitempty"`

	// The metric to be returned, along with statistics, period, and units. Use this parameter only if this object is retrieving a metric and not performing a math expression on returned data.
	Metric *MetricInitParameters `json:"metric,omitempty" tf:"metric,omitempty"`

	// Granularity in seconds of returned data points.
	// For metrics with regular resolution, valid values are any multiple of 60.
	// For high-resolution metrics, valid values are 1, 5, 10, 30, or any multiple of 60.
	Period *float64 `json:"period,omitempty" tf:"period,omitempty"`

	// Specify exactly one metric_query to be true to use that metric_query result as the alarm.
	ReturnData *bool `json:"returnData,omitempty" tf:"return_data,omitempty"`
}

func (*MetricQueryInitParameters) DeepCopy

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

func (*MetricQueryInitParameters) DeepCopyInto

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

type MetricQueryObservation

type MetricQueryObservation struct {

	// The ID of the account where the metrics are located, if this is a cross-account alarm.
	AccountID *string `json:"accountId,omitempty" tf:"account_id,omitempty"`

	// The math expression to be performed on the returned data, if this object is performing a math expression. This expression can use the id of the other metrics to refer to those metrics, and can also use the id of other expressions to use the result of those expressions. For more information about metric math expressions, see Metric Math Syntax and Functions in the Amazon CloudWatch User Guide.
	Expression *string `json:"expression,omitempty" tf:"expression,omitempty"`

	// A short name used to tie this object to the results in the response. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// A human-readable label for this metric or expression. This is especially useful if this is an expression, so that you know what the value represents.
	Label *string `json:"label,omitempty" tf:"label,omitempty"`

	// The metric to be returned, along with statistics, period, and units. Use this parameter only if this object is retrieving a metric and not performing a math expression on returned data.
	Metric *MetricObservation `json:"metric,omitempty" tf:"metric,omitempty"`

	// Granularity in seconds of returned data points.
	// For metrics with regular resolution, valid values are any multiple of 60.
	// For high-resolution metrics, valid values are 1, 5, 10, 30, or any multiple of 60.
	Period *float64 `json:"period,omitempty" tf:"period,omitempty"`

	// Specify exactly one metric_query to be true to use that metric_query result as the alarm.
	ReturnData *bool `json:"returnData,omitempty" tf:"return_data,omitempty"`
}

func (*MetricQueryObservation) DeepCopy

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

func (*MetricQueryObservation) DeepCopyInto

func (in *MetricQueryObservation) DeepCopyInto(out *MetricQueryObservation)

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

type MetricQueryParameters

type MetricQueryParameters struct {

	// The ID of the account where the metrics are located, if this is a cross-account alarm.
	// +kubebuilder:validation:Optional
	AccountID *string `json:"accountId,omitempty" tf:"account_id,omitempty"`

	// The math expression to be performed on the returned data, if this object is performing a math expression. This expression can use the id of the other metrics to refer to those metrics, and can also use the id of other expressions to use the result of those expressions. For more information about metric math expressions, see Metric Math Syntax and Functions in the Amazon CloudWatch User Guide.
	// +kubebuilder:validation:Optional
	Expression *string `json:"expression,omitempty" tf:"expression,omitempty"`

	// A short name used to tie this object to the results in the response. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter.
	// +kubebuilder:validation:Optional
	ID *string `json:"id" tf:"id,omitempty"`

	// A human-readable label for this metric or expression. This is especially useful if this is an expression, so that you know what the value represents.
	// +kubebuilder:validation:Optional
	Label *string `json:"label,omitempty" tf:"label,omitempty"`

	// The metric to be returned, along with statistics, period, and units. Use this parameter only if this object is retrieving a metric and not performing a math expression on returned data.
	// +kubebuilder:validation:Optional
	Metric *MetricParameters `json:"metric,omitempty" tf:"metric,omitempty"`

	// Granularity in seconds of returned data points.
	// For metrics with regular resolution, valid values are any multiple of 60.
	// For high-resolution metrics, valid values are 1, 5, 10, 30, or any multiple of 60.
	// +kubebuilder:validation:Optional
	Period *float64 `json:"period,omitempty" tf:"period,omitempty"`

	// Specify exactly one metric_query to be true to use that metric_query result as the alarm.
	// +kubebuilder:validation:Optional
	ReturnData *bool `json:"returnData,omitempty" tf:"return_data,omitempty"`
}

func (*MetricQueryParameters) DeepCopy

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

func (*MetricQueryParameters) DeepCopyInto

func (in *MetricQueryParameters) DeepCopyInto(out *MetricQueryParameters)

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