google_monitoring_uptime_check_config

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 {
	// CheckerType: string, optional
	CheckerType terra.StringValue `hcl:"checker_type,attr"`
	// DisplayName: string, required
	DisplayName terra.StringValue `hcl:"display_name,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Period: string, optional
	Period terra.StringValue `hcl:"period,attr"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// SelectedRegions: list of string, optional
	SelectedRegions terra.ListValue[terra.StringValue] `hcl:"selected_regions,attr"`
	// Timeout: string, required
	Timeout terra.StringValue `hcl:"timeout,attr" validate:"required"`
	// UserLabels: map of string, optional
	UserLabels terra.MapValue[terra.StringValue] `hcl:"user_labels,attr"`
	// ContentMatchers: min=0
	ContentMatchers []ContentMatchers `hcl:"content_matchers,block" validate:"min=0"`
	// HttpCheck: optional
	HttpCheck *HttpCheck `hcl:"http_check,block"`
	// MonitoredResource: optional
	MonitoredResource *MonitoredResource `hcl:"monitored_resource,block"`
	// ResourceGroup: optional
	ResourceGroup *ResourceGroup `hcl:"resource_group,block"`
	// SyntheticMonitor: optional
	SyntheticMonitor *SyntheticMonitor `hcl:"synthetic_monitor,block"`
	// TcpCheck: optional
	TcpCheck *TcpCheck `hcl:"tcp_check,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_monitoring_uptime_check_config.

type ContentMatchers

type ContentMatchers struct {
	// Content: string, required
	Content terra.StringValue `hcl:"content,attr" validate:"required"`
	// Matcher: string, optional
	Matcher terra.StringValue `hcl:"matcher,attr"`
	// ContentMatchersJsonPathMatcher: optional
	JsonPathMatcher *ContentMatchersJsonPathMatcher `hcl:"json_path_matcher,block"`
}

type ContentMatchersAttributes

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

func (ContentMatchersAttributes) Content

func (ContentMatchersAttributes) InternalRef

func (cm ContentMatchersAttributes) InternalRef() (terra.Reference, error)

func (ContentMatchersAttributes) InternalTokens

func (cm ContentMatchersAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ContentMatchersAttributes) InternalWithRef

func (ContentMatchersAttributes) JsonPathMatcher

func (ContentMatchersAttributes) Matcher

type ContentMatchersJsonPathMatcher

type ContentMatchersJsonPathMatcher struct {
	// JsonMatcher: string, optional
	JsonMatcher terra.StringValue `hcl:"json_matcher,attr"`
	// JsonPath: string, required
	JsonPath terra.StringValue `hcl:"json_path,attr" validate:"required"`
}

type ContentMatchersJsonPathMatcherAttributes

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

func (ContentMatchersJsonPathMatcherAttributes) InternalRef

func (ContentMatchersJsonPathMatcherAttributes) InternalTokens

func (ContentMatchersJsonPathMatcherAttributes) InternalWithRef

func (ContentMatchersJsonPathMatcherAttributes) JsonMatcher

func (ContentMatchersJsonPathMatcherAttributes) JsonPath

type ContentMatchersJsonPathMatcherState

type ContentMatchersJsonPathMatcherState struct {
	JsonMatcher string `json:"json_matcher"`
	JsonPath    string `json:"json_path"`
}

type ContentMatchersState

type ContentMatchersState struct {
	Content         string                                `json:"content"`
	Matcher         string                                `json:"matcher"`
	JsonPathMatcher []ContentMatchersJsonPathMatcherState `json:"json_path_matcher"`
}

type HttpCheck

type HttpCheck struct {
	// Body: string, optional
	Body terra.StringValue `hcl:"body,attr"`
	// ContentType: string, optional
	ContentType terra.StringValue `hcl:"content_type,attr"`
	// CustomContentType: string, optional
	CustomContentType terra.StringValue `hcl:"custom_content_type,attr"`
	// Headers: map of string, optional
	Headers terra.MapValue[terra.StringValue] `hcl:"headers,attr"`
	// MaskHeaders: bool, optional
	MaskHeaders terra.BoolValue `hcl:"mask_headers,attr"`
	// Path: string, optional
	Path terra.StringValue `hcl:"path,attr"`
	// Port: number, optional
	Port terra.NumberValue `hcl:"port,attr"`
	// RequestMethod: string, optional
	RequestMethod terra.StringValue `hcl:"request_method,attr"`
	// UseSsl: bool, optional
	UseSsl terra.BoolValue `hcl:"use_ssl,attr"`
	// ValidateSsl: bool, optional
	ValidateSsl terra.BoolValue `hcl:"validate_ssl,attr"`
	// HttpCheckAcceptedResponseStatusCodes: min=0
	AcceptedResponseStatusCodes []HttpCheckAcceptedResponseStatusCodes `hcl:"accepted_response_status_codes,block" validate:"min=0"`
	// HttpCheckAuthInfo: optional
	AuthInfo *HttpCheckAuthInfo `hcl:"auth_info,block"`
	// HttpCheckPingConfig: optional
	PingConfig *HttpCheckPingConfig `hcl:"ping_config,block"`
}

type HttpCheckAcceptedResponseStatusCodes

type HttpCheckAcceptedResponseStatusCodes struct {
	// StatusClass: string, optional
	StatusClass terra.StringValue `hcl:"status_class,attr"`
	// StatusValue: number, optional
	StatusValue terra.NumberValue `hcl:"status_value,attr"`
}

type HttpCheckAcceptedResponseStatusCodesAttributes

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

func (HttpCheckAcceptedResponseStatusCodesAttributes) InternalRef

func (HttpCheckAcceptedResponseStatusCodesAttributes) InternalTokens

func (HttpCheckAcceptedResponseStatusCodesAttributes) InternalWithRef

func (HttpCheckAcceptedResponseStatusCodesAttributes) StatusClass

func (HttpCheckAcceptedResponseStatusCodesAttributes) StatusValue

type HttpCheckAcceptedResponseStatusCodesState

type HttpCheckAcceptedResponseStatusCodesState struct {
	StatusClass string  `json:"status_class"`
	StatusValue float64 `json:"status_value"`
}

type HttpCheckAttributes

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

func (HttpCheckAttributes) AcceptedResponseStatusCodes

func (HttpCheckAttributes) AuthInfo

func (HttpCheckAttributes) Body

func (HttpCheckAttributes) ContentType

func (hc HttpCheckAttributes) ContentType() terra.StringValue

func (HttpCheckAttributes) CustomContentType

func (hc HttpCheckAttributes) CustomContentType() terra.StringValue

func (HttpCheckAttributes) Headers

func (HttpCheckAttributes) InternalRef

func (hc HttpCheckAttributes) InternalRef() (terra.Reference, error)

func (HttpCheckAttributes) InternalTokens

func (hc HttpCheckAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HttpCheckAttributes) InternalWithRef

func (hc HttpCheckAttributes) InternalWithRef(ref terra.Reference) HttpCheckAttributes

func (HttpCheckAttributes) MaskHeaders

func (hc HttpCheckAttributes) MaskHeaders() terra.BoolValue

func (HttpCheckAttributes) Path

func (HttpCheckAttributes) PingConfig

func (HttpCheckAttributes) Port

func (HttpCheckAttributes) RequestMethod

func (hc HttpCheckAttributes) RequestMethod() terra.StringValue

func (HttpCheckAttributes) UseSsl

func (hc HttpCheckAttributes) UseSsl() terra.BoolValue

func (HttpCheckAttributes) ValidateSsl

func (hc HttpCheckAttributes) ValidateSsl() terra.BoolValue

type HttpCheckAuthInfo

type HttpCheckAuthInfo struct {
	// Password: string, required
	Password terra.StringValue `hcl:"password,attr" validate:"required"`
	// Username: string, required
	Username terra.StringValue `hcl:"username,attr" validate:"required"`
}

type HttpCheckAuthInfoAttributes

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

func (HttpCheckAuthInfoAttributes) InternalRef

func (ai HttpCheckAuthInfoAttributes) InternalRef() (terra.Reference, error)

func (HttpCheckAuthInfoAttributes) InternalTokens

func (ai HttpCheckAuthInfoAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HttpCheckAuthInfoAttributes) InternalWithRef

func (HttpCheckAuthInfoAttributes) Password

func (HttpCheckAuthInfoAttributes) Username

type HttpCheckAuthInfoState

type HttpCheckAuthInfoState struct {
	Password string `json:"password"`
	Username string `json:"username"`
}

type HttpCheckPingConfig

type HttpCheckPingConfig struct {
	// PingsCount: number, required
	PingsCount terra.NumberValue `hcl:"pings_count,attr" validate:"required"`
}

type HttpCheckPingConfigAttributes

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

func (HttpCheckPingConfigAttributes) InternalRef

func (pc HttpCheckPingConfigAttributes) InternalRef() (terra.Reference, error)

func (HttpCheckPingConfigAttributes) InternalTokens

func (pc HttpCheckPingConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HttpCheckPingConfigAttributes) InternalWithRef

func (HttpCheckPingConfigAttributes) PingsCount

type HttpCheckPingConfigState

type HttpCheckPingConfigState struct {
	PingsCount float64 `json:"pings_count"`
}

type HttpCheckState

type HttpCheckState struct {
	Body                        string                                      `json:"body"`
	ContentType                 string                                      `json:"content_type"`
	CustomContentType           string                                      `json:"custom_content_type"`
	Headers                     map[string]string                           `json:"headers"`
	MaskHeaders                 bool                                        `json:"mask_headers"`
	Path                        string                                      `json:"path"`
	Port                        float64                                     `json:"port"`
	RequestMethod               string                                      `json:"request_method"`
	UseSsl                      bool                                        `json:"use_ssl"`
	ValidateSsl                 bool                                        `json:"validate_ssl"`
	AcceptedResponseStatusCodes []HttpCheckAcceptedResponseStatusCodesState `json:"accepted_response_status_codes"`
	AuthInfo                    []HttpCheckAuthInfoState                    `json:"auth_info"`
	PingConfig                  []HttpCheckPingConfigState                  `json:"ping_config"`
}

type MonitoredResource

type MonitoredResource struct {
	// Labels: map of string, required
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr" validate:"required"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type MonitoredResourceAttributes

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

func (MonitoredResourceAttributes) InternalRef

func (mr MonitoredResourceAttributes) InternalRef() (terra.Reference, error)

func (MonitoredResourceAttributes) InternalTokens

func (mr MonitoredResourceAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MonitoredResourceAttributes) InternalWithRef

func (MonitoredResourceAttributes) Labels

func (MonitoredResourceAttributes) Type

type MonitoredResourceState

type MonitoredResourceState struct {
	Labels map[string]string `json:"labels"`
	Type   string            `json:"type"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gmucc *Resource) Attributes() googleMonitoringUptimeCheckConfigAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gmucc *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gmucc *Resource) State() (*googleMonitoringUptimeCheckConfigState, bool)

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

