v1beta1

package
v0.0.0-...-274ce61 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

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

Index

Constants

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

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 (
	LifecyclePolicy_Kind             = "LifecyclePolicy"
	LifecyclePolicy_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: LifecyclePolicy_Kind}.String()
	LifecyclePolicy_KindAPIVersion   = LifecyclePolicy_Kind + "." + CRDGroupVersion.String()
	LifecyclePolicy_GroupVersionKind = CRDGroupVersion.WithKind(LifecyclePolicy_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type ActionObservation

type ActionObservation struct {

	// The rule for copying shared snapshots across Regions. See the cross_region_copy configuration block.
	CrossRegionCopy []CrossRegionCopyObservation `json:"crossRegionCopy,omitempty" tf:"cross_region_copy,omitempty"`

	// A descriptive name for the action.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`
}

func (*ActionObservation) DeepCopy

func (in *ActionObservation) DeepCopy() *ActionObservation

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

func (*ActionObservation) DeepCopyInto

func (in *ActionObservation) DeepCopyInto(out *ActionObservation)

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

type ActionParameters

type ActionParameters struct {

	// The rule for copying shared snapshots across Regions. See the cross_region_copy configuration block.
	// +kubebuilder:validation:Required
	CrossRegionCopy []CrossRegionCopyParameters `json:"crossRegionCopy" tf:"cross_region_copy,omitempty"`

	// A descriptive name for the action.
	// +kubebuilder:validation:Required
	Name *string `json:"name" tf:"name,omitempty"`
}

func (*ActionParameters) DeepCopy

func (in *ActionParameters) DeepCopy() *ActionParameters

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

func (*ActionParameters) DeepCopyInto

func (in *ActionParameters) DeepCopyInto(out *ActionParameters)

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

type CreateRuleObservation

type CreateRuleObservation struct {

	// The schedule, as a Cron expression. The schedule interval must be between 1 hour and 1 year.
	CronExpression *string `json:"cronExpression,omitempty" tf:"cron_expression,omitempty"`

	// How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
	Interval *float64 `json:"interval,omitempty" tf:"interval,omitempty"`

	// The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
	IntervalUnit *string `json:"intervalUnit,omitempty" tf:"interval_unit,omitempty"`

	// Specifies the destination for snapshots created by the policy. To create snapshots in the same Region as the source resource, specify CLOUD. To create snapshots on the same Outpost as the source resource, specify OUTPOST_LOCAL. If you omit this parameter, CLOUD is used by default. If the policy targets resources in an AWS Region, then you must create snapshots in the same Region as the source resource. If the policy targets resources on an Outpost, then you can create snapshots on the same Outpost as the source resource, or in the Region of that Outpost. Valid values are CLOUD and OUTPOST_LOCAL.
	Location *string `json:"location,omitempty" tf:"location,omitempty"`

	// A list of times in 24 hour clock format that sets when the lifecycle policy should be evaluated. Max of 1.
	Times []*string `json:"times,omitempty" tf:"times,omitempty"`
}

func (*CreateRuleObservation) DeepCopy

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

func (*CreateRuleObservation) DeepCopyInto

func (in *CreateRuleObservation) DeepCopyInto(out *CreateRuleObservation)

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

type CreateRuleParameters

type CreateRuleParameters struct {

	// The schedule, as a Cron expression. The schedule interval must be between 1 hour and 1 year.
	// +kubebuilder:validation:Optional
	CronExpression *string `json:"cronExpression,omitempty" tf:"cron_expression,omitempty"`

	// How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
	// +kubebuilder:validation:Optional
	Interval *float64 `json:"interval,omitempty" tf:"interval,omitempty"`

	// The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
	// +kubebuilder:validation:Optional
	IntervalUnit *string `json:"intervalUnit,omitempty" tf:"interval_unit,omitempty"`

	// Specifies the destination for snapshots created by the policy. To create snapshots in the same Region as the source resource, specify CLOUD. To create snapshots on the same Outpost as the source resource, specify OUTPOST_LOCAL. If you omit this parameter, CLOUD is used by default. If the policy targets resources in an AWS Region, then you must create snapshots in the same Region as the source resource. If the policy targets resources on an Outpost, then you can create snapshots on the same Outpost as the source resource, or in the Region of that Outpost. Valid values are CLOUD and OUTPOST_LOCAL.
	// +kubebuilder:validation:Optional
	Location *string `json:"location,omitempty" tf:"location,omitempty"`

	// A list of times in 24 hour clock format that sets when the lifecycle policy should be evaluated. Max of 1.
	// +kubebuilder:validation:Optional
	Times []*string `json:"times,omitempty" tf:"times,omitempty"`
}

func (*CreateRuleParameters) DeepCopy

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

func (*CreateRuleParameters) DeepCopyInto

func (in *CreateRuleParameters) DeepCopyInto(out *CreateRuleParameters)

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

type CrossRegionCopyObservation

type CrossRegionCopyObservation struct {

	// The encryption settings for the copied snapshot. See the encryption_configuration block. Max of 1 per action.
	EncryptionConfiguration []EncryptionConfigurationObservation `json:"encryptionConfiguration,omitempty" tf:"encryption_configuration,omitempty"`

	// Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action.
	RetainRule []RetainRuleObservation `json:"retainRule,omitempty" tf:"retain_rule,omitempty"`

	// The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
	Target *string `json:"target,omitempty" tf:"target,omitempty"`
}

func (*CrossRegionCopyObservation) DeepCopy

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

func (*CrossRegionCopyObservation) DeepCopyInto

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

type CrossRegionCopyParameters

type CrossRegionCopyParameters struct {

	// The encryption settings for the copied snapshot. See the encryption_configuration block. Max of 1 per action.
	// +kubebuilder:validation:Required
	EncryptionConfiguration []EncryptionConfigurationParameters `json:"encryptionConfiguration" tf:"encryption_configuration,omitempty"`

	// Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action.
	// +kubebuilder:validation:Optional
	RetainRule []RetainRuleParameters `json:"retainRule,omitempty" tf:"retain_rule,omitempty"`

	// The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
	// +kubebuilder:validation:Required
	Target *string `json:"target" tf:"target,omitempty"`
}

func (*CrossRegionCopyParameters) DeepCopy

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

func (*CrossRegionCopyParameters) DeepCopyInto

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

type CrossRegionCopyRuleObservation

type CrossRegionCopyRuleObservation struct {

	// The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used.
	CmkArn *string `json:"cmkArn,omitempty" tf:"cmk_arn,omitempty"`

	// Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
	CopyTags *bool `json:"copyTags,omitempty" tf:"copy_tags,omitempty"`

	// See the deprecate_rule block. Max of 1 per schedule.
	DeprecateRule []DeprecateRuleObservation `json:"deprecateRule,omitempty" tf:"deprecate_rule,omitempty"`

	// To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled.
	Encrypted *bool `json:"encrypted,omitempty" tf:"encrypted,omitempty"`

	// Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action.
	RetainRule []CrossRegionCopyRuleRetainRuleObservation `json:"retainRule,omitempty" tf:"retain_rule,omitempty"`

	// The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
	Target *string `json:"target,omitempty" tf:"target,omitempty"`
}

func (*CrossRegionCopyRuleObservation) DeepCopy

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

func (*CrossRegionCopyRuleObservation) DeepCopyInto

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

type CrossRegionCopyRuleParameters

type CrossRegionCopyRuleParameters struct {

	// The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used.
	// +crossplane:generate:reference:type=github.com/spirosco/upbound-provider-aws/apis/kms/v1beta1.Key
	// +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractParamPath("arn",true)
	// +kubebuilder:validation:Optional
	CmkArn *string `json:"cmkArn,omitempty" tf:"cmk_arn,omitempty"`

	// Reference to a Key in kms to populate cmkArn.
	// +kubebuilder:validation:Optional
	CmkArnRef *v1.Reference `json:"cmkArnRef,omitempty" tf:"-"`

	// Selector for a Key in kms to populate cmkArn.
	// +kubebuilder:validation:Optional
	CmkArnSelector *v1.Selector `json:"cmkArnSelector,omitempty" tf:"-"`

	// Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
	// +kubebuilder:validation:Optional
	CopyTags *bool `json:"copyTags,omitempty" tf:"copy_tags,omitempty"`

	// See the deprecate_rule block. Max of 1 per schedule.
	// +kubebuilder:validation:Optional
	DeprecateRule []DeprecateRuleParameters `json:"deprecateRule,omitempty" tf:"deprecate_rule,omitempty"`

	// To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled.
	// +kubebuilder:validation:Required
	Encrypted *bool `json:"encrypted" tf:"encrypted,omitempty"`

	// Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action.
	// +kubebuilder:validation:Optional
	RetainRule []CrossRegionCopyRuleRetainRuleParameters `json:"retainRule,omitempty" tf:"retain_rule,omitempty"`

	// The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
	// +kubebuilder:validation:Required
	Target *string `json:"target" tf:"target,omitempty"`
}

func (*CrossRegionCopyRuleParameters) DeepCopy

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

func (*CrossRegionCopyRuleParameters) DeepCopyInto

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

type CrossRegionCopyRuleRetainRuleObservation

type CrossRegionCopyRuleRetainRuleObservation struct {

	// How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
	Interval *float64 `json:"interval,omitempty" tf:"interval,omitempty"`

	// The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
	IntervalUnit *string `json:"intervalUnit,omitempty" tf:"interval_unit,omitempty"`
}

func (*CrossRegionCopyRuleRetainRuleObservation) DeepCopy

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

func (*CrossRegionCopyRuleRetainRuleObservation) DeepCopyInto

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

type CrossRegionCopyRuleRetainRuleParameters

type CrossRegionCopyRuleRetainRuleParameters struct {

	// How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
	// +kubebuilder:validation:Required
	Interval *float64 `json:"interval" tf:"interval,omitempty"`

	// The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
	// +kubebuilder:validation:Required
	IntervalUnit *string `json:"intervalUnit" tf:"interval_unit,omitempty"`
}

func (*CrossRegionCopyRuleRetainRuleParameters) DeepCopy

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

func (*CrossRegionCopyRuleRetainRuleParameters) DeepCopyInto

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

type DeprecateRuleObservation

type DeprecateRuleObservation struct {

	// How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
	Interval *float64 `json:"interval,omitempty" tf:"interval,omitempty"`

	// The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
	IntervalUnit *string `json:"intervalUnit,omitempty" tf:"interval_unit,omitempty"`
}

func (*DeprecateRuleObservation) DeepCopy

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

func (*DeprecateRuleObservation) DeepCopyInto

func (in *DeprecateRuleObservation) DeepCopyInto(out *DeprecateRuleObservation)

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

type DeprecateRuleParameters

type DeprecateRuleParameters struct {

	// How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
	// +kubebuilder:validation:Required
	Interval *float64 `json:"interval" tf:"interval,omitempty"`

	// The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
	// +kubebuilder:validation:Required
	IntervalUnit *string `json:"intervalUnit" tf:"interval_unit,omitempty"`
}

func (*DeprecateRuleParameters) DeepCopy

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

func (*DeprecateRuleParameters) DeepCopyInto

func (in *DeprecateRuleParameters) DeepCopyInto(out *DeprecateRuleParameters)

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

type EncryptionConfigurationObservation

type EncryptionConfigurationObservation struct {

	// The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used.
	CmkArn *string `json:"cmkArn,omitempty" tf:"cmk_arn,omitempty"`

	// To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled.
	Encrypted *bool `json:"encrypted,omitempty" tf:"encrypted,omitempty"`
}

func (*EncryptionConfigurationObservation) DeepCopy

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

func (*EncryptionConfigurationObservation) DeepCopyInto

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

type EncryptionConfigurationParameters

type EncryptionConfigurationParameters struct {

	// The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used.
	// +kubebuilder:validation:Optional
	CmkArn *string `json:"cmkArn,omitempty" tf:"cmk_arn,omitempty"`

	// To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled.
	// +kubebuilder:validation:Optional
	Encrypted *bool `json:"encrypted,omitempty" tf:"encrypted,omitempty"`
}

func (*EncryptionConfigurationParameters) DeepCopy

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

func (*EncryptionConfigurationParameters) DeepCopyInto

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

type EventSourceObservation

type EventSourceObservation struct {

	// A set of optional parameters for snapshot and AMI lifecycle policies. See the parameters configuration block.
	Parameters []ParametersObservation `json:"parameters,omitempty" tf:"parameters,omitempty"`

	// The source of the event. Currently only managed CloudWatch Events rules are supported. Valid values are MANAGED_CWE.
	Type *string `json:"type,omitempty" tf:"type,omitempty"`
}

func (*EventSourceObservation) DeepCopy

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

func (*EventSourceObservation) DeepCopyInto

func (in *EventSourceObservation) DeepCopyInto(out *EventSourceObservation)

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

type EventSourceParameters

type EventSourceParameters struct {

	// A set of optional parameters for snapshot and AMI lifecycle policies. See the parameters configuration block.
	// +kubebuilder:validation:Required
	Parameters []ParametersParameters `json:"parameters" tf:"parameters,omitempty"`

	// The source of the event. Currently only managed CloudWatch Events rules are supported. Valid values are MANAGED_CWE.
	// +kubebuilder:validation:Required
	Type *string `json:"type" tf:"type,omitempty"`
}

func (*EventSourceParameters) DeepCopy

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

func (*EventSourceParameters) DeepCopyInto

func (in *EventSourceParameters) DeepCopyInto(out *EventSourceParameters)

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

type FastRestoreRuleObservation

type FastRestoreRuleObservation struct {

	// The Availability Zones in which to enable fast snapshot restore.
	AvailabilityZones []*string `json:"availabilityZones,omitempty" tf:"availability_zones,omitempty"`

	// Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000.
	Count *float64 `json:"count,omitempty" tf:"count,omitempty"`

	// How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
	Interval *float64 `json:"interval,omitempty" tf:"interval,omitempty"`

	// The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
	IntervalUnit *string `json:"intervalUnit,omitempty" tf:"interval_unit,omitempty"`
}

func (*FastRestoreRuleObservation) DeepCopy

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

func (*FastRestoreRuleObservation) DeepCopyInto

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

type FastRestoreRuleParameters

type FastRestoreRuleParameters struct {

	// The Availability Zones in which to enable fast snapshot restore.
	// +kubebuilder:validation:Required
	AvailabilityZones []*string `json:"availabilityZones" tf:"availability_zones,omitempty"`

	// Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000.
	// +kubebuilder:validation:Optional
	Count *float64 `json:"count,omitempty" tf:"count,omitempty"`

	// How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
	// +kubebuilder:validation:Optional
	Interval *float64 `json:"interval,omitempty" tf:"interval,omitempty"`

	// The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
	// +kubebuilder:validation:Optional
	IntervalUnit *string `json:"intervalUnit,omitempty" tf:"interval_unit,omitempty"`
}

func (*FastRestoreRuleParameters) DeepCopy

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

func (*FastRestoreRuleParameters) DeepCopyInto

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

type LifecyclePolicy

type LifecyclePolicy struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.description)",message="description is a required parameter"
	// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.policyDetails)",message="policyDetails is a required parameter"
	Spec   LifecyclePolicySpec   `json:"spec"`
	Status LifecyclePolicyStatus `json:"status,omitempty"`
}

