v1beta1

package
v1.7.0-rc.0 Latest Latest
Warning

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

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

Documentation

Overview

+kubebuilder:object:generate=true +groupName=policyinsights.azure.upbound.io +versionName=v1beta1

Index

Constants

View Source
const (
	CRDGroup   = "policyinsights.azure.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 (
	ResourcePolicyRemediation_Kind             = "ResourcePolicyRemediation"
	ResourcePolicyRemediation_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: ResourcePolicyRemediation_Kind}.String()
	ResourcePolicyRemediation_KindAPIVersion   = ResourcePolicyRemediation_Kind + "." + CRDGroupVersion.String()
	ResourcePolicyRemediation_GroupVersionKind = CRDGroupVersion.WithKind(ResourcePolicyRemediation_Kind)
)

Repository type metadata.

View Source
var (
	SubscriptionPolicyRemediation_Kind             = "SubscriptionPolicyRemediation"
	SubscriptionPolicyRemediation_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: SubscriptionPolicyRemediation_Kind}.String()
	SubscriptionPolicyRemediation_KindAPIVersion   = SubscriptionPolicyRemediation_Kind + "." + CRDGroupVersion.String()
	SubscriptionPolicyRemediation_GroupVersionKind = CRDGroupVersion.WithKind(SubscriptionPolicyRemediation_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type ResourcePolicyRemediation

type ResourcePolicyRemediation 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.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter"
	Spec   ResourcePolicyRemediationSpec   `json:"spec"`
	Status ResourcePolicyRemediationStatus `json:"status,omitempty"`
}

ResourcePolicyRemediation is the Schema for the ResourcePolicyRemediations API. Manages an Azure Resource Policy Remediation. +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,azure}

func (*ResourcePolicyRemediation) DeepCopy

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

func (*ResourcePolicyRemediation) DeepCopyInto

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

func (*ResourcePolicyRemediation) DeepCopyObject

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

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

func (*ResourcePolicyRemediation) GetCondition

GetCondition of this ResourcePolicyRemediation.

func (*ResourcePolicyRemediation) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this ResourcePolicyRemediation

func (*ResourcePolicyRemediation) GetDeletionPolicy

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

GetDeletionPolicy of this ResourcePolicyRemediation.

func (*ResourcePolicyRemediation) GetID

func (tr *ResourcePolicyRemediation) GetID() string

GetID returns ID of underlying Terraform resource of this ResourcePolicyRemediation

func (*ResourcePolicyRemediation) GetInitParameters added in v0.35.0

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

GetInitParameters of this ResourcePolicyRemediation

func (*ResourcePolicyRemediation) GetManagementPolicies added in v0.35.0

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

GetManagementPolicies of this ResourcePolicyRemediation.

func (*ResourcePolicyRemediation) GetMergedParameters added in v0.40.0

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

GetInitParameters of this ResourcePolicyRemediation

func (*ResourcePolicyRemediation) GetObservation

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

GetObservation of this ResourcePolicyRemediation

func (*ResourcePolicyRemediation) GetParameters

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

GetParameters of this ResourcePolicyRemediation

func (*ResourcePolicyRemediation) GetProviderConfigReference

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

GetProviderConfigReference of this ResourcePolicyRemediation.

func (*ResourcePolicyRemediation) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this ResourcePolicyRemediation.

func (*ResourcePolicyRemediation) GetTerraformResourceType

func (mg *ResourcePolicyRemediation) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this ResourcePolicyRemediation

func (*ResourcePolicyRemediation) GetTerraformSchemaVersion

func (tr *ResourcePolicyRemediation) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*ResourcePolicyRemediation) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this ResourcePolicyRemediation.

func (*ResourcePolicyRemediation) Hub added in v0.42.1

func (tr *ResourcePolicyRemediation) Hub()

Hub marks this type as a conversion hub.

func (*ResourcePolicyRemediation) LateInitialize

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

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

func (*ResourcePolicyRemediation) ResolveReferences

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

func (*ResourcePolicyRemediation) SetConditions

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

SetConditions of this ResourcePolicyRemediation.

func (*ResourcePolicyRemediation) SetDeletionPolicy

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