func (*Resource) StateMust

func (gmucc *Resource) StateMust() *googleMonitoringUptimeCheckConfigState

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

func (*Resource) Type

func (gmucc *Resource) Type() string

Type returns the Terraform object type for Resource.

type ResourceGroup

type ResourceGroup struct {
	// GroupId: string, optional
	GroupId terra.StringValue `hcl:"group_id,attr"`
	// ResourceType: string, optional
	ResourceType terra.StringValue `hcl:"resource_type,attr"`
}

type ResourceGroupAttributes

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

func (ResourceGroupAttributes) GroupId

func (ResourceGroupAttributes) InternalRef

func (rg ResourceGroupAttributes) InternalRef() (terra.Reference, error)

func (ResourceGroupAttributes) InternalTokens

func (rg ResourceGroupAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ResourceGroupAttributes) InternalWithRef

func (ResourceGroupAttributes) ResourceType

func (rg ResourceGroupAttributes) ResourceType() terra.StringValue

type ResourceGroupState

type ResourceGroupState struct {
	GroupId      string `json:"group_id"`
	ResourceType string `json:"resource_type"`
}

type SyntheticMonitor

type SyntheticMonitor struct {
	// SyntheticMonitorCloudFunctionV2: required
	CloudFunctionV2 *SyntheticMonitorCloudFunctionV2 `hcl:"cloud_function_v2,block" validate:"required"`
}