LifecyclePolicy is the Schema for the LifecyclePolicys API. Provides a Data Lifecycle Manager (DLM) lifecycle policy for managing snapshots. +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,aws}

func (*LifecyclePolicy) DeepCopy

func (in *LifecyclePolicy) DeepCopy() *LifecyclePolicy

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

func (*LifecyclePolicy) DeepCopyInto

func (in *LifecyclePolicy) DeepCopyInto(out *LifecyclePolicy)

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

func (*LifecyclePolicy) DeepCopyObject

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

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

func (*LifecyclePolicy) GetCondition

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

GetCondition of this LifecyclePolicy.

func (*LifecyclePolicy) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this LifecyclePolicy

func (*LifecyclePolicy) GetDeletionPolicy

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

GetDeletionPolicy of this LifecyclePolicy.

func (*LifecyclePolicy) GetID

func (tr *LifecyclePolicy) GetID() string

GetID returns ID of underlying Terraform resource of this LifecyclePolicy

func (*LifecyclePolicy) GetManagementPolicy

func (mg *LifecyclePolicy) GetManagementPolicy() xpv1.ManagementPolicy

GetManagementPolicy of this LifecyclePolicy.

func (*LifecyclePolicy) GetObservation

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

GetObservation of this LifecyclePolicy

func (*LifecyclePolicy) GetParameters

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

