azurerm_monitor_activity_log_alert

package
v0.0.0-...-4deecce Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	// ActionGroupId: string, required
	ActionGroupId terra.StringValue `hcl:"action_group_id,attr" validate:"required"`
	// WebhookProperties: map of string, optional
	WebhookProperties terra.MapValue[terra.StringValue] `hcl:"webhook_properties,attr"`
}

type ActionAttributes

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

func (ActionAttributes) ActionGroupId

func (a ActionAttributes) ActionGroupId() terra.StringValue

func (ActionAttributes) InternalRef

func (a ActionAttributes) InternalRef() (terra.Reference, error)

func (ActionAttributes) InternalTokens

func (a ActionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ActionAttributes) InternalWithRef

func (a ActionAttributes) InternalWithRef(ref terra.Reference) ActionAttributes

func (ActionAttributes) WebhookProperties

func (a ActionAttributes) WebhookProperties() terra.MapValue[terra.StringValue]

type ActionState

type ActionState struct {
	ActionGroupId     string            `json:"action_group_id"`
	WebhookProperties map[string]string `json:"webhook_properties"`
}

type Args

type Args struct {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// ResourceGroupName: string, required
	ResourceGroupName terra.StringValue `hcl:"resource_group_name,attr" validate:"required"`
	// Scopes: set of string, required
	Scopes terra.SetValue[terra.StringValue] `hcl:"scopes,attr" validate:"required"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// Action: min=0
	Action []Action `hcl:"action,block" validate:"min=0"`
	// Criteria: required
	Criteria *Criteria `hcl:"criteria,block" validate:"required"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_monitor_activity_log_alert.

type Criteria

type Criteria struct {
	// Caller: string, optional
	Caller terra.StringValue `hcl:"caller,attr"`
	// Category: string, required
	Category terra.StringValue `hcl:"category,attr" validate:"required"`
	// Level: string, optional
	Level terra.StringValue `hcl:"level,attr"`
	// Levels: list of string, optional
	Levels terra.ListValue[terra.StringValue] `hcl:"levels,attr"`
	// OperationName: string, optional
	OperationName terra.StringValue `hcl:"operation_name,attr"`
	// RecommendationCategory: string, optional
	RecommendationCategory terra.StringValue `hcl:"recommendation_category,attr"`
	// RecommendationImpact: string, optional
	RecommendationImpact terra.StringValue `hcl:"recommendation_impact,attr"`
	// RecommendationType: string, optional
	RecommendationType terra.StringValue `hcl:"recommendation_type,attr"`
	// ResourceGroup: string, optional
	ResourceGroup terra.StringValue `hcl:"resource_group,attr"`
	// ResourceGroups: list of string, optional
	ResourceGroups terra.ListValue[terra.StringValue] `hcl:"resource_groups,attr"`
	// ResourceId: string, optional
	ResourceId terra.StringValue `hcl:"resource_id,attr"`
	// ResourceIds: list of string, optional
	ResourceIds terra.ListValue[terra.StringValue] `hcl:"resource_ids,attr"`
	// ResourceProvider: string, optional
	ResourceProvider terra.StringValue `hcl:"resource_provider,attr"`
	// ResourceProviders: list of string, optional
	ResourceProviders terra.ListValue[terra.StringValue] `hcl:"resource_providers,attr"`
	// ResourceType: string, optional
	ResourceType terra.StringValue `hcl:"resource_type,attr"`
	// ResourceTypes: list of string, optional
	ResourceTypes terra.ListValue[terra.StringValue] `hcl:"resource_types,attr"`
	// Status: string, optional
	Status terra.StringValue `hcl:"status,attr"`
	// Statuses: list of string, optional
	Statuses terra.ListValue[terra.StringValue] `hcl:"statuses,attr"`
	// SubStatus: string, optional
	SubStatus terra.StringValue `hcl:"sub_status,attr"`
	// SubStatuses: list of string, optional
	SubStatuses terra.ListValue[terra.StringValue] `hcl:"sub_statuses,attr"`
	// CriteriaResourceHealth: optional
	ResourceHealth *CriteriaResourceHealth `hcl:"resource_health,block"`
	// CriteriaServiceHealth: optional
	ServiceHealth *CriteriaServiceHealth `hcl:"service_health,block"`
}

type CriteriaAttributes

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

func (CriteriaAttributes) Caller

func (CriteriaAttributes) Category

func (c CriteriaAttributes) Category() terra.StringValue

func (CriteriaAttributes) InternalRef

func (c CriteriaAttributes) InternalRef() (terra.Reference, error)

func (CriteriaAttributes) InternalTokens

func (c CriteriaAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CriteriaAttributes) InternalWithRef

func (c CriteriaAttributes) InternalWithRef(ref terra.Reference) CriteriaAttributes

func (CriteriaAttributes) Level

func (CriteriaAttributes) Levels

func (CriteriaAttributes) OperationName

func (c CriteriaAttributes) OperationName() terra.StringValue

func (CriteriaAttributes) RecommendationCategory

func (c CriteriaAttributes) RecommendationCategory() terra.StringValue

func (CriteriaAttributes) RecommendationImpact

func (c CriteriaAttributes) RecommendationImpact() terra.StringValue

func (CriteriaAttributes) RecommendationType

func (c CriteriaAttributes) RecommendationType() terra.StringValue

func (CriteriaAttributes) ResourceGroup

func (c CriteriaAttributes) ResourceGroup() terra.StringValue

func (CriteriaAttributes) ResourceGroups

func (c CriteriaAttributes) ResourceGroups() terra.ListValue[terra.StringValue]

func (CriteriaAttributes) ResourceHealth

func (CriteriaAttributes) ResourceId

func (c CriteriaAttributes) ResourceId() terra.StringValue

func (CriteriaAttributes) ResourceIds

func (CriteriaAttributes) ResourceProvider

func (c CriteriaAttributes) ResourceProvider() terra.StringValue

func (CriteriaAttributes) ResourceProviders

func (c CriteriaAttributes) ResourceProviders() terra.ListValue[terra.StringValue]

func (CriteriaAttributes) ResourceType

func (c CriteriaAttributes) ResourceType() terra.StringValue

func (CriteriaAttributes) ResourceTypes

func (c CriteriaAttributes) ResourceTypes() terra.ListValue[terra.StringValue]

func (CriteriaAttributes) ServiceHealth

func (CriteriaAttributes) Status

func (CriteriaAttributes) Statuses

func (CriteriaAttributes) SubStatus

func (c CriteriaAttributes) SubStatus() terra.StringValue

func (CriteriaAttributes) SubStatuses

type CriteriaResourceHealth

type CriteriaResourceHealth struct {
	// Current: set of string, optional
	Current terra.SetValue[terra.StringValue] `hcl:"current,attr"`
	// Previous: set of string, optional
	Previous terra.SetValue[terra.StringValue] `hcl:"previous,attr"`
	// Reason: set of string, optional
	Reason terra.SetValue[terra.StringValue] `hcl:"reason,attr"`
}

type CriteriaResourceHealthAttributes

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

func (CriteriaResourceHealthAttributes) Current

func (CriteriaResourceHealthAttributes) InternalRef

func (CriteriaResourceHealthAttributes) InternalTokens

func (rh CriteriaResourceHealthAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CriteriaResourceHealthAttributes) InternalWithRef

func (CriteriaResourceHealthAttributes) Previous

func (CriteriaResourceHealthAttributes) Reason

type CriteriaResourceHealthState

type CriteriaResourceHealthState struct {
	Current  []string `json:"current"`
	Previous []string `json:"previous"`
	Reason   []string `json:"reason"`
}

type CriteriaServiceHealth

type CriteriaServiceHealth struct {
	// Events: set of string, optional
	Events terra.SetValue[terra.StringValue] `hcl:"events,attr"`
	// Locations: set of string, optional
	Locations terra.SetValue[terra.StringValue] `hcl:"locations,attr"`
	// Services: set of string, optional
	Services terra.SetValue[terra.StringValue] `hcl:"services,attr"`
}

type CriteriaServiceHealthAttributes

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

func (CriteriaServiceHealthAttributes) Events

func (CriteriaServiceHealthAttributes) InternalRef

func (CriteriaServiceHealthAttributes) InternalTokens

func (sh CriteriaServiceHealthAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CriteriaServiceHealthAttributes) InternalWithRef

func (CriteriaServiceHealthAttributes) Locations

func (CriteriaServiceHealthAttributes) Services

type CriteriaServiceHealthState

type CriteriaServiceHealthState struct {
	Events    []string `json:"events"`
	Locations []string `json:"locations"`
	Services  []string `json:"services"`
}

type CriteriaState

type CriteriaState struct {
	Caller                 string                        `json:"caller"`
	Category               string                        `json:"category"`
	Level                  string                        `json:"level"`
	Levels                 []string                      `json:"levels"`
	OperationName          string                        `json:"operation_name"`
	RecommendationCategory string                        `json:"recommendation_category"`
	RecommendationImpact   string                        `json:"recommendation_impact"`
	RecommendationType     string                        `json:"recommendation_type"`
	ResourceGroup          string                        `json:"resource_group"`
	ResourceGroups         []string                      `json:"resource_groups"`
	ResourceId             string                        `json:"resource_id"`
	ResourceIds            []string                      `json:"resource_ids"`
	ResourceProvider       string                        `json:"resource_provider"`
	ResourceProviders      []string                      `json:"resource_providers"`
	ResourceType           string                        `json:"resource_type"`
	ResourceTypes          []string                      `json:"resource_types"`
	Status                 string                        `json:"status"`
	Statuses               []string                      `json:"statuses"`
	SubStatus              string                        `json:"sub_status"`
	SubStatuses            []string                      `json:"sub_statuses"`
	ResourceHealth         []CriteriaResourceHealthState `json:"resource_health"`
	ServiceHealth          []CriteriaServiceHealthState  `json:"service_health"`
}

type Resource

type Resource struct {
	Name string
	Args Args

	DependsOn terra.Dependencies
	Lifecycle *terra.Lifecycle
	// contains filtered or unexported fields
}

Resource represents the Terraform resource azurerm_monitor_activity_log_alert.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (amala *Resource) Attributes() azurermMonitorActivityLogAlertAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

func (amala *Resource) Configuration() interface{}

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

func (amala *Resource) DependOn() terra.Reference

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

func (amala *Resource) Dependencies() terra.Dependencies

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

func (amala *Resource) ImportState(state io.Reader) error

ImportState imports the given attribute values into Resource's state.

func (*Resource) LifecycleManagement

func (amala *Resource) LifecycleManagement() *terra.Lifecycle

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (amala *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (amala *Resource) State() (*azurermMonitorActivityLogAlertState, bool)

State returns the state and a bool indicating if Resource has state.

func (*Resource) StateMust

func (amala *Resource) StateMust() *azurermMonitorActivityLogAlertState

StateMust returns the state for Resource. Panics if the state is nil.

func (*Resource) Type

func (amala *Resource) Type() string

Type returns the Terraform object type for Resource.

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
	// Read: string, optional
	Read terra.StringValue `hcl:"read,attr"`
	// Update: string, optional
	Update terra.StringValue `hcl:"update,attr"`
}

type TimeoutsAttributes

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

func (TimeoutsAttributes) Create

func (TimeoutsAttributes) Delete

func (TimeoutsAttributes) InternalRef

func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)

func (TimeoutsAttributes) InternalTokens

func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TimeoutsAttributes) InternalWithRef

func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes

func (TimeoutsAttributes) Read

func (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Read   string `json:"read"`
	Update string `json:"update"`
}

Jump to

Keyboard shortcuts

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