Documentation
¶
Index ¶
- type Args
- type EnabledLog
- type EnabledLogAttributes
- func (el EnabledLogAttributes) Category() terra.StringValue
- func (el EnabledLogAttributes) CategoryGroup() terra.StringValue
- func (el EnabledLogAttributes) InternalRef() (terra.Reference, error)
- func (el EnabledLogAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (el EnabledLogAttributes) InternalWithRef(ref terra.Reference) EnabledLogAttributes
- func (el EnabledLogAttributes) RetentionPolicy() terra.ListValue[EnabledLogRetentionPolicyAttributes]
- type EnabledLogRetentionPolicy
- type EnabledLogRetentionPolicyAttributes
- func (rp EnabledLogRetentionPolicyAttributes) Days() terra.NumberValue
- func (rp EnabledLogRetentionPolicyAttributes) Enabled() terra.BoolValue
- func (rp EnabledLogRetentionPolicyAttributes) InternalRef() (terra.Reference, error)
- func (rp EnabledLogRetentionPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (rp EnabledLogRetentionPolicyAttributes) InternalWithRef(ref terra.Reference) EnabledLogRetentionPolicyAttributes
- type EnabledLogRetentionPolicyState
- type EnabledLogState
- type Log
- type LogAttributes
- func (l LogAttributes) Category() terra.StringValue
- func (l LogAttributes) CategoryGroup() terra.StringValue
- func (l LogAttributes) Enabled() terra.BoolValue
- func (l LogAttributes) InternalRef() (terra.Reference, error)
- func (l LogAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (l LogAttributes) InternalWithRef(ref terra.Reference) LogAttributes
- func (l LogAttributes) RetentionPolicy() terra.ListValue[LogRetentionPolicyAttributes]
- type LogRetentionPolicy
- type LogRetentionPolicyAttributes
- func (rp LogRetentionPolicyAttributes) Days() terra.NumberValue
- func (rp LogRetentionPolicyAttributes) Enabled() terra.BoolValue
- func (rp LogRetentionPolicyAttributes) InternalRef() (terra.Reference, error)
- func (rp LogRetentionPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (rp LogRetentionPolicyAttributes) InternalWithRef(ref terra.Reference) LogRetentionPolicyAttributes
- type LogRetentionPolicyState
- type LogState
- type Metric
- type MetricAttributes
- func (m MetricAttributes) Category() terra.StringValue
- func (m MetricAttributes) Enabled() terra.BoolValue
- func (m MetricAttributes) InternalRef() (terra.Reference, error)
- func (m MetricAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (m MetricAttributes) InternalWithRef(ref terra.Reference) MetricAttributes
- func (m MetricAttributes) RetentionPolicy() terra.ListValue[MetricRetentionPolicyAttributes]
- type MetricRetentionPolicy
- type MetricRetentionPolicyAttributes
- func (rp MetricRetentionPolicyAttributes) Days() terra.NumberValue
- func (rp MetricRetentionPolicyAttributes) Enabled() terra.BoolValue
- func (rp MetricRetentionPolicyAttributes) InternalRef() (terra.Reference, error)
- func (rp MetricRetentionPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (rp MetricRetentionPolicyAttributes) InternalWithRef(ref terra.Reference) MetricRetentionPolicyAttributes
- type MetricRetentionPolicyState
- type MetricState
- type Resource
- func (amds *Resource) Attributes() azurermMonitorDiagnosticSettingAttributes
- func (amds *Resource) Configuration() interface{}
- func (amds *Resource) DependOn() terra.Reference
- func (amds *Resource) Dependencies() terra.Dependencies
- func (amds *Resource) ImportState(state io.Reader) error
- func (amds *Resource) LifecycleManagement() *terra.Lifecycle
- func (amds *Resource) LocalName() string
- func (amds *Resource) State() (*azurermMonitorDiagnosticSettingState, bool)
- func (amds *Resource) StateMust() *azurermMonitorDiagnosticSettingState
- func (amds *Resource) Type() string
- type Timeouts
- type TimeoutsAttributes
- func (t TimeoutsAttributes) Create() terra.StringValue
- func (t TimeoutsAttributes) Delete() terra.StringValue
- func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)
- func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes
- func (t TimeoutsAttributes) Read() terra.StringValue
- func (t TimeoutsAttributes) Update() terra.StringValue
- type TimeoutsState
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 ¶
func (el EnabledLogAttributes) RetentionPolicy() terra.ListValue[EnabledLogRetentionPolicyAttributes]
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 (rp EnabledLogRetentionPolicyAttributes) Days() terra.NumberValue
func (EnabledLogRetentionPolicyAttributes) Enabled ¶
func (rp EnabledLogRetentionPolicyAttributes) Enabled() terra.BoolValue
func (EnabledLogRetentionPolicyAttributes) InternalRef ¶
func (rp EnabledLogRetentionPolicyAttributes) InternalRef() (terra.Reference, error)
func (EnabledLogRetentionPolicyAttributes) InternalTokens ¶
func (rp EnabledLogRetentionPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)
func (EnabledLogRetentionPolicyAttributes) InternalWithRef ¶
func (rp EnabledLogRetentionPolicyAttributes) InternalWithRef(ref terra.Reference) EnabledLogRetentionPolicyAttributes
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 ¶
func (l LogAttributes) RetentionPolicy() terra.ListValue[LogRetentionPolicyAttributes]
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 (rp LogRetentionPolicyAttributes) Days() terra.NumberValue
func (LogRetentionPolicyAttributes) Enabled ¶
func (rp LogRetentionPolicyAttributes) Enabled() terra.BoolValue
func (LogRetentionPolicyAttributes) InternalRef ¶
func (rp LogRetentionPolicyAttributes) InternalRef() (terra.Reference, error)
func (LogRetentionPolicyAttributes) InternalTokens ¶
func (rp LogRetentionPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)
func (LogRetentionPolicyAttributes) InternalWithRef ¶
func (rp LogRetentionPolicyAttributes) InternalWithRef(ref terra.Reference) LogRetentionPolicyAttributes
type LogRetentionPolicyState ¶
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 ¶
func (m MetricAttributes) RetentionPolicy() terra.ListValue[MetricRetentionPolicyAttributes]
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 (rp MetricRetentionPolicyAttributes) Days() terra.NumberValue
func (MetricRetentionPolicyAttributes) Enabled ¶
func (rp MetricRetentionPolicyAttributes) Enabled() terra.BoolValue
func (MetricRetentionPolicyAttributes) InternalRef ¶
func (rp MetricRetentionPolicyAttributes) InternalRef() (terra.Reference, error)
func (MetricRetentionPolicyAttributes) InternalTokens ¶
func (rp MetricRetentionPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)
func (MetricRetentionPolicyAttributes) InternalWithRef ¶
func (rp MetricRetentionPolicyAttributes) InternalWithRef(ref terra.Reference) MetricRetentionPolicyAttributes
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 (*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) Dependencies ¶
func (amds *Resource) Dependencies() terra.Dependencies
Dependencies returns the list of resources Resource depends_on.
func (*Resource) ImportState ¶
ImportState imports the given attribute values into Resource's state.
func (*Resource) LifecycleManagement ¶
LifecycleManagement returns the lifecycle block 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 (t TimeoutsAttributes) Create() terra.StringValue
func (TimeoutsAttributes) Delete ¶
func (t TimeoutsAttributes) Delete() terra.StringValue
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 (t TimeoutsAttributes) Read() terra.StringValue
func (TimeoutsAttributes) Update ¶
func (t TimeoutsAttributes) Update() terra.StringValue
Click to show internal directories.
Click to hide internal directories.