GetParameters of this LifecyclePolicy

func (*LifecyclePolicy) GetProviderConfigReference

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

GetProviderConfigReference of this LifecyclePolicy.

func (*LifecyclePolicy) GetProviderReference

func (mg *LifecyclePolicy) GetProviderReference() *xpv1.Reference

GetProviderReference of this LifecyclePolicy. Deprecated: Use GetProviderConfigReference.

func (*LifecyclePolicy) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this LifecyclePolicy.

func (*LifecyclePolicy) GetTerraformResourceType

func (mg *LifecyclePolicy) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this LifecyclePolicy

func (*LifecyclePolicy) GetTerraformSchemaVersion

func (tr *LifecyclePolicy) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*LifecyclePolicy) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this LifecyclePolicy.

func (*LifecyclePolicy) LateInitialize

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

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

func (*LifecyclePolicy) ResolveReferences

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

ResolveReferences of this LifecyclePolicy.

func (*LifecyclePolicy) SetConditions

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

SetConditions of this LifecyclePolicy.

func (*LifecyclePolicy) SetDeletionPolicy

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

SetDeletionPolicy of this LifecyclePolicy.

func (*LifecyclePolicy) SetManagementPolicy

func (mg *LifecyclePolicy) SetManagementPolicy(r xpv1.ManagementPolicy)