SetDeletionPolicy of this ResourcePolicyRemediation.

func (*ResourcePolicyRemediation) SetManagementPolicies added in v0.35.0

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

SetManagementPolicies of this ResourcePolicyRemediation.

func (*ResourcePolicyRemediation) SetObservation

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

SetObservation for this ResourcePolicyRemediation

func (*ResourcePolicyRemediation) SetParameters

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

SetParameters for this ResourcePolicyRemediation

func (*ResourcePolicyRemediation) SetProviderConfigReference

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

SetProviderConfigReference of this ResourcePolicyRemediation.

func (*ResourcePolicyRemediation) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this ResourcePolicyRemediation.

func (*ResourcePolicyRemediation) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this ResourcePolicyRemediation.

type ResourcePolicyRemediationInitParameters added in v0.35.0

type ResourcePolicyRemediationInitParameters struct {

	// A number between 0.0 to 1.0 representing the percentage failure threshold. The remediation will fail if the percentage of failed remediation operations (i.e. failed deployments) exceeds this threshold.
	FailurePercentage *float64 `json:"failurePercentage,omitempty" tf:"failure_percentage,omitempty"`

	// A list of the resource locations that will be remediated.
	LocationFilters []*string `json:"locationFilters,omitempty" tf:"location_filters,omitempty"`

	// The name of the Policy Remediation. Changing this forces a new resource to be created.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Determines how many resources to remediate at any given time. Can be used to increase or reduce the pace of the remediation. If not provided, the default parallel deployments value is used.
	ParallelDeployments *float64 `json:"parallelDeployments,omitempty" tf:"parallel_deployments,omitempty"`

	// The ID of the Policy Assignment that should be remediated.
	// +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/authorization/v1beta2.ResourceGroupPolicyAssignment
	// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID()
	PolicyAssignmentID *string `json:"policyAssignmentId,omitempty" tf:"policy_assignment_id,omitempty"`

	// Reference to a ResourceGroupPolicyAssignment in authorization to populate policyAssignmentId.
	// +kubebuilder:validation:Optional
	PolicyAssignmentIDRef *v1.Reference `json:"policyAssignmentIdRef,omitempty" tf:"-"`

	// Selector for a ResourceGroupPolicyAssignment in authorization to populate policyAssignmentId.
	// +kubebuilder:validation:Optional
	PolicyAssignmentIDSelector *v1.Selector `json:"policyAssignmentIdSelector,omitempty" tf:"-"`

	// The unique ID for the policy definition within the policy set definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.
	PolicyDefinitionID *string `json:"policyDefinitionId,omitempty" tf:"policy_definition_id,omitempty"`

	// The unique ID for the policy definition reference within the policy set definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.
	PolicyDefinitionReferenceID *string `json:"policyDefinitionReferenceId,omitempty" tf:"policy_definition_reference_id,omitempty"`

	// Determines the max number of resources that can be remediated by the remediation job. If not provided, the default resource count is used.
	ResourceCount *float64 `json:"resourceCount,omitempty" tf:"resource_count,omitempty"`

	// The way that resources to remediate are discovered. Possible values are ExistingNonCompliant, ReEvaluateCompliance. Defaults to ExistingNonCompliant.
	ResourceDiscoveryMode *string `json:"resourceDiscoveryMode,omitempty" tf:"resource_discovery_mode,omitempty"`

	// The Resource ID at which the Policy Remediation should be applied. Changing this forces a new resource to be created.
	// +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/network/v1beta2.VirtualNetwork
	// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID()
	ResourceID *string `json:"resourceId,omitempty" tf:"resource_id,omitempty"`

	// Reference to a VirtualNetwork in network to populate resourceId.
	// +kubebuilder:validation:Optional
	ResourceIDRef *v1.Reference `json:"resourceIdRef,omitempty" tf:"-"`

	// Selector for a VirtualNetwork in network to populate resourceId.
	// +kubebuilder:validation:Optional
	ResourceIDSelector *v1.Selector `json:"resourceIdSelector,omitempty" tf:"-"`
}

func (*ResourcePolicyRemediationInitParameters) DeepCopy added in v0.35.0

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