type SyntheticMonitorAttributes

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

func (SyntheticMonitorAttributes) CloudFunctionV2

func (SyntheticMonitorAttributes) InternalRef

func (sm SyntheticMonitorAttributes) InternalRef() (terra.Reference, error)

func (SyntheticMonitorAttributes) InternalTokens

func (sm SyntheticMonitorAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SyntheticMonitorAttributes) InternalWithRef

type SyntheticMonitorCloudFunctionV2

type SyntheticMonitorCloudFunctionV2 struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
}

type SyntheticMonitorCloudFunctionV2Attributes

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

func (SyntheticMonitorCloudFunctionV2Attributes) InternalRef

func (SyntheticMonitorCloudFunctionV2Attributes) InternalTokens

func (SyntheticMonitorCloudFunctionV2Attributes) InternalWithRef

func (SyntheticMonitorCloudFunctionV2Attributes) Name

type SyntheticMonitorCloudFunctionV2State

type SyntheticMonitorCloudFunctionV2State struct {
	Name string `json:"name"`
}

type SyntheticMonitorState

type SyntheticMonitorState struct {
	CloudFunctionV2 []SyntheticMonitorCloudFunctionV2State `json:"cloud_function_v2"`
}

type TcpCheck

type TcpCheck struct {
	// Port: number, required
	Port terra.NumberValue `hcl:"port,attr" validate:"required"`
	// TcpCheckPingConfig: optional
	PingConfig *TcpCheckPingConfig `hcl:"ping_config,block"`
}