SetManagementPolicy of this LifecyclePolicy.

func (*LifecyclePolicy) SetObservation

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

SetObservation for this LifecyclePolicy

func (*LifecyclePolicy) SetParameters

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

SetParameters for this LifecyclePolicy

func (*LifecyclePolicy) SetProviderConfigReference

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

SetProviderConfigReference of this LifecyclePolicy.

func (*LifecyclePolicy) SetProviderReference

func (mg *LifecyclePolicy) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this LifecyclePolicy. Deprecated: Use SetProviderConfigReference.

func (*LifecyclePolicy) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this LifecyclePolicy.

func (*LifecyclePolicy) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this LifecyclePolicy.

type LifecyclePolicyList

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

LifecyclePolicyList contains a list of LifecyclePolicys

func (*LifecyclePolicyList) DeepCopy

func (in *LifecyclePolicyList) DeepCopy() *LifecyclePolicyList

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

func (*LifecyclePolicyList) DeepCopyInto

func (in *LifecyclePolicyList) DeepCopyInto(out *LifecyclePolicyList)

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

func (*LifecyclePolicyList) DeepCopyObject

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

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

func (*LifecyclePolicyList) GetItems

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

GetItems of this LifecyclePolicyList.

type LifecyclePolicyObservation

type LifecyclePolicyObservation struct {

	// Amazon Resource Name (ARN) of the DLM Lifecycle Policy.
	Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`

	// A description for the DLM lifecycle policy.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// The ARN of an IAM role that is able to be assumed by the DLM service.
	ExecutionRoleArn *string `json:"executionRoleArn,omitempty" tf:"execution_role_arn,omitempty"`

	// Identifier of the DLM Lifecycle Policy.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// See the policy_details configuration block. Max of 1.
	PolicyDetails []PolicyDetailsObservation `json:"policyDetails,omitempty" tf:"policy_details,omitempty"`

	// Whether the lifecycle policy should be enabled or disabled. ENABLED or DISABLED are valid values. Defaults to ENABLED.
	State *string `json:"state,omitempty" tf:"state,omitempty"`

	// Key-value map of resource tags.
	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.
	TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"`
}

func (*LifecyclePolicyObservation) DeepCopy

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

func (*LifecyclePolicyObservation) DeepCopyInto

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

type LifecyclePolicyParameters

