resources

package
v0.1.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAlertChannelResource

func NewAlertChannelResource() resource.Resource

func NewDependencyResource

func NewDependencyResource() resource.Resource

func NewEnvironmentResource

func NewEnvironmentResource() resource.Resource

func NewMonitorResource

func NewMonitorResource() resource.Resource

func NewNotificationPolicyResource

func NewNotificationPolicyResource() resource.Resource

func NewResourceGroupMembershipResource

func NewResourceGroupMembershipResource() resource.Resource

func NewResourceGroupResource

func NewResourceGroupResource() resource.Resource

func NewSecretResource

func NewSecretResource() resource.Resource

func NewStatusPageCustomDomainResource

func NewStatusPageCustomDomainResource() resource.Resource

func NewStatusPageResource

func NewStatusPageResource() resource.Resource

func NewTagResource

func NewTagResource() resource.Resource

func NewWebhookResource

func NewWebhookResource() resource.Resource

Types

type AlertChannelResource

type AlertChannelResource struct {
	// contains filtered or unexported fields
}

func (*AlertChannelResource) Configure

func (*AlertChannelResource) Create

func (*AlertChannelResource) Delete

func (*AlertChannelResource) ImportState

func (*AlertChannelResource) Metadata

func (*AlertChannelResource) Read

func (*AlertChannelResource) Schema

func (*AlertChannelResource) Update

type AlertChannelResourceModel

type AlertChannelResourceModel struct {
	ID          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	ChannelType types.String `tfsdk:"channel_type"`
	ConfigHash  types.String `tfsdk:"config_hash"`

	// Slack / Discord / Teams
	WebhookURL    types.String `tfsdk:"webhook_url"`
	MentionText   types.String `tfsdk:"mention_text"`
	MentionRoleID types.String `tfsdk:"mention_role_id"`

	// Email
	Recipients types.List `tfsdk:"recipients"`

	// PagerDuty
	RoutingKey       types.String `tfsdk:"routing_key"`
	SeverityOverride types.String `tfsdk:"severity_override"`

	// OpsGenie
	APIKey types.String `tfsdk:"api_key"`
	Region types.String `tfsdk:"region"`

	// Webhook channel
	URL           types.String `tfsdk:"url"`
	CustomHeaders types.Map    `tfsdk:"custom_headers"`
	SigningSecret types.String `tfsdk:"signing_secret"`
}

type DependencyResource

type DependencyResource struct {
	// contains filtered or unexported fields
}

func (*DependencyResource) Configure

func (*DependencyResource) Create

func (*DependencyResource) Delete

func (*DependencyResource) ImportState

func (*DependencyResource) Metadata

func (*DependencyResource) Read

func (*DependencyResource) Schema

func (*DependencyResource) Update

type DependencyResourceModel

type DependencyResourceModel struct {
	ID               types.String `tfsdk:"id"`
	Service          types.String `tfsdk:"service"`
	ServiceName      types.String `tfsdk:"service_name"`
	AlertSensitivity types.String `tfsdk:"alert_sensitivity"`
	ComponentID      types.String `tfsdk:"component_id"`
}

type EnvironmentResource

type EnvironmentResource struct {
	// contains filtered or unexported fields
}

func (*EnvironmentResource) Configure

func (*EnvironmentResource) Create

func (*EnvironmentResource) Delete

func (*EnvironmentResource) ImportState

func (*EnvironmentResource) Metadata

func (*EnvironmentResource) Read

func (*EnvironmentResource) Schema

func (*EnvironmentResource) Update

type EnvironmentResourceModel

type EnvironmentResourceModel struct {
	ID        types.String `tfsdk:"id"`
	Name      types.String `tfsdk:"name"`
	Slug      types.String `tfsdk:"slug"`
	IsDefault types.Bool   `tfsdk:"is_default"`
	Variables types.Map    `tfsdk:"variables"`
}

type MonitorResource

type MonitorResource struct {
	// contains filtered or unexported fields
}

func (*MonitorResource) Configure

func (*MonitorResource) Create

func (*MonitorResource) Delete

func (*MonitorResource) ImportState

func (*MonitorResource) Metadata

func (*MonitorResource) Read

func (*MonitorResource) Schema

func (*MonitorResource) Update

type MonitorResourceModel