func (*ResourcePolicyRemediationInitParameters) DeepCopyInto added in v0.35.0

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

type ResourcePolicyRemediationList

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

ResourcePolicyRemediationList contains a list of ResourcePolicyRemediations

func (*ResourcePolicyRemediationList) DeepCopy

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

func (*ResourcePolicyRemediationList) DeepCopyInto

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

func (*ResourcePolicyRemediationList) DeepCopyObject

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

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

func (*ResourcePolicyRemediationList) GetItems

GetItems of this ResourcePolicyRemediationList.

type ResourcePolicyRemediationObservation

type ResourcePolicyRemediationObservation struct {

	// A number between 0.0 to 1.0 representing the percentage failure threshold. The remediation will fail if the percentage of failed remediation operations (i.e. failed deployments) exceeds this threshold.
	FailurePercentage *float64 `json:"failurePercentage,omitempty" tf:"failure_percentage,omitempty"`

	// The ID of the Policy Remediation.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// A list of the resource locations that will be remediated.
	LocationFilters []*string `json:"locationFilters,omitempty" tf:"location_filters,omitempty"`

	// The name of the Policy Remediation. Changing this forces a new resource to be created.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Determines how many resources to remediate at any given time. Can be used to increase or reduce the pace of the remediation. If not provided, the default parallel deployments value is used.
	ParallelDeployments *float64 `json:"parallelDeployments,omitempty" tf:"parallel_deployments,omitempty"`

	// The ID of the Policy Assignment that should be remediated.
	PolicyAssignmentID *string `json:"policyAssignmentId,omitempty" tf:"policy_assignment_id,omitempty"`

	// The unique ID for the policy definition within the policy set definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.
	PolicyDefinitionID *string `json:"policyDefinitionId,omitempty" tf:"policy_definition_id,omitempty"`

	// The unique ID for the policy definition reference within the policy set definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.
	PolicyDefinitionReferenceID *string `json:"policyDefinitionReferenceId,omitempty" tf:"policy_definition_reference_id,omitempty"`

	// Determines the max number of resources that can be remediated by the remediation job. If not provided, the default resource count is used.
	ResourceCount *float64 `json:"resourceCount,omitempty" tf:"resource_count,omitempty"`

	// The way that resources to remediate are discovered. Possible values are ExistingNonCompliant, ReEvaluateCompliance. Defaults to ExistingNonCompliant.
	ResourceDiscoveryMode *string `json:"resourceDiscoveryMode,omitempty" tf:"resource_discovery_mode,omitempty"`

	// The Resource ID at which the Policy Remediation should be applied. Changing this forces a new resource to be created.
	ResourceID *string `json:"resourceId,omitempty" tf:"resource_id,omitempty"`
}

func (*ResourcePolicyRemediationObservation) DeepCopy

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

func (*ResourcePolicyRemediationObservation) DeepCopyInto

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

type ResourcePolicyRemediationParameters