type LifecyclePolicyParameters struct {

	// A description for the DLM lifecycle policy.
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// The ARN of an IAM role that is able to be assumed by the DLM service.
	// +crossplane:generate:reference:type=github.com/spirosco/upbound-provider-aws/apis/iam/v1beta1.Role
	// +crossplane:generate:reference:extractor=github.com/spirosco/upbound-provider-aws/config/common.ARNExtractor()
	// +kubebuilder:validation:Optional
	ExecutionRoleArn *string `json:"executionRoleArn,omitempty" tf:"execution_role_arn,omitempty"`

	// Reference to a Role in iam to populate executionRoleArn.
	// +kubebuilder:validation:Optional
	ExecutionRoleArnRef *v1.Reference `json:"executionRoleArnRef,omitempty" tf:"-"`

	// Selector for a Role in iam to populate executionRoleArn.
	// +kubebuilder:validation:Optional
	ExecutionRoleArnSelector *v1.Selector `json:"executionRoleArnSelector,omitempty" tf:"-"`

	// See the policy_details configuration block. Max of 1.
	// +kubebuilder:validation:Optional
	PolicyDetails []PolicyDetailsParameters `json:"policyDetails,omitempty" tf:"policy_details,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:"-"`

	// Whether the lifecycle policy should be enabled or disabled. ENABLED or DISABLED are valid values. Defaults to ENABLED.
	// +kubebuilder:validation:Optional
	State *string `json:"state,omitempty" tf:"state,omitempty"`

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

func (*LifecyclePolicyParameters) DeepCopy

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

func (*LifecyclePolicyParameters) DeepCopyInto

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

type LifecyclePolicySpec

type LifecyclePolicySpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     LifecyclePolicyParameters `json:"forProvider"`
}

LifecyclePolicySpec defines the desired state of LifecyclePolicy

func (*LifecyclePolicySpec) DeepCopy

func (in *LifecyclePolicySpec) DeepCopy() *LifecyclePolicySpec

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

func (*LifecyclePolicySpec) DeepCopyInto

func (in *LifecyclePolicySpec) DeepCopyInto(out *LifecyclePolicySpec)

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

type LifecyclePolicyStatus

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

LifecyclePolicyStatus defines the observed state of LifecyclePolicy.

func (*LifecyclePolicyStatus) DeepCopy

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

func (*LifecyclePolicyStatus) DeepCopyInto

func (in *LifecyclePolicyStatus) DeepCopyInto(out *LifecyclePolicyStatus)

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

type ParametersObservation

type ParametersObservation struct {

	// The snapshot description that can trigger the policy. The description pattern is specified using a regular expression. The policy runs only if a snapshot with a description that matches the specified pattern is shared with your account.
	DescriptionRegex *string `json:"descriptionRegex,omitempty" tf:"description_regex,omitempty"`

	// The type of event. Currently, only shareSnapshot events are supported.
	EventType *string `json:"eventType,omitempty" tf:"event_type,omitempty"`

	// The IDs of the AWS accounts that can trigger policy by sharing snapshots with your account. The policy only runs if one of the specified AWS accounts shares a snapshot with your account.
	SnapshotOwner []*string `json:"snapshotOwner,omitempty" tf:"snapshot_owner,omitempty"`
}

func (*ParametersObservation) DeepCopy

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

func (*ParametersObservation) DeepCopyInto

func (in *ParametersObservation) DeepCopyInto(out *ParametersObservation)

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

type ParametersParameters

type ParametersParameters struct {

	// The snapshot description that can trigger the policy. The description pattern is specified using a regular expression. The policy runs only if a snapshot with a description that matches the specified pattern is shared with your account.
	// +kubebuilder:validation:Required
	DescriptionRegex *string `json:"descriptionRegex" tf:"description_regex,omitempty"`

	// The type of event. Currently, only shareSnapshot events are supported.
	// +kubebuilder:validation:Required
	EventType *string `json:"eventType" tf:"event_type,omitempty"`

	// The IDs of the AWS accounts that can trigger policy by sharing snapshots with your account. The policy only runs if one of the specified AWS accounts shares a snapshot with your account.
	// +kubebuilder:validation:Required
	SnapshotOwner []*string `json:"snapshotOwner" tf:"snapshot_owner,omitempty"`
}

func (*ParametersParameters) DeepCopy

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

func (*ParametersParameters) DeepCopyInto

func (in *ParametersParameters) DeepCopyInto(out *ParametersParameters)

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

type PolicyDetailsObservation

type PolicyDetailsObservation struct {

	// The actions to be performed when the event-based policy is triggered. You can specify only one action per policy. This parameter is required for event-based policies only. If you are creating a snapshot or AMI policy, omit this parameter. See the action configuration block.
	Action []ActionObservation `json:"action,omitempty" tf:"action,omitempty"`

	// The event that triggers the event-based policy. This parameter is required for event-based policies only. If you are creating a snapshot or AMI policy, omit this parameter. See the event_source configuration block.
	EventSource []EventSourceObservation `json:"eventSource,omitempty" tf:"event_source,omitempty"`

	// A set of optional parameters for snapshot and AMI lifecycle policies. See the parameters configuration block.
	Parameters []PolicyDetailsParametersObservation `json:"parameters,omitempty" tf:"parameters,omitempty"`

	// The valid target resource types and actions a policy can manage. Specify EBS_SNAPSHOT_MANAGEMENT to create a lifecycle policy that manages the lifecycle of Amazon EBS snapshots. Specify IMAGE_MANAGEMENT to create a lifecycle policy that manages the lifecycle of EBS-backed AMIs. Specify EVENT_BASED_POLICY to create an event-based policy that performs specific actions when a defined event occurs in your AWS account. Default value is EBS_SNAPSHOT_MANAGEMENT.
	PolicyType *string `json:"policyType,omitempty" tf:"policy_type,omitempty"`

	// The location of the resources to backup. If the source resources are located in an AWS Region, specify CLOUD. If the source resources are located on an Outpost in your account, specify OUTPOST. If you specify OUTPOST, Amazon Data Lifecycle Manager backs up all resources of the specified type with matching target tags across all of the Outposts in your account. Valid values are CLOUD and OUTPOST.
	ResourceLocations []*string `json:"resourceLocations,omitempty" tf:"resource_locations,omitempty"`

	// A list of resource types that should be targeted by the lifecycle policy. Valid values are VOLUME and INSTANCE.
	ResourceTypes []*string `json:"resourceTypes,omitempty" tf:"resource_types,omitempty"`

	// See the schedule configuration block.
	Schedule []ScheduleObservation `json:"schedule,omitempty" tf:"schedule,omitempty"`

	// A map of tag keys and their values. Any resources that match the resource_types and are tagged with any of these tags will be targeted.
	TargetTags map[string]*string `json:"targetTags,omitempty" tf:"target_tags,omitempty"`
}

