v1beta1

package
v1.4.0 Latest Latest
Warning

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

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

Documentation

Overview

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

Index

Constants

View Source
const (
	CRDGroup   = "cur.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 (
	ReportDefinition_Kind             = "ReportDefinition"
	ReportDefinition_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: ReportDefinition_Kind}.String()
	ReportDefinition_KindAPIVersion   = ReportDefinition_Kind + "." + CRDGroupVersion.String()
	ReportDefinition_GroupVersionKind = CRDGroupVersion.WithKind(ReportDefinition_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type ReportDefinition

type ReportDefinition 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.additionalSchemaElements) || (has(self.initProvider) && has(self.initProvider.additionalSchemaElements))",message="spec.forProvider.additionalSchemaElements is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.compression) || (has(self.initProvider) && has(self.initProvider.compression))",message="spec.forProvider.compression is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.format) || (has(self.initProvider) && has(self.initProvider.format))",message="spec.forProvider.format is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.s3Region) || (has(self.initProvider) && has(self.initProvider.s3Region))",message="spec.forProvider.s3Region is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.timeUnit) || (has(self.initProvider) && has(self.initProvider.timeUnit))",message="spec.forProvider.timeUnit is a required parameter"
	Spec   ReportDefinitionSpec   `json:"spec"`
	Status ReportDefinitionStatus `json:"status,omitempty"`
}

ReportDefinition is the Schema for the ReportDefinitions API. Provides a Cost and Usage Report Definition. +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 (*ReportDefinition) DeepCopy

func (in *ReportDefinition) DeepCopy() *ReportDefinition

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

func (*ReportDefinition) DeepCopyInto

func (in *ReportDefinition) DeepCopyInto(out *ReportDefinition)

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

func (*ReportDefinition) DeepCopyObject

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

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

func (*ReportDefinition) GetCondition

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

GetCondition of this ReportDefinition.

func (*ReportDefinition) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this ReportDefinition

func (*ReportDefinition) GetDeletionPolicy

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

GetDeletionPolicy of this ReportDefinition.

func (*ReportDefinition) GetID

func (tr *ReportDefinition) GetID() string

GetID returns ID of underlying Terraform resource of this ReportDefinition

func (*ReportDefinition) GetInitParameters added in v0.38.0

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

GetInitParameters of this ReportDefinition

func (*ReportDefinition) GetManagementPolicies added in v0.38.0

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

GetManagementPolicies of this ReportDefinition.

func (*ReportDefinition) GetMergedParameters added in v0.44.0

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

GetInitParameters of this ReportDefinition

func (*ReportDefinition) GetObservation

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

GetObservation of this ReportDefinition

func (*ReportDefinition) GetParameters

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

GetParameters of this ReportDefinition

func (*ReportDefinition) GetProviderConfigReference

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

GetProviderConfigReference of this ReportDefinition.

func (*ReportDefinition) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this ReportDefinition.

func (*ReportDefinition) GetTerraformResourceType

func (mg *ReportDefinition) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this ReportDefinition

func (*ReportDefinition) GetTerraformSchemaVersion

func (tr *ReportDefinition) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*ReportDefinition) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this ReportDefinition.

func (*ReportDefinition) Hub added in v0.47.2

func (tr *ReportDefinition) Hub()

Hub marks this type as a conversion hub.

func (*ReportDefinition) LateInitialize

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

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

func (*ReportDefinition) ResolveReferences

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

func (*ReportDefinition) SetConditions

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

SetConditions of this ReportDefinition.

func (*ReportDefinition) SetDeletionPolicy

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

SetDeletionPolicy of this ReportDefinition.

func (*ReportDefinition) SetManagementPolicies added in v0.38.0

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

SetManagementPolicies of this ReportDefinition.

func (*ReportDefinition) SetObservation

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

SetObservation for this ReportDefinition

func (*ReportDefinition) SetParameters

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

SetParameters for this ReportDefinition

func (*ReportDefinition) SetProviderConfigReference

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

SetProviderConfigReference of this ReportDefinition.

func (*ReportDefinition) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this ReportDefinition.

func (*ReportDefinition) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this ReportDefinition.

type ReportDefinitionInitParameters added in v0.38.0