type MonitorResourceModel struct {
	ID               types.String `tfsdk:"id"`
	Name             types.String `tfsdk:"name"`
	Type             types.String `tfsdk:"type"`
	FrequencySeconds types.Int64  `tfsdk:"frequency_seconds"`
	Enabled          types.Bool   `tfsdk:"enabled"`
	Regions          types.List   `tfsdk:"regions"`
	EnvironmentID    types.String `tfsdk:"environment_id"`
	AlertChannelIds  types.List   `tfsdk:"alert_channel_ids"`
	TagIds           types.List   `tfsdk:"tag_ids"`
	PingUrl          types.String `tfsdk:"ping_url"`

	Config         types.String `tfsdk:"config"`
	Auth           types.String `tfsdk:"auth"`
	Assertions     types.List   `tfsdk:"assertions"`
	IncidentPolicy types.List   `tfsdk:"incident_policy"`
}

type NotificationPolicyModel

type NotificationPolicyModel struct {
	ID         types.String `tfsdk:"id"`
	Name       types.String `tfsdk:"name"`
	Enabled    types.Bool   `tfsdk:"enabled"`
	Priority   types.Int64  `tfsdk:"priority"`
	MatchRules types.List   `tfsdk:"match_rule"`
	Escalation types.List   `tfsdk:"escalation_step"`
	OnResolve  types.String `tfsdk:"on_resolve"`
	OnReopen   types.String `tfsdk:"on_reopen"`
}

type NotificationPolicyResource

type NotificationPolicyResource struct {
	// contains filtered or unexported fields
}

func (*NotificationPolicyResource) Configure

func (*NotificationPolicyResource) Create

func (*NotificationPolicyResource) Delete

func (*NotificationPolicyResource) ImportState

func (*NotificationPolicyResource) Metadata

func (*NotificationPolicyResource) Read

func (*NotificationPolicyResource) Schema

func (*NotificationPolicyResource) Update

type ResourceGroupMembershipModel

type ResourceGroupMembershipModel struct {
	ID         types.String `tfsdk:"id"`
	GroupID    types.String `tfsdk:"group_id"`
	MemberType types.String `tfsdk:"member_type"`
	MemberID   types.String `tfsdk:"member_id"`
}

type ResourceGroupMembershipResource

type ResourceGroupMembershipResource struct {
	// contains filtered or unexported fields
}

func (*ResourceGroupMembershipResource) Configure

func (*ResourceGroupMembershipResource) Create

func (*ResourceGroupMembershipResource) Delete

func (*ResourceGroupMembershipResource) Metadata

func (*ResourceGroupMembershipResource) Read

func (*ResourceGroupMembershipResource) Schema

func (*ResourceGroupMembershipResource) Update

type ResourceGroupModel

type ResourceGroupModel struct {
	ID                       types.String  `tfsdk:"id"`
	Name                     types.String  `tfsdk:"name"`
	Slug                     types.String  `tfsdk:"slug"`
	Description              types.String  `tfsdk:"description"`
	AlertPolicyID            types.String  `tfsdk:"alert_policy_id"`
	DefaultFrequency         types.Int64   `tfsdk:"default_frequency"`
	DefaultRegions           types.List    `tfsdk:"default_regions"`
	DefaultAlertChannels     types.List    `tfsdk:"default_alert_channels"`
	DefaultEnvironmentID     types.String  `tfsdk:"default_environment_id"`
	HealthThresholdType      types.String  `tfsdk:"health_threshold_type"`
	HealthThresholdValue     types.Float64 `tfsdk:"health_threshold_value"`
	SuppressMemberAlerts     types.Bool    `tfsdk:"suppress_member_alerts"`
	ConfirmationDelaySeconds types.Int64   `tfsdk:"confirmation_delay_seconds"`
	RecoveryCooldownMinutes  types.Int64   `tfsdk:"recovery_cooldown_minutes"`
}

type ResourceGroupResource

type ResourceGroupResource struct {
	// contains filtered or unexported fields
}

func (*ResourceGroupResource) Configure

func (*ResourceGroupResource) Create

func (*ResourceGroupResource) Delete

func (*ResourceGroupResource) ImportState

func (*ResourceGroupResource) Metadata

func (*ResourceGroupResource) Read

func (*ResourceGroupResource) Schema

func (*ResourceGroupResource) Update

type SecretResource

type SecretResource struct {
	// contains filtered or unexported fields
}

func (*SecretResource) Configure

func (*SecretResource) Create

func (*SecretResource) Delete

func (*SecretResource) ImportState

func (*SecretResource) Metadata

func (*SecretResource) Read

func (*SecretResource) Schema

func (*SecretResource) Update

type SecretResourceModel

type SecretResourceModel struct {
	ID        types.String `tfsdk:"id"`
	Key       types.String `tfsdk:"key"`
	Value     types.String `tfsdk:"value"`
	ValueHash types.String `tfsdk:"value_hash"`
}