func (*PolicyDetailsObservation) DeepCopy

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

func (*PolicyDetailsObservation) DeepCopyInto

func (in *PolicyDetailsObservation) DeepCopyInto(out *PolicyDetailsObservation)

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

type PolicyDetailsParameters

type PolicyDetailsParameters struct {

	// The actions to be performed when the event-based policy is triggered. You can specify only one action per policy. This parameter is required for event-based policies only. If you are creating a snapshot or AMI policy, omit this parameter. See the action configuration block.
	// +kubebuilder:validation:Optional
	Action []ActionParameters `json:"action,omitempty" tf:"action,omitempty"`

	// The event that triggers the event-based policy. This parameter is required for event-based policies only. If you are creating a snapshot or AMI policy, omit this parameter. See the event_source configuration block.
	// +kubebuilder:validation:Optional
	EventSource []EventSourceParameters `json:"eventSource,omitempty" tf:"event_source,omitempty"`

	// A set of optional parameters for snapshot and AMI lifecycle policies. See the parameters configuration block.
	// +kubebuilder:validation:Optional
	Parameters []PolicyDetailsParametersParameters `json:"parameters,omitempty" tf:"parameters,omitempty"`

	// The valid target resource types and actions a policy can manage. Specify EBS_SNAPSHOT_MANAGEMENT to create a lifecycle policy that manages the lifecycle of Amazon EBS snapshots. Specify IMAGE_MANAGEMENT to create a lifecycle policy that manages the lifecycle of EBS-backed AMIs. Specify EVENT_BASED_POLICY to create an event-based policy that performs specific actions when a defined event occurs in your AWS account. Default value is EBS_SNAPSHOT_MANAGEMENT.
	// +kubebuilder:validation:Optional
	PolicyType *string `json:"policyType,omitempty" tf:"policy_type,omitempty"`

	// The location of the resources to backup. If the source resources are located in an AWS Region, specify CLOUD. If the source resources are located on an Outpost in your account, specify OUTPOST. If you specify OUTPOST, Amazon Data Lifecycle Manager backs up all resources of the specified type with matching target tags across all of the Outposts in your account. Valid values are CLOUD and OUTPOST.
	// +kubebuilder:validation:Optional
	ResourceLocations []*string `json:"resourceLocations,omitempty" tf:"resource_locations,omitempty"`

	// A list of resource types that should be targeted by the lifecycle policy. Valid values are VOLUME and INSTANCE.
	// +kubebuilder:validation:Optional
	ResourceTypes []*string `json:"resourceTypes,omitempty" tf:"resource_types,omitempty"`

	// See the schedule configuration block.
	// +kubebuilder:validation:Optional
	Schedule []ScheduleParameters `json:"schedule,omitempty" tf:"schedule,omitempty"`

	// A map of tag keys and their values. Any resources that match the resource_types and are tagged with any of these tags will be targeted.
	// +kubebuilder:validation:Optional
	TargetTags map[string]*string `json:"targetTags,omitempty" tf:"target_tags,omitempty"`
}

func (*PolicyDetailsParameters) DeepCopy

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

func (*PolicyDetailsParameters) DeepCopyInto

func (in *PolicyDetailsParameters) DeepCopyInto(out *PolicyDetailsParameters)

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

type PolicyDetailsParametersObservation

type PolicyDetailsParametersObservation struct {

	// Indicates whether to exclude the root volume from snapshots created using CreateSnapshots. The default is false.
	ExcludeBootVolume *bool `json:"excludeBootVolume,omitempty" tf:"exclude_boot_volume,omitempty"`

	// Applies to AMI lifecycle policies only. Indicates whether targeted instances are rebooted when the lifecycle policy runs. true indicates that targeted instances are not rebooted when the policy runs. false indicates that target instances are rebooted when the policy runs. The default is true (instances are not rebooted).
	NoReboot *bool `json:"noReboot,omitempty" tf:"no_reboot,omitempty"`
}

func (*PolicyDetailsParametersObservation) DeepCopy

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

func (*PolicyDetailsParametersObservation) DeepCopyInto

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

type PolicyDetailsParametersParameters