type ReportDefinitionInitParameters struct {

	// A list of additional artifacts. Valid values are: REDSHIFT, QUICKSIGHT, ATHENA. When ATHENA exists within additional_artifacts, no other artifact type can be declared and report_versioning must be OVERWRITE_REPORT.
	// +listType=set
	AdditionalArtifacts []*string `json:"additionalArtifacts,omitempty" tf:"additional_artifacts,omitempty"`

	// A list of schema elements. Valid values are: RESOURCES, SPLIT_COST_ALLOCATION_DATA.
	// +listType=set
	AdditionalSchemaElements []*string `json:"additionalSchemaElements,omitempty" tf:"additional_schema_elements,omitempty"`

	// Compression format for report. Valid values are: GZIP, ZIP, Parquet. If Parquet is used, then format must also be Parquet.
	Compression *string `json:"compression,omitempty" tf:"compression,omitempty"`

	// Format for report. Valid values are: textORcsv, Parquet. If Parquet is used, then Compression must also be Parquet.
	Format *string `json:"format,omitempty" tf:"format,omitempty"`

	// Set to true to update your reports after they have been finalized if AWS detects charges related to previous months.
	RefreshClosedReports *bool `json:"refreshClosedReports,omitempty" tf:"refresh_closed_reports,omitempty"`

	// Overwrite the previous version of each report or to deliver the report in addition to the previous versions. Valid values are: CREATE_NEW_REPORT and OVERWRITE_REPORT.
	ReportVersioning *string `json:"reportVersioning,omitempty" tf:"report_versioning,omitempty"`

	// Name of the existing S3 bucket to hold generated reports.
	// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket
	S3Bucket *string `json:"s3Bucket,omitempty" tf:"s3_bucket,omitempty"`

	// Reference to a Bucket in s3 to populate s3Bucket.
	// +kubebuilder:validation:Optional
	S3BucketRef *v1.Reference `json:"s3BucketRef,omitempty" tf:"-"`

	// Selector for a Bucket in s3 to populate s3Bucket.
	// +kubebuilder:validation:Optional
	S3BucketSelector *v1.Selector `json:"s3BucketSelector,omitempty" tf:"-"`

	// Report path prefix. Limited to 256 characters.
	S3Prefix *string `json:"s3Prefix,omitempty" tf:"s3_prefix,omitempty"`

	// Region of the existing S3 bucket to hold generated reports.
	S3Region *string `json:"s3Region,omitempty" tf:"s3_region,omitempty"`

	// The frequency on which report data are measured and displayed.  Valid values are: DAILY, HOURLY, MONTHLY.
	TimeUnit *string `json:"timeUnit,omitempty" tf:"time_unit,omitempty"`
}

func (*ReportDefinitionInitParameters) DeepCopy added in v0.38.0

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

func (*ReportDefinitionInitParameters) DeepCopyInto added in v0.38.0

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

type ReportDefinitionList

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

ReportDefinitionList contains a list of ReportDefinitions

func (*ReportDefinitionList) DeepCopy

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

func (*ReportDefinitionList) DeepCopyInto

func (in *ReportDefinitionList) DeepCopyInto(out *ReportDefinitionList)

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

func (*ReportDefinitionList) DeepCopyObject

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

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

func (*ReportDefinitionList) GetItems

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

GetItems of this ReportDefinitionList.

type ReportDefinitionObservation

