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: 13 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="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.additionalSchemaElements)",message="additionalSchemaElements is a required parameter"
	// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.compression)",message="compression is a required parameter"
	// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.format)",message="format is a required parameter"
	// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.s3Region)",message="s3Region is a required parameter"
	// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.timeUnit)",message="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="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 (*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) GetManagementPolicy

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

GetManagementPolicy 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) GetProviderReference

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

GetProviderReference of this ReportDefinition. Deprecated: Use GetProviderConfigReference.

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) 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

ResolveReferences of this ReportDefinition.

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) SetManagementPolicy

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

SetManagementPolicy 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) SetProviderReference

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

SetProviderReference of this ReportDefinition. Deprecated: Use SetProviderConfigReference.

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 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.
	AdditionalArtifacts []*string `json:"additionalArtifacts,omitempty" tf:"additional_artifacts,omitempty"`

	// A list of schema elements. Valid values are: RESOURCES.
	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
	AdditionalArtifacts []*string `json:"additionalArtifacts,omitempty" tf:"additional_artifacts,omitempty"`

	// A list of schema elements. Valid values are: RESOURCES.
	// +kubebuilder:validation:Optional
	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/spirosco/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"`
}

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