Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=cloudcontrol.aws.upbound.io +versionName=v1beta1
Index ¶
- Constants
- Variables
- type Resource
- func (in *Resource) DeepCopy() *Resource
- func (in *Resource) DeepCopyInto(out *Resource)
- func (in *Resource) DeepCopyObject() runtime.Object
- func (mg *Resource) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Resource) GetConnectionDetailsMapping() map[string]string
- func (mg *Resource) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Resource) GetID() string
- func (tr *Resource) GetInitParameters() (map[string]any, error)
- func (mg *Resource) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *Resource) GetObservation() (map[string]any, error)
- func (tr *Resource) GetParameters() (map[string]any, error)
- func (mg *Resource) GetProviderConfigReference() *xpv1.Reference
- func (mg *Resource) GetProviderReference() *xpv1.Reference
- func (mg *Resource) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Resource) GetTerraformResourceType() string
- func (tr *Resource) GetTerraformSchemaVersion() int
- func (mg *Resource) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Resource) LateInitialize(attrs []byte) (bool, error)
- func (mg *Resource) ResolveReferences(ctx context.Context, c client.Reader) error
- func (mg *Resource) SetConditions(c ...xpv1.Condition)
- func (mg *Resource) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Resource) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *Resource) SetObservation(obs map[string]any) error
- func (tr *Resource) SetParameters(params map[string]any) error
- func (mg *Resource) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Resource) SetProviderReference(r *xpv1.Reference)
- func (mg *Resource) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Resource) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type ResourceInitParameters
- type ResourceList
- type ResourceObservation
- type ResourceParameters
- type ResourceSpec
- type ResourceStatus
Constants ¶
const ( CRDGroup = "cloudcontrol.aws.upbound.io" CRDVersion = "v1beta1" )
Package type metadata.
Variables ¶
var ( // CRDGroupVersion is the API Group Version used to register the objects CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
var ( Resource_Kind = "Resource" Resource_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Resource_Kind}.String() Resource_KindAPIVersion = Resource_Kind + "." + CRDGroupVersion.String() Resource_GroupVersionKind = CRDGroupVersion.WithKind(Resource_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type Resource ¶
type Resource 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.desiredState) || has(self.initProvider.desiredState)",message="desiredState is a required parameter" // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.typeName) || has(self.initProvider.typeName)",message="typeName is a required parameter" Spec ResourceSpec `json:"spec"` Status ResourceStatus `json:"status,omitempty"` }
Resource is the Schema for the Resources API. Manages a Cloud Control API Resource. +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws}
func (*Resource) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resource.
func (*Resource) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Resource) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Resource) GetCondition ¶
func (mg *Resource) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Resource.
func (*Resource) GetConnectionDetailsMapping ¶
GetConnectionDetailsMapping for this Resource
func (*Resource) GetDeletionPolicy ¶
func (mg *Resource) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Resource.
func (*Resource) GetInitParameters ¶ added in v0.38.0
GetInitParameters of this Resource
func (*Resource) GetManagementPolicies ¶ added in v0.38.0
func (mg *Resource) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this Resource.
func (*Resource) GetObservation ¶
GetObservation of this Resource
func (*Resource) GetParameters ¶
GetParameters of this Resource
func (*Resource) GetProviderConfigReference ¶
GetProviderConfigReference of this Resource.
func (*Resource) GetProviderReference ¶
GetProviderReference of this Resource. Deprecated: Use GetProviderConfigReference.
func (*Resource) GetPublishConnectionDetailsTo ¶
func (mg *Resource) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Resource.
func (*Resource) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Resource
func (*Resource) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Resource) GetWriteConnectionSecretToReference ¶
func (mg *Resource) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Resource.
func (*Resource) LateInitialize ¶
LateInitialize this Resource using its observed tfState. returns True if there are any spec changes for the resource.
func (*Resource) ResolveReferences ¶
ResolveReferences of this Resource.
func (*Resource) SetConditions ¶
SetConditions of this Resource.
func (*Resource) SetDeletionPolicy ¶
func (mg *Resource) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Resource.
func (*Resource) SetManagementPolicies ¶ added in v0.38.0
func (mg *Resource) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this Resource.
func (*Resource) SetObservation ¶
SetObservation for this Resource
func (*Resource) SetParameters ¶
SetParameters for this Resource
func (*Resource) SetProviderConfigReference ¶
SetProviderConfigReference of this Resource.
func (*Resource) SetProviderReference ¶
SetProviderReference of this Resource. Deprecated: Use SetProviderConfigReference.
func (*Resource) SetPublishConnectionDetailsTo ¶
func (mg *Resource) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Resource.
func (*Resource) SetWriteConnectionSecretToReference ¶
func (mg *Resource) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Resource.
type ResourceInitParameters ¶ added in v0.38.0
type ResourceInitParameters struct { // JSON string matching the CloudFormation resource type schema with desired configuration. DesiredState *string `json:"desiredState,omitempty" tf:"desired_state,omitempty"` // CloudFormation resource type name. For example, AWS::EC2::VPC. TypeName *string `json:"typeName,omitempty" tf:"type_name,omitempty"` // Identifier of the CloudFormation resource type version. TypeVersionID *string `json:"typeVersionId,omitempty" tf:"type_version_id,omitempty"` }
func (*ResourceInitParameters) DeepCopy ¶ added in v0.38.0
func (in *ResourceInitParameters) DeepCopy() *ResourceInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceInitParameters.
func (*ResourceInitParameters) DeepCopyInto ¶ added in v0.38.0
func (in *ResourceInitParameters) DeepCopyInto(out *ResourceInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceList ¶
type ResourceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Resource `json:"items"` }
ResourceList contains a list of Resources
func (*ResourceList) DeepCopy ¶
func (in *ResourceList) DeepCopy() *ResourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceList.
func (*ResourceList) DeepCopyInto ¶
func (in *ResourceList) DeepCopyInto(out *ResourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResourceList) DeepCopyObject ¶
func (in *ResourceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ResourceList) GetItems ¶
func (l *ResourceList) GetItems() []resource.Managed
GetItems of this ResourceList.
type ResourceObservation ¶
type ResourceObservation struct { // JSON string matching the CloudFormation resource type schema with desired configuration. DesiredState *string `json:"desiredState,omitempty" tf:"desired_state,omitempty"` ID *string `json:"id,omitempty" tf:"id,omitempty"` // JSON string matching the CloudFormation resource type schema with current configuration. Underlying attributes can be referenced via the jsondecode() function, for example, jsondecode(data.aws_cloudcontrolapi_resource.example.properties)["example"]. Properties *string `json:"properties,omitempty" tf:"properties,omitempty"` // Amazon Resource Name (ARN) of the IAM Role to assume for operations. RoleArn *string `json:"roleArn,omitempty" tf:"role_arn,omitempty"` // CloudFormation resource type name. For example, AWS::EC2::VPC. TypeName *string `json:"typeName,omitempty" tf:"type_name,omitempty"` // Identifier of the CloudFormation resource type version. TypeVersionID *string `json:"typeVersionId,omitempty" tf:"type_version_id,omitempty"` }
func (*ResourceObservation) DeepCopy ¶
func (in *ResourceObservation) DeepCopy() *ResourceObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceObservation.
func (*ResourceObservation) DeepCopyInto ¶
func (in *ResourceObservation) DeepCopyInto(out *ResourceObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceParameters ¶
type ResourceParameters struct { // JSON string matching the CloudFormation resource type schema with desired configuration. // +kubebuilder:validation:Optional DesiredState *string `json:"desiredState,omitempty" tf:"desired_state,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:"-"` // Amazon Resource Name (ARN) of the IAM Role to assume for operations. // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() // +kubebuilder:validation:Optional RoleArn *string `json:"roleArn,omitempty" tf:"role_arn,omitempty"` // Reference to a Role in iam to populate roleArn. // +kubebuilder:validation:Optional RoleArnRef *v1.Reference `json:"roleArnRef,omitempty" tf:"-"` // Selector for a Role in iam to populate roleArn. // +kubebuilder:validation:Optional RoleArnSelector *v1.Selector `json:"roleArnSelector,omitempty" tf:"-"` // JSON string of the CloudFormation resource type schema which is used for plan time validation where possible. Automatically fetched if not provided. In large scale environments with multiple resources using the same type_name, it is recommended to fetch the schema once via the aws_cloudformation_type data source and use this argument to reduce DescribeType API operation throttling. This value is marked sensitive only to prevent large plan differences from showing. // +kubebuilder:validation:Optional SchemaSecretRef *v1.SecretKeySelector `json:"schemaSecretRef,omitempty" tf:"-"` // CloudFormation resource type name. For example, AWS::EC2::VPC. // +kubebuilder:validation:Optional TypeName *string `json:"typeName,omitempty" tf:"type_name,omitempty"` // Identifier of the CloudFormation resource type version. // +kubebuilder:validation:Optional TypeVersionID *string `json:"typeVersionId,omitempty" tf:"type_version_id,omitempty"` }
func (*ResourceParameters) DeepCopy ¶
func (in *ResourceParameters) DeepCopy() *ResourceParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceParameters.
func (*ResourceParameters) DeepCopyInto ¶
func (in *ResourceParameters) DeepCopyInto(out *ResourceParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceSpec ¶
type ResourceSpec struct { v1.ResourceSpec `json:",inline"` ForProvider ResourceParameters `json:"forProvider"` // THIS IS AN ALPHA FIELD. Do not use it in production. It is not honored // unless the relevant Crossplane feature flag is enabled, and may be // changed or removed without notice. // 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 ResourceInitParameters `json:"initProvider,omitempty"` }
ResourceSpec defines the desired state of Resource
func (*ResourceSpec) DeepCopy ¶
func (in *ResourceSpec) DeepCopy() *ResourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSpec.
func (*ResourceSpec) DeepCopyInto ¶
func (in *ResourceSpec) DeepCopyInto(out *ResourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceStatus ¶
type ResourceStatus struct { v1.ResourceStatus `json:",inline"` AtProvider ResourceObservation `json:"atProvider,omitempty"` }
ResourceStatus defines the observed state of Resource.
func (*ResourceStatus) DeepCopy ¶
func (in *ResourceStatus) DeepCopy() *ResourceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceStatus.
func (*ResourceStatus) DeepCopyInto ¶
func (in *ResourceStatus) DeepCopyInto(out *ResourceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.