type PolicyDetailsParametersParameters struct {

	// Indicates whether to exclude the root volume from snapshots created using CreateSnapshots. The default is false.
	// +kubebuilder:validation:Optional
	ExcludeBootVolume *bool `json:"excludeBootVolume,omitempty" tf:"exclude_boot_volume,omitempty"`

	// Applies to AMI lifecycle policies only. Indicates whether targeted instances are rebooted when the lifecycle policy runs. true indicates that targeted instances are not rebooted when the policy runs. false indicates that target instances are rebooted when the policy runs. The default is true (instances are not rebooted).
	// +kubebuilder:validation:Optional
	NoReboot *bool `json:"noReboot,omitempty" tf:"no_reboot,omitempty"`
}

func (*PolicyDetailsParametersParameters) DeepCopy

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

func (*PolicyDetailsParametersParameters) DeepCopyInto

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

type RetainRuleObservation

type RetainRuleObservation struct {

	// How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
	Interval *float64 `json:"interval,omitempty" tf:"interval,omitempty"`

	// The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
	IntervalUnit *string `json:"intervalUnit,omitempty" tf:"interval_unit,omitempty"`
}

func (*RetainRuleObservation) DeepCopy

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

func (*RetainRuleObservation) DeepCopyInto

func (in *RetainRuleObservation) DeepCopyInto(out *RetainRuleObservation)

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

type RetainRuleParameters

type RetainRuleParameters struct {

	// How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
	// +kubebuilder:validation:Required
	Interval *float64 `json:"interval" tf:"interval,omitempty"`

	// The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
	// +kubebuilder:validation:Required
	IntervalUnit *string `json:"intervalUnit" tf:"interval_unit,omitempty"`
}

func (*RetainRuleParameters) DeepCopy

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

func (*RetainRuleParameters) DeepCopyInto

func (in *RetainRuleParameters) DeepCopyInto(out *RetainRuleParameters)

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

type ScheduleDeprecateRuleObservation

type ScheduleDeprecateRuleObservation struct {

	// Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000.
	Count *float64 `json:"count,omitempty" tf:"count,omitempty"`

	// How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
	Interval *float64 `json:"interval,omitempty" tf:"interval,omitempty"`

	// The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
	IntervalUnit *string `json:"intervalUnit,omitempty" tf:"interval_unit,omitempty"`
}

func (*ScheduleDeprecateRuleObservation) DeepCopy

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

func (*ScheduleDeprecateRuleObservation) DeepCopyInto

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

type ScheduleDeprecateRuleParameters

type ScheduleDeprecateRuleParameters struct {

	// Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000.
	// +kubebuilder:validation:Optional
	Count *float64 `json:"count,omitempty" tf:"count,omitempty"`

	// How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
	// +kubebuilder:validation:Optional
	Interval *float64 `json:"interval,omitempty" tf:"interval,omitempty"`

	// The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
	// +kubebuilder:validation:Optional
	IntervalUnit *string `json:"intervalUnit,omitempty" tf:"interval_unit,omitempty"`
}

func (*ScheduleDeprecateRuleParameters) DeepCopy

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

func (*ScheduleDeprecateRuleParameters) DeepCopyInto

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

type ScheduleObservation

type ScheduleObservation struct {

	// Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
	CopyTags *bool `json:"copyTags,omitempty" tf:"copy_tags,omitempty"`

	// See the create_rule block. Max of 1 per schedule.
	CreateRule []CreateRuleObservation `json:"createRule,omitempty" tf:"create_rule,omitempty"`

	// See the cross_region_copy_rule block. Max of 3 per schedule.
	CrossRegionCopyRule []CrossRegionCopyRuleObservation `json:"crossRegionCopyRule,omitempty" tf:"cross_region_copy_rule,omitempty"`

	// See the deprecate_rule block. Max of 1 per schedule.
	DeprecateRule []ScheduleDeprecateRuleObservation `json:"deprecateRule,omitempty" tf:"deprecate_rule,omitempty"`

	// See the fast_restore_rule block. Max of 1 per schedule.
	FastRestoreRule []FastRestoreRuleObservation `json:"fastRestoreRule,omitempty" tf:"fast_restore_rule,omitempty"`

	// A descriptive name for the action.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action.
	RetainRule []ScheduleRetainRuleObservation `json:"retainRule,omitempty" tf:"retain_rule,omitempty"`

	// See the share_rule block. Max of 1 per schedule.
	ShareRule []ShareRuleObservation `json:"shareRule,omitempty" tf:"share_rule,omitempty"`

	// A map of tag keys and their values. DLM lifecycle policies will already tag the snapshot with the tags on the volume. This configuration adds extra tags on top of these.
	TagsToAdd map[string]*string `json:"tagsToAdd,omitempty" tf:"tags_to_add,omitempty"`

	// A map of tag keys and variable values, where the values are determined when the policy is executed. Only $(instance-id) or $(timestamp) are valid values. Can only be used when resource_types is INSTANCE.
	VariableTags map[string]*string `json:"variableTags,omitempty" tf:"variable_tags,omitempty"`
}

func (*ScheduleObservation) DeepCopy

func (in *ScheduleObservation) DeepCopy() *ScheduleObservation

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

func (*ScheduleObservation) DeepCopyInto

func (in *ScheduleObservation) DeepCopyInto(out *ScheduleObservation)

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

type ScheduleParameters