type ResourcePolicyRemediationParameters struct {

	// A number between 0.0 to 1.0 representing the percentage failure threshold. The remediation will fail if the percentage of failed remediation operations (i.e. failed deployments) exceeds this threshold.
	// +kubebuilder:validation:Optional
	FailurePercentage *float64 `json:"failurePercentage,omitempty" tf:"failure_percentage,omitempty"`

	// A list of the resource locations that will be remediated.
	// +kubebuilder:validation:Optional
	LocationFilters []*string `json:"locationFilters,omitempty" tf:"location_filters,omitempty"`

	// The name of the Policy Remediation. Changing this forces a new resource to be created.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Determines how many resources to remediate at any given time. Can be used to increase or reduce the pace of the remediation. If not provided, the default parallel deployments value is used.
	// +kubebuilder:validation:Optional
	ParallelDeployments *float64 `json:"parallelDeployments,omitempty" tf:"parallel_deployments,omitempty"`

	// The ID of the Policy Assignment that should be remediated.
	// +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/authorization/v1beta2.ResourceGroupPolicyAssignment
	// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID()
	// +kubebuilder:validation:Optional
	PolicyAssignmentID *string `json:"policyAssignmentId,omitempty" tf:"policy_assignment_id,omitempty"`

	// Reference to a ResourceGroupPolicyAssignment in authorization to populate policyAssignmentId.
	// +kubebuilder:validation:Optional
	PolicyAssignmentIDRef *v1.Reference `json:"policyAssignmentIdRef,omitempty" tf:"-"`

	// Selector for a ResourceGroupPolicyAssignment in authorization to populate policyAssignmentId.
	// +kubebuilder:validation:Optional
	PolicyAssignmentIDSelector *v1.Selector `json:"policyAssignmentIdSelector,omitempty" tf:"-"`

	// The unique ID for the policy definition within the policy set definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.
	// +kubebuilder:validation:Optional
	PolicyDefinitionID *string `json:"policyDefinitionId,omitempty" tf:"policy_definition_id,omitempty"`

	// The unique ID for the policy definition reference within the policy set definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.
	// +kubebuilder:validation:Optional
	PolicyDefinitionReferenceID *string `json:"policyDefinitionReferenceId,omitempty" tf:"policy_definition_reference_id,omitempty"`

	// Determines the max number of resources that can be remediated by the remediation job. If not provided, the default resource count is used.
	// +kubebuilder:validation:Optional
	ResourceCount *float64 `json:"resourceCount,omitempty" tf:"resource_count,omitempty"`

	// The way that resources to remediate are discovered. Possible values are ExistingNonCompliant, ReEvaluateCompliance. Defaults to ExistingNonCompliant.
	// +kubebuilder:validation:Optional
	ResourceDiscoveryMode *string `json:"resourceDiscoveryMode,omitempty" tf:"resource_discovery_mode,omitempty"`

	// The Resource ID at which the Policy Remediation should be applied. Changing this forces a new resource to be created.
	// +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/network/v1beta2.VirtualNetwork
	// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID()
	// +kubebuilder:validation:Optional
	ResourceID *string `json:"resourceId,omitempty" tf:"resource_id,omitempty"`

	// Reference to a VirtualNetwork in network to populate resourceId.
	// +kubebuilder:validation:Optional
	ResourceIDRef *v1.Reference `json:"resourceIdRef,omitempty" tf:"-"`

	// Selector for a VirtualNetwork in network to populate resourceId.
	// +kubebuilder:validation:Optional
	ResourceIDSelector *v1.Selector `json:"resourceIdSelector,omitempty" tf:"-"`
}

func (*ResourcePolicyRemediationParameters) DeepCopy

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

func (*ResourcePolicyRemediationParameters) DeepCopyInto

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

type ResourcePolicyRemediationSpec

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

ResourcePolicyRemediationSpec defines the desired state of ResourcePolicyRemediation

func (*ResourcePolicyRemediationSpec) DeepCopy

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

func (*ResourcePolicyRemediationSpec) DeepCopyInto

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

type ResourcePolicyRemediationStatus

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

ResourcePolicyRemediationStatus defines the observed state of ResourcePolicyRemediation.

func (*ResourcePolicyRemediationStatus) DeepCopy

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

func (*ResourcePolicyRemediationStatus) DeepCopyInto

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

type SubscriptionPolicyRemediation

type SubscriptionPolicyRemediation 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.subscriptionId) || (has(self.initProvider) && has(self.initProvider.subscriptionId))",message="spec.forProvider.subscriptionId is a required parameter"
	Spec   SubscriptionPolicyRemediationSpec   `json:"spec"`
	Status SubscriptionPolicyRemediationStatus `json:"status,omitempty"`
}

SubscriptionPolicyRemediation is the Schema for the SubscriptionPolicyRemediations API. Manages an Azure Subscription Policy Remediation. +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,azure}

func (*SubscriptionPolicyRemediation) DeepCopy

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

func (*SubscriptionPolicyRemediation) DeepCopyInto

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

func (*SubscriptionPolicyRemediation) DeepCopyObject

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

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

func (*SubscriptionPolicyRemediation) GetCondition

GetCondition of this SubscriptionPolicyRemediation.

func (*SubscriptionPolicyRemediation) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this SubscriptionPolicyRemediation

func (*SubscriptionPolicyRemediation) GetDeletionPolicy

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

