azurerm_monitor_diagnostic_setting

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 Args

type Args struct {
	// EventhubAuthorizationRuleId: string, optional
	EventhubAuthorizationRuleId terra.StringValue `hcl:"eventhub_authorization_rule_id,attr"`
	// EventhubName: string, optional
	EventhubName terra.StringValue `hcl:"eventhub_name,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// LogAnalyticsDestinationType: string, optional
	LogAnalyticsDestinationType terra.StringValue `hcl:"log_analytics_destination_type,attr"`
	// LogAnalyticsWorkspaceId: string, optional
	LogAnalyticsWorkspaceId terra.StringValue `hcl:"log_analytics_workspace_id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// PartnerSolutionId: string, optional
	PartnerSolutionId terra.StringValue `hcl:"partner_solution_id,attr"`
	// StorageAccountId: string, optional
	StorageAccountId terra.StringValue `hcl:"storage_account_id,attr"`
	// TargetResourceId: string, required
	TargetResourceId terra.StringValue `hcl:"target_resource_id,attr" validate:"required"`
	// EnabledLog: min=0
	EnabledLog []EnabledLog `hcl:"enabled_log,block" validate:"min=0"`
	// Log: min=0
	Log []Log `hcl:"log,block" validate:"min=0"`
	// Metric: min=0
	Metric []Metric `hcl:"metric,block" validate:"min=0"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_monitor_diagnostic_setting.

type EnabledLog

type EnabledLog struct {
	// Category: string, optional
	Category terra.StringValue `hcl:"category,attr"`
	// CategoryGroup: string, optional
	CategoryGroup terra.StringValue `hcl:"category_group,attr"`
	// EnabledLogRetentionPolicy: optional
	RetentionPolicy *EnabledLogRetentionPolicy `hcl:"retention_policy,block"`
}

type EnabledLogAttributes

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

func (EnabledLogAttributes) Category

func (el EnabledLogAttributes) Category() terra.StringValue

func (EnabledLogAttributes) CategoryGroup

func (el EnabledLogAttributes) CategoryGroup() terra.StringValue

func (EnabledLogAttributes) InternalRef

func (el EnabledLogAttributes) InternalRef() (terra.Reference, error)

func (EnabledLogAttributes) InternalTokens

func (el EnabledLogAttributes) InternalTokens() (hclwrite.Tokens, error)

func (EnabledLogAttributes) InternalWithRef

func (el EnabledLogAttributes) InternalWithRef(ref terra.Reference) EnabledLogAttributes

func (EnabledLogAttributes) RetentionPolicy

type EnabledLogRetentionPolicy

type EnabledLogRetentionPolicy struct {
	// Days: number, optional
	Days terra.NumberValue `hcl:"days,attr"`
	// Enabled: bool, required
	Enabled terra.BoolValue `hcl:"enabled,attr" validate:"required"`
}

type EnabledLogRetentionPolicyAttributes

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

func (EnabledLogRetentionPolicyAttributes) Days

func (EnabledLogRetentionPolicyAttributes) Enabled

func (EnabledLogRetentionPolicyAttributes) InternalRef

func (EnabledLogRetentionPolicyAttributes) InternalTokens

func (EnabledLogRetentionPolicyAttributes) InternalWithRef

type EnabledLogRetentionPolicyState

type EnabledLogRetentionPolicyState struct {
	Days    float64 `json:"days"`
	Enabled bool    `json:"enabled"`
}

type EnabledLogState

type EnabledLogState struct {
	Category        string                           `json:"category"`
	CategoryGroup   string                           `json:"category_group"`
	RetentionPolicy []EnabledLogRetentionPolicyState `json:"retention_policy"`
}

type Log

type Log struct {
	// Category: string, optional
	Category terra.StringValue `hcl:"category,attr"`
	// CategoryGroup: string, optional
	CategoryGroup terra.StringValue `hcl:"category_group,attr"`
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// LogRetentionPolicy: optional
	RetentionPolicy *LogRetentionPolicy `hcl:"retention_policy,block"`
}

type LogAttributes

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

func (LogAttributes) Category

func (l LogAttributes) Category() terra.StringValue

func (LogAttributes) CategoryGroup

func (l LogAttributes) CategoryGroup() terra.StringValue

func (LogAttributes) Enabled

func (l LogAttributes) Enabled() terra.BoolValue

func (LogAttributes) InternalRef

func (l LogAttributes) InternalRef() (terra.Reference, error)

func (LogAttributes) InternalTokens

func (l LogAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LogAttributes) InternalWithRef

func (l LogAttributes) InternalWithRef(ref terra.Reference) LogAttributes

func (LogAttributes) RetentionPolicy

type LogRetentionPolicy

type LogRetentionPolicy struct {
	// Days: number, optional
	Days terra.NumberValue `hcl:"days,attr"`
	// Enabled: bool, required
	Enabled terra.BoolValue `hcl:"enabled,attr" validate:"required"`
}

type LogRetentionPolicyAttributes

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

func (LogRetentionPolicyAttributes) Days

func (LogRetentionPolicyAttributes) Enabled

func (LogRetentionPolicyAttributes) InternalRef

func (rp LogRetentionPolicyAttributes) InternalRef() (terra.Reference, error)

func (LogRetentionPolicyAttributes) InternalTokens

func (rp LogRetentionPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LogRetentionPolicyAttributes) InternalWithRef

type LogRetentionPolicyState

type LogRetentionPolicyState struct {
	Days    float64 `json:"days"`
	Enabled bool    `json:"enabled"`
}

type LogState

type LogState struct {
	Category        string                    `json:"category"`
	CategoryGroup   string                    `json:"category_group"`
	Enabled         bool                      `json:"enabled"`
	RetentionPolicy []LogRetentionPolicyState `json:"retention_policy"`
}

type Metric

type Metric struct {
	// Category: string, required
	Category terra.StringValue `hcl:"category,attr" validate:"required"`
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// MetricRetentionPolicy: optional
	RetentionPolicy *MetricRetentionPolicy `hcl:"retention_policy,block"`
}

type MetricAttributes

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

func (MetricAttributes) Category

func (m MetricAttributes) Category() terra.StringValue

func (MetricAttributes) Enabled

func (m MetricAttributes) Enabled() terra.BoolValue

func (MetricAttributes) InternalRef

func (m MetricAttributes) InternalRef() (terra.Reference, error)

func (MetricAttributes) InternalTokens

func (m MetricAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MetricAttributes) InternalWithRef

func (m MetricAttributes) InternalWithRef(ref terra.Reference) MetricAttributes

func (MetricAttributes) RetentionPolicy

type MetricRetentionPolicy

type MetricRetentionPolicy struct {
	// Days: number, optional
	Days terra.NumberValue `hcl:"days,attr"`
	// Enabled: bool, required
	Enabled terra.BoolValue `hcl:"enabled,attr" validate:"required"`
}

type MetricRetentionPolicyAttributes

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

func (MetricRetentionPolicyAttributes) Days

func (MetricRetentionPolicyAttributes) Enabled

func (MetricRetentionPolicyAttributes) InternalRef

func (MetricRetentionPolicyAttributes) InternalTokens

func (rp MetricRetentionPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MetricRetentionPolicyAttributes) InternalWithRef

type MetricRetentionPolicyState

type MetricRetentionPolicyState struct {
	Days    float64 `json:"days"`
	Enabled bool    `json:"enabled"`
}

type MetricState

type MetricState struct {
	Category        string                       `json:"category"`
	Enabled         bool                         `json:"enabled"`
	RetentionPolicy []MetricRetentionPolicyState `json:"retention_policy"`
}

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_diagnostic_setting.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (amds *Resource) Attributes() azurermMonitorDiagnosticSettingAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (amds *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (amds *Resource) State() (*azurermMonitorDiagnosticSettingState, bool)

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

func (*Resource) StateMust

func (amds *Resource) StateMust() *azurermMonitorDiagnosticSettingState

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

func (*Resource) Type

func (amds *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