type ReportDefinitionObservation struct {

	// A list of additional artifacts. Valid values are: REDSHIFT, QUICKSIGHT, ATHENA. When ATHENA exists within additional_artifacts, no other artifact type can be declared and report_versioning must be OVERWRITE_REPORT.
	// +listType=set
	AdditionalArtifacts []*string `json:"additionalArtifacts,omitempty" tf:"additional_artifacts,omitempty"`

	// A list of schema elements. Valid values are: RESOURCES, SPLIT_COST_ALLOCATION_DATA.
	// +listType=set
	AdditionalSchemaElements []*string `json:"additionalSchemaElements,omitempty" tf:"additional_schema_elements,omitempty"`

	// The Amazon Resource Name (ARN) specifying the cur report.
	Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`

	// Compression format for report. Valid values are: GZIP, ZIP, Parquet. If Parquet is used, then format must also be Parquet.
	Compression *string `json:"compression,omitempty" tf:"compression,omitempty"`

	// Format for report. Valid values are: textORcsv, Parquet. If Parquet is used, then Compression must also be Parquet.
	Format *string `json:"format,omitempty" tf:"format,omitempty"`

	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// Set to true to update your reports after they have been finalized if AWS detects charges related to previous months.
	RefreshClosedReports *bool `json:"refreshClosedReports,omitempty" tf:"refresh_closed_reports,omitempty"`

	// Overwrite the previous version of each report or to deliver the report in addition to the previous versions. Valid values are: CREATE_NEW_REPORT and OVERWRITE_REPORT.
	ReportVersioning *string `json:"reportVersioning,omitempty" tf:"report_versioning,omitempty"`

	// Name of the existing S3 bucket to hold generated reports.
	S3Bucket *string `json:"s3Bucket,omitempty" tf:"s3_bucket,omitempty"`

	// Report path prefix. Limited to 256 characters.
	S3Prefix *string `json:"s3Prefix,omitempty" tf:"s3_prefix,omitempty"`

	// Region of the existing S3 bucket to hold generated reports.
	S3Region *string `json:"s3Region,omitempty" tf:"s3_region,omitempty"`

	// The frequency on which report data are measured and displayed.  Valid values are: DAILY, HOURLY, MONTHLY.
	TimeUnit *string `json:"timeUnit,omitempty" tf:"time_unit,omitempty"`
}

func (*ReportDefinitionObservation) DeepCopy

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

func (*ReportDefinitionObservation) DeepCopyInto

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

type ReportDefinitionParameters

type ReportDefinitionParameters struct {

	// A list of additional artifacts. Valid values are: REDSHIFT, QUICKSIGHT, ATHENA. When ATHENA exists within additional_artifacts, no other artifact type can be declared and report_versioning must be OVERWRITE_REPORT.
	// +kubebuilder:validation:Optional
	// +listType=set
	AdditionalArtifacts []*string `json:"additionalArtifacts,omitempty" tf:"additional_artifacts,omitempty"`

	// A list of schema elements. Valid values are: RESOURCES, SPLIT_COST_ALLOCATION_DATA.
	// +kubebuilder:validation:Optional
	// +listType=set
	AdditionalSchemaElements []*string `json:"additionalSchemaElements,omitempty" tf:"additional_schema_elements,omitempty"`

	// Compression format for report. Valid values are: GZIP, ZIP, Parquet. If Parquet is used, then format must also be Parquet.
	// +kubebuilder:validation:Optional
	Compression *string `json:"compression,omitempty" tf:"compression,omitempty"`

	// Format for report. Valid values are: textORcsv, Parquet. If Parquet is used, then Compression must also be Parquet.
	// +kubebuilder:validation:Optional
	Format *string `json:"format,omitempty" tf:"format,omitempty"`

	// Set to true to update your reports after they have been finalized if AWS detects charges related to previous months.
	// +kubebuilder:validation:Optional
	RefreshClosedReports *bool `json:"refreshClosedReports,omitempty" tf:"refresh_closed_reports,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:"-"`

	// Overwrite the previous version of each report or to deliver the report in addition to the previous versions. Valid values are: CREATE_NEW_REPORT and OVERWRITE_REPORT.
	// +kubebuilder:validation:Optional
	ReportVersioning *string `json:"reportVersioning,omitempty" tf:"report_versioning,omitempty"`

	// Name of the existing S3 bucket to hold generated reports.
	// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket
	// +kubebuilder:validation:Optional
	S3Bucket *string `json:"s3Bucket,omitempty" tf:"s3_bucket,omitempty"`

	// Reference to a Bucket in s3 to populate s3Bucket.
	// +kubebuilder:validation:Optional
	S3BucketRef *v1.Reference `json:"s3BucketRef,omitempty" tf:"-"`

	// Selector for a Bucket in s3 to populate s3Bucket.
	// +kubebuilder:validation:Optional
	S3BucketSelector *v1.Selector `json:"s3BucketSelector,omitempty" tf:"-"`

	// Report path prefix. Limited to 256 characters.
	// +kubebuilder:validation:Optional
	S3Prefix *string `json:"s3Prefix,omitempty" tf:"s3_prefix,omitempty"`

	// Region of the existing S3 bucket to hold generated reports.
	// +kubebuilder:validation:Optional
	S3Region *string `json:"s3Region,omitempty" tf:"s3_region,omitempty"`

	// The frequency on which report data are measured and displayed.  Valid values are: DAILY, HOURLY, MONTHLY.
	// +kubebuilder:validation:Optional
	TimeUnit *string `json:"timeUnit,omitempty" tf:"time_unit,omitempty"`
}

func (*ReportDefinitionParameters) DeepCopy

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

func (*ReportDefinitionParameters) DeepCopyInto

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

type ReportDefinitionSpec

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

ReportDefinitionSpec defines the desired state of ReportDefinition

func (*ReportDefinitionSpec) DeepCopy

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

func (*ReportDefinitionSpec) DeepCopyInto

func (in *ReportDefinitionSpec) DeepCopyInto(out *ReportDefinitionSpec)

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

type ReportDefinitionStatus

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

ReportDefinitionStatus defines the observed state of ReportDefinition.

func (*ReportDefinitionStatus) DeepCopy

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

func (*ReportDefinitionStatus) DeepCopyInto

func (in *ReportDefinitionStatus) DeepCopyInto(out *ReportDefinitionStatus)

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