type ScheduleParameters struct {

	// Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
	// +kubebuilder:validation:Optional
	CopyTags *bool `json:"copyTags,omitempty" tf:"copy_tags,omitempty"`

	// See the create_rule block. Max of 1 per schedule.
	// +kubebuilder:validation:Required
	CreateRule []CreateRuleParameters `json:"createRule" tf:"create_rule,omitempty"`

	// See the cross_region_copy_rule block. Max of 3 per schedule.
	// +kubebuilder:validation:Optional
	CrossRegionCopyRule []CrossRegionCopyRuleParameters `json:"crossRegionCopyRule,omitempty" tf:"cross_region_copy_rule,omitempty"`

	// See the deprecate_rule block. Max of 1 per schedule.
	// +kubebuilder:validation:Optional
	DeprecateRule []ScheduleDeprecateRuleParameters `json:"deprecateRule,omitempty" tf:"deprecate_rule,omitempty"`

	// See the fast_restore_rule block. Max of 1 per schedule.
	// +kubebuilder:validation:Optional
	FastRestoreRule []FastRestoreRuleParameters `json:"fastRestoreRule,omitempty" tf:"fast_restore_rule,omitempty"`

	// A descriptive name for the action.
	// +kubebuilder:validation:Required
	Name *string `json:"name" tf:"name,omitempty"`

	// Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action.
	// +kubebuilder:validation:Required
	RetainRule []ScheduleRetainRuleParameters `json:"retainRule" tf:"retain_rule,omitempty"`

	// See the share_rule block. Max of 1 per schedule.
	// +kubebuilder:validation:Optional
	ShareRule []ShareRuleParameters `json:"shareRule,omitempty" tf:"share_rule,omitempty"`

	// A map of tag keys and their values. DLM lifecycle policies will already tag the snapshot with the tags on the volume. This configuration adds extra tags on top of these.
	// +kubebuilder:validation:Optional
	TagsToAdd map[string]*string `json:"tagsToAdd,omitempty" tf:"tags_to_add,omitempty"`

	// A map of tag keys and variable values, where the values are determined when the policy is executed. Only $(instance-id) or $(timestamp) are valid values. Can only be used when resource_types is INSTANCE.
	// +kubebuilder:validation:Optional
	VariableTags map[string]*string `json:"variableTags,omitempty" tf:"variable_tags,omitempty"`
}

func (*ScheduleParameters) DeepCopy

func (in *ScheduleParameters) DeepCopy() *ScheduleParameters

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

func (*ScheduleParameters) DeepCopyInto

func (in *ScheduleParameters) DeepCopyInto(out *ScheduleParameters)

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

type ScheduleRetainRuleObservation

type ScheduleRetainRuleObservation struct {

	// Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000.
	Count *float64 `json:"count,omitempty" tf:"count,omitempty"`

	// How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
	Interval *float64 `json:"interval,omitempty" tf:"interval,omitempty"`

	// The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
	IntervalUnit *string `json:"intervalUnit,omitempty" tf:"interval_unit,omitempty"`
}

func (*ScheduleRetainRuleObservation) DeepCopy

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

func (*ScheduleRetainRuleObservation) DeepCopyInto

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

type ScheduleRetainRuleParameters

type ScheduleRetainRuleParameters struct {

	// Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000.
	// +kubebuilder:validation:Optional
	Count *float64 `json:"count,omitempty" tf:"count,omitempty"`

	// How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
	// +kubebuilder:validation:Optional
	Interval *float64 `json:"interval,omitempty" tf:"interval,omitempty"`

	// The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
	// +kubebuilder:validation:Optional
	IntervalUnit *string `json:"intervalUnit,omitempty" tf:"interval_unit,omitempty"`
}

func (*ScheduleRetainRuleParameters) DeepCopy

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

func (*ScheduleRetainRuleParameters) DeepCopyInto

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

type ShareRuleObservation

type ShareRuleObservation struct {

	// The IDs of the AWS accounts with which to share the snapshots.
	TargetAccounts []*string `json:"targetAccounts,omitempty" tf:"target_accounts,omitempty"`

	// How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
	UnshareInterval *float64 `json:"unshareInterval,omitempty" tf:"unshare_interval,omitempty"`

	// The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
	UnshareIntervalUnit *string `json:"unshareIntervalUnit,omitempty" tf:"unshare_interval_unit,omitempty"`
}

func (*ShareRuleObservation) DeepCopy

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

func (*ShareRuleObservation) DeepCopyInto

func (in *ShareRuleObservation) DeepCopyInto(out *ShareRuleObservation)

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

type ShareRuleParameters

type ShareRuleParameters struct {

	// The IDs of the AWS accounts with which to share the snapshots.
	// +kubebuilder:validation:Required
	TargetAccounts []*string `json:"targetAccounts" tf:"target_accounts,omitempty"`

	// How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
	// +kubebuilder:validation:Optional
	UnshareInterval *float64 `json:"unshareInterval,omitempty" tf:"unshare_interval,omitempty"`

	// The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
	// +kubebuilder:validation:Optional
	UnshareIntervalUnit *string `json:"unshareIntervalUnit,omitempty" tf:"unshare_interval_unit,omitempty"`
}

func (*ShareRuleParameters) DeepCopy

func (in *ShareRuleParameters) DeepCopy() *ShareRuleParameters

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

func (*ShareRuleParameters) DeepCopyInto

func (in *ShareRuleParameters) DeepCopyInto(out *ShareRuleParameters)

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