GetDeletionPolicy of this SubscriptionPolicyRemediation.

func (*SubscriptionPolicyRemediation) GetID

GetID returns ID of underlying Terraform resource of this SubscriptionPolicyRemediation

func (*SubscriptionPolicyRemediation) GetInitParameters added in v0.35.0

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

GetInitParameters of this SubscriptionPolicyRemediation

func (*SubscriptionPolicyRemediation) GetManagementPolicies added in v0.35.0

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

GetManagementPolicies of this SubscriptionPolicyRemediation.

func (*SubscriptionPolicyRemediation) GetMergedParameters added in v0.40.0

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

GetInitParameters of this SubscriptionPolicyRemediation

func (*SubscriptionPolicyRemediation) GetObservation

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

GetObservation of this SubscriptionPolicyRemediation

func (*SubscriptionPolicyRemediation) GetParameters

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

GetParameters of this SubscriptionPolicyRemediation

func (*SubscriptionPolicyRemediation) GetProviderConfigReference

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

GetProviderConfigReference of this SubscriptionPolicyRemediation.

func (*SubscriptionPolicyRemediation) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this SubscriptionPolicyRemediation.

func (*SubscriptionPolicyRemediation) GetTerraformResourceType

func (mg *SubscriptionPolicyRemediation) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this SubscriptionPolicyRemediation

func (*SubscriptionPolicyRemediation) GetTerraformSchemaVersion

func (tr *SubscriptionPolicyRemediation) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*SubscriptionPolicyRemediation) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this SubscriptionPolicyRemediation.

func (*SubscriptionPolicyRemediation) Hub added in v0.42.1

Hub marks this type as a conversion hub.

func (*SubscriptionPolicyRemediation) LateInitialize

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

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

func (*SubscriptionPolicyRemediation) ResolveReferences

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

ResolveReferences of this SubscriptionPolicyRemediation.

func (*SubscriptionPolicyRemediation) SetConditions

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

SetConditions of this SubscriptionPolicyRemediation.

func (*SubscriptionPolicyRemediation) SetDeletionPolicy

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

SetDeletionPolicy of this SubscriptionPolicyRemediation.

func (*SubscriptionPolicyRemediation) SetManagementPolicies added in v0.35.0

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

SetManagementPolicies of this SubscriptionPolicyRemediation.

func (*SubscriptionPolicyRemediation) SetObservation

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

SetObservation for this SubscriptionPolicyRemediation

func (*SubscriptionPolicyRemediation) SetParameters

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

SetParameters for this SubscriptionPolicyRemediation

func (*SubscriptionPolicyRemediation) SetProviderConfigReference

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

SetProviderConfigReference of this SubscriptionPolicyRemediation.

func (*SubscriptionPolicyRemediation) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this SubscriptionPolicyRemediation.

func (*SubscriptionPolicyRemediation) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this SubscriptionPolicyRemediation.

type SubscriptionPolicyRemediationInitParameters added in v0.35.0

