Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=event.mongodbatlas.crossplane.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type AwsEventbridgeObservation
- type AwsEventbridgeParameters
- type EventProcessorsObservation
- type EventProcessorsParameters
- type Trigger
- func (in *Trigger) DeepCopy() *Trigger
- func (in *Trigger) DeepCopyInto(out *Trigger)
- func (in *Trigger) DeepCopyObject() runtime.Object
- func (mg *Trigger) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Trigger) GetConnectionDetailsMapping() map[string]string
- func (mg *Trigger) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Trigger) GetID() string
- func (mg *Trigger) GetManagementPolicy() xpv1.ManagementPolicy
- func (tr *Trigger) GetObservation() (map[string]any, error)
- func (tr *Trigger) GetParameters() (map[string]any, error)
- func (mg *Trigger) GetProviderConfigReference() *xpv1.Reference
- func (mg *Trigger) GetProviderReference() *xpv1.Reference
- func (mg *Trigger) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Trigger) GetTerraformResourceType() string
- func (tr *Trigger) GetTerraformSchemaVersion() int
- func (mg *Trigger) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Trigger) LateInitialize(attrs []byte) (bool, error)
- func (mg *Trigger) SetConditions(c ...xpv1.Condition)
- func (mg *Trigger) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Trigger) SetManagementPolicy(r xpv1.ManagementPolicy)
- func (tr *Trigger) SetObservation(obs map[string]any) error
- func (tr *Trigger) SetParameters(params map[string]any) error
- func (mg *Trigger) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Trigger) SetProviderReference(r *xpv1.Reference)
- func (mg *Trigger) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Trigger) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type TriggerList
- type TriggerObservation
- type TriggerParameters
- type TriggerSpec
- type TriggerStatus
Constants ¶
const ( CRDGroup = "event.mongodbatlas.crossplane.io" CRDVersion = "v1alpha1" )
Package type metadata.
Variables ¶
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 )
var ( Trigger_Kind = "Trigger" Trigger_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Trigger_Kind}.String() Trigger_KindAPIVersion = Trigger_Kind + "." + CRDGroupVersion.String() Trigger_GroupVersionKind = CRDGroupVersion.WithKind(Trigger_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type AwsEventbridgeObservation ¶
type AwsEventbridgeObservation struct { // AWS Account ID. ConfigAccountID *string `json:"configAccountId,omitempty" tf:"config_account_id,omitempty"` // Region of AWS Account. ConfigRegion *string `json:"configRegion,omitempty" tf:"config_region,omitempty"` }
func (*AwsEventbridgeObservation) DeepCopy ¶
func (in *AwsEventbridgeObservation) DeepCopy() *AwsEventbridgeObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsEventbridgeObservation.
func (*AwsEventbridgeObservation) DeepCopyInto ¶
func (in *AwsEventbridgeObservation) DeepCopyInto(out *AwsEventbridgeObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AwsEventbridgeParameters ¶
type AwsEventbridgeParameters struct { // AWS Account ID. // +kubebuilder:validation:Optional ConfigAccountID *string `json:"configAccountId,omitempty" tf:"config_account_id,omitempty"` // Region of AWS Account. // +kubebuilder:validation:Optional ConfigRegion *string `json:"configRegion,omitempty" tf:"config_region,omitempty"` }
func (*AwsEventbridgeParameters) DeepCopy ¶
func (in *AwsEventbridgeParameters) DeepCopy() *AwsEventbridgeParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsEventbridgeParameters.
func (*AwsEventbridgeParameters) DeepCopyInto ¶
func (in *AwsEventbridgeParameters) DeepCopyInto(out *AwsEventbridgeParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EventProcessorsObservation ¶
type EventProcessorsObservation struct {
AwsEventbridge []AwsEventbridgeObservation `json:"awsEventbridge,omitempty" tf:"aws_eventbridge,omitempty"`
}
func (*EventProcessorsObservation) DeepCopy ¶
func (in *EventProcessorsObservation) DeepCopy() *EventProcessorsObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventProcessorsObservation.
func (*EventProcessorsObservation) DeepCopyInto ¶
func (in *EventProcessorsObservation) DeepCopyInto(out *EventProcessorsObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EventProcessorsParameters ¶
type EventProcessorsParameters struct { // +kubebuilder:validation:Optional AwsEventbridge []AwsEventbridgeParameters `json:"awsEventbridge,omitempty" tf:"aws_eventbridge,omitempty"` }
func (*EventProcessorsParameters) DeepCopy ¶
func (in *EventProcessorsParameters) DeepCopy() *EventProcessorsParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventProcessorsParameters.
func (*EventProcessorsParameters) DeepCopyInto ¶
func (in *EventProcessorsParameters) DeepCopyInto(out *EventProcessorsParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Trigger ¶
type Trigger struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.appId)",message="appId is a required parameter" // +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.projectId)",message="projectId is a required parameter" // +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.type)",message="type is a required parameter" Spec TriggerSpec `json:"spec"` Status TriggerStatus `json:"status,omitempty"` }
Trigger is the Schema for the Triggers API. Provides a Event Trigger resource. +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,mongodbatlas}
func (*Trigger) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Trigger.
func (*Trigger) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Trigger) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Trigger) GetCondition ¶
func (mg *Trigger) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Trigger.
func (*Trigger) GetConnectionDetailsMapping ¶
GetConnectionDetailsMapping for this Trigger
func (*Trigger) GetDeletionPolicy ¶
func (mg *Trigger) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Trigger.
func (*Trigger) GetManagementPolicy ¶
func (mg *Trigger) GetManagementPolicy() xpv1.ManagementPolicy
GetManagementPolicy of this Trigger.
func (*Trigger) GetObservation ¶
GetObservation of this Trigger
func (*Trigger) GetParameters ¶
GetParameters of this Trigger
func (*Trigger) GetProviderConfigReference ¶
GetProviderConfigReference of this Trigger.
func (*Trigger) GetProviderReference ¶
GetProviderReference of this Trigger. Deprecated: Use GetProviderConfigReference.
func (*Trigger) GetPublishConnectionDetailsTo ¶
func (mg *Trigger) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Trigger.
func (*Trigger) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Trigger
func (*Trigger) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Trigger) GetWriteConnectionSecretToReference ¶
func (mg *Trigger) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Trigger.
func (*Trigger) LateInitialize ¶
LateInitialize this Trigger using its observed tfState. returns True if there are any spec changes for the resource.
func (*Trigger) SetConditions ¶
SetConditions of this Trigger.
func (*Trigger) SetDeletionPolicy ¶
func (mg *Trigger) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Trigger.
func (*Trigger) SetManagementPolicy ¶
func (mg *Trigger) SetManagementPolicy(r xpv1.ManagementPolicy)
SetManagementPolicy of this Trigger.
func (*Trigger) SetObservation ¶
SetObservation for this Trigger
func (*Trigger) SetParameters ¶
SetParameters for this Trigger
func (*Trigger) SetProviderConfigReference ¶
SetProviderConfigReference of this Trigger.
func (*Trigger) SetProviderReference ¶
SetProviderReference of this Trigger. Deprecated: Use SetProviderConfigReference.
func (*Trigger) SetPublishConnectionDetailsTo ¶
func (mg *Trigger) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Trigger.
func (*Trigger) SetWriteConnectionSecretToReference ¶
func (mg *Trigger) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Trigger.
type TriggerList ¶
type TriggerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Trigger `json:"items"` }
TriggerList contains a list of Triggers
func (*TriggerList) DeepCopy ¶
func (in *TriggerList) DeepCopy() *TriggerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerList.
func (*TriggerList) DeepCopyInto ¶
func (in *TriggerList) DeepCopyInto(out *TriggerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TriggerList) DeepCopyObject ¶
func (in *TriggerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*TriggerList) GetItems ¶
func (l *TriggerList) GetItems() []resource.Managed
GetItems of this TriggerList.
type TriggerObservation ¶
type TriggerObservation struct { // The ObjectID of your application. AppID *string `json:"appId,omitempty" tf:"app_id,omitempty"` // Required for DATABASE type. The name of the MongoDB collection that the trigger watches for change events. The collection must be part of the specified database. ConfigCollection *string `json:"configCollection,omitempty" tf:"config_collection,omitempty"` // Required for DATABASE type. The name of the MongoDB database that contains the watched collection. ConfigDatabase *string `json:"configDatabase,omitempty" tf:"config_database,omitempty"` // Optional for DATABASE type. If true, indicates that UPDATE change events should include the most current majority-committed version of the modified document in the fullDocument field. ConfigFullDocument *bool `json:"configFullDocument,omitempty" tf:"config_full_document,omitempty"` ConfigFullDocumentBefore *bool `json:"configFullDocumentBefore,omitempty" tf:"config_full_document_before,omitempty"` // Optional for DATABASE type. A $match expression document that MongoDB Realm includes in the underlying change stream pipeline for the trigger. This is useful when you want to filter change events beyond their operation type. The trigger will only fire if the expression evaluates to true for a given change event. ConfigMatch *string `json:"configMatch,omitempty" tf:"config_match,omitempty"` // Required for AUTHENTICATION type. The authentication operation type to listen for. Possible Values: LOGIN, CREATE, DELETE ConfigOperationType *string `json:"configOperationType,omitempty" tf:"config_operation_type,omitempty"` // Required for DATABASE type. The database event operation types to listen for. This must contain at least one value. Possible Values: INSERT, UPDATE, REPLACE, DELETE ConfigOperationTypes []*string `json:"configOperationTypes,omitempty" tf:"config_operation_types,omitempty"` // Optional for DATABASE type. A $project expression document that Realm uses to filter the fields that appear in change event objects. ConfigProject *string `json:"configProject,omitempty" tf:"config_project,omitempty"` // Required for AUTHENTICATION type. A list of one or more authentication provider id values. The trigger will only listen for authentication events produced by these providers. ConfigProviders []*string `json:"configProviders,omitempty" tf:"config_providers,omitempty"` // Required for SCHEDULED type. A cron expression that defines the trigger schedule. ConfigSchedule *string `json:"configSchedule,omitempty" tf:"config_schedule,omitempty"` // The type of the trigger. Possible Values: DATABASE, AUTHENTICATION,SCHEDULED ConfigScheduleType *string `json:"configScheduleType,omitempty" tf:"config_schedule_type,omitempty"` // Required for DATABASE type. The ID of the MongoDB Service associated with the trigger. ConfigServiceID *string `json:"configServiceId,omitempty" tf:"config_service_id,omitempty"` // Default: false If true, the trigger is disabled. Disabled *bool `json:"disabled,omitempty" tf:"disabled,omitempty"` // An object where each field name is an event processor ID and each value is an object that configures its corresponding event processor. The following event processors are supported: AWS_EVENTBRIDGE For an example configuration object, see Send Trigger Events to AWS EventBridge. EventProcessors []EventProcessorsObservation `json:"eventProcessors,omitempty" tf:"event_processors,omitempty"` // The ID of the function associated with the trigger. FunctionID *string `json:"functionId,omitempty" tf:"function_id,omitempty"` // The name of the function associated with the trigger. FunctionName *string `json:"functionName,omitempty" tf:"function_name,omitempty"` ID *string `json:"id,omitempty" tf:"id,omitempty"` // The unique ID for the project to create the trigger. ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"` // The unique ID of the trigger. TriggerID *string `json:"triggerId,omitempty" tf:"trigger_id,omitempty"` // The type of the trigger. Possible Values: DATABASE, AUTHENTICATION,SCHEDULED Type *string `json:"type,omitempty" tf:"type,omitempty"` // Only Available for Database Triggers. If true, event ordering is disabled and this trigger can process events in parallel. If false, event ordering is enabled and the trigger executes serially. Unordered *bool `json:"unordered,omitempty" tf:"unordered,omitempty"` }
func (*TriggerObservation) DeepCopy ¶
func (in *TriggerObservation) DeepCopy() *TriggerObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerObservation.
func (*TriggerObservation) DeepCopyInto ¶
func (in *TriggerObservation) DeepCopyInto(out *TriggerObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TriggerParameters ¶
type TriggerParameters struct { // The ObjectID of your application. // +kubebuilder:validation:Optional AppID *string `json:"appId,omitempty" tf:"app_id,omitempty"` // Required for DATABASE type. The name of the MongoDB collection that the trigger watches for change events. The collection must be part of the specified database. // +kubebuilder:validation:Optional ConfigCollection *string `json:"configCollection,omitempty" tf:"config_collection,omitempty"` // Required for DATABASE type. The name of the MongoDB database that contains the watched collection. // +kubebuilder:validation:Optional ConfigDatabase *string `json:"configDatabase,omitempty" tf:"config_database,omitempty"` // Optional for DATABASE type. If true, indicates that UPDATE change events should include the most current majority-committed version of the modified document in the fullDocument field. // +kubebuilder:validation:Optional ConfigFullDocument *bool `json:"configFullDocument,omitempty" tf:"config_full_document,omitempty"` // +kubebuilder:validation:Optional ConfigFullDocumentBefore *bool `json:"configFullDocumentBefore,omitempty" tf:"config_full_document_before,omitempty"` // Optional for DATABASE type. A $match expression document that MongoDB Realm includes in the underlying change stream pipeline for the trigger. This is useful when you want to filter change events beyond their operation type. The trigger will only fire if the expression evaluates to true for a given change event. // +kubebuilder:validation:Optional ConfigMatch *string `json:"configMatch,omitempty" tf:"config_match,omitempty"` // Required for AUTHENTICATION type. The authentication operation type to listen for. Possible Values: LOGIN, CREATE, DELETE // +kubebuilder:validation:Optional ConfigOperationType *string `json:"configOperationType,omitempty" tf:"config_operation_type,omitempty"` // Required for DATABASE type. The database event operation types to listen for. This must contain at least one value. Possible Values: INSERT, UPDATE, REPLACE, DELETE // +kubebuilder:validation:Optional ConfigOperationTypes []*string `json:"configOperationTypes,omitempty" tf:"config_operation_types,omitempty"` // Optional for DATABASE type. A $project expression document that Realm uses to filter the fields that appear in change event objects. // +kubebuilder:validation:Optional ConfigProject *string `json:"configProject,omitempty" tf:"config_project,omitempty"` // Required for AUTHENTICATION type. A list of one or more authentication provider id values. The trigger will only listen for authentication events produced by these providers. // +kubebuilder:validation:Optional ConfigProviders []*string `json:"configProviders,omitempty" tf:"config_providers,omitempty"` // Required for SCHEDULED type. A cron expression that defines the trigger schedule. // +kubebuilder:validation:Optional ConfigSchedule *string `json:"configSchedule,omitempty" tf:"config_schedule,omitempty"` // Required for DATABASE type. The ID of the MongoDB Service associated with the trigger. // +kubebuilder:validation:Optional ConfigServiceID *string `json:"configServiceId,omitempty" tf:"config_service_id,omitempty"` // Default: false If true, the trigger is disabled. // +kubebuilder:validation:Optional Disabled *bool `json:"disabled,omitempty" tf:"disabled,omitempty"` // An object where each field name is an event processor ID and each value is an object that configures its corresponding event processor. The following event processors are supported: AWS_EVENTBRIDGE For an example configuration object, see Send Trigger Events to AWS EventBridge. // +kubebuilder:validation:Optional EventProcessors []EventProcessorsParameters `json:"eventProcessors,omitempty" tf:"event_processors,omitempty"` // The ID of the function associated with the trigger. // +kubebuilder:validation:Optional FunctionID *string `json:"functionId,omitempty" tf:"function_id,omitempty"` // The unique ID for the project to create the trigger. // +kubebuilder:validation:Optional ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"` // The type of the trigger. Possible Values: DATABASE, AUTHENTICATION,SCHEDULED // +kubebuilder:validation:Optional Type *string `json:"type,omitempty" tf:"type,omitempty"` // Only Available for Database Triggers. If true, event ordering is disabled and this trigger can process events in parallel. If false, event ordering is enabled and the trigger executes serially. // +kubebuilder:validation:Optional Unordered *bool `json:"unordered,omitempty" tf:"unordered,omitempty"` }
func (*TriggerParameters) DeepCopy ¶
func (in *TriggerParameters) DeepCopy() *TriggerParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerParameters.
func (*TriggerParameters) DeepCopyInto ¶
func (in *TriggerParameters) DeepCopyInto(out *TriggerParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TriggerSpec ¶
type TriggerSpec struct { v1.ResourceSpec `json:",inline"` ForProvider TriggerParameters `json:"forProvider"` }
TriggerSpec defines the desired state of Trigger
func (*TriggerSpec) DeepCopy ¶
func (in *TriggerSpec) DeepCopy() *TriggerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerSpec.
func (*TriggerSpec) DeepCopyInto ¶
func (in *TriggerSpec) DeepCopyInto(out *TriggerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TriggerStatus ¶
type TriggerStatus struct { v1.ResourceStatus `json:",inline"` AtProvider TriggerObservation `json:"atProvider,omitempty"` }
TriggerStatus defines the observed state of Trigger.
func (*TriggerStatus) DeepCopy ¶
func (in *TriggerStatus) DeepCopy() *TriggerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerStatus.
func (*TriggerStatus) DeepCopyInto ¶
func (in *TriggerStatus) DeepCopyInto(out *TriggerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.