securityexceptionitem

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MinVersionExpireTime = version.Must(version.NewVersion("8.7.2"))

MinVersionExpireTime defines the minimum server version required for expire_time field

Functions

func NewResource

func NewResource() resource.Resource

NewResource is a helper function to simplify the provider implementation.

Types

type CommentModel

type CommentModel struct {
	ID      types.String `tfsdk:"id"`
	Comment types.String `tfsdk:"comment"`
}

type CommonExceptionItemProps

CommonExceptionItemProps holds pointers to common fields across create/update requests

type EntryListModel

type EntryListModel struct {
	ID   types.String `tfsdk:"id"`
	Type types.String `tfsdk:"type"`
}

type EntryModel

type EntryModel struct {
	Type     types.String `tfsdk:"type"`
	Field    types.String `tfsdk:"field"`
	Operator types.String `tfsdk:"operator"`
	Value    types.String `tfsdk:"value"`
	Values   types.List   `tfsdk:"values"`
	List     types.Object `tfsdk:"list"`
	Entries  types.List   `tfsdk:"entries"`
}

type ExceptionItemModel

type ExceptionItemModel struct {
	entitycore.ResourceTimeoutsField
	ID               types.String         `tfsdk:"id"`
	KibanaConnection types.List           `tfsdk:"kibana_connection"`
	SpaceID          types.String         `tfsdk:"space_id"`
	ItemID           types.String         `tfsdk:"item_id"`
	ListID           types.String         `tfsdk:"list_id"`
	Name             types.String         `tfsdk:"name"`
	Description      types.String         `tfsdk:"description"`
	Type             types.String         `tfsdk:"type"`
	NamespaceType    types.String         `tfsdk:"namespace_type"`
	OsTypes          types.Set            `tfsdk:"os_types"`
	Tags             types.Set            `tfsdk:"tags"`
	Meta             jsontypes.Normalized `tfsdk:"meta"`
	Entries          types.List           `tfsdk:"entries"`
	Comments         types.List           `tfsdk:"comments"`
	ExpireTime       timetypes.RFC3339    `tfsdk:"expire_time"`
	CreatedAt        types.String         `tfsdk:"created_at"`
	CreatedBy        types.String         `tfsdk:"created_by"`
	UpdatedAt        types.String         `tfsdk:"updated_at"`
	UpdatedBy        types.String         `tfsdk:"updated_by"`
	TieBreakerID     types.String         `tfsdk:"tie_breaker_id"`
}

func (ExceptionItemModel) GetID added in v0.16.2

func (m ExceptionItemModel) GetID() types.String

func (ExceptionItemModel) GetKibanaConnection added in v0.16.2

func (m ExceptionItemModel) GetKibanaConnection() types.List

func (ExceptionItemModel) GetResourceID added in v0.16.2

func (m ExceptionItemModel) GetResourceID() types.String

func (ExceptionItemModel) GetSpaceID added in v0.16.2

func (m ExceptionItemModel) GetSpaceID() types.String

func (ExceptionItemModel) GetVersionRequirements added in v0.16.2

type ExceptionItemResource

type ExceptionItemResource struct {
	*entitycore.KibanaResource[ExceptionItemModel]
}

func (*ExceptionItemResource) ImportState

func (*ExceptionItemResource) ValidateConfig

ValidateConfig validates the configuration for an exception item resource. It ensures that entries are properly configured based on their type:

- For "match" and "wildcard" types: 'value' must be set - For "match_any" type: 'values' must be set - For "list" type: 'list' object must be set with 'id' and 'type' - For "exists" type: only 'field' and 'operator' are required - For "nested" type: 'entries' must be set and validated recursively - The 'operator' field is required for all types except "nested"

Validation only runs on known values. Values that are unknown (e.g., references to other resources that haven't been created yet) are skipped.

The function adds appropriate error diagnostics if validation fails.

type NestedEntryModel

type NestedEntryModel struct {
	Type     types.String `tfsdk:"type"`
	Field    types.String `tfsdk:"field"`
	Operator types.String `tfsdk:"operator"`
	Value    types.String `tfsdk:"value"`
	Values   types.List   `tfsdk:"values"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL