Documentation ¶
Index ¶
- type Args
- type Notification
- type NotificationAttributes
- func (n NotificationAttributes) Email() terra.ListValue[NotificationEmailAttributes]
- func (n NotificationAttributes) InternalRef() (terra.Reference, error)
- func (n NotificationAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (n NotificationAttributes) InternalWithRef(ref terra.Reference) NotificationAttributes
- func (n NotificationAttributes) Webhook() terra.ListValue[NotificationWebhookAttributes]
- type NotificationEmail
- type NotificationEmailAttributes
- func (e NotificationEmailAttributes) CustomEmails() terra.ListValue[terra.StringValue]
- func (e NotificationEmailAttributes) InternalRef() (terra.Reference, error)
- func (e NotificationEmailAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (e NotificationEmailAttributes) InternalWithRef(ref terra.Reference) NotificationEmailAttributes
- func (e NotificationEmailAttributes) SendToSubscriptionAdministrator() terra.BoolValue
- func (e NotificationEmailAttributes) SendToSubscriptionCoAdministrator() terra.BoolValue
- type NotificationEmailState
- type NotificationState
- type NotificationWebhook
- type NotificationWebhookAttributes
- func (w NotificationWebhookAttributes) InternalRef() (terra.Reference, error)
- func (w NotificationWebhookAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (w NotificationWebhookAttributes) InternalWithRef(ref terra.Reference) NotificationWebhookAttributes
- func (w NotificationWebhookAttributes) Properties() terra.MapValue[terra.StringValue]
- func (w NotificationWebhookAttributes) ServiceUri() terra.StringValue
- type NotificationWebhookState
- type Predictive
- type PredictiveAttributes
- func (p PredictiveAttributes) InternalRef() (terra.Reference, error)
- func (p PredictiveAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (p PredictiveAttributes) InternalWithRef(ref terra.Reference) PredictiveAttributes
- func (p PredictiveAttributes) LookAheadTime() terra.StringValue
- func (p PredictiveAttributes) ScaleMode() terra.StringValue
- type PredictiveState
- type Profile
- type ProfileAttributes
- func (p ProfileAttributes) Capacity() terra.ListValue[ProfileCapacityAttributes]
- func (p ProfileAttributes) FixedDate() terra.ListValue[ProfileFixedDateAttributes]
- func (p ProfileAttributes) InternalRef() (terra.Reference, error)
- func (p ProfileAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (p ProfileAttributes) InternalWithRef(ref terra.Reference) ProfileAttributes
- func (p ProfileAttributes) Name() terra.StringValue
- func (p ProfileAttributes) Recurrence() terra.ListValue[ProfileRecurrenceAttributes]
- func (p ProfileAttributes) Rule() terra.ListValue[ProfileRuleAttributes]
- type ProfileCapacity
- type ProfileCapacityAttributes
- func (c ProfileCapacityAttributes) Default() terra.NumberValue
- func (c ProfileCapacityAttributes) InternalRef() (terra.Reference, error)
- func (c ProfileCapacityAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (c ProfileCapacityAttributes) InternalWithRef(ref terra.Reference) ProfileCapacityAttributes
- func (c ProfileCapacityAttributes) Maximum() terra.NumberValue
- func (c ProfileCapacityAttributes) Minimum() terra.NumberValue
- type ProfileCapacityState
- type ProfileFixedDate
- type ProfileFixedDateAttributes
- func (fd ProfileFixedDateAttributes) End() terra.StringValue
- func (fd ProfileFixedDateAttributes) InternalRef() (terra.Reference, error)
- func (fd ProfileFixedDateAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (fd ProfileFixedDateAttributes) InternalWithRef(ref terra.Reference) ProfileFixedDateAttributes
- func (fd ProfileFixedDateAttributes) Start() terra.StringValue
- func (fd ProfileFixedDateAttributes) Timezone() terra.StringValue
- type ProfileFixedDateState
- type ProfileRecurrence
- type ProfileRecurrenceAttributes
- func (r ProfileRecurrenceAttributes) Days() terra.ListValue[terra.StringValue]
- func (r ProfileRecurrenceAttributes) Hours() terra.ListValue[terra.NumberValue]
- func (r ProfileRecurrenceAttributes) InternalRef() (terra.Reference, error)
- func (r ProfileRecurrenceAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (r ProfileRecurrenceAttributes) InternalWithRef(ref terra.Reference) ProfileRecurrenceAttributes
- func (r ProfileRecurrenceAttributes) Minutes() terra.ListValue[terra.NumberValue]
- func (r ProfileRecurrenceAttributes) Timezone() terra.StringValue
- type ProfileRecurrenceState
- type ProfileRule
- type ProfileRuleAttributes
- func (r ProfileRuleAttributes) InternalRef() (terra.Reference, error)
- func (r ProfileRuleAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (r ProfileRuleAttributes) InternalWithRef(ref terra.Reference) ProfileRuleAttributes
- func (r ProfileRuleAttributes) MetricTrigger() terra.ListValue[ProfileRuleMetricTriggerAttributes]
- func (r ProfileRuleAttributes) ScaleAction() terra.ListValue[ProfileRuleScaleActionAttributes]
- type ProfileRuleMetricTrigger
- type ProfileRuleMetricTriggerAttributes
- func (mt ProfileRuleMetricTriggerAttributes) Dimensions() terra.ListValue[ProfileRuleMetricTriggerDimensionsAttributes]
- func (mt ProfileRuleMetricTriggerAttributes) DivideByInstanceCount() terra.BoolValue
- func (mt ProfileRuleMetricTriggerAttributes) InternalRef() (terra.Reference, error)
- func (mt ProfileRuleMetricTriggerAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (mt ProfileRuleMetricTriggerAttributes) InternalWithRef(ref terra.Reference) ProfileRuleMetricTriggerAttributes
- func (mt ProfileRuleMetricTriggerAttributes) MetricName() terra.StringValue
- func (mt ProfileRuleMetricTriggerAttributes) MetricNamespace() terra.StringValue
- func (mt ProfileRuleMetricTriggerAttributes) MetricResourceId() terra.StringValue
- func (mt ProfileRuleMetricTriggerAttributes) Operator() terra.StringValue
- func (mt ProfileRuleMetricTriggerAttributes) Statistic() terra.StringValue
- func (mt ProfileRuleMetricTriggerAttributes) Threshold() terra.NumberValue
- func (mt ProfileRuleMetricTriggerAttributes) TimeAggregation() terra.StringValue
- func (mt ProfileRuleMetricTriggerAttributes) TimeGrain() terra.StringValue
- func (mt ProfileRuleMetricTriggerAttributes) TimeWindow() terra.StringValue
- type ProfileRuleMetricTriggerDimensions
- type ProfileRuleMetricTriggerDimensionsAttributes
- func (d ProfileRuleMetricTriggerDimensionsAttributes) InternalRef() (terra.Reference, error)
- func (d ProfileRuleMetricTriggerDimensionsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (d ProfileRuleMetricTriggerDimensionsAttributes) InternalWithRef(ref terra.Reference) ProfileRuleMetricTriggerDimensionsAttributes
- func (d ProfileRuleMetricTriggerDimensionsAttributes) Name() terra.StringValue
- func (d ProfileRuleMetricTriggerDimensionsAttributes) Operator() terra.StringValue
- func (d ProfileRuleMetricTriggerDimensionsAttributes) Values() terra.ListValue[terra.StringValue]
- type ProfileRuleMetricTriggerDimensionsState
- type ProfileRuleMetricTriggerState
- type ProfileRuleScaleAction
- type ProfileRuleScaleActionAttributes
- func (sa ProfileRuleScaleActionAttributes) Cooldown() terra.StringValue
- func (sa ProfileRuleScaleActionAttributes) Direction() terra.StringValue
- func (sa ProfileRuleScaleActionAttributes) InternalRef() (terra.Reference, error)
- func (sa ProfileRuleScaleActionAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (sa ProfileRuleScaleActionAttributes) InternalWithRef(ref terra.Reference) ProfileRuleScaleActionAttributes
- func (sa ProfileRuleScaleActionAttributes) Type() terra.StringValue
- func (sa ProfileRuleScaleActionAttributes) Value() terra.NumberValue
- type ProfileRuleScaleActionState
- type ProfileRuleState
- type ProfileState
- type Resource
- func (amas *Resource) Attributes() azurermMonitorAutoscaleSettingAttributes
- func (amas *Resource) Configuration() interface{}
- func (amas *Resource) DependOn() terra.Reference
- func (amas *Resource) Dependencies() terra.Dependencies
- func (amas *Resource) ImportState(state io.Reader) error
- func (amas *Resource) LifecycleManagement() *terra.Lifecycle
- func (amas *Resource) LocalName() string
- func (amas *Resource) State() (*azurermMonitorAutoscaleSettingState, bool)
- func (amas *Resource) StateMust() *azurermMonitorAutoscaleSettingState
- func (amas *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 { // Enabled: bool, optional Enabled terra.BoolValue `hcl:"enabled,attr"` // Id: string, optional Id terra.StringValue `hcl:"id,attr"` // Location: string, required Location terra.StringValue `hcl:"location,attr" validate:"required"` // Name: string, required Name terra.StringValue `hcl:"name,attr" validate:"required"` // ResourceGroupName: string, required ResourceGroupName terra.StringValue `hcl:"resource_group_name,attr" validate:"required"` // Tags: map of string, optional Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"` // TargetResourceId: string, required TargetResourceId terra.StringValue `hcl:"target_resource_id,attr" validate:"required"` // Notification: optional Notification *Notification `hcl:"notification,block"` // Predictive: optional Predictive *Predictive `hcl:"predictive,block"` // Profile: min=1,max=20 Profile []Profile `hcl:"profile,block" validate:"min=1,max=20"` // Timeouts: optional Timeouts *Timeouts `hcl:"timeouts,block"` }
Args contains the configurations for azurerm_monitor_autoscale_setting.
type Notification ¶
type Notification struct { // NotificationEmail: optional Email *NotificationEmail `hcl:"email,block"` // NotificationWebhook: min=0 Webhook []NotificationWebhook `hcl:"webhook,block" validate:"min=0"` }
type NotificationAttributes ¶
type NotificationAttributes struct {
// contains filtered or unexported fields
}
func (NotificationAttributes) Email ¶
func (n NotificationAttributes) Email() terra.ListValue[NotificationEmailAttributes]
func (NotificationAttributes) InternalRef ¶
func (n NotificationAttributes) InternalRef() (terra.Reference, error)
func (NotificationAttributes) InternalTokens ¶
func (n NotificationAttributes) InternalTokens() (hclwrite.Tokens, error)
func (NotificationAttributes) InternalWithRef ¶
func (n NotificationAttributes) InternalWithRef(ref terra.Reference) NotificationAttributes
func (NotificationAttributes) Webhook ¶
func (n NotificationAttributes) Webhook() terra.ListValue[NotificationWebhookAttributes]
type NotificationEmail ¶
type NotificationEmail struct { // CustomEmails: list of string, optional CustomEmails terra.ListValue[terra.StringValue] `hcl:"custom_emails,attr"` // SendToSubscriptionAdministrator: bool, optional SendToSubscriptionAdministrator terra.BoolValue `hcl:"send_to_subscription_administrator,attr"` // SendToSubscriptionCoAdministrator: bool, optional SendToSubscriptionCoAdministrator terra.BoolValue `hcl:"send_to_subscription_co_administrator,attr"` }
type NotificationEmailAttributes ¶
type NotificationEmailAttributes struct {
// contains filtered or unexported fields
}
func (NotificationEmailAttributes) CustomEmails ¶
func (e NotificationEmailAttributes) CustomEmails() terra.ListValue[terra.StringValue]
func (NotificationEmailAttributes) InternalRef ¶
func (e NotificationEmailAttributes) InternalRef() (terra.Reference, error)
func (NotificationEmailAttributes) InternalTokens ¶
func (e NotificationEmailAttributes) InternalTokens() (hclwrite.Tokens, error)
func (NotificationEmailAttributes) InternalWithRef ¶
func (e NotificationEmailAttributes) InternalWithRef(ref terra.Reference) NotificationEmailAttributes
func (NotificationEmailAttributes) SendToSubscriptionAdministrator ¶
func (e NotificationEmailAttributes) SendToSubscriptionAdministrator() terra.BoolValue
func (NotificationEmailAttributes) SendToSubscriptionCoAdministrator ¶
func (e NotificationEmailAttributes) SendToSubscriptionCoAdministrator() terra.BoolValue
type NotificationEmailState ¶
type NotificationState ¶
type NotificationState struct { Email []NotificationEmailState `json:"email"` Webhook []NotificationWebhookState `json:"webhook"` }
type NotificationWebhook ¶
type NotificationWebhook struct { // Properties: map of string, optional Properties terra.MapValue[terra.StringValue] `hcl:"properties,attr"` // ServiceUri: string, required ServiceUri terra.StringValue `hcl:"service_uri,attr" validate:"required"` }
type NotificationWebhookAttributes ¶
type NotificationWebhookAttributes struct {
// contains filtered or unexported fields
}
func (NotificationWebhookAttributes) InternalRef ¶
func (w NotificationWebhookAttributes) InternalRef() (terra.Reference, error)
func (NotificationWebhookAttributes) InternalTokens ¶
func (w NotificationWebhookAttributes) InternalTokens() (hclwrite.Tokens, error)
func (NotificationWebhookAttributes) InternalWithRef ¶
func (w NotificationWebhookAttributes) InternalWithRef(ref terra.Reference) NotificationWebhookAttributes
func (NotificationWebhookAttributes) Properties ¶
func (w NotificationWebhookAttributes) Properties() terra.MapValue[terra.StringValue]
func (NotificationWebhookAttributes) ServiceUri ¶
func (w NotificationWebhookAttributes) ServiceUri() terra.StringValue
type Predictive ¶
type Predictive struct { // LookAheadTime: string, optional LookAheadTime terra.StringValue `hcl:"look_ahead_time,attr"` // ScaleMode: string, required ScaleMode terra.StringValue `hcl:"scale_mode,attr" validate:"required"` }
type PredictiveAttributes ¶
type PredictiveAttributes struct {
// contains filtered or unexported fields
}
func (PredictiveAttributes) InternalRef ¶
func (p PredictiveAttributes) InternalRef() (terra.Reference, error)
func (PredictiveAttributes) InternalTokens ¶
func (p PredictiveAttributes) InternalTokens() (hclwrite.Tokens, error)
func (PredictiveAttributes) InternalWithRef ¶
func (p PredictiveAttributes) InternalWithRef(ref terra.Reference) PredictiveAttributes
func (PredictiveAttributes) LookAheadTime ¶
func (p PredictiveAttributes) LookAheadTime() terra.StringValue
func (PredictiveAttributes) ScaleMode ¶
func (p PredictiveAttributes) ScaleMode() terra.StringValue
type PredictiveState ¶
type Profile ¶
type Profile struct { // Name: string, required Name terra.StringValue `hcl:"name,attr" validate:"required"` // ProfileCapacity: required Capacity *ProfileCapacity `hcl:"capacity,block" validate:"required"` // ProfileFixedDate: optional FixedDate *ProfileFixedDate `hcl:"fixed_date,block"` // ProfileRecurrence: optional Recurrence *ProfileRecurrence `hcl:"recurrence,block"` // ProfileRule: min=0,max=10 Rule []ProfileRule `hcl:"rule,block" validate:"min=0,max=10"` }
type ProfileAttributes ¶
type ProfileAttributes struct {
// contains filtered or unexported fields
}
func (ProfileAttributes) Capacity ¶
func (p ProfileAttributes) Capacity() terra.ListValue[ProfileCapacityAttributes]
func (ProfileAttributes) FixedDate ¶
func (p ProfileAttributes) FixedDate() terra.ListValue[ProfileFixedDateAttributes]
func (ProfileAttributes) InternalRef ¶
func (p ProfileAttributes) InternalRef() (terra.Reference, error)
func (ProfileAttributes) InternalTokens ¶
func (p ProfileAttributes) InternalTokens() (hclwrite.Tokens, error)
func (ProfileAttributes) InternalWithRef ¶
func (p ProfileAttributes) InternalWithRef(ref terra.Reference) ProfileAttributes
func (ProfileAttributes) Name ¶
func (p ProfileAttributes) Name() terra.StringValue
func (ProfileAttributes) Recurrence ¶
func (p ProfileAttributes) Recurrence() terra.ListValue[ProfileRecurrenceAttributes]
func (ProfileAttributes) Rule ¶
func (p ProfileAttributes) Rule() terra.ListValue[ProfileRuleAttributes]
type ProfileCapacity ¶
type ProfileCapacity struct { // Default: number, required Default terra.NumberValue `hcl:"default,attr" validate:"required"` // Maximum: number, required Maximum terra.NumberValue `hcl:"maximum,attr" validate:"required"` // Minimum: number, required Minimum terra.NumberValue `hcl:"minimum,attr" validate:"required"` }
type ProfileCapacityAttributes ¶
type ProfileCapacityAttributes struct {
// contains filtered or unexported fields
}
func (ProfileCapacityAttributes) Default ¶
func (c ProfileCapacityAttributes) Default() terra.NumberValue
func (ProfileCapacityAttributes) InternalRef ¶
func (c ProfileCapacityAttributes) InternalRef() (terra.Reference, error)
func (ProfileCapacityAttributes) InternalTokens ¶
func (c ProfileCapacityAttributes) InternalTokens() (hclwrite.Tokens, error)
func (ProfileCapacityAttributes) InternalWithRef ¶
func (c ProfileCapacityAttributes) InternalWithRef(ref terra.Reference) ProfileCapacityAttributes
func (ProfileCapacityAttributes) Maximum ¶
func (c ProfileCapacityAttributes) Maximum() terra.NumberValue
func (ProfileCapacityAttributes) Minimum ¶
func (c ProfileCapacityAttributes) Minimum() terra.NumberValue
type ProfileCapacityState ¶
type ProfileFixedDate ¶
type ProfileFixedDate struct { // End: string, required End terra.StringValue `hcl:"end,attr" validate:"required"` // Start: string, required Start terra.StringValue `hcl:"start,attr" validate:"required"` // Timezone: string, optional Timezone terra.StringValue `hcl:"timezone,attr"` }
type ProfileFixedDateAttributes ¶
type ProfileFixedDateAttributes struct {
// contains filtered or unexported fields
}
func (ProfileFixedDateAttributes) End ¶
func (fd ProfileFixedDateAttributes) End() terra.StringValue
func (ProfileFixedDateAttributes) InternalRef ¶
func (fd ProfileFixedDateAttributes) InternalRef() (terra.Reference, error)
func (ProfileFixedDateAttributes) InternalTokens ¶
func (fd ProfileFixedDateAttributes) InternalTokens() (hclwrite.Tokens, error)
func (ProfileFixedDateAttributes) InternalWithRef ¶
func (fd ProfileFixedDateAttributes) InternalWithRef(ref terra.Reference) ProfileFixedDateAttributes
func (ProfileFixedDateAttributes) Start ¶
func (fd ProfileFixedDateAttributes) Start() terra.StringValue
func (ProfileFixedDateAttributes) Timezone ¶
func (fd ProfileFixedDateAttributes) Timezone() terra.StringValue
type ProfileFixedDateState ¶
type ProfileRecurrence ¶
type ProfileRecurrence struct { // Days: list of string, required Days terra.ListValue[terra.StringValue] `hcl:"days,attr" validate:"required"` // Hours: list of number, required Hours terra.ListValue[terra.NumberValue] `hcl:"hours,attr" validate:"required"` // Minutes: list of number, required Minutes terra.ListValue[terra.NumberValue] `hcl:"minutes,attr" validate:"required"` // Timezone: string, optional Timezone terra.StringValue `hcl:"timezone,attr"` }
type ProfileRecurrenceAttributes ¶
type ProfileRecurrenceAttributes struct {
// contains filtered or unexported fields
}
func (ProfileRecurrenceAttributes) Days ¶
func (r ProfileRecurrenceAttributes) Days() terra.ListValue[terra.StringValue]
func (ProfileRecurrenceAttributes) Hours ¶
func (r ProfileRecurrenceAttributes) Hours() terra.ListValue[terra.NumberValue]
func (ProfileRecurrenceAttributes) InternalRef ¶
func (r ProfileRecurrenceAttributes) InternalRef() (terra.Reference, error)
func (ProfileRecurrenceAttributes) InternalTokens ¶
func (r ProfileRecurrenceAttributes) InternalTokens() (hclwrite.Tokens, error)
func (ProfileRecurrenceAttributes) InternalWithRef ¶
func (r ProfileRecurrenceAttributes) InternalWithRef(ref terra.Reference) ProfileRecurrenceAttributes
func (ProfileRecurrenceAttributes) Minutes ¶
func (r ProfileRecurrenceAttributes) Minutes() terra.ListValue[terra.NumberValue]
func (ProfileRecurrenceAttributes) Timezone ¶
func (r ProfileRecurrenceAttributes) Timezone() terra.StringValue
type ProfileRecurrenceState ¶
type ProfileRule ¶
type ProfileRule struct { // ProfileRuleMetricTrigger: required MetricTrigger *ProfileRuleMetricTrigger `hcl:"metric_trigger,block" validate:"required"` // ProfileRuleScaleAction: required ScaleAction *ProfileRuleScaleAction `hcl:"scale_action,block" validate:"required"` }
type ProfileRuleAttributes ¶
type ProfileRuleAttributes struct {
// contains filtered or unexported fields
}
func (ProfileRuleAttributes) InternalRef ¶
func (r ProfileRuleAttributes) InternalRef() (terra.Reference, error)
func (ProfileRuleAttributes) InternalTokens ¶
func (r ProfileRuleAttributes) InternalTokens() (hclwrite.Tokens, error)
func (ProfileRuleAttributes) InternalWithRef ¶
func (r ProfileRuleAttributes) InternalWithRef(ref terra.Reference) ProfileRuleAttributes
func (ProfileRuleAttributes) MetricTrigger ¶
func (r ProfileRuleAttributes) MetricTrigger() terra.ListValue[ProfileRuleMetricTriggerAttributes]
func (ProfileRuleAttributes) ScaleAction ¶
func (r ProfileRuleAttributes) ScaleAction() terra.ListValue[ProfileRuleScaleActionAttributes]
type ProfileRuleMetricTrigger ¶
type ProfileRuleMetricTrigger struct { // DivideByInstanceCount: bool, optional DivideByInstanceCount terra.BoolValue `hcl:"divide_by_instance_count,attr"` // MetricName: string, required MetricName terra.StringValue `hcl:"metric_name,attr" validate:"required"` // MetricNamespace: string, optional MetricNamespace terra.StringValue `hcl:"metric_namespace,attr"` // MetricResourceId: string, required MetricResourceId terra.StringValue `hcl:"metric_resource_id,attr" validate:"required"` // Operator: string, required Operator terra.StringValue `hcl:"operator,attr" validate:"required"` // Statistic: string, required Statistic terra.StringValue `hcl:"statistic,attr" validate:"required"` // Threshold: number, required Threshold terra.NumberValue `hcl:"threshold,attr" validate:"required"` // TimeAggregation: string, required TimeAggregation terra.StringValue `hcl:"time_aggregation,attr" validate:"required"` // TimeGrain: string, required TimeGrain terra.StringValue `hcl:"time_grain,attr" validate:"required"` // TimeWindow: string, required TimeWindow terra.StringValue `hcl:"time_window,attr" validate:"required"` // ProfileRuleMetricTriggerDimensions: min=0 Dimensions []ProfileRuleMetricTriggerDimensions `hcl:"dimensions,block" validate:"min=0"` }
type ProfileRuleMetricTriggerAttributes ¶
type ProfileRuleMetricTriggerAttributes struct {
// contains filtered or unexported fields
}
func (ProfileRuleMetricTriggerAttributes) Dimensions ¶
func (mt ProfileRuleMetricTriggerAttributes) Dimensions() terra.ListValue[ProfileRuleMetricTriggerDimensionsAttributes]
func (ProfileRuleMetricTriggerAttributes) DivideByInstanceCount ¶
func (mt ProfileRuleMetricTriggerAttributes) DivideByInstanceCount() terra.BoolValue
func (ProfileRuleMetricTriggerAttributes) InternalRef ¶
func (mt ProfileRuleMetricTriggerAttributes) InternalRef() (terra.Reference, error)
func (ProfileRuleMetricTriggerAttributes) InternalTokens ¶
func (mt ProfileRuleMetricTriggerAttributes) InternalTokens() (hclwrite.Tokens, error)
func (ProfileRuleMetricTriggerAttributes) InternalWithRef ¶
func (mt ProfileRuleMetricTriggerAttributes) InternalWithRef(ref terra.Reference) ProfileRuleMetricTriggerAttributes
func (ProfileRuleMetricTriggerAttributes) MetricName ¶
func (mt ProfileRuleMetricTriggerAttributes) MetricName() terra.StringValue
func (ProfileRuleMetricTriggerAttributes) MetricNamespace ¶
func (mt ProfileRuleMetricTriggerAttributes) MetricNamespace() terra.StringValue
func (ProfileRuleMetricTriggerAttributes) MetricResourceId ¶
func (mt ProfileRuleMetricTriggerAttributes) MetricResourceId() terra.StringValue
func (ProfileRuleMetricTriggerAttributes) Operator ¶
func (mt ProfileRuleMetricTriggerAttributes) Operator() terra.StringValue
func (ProfileRuleMetricTriggerAttributes) Statistic ¶
func (mt ProfileRuleMetricTriggerAttributes) Statistic() terra.StringValue
func (ProfileRuleMetricTriggerAttributes) Threshold ¶
func (mt ProfileRuleMetricTriggerAttributes) Threshold() terra.NumberValue
func (ProfileRuleMetricTriggerAttributes) TimeAggregation ¶
func (mt ProfileRuleMetricTriggerAttributes) TimeAggregation() terra.StringValue
func (ProfileRuleMetricTriggerAttributes) TimeGrain ¶
func (mt ProfileRuleMetricTriggerAttributes) TimeGrain() terra.StringValue
func (ProfileRuleMetricTriggerAttributes) TimeWindow ¶
func (mt ProfileRuleMetricTriggerAttributes) TimeWindow() terra.StringValue
type ProfileRuleMetricTriggerDimensions ¶
type ProfileRuleMetricTriggerDimensions struct { // Name: string, required Name terra.StringValue `hcl:"name,attr" validate:"required"` // Operator: string, required Operator terra.StringValue `hcl:"operator,attr" validate:"required"` // Values: list of string, required Values terra.ListValue[terra.StringValue] `hcl:"values,attr" validate:"required"` }
type ProfileRuleMetricTriggerDimensionsAttributes ¶
type ProfileRuleMetricTriggerDimensionsAttributes struct {
// contains filtered or unexported fields
}
func (ProfileRuleMetricTriggerDimensionsAttributes) InternalRef ¶
func (d ProfileRuleMetricTriggerDimensionsAttributes) InternalRef() (terra.Reference, error)
func (ProfileRuleMetricTriggerDimensionsAttributes) InternalTokens ¶
func (d ProfileRuleMetricTriggerDimensionsAttributes) InternalTokens() (hclwrite.Tokens, error)
func (ProfileRuleMetricTriggerDimensionsAttributes) InternalWithRef ¶
func (d ProfileRuleMetricTriggerDimensionsAttributes) InternalWithRef(ref terra.Reference) ProfileRuleMetricTriggerDimensionsAttributes
func (ProfileRuleMetricTriggerDimensionsAttributes) Name ¶
func (d ProfileRuleMetricTriggerDimensionsAttributes) Name() terra.StringValue
func (ProfileRuleMetricTriggerDimensionsAttributes) Operator ¶
func (d ProfileRuleMetricTriggerDimensionsAttributes) Operator() terra.StringValue
func (ProfileRuleMetricTriggerDimensionsAttributes) Values ¶
func (d ProfileRuleMetricTriggerDimensionsAttributes) Values() terra.ListValue[terra.StringValue]
type ProfileRuleMetricTriggerState ¶
type ProfileRuleMetricTriggerState struct { DivideByInstanceCount bool `json:"divide_by_instance_count"` MetricName string `json:"metric_name"` MetricNamespace string `json:"metric_namespace"` MetricResourceId string `json:"metric_resource_id"` Operator string `json:"operator"` Statistic string `json:"statistic"` Threshold float64 `json:"threshold"` TimeAggregation string `json:"time_aggregation"` TimeGrain string `json:"time_grain"` TimeWindow string `json:"time_window"` Dimensions []ProfileRuleMetricTriggerDimensionsState `json:"dimensions"` }
type ProfileRuleScaleAction ¶
type ProfileRuleScaleAction struct { // Cooldown: string, required Cooldown terra.StringValue `hcl:"cooldown,attr" validate:"required"` // Direction: string, required Direction terra.StringValue `hcl:"direction,attr" validate:"required"` // Type: string, required Type terra.StringValue `hcl:"type,attr" validate:"required"` // Value: number, required Value terra.NumberValue `hcl:"value,attr" validate:"required"` }
type ProfileRuleScaleActionAttributes ¶
type ProfileRuleScaleActionAttributes struct {
// contains filtered or unexported fields
}
func (ProfileRuleScaleActionAttributes) Cooldown ¶
func (sa ProfileRuleScaleActionAttributes) Cooldown() terra.StringValue
func (ProfileRuleScaleActionAttributes) Direction ¶
func (sa ProfileRuleScaleActionAttributes) Direction() terra.StringValue
func (ProfileRuleScaleActionAttributes) InternalRef ¶
func (sa ProfileRuleScaleActionAttributes) InternalRef() (terra.Reference, error)
func (ProfileRuleScaleActionAttributes) InternalTokens ¶
func (sa ProfileRuleScaleActionAttributes) InternalTokens() (hclwrite.Tokens, error)
func (ProfileRuleScaleActionAttributes) InternalWithRef ¶
func (sa ProfileRuleScaleActionAttributes) InternalWithRef(ref terra.Reference) ProfileRuleScaleActionAttributes
func (ProfileRuleScaleActionAttributes) Type ¶
func (sa ProfileRuleScaleActionAttributes) Type() terra.StringValue
func (ProfileRuleScaleActionAttributes) Value ¶
func (sa ProfileRuleScaleActionAttributes) Value() terra.NumberValue
type ProfileRuleState ¶
type ProfileRuleState struct { MetricTrigger []ProfileRuleMetricTriggerState `json:"metric_trigger"` ScaleAction []ProfileRuleScaleActionState `json:"scale_action"` }
type ProfileState ¶
type ProfileState struct { Name string `json:"name"` Capacity []ProfileCapacityState `json:"capacity"` FixedDate []ProfileFixedDateState `json:"fixed_date"` Recurrence []ProfileRecurrenceState `json:"recurrence"` Rule []ProfileRuleState `json:"rule"` }
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_autoscale_setting.
func (*Resource) Attributes ¶
func (amas *Resource) Attributes() azurermMonitorAutoscaleSettingAttributes
Attributes returns the attributes for Resource.
func (*Resource) Configuration ¶
func (amas *Resource) Configuration() interface{}
Configuration returns the configuration (args) for Resource.
func (*Resource) Dependencies ¶
func (amas *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.