type SubscriptionPolicyRemediationInitParameters struct {

	// A number between 0.0 to 1.0 representing the percentage failure threshold. The remediation will fail if the percentage of failed remediation operations (i.e. failed deployments) exceeds this threshold.
	FailurePercentage *float64 `json:"failurePercentage,omitempty" tf:"failure_percentage,omitempty"`

	// A list of the resource locations that will be remediated.
	LocationFilters []*string `json:"locationFilters,omitempty" tf:"location_filters,omitempty"`

	// Determines how many resources to remediate at any given time. Can be used to increase or reduce the pace of the remediation. If not provided, the default parallel deployments value is used.
	ParallelDeployments *float64 `json:"parallelDeployments,omitempty" tf:"parallel_deployments,omitempty"`

	// The ID of the Policy Assignment that should be remediated.
	// +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/authorization/v1beta2.SubscriptionPolicyAssignment
	// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID()
	PolicyAssignmentID *string `json:"policyAssignmentId,omitempty" tf:"policy_assignment_id,omitempty"`

	// Reference to a SubscriptionPolicyAssignment in authorization to populate policyAssignmentId.
	// +kubebuilder:validation:Optional
	PolicyAssignmentIDRef *v1.Reference `json:"policyAssignmentIdRef,omitempty" tf:"-"`

	// Selector for a SubscriptionPolicyAssignment in authorization to populate policyAssignmentId.
	// +kubebuilder:validation:Optional
	PolicyAssignmentIDSelector *v1.Selector `json:"policyAssignmentIdSelector,omitempty" tf:"-"`

	// The unique ID for the policy definition within the policy set definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.
	PolicyDefinitionID *string `json:"policyDefinitionId,omitempty" tf:"policy_definition_id,omitempty"`

	// The unique ID for the policy definition reference within the policy set definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.
	PolicyDefinitionReferenceID *string `json:"policyDefinitionReferenceId,omitempty" tf:"policy_definition_reference_id,omitempty"`

	// Determines the max number of resources that can be remediated by the remediation job. If not provided, the default resource count is used.
	ResourceCount *float64 `json:"resourceCount,omitempty" tf:"resource_count,omitempty"`

	// The way that resources to remediate are discovered. Possible values are ExistingNonCompliant, ReEvaluateCompliance. Defaults to ExistingNonCompliant.
	ResourceDiscoveryMode *string `json:"resourceDiscoveryMode,omitempty" tf:"resource_discovery_mode,omitempty"`

	// The Subscription ID at which the Policy Remediation should be applied. Changing this forces a new resource to be created.
	SubscriptionID *string `json:"subscriptionId,omitempty" tf:"subscription_id,omitempty"`
}

func (*SubscriptionPolicyRemediationInitParameters) DeepCopy added in v0.35.0

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

func (*SubscriptionPolicyRemediationInitParameters) DeepCopyInto added in v0.35.0

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

type SubscriptionPolicyRemediationList

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

SubscriptionPolicyRemediationList contains a list of SubscriptionPolicyRemediations

func (*SubscriptionPolicyRemediationList) DeepCopy

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

func (*SubscriptionPolicyRemediationList) DeepCopyInto

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

func (*SubscriptionPolicyRemediationList) DeepCopyObject

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

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

func (*SubscriptionPolicyRemediationList) GetItems

GetItems of this SubscriptionPolicyRemediationList.

type SubscriptionPolicyRemediationObservation

type SubscriptionPolicyRemediationObservation struct {

	// A number between 0.0 to 1.0 representing the percentage failure threshold. The remediation will fail if the percentage of failed remediation operations (i.e. failed deployments) exceeds this threshold.
	FailurePercentage *float64 `json:"failurePercentage,omitempty" tf:"failure_percentage,omitempty"`

	// The ID of the Policy Remediation.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// A list of the resource locations that will be remediated.
	LocationFilters []*string `json:"locationFilters,omitempty" tf:"location_filters,omitempty"`

	// Determines how many resources to remediate at any given time. Can be used to increase or reduce the pace of the remediation. If not provided, the default parallel deployments value is used.
	ParallelDeployments *float64 `json:"parallelDeployments,omitempty" tf:"parallel_deployments,omitempty"`

	// The ID of the Policy Assignment that should be remediated.
	PolicyAssignmentID *string `json:"policyAssignmentId,omitempty" tf:"policy_assignment_id,omitempty"`

	// The unique ID for the policy definition within the policy set definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.
	PolicyDefinitionID *string `json:"policyDefinitionId,omitempty" tf:"policy_definition_id,omitempty"`

	// The unique ID for the policy definition reference within the policy set definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.
	PolicyDefinitionReferenceID *string `json:"policyDefinitionReferenceId,omitempty" tf:"policy_definition_reference_id,omitempty"`

	// Determines the max number of resources that can be remediated by the remediation job. If not provided, the default resource count is used.
	ResourceCount *float64 `json:"resourceCount,omitempty" tf:"resource_count,omitempty"`

	// The way that resources to remediate are discovered. Possible values are ExistingNonCompliant, ReEvaluateCompliance. Defaults to ExistingNonCompliant.
	ResourceDiscoveryMode *string `json:"resourceDiscoveryMode,omitempty" tf:"resource_discovery_mode,omitempty"`

	// The Subscription ID at which the Policy Remediation should be applied. Changing this forces a new resource to be created.
	SubscriptionID *string `json:"subscriptionId,omitempty" tf:"subscription_id,omitempty"`
}