type TcpCheckAttributes

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

func (TcpCheckAttributes) InternalRef

func (tc TcpCheckAttributes) InternalRef() (terra.Reference, error)

func (TcpCheckAttributes) InternalTokens

func (tc TcpCheckAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TcpCheckAttributes) InternalWithRef

func (tc TcpCheckAttributes) InternalWithRef(ref terra.Reference) TcpCheckAttributes

func (TcpCheckAttributes) PingConfig

func (TcpCheckAttributes) Port

type TcpCheckPingConfig

type TcpCheckPingConfig struct {
	// PingsCount: number, required
	PingsCount terra.NumberValue `hcl:"pings_count,attr" validate:"required"`
}

type TcpCheckPingConfigAttributes

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

func (TcpCheckPingConfigAttributes) InternalRef

func (pc TcpCheckPingConfigAttributes) InternalRef() (terra.Reference, error)

func (TcpCheckPingConfigAttributes) InternalTokens

func (pc TcpCheckPingConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TcpCheckPingConfigAttributes) InternalWithRef

func (TcpCheckPingConfigAttributes) PingsCount

type TcpCheckPingConfigState

type TcpCheckPingConfigState struct {
	PingsCount float64 `json:"pings_count"`
}

type TcpCheckState

type TcpCheckState struct {
	Port       float64                   `json:"port"`
	PingConfig []TcpCheckPingConfigState `json:"ping_config"`
}

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,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) Update

type TimeoutsState

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

Jump to

Keyboard shortcuts

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