type StatusPageComponentGroupModel

type StatusPageComponentGroupModel struct {
	ID           types.String `tfsdk:"id"`
	Name         types.String `tfsdk:"name"`
	Description  types.String `tfsdk:"description"`
	Collapsed    types.Bool   `tfsdk:"collapsed"`
	DisplayOrder types.Int64  `tfsdk:"display_order"`
}

type StatusPageComponentModel

type StatusPageComponentModel struct {
	ID                 types.String `tfsdk:"id"`
	Name               types.String `tfsdk:"name"`
	Description        types.String `tfsdk:"description"`
	Type               types.String `tfsdk:"type"`
	GroupName          types.String `tfsdk:"group_name"`
	MonitorID          types.String `tfsdk:"monitor_id"`
	ResourceGroupID    types.String `tfsdk:"resource_group_id"`
	DisplayOrder       types.Int64  `tfsdk:"display_order"`
	ExcludeFromOverall types.Bool   `tfsdk:"exclude_from_overall"`
	ShowUptime         types.Bool   `tfsdk:"show_uptime"`
}

type StatusPageCustomDomainResource

type StatusPageCustomDomainResource struct {
	// contains filtered or unexported fields
}

func (*StatusPageCustomDomainResource) Configure

func (*StatusPageCustomDomainResource) Create

func (*StatusPageCustomDomainResource) Delete

func (*StatusPageCustomDomainResource) Metadata

func (*StatusPageCustomDomainResource) Read

func (*StatusPageCustomDomainResource) Schema

func (*StatusPageCustomDomainResource) Update

type StatusPageCustomDomainResourceModel

type StatusPageCustomDomainResourceModel struct {
	ID                      types.String `tfsdk:"id"`
	StatusPageID            types.String `tfsdk:"status_page_id"`
	Hostname                types.String `tfsdk:"hostname"`
	Status                  types.String `tfsdk:"status"`
	VerificationMethod      types.String `tfsdk:"verification_method"`
	VerificationToken       types.String `tfsdk:"verification_token"`
	VerificationCnameTarget types.String `tfsdk:"verification_cname_target"`
	VerificationError       types.String `tfsdk:"verification_error"`
	Primary                 types.Bool   `tfsdk:"primary"`
}

type StatusPageResource

type StatusPageResource struct {
	// contains filtered or unexported fields
}

func (*StatusPageResource) Configure

func (*StatusPageResource) Create

func (*StatusPageResource) Delete

func (*StatusPageResource) ImportState

func (*StatusPageResource) Metadata

func (*StatusPageResource) Read

func (*StatusPageResource) Schema

func (*StatusPageResource) Update

type StatusPageResourceModel

type StatusPageResourceModel struct {
	ID           types.String `tfsdk:"id"`
	Name         types.String `tfsdk:"name"`
	Slug         types.String `tfsdk:"slug"`
	Description  types.String `tfsdk:"description"`
	Visibility   types.String `tfsdk:"visibility"`
	Enabled      types.Bool   `tfsdk:"enabled"`
	IncidentMode types.String `tfsdk:"incident_mode"`
	PageURL      types.String `tfsdk:"page_url"`

	ComponentGroups []StatusPageComponentGroupModel `tfsdk:"component_group"`
	Components      []StatusPageComponentModel      `tfsdk:"component"`
}

type TagResource

type TagResource struct {
	// contains filtered or unexported fields
}

func (*TagResource) Configure

func (*TagResource) Create

func (*TagResource) Delete

func (*TagResource) ImportState

func (*TagResource) Metadata

func (*TagResource) Read

func (*TagResource) Schema

func (*TagResource) Update

type TagResourceModel

type TagResourceModel struct {
	ID    types.String `tfsdk:"id"`
	Name  types.String `tfsdk:"name"`
	Color types.String `tfsdk:"color"`
}

type WebhookResource

type WebhookResource struct {
	// contains filtered or unexported fields
}

func (*WebhookResource) Configure

func (*WebhookResource) Create

func (*WebhookResource) Delete

func (*WebhookResource) ImportState

func (*WebhookResource) Metadata

func (*WebhookResource) Read

func (*WebhookResource) Schema

func (*WebhookResource) Update

type WebhookResourceModel

type WebhookResourceModel struct {
	ID               types.String `tfsdk:"id"`
	URL              types.String `tfsdk:"url"`
	Description      types.String `tfsdk:"description"`
	Enabled          types.Bool   `tfsdk:"enabled"`
	SubscribedEvents types.Set    `tfsdk:"subscribed_events"`
}

Jump to

Keyboard shortcuts

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