func (*SubscriptionPolicyRemediationObservation) DeepCopy

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

func (*SubscriptionPolicyRemediationObservation) DeepCopyInto

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

type SubscriptionPolicyRemediationParameters

type SubscriptionPolicyRemediationParameters struct {

	// A number between 0.0 to 1.0 representing the percentage failure threshold. The remediation will fail if the percentage of failed remediation operations (i.e. failed deployments) exceeds this threshold.
	// +kubebuilder:validation:Optional
	FailurePercentage *float64 `json:"failurePercentage,omitempty" tf:"failure_percentage,omitempty"`

	// A list of the resource locations that will be remediated.
	// +kubebuilder:validation:Optional
	LocationFilters []*string `json:"locationFilters,omitempty" tf:"location_filters,omitempty"`

	// Determines how many resources to remediate at any given time. Can be used to increase or reduce the pace of the remediation. If not provided, the default parallel deployments value is used.
	// +kubebuilder:validation:Optional
	ParallelDeployments *float64 `json:"parallelDeployments,omitempty" tf:"parallel_deployments,omitempty"`

	// The ID of the Policy Assignment that should be remediated.
	// +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/authorization/v1beta2.SubscriptionPolicyAssignment
	// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID()
	// +kubebuilder:validation:Optional
	PolicyAssignmentID *string `json:"policyAssignmentId,omitempty" tf:"policy_assignment_id,omitempty"`

	// Reference to a SubscriptionPolicyAssignment in authorization to populate policyAssignmentId.
	// +kubebuilder:validation:Optional
	PolicyAssignmentIDRef *v1.Reference `json:"policyAssignmentIdRef,omitempty" tf:"-"`

	// Selector for a SubscriptionPolicyAssignment in authorization to populate policyAssignmentId.
	// +kubebuilder:validation:Optional
	PolicyAssignmentIDSelector *v1.Selector `json:"policyAssignmentIdSelector,omitempty" tf:"-"`

	// The unique ID for the policy definition within the policy set definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.
	// +kubebuilder:validation:Optional
	PolicyDefinitionID *string `json:"policyDefinitionId,omitempty" tf:"policy_definition_id,omitempty"`

	// The unique ID for the policy definition reference within the policy set definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.
	// +kubebuilder:validation:Optional
	PolicyDefinitionReferenceID *string `json:"policyDefinitionReferenceId,omitempty" tf:"policy_definition_reference_id,omitempty"`

	// Determines the max number of resources that can be remediated by the remediation job. If not provided, the default resource count is used.
	// +kubebuilder:validation:Optional
	ResourceCount *float64 `json:"resourceCount,omitempty" tf:"resource_count,omitempty"`

	// The way that resources to remediate are discovered. Possible values are ExistingNonCompliant, ReEvaluateCompliance. Defaults to ExistingNonCompliant.
	// +kubebuilder:validation:Optional
	ResourceDiscoveryMode *string `json:"resourceDiscoveryMode,omitempty" tf:"resource_discovery_mode,omitempty"`

	// The Subscription ID at which the Policy Remediation should be applied. Changing this forces a new resource to be created.
	// +kubebuilder:validation:Optional
	SubscriptionID *string `json:"subscriptionId,omitempty" tf:"subscription_id,omitempty"`
}

func (*SubscriptionPolicyRemediationParameters) DeepCopy

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

func (*SubscriptionPolicyRemediationParameters) DeepCopyInto

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

type SubscriptionPolicyRemediationSpec

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

SubscriptionPolicyRemediationSpec defines the desired state of SubscriptionPolicyRemediation

func (*SubscriptionPolicyRemediationSpec) DeepCopy

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

func (*SubscriptionPolicyRemediationSpec) DeepCopyInto

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

type SubscriptionPolicyRemediationStatus

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

SubscriptionPolicyRemediationStatus defines the observed state of SubscriptionPolicyRemediation.

func (*SubscriptionPolicyRemediationStatus) DeepCopy

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

func (*SubscriptionPolicyRemediationStatus) DeepCopyInto

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