Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=policyinsights.azure.upbound.io +versionName=v1beta1
Index ¶
- Constants
- Variables
- type ResourcePolicyRemediation
- func (in *ResourcePolicyRemediation) DeepCopy() *ResourcePolicyRemediation
- func (in *ResourcePolicyRemediation) DeepCopyInto(out *ResourcePolicyRemediation)
- func (in *ResourcePolicyRemediation) DeepCopyObject() runtime.Object
- func (mg *ResourcePolicyRemediation) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *ResourcePolicyRemediation) GetConnectionDetailsMapping() map[string]string
- func (mg *ResourcePolicyRemediation) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *ResourcePolicyRemediation) GetID() string
- func (tr *ResourcePolicyRemediation) GetInitParameters() (map[string]any, error)
- func (mg *ResourcePolicyRemediation) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *ResourcePolicyRemediation) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
- func (tr *ResourcePolicyRemediation) GetObservation() (map[string]any, error)
- func (tr *ResourcePolicyRemediation) GetParameters() (map[string]any, error)
- func (mg *ResourcePolicyRemediation) GetProviderConfigReference() *xpv1.Reference
- func (mg *ResourcePolicyRemediation) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *ResourcePolicyRemediation) GetTerraformResourceType() string
- func (tr *ResourcePolicyRemediation) GetTerraformSchemaVersion() int
- func (mg *ResourcePolicyRemediation) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *ResourcePolicyRemediation) Hub()
- func (tr *ResourcePolicyRemediation) LateInitialize(attrs []byte) (bool, error)
- func (mg *ResourcePolicyRemediation) ResolveReferences(ctx context.Context, c client.Reader) error
- func (mg *ResourcePolicyRemediation) SetConditions(c ...xpv1.Condition)
- func (mg *ResourcePolicyRemediation) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *ResourcePolicyRemediation) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *ResourcePolicyRemediation) SetObservation(obs map[string]any) error
- func (tr *ResourcePolicyRemediation) SetParameters(params map[string]any) error
- func (mg *ResourcePolicyRemediation) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *ResourcePolicyRemediation) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *ResourcePolicyRemediation) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type ResourcePolicyRemediationInitParameters
- type ResourcePolicyRemediationList
- func (in *ResourcePolicyRemediationList) DeepCopy() *ResourcePolicyRemediationList
- func (in *ResourcePolicyRemediationList) DeepCopyInto(out *ResourcePolicyRemediationList)
- func (in *ResourcePolicyRemediationList) DeepCopyObject() runtime.Object
- func (l *ResourcePolicyRemediationList) GetItems() []resource.Managed
- type ResourcePolicyRemediationObservation
- type ResourcePolicyRemediationParameters
- type ResourcePolicyRemediationSpec
- type ResourcePolicyRemediationStatus
- type SubscriptionPolicyRemediation
- func (in *SubscriptionPolicyRemediation) DeepCopy() *SubscriptionPolicyRemediation
- func (in *SubscriptionPolicyRemediation) DeepCopyInto(out *SubscriptionPolicyRemediation)
- func (in *SubscriptionPolicyRemediation) DeepCopyObject() runtime.Object
- func (mg *SubscriptionPolicyRemediation) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *SubscriptionPolicyRemediation) GetConnectionDetailsMapping() map[string]string
- func (mg *SubscriptionPolicyRemediation) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *SubscriptionPolicyRemediation) GetID() string
- func (tr *SubscriptionPolicyRemediation) GetInitParameters() (map[string]any, error)
- func (mg *SubscriptionPolicyRemediation) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *SubscriptionPolicyRemediation) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
- func (tr *SubscriptionPolicyRemediation) GetObservation() (map[string]any, error)
- func (tr *SubscriptionPolicyRemediation) GetParameters() (map[string]any, error)
- func (mg *SubscriptionPolicyRemediation) GetProviderConfigReference() *xpv1.Reference
- func (mg *SubscriptionPolicyRemediation) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *SubscriptionPolicyRemediation) GetTerraformResourceType() string
- func (tr *SubscriptionPolicyRemediation) GetTerraformSchemaVersion() int
- func (mg *SubscriptionPolicyRemediation) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *SubscriptionPolicyRemediation) Hub()
- func (tr *SubscriptionPolicyRemediation) LateInitialize(attrs []byte) (bool, error)
- func (mg *SubscriptionPolicyRemediation) ResolveReferences(ctx context.Context, c client.Reader) error
- func (mg *SubscriptionPolicyRemediation) SetConditions(c ...xpv1.Condition)
- func (mg *SubscriptionPolicyRemediation) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *SubscriptionPolicyRemediation) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *SubscriptionPolicyRemediation) SetObservation(obs map[string]any) error
- func (tr *SubscriptionPolicyRemediation) SetParameters(params map[string]any) error
- func (mg *SubscriptionPolicyRemediation) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *SubscriptionPolicyRemediation) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *SubscriptionPolicyRemediation) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type SubscriptionPolicyRemediationInitParameters
- type SubscriptionPolicyRemediationList
- func (in *SubscriptionPolicyRemediationList) DeepCopy() *SubscriptionPolicyRemediationList
- func (in *SubscriptionPolicyRemediationList) DeepCopyInto(out *SubscriptionPolicyRemediationList)
- func (in *SubscriptionPolicyRemediationList) DeepCopyObject() runtime.Object
- func (l *SubscriptionPolicyRemediationList) GetItems() []resource.Managed
- type SubscriptionPolicyRemediationObservation
- type SubscriptionPolicyRemediationParameters
- type SubscriptionPolicyRemediationSpec
- type SubscriptionPolicyRemediationStatus
Constants ¶
const ( CRDGroup = "policyinsights.azure.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 ( 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.
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 ¶
func (in *ResourcePolicyRemediation) DeepCopy() *ResourcePolicyRemediation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourcePolicyRemediation.
func (*ResourcePolicyRemediation) DeepCopyInto ¶
func (in *ResourcePolicyRemediation) DeepCopyInto(out *ResourcePolicyRemediation)
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 ¶
func (mg *ResourcePolicyRemediation) GetCondition(ct xpv1.ConditionType) xpv1.Condition
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 (*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
func (in *ResourcePolicyRemediationInitParameters) DeepCopy() *ResourcePolicyRemediationInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourcePolicyRemediationInitParameters.
func (*ResourcePolicyRemediationInitParameters) DeepCopyInto ¶ added in v0.35.0
func (in *ResourcePolicyRemediationInitParameters) DeepCopyInto(out *ResourcePolicyRemediationInitParameters)
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 ¶
func (in *ResourcePolicyRemediationList) DeepCopy() *ResourcePolicyRemediationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourcePolicyRemediationList.
func (*ResourcePolicyRemediationList) DeepCopyInto ¶
func (in *ResourcePolicyRemediationList) DeepCopyInto(out *ResourcePolicyRemediationList)
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 ¶
func (l *ResourcePolicyRemediationList) GetItems() []resource.Managed
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 ¶
func (in *ResourcePolicyRemediationObservation) DeepCopy() *ResourcePolicyRemediationObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourcePolicyRemediationObservation.
func (*ResourcePolicyRemediationObservation) DeepCopyInto ¶
func (in *ResourcePolicyRemediationObservation) DeepCopyInto(out *ResourcePolicyRemediationObservation)
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 ¶
func (in *ResourcePolicyRemediationParameters) DeepCopy() *ResourcePolicyRemediationParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourcePolicyRemediationParameters.
func (*ResourcePolicyRemediationParameters) DeepCopyInto ¶
func (in *ResourcePolicyRemediationParameters) DeepCopyInto(out *ResourcePolicyRemediationParameters)
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 ¶
func (in *ResourcePolicyRemediationSpec) DeepCopy() *ResourcePolicyRemediationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourcePolicyRemediationSpec.
func (*ResourcePolicyRemediationSpec) DeepCopyInto ¶
func (in *ResourcePolicyRemediationSpec) DeepCopyInto(out *ResourcePolicyRemediationSpec)
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 ¶
func (in *ResourcePolicyRemediationStatus) DeepCopy() *ResourcePolicyRemediationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourcePolicyRemediationStatus.
func (*ResourcePolicyRemediationStatus) DeepCopyInto ¶
func (in *ResourcePolicyRemediationStatus) DeepCopyInto(out *ResourcePolicyRemediationStatus)
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 ¶
func (in *SubscriptionPolicyRemediation) DeepCopy() *SubscriptionPolicyRemediation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubscriptionPolicyRemediation.
func (*SubscriptionPolicyRemediation) DeepCopyInto ¶
func (in *SubscriptionPolicyRemediation) DeepCopyInto(out *SubscriptionPolicyRemediation)
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 ¶
func (mg *SubscriptionPolicyRemediation) GetCondition(ct xpv1.ConditionType) xpv1.Condition
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 ¶
func (tr *SubscriptionPolicyRemediation) GetID() string
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
func (tr *SubscriptionPolicyRemediation) Hub()
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
func (in *SubscriptionPolicyRemediationInitParameters) DeepCopy() *SubscriptionPolicyRemediationInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubscriptionPolicyRemediationInitParameters.
func (*SubscriptionPolicyRemediationInitParameters) DeepCopyInto ¶ added in v0.35.0
func (in *SubscriptionPolicyRemediationInitParameters) DeepCopyInto(out *SubscriptionPolicyRemediationInitParameters)
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 ¶
func (in *SubscriptionPolicyRemediationList) DeepCopy() *SubscriptionPolicyRemediationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubscriptionPolicyRemediationList.
func (*SubscriptionPolicyRemediationList) DeepCopyInto ¶
func (in *SubscriptionPolicyRemediationList) DeepCopyInto(out *SubscriptionPolicyRemediationList)
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 ¶
func (l *SubscriptionPolicyRemediationList) GetItems() []resource.Managed
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 ¶
func (in *SubscriptionPolicyRemediationObservation) DeepCopy() *SubscriptionPolicyRemediationObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubscriptionPolicyRemediationObservation.
func (*SubscriptionPolicyRemediationObservation) DeepCopyInto ¶
func (in *SubscriptionPolicyRemediationObservation) DeepCopyInto(out *SubscriptionPolicyRemediationObservation)
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 ¶
func (in *SubscriptionPolicyRemediationParameters) DeepCopy() *SubscriptionPolicyRemediationParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubscriptionPolicyRemediationParameters.
func (*SubscriptionPolicyRemediationParameters) DeepCopyInto ¶
func (in *SubscriptionPolicyRemediationParameters) DeepCopyInto(out *SubscriptionPolicyRemediationParameters)
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 ¶
func (in *SubscriptionPolicyRemediationSpec) DeepCopy() *SubscriptionPolicyRemediationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubscriptionPolicyRemediationSpec.
func (*SubscriptionPolicyRemediationSpec) DeepCopyInto ¶
func (in *SubscriptionPolicyRemediationSpec) DeepCopyInto(out *SubscriptionPolicyRemediationSpec)
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 ¶
func (in *SubscriptionPolicyRemediationStatus) DeepCopy() *SubscriptionPolicyRemediationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubscriptionPolicyRemediationStatus.
func (*SubscriptionPolicyRemediationStatus) DeepCopyInto ¶
func (in *SubscriptionPolicyRemediationStatus) DeepCopyInto(out *SubscriptionPolicyRemediationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Source Files ¶
- zz_generated.conversion_hubs.go
- zz_generated.deepcopy.go
- zz_generated.managed.go
- zz_generated.managedlist.go
- zz_generated.resolvers.go
- zz_groupversion_info.go
- zz_resourcepolicyremediation_terraformed.go
- zz_resourcepolicyremediation_types.go
- zz_subscriptionpolicyremediation_terraformed.go
- zz_subscriptionpolicyremediation_types.go